Compare commits

..
52 Commits
Author SHA1 Message Date
Kudo Chien f3f09a01c4 fix 2025-10-02 20:36:16 +08:00
Kudo Chien 116aaed6c0 fix 2025-10-02 20:24:46 +08:00
Kudo Chien ba3617a151 fix 2025-10-02 20:11:14 +08:00
Kudo Chien 8026f880f6 fix 2025-10-02 20:05:49 +08:00
Kudo Chien c55f8422a8 fix 2025-10-02 19:01:37 +08:00
Kudo Chien 562b3cf25c fix 2025-10-02 18:59:20 +08:00
Kudo Chien 5bf3417bd2 fix 2025-10-02 18:56:31 +08:00
Kudo Chien a6457ef8fd fix 2025-10-02 18:51:02 +08:00
Kudo Chien fe2edb795d fix 2025-10-02 18:33:01 +08:00
Kudo Chien 937133164a fix 2025-10-02 17:45:42 +08:00
Kudo Chien 5eb081a08b wip 2025-10-02 13:05:18 +08:00
Kudo Chien a45e5365a4 wip 2025-10-02 13:02:17 +08:00
Kudo Chien de27583936 draft readme 2025-09-16 00:46:22 +08:00
Kudo Chien cd3adf2817 add repack-app action 2025-09-14 00:46:39 +08:00
Kudo Chien b184ff86a3 [fingerprint] fix db saving (#337)
# Why

fixes https://github.com/expo/expo-github-action/issues/336

# How

- bump `@actions/cache` version
- add delay and retry for db saving
2025-03-04 22:07:14 +08:00
Kudo ChienandYoni Touboul 980b700080 update packages (#334)
# Why

basically for #332
 
# How

- update all packages to latest but not eslint because we were not able to migrade eslint 9 config
- convert bun lockfile to text based lockfile
- fix fingerprint diff output errors
- cherry-pick changes from #333

---------

Co-authored-by: Yoni Touboul <[email protected]>
2025-02-17 22:28:18 +08:00
Will Schurman d933805e9c chore: update readme to better clarify production continuous deployment caveats (#328) 2025-01-13 10:29:25 -08:00
Will Schurman 24136f8a82 fix: one more merge confict fix (#327) 2025-01-13 09:53:40 -08:00
Will Schurman 10bd583de6 fix: fingerprint hash parsing (#326) 2025-01-13 09:48:48 -08:00
Will Schurman 97334d3b21 [continuous-deploy-fingerprint] Add action and docs for continuous deployment on main (#322) 2025-01-13 09:35:10 -08:00
Will Schurman 8134c7a005 feat(continuous-deploy-fingerprint): Add optional environment input for EAS updates (#325) 2025-01-13 09:15:51 -08:00
Will Schurman a88f4a07b2 chore: commit built files from #319 (#323) 2025-01-11 10:02:26 -08:00
Charaf Rezrazi 332258e32f feat(continuous-deploy-fingerprint): added platform arg to eas update command (#319) 2025-01-11 10:00:36 -08:00
Will Schurman 8108b8660b [continuous-deploy-fingerprint] Clean up code slightly (#313) 2024-09-24 17:28:53 -07:00
Nicolas Zilli 6c50f92c62 [continuous-deploy-fingerprint] Add platform as input (#280) 2024-09-24 12:48:00 -07:00
Will Schurman 58d3e4c073 [continuous-deploy-fingerprint] Support EXPO_STAGING env variable (#309) 2024-09-20 10:27:36 -07:00
Tharaka De Silva 4b7860b64d fix(continuous-deploy-fingerprint): correct expiration date logic for build validation (#307) 2024-09-19 14:48:07 -07:00
Will Schurman 141e1af34b [chore] Update lint and config to be more consistent with other expo codebases (#308) 2024-09-19 11:46:17 -07:00
Will Schurman 28c4b0a7fa [continuous-deploy-fingeprint] Output whether each platform build was created or one was reused (#306) 2024-09-19 11:09:33 -07:00
Will Schurman 3e7cb70d7d [continuous-deploy-fingerprint] Update readme to specify fingeprint rtv policy prereq (#305) 2024-09-18 10:40:17 -07:00
Will Schurman 6ea4a8aa0d [continuous-deploy-fingerprint] Update readme for prerequisistes (#304) 2024-09-16 14:59:42 -07:00
Will Schurman e780e57aea [continuous-deploy-fingerprint] Improve build filtering (#303) 2024-09-16 14:45:20 -07:00
Jacint Varga 047ecf1b39 docs: missing action inputs added to readme (#275) 2024-08-29 12:24:45 +08:00
Santiago González Siordia 5947206b86 Update README.md (#288)
typo correction
2024-08-28 17:33:47 -07:00
Yash Goyal 21ad80ce40 Update README.md (#291)
removed some repetitions
2024-08-28 17:33:31 -07:00
Brent Vatne 89b4994f3e Update README.md 2024-05-14 14:34:18 -07:00
Will Schurman 6e93af1a51 Update README.md (#284) 2024-05-10 13:08:08 -07:00
Will Schurman 1aade4c555 Update README.md (#279) 2024-04-25 10:22:42 -07:00
Will Schurman 2bbae854d4 Update README.md (#278) 2024-04-22 12:36:24 -07:00
Will Schurman 1b1cb379f1 [continuous-deploy-fingerprint] Exclude expired builds from continuous deploy for development (#277) 2024-04-19 09:34:22 -07:00
Will Schurman b54de34e8d [continuous-deploy-fingerprint] Add more debug info, clean up output in non-debug, fix build parsing (#274) 2024-04-19 08:35:27 -07:00
Will Schurman bc61229346 Update README.md (#273) 2024-04-18 12:19:12 -07:00
Will Schurman ec8dc84b62 Add continuous-deploy-fingerprint action (#269) 2024-04-16 23:08:47 -07:00
Zachary Ebenfeld f6f3acfa27 docs(preview): fix typo in readme 2024-04-10 13:58:49 +02:00
Kudo Chien 0db524a726 [fingerprint] add saving-db-branch (#264) 2024-03-05 22:19:29 +08:00
Kudo Chien 2c58ed4848 [fingerprint] support customized input previous-git-commit (#263)
# Why

on expo/expo repos, we need the custom base commit because we don't run fingerprint for every commit. this pr added the advanced and customized `previous-git-commit` input
2024-02-27 23:47:44 +08:00
Nick 42a964bd6f [fingerprint] Fix fingerprint action reference in example PR Labeler (#255) 2024-02-27 23:46:47 +08:00
Hirbod cea45074d9 [fingerprint] add support for private repos to README (#257) 2024-02-27 20:53:29 +08:00
Mateus Craveiro 47703a0179 [fingerprint] fix typo (#260) 2024-02-27 20:52:28 +08:00
Mateus Craveiro 526dc5f131 [fingerprint] Fix example command (#261) 2024-02-27 20:52:02 +08:00
Kudo Chien 190a2cdf2b [fingerprint] add previous and current git commit to outputs (#262) 2024-02-27 20:50:53 +08:00
Will Schurman 15896ae746 [fingerprint] Add current and previous fingerprint to step outputs (#253) 2024-01-24 13:47:29 -08:00
103 changed files with 6079 additions and 508123 deletions

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
module.exports = {
root: true,
extends: ['universe/node'],
ignorePatterns: ['build/**', 'node_modules/**'],
rules: {
'prettier/prettier': 'error',
'sort-imports': [
'warn',
{
ignoreDeclarationSort: true,
},
],
curly: 'warn',
},
overrides: [
{
files: ['*.ts', '*.tsx', '*.d.ts'],
extends: ['universe/shared/typescript-analysis'],
excludedFiles: ['**/tests/**'],
parserOptions: {
project: './tsconfig.json',
},
rules: {
'@typescript-eslint/prefer-nullish-coalescing': ['warn', { ignorePrimitives: true }],
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/await-thenable': 'off',
'@typescript-eslint/return-await': ['warn', 'error-handling-correctness-only'],
},
},
],
};
+1 -1
View File
@@ -3,4 +3,4 @@
* text=auto
# These files are text and should be normalized (Convert crlf => lf)
build/** text eol=lf
build/** text eol=lf linguist-generated=true
+2 -2
View File
@@ -15,11 +15,11 @@ runs:
steps:
- name: 🏗 Setup Bun
if: ${{ runner.os != 'Windows' }}
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ inputs.bun-version }}
- name: 🏗 Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
+1 -1
View File
@@ -43,7 +43,7 @@ jobs:
fi
- name: 🗂 Upload build
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: build
-625
View File
@@ -1,625 +0,0 @@
## [8.2.1](https://github.com/expo/expo-github-action/compare/8.2.0...8.2.1) (2024-01-15)
### Bug fixes
* **preview:** filter slugs with special characters to match dev clients `exp+<slug>` scheme ([#252](https://github.com/expo/expo-github-action/issues/252)) ([b8a9be8](https://github.com/expo/expo-github-action/commit/b8a9be8336bf5609f8e299a8486f9a2bf7073f8a))
## [8.2.0](https://github.com/expo/expo-github-action/compare/8.1.0...8.2.0) (2023-12-02)
### New features
* **preview:** add `qr-target` and use proper QR codes for `expo-go` and `dev-build` ([#247](https://github.com/expo/expo-github-action/issues/247)) ([54efbfd](https://github.com/expo/expo-github-action/commit/54efbfdf1d130888a5f13b73fb7adc85edeb8855))
### Documentation changes
* **preview:** clarify the branch and workflow trigger relations ([#246](https://github.com/expo/expo-github-action/issues/246)) ([ccfad6f](https://github.com/expo/expo-github-action/commit/ccfad6f148eaa709959a64b1be216481f4ca54ff))
## [8.1.0](https://github.com/expo/expo-github-action/compare/8.0.0...8.1.0) (2023-11-24)
### New features
* add fingerprint integration ([#231](https://github.com/expo/expo-github-action/issues/231)) ([e6622e0](https://github.com/expo/expo-github-action/commit/e6622e076de31220ec97e3d7494de70cf1ab85b2))
* add readme for preview-build and fingerprint action ([#232](https://github.com/expo/expo-github-action/issues/232)) ([acc171b](https://github.com/expo/expo-github-action/commit/acc171bb5e34cd76bf152307e562bb49e7743b94)), closes [/github.com/expo/expo-github-action/pull/231#pullrequestreview-1628540314](https://github.com/expo//github.com/expo/expo-github-action/pull/231/issues/pullrequestreview-1628540314)
* **preview:** add update manifest permalinks to the output ([#245](https://github.com/expo/expo-github-action/issues/245)) ([331a5ab](https://github.com/expo/expo-github-action/commit/331a5abc4196b7590363c2b3ec842a0a17f98fa2))
### Bug fixes
* **preview:** allow multiple `app.json` schemes ([#244](https://github.com/expo/expo-github-action/issues/244)) ([42d64cf](https://github.com/expo/expo-github-action/commit/42d64cf92010d7210784c0f30bcaa611d8bae55d))
### Code changes
* update error handling to node 20 standards ([#243](https://github.com/expo/expo-github-action/issues/243)) ([65ee055](https://github.com/expo/expo-github-action/commit/65ee05557f89a7804e36b2d3fe4f3d33aea7011a))
* update workflows and repository to use Bun ([#241](https://github.com/expo/expo-github-action/issues/241)) ([7f1c170](https://github.com/expo/expo-github-action/commit/7f1c170873ddbadfb0ba311dd94b43d14c795ee3))
* upgrade all actions to run on node 20 ([#242](https://github.com/expo/expo-github-action/issues/242)) ([b3e5355](https://github.com/expo/expo-github-action/commit/b3e53555d9effcab01011226c5e811c263a449cb))
### Other chores
* **ci:** update release flow with new service account ([#238](https://github.com/expo/expo-github-action/issues/238)) ([e289d93](https://github.com/expo/expo-github-action/commit/e289d93e119801f899eb2b94d80d92718172dba3))
* update release workflow actions ([#239](https://github.com/expo/expo-github-action/issues/239)) ([57dcabe](https://github.com/expo/expo-github-action/commit/57dcabe749340c8c995ee0334cd7c547c35770d0))
### Documentation changes
* add link to breaking change pull request ([9e1a8c8](https://github.com/expo/expo-github-action/commit/9e1a8c8343d0f9405717e103c71e2e3ce9286bbc))
* fix changelog link in readme ([185932d](https://github.com/expo/expo-github-action/commit/185932d43cd424c08c2d530a3cedad352d66e78e))
* update example to use `eas-version` ([#222](https://github.com/expo/expo-github-action/issues/222)) ([7bc946c](https://github.com/expo/expo-github-action/commit/7bc946c5f6b768b1a1858c1722b3aac4e0064c23))
## [8.0.0](https://github.com/expo/expo-github-action/compare/7.2.1...8.0.0) (2023-02-20)
### ⚠ BREAKING CHANGES
* **preview-comment:** add deprecation notice with blog post ([#207](https://github.com/expo/expo-github-action/issues/207))
### New features
* **preview:** add eas update preview sub-action ([#206](https://github.com/expo/expo-github-action/issues/206)) ([f4d6037](https://github.com/expo/expo-github-action/commit/f4d6037f42d672db10e7818c8bd1211fb26a27b3))
### Code changes
* **preview-comment:** add deprecation notice with blog post ([#207](https://github.com/expo/expo-github-action/issues/207)) ([d2b3e6c](https://github.com/expo/expo-github-action/commit/d2b3e6c7848afe984ee32bfad1b05aac374a79e3))
### Other chores
* bump http-cache-semantics from 4.1.0 to 4.1.1 ([#205](https://github.com/expo/expo-github-action/issues/205)) ([b1a8c06](https://github.com/expo/expo-github-action/commit/b1a8c06f1cd42cf6b9dde48c88d08a9421d8768c))
### Documentation changes
* **preview-comment:** emphasize that this sub-action is now deprecated ([f4af238](https://github.com/expo/expo-github-action/commit/f4af2383c1d07f127157450bc44c34e0378587ac))
* update examples for v8 ([#210](https://github.com/expo/expo-github-action/issues/210)) ([3d1cf9a](https://github.com/expo/expo-github-action/commit/3d1cf9ab88f78450c67865a77c36e04be7a0517c))
* update the readme with new examples ([#208](https://github.com/expo/expo-github-action/issues/208)) ([ae5d1a1](https://github.com/expo/expo-github-action/commit/ae5d1a19547903399b413298b87a86df814c5b9b))
## [7.2.1](https://github.com/expo/expo-github-action/compare/7.2.0...7.2.1) (2023-01-04)
### Code changes
* drop rimraf dependency ([#203](https://github.com/expo/expo-github-action/issues/203)) ([830e647](https://github.com/expo/expo-github-action/commit/830e6473278701f5d83324a386c99662dc58e220))
* update actions dependencies ([#202](https://github.com/expo/expo-github-action/issues/202)) ([259d15d](https://github.com/expo/expo-github-action/commit/259d15d85bd6a1444b37b23f5018e9b63d2643f3))
* update dev dependencies ([#204](https://github.com/expo/expo-github-action/issues/204)) ([5a73f07](https://github.com/expo/expo-github-action/commit/5a73f07f497383964411bfd27e03c532c4b78db2))
### Other chores
* bump @actions/core from 1.6.0 to 1.9.1 ([#191](https://github.com/expo/expo-github-action/issues/191)) ([670b449](https://github.com/expo/expo-github-action/commit/670b449e5b2cfd7c093d1ec54d935742ed3a0336))
* bump ansi-regex from 5.0.0 to 5.0.1 ([#198](https://github.com/expo/expo-github-action/issues/198)) ([d63621e](https://github.com/expo/expo-github-action/commit/d63621e22d242a584d4d351448bf052dc47fe53c))
* bump json5 from 1.0.1 to 1.0.2 ([#196](https://github.com/expo/expo-github-action/issues/196)) ([5a8228a](https://github.com/expo/expo-github-action/commit/5a8228a651a211f42988b0732878e6f43ed55f7f))
* bump minimatch from 3.0.4 to 3.1.2 ([#197](https://github.com/expo/expo-github-action/issues/197)) ([5619369](https://github.com/expo/expo-github-action/commit/5619369736dbf3118c004c43dd34f1b0cd01d4dc))
* bump qs from 6.5.2 to 6.5.3 ([#195](https://github.com/expo/expo-github-action/issues/195)) ([3beea56](https://github.com/expo/expo-github-action/commit/3beea56d800947f5f642529f112ddea7eb768c39))
* bump semantic-release from 18.0.1 to 19.0.3 ([#185](https://github.com/expo/expo-github-action/issues/185)) ([079b95e](https://github.com/expo/expo-github-action/commit/079b95e5d39e2dc23018ce96c2c73ce1278841b5))
* bump semver-regex from 3.1.3 to 3.1.4 ([#183](https://github.com/expo/expo-github-action/issues/183)) ([6b82e9e](https://github.com/expo/expo-github-action/commit/6b82e9e52206832cf878b2863e1c369dfb91ae5f))
* rebuild all actions ([e6ba70c](https://github.com/expo/expo-github-action/commit/e6ba70ca50d4eec946753af4518355fb3e8df7dd))
* update workflow actions to latest ([3cecf2e](https://github.com/expo/expo-github-action/commit/3cecf2eb8a1aec28f1de4401423eb501ab09cb1b))
### Documentation changes
* **command:** update readme to fix badge ([#201](https://github.com/expo/expo-github-action/issues/201)) ([2606508](https://github.com/expo/expo-github-action/commit/26065080230b775cbb5a343ebfe866fd85da271e))
* **preview-comment:** add missing permissions in examples ([#187](https://github.com/expo/expo-github-action/issues/187)) ([5848f88](https://github.com/expo/expo-github-action/commit/5848f88b34faf9f069239064e5fcff992266c126))
* update badge urls in the readmes ([#199](https://github.com/expo/expo-github-action/issues/199)) ([8440fd9](https://github.com/expo/expo-github-action/commit/8440fd9605abc8291c6c947f0ecc51c5ad44c5f2))
* update demo workflow to fix checkout issue ([#181](https://github.com/expo/expo-github-action/issues/181)) ([8e2559c](https://github.com/expo/expo-github-action/commit/8e2559c349b0b82eb2c3f1dc622f3ad9d4ed13b6))
* use latest action verisons in readme ([#193](https://github.com/expo/expo-github-action/issues/193)) ([3f0a4b5](https://github.com/expo/expo-github-action/commit/3f0a4b53556cfbd02a236b3e524f5a23397e5693))
## [7.2.0](https://github.com/expo/expo-github-action/compare/7.1.1...7.2.0) (2022-04-07)
### New features
* **comment:** add comment-based action to interact with eas in pulls ([#171](https://github.com/expo/expo-github-action/issues/171)) ([088fd4e](https://github.com/expo/expo-github-action/commit/088fd4e6fdfc0c17a87a176a2a7bee50b18482c9))
### Other chores
* bump minimist from 1.2.5 to 1.2.6 ([#173](https://github.com/expo/expo-github-action/issues/173)) ([72721e5](https://github.com/expo/expo-github-action/commit/72721e5519453138c89882c06954665b116f1dc7))
* clean the repo instead of checking out ([ec1a49b](https://github.com/expo/expo-github-action/commit/ec1a49baeb2ec1c952f1fc96f6c25baaaedeb40e))
* disallow any linting issues for pulls ([#177](https://github.com/expo/expo-github-action/issues/177)) ([b5a8ca7](https://github.com/expo/expo-github-action/commit/b5a8ca7f7ff3dc5ec7126734447ad1451337b81d))
### Documentation changes
* **command:** clean up the readme code example ([0811162](https://github.com/expo/expo-github-action/commit/0811162597bbb2719038d9bac02bd074a5d6d124))
* update the release steps in the contribution guide ([b3b45ee](https://github.com/expo/expo-github-action/commit/b3b45ee53f1b6ce7e1db84a06047941fbea5c236))
## [7.1.1](https://github.com/expo/expo-github-action/compare/7.1.0...7.1.1) (2022-03-17)
### Bug fixes
* package tool escape path on windows ([#169](https://github.com/expo/expo-github-action/issues/169)) ([db9b5ce](https://github.com/expo/expo-github-action/commit/db9b5ce00f55fe6dc5d802d41ffbd6c03cb598e4)), closes [#167](https://github.com/expo/expo-github-action/issues/167)
### Other chores
* add tags syncing to the release workflow ([eb1ffb8](https://github.com/expo/expo-github-action/commit/eb1ffb8b234266a58d5fbfa1343e6fe6adfaf914))
* fix dirty repo preventing tag bump ([7cde8f8](https://github.com/expo/expo-github-action/commit/7cde8f899a0771d310e1d62ee65ce3d625d470ea))
### Documentation changes
* add direct link to expo access tokens ([1f38d16](https://github.com/expo/expo-github-action/commit/1f38d16d01677b6ed60d5358bdf23576538d578b))
* increase visibility of the EXPO_TOKEN link ([#168](https://github.com/expo/expo-github-action/issues/168)) ([9fce70f](https://github.com/expo/expo-github-action/commit/9fce70f38003122ae997201dd07d4cc74830c24e))
* **preview-comment:** update expo-cli version to latest ([4681fcf](https://github.com/expo/expo-github-action/commit/4681fcfc4247a28d47e8dfb17d23a9a0bff22827))
* reword the assumptions on package manager ([459b567](https://github.com/expo/expo-github-action/commit/459b5673d55573b6e620015864c95b6b007f2f5f))
## [7.1.0](https://github.com/expo/expo-github-action/compare/7.0.3...7.1.0) (2022-03-04)
### New features
* add projectDeepLink to template variables ([#165](https://github.com/expo/expo-github-action/issues/165)) ([2603f85](https://github.com/expo/expo-github-action/commit/2603f858e975e61d8b7650b890db57c3afc5c658))
### Other chores
* run authed tests only when auth is available ([5815161](https://github.com/expo/expo-github-action/commit/58151613afb24812ce88afb33ed1a6b3f569128e))
* set major tag version to release commit ([b516013](https://github.com/expo/expo-github-action/commit/b5160133d207c9a70283880b33e34beb157cc7ea))
* skip steps if auth is unavailable ([bb7c723](https://github.com/expo/expo-github-action/commit/bb7c72336b557c49ca0a0e84025e1b4cce23ce2e))
* update github action author name ([#166](https://github.com/expo/expo-github-action/issues/166)) ([520d959](https://github.com/expo/expo-github-action/commit/520d9594e099c7b2475d8b376303466a187bcafa))
## [7.0.3](https://github.com/expo/expo-github-action/compare/7.0.2...7.0.3) (2022-02-14)
### Bug fixes
* improve invalid package version error handling ([#159](https://github.com/expo/expo-github-action/issues/159)) ([94c7d8a](https://github.com/expo/expo-github-action/commit/94c7d8acbd68c7dac4ecde503427c98849039499))
* output error stacktraces in debug mode ([#160](https://github.com/expo/expo-github-action/issues/160)) ([6931e3c](https://github.com/expo/expo-github-action/commit/6931e3c78b432c1b94d84e684da42ecba46044b4))
### Other chores
* always dry run a new release on merge ([#162](https://github.com/expo/expo-github-action/issues/162)) ([3f293ee](https://github.com/expo/expo-github-action/commit/3f293ee480f9d567c1c902848d26a5ca6720266b))
* bump node-fetch from 2.6.1 to 2.6.7 ([#157](https://github.com/expo/expo-github-action/issues/157)) ([839215f](https://github.com/expo/expo-github-action/commit/839215f036182d3534f9b91d4573b9f126f56560))
* fully automate releases ([#164](https://github.com/expo/expo-github-action/issues/164)) ([fbd4450](https://github.com/expo/expo-github-action/commit/fbd44501d896448c3c4ac4e5495bb536614fa3fc))
### Documentation changes
* simplify expo cli versioning to latest ([#161](https://github.com/expo/expo-github-action/issues/161)) ([2e1fe6a](https://github.com/expo/expo-github-action/commit/2e1fe6ac53c6fd536ea5691410d73df35384fd07))
## [7.0.2](https://github.com/expo/expo-github-action/compare/7.0.1...7.0.2) (2022-01-25)
### Code changes
* **preview-comment:** auto-fill the github token ([#156](https://github.com/expo/expo-github-action/issues/156)) ([204dfed](https://github.com/expo/expo-github-action/commit/204dfed23cb6416041ee5c918c7a6e3a5dbf8955))
## [7.0.1](https://github.com/expo/expo-github-action/compare/7.0.0...7.0.1) (2022-01-17)
### Bug fixes
* remove double resolving package versions ([#152](https://github.com/expo/expo-github-action/issues/152)) ([d53d38f](https://github.com/expo/expo-github-action/commit/d53d38f65bc6add70cdb1eb0fb1caadd3eae9ae4))
### Other chores
* run test workflow every day at 15:00 utc ([fd33d59](https://github.com/expo/expo-github-action/commit/fd33d597d339279a12768e1b3c99e051324dc8ba))
### Documentation changes
* explicitly add non interactive flag ([#151](https://github.com/expo/expo-github-action/issues/151)) ([844ea09](https://github.com/expo/expo-github-action/commit/844ea09678511192c3685351e3eedd0c92dd4d7d))
* update comment preview readme header ([7a46a49](https://github.com/expo/expo-github-action/commit/7a46a499ece6b413f5c6fb05951606c95546e03e))
* update step title in example with eas cli ([7934883](https://github.com/expo/expo-github-action/commit/79348837ee612ad7393e64b3ed04a93519982fe6))
* update workflow badge with test status ([99593b8](https://github.com/expo/expo-github-action/commit/99593b87875c2d5cb38c2b111cf8bdf85ab54b1c))
## [7.0.0](https://github.com/expo/expo-github-action/compare/6.0.0...7.0.0) (2022-01-15)
### ⚠ BREAKING CHANGES
* some input options are deprecated
- Username and password authentication is dropped in favor of tokens
- Custom cache keys are dropped
- Custom install error handler is dropped
### New features
* add comment qr code subaction ([#149](https://github.com/expo/expo-github-action/issues/149)) ([4648212](https://github.com/expo/expo-github-action/commit/464821230fc5d4c4d848dcf20c5146bf99fd38ce))
### Bug fixes
* use which instead of npx to authenticate ([#147](https://github.com/expo/expo-github-action/issues/147)) ([c5d2c0f](https://github.com/expo/expo-github-action/commit/c5d2c0f8c034b625147bc4b2ccd6d14a29412a1d))
### Code changes
* allow multiple entrypoints for different sub-actions ([#121](https://github.com/expo/expo-github-action/issues/121)) ([8a7306a](https://github.com/expo/expo-github-action/commit/8a7306a97854f9b2853a614d3302061922471a8f))
* clean up setup action ([#146](https://github.com/expo/expo-github-action/issues/146)) ([439ff4c](https://github.com/expo/expo-github-action/commit/439ff4c9aa508ea6f38364859109267d8f26fcf1))
* enable caches by default ([#148](https://github.com/expo/expo-github-action/issues/148)) ([72d4067](https://github.com/expo/expo-github-action/commit/72d406754f3b10aeff9b54a2b3e3e833d4cd3c9f))
* replace libnpm with npm cli ([#139](https://github.com/expo/expo-github-action/issues/139)) ([4f28493](https://github.com/expo/expo-github-action/commit/4f28493708de28b8eebd418702ec8eb93660927d))
* roll back to ncc because of swc bundling issues ([#144](https://github.com/expo/expo-github-action/issues/144)) ([3007741](https://github.com/expo/expo-github-action/commit/3007741466570f1bf8f3cf7417e56c7aab50b60a))
* update the outdated workflows and use node 16 ([#138](https://github.com/expo/expo-github-action/issues/138)) ([3134e26](https://github.com/expo/expo-github-action/commit/3134e26b3a41fcc058c60c0f34f87c8d44189d3c))
* upgrade to node 16 github actions runtime ([#137](https://github.com/expo/expo-github-action/issues/137)) ([3bf9181](https://github.com/expo/expo-github-action/commit/3bf9181edb0df2dcaf9112b50c9d2a9996db8a32))
* use assert instead of if statements ([#150](https://github.com/expo/expo-github-action/issues/150)) ([e4ef6e6](https://github.com/expo/expo-github-action/commit/e4ef6e6950f602a6277c6e35dbd36ca3fa8ccb8e))
* use boolean input instead of manual conversion ([#127](https://github.com/expo/expo-github-action/issues/127)) ([f1fe877](https://github.com/expo/expo-github-action/commit/f1fe8775927c95727008dfe31f580c122913a745))
* use spaces for indentation ([#126](https://github.com/expo/expo-github-action/issues/126)) ([ff2ff0f](https://github.com/expo/expo-github-action/commit/ff2ff0f980f70d0047d10637dd5ef915128199ec))
* use swc pack instead of ncc ([#140](https://github.com/expo/expo-github-action/issues/140)) ([3f9e947](https://github.com/expo/expo-github-action/commit/3f9e9479631f03a941ecfebdcd0351ef57f59a2e))
### Other chores
* add basic e2e test workflow for main action ([#141](https://github.com/expo/expo-github-action/issues/141)) ([414c169](https://github.com/expo/expo-github-action/commit/414c1693e6183ad92723fca4517181b21f93eaf0))
* add manual trigger to the tests ([4908a48](https://github.com/expo/expo-github-action/commit/4908a48f1b5e1ccff9589c0fcaafe4223d53bee1))
* always use lf for build files ([#122](https://github.com/expo/expo-github-action/issues/122)) ([a9b9cfe](https://github.com/expo/expo-github-action/commit/a9b9cfef50ba2c1d38fff1a679c554eb52edc25e))
* bump semver-regex from 3.1.2 to 3.1.3 ([#114](https://github.com/expo/expo-github-action/issues/114)) ([50c0ef9](https://github.com/expo/expo-github-action/commit/50c0ef9028d51bd25197c54102438f494c265438))
* bump tar from 4.4.13 to 4.4.19 ([#112](https://github.com/expo/expo-github-action/issues/112)) ([5f5673b](https://github.com/expo/expo-github-action/commit/5f5673ba7744a05d9c499fbca7b4e503aabef5a1))
* bump tmpl from 1.0.4 to 1.0.5 ([#115](https://github.com/expo/expo-github-action/issues/115)) ([92ec93f](https://github.com/expo/expo-github-action/commit/92ec93fa37744783ec10149e7d755d7181649f8a))
* clean up dependencies and eslint rules ([#145](https://github.com/expo/expo-github-action/issues/145)) ([3ae7999](https://github.com/expo/expo-github-action/commit/3ae799926e78cfecd54e965c77d1c1fb49cac45b))
* clean up master references in release and workflows ([#104](https://github.com/expo/expo-github-action/issues/104)) ([a2d9b1c](https://github.com/expo/expo-github-action/commit/a2d9b1cadf463af1e6b4025af3edc99cf7f4b5a0))
* clean up tsconfig and eslint rules ([#123](https://github.com/expo/expo-github-action/issues/123)) ([c20146f](https://github.com/expo/expo-github-action/commit/c20146f3b7513ae3a3df3dead651d2a2dea988af))
* lint root files with prettier and eslint ([#125](https://github.com/expo/expo-github-action/issues/125)) ([1cfa7bb](https://github.com/expo/expo-github-action/commit/1cfa7bbd9ed623e2e40406addab4bff2c9a7b2fd))
* rebuild project ([45b79a0](https://github.com/expo/expo-github-action/commit/45b79a05ef7496339d33d03fdd7755ef76c7038b))
* rebuild project after dependency bumps ([b099f17](https://github.com/expo/expo-github-action/commit/b099f17d588e23df069b60d39ca1e21327066a4f))
* remove husky and improve ci build message ([#128](https://github.com/expo/expo-github-action/issues/128)) ([39b0d36](https://github.com/expo/expo-github-action/commit/39b0d361f7d97ef1a71a02495463d1e93a72093a))
* simplify review and update build detection ([#142](https://github.com/expo/expo-github-action/issues/142)) ([ee415b0](https://github.com/expo/expo-github-action/commit/ee415b027afce4c15cabcc6fa2f8368530a36c08))
* update `setup-node` action to `v2` release ([#119](https://github.com/expo/expo-github-action/issues/119)) ([3b3e6b8](https://github.com/expo/expo-github-action/commit/3b3e6b8031b898cdf0bc59488d541d90748954b9))
* update semantic release to update the build ([354dc08](https://github.com/expo/expo-github-action/commit/354dc0891761b8d1fc092ec5e9bb3b5ca1922090))
* update the action manifest ([633cdf0](https://github.com/expo/expo-github-action/commit/633cdf0ac9f283f5a7010fef11bfda9174278054))
* upgrade dev dependencies and rebuild action ([#120](https://github.com/expo/expo-github-action/issues/120)) ([186ef00](https://github.com/expo/expo-github-action/commit/186ef0011a259a7b2c745f8cf2743358ca112530))
### Documentation changes
* fix broken sup element in readme ([0b1822a](https://github.com/expo/expo-github-action/commit/0b1822a93580171a0582013a0cf7848cf3503ed7))
* fix github capitalization ([#116](https://github.com/expo/expo-github-action/issues/116)) ([b602469](https://github.com/expo/expo-github-action/commit/b60246939fba50e600b11596b4b1029091017b7c))
* fix unsplash comment on pr branch reference ([#110](https://github.com/expo/expo-github-action/issues/110)) ([f14253e](https://github.com/expo/expo-github-action/commit/f14253ea9c17296e843610c7b8fad4e13c7abda0))
* update default values in readme ([c2f11d2](https://github.com/expo/expo-github-action/commit/c2f11d2d513b75ec0a00c6bf60e5d0e275c3a8af))
* update expo.io links to expo.dev ([#111](https://github.com/expo/expo-github-action/issues/111)) ([1c8e5a2](https://github.com/expo/expo-github-action/commit/1c8e5a21e9689cedd8fbcf61e50a3f4700b6bc41))
* update node version reference in readme ([#107](https://github.com/expo/expo-github-action/issues/107)) ([3ba667b](https://github.com/expo/expo-github-action/commit/3ba667b43f1e103a1c64e92a60d7c36bd0ad10b2))
* update readme and contributing guides ([521de72](https://github.com/expo/expo-github-action/commit/521de724fcb79235773c077e870d7c2293ab51cb))
* use `main` branch to update `v{major}` tag ([#103](https://github.com/expo/expo-github-action/issues/103)) ([def44e2](https://github.com/expo/expo-github-action/commit/def44e2c77a39f5bd48dbb07adec509137afcf67))
## [6.0.0](https://github.com/expo/expo-github-action/compare/5.5.1...6.0.0) (2021-06-22)
### ⚠ BREAKING CHANGES
* GitHub Action inputs are changed to allow both Expo and EAS CLI.
### New features
* add support for eas cli installs ([#98](https://github.com/expo/expo-github-action/issues/98)) ([04692c3](https://github.com/expo/expo-github-action/commit/04692c3cb1f7ad977f62841ca0bb175c903f653f))
### Other chores
* update node to 14 and 16 in ci ([#100](https://github.com/expo/expo-github-action/issues/100)) ([a03876e](https://github.com/expo/expo-github-action/commit/a03876e3c556bea147f2be007eac911bf78c9b23))
### Documentation changes
* add commands to contirbuting guide for updating v{major} tags ([1b57c37](https://github.com/expo/expo-github-action/commit/1b57c37e9bdfe92e183befb3595debc64da672f0))
* update readme for v6 release ([#101](https://github.com/expo/expo-github-action/issues/101)) ([8b43bae](https://github.com/expo/expo-github-action/commit/8b43bae073f280d4fa76aa174642ad46febe985c))
* update upstream reference in contributing guide ([76ce4de](https://github.com/expo/expo-github-action/commit/76ce4de80ea89b343404cdabadc922882af80487))
## [5.5.1](https://github.com/expo/expo-github-action/compare/5.5.0...5.5.1) (2021-06-17)
### Bug fixes
* revert to node 12 for the action ([2662a5f](https://github.com/expo/expo-github-action/commit/2662a5f0dec42d7a9c66b55f8ce937f37aaac9b4))
## [5.5.0](https://github.com/expo/expo-github-action/compare/5.4.0...5.5.0) (2021-06-17)
### New features
* switch to node 14 for the action itself ([f13b0ea](https://github.com/expo/expo-github-action/commit/f13b0ea032efcf2e6689743879af6b3e1c72201d))
### Bug fixes
* add support for environments without remote cache ([#91](https://github.com/expo/expo-github-action/issues/91)) ([9c0e696](https://github.com/expo/expo-github-action/commit/9c0e6962510d4e08c6429cac42f624c563675ee1))
### Code changes
* simplify typescript config with community config ([#94](https://github.com/expo/expo-github-action/issues/94)) ([da4e754](https://github.com/expo/expo-github-action/commit/da4e75428b7c5ffd16e8b2c698f590313c741621))
* update all dependencies to latest versions ([#93](https://github.com/expo/expo-github-action/issues/93)) ([6bc0bed](https://github.com/expo/expo-github-action/commit/6bc0bedbc75bb0d6743e4accf032cd01348d6775))
### Other chores
* add semantic release for easy versioning ([#95](https://github.com/expo/expo-github-action/issues/95)) ([6354b0a](https://github.com/expo/expo-github-action/commit/6354b0a0477a72375cee808d8a5b6006d6e86e77))
* fix the allowed branches for semenatic release ([6b8c488](https://github.com/expo/expo-github-action/commit/6b8c488fd6239c9a76d7f95355a58bc8b2a20ac4))
* mock the github actions warning to avoid leaking annotations ([#96](https://github.com/expo/expo-github-action/issues/96)) ([a11a47a](https://github.com/expo/expo-github-action/commit/a11a47a3e8735a206eed196499604322b0bdc877))
* tweak the release workflow ([79ebfbc](https://github.com/expo/expo-github-action/commit/79ebfbc3b83497f443fd65eb5bd33484e5519f64))
### Documentation changes
* add missing release step to contributing guide ([04e3b32](https://github.com/expo/expo-github-action/commit/04e3b32e94e3abe9cd65d37c57a0cead55186970))
## [5.4.0](https://github.com/expo/expo-github-action/compare/5.3.1...5.4.0) (2021-01-12)
### New features
* improve error handling with update check ([#76](https://github.com/expo/expo-github-action/pull/76)) ([917e072](https://github.com/expo/expo-github-action/commit/917e072))
### Code refactors
* use official actions cache package instead of cypress fork ([#62](https://github.com/expo/expo-github-action/pull/62)) ([0eb46e9](https://github.com/expo/expo-github-action/commit/0eb46e9))
* output cache errors with actions core ([187c4ad](https://github.com/expo/expo-github-action/commit/187c4ad))
* group output by steps for readability ([#70](https://github.com/expo/expo-github-action/pull/70)) ([75b743c](https://github.com/expo/expo-github-action/commit/75b743c))
* update all dev dependencies to latest version ([#71](https://github.com/expo/expo-github-action/pull/71)) ([ed7f67d](https://github.com/expo/expo-github-action/commit/ed7f67d))
### Documentation changes
* update the cache description without the fork ([13d7820](https://github.com/expo/expo-github-action/commit/13d7820))
* update readme to latest expo cli and node ([#77](https://github.com/expo/expo-github-action/pull/77)) ([6c0f4d7](https://github.com/expo/expo-github-action/commit/6c0f4d7))
### Other chores
* update all dependencies to latest versions ([#78](https://github.com/expo/expo-github-action/pull/78)) ([4ec7251](https://github.com/expo/expo-github-action/commit/4ec7251))
## [5.3.1](https://github.com/expo/expo-github-action/compare/5.3.0...5.3.1) (2020-10-20)
### Other chores
* bump @actions/core from 1.2.4 to 1.2.6 ([#63](https://github.com/expo/expo-github-action/pull/63)) ([b807fa6](https://github.com/expo/expo-github-action/commit/b807fa6))
## [5.3.0](https://github.com/expo/expo-github-action/compare/5.2.0...5.3.0) (2020-09-19)
### New features
* add expo token authentication method ([#57](https://github.com/expo/expo-github-action/pull/57)) ([1c36889](https://github.com/expo/expo-github-action/commit/1c36889))
## [5.2.0](https://github.com/expo/expo-github-action/compare/5.1.1...5.2.0) (2020-07-14)
### Bug fixes
* proper space between icon and text ([#50](https://github.com/expo/expo-github-action/pull/50)) ([b8a49f4](https://github.com/expo/expo-github-action/commit/b8a49f4))
### Code refactors
* use github actions instead of circle ([#54](https://github.com/expo/expo-github-action/pull/54)) ([d3602b9](https://github.com/expo/expo-github-action/commit/d3602b9))
### Documentation changes
* fix grammar and link in readme ([#53](https://github.com/expo/expo-github-action/pull/53)) ([6ac67f0](https://github.com/expo/expo-github-action/commit/6ac67f0))
* update build badge in readme ([#56](https://github.com/expo/expo-github-action/pull/56)) ([050b701](https://github.com/expo/expo-github-action/commit/050b701))
### Other chores
* upgrade all dependencies to latest version ([#55](https://github.com/expo/expo-github-action/pull/55)) ([404bd09](https://github.com/expo/expo-github-action/commit/404bd09))
## [5.1.1](https://github.com/expo/expo-github-action/compare/5.1.0...5.1.1) (2020-06-10)
### Bug fixes
* use inputs metadata key ([#49](https://github.com/expo/expo-github-action/pull/49)) ([71dfeab](https://github.com/expo/expo-github-action/commit/71dfeab))
## [5.1.0](https://github.com/expo/expo-github-action/compare/5.0.0...5.1.0) (2020-05-08)
### New features
* fail when provided credentials are incorrect ([#43](https://github.com/expo/expo-github-action/pull/43)) ([a7b6ce4](https://github.com/expo/expo-github-action/commit/a7b6ce4))
### Bug fixes
* remove custom and add global error handling ([#46](https://github.com/expo/expo-github-action/pull/46)) ([a4955da](https://github.com/expo/expo-github-action/commit/a4955da))
### Test changes
* check if build is up to date ([#45](https://github.com/expo/expo-github-action/pull/45)) ([cb49096](https://github.com/expo/expo-github-action/commit/cb49096))
* add missing cache unit tests ([#44](https://github.com/expo/expo-github-action/pull/44)) ([4279327](https://github.com/expo/expo-github-action/commit/4279327))
### Other chores
* update dependencies and configuration ([#42](https://github.com/expo/expo-github-action/pull/42)) ([32b5f9c](https://github.com/expo/expo-github-action/commit/32b5f9c))
* **deps**: bump acorn from 5.7.3 to 5.7.4 ([#37](https://github.com/expo/expo-github-action/pull/37)) ([4aaf05f](https://github.com/expo/expo-github-action/commit/4aaf05f))
## [5.0.0](https://github.com/expo/expo-github-action/compare/4.1.0...5.0.0) (2019-12-31)
### BREAKING CHANGES
* use yarn by default instead of npm ([#32](https://github.com/expo/expo-github-action/pull/32)) ([2de5b8c3](https://github.com/expo/expo-github-action/commit/2de5b8c))
* use ncc to compile scripts ([#31](https://github.com/expo/expo-github-action/pull/31)) ([48288d58](https://github.com/expo/expo-github-action/commit/48288d5))
### New features
* implement caching using github actions cache ([#35](https://github.com/expo/expo-github-action/pull/35)) ([69801f0a](https://github.com/expo/expo-github-action/commit/69801f0))
### Code refactors
* move index code to run ([#33](https://github.com/expo/expo-github-action/pull/33)) ([f80ef1f6](https://github.com/expo/expo-github-action/commit/f80ef1f))
* use yarn by default instead of npm ([#32](https://github.com/expo/expo-github-action/pull/32)) ([2de5b8c3](https://github.com/expo/expo-github-action/commit/2de5b8c))
* use ncc to compile scripts ([#31](https://github.com/expo/expo-github-action/pull/31)) ([48288d58](https://github.com/expo/expo-github-action/commit/48288d5))
* make logs more visible ([#30](https://github.com/expo/expo-github-action/pull/30)) ([12f58a21](https://github.com/expo/expo-github-action/commit/12f58a2))
* update all dependencies to latest versions ([#29](https://github.com/expo/expo-github-action/pull/29)) ([7776e33f](https://github.com/expo/expo-github-action/commit/7776e33))
* use circleci instead of github actions ([#28](https://github.com/expo/expo-github-action/pull/28)) ([e5677e1f](https://github.com/expo/expo-github-action/commit/e5677e1))
### Documentation changes
* update the default packager value in action ([#34](https://github.com/expo/expo-github-action/pull/34)) ([3ac4a96c](https://github.com/expo/expo-github-action/commit/3ac4a96))
### Other chores
* **deps**: bump handlebars from 4.2.0 to 4.5.3 ([#27](https://github.com/expo/expo-github-action/pull/27)) ([4aa2c230](https://github.com/expo/expo-github-action/commit/4aa2c23))
## [4.1.0](https://github.com/expo/expo-github-action/compare/4.0.1...4.1.0) (2019-10-30)
### Bug fixes
* use cmd suffix when authenticating on windows ([831bcb1](https://github.com/expo/expo-github-action/commit/831bcb1))
### Documentation changes
* remove beta warning just before general availability ([68a2de0](https://github.com/expo/expo-github-action/commit/68a2de0))
### Other chores
* update all dependencies to latest version ([16d4b15](https://github.com/expo/expo-github-action/commit/16d4b15))
* enable workflow for pull requests ([8ff07e0](https://github.com/expo/expo-github-action/commit/8ff07e0))
## [4.0.0](https://github.com/expo/expo-github-action/compare/3.0.0...4.0.0) (2019-09-29)
### New features
* add github workflow for ci ([929a76c](https://github.com/expo/expo-github-action/commit/929a76c))
* add new expo action cli install concept ([98b1bea](https://github.com/expo/expo-github-action/commit/98b1bea))
* use new action metadata format ([81344e4](https://github.com/expo/expo-github-action/commit/81344e4))
### Bug fixes
* add build and node node modules before commit ([00692c4](https://github.com/expo/expo-github-action/commit/00692c4))
* add build and node node modules in husky hook ([b2929e3](https://github.com/expo/expo-github-action/commit/b2929e3))
### Code refactors
* remove travis config and base images ([e72ddd8](https://github.com/expo/expo-github-action/commit/e72ddd8))
* move entry point to expo as proxy ([caf499b](https://github.com/expo/expo-github-action/commit/caf499b))
* update proxy for non-interactive mode and help links ([5cfaee2](https://github.com/expo/expo-github-action/commit/5cfaee2))
### Documentation changes
* update documentation for the new action ([38e963b](https://github.com/expo/expo-github-action/commit/38e963b))
* simplify and link the environment variables info ([26c734a](https://github.com/expo/expo-github-action/commit/26c734a))
* replace aliased email with normal email ([f3bc71a](https://github.com/expo/expo-github-action/commit/f3bc71a))
* write about entry point proxy and restructure for easy access ([4766fa8](https://github.com/expo/expo-github-action/commit/4766fa8))
* update license dates ([89005bc](https://github.com/expo/expo-github-action/commit/89005bc))
### Other chores
* add linter and fix all files ([04cd479](https://github.com/expo/expo-github-action/commit/04cd479))
* add husky for repository deployments ([cec6e50](https://github.com/expo/expo-github-action/commit/cec6e50))
* add all missing tests ([22df52e](https://github.com/expo/expo-github-action/commit/22df52e))
## [3.0.0](https://github.com/expo/expo-github-action/compare/2.3.2...3.0.0) (2019-07-23)
## Code refactors
* run travis in parallel for expo cli v2 and v3 ([882d5f9](https://github.com/expo/expo-github-action/commit/882d5f9))
* add latest expo-cli v3 but keep v2 images updated ([cd33736](https://github.com/expo/expo-github-action/commit/cd33736))
## [2.3.2](https://github.com/expo/expo-github-action/compare/2.3.1...2.3.2) (2019-05-09)
### Bug fixes
* use yarn to install expo cli globally ([9fd3635](https://github.com/expo/expo-github-action/commit/9fd3635))
## [2.3.1](https://github.com/expo/expo-github-action/compare/2.3.0...2.3.1) (2019-04-17)
### Bug fixes
* increase node memory limit to 4gb ([4c25ef9](https://github.com/expo/expo-github-action/commit/4c25ef9))
### Documentation changes
* add note about overwriting node options ([aa752f2](https://github.com/expo/expo-github-action/commit/aa752f2))
* add extra link to base image in description ([fa42241](https://github.com/expo/expo-github-action/commit/fa42241))
* rename build action to remove ambiguity with other examples ([92beb0f](https://github.com/expo/expo-github-action/commit/92beb0f))
### Other chores
* make travis build the action to double check the docker file ([698a1c6](https://github.com/expo/expo-github-action/commit/698a1c6))
## [2.3.0](https://github.com/expo/expo-github-action/compare/2.2.0...2.3.0) (2019-04-14)
### New features
* build docker base image from travis ci ([0ce8eff](https://github.com/expo/expo-github-action/commit/0ce8eff))
### Code refactors
* update base image labels ([4e2fd4d](https://github.com/expo/expo-github-action/commit/4e2fd4d))
* remove unofficial from the name ([b8ec502](https://github.com/expo/expo-github-action/commit/b8ec502))
* remove deprecated subactions ([0cfae07](https://github.com/expo/expo-github-action/commit/0cfae07))
### Documentation changes
* add scheduled builds info and update examples ([a801b83](https://github.com/expo/expo-github-action/commit/a801b83))
* add travis link to base image builds ([2c88f88](https://github.com/expo/expo-github-action/commit/2c88f88))
* add 650 industries aka expo as license holder ([3f55e8c](https://github.com/expo/expo-github-action/commit/3f55e8c))
* add 650 industries aka expo as license holder ([fe86cd6](https://github.com/expo/expo-github-action/commit/fe86cd6))
* update references to action repository ([617ebf8](https://github.com/expo/expo-github-action/commit/617ebf8))
* use latest npm action because of an install failure ([e6a3b5c](https://github.com/expo/expo-github-action/commit/e6a3b5c))
## [2.2.0](https://github.com/expo/expo-github-action/compare/2.1.0...2.2.0) (2019-04-10)
### Code refactors
* use better expo cli variables prefix ([cd75584](https://github.com/expo/expo-github-action/commit/cd75584))
### Documentation changes
* pin actions to versions for future releases ([3c76843](https://github.com/expo/expo-github-action/commit/3c76843))
## [2.1.0](https://github.com/expo/expo-github-action/compare/2.0.0...2.1.0) (2019-04-10)
### Code refactors
* authenticate in main action if possible ([a401e30](https://github.com/expo/expo-github-action/commit/a401e30))
* remove extraneous commands from base image ([a90ce59](https://github.com/expo/expo-github-action/commit/a90ce59))
### Documentation changes
* add deprecation notice on all sub-actions ([b5a0311](https://github.com/expo/expo-github-action/commit/b5a0311))
* add examples and more contextual info ([9625bb1](https://github.com/expo/expo-github-action/commit/9625bb1))
* fix typo in documentation and use link references ([48bbaf3](https://github.com/expo/expo-github-action/commit/48bbaf3))
* update license to 2019 ([7596f6b](https://github.com/expo/expo-github-action/commit/7596f6b))
### Other chores
* add some issue templates to github ([9aec1f5](https://github.com/expo/expo-github-action/commit/9aec1f5))
## [2.0.0](https://github.com/expo/expo-github-action/compare/906c910...2.0.0) (2019-04-02)
### New features
* add basic ios build action ([3a81415](https://github.com/expo/expo-github-action/commit/3a81415))
* add basic web build action ([3d4bdb6](https://github.com/expo/expo-github-action/commit/3d4bdb6))
* add basic android build action ([9105177](https://github.com/expo/expo-github-action/commit/9105177))
* add new publish action ([56563f2](https://github.com/expo/expo-github-action/commit/56563f2))
* add login entrypoint ([252f16d](https://github.com/expo/expo-github-action/commit/252f16d))
* add github actions implemented image for expo cli ([864b9bb](https://github.com/expo/expo-github-action/commit/864b9bb))
* add base image with documentation and licenses ([c43e5c3](https://github.com/expo/expo-github-action/commit/c43e5c3))
### Code refactors
* tag all buid actions as unofficial for release ([ed597e5](https://github.com/expo/expo-github-action/commit/ed597e5))
* simplify publish action and remove extraneous entrypoint ([61d0c21](https://github.com/expo/expo-github-action/commit/61d0c21))
* tag all actions as unofficial for release to marketplace ([f56443a](https://github.com/expo/expo-github-action/commit/f56443a))
* expand existing login with documentation and proper icon ([d2e2a6d](https://github.com/expo/expo-github-action/commit/d2e2a6d))
* move cli to root as default ([4545e44](https://github.com/expo/expo-github-action/commit/4545e44))
* expand existing login with documentation and proper icon ([923ed34](https://github.com/expo/expo-github-action/commit/923ed34))
* remove third party notice until its updated ([f4fc39a](https://github.com/expo/expo-github-action/commit/f4fc39a))
* use full node version instead of alpine ([a019c94](https://github.com/expo/expo-github-action/commit/a019c94))
### Documentation changes
* add link to login from publish action ([5b7564c](https://github.com/expo/expo-github-action/commit/5b7564c))
* add custom cli command action ([4cf38f9](https://github.com/expo/expo-github-action/commit/4cf38f9))
* add do not use in production warning ([8291794](https://github.com/expo/expo-github-action/commit/8291794))
* add basic repository description ([906c910](https://github.com/expo/expo-github-action/commit/906c910))
### Other chores
* remove the cli from name ([ab9265b](https://github.com/expo/expo-github-action/commit/ab9265b))
+141
View File
@@ -0,0 +1,141 @@
# Claude Development Guidelines
## Code Style Preferences
### Comments
- **Minimal comments**: Only add comments when they provide meaningful context
- Avoid redundant comments that simply describe what the code does
- Examples:
```typescript
// ❌ Bad - redundant
// Create fingerprint with platform ios and artifacts
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
fingerprint: { sources: [], hash: 'hash1' },
platform: 'ios',
});
// ✅ Good - no unnecessary comments
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
fingerprint: { sources: [], hash: 'hash1' },
platform: 'ios',
});
```
### Test Organization
- Use dedicated `describe` blocks for complex functions with multiple test cases
- Group related tests logically within describe blocks
- Prefer explicit method calls over hidden complexity in helper functions
### Database/API Design
- Favor explicit method calls over hidden side effects in parameters
- Example refactoring pattern:
```typescript
// ❌ Before - complex parameter with side effects
await upsertFingerprintByGitCommitHashAsync('gitHash', {
fingerprint: { sources: [], hash: 'hash1' },
githubArtifacts: [{ ... }] // Hidden complexity
});
// ✅ After - explicit and clear
await upsertFingerprintByGitCommitHashAsync('gitHash', {
fingerprint: { sources: [], hash: 'hash1' }
});
const fingerprint = await getEntityFromGitCommitHashAsync('gitHash');
const artifactsManager = getArtifactsManager();
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprint.id,
// ... explicit parameters
});
```
## Testing Patterns
### Test Structure for Complex Functions
```typescript
describe('functionName', () => {
it('should handle basic functionality', async () => {
// Test basic case
});
it('should handle edge case A', async () => {
// Test specific edge case
});
it('should return null when conditions not met', async () => {
// Test negative cases
});
it('should prioritize correctly when multiple matches exist', async () => {
// Test ordering/priority logic
});
});
```
### Database Testing Best Practices
- Use explicit `insertArtifactAsync` calls rather than complex parameters
- Test both positive and negative cases
- Verify ordering behavior with multiple records
- Test platform matching logic thoroughly
## SQL Query Design
### Platform Matching Logic
When implementing platform-aware queries, use AND logic for strict matching:
```sql
-- ✅ Correct - both artifact AND fingerprint platform must align
WHERE f.fingerprint_hash = ? AND (ga.platform = ? AND (f.platform = ? OR f.platform IS NULL))
-- ❌ Incorrect - too permissive
WHERE f.fingerprint_hash = ? AND (ga.platform = ? OR (f.platform = ? OR f.platform IS NULL))
```
## Type Safety
### Parameter Design
- Use optional parameters with `undefined` rather than explicit `null` where possible
- Remove unused methods to keep API surface clean
- Prefer strongly typed interfaces over generic objects
## Development Commands
### Type Checking
```bash
bun run tsc
```
### Testing
```bash
bun test src/fingerprint/__tests__/FingerprintDbManager.test.ts
```
## Recent Refactoring Lessons
### Function Consolidation (2024-09-30)
Successfully refactored fingerprint database functions:
**Removed:**
- `getGitHubArtifactsForFingerprintAsync`
- `getFirstEntityWithGitHubArtifactsFromFingerprintHashAsync`
- `upsertArtifactAsync` (unused)
- `githubArtifacts` parameter from `upsertFingerprintByGitCommitHashAsync`
**Added:**
- `getFirstGitHubArtifactAsync(fingerprintHash: string, platform: string)`
- `getArtifactsManager()` helper method
**Key SQL Logic:**
```sql
SELECT ga.* FROM fingerprint f
JOIN github_artifacts ga ON f.id = ga.fingerprint_id
WHERE f.fingerprint_hash = ?
AND (ga.platform = ? AND (f.platform = ? OR f.platform IS NULL))
ORDER BY f.id ASC, ga.id ASC
LIMIT 1
```
This refactoring improved:
- **Separation of concerns**: Fingerprint management vs artifact management
- **Type safety**: Removed complex nested parameters
- **API clarity**: Explicit method calls vs hidden side effects
- **Performance**: Single query instead of multiple lookups
-59
View File
@@ -1,59 +0,0 @@
# Contributing to Expo GitHub Action
## 📦 Download and Setup
1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device. (`git remote add upstream [email protected]:expo/expo-github-action.git` 😉)
2. Make sure you have the following packages globally installed on your system:
- [node](https://nodejs.org/) (active Node LTS or higher is recommended)
- [yarn](https://yarnpkg.com/)
3. Install the Node packages (`yarn install`)
## 🏎️ Running a custom version
To try out your changes with GitHub Action, you have [to reference your fork and/or branch or commit reference](https://docs.github.com/en/actions/learn-github-actions/finding-and-customizing-actions#using-release-management-for-your-custom-actions) in the workflow you want to try. After that, you have two options:
1. Run the workflow in GitHub Actions itself by triggering your workflow.
2. Run the workflow locally with [nektos/act](https://github.com/nektos/act).
## 🧪 Testing
Testing is done using [Jest](https://jestjs.io/https://jestjs.io/). Run `yarn test` to run Jest.
If your PR is ready, run the **test** workflow to test the workflows on all supported OS system.
## 📝 Writing a Commit Message
> If this is your first time committing to a large public repo, you could look through this neat tutorial: ["How to Write a Git Commit Message"](https://chris.beams.io/posts/git-commit/)
Commit messages are formatted using the [Conventional Commits](https://www.conventionalcommits.org/) format. You can take a look at [`.releaserc.js`](./.releaserc.js) for the allowed commit types.
```
docs: fix typo in xxx
feature: add support for SDK 40
chore: add test-case for custom completions
fix: improve logging for errors
refactor: update loading icon
```
## 🔎 Before Submitting a PR
To get your PR merged as fast as possible, please make sure you have done the following:
- Run `yarn lint --fix` to fix the formatting of the code. Ensure that `yarn lint` succeeds without errors or warnings.
- Run `yarn test` to make sure all normal use cases are passing.
- Run `yarn build` to ensure the build is up-to-date and runs correctly and without errors or warnings.
## 🚀 Releasing a new version
To release a new version for GitHub Actions, we have to create a new release in GitHub. You can run the `Release` workflow to generate a new version, changelog, and GitHub release.
That workflow also bumps up the major version tag, like `v7`. In cases of failure, you could run this manually.
```bash
$ git checkout main
$ git fetch --tags && git pull
$ git tag --force v{major}
$ git push --force --tags
```
When the release is fully tagged and ready, we still need to submit it to the marketplace. You can do that by editing the published version on [GitHub's release page](https://github.com/expo/expo-github-action/releases). Just saving it again notifies the marketplace of the new version.
-23
View File
@@ -1,23 +0,0 @@
# The MIT License (MIT)
Copyright (c) 2019-present Cedric van Putten <me@bycedric.com>
Copyright (c) 2019-present 650 Industries, Inc. (aka Expo)
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
+25 -205
View File
@@ -1,220 +1,40 @@
<div align="center">
<h1>expo-github-action</h1>
<p>Publish, build or manage your <a href="https://github.com/expo/expo">Expo</a> app with GitHub Actions!</p>
<h1>expo/actions</h1>
<p>A collection of GitHub Actions for Expo projects</p>
</div>
<p align="center">
<a href="https://github.com/expo/expo-github-action/releases" title="Latest release">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=49505A">
<img alt="Latest release" src="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=D1D5DA" />
</picture>
</a>
<a href="https://github.com/expo/expo-github-action/actions" title="Workflow status">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=49505A">
<img alt="Workflow status" src="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=D1D5DA" />
</picture>
</a>
</p>
<p align="center">
<a href="#configuration-options"><b>Usage</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#example-workflows"><b>Examples</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#things-to-know"><b>Caveats</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="./CHANGELOG.md"><b>Changelog</b></a>
</p>
<br />
## What's inside?
## Actions
With this Expo action, you have full access to [Expo CLI][link-expo-cli] and [EAS CLI][link-eas-cli].
It lets you automate the `expo publish` or `eas build` commands, leaving you with more time to work on your project.
Some additional features are included to make the usage of this action as simple as possible, like caching and authentication.
### [`expo/actions/fingerprint`](./fingerprint#readme)
## Configuration options
A GitHub Action that checks project fingerprinting for pull requests using [`@expo/fingerprint`](https://www.npmjs.com/package/@expo/fingerprint).
> Create your [`EXPO_TOKEN`][link-expo-token] GitHub secret.
## Contributing
This action is customizable through variables defined in the [`action.yml`](action.yml).
Here is a summary of all the input options you can use.
All GitHub Actions in this repository are open-source and contributions are welcome.
To get up and running with this repository locally, follow these steps:
| variable | default | description |
| ------------------ | ------- | --------------------------------------------------------------------------------------------- |
| **expo-version** | - | Expo CLI version to install _(skips when omitted)_ |
| **expo-cache** | `true` | If it should use the GitHub actions cache ([read more](#using-the-built-in-cache)) |
| **eas-version** | - | EAS CLI version to install _(skips when omitted)_ |
| **eas-cache** | `true` | If it should use the GitHub actions cache ([read more](#using-the-built-in-cache)) |
| **packager** | `yarn` | Package manager to use _(e.g. `bun`, `yarn`, or `npm`)_ |
| **token** | - | Token of your Expo account - [get your token][link-expo-token] _(use with [secrets][link-actions-secrets])_ |
| **patch-watchers** | `true` | If it should patch the `fs.inotify.*` limits on Ubuntu ([read more](#enospc-errors-on-linux)) |
## Example workflows
Before diving into the workflow examples, you should know the basics of GitHub Actions.
You can read more about this in the [GitHub Actions documentation][link-actions].
1. [Create new EAS Update on push to main](#create-new-eas-update-on-push-to-main)
2. [Create new EAS build on push to main](#create-new-eas-build-on-push-to-main)
3. [Create previews on PRs](#create-previews-on-prs)
### Create new EAS Update on push to main
This workflow listens to the `push` event on the `main` branch.
It sets up all required components to publish the app, including authentication with a [token][link-expo-token].
> Always use [secrets][link-actions-secrets] when using tokens.
```yml
on:
push:
branches:
- main
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install
- name: 🚀 Create update
run: eas update --auto --non-interactive
```
### Creating new EAS build on push to main
This action also allows you to install the EAS CLI.
To do this, add the **eas-version** property, and the action will install it.
We recommend using `latest` for the EAS CLI.
> The [**token**][link-expo-token] is shared for both Expo and EAS CLI.
```yml
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install
- name: 🚀 Build app
run: eas build --non-interactive
```
### Create previews on PRs
Reviewing pull requests can take some time.
The reviewer needs to check out the branch, install the changes, and run the bundler to review the results.
You can also automatically publish the project for the reviewer to skip those manual steps.
> See the [preview docs](./preview#create-previews-on-pull-requests) for more information.
```yml
on: [pull_request]
jobs:
preview:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install
- name: 🚀 Create preview
uses: expo/expo-github-action/preview@v8
with:
# `github.event.pull_request.head.ref` is only available on `pull_request` triggers.
# Use your own, or keep the automatically infered branch name from `--auto`, when using different triggers.
command: eas update --auto --branch ${{ github.event.pull_request.head.ref }}
```
## Things to know
### Automatic Expo login
Some Expo commands, like `expo publish` and `eas build`, require you to be authenticated.
This action exports the [**token**][link-expo-token] to ensure you are authenticated in every workflow step.
> Note, this action does not store the [token][link-expo-token] anywhere. Each separate workflow job needs to set up the [**token**][link-expo-token] individually.
### Using the built-in cache
You can opt-out from caching the Expo and EAS CLI installations.
Under the hood, it uses the [`@actions/cache`][link-actions-cache-package] package to restore a previous install.
It reduces the installation time because it only needs to download and extract a single tar file.
> Note, using cache will count towards your [repo cache limit][link-actions-cache-limit]. Both the Expo and EAS CLI are stored in different caches.
### ENOSPC errors on Linux
Creating new bundles with Metro can be memory intensive.
In the past, some builds resulted in `ENOSPC` errors.
To prevent anyone from running into this, we make sure Ubuntu has sensible defaults in terms of file system availability.
You can opt-out from patching the file system by setting **patch-watchers** to `false`.
1. Clone a fork of this repository
2. Install dependencies with [Bun](https://bun.com)
```bash
bun install
```
3. Make any change to the code
4. Rebuild the actions
```bash
bun run build
```
5. Make sure code is formatted and tested
```bash
bun run lint --fix
bun run test
```
6. Open a PR with your contribution 🎉
<div align="center">
<br />
with :heart:&nbsp;<strong>byCedric</strong>
with&nbsp;❤️&nbsp;&nbsp;<a href="https://expo.dev/home"><strong>Expo</strong></a>
<br />
</div>
[link-actions]: https://help.github.com/en/categories/automating-your-workflow-with-github-actions
[link-actions-cache-limit]: https://github.com/actions/cache#cache-limits
[link-actions-cache-package]: https://github.com/actions/toolkit/tree/main/packages/cache
[link-actions-secrets]: https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets
[link-expo-cli]: https://docs.expo.dev/workflow/expo-cli/
[link-expo-release-channels]: https://docs.expo.dev/distribution/release-channels/
[link-eas-cli]: https://github.com/expo/eas-cli#readme
[link-preview-comment]: https://github.com/expo/expo-github-action/pull/149#issuecomment-1013184520
[link-expo-token]: https://expo.dev/accounts/%5Baccount%5D/settings/access-tokens
+8 -37
View File
@@ -1,42 +1,13 @@
---
name: Expo GitHub Action
name: Expo Github Actions
author: Expo
description: Publish, build or manage your Expo app with GitHub Actions
description: A collection of GitHub Actions for Expo projects
branding:
icon: terminal
color: gray-dark
runs:
using: node20
main: build/setup/index.js
inputs:
expo-version:
description: Expo CLI version to install
expo-cache:
description: If Expo CLI should be cached to speed up installation
default: true
eas-version:
description: EAS CLI version to install
eas-cache:
description: If EAS CLI should be cached to speed up installation
default: true
packager:
description: The package manager used to install the CLIs
default: yarn
patch-watchers:
description: If the action should patch the ENOSPC errors
default: true
token:
description: Your Expo token, for authentication. (use with secrets)
# Below are deprecated and won't be supported anymore
eas-cache-key:
description: A custom remote cache key to use for EAS CLI.
deprecationMessage: Custom cache keys are deprecated and not used anymore.
expo-cache-key:
description: A custom remote cache key to use for Expo CLI.
deprecationMessage: Custom cache keys are deprecated and not used anymore.
username:
description: Your Expo username, for authentication.
deprecationMessage: Username/password authentication is deprecated, use a token instead.
password:
description: Your Expo password, for authentication. (use with secrets)
deprecationMessage: Username/password authentication is deprecated, use a token instead.
using: composite
steps:
- shell: bash
run: |
echo 'This root actions doesn't do anything, see [all available actions](https://github.com/expo/actions#readme)'
exit 1
-41232
View File
File diff suppressed because it is too large. Load diff
-797
View File
@@ -1,797 +0,0 @@
@actions/core
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/exec
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/github
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/http-client
MIT
Actions Http Client for Node.js
Copyright (c) GitHub, Inc.
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/io
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/tool-cache
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@fastify/busboy
MIT
Copyright Brian White. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
@octokit/auth-token
MIT
The MIT License
Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/core
MIT
The MIT License
Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/endpoint
MIT
The MIT License
Copyright (c) 2018 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/graphql
MIT
The MIT License
Copyright (c) 2018 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/plugin-paginate-rest
MIT
MIT License Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@octokit/plugin-rest-endpoint-methods
MIT
MIT License Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@octokit/request
MIT
The MIT License
Copyright (c) 2018 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/request-error
MIT
The MIT License
Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
before-after-hook
Apache-2.0
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2018 Gregor Martynus and other contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
deprecation
ISC
The ISC License
Copyright (c) Gregor Martynus and contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
encoding
MIT
Copyright (c) 2012-2014 Andris Reinman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
iconv-lite
MIT
Copyright (c) 2011 Alexander Shtuchkin
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
is-plain-object
MIT
The MIT License (MIT)
Copyright (c) 2014-2017, Jon Schlinkert.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
node-fetch
MIT
The MIT License (MIT)
Copyright (c) 2016 David Frank
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
once
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
safer-buffer
MIT
MIT License
Copyright (c) 2018 Nikita Skovoroda <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
semver
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
tr46
MIT
tunnel
MIT
The MIT License (MIT)
Copyright (c) 2012 Koichi Kobayashi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
undici
MIT
MIT License
Copyright (c) Matteo Collina and Undici contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
universal-user-agent
ISC
# [ISC License](https://spdx.org/licenses/ISC)
Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m)
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
uuid
MIT
The MIT License (MIT)
Copyright (c) 2010-2020 Robert Kieffer and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
webidl-conversions
BSD-2-Clause
# The BSD 2-Clause License
Copyright (c) 2014, Domenic Denicola
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
whatwg-url
MIT
The MIT License (MIT)
Copyright (c) 2015–2016 Sebastian Mayr
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
wrappy
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+226
View File
@@ -0,0 +1,226 @@
var We=Object.create;var{getPrototypeOf:Xe,defineProperty:jN,getOwnPropertyNames:jR,getOwnPropertyDescriptor:$e}=Object,PR=Object.prototype.hasOwnProperty;var sQ=(A,Q,B)=>{B=A!=null?We(Xe(A)):{};let E=Q||!A||!A.__esModule?jN(B,"default",{value:A,enumerable:!0}):B;for(let I of jR(A))if(!PR.call(E,I))jN(E,I,{get:()=>A[I],enumerable:!0});return E},qR=new WeakMap,Ke=(A)=>{var Q=qR.get(A),B;if(Q)return Q;if(Q=jN({},"__esModule",{value:!0}),A&&typeof A==="object"||typeof A==="function")jR(A).map((E)=>!PR.call(Q,E)&&jN(Q,E,{get:()=>A[E],enumerable:!(B=$e(A,E))||B.enumerable}));return qR.set(A,Q),Q},K=(A,Q)=>()=>(Q||A((Q={exports:{}}).exports,Q),Q.exports);var Le=(A,Q)=>{for(var B in Q)jN(A,B,{get:Q[B],enumerable:!0,configurable:!0,set:(E)=>Q[B]=()=>E})};var xU=K((e1)=>{Object.defineProperty(e1,"__esModule",{value:!0});e1.toCommandProperties=e1.toCommandValue=void 0;function Ve(A){if(A===null||A===void 0)return"";else if(typeof A==="string"||A instanceof String)return A;return JSON.stringify(A)}e1.toCommandValue=Ve;function ze(A){if(!Object.keys(A).length)return{};return{title:A.title,file:A.file,line:A.startLine,endLine:A.endLine,col:A.startColumn,endColumn:A.endColumn}}e1.toCommandProperties=ze});var SR=K((YC)=>{var He=YC&&YC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),we=YC&&YC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),Me=YC&&YC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))He(Q,A,B)}return we(Q,A),Q};Object.defineProperty(YC,"__esModule",{value:!0});YC.issue=YC.issueCommand=void 0;var Re=Me(require("os")),fR=xU();function xR(A,Q,B){let E=new hR(A,Q,B);process.stdout.write(E.toString()+Re.EOL)}YC.issueCommand=xR;function ge(A,Q=""){xR(A,{},Q)}YC.issue=ge;var kR="::";class hR{constructor(A,Q,B){if(!A)A="missing.command";this.command=A,this.properties=Q,this.message=B}toString(){let A=kR+this.command;if(this.properties&&Object.keys(this.properties).length>0){A+=" ";let Q=!0;for(let B in this.properties)if(this.properties.hasOwnProperty(B)){let E=this.properties[B];if(E){if(Q)Q=!1;else A+=",";A+=`${B}=${Oe(E)}`}}}return A+=`${kR}${Te(this.message)}`,A}}function Te(A){return(0,fR.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function Oe(A){return(0,fR.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});var vR=K((JC)=>{var qe=JC&&JC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),je=JC&&JC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),N7=JC&&JC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))qe(Q,A,B)}return je(Q,A),Q};Object.defineProperty(JC,"__esModule",{value:!0});JC.prepareKeyValueMessage=JC.issueFileCommand=void 0;var Pe=N7(require("crypto")),yR=N7(require("fs")),G7=N7(require("os")),_R=xU();function ke(A,Q){let B=process.env[`GITHUB_${A}`];if(!B)throw Error(`Unable to find environment variable for file command ${A}`);if(!yR.existsSync(B))throw Error(`Missing file at path: ${B}`);yR.appendFileSync(B,`${(0,_R.toCommandValue)(Q)}${G7.EOL}`,{encoding:"utf8"})}JC.issueFileCommand=ke;function fe(A,Q){let B=`ghadelimiter_${Pe.randomUUID()}`,E=(0,_R.toCommandValue)(Q);if(A.includes(B))throw Error(`Unexpected input: name should not contain the delimiter "${B}"`);if(E.includes(B))throw Error(`Unexpected input: value should not contain the delimiter "${B}"`);return`${A}<<${B}${G7.EOL}${E}${G7.EOL}${B}`}JC.prepareKeyValueMessage=fe});var uR=K((AY)=>{Object.defineProperty(AY,"__esModule",{value:!0});AY.checkBypass=AY.getProxyUrl=void 0;function xe(A){let Q=A.protocol==="https:";if(bR(A))return;let B=(()=>{if(Q)return process.env.https_proxy||process.env.HTTPS_PROXY;else return process.env.http_proxy||process.env.HTTP_PROXY})();if(B)try{return new U7(B)}catch(E){if(!B.startsWith("http://")&&!B.startsWith("https://"))return new U7(`http://${B}`)}else return}AY.getProxyUrl=xe;function bR(A){if(!A.hostname)return!1;let Q=A.hostname;if(he(Q))return!0;let B=process.env.no_proxy||process.env.NO_PROXY||"";if(!B)return!1;let E;if(A.port)E=Number(A.port);else if(A.protocol==="http:")E=80;else if(A.protocol==="https:")E=443;let I=[A.hostname.toUpperCase()Line truncated
`,N.message,N.stack);var U=Error("tunneling socket could not be established, cause="+N.message);U.code="ECONNRESET",Q.request.emit("error",U),E.removeSocket(I)}};s0.prototype.removeSocket=function(Q){var B=this.sockets.indexOf(Q);if(B===-1)return;this.sockets.splice(B,1);var E=this.requests.shift();if(E)this.createSocket(E,function(I){E.request.onSocket(I)})};function dR(A,Q){var B=this;s0.prototype.createSocket.call(B,A,function(E){var I=A.request.getHeader("host"),C=W7({},B.options,{socket:E,servername:I?I.replace(/:.*$/,""):A.host}),D=Se.connect(0,C);B.sockets[B.sockets.indexOf(E)]=D,Q(D)})}function cR(A,Q,B){if(typeof A==="string")return{host:A,port:Q,localAddress:B};return A}function W7(A){for(var Q=1,B=arguments.length;Q<B;++Q){var E=arguments[Q];if(typeof E==="object"){var I=Object.keys(E);for(var C=0,D=I.length;C<D;++C){var F=I[C];if(E[F]!==void 0)A[F]=E[F]}}}return A}var PD;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG))PD=function(){var A=Array.prototype.slice.call(arguments);if(typeof A[0]==="string")A[0]="TUNNEL: "+A[0];else A.unshift("TUNNEL:");console.error.apply(console,A)};else PD=function(){};QY.debug=PD});var iR=K((RhA,pR)=>{pR.exports=lR()});var UB=K((ghA,nR)=>{nR.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"),kHeadersList:Symbol("headers list"),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"),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"),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"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}});var eQ=K((ThA,sR)=>{class rB extends Error{constructor(A){super(A);this.name="UndiciError",this.code="UND_ERR"}}class X7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,X7),this.name="ConnectTimeoutError",this.message=A||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}}class $7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,$7),this.name="HeadersTimeoutError",this.message=A||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}}class K7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,K7),this.name="HeadersOverflowError",this.message=A||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}}class L7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,L7),this.name="BodyTimeoutError",this.message=A||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}}class V7 extends rB{constructor(A,Q,B,E){super(A);Error.captureStackTrace(this,V7),this.name="ResponseStatusCodeError",this.message=A||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=E,this.status=Q,this.statusCode=Q,this.headers=B}}class z7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,z7),this.name="InvalidArgumentError",this.message=A||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}}class H7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,H7),this.name="InvalidReturnValueError",this.message=A||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}}class w7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,w7),this.name="AbortError",this.me Line truncated
\r
`),OAA=/\r\n/g,qAA=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function EY(A){Lg.call(this),A=A||{};let Q=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=Kg(A,"maxHeaderPairs",2000),this.maxHeaderSize=Kg(A,"maxHeaderSize",81920),this.buffer="",this.header={},this.finished=!1,this.ss=new gAA(TAA),this.ss.on("info",function(B,E,I,C){if(E&&!Q.maxed){if(Q.nread+C-I>=Q.maxHeaderSize)C=Q.maxHeaderSize-Q.nread+I,Q.nread=Q.maxHeaderSize,Q.maxed=!0;else Q.nread+=C-I;Q.buffer+=E.toString("binary",I,C)}if(B)Q._finish()})}RAA(EY,Lg);EY.prototype.push=function(A){let Q=this.ss.push(A);if(this.finished)return Q};EY.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};EY.prototype._finish=function(){if(this.buffer)this._parseHeader();this.ss.matches=this.ss.maxMatches;let A=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",A)};EY.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let A=this.buffer.split(OAA),Q=A.length,B,E;for(var I=0;I<Q;++I){if(A[I].length===0)continue;if(A[I][0]==="\t"||A[I][0]===" "){if(E){this.header[E][this.header[E].length-1]+=A[I];continue}}let C=A[I].indexOf(":");if(C===-1||C===0)return;if(B=qAA.exec(A[I]),E=B[1].toLowerCase(),this.header[E]=this.header[E]||[],this.header[E].push(B[2]||""),++this.npairs===this.maxHeaderPairs)break}};Vg.exports=EY});var m7=K((hhA,wg)=>{var u7=require("node:stream").Writable,jAA=require("node:util").inherits,PAA=v7(),Hg=Xg(),kAA=zg(),fAA=Buffer.from("-"),xAA=Buffer.from(`\r
`),hAA=function(){};function lC(A){if(!(this instanceof lC))return new lC(A);if(u7.call(this,A),!A||!A.headerFirst&&typeof A.boundary!=="string")throw TypeError("Boundary required");if(typeof A.boundary==="string")this.setBoundary(A.boundary);else this._bparser=void 0;this._headerFirst=A.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:A.partHwm},this._pause=!1;let Q=this;this._hparser=new kAA(A),this._hparser.on("header",function(B){Q._inHeader=!1,Q._part.emit("header",B)})}jAA(lC,u7);lC.prototype.emit=function(A){if(A==="finish"&&!this._realFinish){if(!this._finished){let Q=this;process.nextTick(function(){if(Q.emit("error",Error("Unexpected end of multipart data")),Q._part&&!Q._ignoreData){let B=Q._isPreamble?"Preamble":"Part";Q._part.emit("error",Error(B+" terminated early due to unexpected end of multipart data")),Q._part.push(null),process.nextTick(function(){Q._realFinish=!0,Q.emit("finish"),Q._realFinish=!1});return}Q._realFinish=!0,Q.emit("finish"),Q._realFinish=!1})}}else u7.prototype.emit.apply(this,arguments)};lC.prototype._write=function(A,Q,B){if(!this._hparser&&!this._bparser)return B();if(this._headerFirst&&this._isPreamble){if(!this._part)if(this._part=new Hg(this._partOpts),this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else this._ignore();let E=this._hparser.push(A);if(!this._inHeader&&E!==void 0&&E<A.length)A=A.slice(E);else return B()}if(this._firstWrite)this._bparser.push(xAA),this._firstWrite=!1;if(this._bparser.push(A),this._pause)this._cb=B;else B()};lC.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};lC.prototype.setBoundary=function(A){let Q=this;this._bparser=new PAA(`\r
--`+A),this._bparser.on("info",function(B,E,I,C){Q._oninfo(B,E,I,C)})};lC.prototype._ignore=function(){if(this._part&&!this._ignoreData)this._ignoreData=!0,this._part.on("error",hAA),this._part.resume()};lC.prototype._oninfo=function(A,Q,B,E){let I,C=this,D=0,F,Y=!0;if(!this._part&&this._justMatched&&Q){while(this._dashes<2&&B+D<E)if(Q[B+D]===45)++D,++this._dashes;else{if(this._dashes)I=fAA;this._dashes=0;break}if(this._dashes===2){if(B+D<E&&this.listenerCount("trailer")!==0)this.emit("trailer",Q.slice(B+D,E));if(this.reset(),this._finished=!0,C._parts===0)C._realFinish=!0,C.emit("finish"),C._realFinish=!1}if(this._dashes)return}if(this._justMatched)this._justMatched=!1;if(!this._part){if(this._part=new Hg(this._partOpts),this._part._read=function(J){C._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else if(this._isPreamble!==!0&&this.listenerCount("part")!==0)this.emit("part",this._part);else this._ignore();if(!this._isPreamble)this._inHeader=!0}if(Q&&B<E&&!this._ignoreData){if(this._isPreamble||!this._inHeader){if(I)Y=this._part.push(I);if(Y=this._part.push(Q.slice(B,E)),!Y)this._pause=!0}else if(!this._isPreamble&&this._inHeader){if(I)this._hparser.push(I);if(F=this._hparser.push(Q.slice(B,E)),!this._inHeader&&F!==void 0&&F<E)this._oninfo(!1,Q,B+F,E)}}if(A){if(this._hparser.reset(),this._isPreamble)this._isPreamble=!1;else if(B!==E)++this._parts,this._part.on("end",function(){if(--C._parts===0)if(C._finished)C._realFinish=!0,C.emit("finish"),C._realFinish=!1;else C._unpause()});this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0}};lC.prototype._unpause=function(){if(!this._pause)return;if(this._pause=!1,this._cb){let A=this._cb;this._cb=void 0,A()}};wg.exports=lC});var vU=K((d7,gg)=>{var Mg=new TextDecoder("utf-8"),Rg=new Map([["utf-8",Mg],["utf8",Mg]]);function SAA(A){let Q;while(!0)switch(A){case"utf-8":case"utf8":return kN.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return kN.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return kN.utf16le;case"base64":return kN.base64;default:if(Q===void 0){Q=!0,A=A.toLowerCase();continue}return kN.other.bind(A)}}var kN={utf8:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.utf8Slice(0,A.length)},latin1:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")return A;return A.latin1Slice(0,A.length)},utf16le:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.ucs2Slice(0,A.length)},base64:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.base64Slice(0,A.length)},other:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);if(Rg.has(d7.toString()))try{return Rg.get(d7).decode(A)}catch{}return typeof A==="string"?A:A.toString()}};function yAA(A,Q,B){if(A)return SAA(B)(A,Q);return A}gg.exports=yAA});var l7=K((ShA,Pg)=>{var bU=vU(),Tg=/%[a-fA-F0-9][a-fA-F0-9]/g,_AA={"%00":"\x00","%01":"\x01","%02":"\x02","%03":"\x03","%04":"\x04","%05":"\x05","%06":"\x06","%07":"\x07","%08":"\b","%09":"\t","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"\x0E","%0E":"\x0E","%0f":"\x0F","%0F":"\x0F","%10":"\x10","%11":"\x11","%12":"\x12","%13":"\x13","%14":"\x14","%15":"\x15","%16":"\x16","%17":"\x17","%18":"\x18","%19":"\x19","%1a":"\x1A","%1A":"\x1A","%1b":"\x1B","%1B":"\x1B","%1c":"\x1C","%1C":"\x1C","%1d":"\x1D","%1D":"\x1D","%1e":"\x1E","%1E":"\x1E","%1f":"\x1F","%1F":"\x1F","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"","%B6":"","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%FdLine truncated
`))return!1;return!0}function yQA(A,Q){let{headersList:B}=Q,E=(B.get("referrer-policy")??"").split(","),I="";if(E.length>0)for(let C=E.length;C!==0;C--){let D=E[C-1].trim();if(wQA.has(D)){I=D;break}}if(I!=="")A.referrerPolicy=I}function _QA(){return"allowed"}function vQA(){return"success"}function bQA(){return"success"}function uQA(A){let Q=null;Q=A.mode,A.headersList.set("sec-fetch-mode",Q)}function mQA(A){let Q=A.origin;if(A.responseTainting==="cors"||A.mode==="websocket"){if(Q)A.headersList.append("origin",Q)}else if(A.method!=="GET"&&A.method!=="HEAD"){switch(A.referrerPolicy){case"no-referrer":Q=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(A.origin&&t7(A.origin)&&!t7(hN(A)))Q=null;break;case"same-origin":if(!lU(A,hN(A)))Q=null;break;default:}if(Q)A.headersList.append("origin",Q)}}function dQA(A){return gQA.now()}function cQA(A){return{startTime:A.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:A.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function lQA(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function pQA(A){return{referrerPolicy:A.referrerPolicy}}function iQA(A){let Q=A.referrerPolicy;YY(Q);let B=null;if(A.referrer==="client"){let F=RQA();if(!F||F.origin==="null")return"no-referrer";B=new URL(F)}else if(A.referrer instanceof URL)B=A.referrer;let E=o7(B),I=o7(B,!0);if(E.toString().length>4096)E=I;let C=lU(A,E),D=xN(E)&&!xN(A.url);switch(Q){case"origin":return I!=null?I:o7(B,!0);case"unsafe-url":return E;case"same-origin":return C?I:"no-referrer";case"origin-when-cross-origin":return C?E:I;case"strict-origin-when-cross-origin":{let F=hN(A);if(lU(E,F))return E;if(xN(E)&&!xN(F))return"no-referrer";return I}case"strict-origin":case"no-referrer-when-downgrade":default:return D?"no-referrer":I}}function o7(A,Q){if(YY(A instanceof URL),A.protocol==="file:"||A.protocol==="about:"||A.protocol==="blank:")return"no-referrer";if(A.username="",A.password="",A.hash="",Q)A.pathname="",A.search="";return A}function xN(A){if(!(A instanceof URL))return!1;if(A.href==="about:blank"||A.href==="about:srcdoc")return!0;if(A.protocol==="data:")return!0;if(A.protocol==="file:")return!0;return Q(A.origin);function Q(B){if(B==null||B==="null")return!1;let E=new URL(B);if(E.protocol==="https:"||E.protocol==="wss:")return!0;if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(E.hostname)||(E.hostname==="localhost"||E.hostname.includes("localhost."))||E.hostname.endsWith(".localhost"))return!0;return!1}}function nQA(A,Q){if(cU===void 0)return!0;let B=ET(Q);if(B==="no metadata")return!0;if(B.length===0)return!0;let E=sQA(B),I=oQA(B,E);for(let C of I){let{algo:D,hash:F}=C,Y=cU.createHash(D).update(A).digest("base64");if(Y[Y.length-1]==="=")if(Y[Y.length-2]==="=")Y=Y.slice(0,-2);else Y=Y.slice(0,-1);if(rQA(Y,F))return!0}return!1}var aQA=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function ET(A){let Q=[],B=!0;for(let E of A.split(" ")){B=!1;let I=aQA.exec(E);if(I===null||I.groups===void 0||I.groups.algo===void 0)continue;let C=I.groups.algo.toLowerCase();if(eg.includes(C))Q.push(I.groups)}if(B===!0)return"no metadata";return Q}function sQA(A){let Q=A[0].algo;if(Q[3]==="5")return Q;for(let B=1;B<A.length;++B){let E=A[B];if(E.algo[3]==="5"){Q="sha512";break}else if(Q[3]==="3")continue;else if(E.algo[3]==="3")Q="sha384"}return Q}function oQA(A,Q){if(A.length===1)return A;let B=0;for(let E=0;E<A.length;++E)if(A[E].algo===Q)A[B++]=A[E];return A.length=B,A}function rQA(A,Q){if(A.length!==Q.length)return!1;for(let B=0;B<A.length;++B)if(A[B]!==Q[B]){if(A[B]==="+"&&Q[B]==="-"||A[B]==="/"&&Q[B]==="_")continue;return!1}return!0}function tQA(A){}function lU(A,Q){if(A.origin===Q.origin&&A.origin==="null")return!0;if(A.protocol===Q.protocol&&A.hostname===Q.hostname&&A.port===Q.port)return!0;return!1}function eQA(){let A,Q;return{promise:new Promise((E,I)=>{A=E,Q=I}),resolve:A,reject:Q}}function ABA(A){return A.controller.state==="aborted"}function QBA(A){return A.controller.state==="aborted"||A.controller.state==="terminated"}var e7={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(e7,null);function BBA(A){return e7[A.toLowerCase()]??A}function EBA(A){let Q=JSON.stringify(A);if(Q===void 0)throw TypeError("Value is not JSON serializable");return YY(typeof Q==="string"),Q}var IBA=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function CBA(A,Q,B){let E={index:0,kind:B,target:A},I={next(){if(Object.getPrototypeOf(this)!==I)throw TypeError(`'next' called on an object that does not implement interface ${Q} Iterator.`);let{index:C,kind:D,target:F}=E,Y=F(),J=Y.length;if(C>=J)return{value:void 0,done:!0};let Line truncated
`||A==="\t"||A===" "}function A3(A,Q=!0,B=!0){let E=0,I=A.length-1;if(Q)for(;E<A.length&&GT(A[E]);E++);if(B)for(;I>0&&GT(A[I]);I--);return A.slice(E,I+1)}function NT(A){return A==="\r"||A===`
`||A==="\t"||A==="\f"||A===" "}function gBA(A,Q=!0,B=!0){let E=0,I=A.length-1;if(Q)for(;E<A.length&&NT(A[E]);E++);if(B)for(;I>0&&NT(A[I]);I--);return A.slice(E,I+1)}XT.exports={dataURLProcessor:HBA,URLSerializer:UT,collectASequenceOfCodePoints:nU,collectASequenceOfCodePointsFast:JY,stringPercentDecode:ZT,parseMIMEType:Q3,collectAnHTTPQuotedString:WT,serializeAMimeType:RBA}});var aU=K((nhA,zT)=>{var{Blob:LT,File:$T}=require("buffer"),{types:B3}=require("util"),{kState:cI}=r0(),{isBlobLike:VT}=GC(),{webidl:yQ}=QI(),{parseMIMEType:TBA,serializeAMimeType:OBA}=pC(),{kEnumerableProperty:KT}=TQ(),qBA=new TextEncoder;class uF extends LT{constructor(A,Q,B={}){yQ.argumentLengthCheck(arguments,2,{header:"File constructor"}),A=yQ.converters["sequence<BlobPart>"](A),Q=yQ.converters.USVString(Q),B=yQ.converters.FilePropertyBag(B);let E=Q,I=B.type,C;A:{if(I){if(I=TBA(I),I==="failure"){I="";break A}I=OBA(I).toLowerCase()}C=B.lastModified}super(jBA(A,B),{type:I});this[cI]={name:E,lastModified:C,type:I}}get name(){return yQ.brandCheck(this,uF),this[cI].name}get lastModified(){return yQ.brandCheck(this,uF),this[cI].lastModified}get type(){return yQ.brandCheck(this,uF),this[cI].type}}class N0{constructor(A,Q,B={}){let E=Q,I=B.type,C=B.lastModified??Date.now();this[cI]={blobLike:A,name:E,type:I,lastModified:C}}stream(...A){return yQ.brandCheck(this,N0),this[cI].blobLike.stream(...A)}arrayBuffer(...A){return yQ.brandCheck(this,N0),this[cI].blobLike.arrayBuffer(...A)}slice(...A){return yQ.brandCheck(this,N0),this[cI].blobLike.slice(...A)}text(...A){return yQ.brandCheck(this,N0),this[cI].blobLike.text(...A)}get size(){return yQ.brandCheck(this,N0),this[cI].blobLike.size}get type(){return yQ.brandCheck(this,N0),this[cI].blobLike.type}get name(){return yQ.brandCheck(this,N0),this[cI].name}get lastModified(){return yQ.brandCheck(this,N0),this[cI].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(uF.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:KT,lastModified:KT});yQ.converters.Blob=yQ.interfaceConverter(LT);yQ.converters.BlobPart=function(A,Q){if(yQ.util.Type(A)==="Object"){if(VT(A))return yQ.converters.Blob(A,{strict:!1});if(ArrayBuffer.isView(A)||B3.isAnyArrayBuffer(A))return yQ.converters.BufferSource(A,Q)}return yQ.converters.USVString(A,Q)};yQ.converters["sequence<BlobPart>"]=yQ.sequenceConverter(yQ.converters.BlobPart);yQ.converters.FilePropertyBag=yQ.dictionaryConverter([{key:"lastModified",converter:yQ.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:yQ.converters.DOMString,defaultValue:""},{key:"endings",converter:(A)=>{if(A=yQ.converters.DOMString(A),A=A.toLowerCase(),A!=="native")A="transparent";return A},defaultValue:"transparent"}]);function jBA(A,Q){let B=[];for(let E of A)if(typeof E==="string"){let I=E;if(Q.endings==="native")I=PBA(I);B.push(qBA.encode(I))}else if(B3.isAnyArrayBuffer(E)||B3.isTypedArray(E))if(!E.buffer)B.push(new Uint8Array(E));else B.push(new Uint8Array(E.buffer,E.byteOffset,E.byteLength));else if(VT(E))B.push(E);return B}function PBA(A){let Q=`
`;if(process.platform==="win32")Q=`\r
`;return A.replace(/\r?\n/g,Q)}function kBA(A){return $T&&A instanceof $T||A instanceof uF||A&&(typeof A.stream==="function"||typeof A.arrayBuffer==="function")&&A[Symbol.toStringTag]==="File"}zT.exports={File:uF,FileLike:N0,isFileLike:kBA}});var oU=K((ahA,gT)=>{var{isBlobLike:sU,toUSVString:fBA,makeIterator:E3}=GC(),{kState:vE}=r0(),{File:RT,FileLike:HT,isFileLike:xBA}=aU(),{webidl:lQ}=QI(),{Blob:hBA,File:I3}=require("buffer"),wT=I3??RT;class BI{constructor(A){if(A!==void 0)throw lQ.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[vE]=[]}append(A,Q,B=void 0){if(lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!sU(Q))throw TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");A=lQ.converters.USVString(A),Q=sU(Q)?lQ.converters.Blob(Q,{strict:!1}):lQ.converters.USVString(Q),B=arguments.length===3?lQ.converters.USVString(B):void 0;let E=MT(A,Q,B);this[vE].push(E)}delete(A){lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),A=lQ.converters.USVString(A),this[vE]=this[vE].filter((Q)=>Q.name!==A)}get(A){lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.get"}),A=lQ.converters.USVString(A);let Q=this[vE].findIndex((B)=>B.name===A);if(Q===-1)return null;return this[vE][Q].value}getAll(A){return lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),A=lQ.converters.USVString(A),this[vE].filter((Q)=>Q.name===A).map((Q)=>Q.value)}has(A){return lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.has"}),A=lQ.converters.USVString(A),this[vE].findIndex((Q)=>Q.name===A)!==-1}set(A,Q,B=void 0){if(lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!sU(Q))throw TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");A=lQ.converters.USVString(A),Q=sU(Q)?lQ.converters.Blob(Q,{strict:!1}):lQ.converters.USVString(Q),B=arguments.length===3?fBA(B):void 0;let E=MT(A,Q,B),I=this[vE].findIndex((C)=>C.name===A);if(I!==-1)this[vE]=[...this[vE].slice(0,I),E,...this[vE].slice(I+1).filter((C)=>C.name!==A)];else this[vE].push(E)}entries(){return lQ.brandCheck(this,BI),E3(()=>this[vE].map((A)=>[A.name,A.value]),"FormData","key+value")}keys(){return lQ.brandCheck(this,BI),E3(()=>this[vE].map((A)=>[A.name,A.value]),"FormData","key")}values(){return lQ.brandCheck(this,BI),E3(()=>this[vE].map((A)=>[A.name,A.value]),"FormData","value")}forEach(A,Q=globalThis){if(lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof A!=="function")throw TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[B,E]of this)A.apply(Q,[E,B,this])}}BI.prototype[Symbol.iterator]=BI.prototype.entries;Object.defineProperties(BI.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function MT(A,Q,B){if(A=Buffer.from(A).toString("utf8"),typeof Q==="string")Q=Buffer.from(Q).toString("utf8");else{if(!xBA(Q))Q=Q instanceof hBA?new wT([Q],"blob",{type:Q.type}):new HT(Q,"blob",{type:Q.type});if(B!==void 0){let E={type:Q.type,lastModified:Q.lastModified};Q=I3&&Q instanceof I3||Q instanceof RT?new wT([Q],B,E):new HT(Q,B,E)}}return{name:A,value:Q}}gT.exports={FormData:BI}});var SN=K((shA,hT)=>{var SBA=cg(),GY=TQ(),{ReadableStreamFrom:yBA,isBlobLike:TT,isReadableStreamLike:_BA,readableStreamClose:vBA,createDeferredPromise:bBA,fullyReadBody:uBA}=GC(),{FormData:OT}=oU(),{kState:e0}=r0(),{webidl:C3}=QI(),{DOMException:PT,structuredClone:mBA}=xD(),{Blob:dBA,File:cBA}=require("buffer"),{kBodyUsed:lBA}=UB(),D3=require("assert"),{isErrored:pBA}=TQ(),{isUint8Array:kT,isArrayBuffer:iBA}=require("util/types"),{File:nBA}=aU(),{parseMIMEType:aBA,serializeAMimeType:sBA}=pC(),F3;try{let A=require("node:crypto");F3=(Q)=>A.randomInt(0,Q)}catch{F3=(A)=>Math.floor(Math.random(A))}var t0=globalThis.ReadableStream,qT=cBA??nBA,rU=new TextEncoder,oBA=new TextDecoder;function fT(A,Q=!1){if(!t0)t0=require("stream/web").ReadableStream;let B=null;if(A instanceof t0)B=A;else if(TT(A))B=A.stream();else B=new t0({async pull(Y){Y.enqueue(typeof I==="string"?rU.encode(I):I),queueMicrotask(()=>vBA(Y))},start(){},type:void 0});D3(_BA(B));let E=null,I=null,C=null,D=null;if(typeof A==="string")I=A,D="text/plain;charset=UTF-8";else if(A instanceof URLSearchParams)I=A.toString(),D="application/x-www-form-urlencoded;charset=UTF-8";else if(iBA(A))I=new Uint8Array(A.slice());else if(ArrayBuffer.isView(A))I=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength));else if(GY.isFormDataLike(A)){let Y=`----formdata-undici-0${`${F3(100000000000)}`.padStart(11,"0")}`,J=`--${Y}\r
Content-Disposition: form-data`;/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */let G=(V)=>V.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),N=(V)=>V.replace(/\r?\n|\r/g,`\r
`),U=[],Z=new Uint8Array([13,10]);C=0;let X=!1;for(let[V,w]of A)if(typeof w==="string"){let g=rU.encode(J+`; name="${G(N(V))}"\r
\r
${N(w)}\r
`);U.push(g),C+=g.byteLength}else{let g=rU.encode(`${J}; name="${G(N(V))}"`+(w.name?`; filename="${G(w.name)}"`:"")+`\r
Content-Type: ${w.type||"application/octet-stream"}\r
\r
`);if(U.push(g,w,Z),typeof w.size==="number")C+=g.byteLength+w.size+Z.byteLength;else X=!0}let $=rU.encode(`--${Y}--`);if(U.push($),C+=$.byteLength,X)C=null;I=A,E=async function*(){for(let V of U)if(V.stream)yield*V.stream();else yield V},D="multipart/form-data; boundary="+Y}else if(TT(A)){if(I=A,C=A.size,A.type)D=A.type}else if(typeof A[Symbol.asyncIterator]==="function"){if(Q)throw TypeError("keepalive");if(GY.isDisturbed(A)||A.locked)throw TypeError("Response body object should not be disturbed or locked");B=A instanceof t0?A:yBA(A)}if(typeof I==="string"||GY.isBuffer(I))C=Buffer.byteLength(I);if(E!=null){let Y;B=new t0({async start(){Y=E(A)[Symbol.asyncIterator]()},async pull(J){let{value:G,done:N}=await Y.next();if(N)queueMicrotask(()=>{J.close()});else if(!pBA(B))J.enqueue(new Uint8Array(G));return J.desiredSize>0},async cancel(J){await Y.return()},type:void 0})}return[{stream:B,source:I,length:C},D]}function rBA(A,Q=!1){if(!t0)t0=require("stream/web").ReadableStream;if(A instanceof t0)D3(!GY.isDisturbed(A),"The body has already been consumed."),D3(!A.locked,"The stream is locked.");return fT(A,Q)}function tBA(A){let[Q,B]=A.stream.tee(),E=mBA(B,{transfer:[B]}),[,I]=E.tee();return A.stream=Q,{stream:I,length:A.length,source:A.source}}async function*jT(A){if(A)if(kT(A))yield A;else{let Q=A.stream;if(GY.isDisturbed(Q))throw TypeError("The body has already been consumed.");if(Q.locked)throw TypeError("The stream is locked.");Q[lBA]=!0,yield*Q}}function Y3(A){if(A.aborted)throw new PT("The operation was aborted.","AbortError")}function eBA(A){return{blob(){return tU(this,(B)=>{let E=EEA(this);if(E==="failure")E="";else if(E)E=sBA(E);return new dBA([B],{type:E})},A)},arrayBuffer(){return tU(this,(B)=>{return new Uint8Array(B).buffer},A)},text(){return tU(this,xT,A)},json(){return tU(this,BEA,A)},async formData(){C3.brandCheck(this,A),Y3(this[e0]);let B=this.headers.get("Content-Type");if(/multipart\/form-data/.test(B)){let E={};for(let[F,Y]of this.headers)E[F.toLowerCase()]=Y;let I=new OT,C;try{C=new SBA({headers:E,preservePath:!0})}catch(F){throw new PT(`${F}`,"AbortError")}C.on("field",(F,Y)=>{I.append(F,Y)}),C.on("file",(F,Y,J,G,N)=>{let U=[];if(G==="base64"||G.toLowerCase()==="base64"){let Z="";Y.on("data",(X)=>{Z+=X.toString().replace(/[\r\n]/gm,"");let $=Z.length-Z.length%4;U.push(Buffer.from(Z.slice(0,$),"base64")),Z=Z.slice($)}),Y.on("end",()=>{U.push(Buffer.from(Z,"base64")),I.append(F,new qT(U,J,{type:N}))})}else Y.on("data",(Z)=>{U.push(Z)}),Y.on("end",()=>{I.append(F,new qT(U,J,{type:N}))})});let D=new Promise((F,Y)=>{C.on("finish",F),C.on("error",(J)=>Y(TypeError(J)))});if(this.body!==null)for await(let F of jT(this[e0].body))C.write(F);return C.end(),await D,I}else if(/application\/x-www-form-urlencoded/.test(B)){let E;try{let C="",D=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let F of jT(this[e0].body)){if(!kT(F))throw TypeError("Expected Uint8Array chunk");C+=D.decode(F,{stream:!0})}C+=D.decode(),E=new URLSearchParams(C)}catch(C){throw Object.assign(TypeError(),{cause:C})}let I=new OT;for(let[C,D]of E)I.append(C,D);return I}else throw await Promise.resolve(),Y3(this[e0]),C3.errors.exception({header:`${A.name}.formData`,message:"Could not parse content as FormData."})}}}function AEA(A){Object.assign(A.prototype,eBA(A))}async function tU(A,Q,B){if(C3.brandCheck(A,B),Y3(A[e0]),QEA(A[e0].body))throw TypeError("Body is unusable");let E=bBA(),I=(D)=>E.reject(D),C=(D)=>{try{E.resolve(Q(D))}catch(F){I(F)}};if(A[e0].body==null)return C(new Uint8Array),E.promise;return await uBA(A[e0].body,C,I),E.promise}function QEA(A){return A!=null&&(A.stream.locked||GY.isDisturbed(A.stream))}function xT(A){if(A.length===0)return"";if(A[0]===239&&A[1]===187&&A[2]===191)A=A.subarray(3);return oBA.decode(A)}function BEA(A){return JSON.parse(xT(A))}function EEA(A){let{headersList:Q}=A[e0],B=Q.get("content-type");if(B===null)return"failure";return aBA(B)}hT.exports={extractBody:fT,safelyExtractBody:rBA,cloneBody:tBA,mixinBody:AEA}});var vT=K((ohA,_T)=>{var{InvalidArgumentError:CB,NotSupportedError:IEA}=eQ(),AD=require("assert"),{kHTTP2BuildRequest:CEA,kHTTP2CopyHeaders:DEA,kHTTP1BuildRequest:FEA}=UB(),VI=TQ(),ST=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,yT=/[^\t\x20-\x7e\x80-\xff]/,YEA=/[^\u0021-\u00ff]/,iC=Symbol("handler"),tB={},J3;try{let A=require("diagnostics_channel");tB.create=A.channel("undici:request:create"),tB.bodySent=A.channel("undici:request:bodySent"),tB.headers=A.channel("undici:request:headers"),tB.trailers=A.channel("undici:request:trailers"),tB.error=A.channel("undici:request:error")}catch{tB.create={hasSubscribers:!1},tB.bodySent={hasSubscribers:!1},tB.headers={hasSubscribers:!1},tB.trailers={hasSubscribers:!1},tB.error={hasSubscribers:!1}}class eU{constructor(A,{path:Q,method:B,body:E,headers:I,query:C,idempotent:D,blocking:F,upgrade:Y,headersTimeout:J,bodyTimeout:G,reset:N,throwOnError:U,expectContinue:Z},X){if(typeof Q!=="string")throw new CB("path must be a string");else if(Q[0]!=="/"&&!(Q.startsLine truncated
`;this.body=$.stream,this.contentLength=$.length}else if(VI.isBlobLike(E)&&this.contentType==null&&E.type)this.contentType=E.type,this.headers+=`content-type: ${E.type}\r
`;if(VI.validateHandler(X,B,Y),this.servername=VI.getServerName(this.host),this[iC]=X,tB.create.hasSubscribers)tB.create.publish({request:this})}onBodySent(A){if(this[iC].onBodySent)try{return this[iC].onBodySent(A)}catch(Q){this.abort(Q)}}onRequestSent(){if(tB.bodySent.hasSubscribers)tB.bodySent.publish({request:this});if(this[iC].onRequestSent)try{return this[iC].onRequestSent()}catch(A){this.abort(A)}}onConnect(A){if(AD(!this.aborted),AD(!this.completed),this.error)A(this.error);else return this.abort=A,this[iC].onConnect(A)}onHeaders(A,Q,B,E){if(AD(!this.aborted),AD(!this.completed),tB.headers.hasSubscribers)tB.headers.publish({request:this,response:{statusCode:A,headers:Q,statusText:E}});try{return this[iC].onHeaders(A,Q,B,E)}catch(I){this.abort(I)}}onData(A){AD(!this.aborted),AD(!this.completed);try{return this[iC].onData(A)}catch(Q){return this.abort(Q),!1}}onUpgrade(A,Q,B){return AD(!this.aborted),AD(!this.completed),this[iC].onUpgrade(A,Q,B)}onComplete(A){if(this.onFinally(),AD(!this.aborted),this.completed=!0,tB.trailers.hasSubscribers)tB.trailers.publish({request:this,trailers:A});try{return this[iC].onComplete(A)}catch(Q){this.onError(Q)}}onError(A){if(this.onFinally(),tB.error.hasSubscribers)tB.error.publish({request:this,error:A});if(this.aborted)return;return this.aborted=!0,this[iC].onError(A)}onFinally(){if(this.errorHandler)this.body.off("error",this.errorHandler),this.errorHandler=null;if(this.endHandler)this.body.off("end",this.endHandler),this.endHandler=null}addHeader(A,Q){return yN(this,A,Q),this}static[FEA](A,Q,B){return new eU(A,Q,B)}static[CEA](A,Q,B){let E=Q.headers;Q={...Q,headers:null};let I=new eU(A,Q,B);if(I.headers={},Array.isArray(E)){if(E.length%2!==0)throw new CB("headers array must be even");for(let C=0;C<E.length;C+=2)yN(I,E[C],E[C+1],!0)}else if(E&&typeof E==="object"){let C=Object.keys(E);for(let D=0;D<C.length;D++){let F=C[D];yN(I,F,E[F],!0)}}else if(E!=null)throw new CB("headers must be an object or an array");return I}static[DEA](A){let Q=A.split(`\r
`),B={};for(let E of Q){let[I,C]=E.split(": ");if(C==null||C.length===0)continue;if(B[I])B[I]+=`,${C}`;else B[I]=C}return B}}function mF(A,Q,B){if(Q&&typeof Q==="object")throw new CB(`invalid ${A} header`);if(Q=Q!=null?`${Q}`:"",yT.exec(Q)!==null)throw new CB(`invalid ${A} header`);return B?Q:`${A}: ${Q}\r
`}function yN(A,Q,B,E=!1){if(B&&(typeof B==="object"&&!Array.isArray(B)))throw new CB(`invalid ${Q} header`);else if(B===void 0)return;if(A.host===null&&Q.length===4&&Q.toLowerCase()==="host"){if(yT.exec(B)!==null)throw new CB(`invalid ${Q} header`);A.host=B}else if(A.contentLength===null&&Q.length===14&&Q.toLowerCase()==="content-length"){if(A.contentLength=parseInt(B,10),!Number.isFinite(A.contentLength))throw new CB("invalid content-length header")}else if(A.contentType===null&&Q.length===12&&Q.toLowerCase()==="content-type")if(A.contentType=B,E)A.headers[Q]=mF(Q,B,E);else A.headers+=mF(Q,B);else if(Q.length===17&&Q.toLowerCase()==="transfer-encoding")throw new CB("invalid transfer-encoding header");else if(Q.length===10&&Q.toLowerCase()==="connection"){let I=typeof B==="string"?B.toLowerCase():null;if(I!=="close"&&I!=="keep-alive")throw new CB("invalid connection header");else if(I==="close")A.reset=!0}else if(Q.length===10&&Q.toLowerCase()==="keep-alive")throw new CB("invalid keep-alive header");else if(Q.length===7&&Q.toLowerCase()==="upgrade")throw new CB("invalid upgrade header");else if(Q.length===6&&Q.toLowerCase()==="expect")throw new IEA("expect header not supported");else if(ST.exec(Q)===null)throw new CB("invalid header key");else if(Array.isArray(B))for(let I=0;I<B.length;I++)if(E)if(A.headers[Q])A.headers[Q]+=`,${mF(Q,B[I],E)}`;else A.headers[Q]=mF(Q,B[I],E);else A.headers+=mF(Q,B[I]);else if(E)A.headers[Q]=mF(Q,B,E);else A.headers+=mF(Q,B)}_T.exports=eU});var A8=K((rhA,uT)=>{var JEA=require("events");class bT extends JEA{dispatch(){throw Error("not implemented")}close(){throw Error("not implemented")}destroy(){throw Error("not implemented")}}uT.exports=bT});var vN=K((thA,dT)=>{var GEA=A8(),{ClientDestroyedError:G3,ClientClosedError:NEA,InvalidArgumentError:NY}=eQ(),{kDestroy:UEA,kClose:ZEA,kDispatch:N3,kInterceptors:dF}=UB(),UY=Symbol("destroyed"),_N=Symbol("closed"),QD=Symbol("onDestroyed"),ZY=Symbol("onClosed"),Q8=Symbol("Intercepted Dispatch");class mT extends GEA{constructor(){super();this[UY]=!1,this[QD]=null,this[_N]=!1,this[ZY]=[]}get destroyed(){return this[UY]}get closed(){return this[_N]}get interceptors(){return this[dF]}set interceptors(A){if(A){for(let Q=A.length-1;Q>=0;Q--)if(typeof this[dF][Q]!=="function")throw new NY("interceptor must be an function")}this[dF]=A}close(A){if(A===void 0)return new Promise((B,E)=>{this.close((I,C)=>{return I?E(I):B(C)})});if(typeof A!=="function")throw new NY("invalid callback");if(this[UY]){queueMicrotask(()=>A(new G3,null));return}if(this[_N]){if(this[ZY])this[ZY].push(A);else queueMicrotask(()=>A(null,null));return}this[_N]=!0,this[ZY].push(A);let Q=()=>{let B=this[ZY];this[ZY]=null;for(let E=0;E<B.length;E++)B[E](null,null)};this[ZEA]().then(()=>this.destroy()).then(()=>{queueMicrotask(Q)})}destroy(A,Q){if(typeof A==="function")Q=A,A=null;if(Q===void 0)return new Promise((E,I)=>{this.destroy(A,(C,D)=>{return C?I(C):E(D)})});if(typeof Q!=="function")throw new NY("invalid callback");if(this[UY]){if(this[QD])this[QD].push(Q);else queueMicrotask(()=>Q(null,null));return}if(!A)A=new G3;this[UY]=!0,this[QD]=this[QD]||[],this[QD].push(Q);let B=()=>{let E=this[QD];this[QD]=null;for(let I=0;I<E.length;I++)E[I](null,null)};this[UEA](A).then(()=>{queueMicrotask(B)})}[Q8](A,Q){if(!this[dF]||this[dF].length===0)return this[Q8]=this[N3],this[N3](A,Q);let B=this[N3].bind(this);for(let E=this[dF].length-1;E>=0;E--)B=this[dF][E](B);return this[Q8]=B,B(A,Q)}dispatch(A,Q){if(!Q||typeof Q!=="object")throw new NY("handler must be an object");try{if(!A||typeof A!=="object")throw new NY("opts must be an object.");if(this[UY]||this[QD])throw new G3;if(this[_N])throw new NEA;return this[Q8](A,Q)}catch(B){if(typeof Q.onError!=="function")throw new NY("invalid onError method");return Q.onError(B),!1}}}dT.exports=mT});var bN=K((ehA,pT)=>{var WEA=require("net"),cT=require("assert"),lT=TQ(),{InvalidArgumentError:XEA,ConnectTimeoutError:$EA}=eQ(),U3,Z3;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE)Z3=class{constructor(Q){this._maxCachedSessions=Q,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry((B)=>{if(this._sessionCache.size<this._maxCachedSessions)return;let E=this._sessionCache.get(B);if(E!==void 0&&E.deref()===void 0)this._sessionCache.delete(B)})}get(Q){let B=this._sessionCache.get(Q);return B?B.deref():null}set(Q,B){if(this._maxCachedSessions===0)return;this._sessionCache.set(Q,new WeakRef(B)),this._sessionRegistry.register(B,Q)}};else Z3=class{constructor(Q){this._maxCachedSessions=Q,this._sessionCache=new Map}get(Q){return this._sessionCache.get(Q)}set(Q,B){if(this._maxCachedSessions===0)return;if(this._sessionCache.size>=this._maxCachedSessions){let{value:E}=this._sessionCache.keys().next();this._sessionCache.delete(E)}this._sessionCache.set(Q,B)}};function KEA({allowH2:A,maxCachedSessions:Q,socketPath:B,timeout:E,...I}){if(Q!=null&&(!Number.isInteger(Q)||Q<0))throw new XEA("maxCachedSessions must be a positive Line truncated
`,this[JO]=F!=null?F:300000,this[YO]=E!=null?E:300000,this[pN]=w==null?!0:w,this[nEA]=M,this[iN]=d,this[SD]=null,this[NO]=m>-1?m:-1,this[K0]="h1",this[pI]=null,this[Y8]=!x?null:{openStreams:0,maxConcurrentStreams:l!=null?l:100},this[UO]=`${this[fE].hostname}${this[fE].port?`:${this[fE].port}`:""}`,this[ZB]=[],this[WB]=0,this[lI]=0}get pipelining(){return this[_D]}set pipelining(A){this[_D]=A,iI(this,!0)}get[pF](){return this[ZB].length-this[lI]}get[PB](){return this[lI]-this[WB]}get[lF](){return this[ZB].length-this[WB]}get[iEA](){return!!this[SB]&&!this[XY]&&!this[SB].destroyed}get[H3](){let A=this[SB];return A&&(A[EI]||A[ID]||A[KY])||this[lF]>=(this[_D]||1)||this[pF]>0}[pEA](A){LO(this),this.once("connect",A)}[oEA](A,Q){let B=A.origin||this[fE].origin,E=this[K0]==="h2"?z3[tEA](B,A,Q):z3[AIA](B,A,Q);if(this[ZB].push(E),this[cF]);else if(lA.bodyLength(E.body)==null&&lA.isIterable(E.body))this[cF]=1,process.nextTick(iI,this);else iI(this,!0);if(this[cF]&&this[yD]!==2&&this[H3])this[yD]=2;return this[yD]<2}async[aEA](){return new Promise((A)=>{if(!this[lF])A(null);else this[SD]=A})}async[sEA](A){return new Promise((Q)=>{let B=this[ZB].splice(this[lI]);for(let I=0;I<B.length;I++){let C=B[I];II(this,C,A)}let E=()=>{if(this[SD])this[SD](),this[SD]=null;Q()};if(this[pI]!=null)lA.destroy(this[pI],A),this[pI]=null,this[Y8]=null;if(!this[SB])queueMicrotask(E);else lA.destroy(this[SB].on("close",E),A);iI(this)})}}function YIA(A){qA(A.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[SB][xE]=A,N8(this[$0],A)}function JIA(A,Q,B){let E=new X0(`HTTP/2: "frameError" received - type ${A}, code ${Q}`);if(B===0)this[SB][xE]=E,N8(this[$0],E)}function GIA(){lA.destroy(this,new $Y("other side closed")),lA.destroy(this[SB],new $Y("other side closed"))}function NIA(A){let Q=this[$0],B=new X0(`HTTP/2: "GOAWAY" frame received with code ${A}`);if(Q[SB]=null,Q[pI]=null,Q.destroyed){qA(this[pF]===0);let E=Q[ZB].splice(Q[WB]);for(let I=0;I<E.length;I++){let C=E[I];II(this,C,B)}}else if(Q[PB]>0){let E=Q[ZB][Q[WB]];Q[ZB][Q[WB]++]=null,II(Q,E,B)}Q[lI]=Q[WB],qA(Q[PB]===0),Q.emit("disconnect",Q[fE],[Q],B),iI(Q)}var U0=nT(),UIA=E8(),ZIA=Buffer.alloc(0);async function WIA(){let A=process.env.JEST_WORKER_ID?K3():void 0,Q;try{Q=await WebAssembly.compile(Buffer.from(QO(),"base64"))}catch(B){Q=await WebAssembly.compile(Buffer.from(A||K3(),"base64"))}return await WebAssembly.instantiate(Q,{env:{wasm_on_url:(B,E,I)=>{return 0},wasm_on_status:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-W0+Z0.byteOffset;return JE.onStatus(new I8(Z0.buffer,C,I))||0},wasm_on_message_begin:(B)=>{return qA.strictEqual(JE.ptr,B),JE.onMessageBegin()||0},wasm_on_header_field:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-W0+Z0.byteOffset;return JE.onHeaderField(new I8(Z0.buffer,C,I))||0},wasm_on_header_value:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-W0+Z0.byteOffset;return JE.onHeaderValue(new I8(Z0.buffer,C,I))||0},wasm_on_headers_complete:(B,E,I,C)=>{return qA.strictEqual(JE.ptr,B),JE.onHeadersComplete(E,Boolean(I),Boolean(C))||0},wasm_on_body:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-W0+Z0.byteOffset;return JE.onBody(new I8(Z0.buffer,C,I))||0},wasm_on_message_complete:(B)=>{return qA.strictEqual(JE.ptr,B),JE.onMessageComplete()||0}}})}var V3=null,M3=WIA();M3.catch();var JE=null,Z0=null,C8=0,W0=null,LY=1,F8=2,R3=3;class WO{constructor(A,Q,{exports:B}){qA(Number.isFinite(A[D8])&&A[D8]>0),this.llhttp=B,this.ptr=this.llhttp.llhttp_alloc(U0.TYPE.RESPONSE),this.client=A,this.socket=Q,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=A[D8],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=A[NO]}setTimeout(A,Q){if(this.timeoutType=Q,A!==this.timeoutValue){if(L3.clearTimeout(this.timeout),A){if(this.timeout=L3.setTimeout(XIA,A,this),this.timeout.unref)this.timeout.unref()}else this.timeout=null;this.timeoutValue=A}else if(this.timeout){if(this.timeout.refresh)this.timeout.refresh()}}resume(){if(this.socket.destroyed||!this.paused)return;if(qA(this.ptr!=null),qA(JE==null),this.llhttp.llhttp_resume(this.ptr),qA(this.timeoutType===F8),this.timeout){if(this.timeout.refresh)this.timeout.refresh()}this.paused=!1,this.execute(this.socket.read()||ZIA),this.readMore()}readMore(){while(!this.paused&&this.ptr){let A=this.socket.read();if(A===null)break;this.execute(A)}}execute(A){qA(this.ptr!=null),qA(JE==null),qA(!this.paused);let{socket:Q,llhttp:B}=this;if(A.length>C8){if(W0)B.free(W0);C8=Math.ceil(A.length/4096)*4096,W0=B.malloc(C8)}new Uint8Array(B.memory.buffer,W0,C8).set(A);try{let E;try{Z0=A,JE=this,E=B.llhttp_execute(this.ptr,W0,A.length)}catch(C){throw C}finally{JE=null,Z0=null}let I=B.llhttp_get_error_pos(this.ptr)-W0;if(E===U0.ERROR.PAUSED_UPGRADE)this.onUpgrade(A.slice(I));else if(E===U0.ERROR.PAUSED)this.paused=!0,Q.unshift(A.slice(I));else if(E Line truncated
`;if(typeof C==="string")X+=`host: ${C}\r
`;else X+=A[CO];if(D)X+=`connection: upgrade\r
upgrade: ${D}\r
`;else if(A[_D]&&!Z[EI])X+=`connection: keep-alive\r
`;else X+=`connection: close\r
`;if(F)X+=F;if(bE.sendHeaders.hasSubscribers)bE.sendHeaders.publish({request:Q,headers:X,socket:Z});if(!B||N===0){if(U===0)Z.write(`${X}content-length: 0\r
\r
`,"latin1");else qA(U===null,"no body must not have content length"),Z.write(`${X}\r
`,"latin1");Q.onRequestSent()}else if(lA.isBuffer(B)){if(qA(U===B.byteLength,"buffer body must have content length"),Z.cork(),Z.write(`${X}content-length: ${U}\r
\r
`,"latin1"),Z.write(B),Z.uncork(),Q.onBodySent(B),Q.onRequestSent(),!G)Z[EI]=!0}else if(lA.isBlobLike(B))if(typeof B.stream==="function")G8({body:B.stream(),client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else HO({body:B,client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else if(lA.isStream(B))zO({body:B,client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else if(lA.isIterable(B))G8({body:B,client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else qA(!1);return!0}function LIA(A,Q,B){let{body:E,method:I,path:C,host:D,upgrade:F,expectContinue:Y,signal:J,headers:G}=B,N;if(typeof G==="string")N=z3[eEA](G.trim());else N=G;if(F)return II(A,B,Error("Upgrade not supported for H2")),!1;try{B.onConnect((g)=>{if(B.aborted||B.completed)return;II(A,B,g||new T3)})}catch(g){II(A,B,g)}if(B.aborted)return!1;let U,Z=A[Y8];if(N[QIA]=D||A[UO],N[BIA]=I,I==="CONNECT"){if(Q.ref(),U=Q.request(N,{endStream:!1,signal:J}),U.id&&!U.pending)B.onUpgrade(null,null,U),++Z.openStreams;else U.once("ready",()=>{B.onUpgrade(null,null,U),++Z.openStreams});return U.once("close",()=>{if(Z.openStreams-=1,Z.openStreams===0)Q.unref()}),!0}N[EIA]=C,N[IIA]="https";let X=I==="PUT"||I==="POST"||I==="PATCH";if(E&&typeof E.read==="function")E.read(0);let $=lA.bodyLength(E);if($==null)$=B.contentLength;if($===0||!X)$=null;if(VO(I)&&$>0&&B.contentLength!=null&&B.contentLength!==$){if(A[pN])return II(A,B,new ED),!1;process.emitWarning(new ED)}if($!=null)qA(E,"no body must not have content length"),N[CIA]=`${$}`;Q.ref();let V=I==="GET"||I==="HEAD";if(Y)N[DIA]="100-continue",U=Q.request(N,{endStream:V,signal:J}),U.once("continue",w);else U=Q.request(N,{endStream:V,signal:J}),w();return++Z.openStreams,U.once("response",(g)=>{let{[FIA]:M,...k}=g;if(B.onHeaders(Number(M),k,U.resume.bind(U),"")===!1)U.pause()}),U.once("end",()=>{B.onComplete([])}),U.on("data",(g)=>{if(B.onData(g)===!1)U.pause()}),U.once("close",()=>{if(Z.openStreams-=1,Z.openStreams===0)Q.unref()}),U.once("error",function(g){if(A[pI]&&!A[pI].destroyed&&!this.closed&&!this.destroyed)Z.streams-=1,lA.destroy(U,g)}),U.once("frameError",(g,M)=>{let k=new X0(`HTTP/2: "frameError" received - type ${g}, code ${M}`);if(II(A,B,k),A[pI]&&!A[pI].destroyed&&!this.closed&&!this.destroyed)Z.streams-=1,lA.destroy(U,k)}),!0;function w(){if(!E)B.onRequestSent();else if(lA.isBuffer(E))qA($===E.byteLength,"buffer body must have content length"),U.cork(),U.write(E),U.uncork(),U.end(),B.onBodySent(E),B.onRequestSent();else if(lA.isBlobLike(E))if(typeof E.stream==="function")G8({client:A,request:B,contentLength:$,h2stream:U,expectsPayload:X,body:E.stream(),socket:A[SB],header:""});else HO({body:E,client:A,request:B,contentLength:$,expectsPayload:X,h2stream:U,header:"",socket:A[SB]});else if(lA.isStream(E))zO({body:E,client:A,request:B,contentLength:$,expectsPayload:X,socket:A[SB],h2stream:U,header:""});else if(lA.isIterable(E))G8({body:E,client:A,request:B,contentLength:$,expectsPayload:X,header:"",h2stream:U,socket:A[SB]});else qA(!1)}}function zO({h2stream:A,body:Q,client:B,request:E,socket:I,contentLength:C,header:D,expectsPayload:F}){if(qA(C!==0||B[PB]===0,"stream body cannot be pipelined"),B[K0]==="h2"){let $=function(V){E.onBodySent(V)},X=SEA(Q,A,(V)=>{if(V)lA.destroy(Q,V),lA.destroy(A,V);else E.onRequestSent()});X.on("data",$),X.once("end",()=>{X.removeListener("data",$),lA.destroy(X)});return}let Y=!1,J=new O3({socket:I,request:E,contentLength:C,client:B,expectsPayload:F,header:D}),G=function(X){if(Y)return;try{if(!J.write(X)&&this.pause)this.pause()}catch($){lA.destroy(this,$)}},N=function(){if(Y)return;if(Q.resume)Q.resume()},U=function(){if(Y)return;let X=new T3;queueMicrotask(()=>Z(X))},Z=function(X){if(Y)return;if(Y=!0,qA(I.destroyed||I[ID]&&B[PB]<=1),I.off("drain",N).off("error",Z),Q.removeListener("data",G).removeListener("end",Z).removeListener("error",Z).removeListener("close",U),!X)try{J.end()}catch($){X=$}if(J.destroy(X),X&&(X.code!=="UND_ERR_INFO"||X.message!=="reset"))lA.destroy(Q,X);else lA.destroy(Q)};if(Q.on("data",G).on("end",Z).on("error",Z).on("close",U),Q.resume)Q.resume();I.on("drain",N).on("error",Z)}async function HO({h2stream:A,body:Q,client:B,request:E,socket:I,contentLength:C,header:D,expectsPayload:F}){qA(C===Q.size,"blob body must have content length");let Y=B[K0]==="h2";try{if(C!=null&&C!==Q.size)throw new ED;let J=Buffer.from(await Q.arrayBuffer());if(Y)A.cork(),A.write(J),A.uncork();else I.cork(),I.write(`${D}content-length: ${C}\r
\r
`,"latin1"),I.write(J),I.uncork();if(E.onBodySent(J),E.onRequestSent(),!F)I[EI]=!0;iI(B)}catch(J){lA.destroy(Y?A:I,J)}}async function G8({h2stream:A,body:Q,client:B,request:E,socket:I,contentLength:C,header:D,expectsPayload:F}){qA(C!==0||B[PB]===0,"iterator body cannot be pipelined");let Y=null;function J(){if(Y){let U=Y;Y=null,U()}}let G=()=>new Promise((U,Z)=>{if(qA(Y===null),I[xE])Z(I[xE]);else Y=U});if(B[K0]==="h2"){A.on("close",J).on("drain",J);try{for await(let U of Q){if(I[xE])throw I[xE];let Z=A.write(U);if(E.onBodySent(U),!Z)await G()}}catch(U){A.destroy(U)}finally{E.onRequestSent(),A.end(),A.off("close",J).off("drain",J)}return}I.on("close",J).on("drain",J);let N=new O3({socket:I,request:E,contentLength:C,client:B,expectsPayload:F,header:D});try{for await(let U of Q){if(I[xE])throw I[xE];if(!N.write(U))await G()}N.end()}catch(U){N.destroy(U)}finally{I.off("close",J).off("drain",J)}}class O3{constructor({socket:A,request:Q,contentLength:B,client:E,expectsPayload:I,header:C}){this.socket=A,this.request=Q,this.contentLength=B,this.client=E,this.bytesWritten=0,this.expectsPayload=I,this.header=C,A[ID]=!0}write(A){let{socket:Q,request:B,contentLength:E,client:I,bytesWritten:C,expectsPayload:D,header:F}=this;if(Q[xE])throw Q[xE];if(Q.destroyed)return!1;let Y=Buffer.byteLength(A);if(!Y)return!0;if(E!==null&&C+Y>E){if(I[pN])throw new ED;process.emitWarning(new ED)}if(Q.cork(),C===0){if(!D)Q[EI]=!0;if(E===null)Q.write(`${F}transfer-encoding: chunked\r
`,"latin1");else Q.write(`${F}content-length: ${E}\r
\r
`,"latin1")}if(E===null)Q.write(`\r
${Y.toString(16)}\r
`,"latin1");this.bytesWritten+=Y;let J=Q.write(A);if(Q.uncork(),B.onBodySent(A),!J){if(Q[hB].timeout&&Q[hB].timeoutType===LY){if(Q[hB].timeout.refresh)Q[hB].timeout.refresh()}}return J}end(){let{socket:A,contentLength:Q,client:B,bytesWritten:E,expectsPayload:I,header:C,request:D}=this;if(D.onRequestSent(),A[ID]=!1,A[xE])throw A[xE];if(A.destroyed)return;if(E===0)if(I)A.write(`${C}content-length: 0\r
\r
`,"latin1");else A.write(`${C}\r
`,"latin1");else if(Q===null)A.write(`\r
0\r
\r
`,"latin1");if(Q!==null&&E!==Q)if(B[pN])throw new ED;else process.emitWarning(new ED);if(A[hB].timeout&&A[hB].timeoutType===LY){if(A[hB].timeout.refresh)A[hB].timeout.refresh()}iI(B)}destroy(A){let{socket:Q,client:B}=this;if(Q[ID]=!1,A)qA(B[PB]<=1,"pipeline should only contain this request"),lA.destroy(Q,A)}}function II(A,Q,B){try{Q.onError(B),qA(Q.aborted)}catch(E){A.emit("error",E)}}wO.exports=ZO});var RO=K((FSA,MO)=>{class q3{constructor(){this.bottom=0,this.top=0,this.list=Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(A){this.list[this.top]=A,this.top=this.top+1&2047}shift(){let A=this.list[this.bottom];if(A===void 0)return null;return this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,A}}MO.exports=class{constructor(){this.head=this.tail=new q3}isEmpty(){return this.head.isEmpty()}push(Q){if(this.head.isFull())this.head=this.head.next=new q3;this.head.push(Q)}shift(){let Q=this.tail,B=Q.shift();if(Q.isEmpty()&&Q.next!==null)this.tail=Q.next;return B}}});var OO=K((YSA,TO)=>{var{kFree:VIA,kConnected:zIA,kPending:HIA,kQueued:wIA,kRunning:MIA,kSize:RIA}=UB(),iF=Symbol("pool");class gO{constructor(A){this[iF]=A}get connected(){return this[iF][zIA]}get free(){return this[iF][VIA]}get pending(){return this[iF][HIA]}get queued(){return this[iF][wIA]}get running(){return this[iF][MIA]}get size(){return this[iF][RIA]}}TO.exports=gO});var x3=K((JSA,vO)=>{var gIA=vN(),TIA=RO(),{kConnected:j3,kSize:qO,kRunning:jO,kPending:PO,kQueued:aN,kBusy:OIA,kFree:qIA,kUrl:jIA,kClose:PIA,kDestroy:kIA,kDispatch:fIA}=UB(),xIA=OO(),zI=Symbol("clients"),CI=Symbol("needDrain"),sN=Symbol("queue"),P3=Symbol("closed resolve"),k3=Symbol("onDrain"),kO=Symbol("onConnect"),fO=Symbol("onDisconnect"),xO=Symbol("onConnectionError"),f3=Symbol("get dispatcher"),SO=Symbol("add client"),yO=Symbol("remove client"),hO=Symbol("stats");class _O extends gIA{constructor(){super();this[sN]=new TIA,this[zI]=[],this[aN]=0;let A=this;this[k3]=function(B,E){let I=A[sN],C=!1;while(!C){let D=I.shift();if(!D)break;A[aN]--,C=!this.dispatch(D.opts,D.handler)}if(this[CI]=C,!this[CI]&&A[CI])A[CI]=!1,A.emit("drain",B,[A,...E]);if(A[P3]&&I.isEmpty())Promise.all(A[zI].map((D)=>D.close())).then(A[P3])},this[kO]=(Q,B)=>{A.emit("connect",Q,[A,...B])},this[fO]=(Q,B,E)=>{A.emit("disconnect",Q,[A,...B],E)},this[xO]=(Q,B,E)=>{A.emit("connectionError",Q,[A,...B],E)},this[hO]=new xIA(this)}get[OIA](){return this[CI]}get[j3](){return this[zI].filter((A)=>A[j3]).length}get[qIA](){return this[zI].filter((A)=>A[j3]&&!A[CI]).length}get[PO](){let A=this[aN];for(let{[PO]:Q}of this[zI])A+=Q;return A}get[jO](){let A=0;for(let{[jO]:Q}of this[zI])A+=Q;return A}get[qO](){let A=this[aN];for(let{[qO]:Q}of this[zI])A+=Q;return A}get stats(){return this[hO]}async[PIA](){if(this[sN].isEmpty())return Promise.all(this[zI].map((A)=>A.close()));else return new Promise((A)=>{this[P3]=A})}async[kIA](A){while(!0){let Q=this[sN].shift();if(!Q)break;Q.handler.onError(A)}return Promise.all(this[zI].map((Q)=>Q.destroy(A)))}[fIA](A,Q){let B=this[f3]();if(!B)this[CI]=!0,this[sN].push({opts:A,handler:Q}),this[aN]++;else if(!B.dispatch(A,Q))B[CI]=!0,this[CI]=!this[f3]();return!this[CI]}[SO](A){if(A.on("drain",this[k3]).on("connect",this[kO]).on("disconnect",this[fO]).on("connectionError",this[xO]),this[zI].push(A),this[CI])process.nextTick(()=>{if(this[CI])this[k3](A[jIA],[this,A])});return this}[yO](A){A.close(()=>{let Q=this[zI].indexOf(A);if(Q!==-1)this[zI].splice(Q,1)}),this[CI]=this[zI].some((Q)=>!Q[CI]&&Q.closed!==!0&&Q.destroyed!==!0)}}vO.exports={PoolBase:_O,kClients:zI,kNeedDrain:CI,kAddClient:SO,kRemoveClient:yO,kGetDispatcher:f3}});var VY=K((GSA,dO)=>{var{PoolBase:hIA,kClients:U8,kNeedDrain:SIA,kAddClient:yIA,kGetDispatcher:_IA}=x3(),vIA=nN(),{InvalidArgumentError:h3}=eQ(),S3=TQ(),{kUrl:bO,kInterceptors:bIA}=UB(),uIA=bN(),y3=Symbol("options"),_3=Symbol("connections"),uO=Symbol("factory");function mIA(A,Q){return new vIA(A,Q)}class mO extends hIA{constructor(A,{connections:Q,factory:B=mIA,connect:E,connectTimeout:I,tls:C,maxCachedSessions:D,socketPath:F,autoSelectFamily:Y,autoSelectFamilyAttemptTimeout:J,allowH2:G,...N}={}){super();if(Q!=null&&(!Number.isFinite(Q)||Q<0))throw new h3("invalid connections");if(typeof B!=="function")throw new h3("factory must be a function.");if(E!=null&&typeof E!=="function"&&typeof E!=="object")throw new h3("connect must be a function or an object");if(typeof E!=="function")E=uIA({...C,maxCachedSessions:D,allowH2:G,socketPath:F,timeout:I,...S3.nodeHasAutoSelectFamily&&Y?{autoSelectFamily:Y,autoSelectFamilyAttemptTimeout:J}:void 0,...E});this[bIA]=N.interceptors&&N.interceptors.Pool&&Array.isArray(N.interceptors.Pool)?N.interceptors.Pool:[],this[_3]=Q||null,this[bO]=S3.parseOrigin(A),this[y3]={...S3.deepClone(N),connect:E,allowH2:G},this[y3].interceptors=N.interceptors?{...N.interceptors}:void 0,this[uO]=B,this.on("connectionError",(U,Z,X)=>{for(let $ of Z){let V=this[U8].indexOf($); Line truncated
${B.count} ${B.noun} ${B.is} pending:
${A.format(Q)}
`.trim())}}xj.exports=fj});var mj=K((fSA,uj)=>{var{kProxy:d0A,kClose:c0A,kDestroy:l0A,kInterceptors:p0A}=UB(),{URL:Sj}=require("url"),yj=rN(),i0A=VY(),n0A=vN(),{InvalidArgumentError:E9,RequestAbortedError:a0A}=eQ(),_j=bN(),Q9=Symbol("proxy agent"),P8=Symbol("proxy client"),B9=Symbol("proxy headers"),U$=Symbol("request tls settings"),s0A=Symbol("proxy tls settings"),vj=Symbol("connect endpoint function");function o0A(A){return A==="https:"?443:80}function r0A(A){if(typeof A==="string")A={uri:A};if(!A||!A.uri)throw new E9("Proxy opts.uri is mandatory");return{uri:A.uri,protocol:A.protocol||"https"}}function t0A(A,Q){return new i0A(A,Q)}class bj extends n0A{constructor(A){super(A);if(this[d0A]=r0A(A),this[Q9]=new yj(A),this[p0A]=A.interceptors&&A.interceptors.ProxyAgent&&Array.isArray(A.interceptors.ProxyAgent)?A.interceptors.ProxyAgent:[],typeof A==="string")A={uri:A};if(!A||!A.uri)throw new E9("Proxy opts.uri is mandatory");let{clientFactory:Q=t0A}=A;if(typeof Q!=="function")throw new E9("Proxy opts.clientFactory must be a function.");this[U$]=A.requestTls,this[s0A]=A.proxyTls,this[B9]=A.headers||{};let B=new Sj(A.uri),{origin:E,port:I,host:C,username:D,password:F}=B;if(A.auth&&A.token)throw new E9("opts.auth cannot be used in combination with opts.token");else if(A.auth)this[B9]["proxy-authorization"]=`Basic ${A.auth}`;else if(A.token)this[B9]["proxy-authorization"]=A.token;else if(D&&F)this[B9]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(D)}:${decodeURIComponent(F)}`).toString("base64")}`;let Y=_j({...A.proxyTls});this[vj]=_j({...A.requestTls}),this[P8]=Q(B,{connect:Y}),this[Q9]=new yj({...A,connect:async(J,G)=>{let N=J.host;if(!J.port)N+=`:${o0A(J.protocol)}`;try{let{socket:U,statusCode:Z}=await this[P8].connect({origin:E,port:I,path:N,signal:J.signal,headers:{...this[B9],host:C}});if(Z!==200)U.on("error",()=>{}).destroy(),G(new a0A(`Proxy response (${Z}) !== 200 when HTTP Tunneling`));if(J.protocol!=="https:"){G(null,U);return}let X;if(this[U$])X=this[U$].servername;else X=J.servername;this[vj]({...J,servername:X,httpSocket:U},G)}catch(U){G(U)}}})}dispatch(A,Q){let{host:B}=new Sj(A.origin),E=e0A(A.headers);return ADA(E),this[Q9].dispatch({...A,headers:{...E,host:B}},Q)}async[c0A](){await this[Q9].close(),await this[P8].close()}async[l0A](){await this[Q9].destroy(),await this[P8].destroy()}}function e0A(A){if(Array.isArray(A)){let Q={};for(let B=0;B<A.length;B+=2)Q[A[B]]=A[B+1];return Q}return A}function ADA(A){if(A&&Object.keys(A).find((B)=>B.toLowerCase()==="proxy-authorization"))throw new E9("Proxy-Authorization should be sent in ProxyAgent constructor")}uj.exports=bj});var ij=K((xSA,pj)=>{var tF=require("assert"),{kRetryHandlerDefaultRetry:dj}=UB(),{RequestRetryError:k8}=eQ(),{isDisturbed:cj,parseHeaders:QDA,parseRangeHeader:lj}=TQ();function BDA(A){let Q=Date.now();return new Date(A).getTime()-Q}class Z${constructor(A,Q){let{retryOptions:B,...E}=A,{retry:I,maxRetries:C,maxTimeout:D,minTimeout:F,timeoutFactor:Y,methods:J,errorCodes:G,retryAfter:N,statusCodes:U}=B??{};this.dispatch=Q.dispatch,this.handler=Q.handler,this.opts=E,this.abort=null,this.aborted=!1,this.retryOpts={retry:I??Z$[dj],retryAfter:N??!0,maxTimeout:D??30000,timeout:F??500,timeoutFactor:Y??2,maxRetries:C??5,methods:J??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:U??[500,502,503,504,429],errorCodes:G??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect((Z)=>{if(this.aborted=!0,this.abort)this.abort(Z);else this.reason=Z})}onRequestSent(){if(this.handler.onRequestSent)this.handler.onRequestSent()}onUpgrade(A,Q,B){if(this.handler.onUpgrade)this.handler.onUpgrade(A,Q,B)}onConnect(A){if(this.aborted)A(this.reason);else this.abort=A}onBodySent(A){if(this.handler.onBodySent)return this.handler.onBodySent(A)}static[dj](A,{state:Q,opts:B},E){let{statusCode:I,code:C,headers:D}=A,{method:F,retryOptions:Y}=B,{maxRetries:J,timeout:G,maxTimeout:N,timeoutFactor:U,statusCodes:Z,errorCodes:X,methods:$}=Y,{counter:V,currentTimeout:w}=Q;if(w=w!=null&&w>0?w:G,C&&C!=="UND_ERR_REQ_RETRY"&&C!=="UND_ERR_SOCKET"&&!X.includes(C)){E(A);return}if(Array.isArray($)&&!$.includes(F)){E(A);return}if(I!=null&&Array.isArray(Z)&&!Z.includes(I)){E(A);return}if(V>J){E(A);return}let g=D!=null&&D["retry-after"];if(g)g=Number(g),g=isNaN(g)?BDA(g):g*1000;let M=g>0?Math.min(g,N):Math.min(w*U**V,N);Q.currentTimeout=M,setTimeout(()=>E(null),M)}onHeaders(A,Q,B,E){let I=QDA(Q);if(this.retryCount+=1,A>=300)return this.abort(new k8("Request failed",A,{headers:I,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,A!==206)return!0;let D=lj(I["content-range"]);if(!D)return this.abort(new k8("Content-Range mismatch",A,{headers:I,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==I.etag)return this.abort(new k8("ETag mismatch",A,{headers:I,count:this.retryCount})),!1;let{star Line truncated
Error Code : ${C.statusCode}
Error Message: ${C.message}`)})).result)===null||Q===void 0?void 0:Q.value;if(!I)throw Error("Response json body do not have ID Token field");return I})}static getIDToken(A){return Df(this,void 0,void 0,function*(){try{let Q=dY.getIDTokenUrl();if(A){let E=encodeURIComponent(A);Q=`${Q}&audience=${E}`}(0,Ff.debug)(`ID token url is ${Q}`);let B=yield dY.getCall(Q);return(0,Ff.setSecret)(B),B}catch(Q){throw Error(`Error message: ${Q.message}`)}})}}cY.OidcClient=dY});var AK=K((gI)=>{var t$=gI&&gI.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(gI,"__esModule",{value:!0});gI.summary=gI.markdownSummary=gI.SUMMARY_DOCS_URL=gI.SUMMARY_ENV_VAR=void 0;var lYA=require("os"),e$=require("fs"),{access:pYA,appendFile:iYA,writeFile:nYA}=e$.promises;gI.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";gI.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Jf{constructor(){this._buffer=""}filePath(){return t$(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let A=process.env[gI.SUMMARY_ENV_VAR];if(!A)throw Error(`Unable to find environment variable for $${gI.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield pYA(A,e$.constants.R_OK|e$.constants.W_OK)}catch(Q){throw Error(`Unable to access summary file: '${A}'. Check if the file has correct read/write permissions.`)}return this._filePath=A,this._filePath})}wrap(A,Q,B={}){let E=Object.entries(B).map(([I,C])=>` ${I}="${C}"`).join("");if(!Q)return`<${A}${E}>`;return`<${A}${E}>${Q}</${A}>`}write(A){return t$(this,void 0,void 0,function*(){let Q=!!(A===null||A===void 0?void 0:A.overwrite),B=yield this.filePath();return yield(Q?nYA:iYA)(B,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return t$(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(A,Q=!1){return this._buffer+=A,Q?this.addEOL():this}addEOL(){return this.addRaw(lYA.EOL)}addCodeBlock(A,Q){let B=Object.assign({},Q&&{lang:Q}),E=this.wrap("pre",this.wrap("code",A),B);return this.addRaw(E).addEOL()}addList(A,Q=!1){let B=Q?"ol":"ul",E=A.map((C)=>this.wrap("li",C)).join(""),I=this.wrap(B,E);return this.addRaw(I).addEOL()}addTable(A){let Q=A.map((E)=>{let I=E.map((C)=>{if(typeof C==="string")return this.wrap("td",C);let{header:D,data:F,colspan:Y,rowspan:J}=C,G=D?"th":"td",N=Object.assign(Object.assign({},Y&&{colspan:Y}),J&&{rowspan:J});return this.wrap(G,F,N)}).join("");return this.wrap("tr",I)}).join(""),B=this.wrap("table",Q);return this.addRaw(B).addEOL()}addDetails(A,Q){let B=this.wrap("details",this.wrap("summary",A)+Q);return this.addRaw(B).addEOL()}addImage(A,Q,B){let{width:E,height:I}=B||{},C=Object.assign(Object.assign({},E&&{width:E}),I&&{height:I}),D=this.wrap("img",null,Object.assign({src:A,alt:Q},C));return this.addRaw(D).addEOL()}addHeading(A,Q){let B=`h${Q}`,E=["h1","h2","h3","h4","h5","h6"].includes(B)?B:"h1",I=this.wrap(E,A);return this.addRaw(I).addEOL()}addSeparator(){let A=this.wrap("hr",null);return this.addRaw(A).addEOL()}addBreak(){let A=this.wrap("br",null);return this.addRaw(A).addEOL()}addQuote(A,Q){let B=Object.assign({},Q&&{cite:Q}),E=this.wrap("blockquote",A,B);return this.addRaw(E).addEOL()}addLink(A,Q){let B=this.wrap("a",A,{href:Q});return this.addRaw(B).addEOL()}}var Gf=new Jf;gI.markdownSummary=Gf;gI.summary=Gf});var Nf=K((TI)=>{var aYA=TI&&TI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),sYA=TI&&TI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),oYA=TI&&TI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))aYA(Q,A,B)}return sYA(Q,A),Q};Object.defineProperty(TI,"__esModule",{value:!0});TI.toPlatformPath=TI.toWin32Path=TI.toPosixPath=void 0;var rYA=oYA(require("path"));function tYA(A){return A.replace(/[\\]/g,"/")}TI.toPosixPath=tYA;function eYA(A){return A.replace(/[/]/g,"\\")}TI.toWin32Path=eYA;function AJA(A){return A.replace(/[/\\]/g,rYA.sep)}TI.toPlatformPath=AJA});var BK=K((fA)=>{var QJA=fA&&fA.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;Object.defineProperty(A,E,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),Line truncated
`);return{name:Q,version:B}});OQ.platform=Pf.default.platform();OQ.arch=Pf.default.arch();OQ.isWindows=OQ.platform==="win32";OQ.isMacOS=OQ.platform==="darwin";OQ.isLinux=OQ.platform==="linux";function xJA(){return L4(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield OQ.isWindows?PJA():OQ.isMacOS?kJA():fJA()),{platform:OQ.platform,arch:OQ.arch,isWindows:OQ.isWindows,isMacOS:OQ.isMacOS,isLinux:OQ.isLinux})})}OQ.getDetails=xJA});var yB=K((jA)=>{var hJA=jA&&jA.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),SJA=jA&&jA.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),DK=jA&&jA.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))hJA(Q,A,B)}return SJA(Q,A),Q},ff=jA&&jA.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(jA,"__esModule",{value:!0});jA.platform=jA.toPlatformPath=jA.toWin32Path=jA.toPosixPath=jA.markdownSummary=jA.summary=jA.getIDToken=jA.getState=jA.saveState=jA.group=jA.endGroup=jA.startGroup=jA.info=jA.notice=jA.warning=jA.error=jA.debug=jA.isDebug=jA.setFailed=jA.setCommandEcho=jA.setOutput=jA.getBooleanInput=jA.getMultilineInput=jA.getInput=jA.addPath=jA.setSecret=jA.exportVariable=jA.ExitCode=void 0;var KC=SR(),I1=vR(),nY=xU(),xf=DK(require("os")),yJA=DK(require("path")),_JA=Yf(),CK;(function(A){A[A.Success=0]="Success",A[A.Failure=1]="Failure"})(CK||(jA.ExitCode=CK={}));function vJA(A,Q){let B=(0,nY.toCommandValue)(Q);if(process.env[A]=B,process.env.GITHUB_ENV||"")return(0,I1.issueFileCommand)("ENV",(0,I1.prepareKeyValueMessage)(A,Q));(0,KC.issueCommand)("set-env",{name:A},B)}jA.exportVariable=vJA;function bJA(A){(0,KC.issueCommand)("add-mask",{},A)}jA.setSecret=bJA;function uJA(A){if(process.env.GITHUB_PATH||"")(0,I1.issueFileCommand)("PATH",A);else(0,KC.issueCommand)("add-path",{},A);process.env.PATH=`${A}${yJA.delimiter}${process.env.PATH}`}jA.addPath=uJA;function FK(A,Q){let B=process.env[`INPUT_${A.replace(/ /g,"_").toUpperCase()}`]||"";if(Q&&Q.required&&!B)throw Error(`Input required and not supplied: ${A}`);if(Q&&Q.trimWhitespace===!1)return B;return B.trim()}jA.getInput=FK;function mJA(A,Q){let B=FK(A,Q).split(`
`).filter((E)=>E!=="");if(Q&&Q.trimWhitespace===!1)return B;return B.map((E)=>E.trim())}jA.getMultilineInput=mJA;function dJA(A,Q){let B=["true","True","TRUE"],E=["false","False","FALSE"],I=FK(A,Q);if(B.includes(I))return!0;if(E.includes(I))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${A}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}jA.getBooleanInput=dJA;function cJA(A,Q){if(process.env.GITHUB_OUTPUT||"")return(0,I1.issueFileCommand)("OUTPUT",(0,I1.prepareKeyValueMessage)(A,Q));process.stdout.write(xf.EOL),(0,KC.issueCommand)("set-output",{name:A},(0,nY.toCommandValue)(Q))}jA.setOutput=cJA;function lJA(A){(0,KC.issue)("echo",A?"on":"off")}jA.setCommandEcho=lJA;function pJA(A){process.exitCode=CK.Failure,hf(A)}jA.setFailed=pJA;function iJA(){return process.env.RUNNER_DEBUG==="1"}jA.isDebug=iJA;function nJA(A){(0,KC.issueCommand)("debug",{},A)}jA.debug=nJA;function hf(A,Q={}){(0,KC.issueCommand)("error",(0,nY.toCommandProperties)(Q),A instanceof Error?A.toString():A)}jA.error=hf;function aJA(A,Q={}){(0,KC.issueCommand)("warning",(0,nY.toCommandProperties)(Q),A instanceof Error?A.toString():A)}jA.warning=aJA;function sJA(A,Q={}){(0,KC.issueCommand)("notice",(0,nY.toCommandProperties)(Q),A instanceof Error?A.toString():A)}jA.notice=sJA;function oJA(A){process.stdout.write(A+xf.EOL)}jA.info=oJA;function Sf(A){(0,KC.issue)("group",A)}jA.startGroup=Sf;function yf(){(0,KC.issue)("endgroup")}jA.endGroup=yf;function rJA(A,Q){return ff(this,void 0,void 0,function*(){Sf(A);let B;try{B=yield Q()}finally{yf()}return B})}jA.group=rJA;function tJA(A,Q){if(process.env.GITHUB_STATE||"")return(0,I1.issueFileCommand)("STATE",(0,I1.prepareKeyValueMessage)(A,Q));(0,KC.issueCommand)("save-state",{name:A},(0,nY.toCommandValue)(Q))}jA.saveState=tJA;function eJA(A){return process.env[`STATE_${A}`]||""}jA.getState=eJA;function AGA(A){return ff(this,void 0,void 0,function*(){return yield _JA.OidcClient.getIDToken(A)})}jA.getIDToken=AGA;var QGA=AK();Object.defineProperty(jA,"summary",{enumerable:!0,get:function(){return QGA.summary}});var BGA=AK();Object.defineProperty(jA,"markdownSummary",{enumerable:!0,get:function(){return BGA.markdownSummary}});var YK=Nf();Object.defineProperty(jA,"toPosixPath",{enumerable:!0,get:function(){return YK.toPosixPath}});Object.defineProperty(jA,"toWin32Path",{enumerable:!0,get:function(){return YK.toWin32Path}});Object.defineProperty(jA,"toPlatformPath",{enumerable:!0,get:function(){return YK.toPlatformPath}});jA.platform=DK(kf())});var mf=K((O0)=>{var EGA=O0&&O0.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;Object.defineProperty(A,E,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),IGA=O0&&O0.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),CGA=O0&&O0.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.hasOwnProperty.call(A,B))EGA(Q,A,B)}return IGA(Q,A),Q};Object.defineProperty(O0,"__esModule",{value:!0});O0.getOptions=void 0;var NK=CGA(yB());function DGA(A){let Q={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};if(A){if(typeof A.followSymbolicLinks==="boolean")Q.followSymbolicLinks=A.followSymbolicLinks,NK.debug(`followSymbolicLinks '${Q.followSymbolicLinks}'`);if(typeof A.implicitDescendants==="boolean")Q.implicitDescendants=A.implicitDescendants,NK.debug(`implicitDescendants '${Q.implicitDescendants}'`);if(typeof A.omitBrokenSymbolicLinks==="boolean")Q.omitBrokenSymbolicLinks=A.omitBrokenSymbolicLinks,NK.debug(`omitBrokenSymbolicLinks '${Q.omitBrokenSymbolicLinks}'`)}return Q}O0.getOptions=DGA});var H4=K((vB)=>{var FGA=vB&&vB.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;Object.defineProperty(A,E,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),YGA=vB&&vB.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),JGA=vB&&vB.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.hasOwnProperty.call(A,B))FGA(Q,A,B)}return YGA(Q,A),Q},GGA=vB&&vB.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(vB,"__esModule",{value:!0});vB.safeTrimTrailingSeparator=vB.normalizeSeparators=vB.hasRoot=vB.hasAbsoluteRoot=vB.ensureAbsoluteRoot=vB.dirname=void 0;var z4=JGA(require("path")),C1=GGA(require("assert")),nD=process.platform==="win32";function NGA(A){if(A=ZK(A),nD&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(A))return A;let Q=z4.dirname(A);if(nD&&/^\\\\[^\\]+\\[^\\]+\\$/.test(Q))Q=ZK(Q);return Q}vB.dirname=NGA;function UGA(A,Q){if(C1.default(A,"ensureAbsoluteRoot parameter 'root' must not be empty"),C1.default(Q,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),UK(Q))return Q;if(nD){if(Q.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let B=process.cwd();if(C1.default(B.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${B}'`),Q[0].toUpperCase()===B[0].toUpperCase())if(Q.length===2)return`${Q[0]}:\\${B.substr(3)}`;else{if(!B.endsWith("\\"))B+="\\";return`${Q[Line truncated
%s`,d,d,g,E);var t=g.type==="*"?KK:g.type==="?"?$K:"\\"+g.type;I=!0,E=E.slice(0,g.reStart)+t+"\\("+d}if(X(),C)E+="\\\\";var m=!1;switch(E.charAt(0)){case"[":case".":case"(":m=!0}for(var n=F.length-1;n>-1;n--){var QA=F[n],x=E.slice(0,QA.reStart),l=E.slice(QA.reStart,QA.reEnd-8),u=E.slice(QA.reEnd-8,QA.reEnd),CA=E.slice(QA.reEnd);u+=CA;var i=x.split("(").length-1,KA=CA;for($=0;$<i;$++)KA=KA.replace(/\)[+*?]?/,"");CA=KA;var HA="";if(CA===""&&Q!==M4)HA="$";var uA=x+l+CA+HA+u;E=uA}if(E!==""&&I)E="(?=.)"+E;if(m)E=U+E;if(Q===M4)return[E,I];if(!I)return mGA(A);var cA=B.nocase?"i":"";try{var yA=new RegExp("^"+E+"$",cA)}catch(JA){return new RegExp("$.")}return yA._glob=A,yA._src=E,yA}tI.makeRe=function(A,Q){return new SE(A,Q||{}).makeRe()};SE.prototype.makeRe=uGA;function uGA(){if(this.regexp||this.regexp===!1)return this.regexp;var A=this.set;if(!A.length)return this.regexp=!1,this.regexp;var Q=this.options,B=Q.noglobstar?KK:Q.dot?fGA:xGA,E=Q.nocase?"i":"",I=A.map(function(C){return C.map(function(D){return D===LK?B:typeof D==="string"?dGA(D):D._src}).join("\\/")}).join("|");if(I="^(?:"+I+")$",this.negate)I="^(?!"+I+").*$";try{this.regexp=new RegExp(I,E)}catch(C){this.regexp=!1}return this.regexp}tI.match=function(A,Q,B){B=B||{};var E=new SE(Q,B);if(A=A.filter(function(I){return E.match(I)}),E.options.nonull&&!A.length)A.push(Q);return A};SE.prototype.match=function(Q,B){if(typeof B>"u")B=this.partial;if(this.debug("match",Q,this.pattern),this.comment)return!1;if(this.empty)return Q==="";if(Q==="/"&&B)return!0;var E=this.options;if(z9.sep!=="/")Q=Q.split(z9.sep).join("/");Q=Q.split(Jx),this.debug(this.pattern,"split",Q);var I=this.set;this.debug(this.pattern,"set",I);var C,D;for(D=Q.length-1;D>=0;D--)if(C=Q[D],C)break;for(D=0;D<I.length;D++){var F=I[D],Y=Q;if(E.matchBase&&F.length===1)Y=[C];var J=this.matchOne(Y,F,B);if(J){if(E.flipNegate)return!0;return!this.negate}}if(E.flipNegate)return!1;return this.negate};SE.prototype.matchOne=function(A,Q,B){var E=this.options;this.debug("matchOne",{this:this,file:A,pattern:Q}),this.debug("matchOne",A.length,Q.length);for(var I=0,C=0,D=A.length,F=Q.length;I<D&&C<F;I++,C++){this.debug("matchOne loop");var Y=Q[C],J=A[I];if(this.debug(Q,Y,J),Y===!1)return!1;if(Y===LK){this.debug("GLOBSTAR",[Q,Y,J]);var G=I,N=C+1;if(N===F){this.debug("** at the end");for(;I<D;I++)if(A[I]==="."||A[I]===".."||!E.dot&&A[I].charAt(0)===".")return!1;return!0}while(G<D){var U=A[G];if(this.debug(`
globstar while`,A,G,Q,N,U),this.matchOne(A.slice(G),Q.slice(N),B))return this.debug("globstar found match!",G,D,U),!0;else{if(U==="."||U===".."||!E.dot&&U.charAt(0)==="."){this.debug("dot detected!",A,G,Q,N);break}this.debug("globstar swallow a segment, and continue"),G++}}if(B){if(this.debug(`
>>> no match, partial?`,A,G,Q,N),G===D)return!0}return!1}var Z;if(typeof Y==="string")Z=J===Y,this.debug("string match",Y,J,Z);else Z=J.match(Y),this.debug("pattern match",Y,J,Z);if(!Z)return!1}if(I===D&&C===F)return!0;else if(I===D)return B;else if(C===F)return I===D-1&&A[I]==="";throw Error("wtf?")};function mGA(A){return A.replace(/\\(.)/g,"$1")}function dGA(A){return A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Xx=K((LC)=>{var cGA=LC&&LC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;Object.defineProperty(A,E,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),lGA=LC&&LC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),Zx=LC&&LC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.hasOwnProperty.call(A,B))cGA(Q,A,B)}return lGA(Q,A),Q},pGA=LC&&LC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(LC,"__esModule",{value:!0});LC.Path=void 0;var H9=Zx(require("path")),sD=Zx(H4()),w9=pGA(require("assert")),iGA=process.platform==="win32";class Wx{constructor(A){if(this.segments=[],typeof A==="string")if(w9.default(A,"Parameter 'itemPath' must not be empty"),A=sD.safeTrimTrailingSeparator(A),!sD.hasRoot(A))this.segments=A.split(H9.sep);else{let Q=A,B=sD.dirname(Q);while(B!==Q){let E=H9.basename(Q);this.segments.unshift(E),Q=B,B=sD.dirname(Q)}this.segments.unshift(Q)}else{w9.default(A.length>0,"Parameter 'itemPath' must not be an empty array");for(let Q=0;Q<A.length;Q++){let B=A[Q];if(w9.default(B,"Parameter 'itemPath' must not contain any empty segments"),B=sD.normalizeSeparators(A[Q]),Q===0&&sD.hasRoot(B))B=sD.safeTrimTrailingSeparator(B),w9.default(B===sD.dirname(B),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(B);else w9.default(!B.includes(H9.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(B)}}}toString(){let A=this.segments[0],Q=A.endsWith(H9.sep)||iGA&&/^[A-Z]:$/i.test(A);for(let B=1;B<this.segments.length;B++){if(Q)Q=!1;else A+=H9.sep;A+=this.segments[B]}return A}}LC.Path=Wx});var $x=K((zC)=>{var nGA=zC&&zC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;Object.defineProperty(A,E,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),aGA=zC&&zC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),zK=zC&&zC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.hasOwnProperty.call(A,B))nGA(Q,A,B)}return aGA(Q,A),Q},sGA=zC&&zC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(zC,"__esModule",{value:!0});zC.Pattern=void 0;var oGA=zK(require("os")),M9=zK(require("path")),kI=zK(H4()),D1=sGA(require("assert")),rGA=Ux(),VK=w4(),g4=Xx(),GD=process.platform==="win32";class VC{constructor(A,Q=!1,B,E){this.negate=!1;let I;if(typeof A==="string")I=A.trim();else{B=B||[],D1.default(B.length,"Parameter 'segments' must not empty");let Y=VC.getLiteral(B[0]);if(D1.default(Y&&kI.hasAbsoluteRoot(Y),"Parameter 'segments' first element must be a root path"),I=new g4.Path(B).toString().trim(),A)I=`!${I}`}while(I.startsWith("!"))this.negate=!this.negate,I=I.substr(1).trim();I=VC.fixupPattern(I,E),this.segments=new g4.Path(I).segments,this.trailingSeparator=kI.normalizeSeparators(I).endsWith(M9.sep),I=kI.safeTrimTrailingSeparator(I);let C=!1,D=this.segments.map((Y)=>VC.getLiteral(Y)).filter((Y)=>!C&&!(C=Y===""));this.searchPath=new g4.Path(D).toString(),this.rootRegExp=new RegExp(VC.regExpEscape(D[0]),GD?"i":""),this.isImplicitPattern=Q;let F={dot:!0,nobrace:!0,nocase:GD,nocomment:!0,noext:!0,nonegate:!0};I=GD?I.replace(/\\/g,"/"):I,this.minimatch=new rGA.Minimatch(I,F)}match(A){if(this.segments[this.segments.length-1]==="**"){if(A=kI.normalizeSeparators(A),!A.endsWith(M9.sep)&&this.isImplicitPattern===!1)A=`${A}${M9.sep}`}else A=kI.safeTrimTrailingSeparator(A);if(this.minimatch.match(A))return this.trailingSeparator?VK.MatchKind.Directory:VK.MatchKind.All;return VK.MatchKind.None}partialMatch(A){if(A=kI.safeTrimTrailingSeparator(A),kI.dirname(A)===A)return this.rootRegExp.test(A);return this.minimatch.matchOne(A.split(GD?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(A){return(GD?A:A.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(A,Q){D1.default(A,"pattern cannot be empty");let B=new g4.Path(A).segments.map((E)=>VC.getLiteral(E));if(D1.default(B.every((E,I)=>(E!=="."||I===0)&&E!==".."),`Invalid pattern '${A}'. Relative pathing '.' and '..' is not allowed.`),D1.default(!kI.hasRoot(A)||B[0],`Invalid pattern '${A}'. Root segment must not contain globs.`),A=kI.normalizeSe Line truncated
`),A=A.replace(/\r/g,`
`);let E=A.split(`
`).map((I)=>I.trim());for(let I of E)if(!I||I.startsWith("#"))continue;else B.patterns.push(new Hx.Pattern(I));return B.searchPaths.push(...O4.getSearchPaths(B.patterns)),B})}static stat(A,Q,B){return HK(this,void 0,void 0,function*(){let E;if(Q.followSymbolicLinks)try{E=yield R9.promises.stat(A.path)}catch(I){if(I.code==="ENOENT"){if(Q.omitBrokenSymbolicLinks){wK.debug(`Broken symlink '${A.path}'`);return}throw Error(`No information found for the path '${A.path}'. This may indicate a broken symbolic link.`)}throw I}else E=yield R9.promises.lstat(A.path);if(E.isDirectory()&&Q.followSymbolicLinks){let I=yield R9.promises.realpath(A.path);while(B.length>=A.level)B.pop();if(B.some((C)=>C===I)){wK.debug(`Symlink cycle detected for path '${A.path}' and realpath '${I}'`);return}B.push(I)}return E})}}KE.DefaultGlobber=q4});var Rx=K((rY)=>{var INA=rY&&rY.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(rY,"__esModule",{value:!0});rY.create=void 0;var CNA=Mx();function DNA(A,Q){return INA(this,void 0,void 0,function*(){return yield CNA.DefaultGlobber.create(A,Q)})}rY.create=DNA});var Px=K((AQ,jx)=>{AQ=jx.exports=GQ;var bQ;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG))bQ=function(){var A=Array.prototype.slice.call(arguments,0);A.unshift("SEMVER"),console.log.apply(console,A)};else bQ=function(){};AQ.SEMVER_SPEC_VERSION="2.0.0";var T9=256,j4=Number.MAX_SAFE_INTEGER||9007199254740991,MK=16,FNA=T9-6,tY=AQ.re=[],vQ=AQ.safeRe=[],FA=AQ.src=[],s=AQ.tokens={},Ox=0;function XQ(A){s[A]=Ox++}var gK="[a-zA-Z0-9-]",RK=[["\\s",1],["\\d",T9],[gK,FNA]];function q9(A){for(var Q=0;Q<RK.length;Q++){var B=RK[Q][0],E=RK[Q][1];A=A.split(B+"*").join(B+"{0,"+E+"}").split(B+"+").join(B+"{1,"+E+"}")}return A}XQ("NUMERICIDENTIFIER");FA[s.NUMERICIDENTIFIER]="0|[1-9]\\d*";XQ("NUMERICIDENTIFIERLOOSE");FA[s.NUMERICIDENTIFIERLOOSE]="\\d+";XQ("NONNUMERICIDENTIFIER");FA[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+gK+"*";XQ("MAINVERSION");FA[s.MAINVERSION]="("+FA[s.NUMERICIDENTIFIER]+")\\.("+FA[s.NUMERICIDENTIFIER]+")\\.("+FA[s.NUMERICIDENTIFIER]+")";XQ("MAINVERSIONLOOSE");FA[s.MAINVERSIONLOOSE]="("+FA[s.NUMERICIDENTIFIERLOOSE]+")\\.("+FA[s.NUMERICIDENTIFIERLOOSE]+")\\.("+FA[s.NUMERICIDENTIFIERLOOSE]+")";XQ("PRERELEASEIDENTIFIER");FA[s.PRERELEASEIDENTIFIER]="(?:"+FA[s.NUMERICIDENTIFIER]+"|"+FA[s.NONNUMERICIDENTIFIER]+")";XQ("PRERELEASEIDENTIFIERLOOSE");FA[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+FA[s.NUMERICIDENTIFIERLOOSE]+"|"+FA[s.NONNUMERICIDENTIFIER]+")";XQ("PRERELEASE");FA[s.PRERELEASE]="(?:-("+FA[s.PRERELEASEIDENTIFIER]+"(?:\\."+FA[s.PRERELEASEIDENTIFIER]+")*))";XQ("PRERELEASELOOSE");FA[s.PRERELEASELOOSE]="(?:-?("+FA[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+FA[s.PRERELEASEIDENTIFIERLOOSE]+")*))";XQ("BUILDIDENTIFIER");FA[s.BUILDIDENTIFIER]=gK+"+";XQ("BUILD");FA[s.BUILD]="(?:\\+("+FA[s.BUILDIDENTIFIER]+"(?:\\."+FA[s.BUILDIDENTIFIER]+")*))";XQ("FULL");XQ("FULLPLAIN");FA[s.FULLPLAIN]="v?"+FA[s.MAINVERSION]+FA[s.PRERELEASE]+"?"+FA[s.BUILD]+"?";FA[s.FULL]="^"+FA[s.FULLPLAIN]+"$";XQ("LOOSEPLAIN");FA[s.LOOSEPLAIN]="[v=\\s]*"+FA[s.MAINVERSIONLOOSE]+FA[s.PRERELEASELOOSE]+"?"+FA[s.BUILD]+"?";XQ("LOOSE");FA[s.LOOSE]="^"+FA[s.LOOSEPLAIN]+"$";XQ("GTLT");FA[s.GTLT]="((?:<|>)?=?)";XQ("XRANGEIDENTIFIERLOOSE");FA[s.XRANGEIDENTIFIERLOOSE]=FA[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";XQ("XRANGEIDENTIFIER");FA[s.XRANGEIDENTIFIER]=FA[s.NUMERICIDENTIFIER]+"|x|X|\\*";XQ("XRANGEPLAIN");FA[s.XRANGEPLAIN]="[v=\\s]*("+FA[s.XRANGEIDENTIFIER]+")(?:\\.("+FA[s.XRANGEIDENTIFIER]+")(?:\\.("+FA[s.XRANGEIDENTIFIER]+")(?:"+FA[s.PRERELEASE]+")?"+FA[s.BUILD]+"?)?)?";XQ("XRANGEPLAINLOOSE");FA[s.XRANGEPLAINLOOSE]="[v=\\s]*("+FA[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+FA[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+FA[s.XRANGEIDENTIFIERLOOSE]+")(?:"+FA[s.PRERELEASELOOSE]+")?"+FA[s.BUILD]+"?)?)?";XQ("XRANGE");FA[s.XRANGE]="^"+FA[s.GTLT]+"\\s*"+FA[s.XRANGEPLAIN]+"$";XQ("XRANGELOOSE");FA[s.XRANGELOOSE]="^"+FA[s.GTLT]+"\\s*"+FA[s.XRANGEPLAINLOOSE]+"$";XQ("COERCE");FA[s.COERCE]="(^|[^\\d])(\\d{1,"+MK+"})(?:\\.(\\d{1,"+MK+"}))?(?:\\.(\\d{1,"+MK+"}))?(?:$|[^\\d])";XQ("COERCERTL");tY[s.COERCERTL]=new RegExp(FA[s.COERCE],"g");vQ[s.COERCERTL]=new RegExp(q9(FA[s.COERCE]),"g");XQ("LONETILDE");FA[s.LONETILDE]="(?:~>?)";XQ("TILDETRIM");FA[s.TILDETRIM]="(\\s*)"+FA[s.LONETILDE]+"\\s+";tY[s.TILDETRIM]=new RegExp(FA[s.TILDETRIM],"g");vQ[s.TILDETRIM]=new RegExp(q9(FA[s.TILDETRIM]),"g");var YNA="$1~";XQ("TILDE");FA[s.TILDE]="^"+FA[s.LONETILDE]+FA[s.XRANGEPLAIN]+"$";XQ("TILDELOOSE");FA[s.TILDELOOSE]="^"+FA[s.LONETILDE]+FA[s.XRANGEPLAINLOOSE]+"$";XQ("LONECARET");FA[s.LONECARET]="(?:\\^)";XQ("CARETTRIM");FA[s.CARETTRIM]="(\\s*)"+FA[s.LONECARET]+"\\s+";tY[s.CARETTRIM]=new RegExp(FA[s.CARETTRIM]," Line truncated
`),{implicitDescendants:!1});try{for(var J=!0,G=iNA(Y.globGenerator()),N;N=yield G.next(),Q=N.done,!Q;J=!0){I=N.value,J=!1;let U=I,Z=x4.relative(F,U).replace(new RegExp(`\\${x4.sep}`,"g"),"/");if(P9.debug(`Matched: ${Z}`),Z==="")D.push(".");else D.push(`${Z}`)}}catch(U){B={error:U}}finally{try{if(!J&&!Q&&(E=G.return))yield E.call(G)}finally{if(B)throw B.error}}return D})}PQ.resolvePaths=A9A;function Q9A(A){return AJ(this,void 0,void 0,function*(){return oNA.promisify(PK.unlink)(A)})}PQ.unlinkFile=Q9A;function yx(A,Q=[]){return AJ(this,void 0,void 0,function*(){let B="";Q.push("--version"),P9.debug(`Checking ${A} ${Q.join(" ")}`);try{yield nNA.exec(`${A}`,Q,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:(E)=>B+=E.toString(),stderr:(E)=>B+=E.toString()}})}catch(E){P9.debug(E.message)}return B=B.trim(),P9.debug(B),B})}function B9A(){return AJ(this,void 0,void 0,function*(){let A=yield yx("zstd",["--quiet"]),Q=sNA.clean(A);if(P9.debug(`zstd version: ${Q}`),A==="")return J1.CompressionMethod.Gzip;else return J1.CompressionMethod.ZstdWithoutLong})}PQ.getCompressionMethod=B9A;function E9A(A){return A===J1.CompressionMethod.Gzip?J1.CacheFilename.Gzip:J1.CacheFilename.Zstd}PQ.getCacheFileName=E9A;function I9A(){return AJ(this,void 0,void 0,function*(){if(PK.existsSync(J1.GnuTarPathOnWindows))return J1.GnuTarPathOnWindows;return(yield yx("tar")).toLowerCase().includes("gnu tar")?hx.which("tar"):""})}PQ.getGnuTarPathOnWindows=I9A;function C9A(A,Q){if(Q===void 0)throw Error(`Expected ${A} but value was undefiend`);return Q}PQ.assertDefined=C9A;function D9A(A,Q,B=!1){let E=A.slice();if(Q)E.push(Q);if(process.platform==="win32"&&!B)E.push("windows-only");return E.push(rNA),Sx.createHash("sha256").update(E.join("|")).digest("hex")}PQ.getCacheVersion=D9A;function F9A(){let A=process.env.ACTIONS_RUNTIME_TOKEN;if(!A)throw Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return A}PQ.getRuntimeToken=F9A});var RB=K((SyA,y4)=>{var _x,vx,bx,ux,mx,dx,cx,lx,px,ix,nx,ax,sx,h4,kK,ox,rx,tx,BJ,ex,Ah,Qh,Bh,Eh,Ih,Ch,Dh,Fh,S4,Yh,Jh,Gh;(function(A){var Q=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(E){A(B(Q,B(E)))});else if(typeof y4==="object"&&typeof y4.exports==="object")A(B(Q,B(y4.exports)));else A(B(Q));function B(E,I){if(E!==Q)if(typeof Object.create==="function")Object.defineProperty(E,"__esModule",{value:!0});else E.__esModule=!0;return function(C,D){return E[C]=I?I(C,D):D}}})(function(A){var Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,D){C.__proto__=D}||function(C,D){for(var F in D)if(Object.prototype.hasOwnProperty.call(D,F))C[F]=D[F]};_x=function(C,D){if(typeof D!=="function"&&D!==null)throw TypeError("Class extends value "+String(D)+" is not a constructor or null");Q(C,D);function F(){this.constructor=C}C.prototype=D===null?Object.create(D):(F.prototype=D.prototype,new F)},vx=Object.assign||function(C){for(var D,F=1,Y=arguments.length;F<Y;F++){D=arguments[F];for(var J in D)if(Object.prototype.hasOwnProperty.call(D,J))C[J]=D[J]}return C},bx=function(C,D){var F={};for(var Y in C)if(Object.prototype.hasOwnProperty.call(C,Y)&&D.indexOf(Y)<0)F[Y]=C[Y];if(C!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var J=0,Y=Object.getOwnPropertySymbols(C);J<Y.length;J++)if(D.indexOf(Y[J])<0&&Object.prototype.propertyIsEnumerable.call(C,Y[J]))F[Y[J]]=C[Y[J]]}return F},ux=function(C,D,F,Y){var J=arguments.length,G=J<3?D:Y===null?Y=Object.getOwnPropertyDescriptor(D,F):Y,N;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")G=Reflect.decorate(C,D,F,Y);else for(var U=C.length-1;U>=0;U--)if(N=C[U])G=(J<3?N(G):J>3?N(D,F,G):N(D,F))||G;return J>3&&G&&Object.defineProperty(D,F,G),G},mx=function(C,D){return function(F,Y){D(F,Y,C)}},dx=function(C,D,F,Y,J,G){function N(t){if(t!==void 0&&typeof t!=="function")throw TypeError("Function expected");return t}var U=Y.kind,Z=U==="getter"?"get":U==="setter"?"set":"value",X=!D&&C?Y.static?C:C.prototype:null,$=D||(X?Object.getOwnPropertyDescriptor(X,Y.name):{}),V,w=!1;for(var g=F.length-1;g>=0;g--){var M={};for(var k in Y)M[k]=k==="access"?{}:Y[k];for(var k in Y.access)M.access[k]=Y.access[k];M.addInitializer=function(t){if(w)throw TypeError("Cannot add initializers after decoration has completed");G.push(N(t||null))};var d=(0,F[g])(U==="accessor"?{get:$.get,set:$.set}:$[Z],M);if(U==="accessor"){if(d===void 0)continue;if(d===null||typeof d!=="object")throw TypeError("Object expected");if(V=N(d.get))$.get=V;if(V=N(d.set))$.set=V;if(V=N(d.init))J.unshift(V)}else if(V=N(d))if(U==="field")J.unshift(V);else $[Z]=V}if(X)Object.defineProperty(X,Y.name,$);w=!0},cx=function(C,D,F){var Y=arguments.length>2;for(var J=0;J<D.length;J++)F=Y?D[J].call(C,F):D[J].call(C);return Y?F:void 0},lx=function(C){return typeof C==="symbol"?C:"".concat(C)},px=function(C,D,F){if(typeof D==="symbol")D=D.description?"[".concat(D.description,"]"):"";return O Line truncated
${b9A.sanitize({...this,request:{...this.request,agent:B},response:this.response})}`},enumerable:!1}),Object.setPrototypeOf(this,i4.prototype)}}S9.RestError=i4;function u9A(A){if(A instanceof i4)return!0;return(0,y9A.isError)(A)&&A.name==="RestError"}});var G1=K((n4)=>{Object.defineProperty(n4,"__esModule",{value:!0});n4.uint8ArrayToString=m9A;n4.stringToUint8Array=d9A;function m9A(A,Q){return Buffer.from(A).toString(Q)}function d9A(A,Q){return Buffer.from(A,Q)}});var y9=K((a4)=>{Object.defineProperty(a4,"__esModule",{value:!0});a4.logger=void 0;var c9A=x9();a4.logger=(0,c9A.createClientLogger)("ts-http-runtime")});var bh=K((s4)=>{Object.defineProperty(s4,"__esModule",{value:!0});s4.getBodyLength=vh;s4.createNodeHttpClient=r9A;var tK=RB(),sK=tK.__importDefault(require("node:http")),oK=tK.__importDefault(require("node:https")),xh=tK.__importDefault(require("node:zlib")),l9A=require("node:stream"),hh=k9(),p9A=tD(),v9=EJ(),IJ=y9(),i9A=h9(),n9A={};function _9(A){return A&&typeof A.pipe==="function"}function Sh(A){if(A.readable===!1)return Promise.resolve();return new Promise((Q)=>{let B=()=>{Q(),A.removeListener("close",B),A.removeListener("end",B),A.removeListener("error",B)};A.on("close",B),A.on("end",B),A.on("error",B)})}function yh(A){return A&&typeof A.byteLength==="number"}class rK extends l9A.Transform{loadedBytes=0;progressCallback;_transform(A,Q,B){this.push(A),this.loadedBytes+=A.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),B()}catch(E){B(E)}}constructor(A){super();this.progressCallback=A}}class _h{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(A){let Q=new AbortController,B;if(A.abortSignal){if(A.abortSignal.aborted)throw new hh.AbortError("The operation was aborted. Request has already been canceled.");B=(Y)=>{if(Y.type==="abort")Q.abort()},A.abortSignal.addEventListener("abort",B)}let E;if(A.timeout>0)E=setTimeout(()=>{let Y=new i9A.Sanitizer;IJ.logger.info(`request to '${Y.sanitizeUrl(A.url)}' timed out. canceling...`),Q.abort()},A.timeout);let I=A.headers.get("Accept-Encoding"),C=I?.includes("gzip")||I?.includes("deflate"),D=typeof A.body==="function"?A.body():A.body;if(D&&!A.headers.has("Content-Length")){let Y=vh(D);if(Y!==null)A.headers.set("Content-Length",Y)}let F;try{if(D&&A.onUploadProgress){let Z=A.onUploadProgress,X=new rK(Z);if(X.on("error",($)=>{IJ.logger.error("Error in upload progress",$)}),_9(D))D.pipe(X);else X.end(D);D=X}let Y=await this.makeRequest(A,Q,D);if(E!==void 0)clearTimeout(E);let J=a9A(Y),N={status:Y.statusCode??0,headers:J,request:A};if(A.method==="HEAD")return Y.resume(),N;F=C?s9A(Y,J):Y;let U=A.onDownloadProgress;if(U){let Z=new rK(U);Z.on("error",(X)=>{IJ.logger.error("Error in download progress",X)}),F.pipe(Z),F=Z}if(A.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||A.streamResponseStatusCodes?.has(N.status))N.readableStreamBody=F;else N.bodyAsText=await o9A(F);return N}finally{if(A.abortSignal&&B){let Y=Promise.resolve();if(_9(D))Y=Sh(D);let J=Promise.resolve();if(_9(F))J=Sh(F);Promise.all([Y,J]).then(()=>{if(B)A.abortSignal?.removeEventListener("abort",B)}).catch((G)=>{IJ.logger.warning("Error when cleaning up abortListener on httpRequest",G)})}}}makeRequest(A,Q,B){let E=new URL(A.url),I=E.protocol!=="https:";if(I&&!A.allowInsecureConnection)throw Error(`Cannot connect to ${A.url} while allowInsecureConnection is false.`);let D={agent:A.agent??this.getOrCreateAgent(A,I),hostname:E.hostname,path:`${E.pathname}${E.search}`,port:E.port,method:A.method,headers:A.headers.toJSON({preserveCase:!0}),...A.requestOverrides};return new Promise((F,Y)=>{let J=I?sK.default.request(D,F):oK.default.request(D,F);if(J.once("error",(G)=>{Y(new v9.RestError(G.message,{code:G.code??v9.RestError.REQUEST_SEND_ERROR,request:A}))}),Q.signal.addEventListener("abort",()=>{let G=new hh.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");J.destroy(G),Y(G)}),B&&_9(B))B.pipe(J);else if(B)if(typeof B==="string"||Buffer.isBuffer(B))J.end(B);else if(yh(B))J.end(ArrayBuffer.isView(B)?Buffer.from(B.buffer):Buffer.from(B));else IJ.logger.error("Unrecognized body type",B),Y(new v9.RestError("Unrecognized body type"));else J.end()})}getOrCreateAgent(A,Q){let B=A.disableKeepAlive;if(Q){if(B)return sK.default.globalAgent;if(!this.cachedHttpAgent)this.cachedHttpAgent=new sK.default.Agent({keepAlive:!0});return this.cachedHttpAgent}else{if(B&&!A.tlsSettings)return oK.default.globalAgent;let E=A.tlsSettings??n9A,I=this.cachedHttpsAgents.get(E);if(I&&I.options.keepAlive===!B)return I;return IJ.logger.info("No cached TLS Agent exist, creating a new Agent"),I=new oK.default.Agent({keepAlive:!B,...E}),this.cachedHttpsAgents.set(E,I),I}}}function a9A(A){let Q=(0,p9A.createHttpHeaders)();for(let B of Object.keys(A.headers)){let E=A.headers[B];if(Array.isArray(E)){if(E.length>0)Q.set(B,E[0])}else if(E)Q.set(B,E)}return Q}function s9A(A,Q){let B=Q.get("Content-Encoding");if(B==="gzip"){let E=xh.default.createGunzip();re Line truncated
`).join(`
`+C),A.push(I+"m+"+C2.exports.humanize(this.diff)+"\x1B[0m")}else A[0]=YUA()+Q+" "+A[0]}function YUA(){if(VE.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function JUA(...A){return process.stderr.write(I2.formatWithOptions(VE.inspectOpts,...A)+`
`)}function GUA(A){if(A)process.env.DEBUG=A;else delete process.env.DEBUG}function NUA(){return process.env.DEBUG}function UUA(A){A.inspectOpts={};let Q=Object.keys(VE.inspectOpts);for(let B=0;B<Q.length;B++)A.inspectOpts[Q[B]]=VE.inspectOpts[Q[B]]}C2.exports=$L()(VE);var{formatters:FS}=C2.exports;FS.o=function(A){return this.inspectOpts.colors=this.useColors,I2.inspect(A,this.inspectOpts).split(`
`).map((Q)=>Q.trim()).join(" ")};FS.O=function(A){return this.inspectOpts.colors=this.useColors,I2.inspect(A,this.inspectOpts)}});var D2=K((H_A,zL)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)zL.exports=BS();else zL.exports=YS()});var NS=K((xI)=>{var ZUA=xI&&xI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),WUA=xI&&xI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),JS=xI&&xI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))ZUA(Q,A,B)}return WUA(Q,A),Q};Object.defineProperty(xI,"__esModule",{value:!0});xI.req=xI.json=xI.toBuffer=void 0;var XUA=JS(require("http")),$UA=JS(require("https"));async function GS(A){let Q=0,B=[];for await(let E of A)Q+=E.length,B.push(E);return Buffer.concat(B,Q)}xI.toBuffer=GS;async function KUA(A){let B=(await GS(A)).toString("utf8");try{return JSON.parse(B)}catch(E){let I=E;throw I.message+=` (input: ${B})`,I}}xI.json=KUA;function LUA(A,Q={}){let E=((typeof A==="string"?A:A.href).startsWith("https:")?$UA:XUA).request(A,Q),I=new Promise((C,D)=>{E.once("response",C).once("error",D).end()});return E.then=I.then.bind(I),E}xI.req=LUA});var $S=K((eI)=>{var ZS=eI&&eI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),VUA=eI&&eI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),WS=eI&&eI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))ZS(Q,A,B)}return VUA(Q,A),Q},zUA=eI&&eI.__exportStar||function(A,Q){for(var B in A)if(B!=="default"&&!Object.prototype.hasOwnProperty.call(Q,B))ZS(Q,A,B)};Object.defineProperty(eI,"__esModule",{value:!0});eI.Agent=void 0;var HUA=WS(require("net")),US=WS(require("http")),wUA=require("https");zUA(NS(),eI);var q0=Symbol("AgentBaseInternalState");class XS extends US.Agent{constructor(A){super(A);this[q0]={}}isSecureEndpoint(A){if(A){if(typeof A.secureEndpoint==="boolean")return A.secureEndpoint;if(typeof A.protocol==="string")return A.protocol==="https:"}let{stack:Q}=Error();if(typeof Q!=="string")return!1;return Q.split(`
`).some((B)=>B.indexOf("(https.js:")!==-1||B.indexOf("node:https:")!==-1)}incrementSockets(A){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[A])this.sockets[A]=[];let Q=new HUA.Socket({writable:!1});return this.sockets[A].push(Q),this.totalSocketCount++,Q}decrementSockets(A,Q){if(!this.sockets[A]||Q===null)return;let B=this.sockets[A],E=B.indexOf(Q);if(E!==-1){if(B.splice(E,1),this.totalSocketCount--,B.length===0)delete this.sockets[A]}}getName(A){if(this.isSecureEndpoint(A))return wUA.Agent.prototype.getName.call(this,A);return super.getName(A)}createSocket(A,Q,B){let E={...Q,secureEndpoint:this.isSecureEndpoint(Q)},I=this.getName(E),C=this.incrementSockets(I);Promise.resolve().then(()=>this.connect(A,E)).then((D)=>{if(this.decrementSockets(I,C),D instanceof US.Agent)try{return D.addRequest(A,E)}catch(F){return B(F)}this[q0].currentSocket=D,super.createSocket(A,Q,B)},(D)=>{this.decrementSockets(I,C),B(D)})}createConnection(){let A=this[q0].currentSocket;if(this[q0].currentSocket=void 0,!A)throw Error("No socket was returned in the `connect()` function");return A}get defaultPort(){return this[q0].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(A){if(this[q0])this[q0].defaultPort=A}get protocol(){return this[q0].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(A){if(this[q0])this[q0].protocol=A}}eI.Agent=XS});var KS=K(($J)=>{var MUA=$J&&$J.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty($J,"__esModule",{value:!0});$J.parseProxyResponse=void 0;var RUA=MUA(D2()),F2=(0,RUA.default)("https-proxy-agent:parse-proxy-response");function gUA(A){return new Promise((Q,B)=>{let E=0,I=[];function C(){let G=A.read();if(G)J(G);else A.once("readable",C)}function D(){A.removeListener("end",F),A.removeListener("error",Y),A.removeListener("readable",C)}function F(){D(),F2("onend"),B(Error("Proxy connection ended before receiving CONNECT response"))}function Y(G){D(),F2("onerror %o",G),B(G)}function J(G){I.push(G),E+=G.length;let N=Buffer.concat(I,E),U=N.indexOf(`\r
\r
`);if(U===-1){F2("have not received end of HTTP headers yet..."),C();return}let Z=N.slice(0,U).toString("ascii").split(`\r
`),X=Z.shift();if(!X)return A.destroy(),B(Error("No header received from proxy CONNECT response"));let $=X.split(" "),V=+$[1],w=$.slice(2).join(" "),g={};for(let M of Z){if(!M)continue;let k=M.indexOf(":");if(k===-1)return A.destroy(),B(Error(`Invalid header from proxy CONNECT response: "${M}"`));let d=M.slice(0,k).toLowerCase(),t=M.slice(k+1).trimStart(),m=g[d];if(typeof m==="string")g[d]=[m,t];else if(Array.isArray(m))m.push(t);else g[d]=t}F2("got proxy server response: %o %o",X,g),D(),Q({connect:{statusCode:V,statusText:w,headers:g},buffered:N})}A.on("error",Y),A.on("end",F),C()})}$J.parseProxyResponse=gUA});var MS=K((MC)=>{var TUA=MC&&MC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),OUA=MC&&MC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),HS=MC&&MC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))TUA(Q,A,B)}return OUA(Q,A),Q},wS=MC&&MC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(MC,"__esModule",{value:!0});MC.HttpsProxyAgent=void 0;var Y2=HS(require("net")),LS=HS(require("tls")),qUA=wS(require("assert")),jUA=wS(D2()),PUA=$S(),kUA=require("url"),fUA=KS(),m9=(0,jUA.default)("https-proxy-agent"),VS=(A)=>{if(A.servername===void 0&&A.host&&!Y2.isIP(A.host))return{...A,servername:A.host};return A};class HL extends PUA.Agent{constructor(A,Q){super(Q);this.options={path:void 0},this.proxy=typeof A==="string"?new kUA.URL(A):A,this.proxyHeaders=Q?.headers??{},m9("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let B=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),E=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...Q?zS(Q,"headers"):null,host:B,port:E}}async connect(A,Q){let{proxy:B}=this;if(!Q.host)throw TypeError('No "host" provided');let E;if(B.protocol==="https:")m9("Creating `tls.Socket`: %o",this.connectOpts),E=LS.connect(VS(this.connectOpts));else m9("Creating `net.Socket`: %o",this.connectOpts),E=Y2.connect(this.connectOpts);let I=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},C=Y2.isIPv6(Q.host)?`[${Q.host}]`:Q.host,D=`CONNECT ${C}:${Q.port} HTTP/1.1\r
`;if(B.username||B.password){let N=`${decodeURIComponent(B.username)}:${decodeURIComponent(B.password)}`;I["Proxy-Authorization"]=`Basic ${Buffer.from(N).toString("base64")}`}if(I.Host=`${C}:${Q.port}`,!I["Proxy-Connection"])I["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let N of Object.keys(I))D+=`${N}: ${I[N]}\r
`;let F=(0,fUA.parseProxyResponse)(E);E.write(`${D}\r
`);let{connect:Y,buffered:J}=await F;if(A.emit("proxyConnect",Y),this.emit("proxyConnect",Y,A),Y.statusCode===200){if(A.once("socket",xUA),Q.secureEndpoint)return m9("Upgrading socket connection to TLS"),LS.connect({...zS(VS(Q),"host","path","port"),socket:E});return E}E.destroy();let G=new Y2.Socket({writable:!1});return G.readable=!0,A.once("socket",(N)=>{m9("Replaying proxy buffer for failed request"),(0,qUA.default)(N.listenerCount("data")>0),N.push(J),N.push(null)}),G}}HL.protocols=["http","https"];MC.HttpsProxyAgent=HL;function xUA(A){A.resume()}function zS(A,...Q){let B={},E;for(E in A)if(!Q.includes(E))B[E]=A[E];return B}});var TS=K((hI)=>{var hUA=hI&&hI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),SUA=hI&&hI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),RS=hI&&hI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))hUA(Q,A,B)}return SUA(Q,A),Q};Object.defineProperty(hI,"__esModule",{value:!0});hI.req=hI.json=hI.toBuffer=void 0;var yUA=RS(require("http")),_UA=RS(require("https"));async function gS(A){let Q=0,B=[];for await(let E of A)Q+=E.length,B.push(E);return Buffer.concat(B,Q)}hI.toBuffer=gS;async function vUA(A){let B=(await gS(A)).toString("utf8");try{return JSON.parse(B)}catch(E){let I=E;throw I.message+=` (input: ${B})`,I}}hI.json=vUA;function bUA(A,Q={}){let E=((typeof A==="string"?A:A.href).startsWith("https:")?_UA:yUA).request(A,Q),I=new Promise((C,D)=>{E.once("response",C).once("error",D).end()});return E.then=I.then.bind(I),E}hI.req=bUA});var kS=K((AC)=>{var qS=AC&&AC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),uUA=AC&&AC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),jS=AC&&AC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))qS(Q,A,B)}return uUA(Q,A),Q},mUA=AC&&AC.__exportStar||function(A,Q){for(var B in A)if(B!=="default"&&!Object.prototype.hasOwnProperty.call(Q,B))qS(Q,A,B)};Object.defineProperty(AC,"__esModule",{value:!0});AC.Agent=void 0;var dUA=jS(require("net")),OS=jS(require("http")),cUA=require("https");mUA(TS(),AC);var j0=Symbol("AgentBaseInternalState");class PS extends OS.Agent{constructor(A){super(A);this[j0]={}}isSecureEndpoint(A){if(A){if(typeof A.secureEndpoint==="boolean")return A.secureEndpoint;if(typeof A.protocol==="string")return A.protocol==="https:"}let{stack:Q}=Error();if(typeof Q!=="string")return!1;return Q.split(`
`).some((B)=>B.indexOf("(https.js:")!==-1||B.indexOf("node:https:")!==-1)}incrementSockets(A){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[A])this.sockets[A]=[];let Q=new dUA.Socket({writable:!1});return this.sockets[A].push(Q),this.totalSocketCount++,Q}decrementSockets(A,Q){if(!this.sockets[A]||Q===null)return;let B=this.sockets[A],E=B.indexOf(Q);if(E!==-1){if(B.splice(E,1),this.totalSocketCount--,B.length===0)delete this.sockets[A]}}getName(A){if(this.isSecureEndpoint(A))return cUA.Agent.prototype.getName.call(this,A);return super.getName(A)}createSocket(A,Q,B){let E={...Q,secureEndpoint:this.isSecureEndpoint(Q)},I=this.getName(E),C=this.incrementSockets(I);Promise.resolve().then(()=>this.connect(A,E)).then((D)=>{if(this.decrementSockets(I,C),D instanceof OS.Agent)try{return D.addRequest(A,E)}catch(F){return B(F)}this[j0].currentSocket=D,super.createSocket(A,Q,B)},(D)=>{this.decrementSockets(I,C),B(D)})}createConnection(){let A=this[j0].currentSocket;if(this[j0].currentSocket=void 0,!A)throw Error("No socket was returned in the `connect()` function");return A}get defaultPort(){return this[j0].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(A){if(this[j0])this[j0].defaultPort=A}get protocol(){return this[j0].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(A){if(this[j0])this[j0].protocol=A}}AC.Agent=PS});var hS=K((RC)=>{var lUA=RC&&RC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),pUA=RC&&RC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),xS=RC&&RC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))lUA(Q,A,B)}return pUA(Q,A),Q},iUA=RC&&RC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(RC,"__esModule",{value:!0});RC.HttpProxyAgent=void 0;var nUA=xS(require("net")),aUA=xS(require("tls")),sUA=iUA(D2()),oUA=require("events"),rUA=kS(),fS=require("url"),KJ=(0,sUA.default)("http-proxy-agent");class wL extends rUA.Agent{constructor(A,Q){super(Q);this.proxy=typeof A==="string"?new fS.URL(A):A,this.proxyHeaders=Q?.headers??{},KJ("Creating new HttpProxyAgent instance: %o",this.proxy.href);let B=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),E=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...Q?tUA(Q,"headers"):null,host:B,port:E}}addRequest(A,Q){A._header=null,this.setRequestProps(A,Q),super.addRequest(A,Q)}setRequestProps(A,Q){let{proxy:B}=this,E=Q.secureEndpoint?"https:":"http:",I=A.getHeader("host")||"localhost",C=`${E}//${I}`,D=new fS.URL(A.path,C);if(Q.port!==80)D.port=String(Q.port);A.path=String(D);let F=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(B.username||B.password){let Y=`${decodeURIComponent(B.username)}:${decodeURIComponent(B.password)}`;F["Proxy-Authorization"]=`Basic ${Buffer.from(Y).toString("base64")}`}if(!F["Proxy-Connection"])F["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let Y of Object.keys(F)){let J=F[Y];if(J)A.setHeader(Y,J)}}async connect(A,Q){if(A._header=null,!A.path.includes("://"))this.setRequestProps(A,Q);let B,E;if(KJ("Regenerating stored HTTP header string for request"),A._implicitHeader(),A.outputData&&A.outputData.length>0)KJ("Patching connection write() output buffer with updated header"),B=A.outputData[0].data,E=B.indexOf(`\r
\r
`)+4,A.outputData[0].data=A._header+B.substring(E),KJ("Output buffer: %o",A.outputData[0].data);let I;if(this.proxy.protocol==="https:")KJ("Creating `tls.Socket`: %o",this.connectOpts),I=aUA.connect(this.connectOpts);else KJ("Creating `net.Socket`: %o",this.connectOpts),I=nUA.connect(this.connectOpts);return await(0,oUA.once)(I,"connect"),I}}wL.protocols=["http","https"];RC.HttpProxyAgent=wL;function tUA(A,...Q){let B={},E;for(E in A)if(!Q.includes(E))B[E]=A[E];return B}});var ML=K((gC)=>{Object.defineProperty(gC,"__esModule",{value:!0});gC.globalNoProxyList=gC.proxyPolicyName=void 0;gC.loadNoProxy=bS;gC.getDefaultProxySettings=Y8A;gC.proxyPolicy=G8A;var eUA=MS(),A8A=hS(),Q8A=y9(),B8A="HTTPS_PROXY",E8A="HTTP_PROXY",I8A="ALL_PROXY",C8A="NO_PROXY";gC.proxyPolicyName="proxyPolicy";gC.globalNoProxyList=[];var _S=!1,D8A=new Map;function J2(A){if(process.env[A])return process.env[A];else if(process.env[A.toLowerCase()])return process.env[A.toLowerCase()];return}function vS(){if(!process)return;let A=J2(B8A),Q=J2(I8A),B=J2(E8A);return A||Q||B}function F8A(A,Q,B){if(Q.length===0)return!1;let E=new URL(A).hostname;if(B?.has(E))return B.get(E);let I=!1;for(let C of Q)if(C[0]==="."){if(E.endsWith(C))I=!0;else if(E.length===C.length-1&&E===C.slice(1))I=!0}else if(E===C)I=!0;return B?.set(E,I),I}function bS(){let A=J2(C8A);if(_S=!0,A)return A.split(",").map((Q)=>Q.trim()).filter((Q)=>Q.length);return[]}function Y8A(A){if(!A){if(A=vS(),!A)return}let Q=new URL(A);return{host:(Q.protocol?Q.protocol+"//":"")+Q.hostname,port:Number.parseInt(Q.port||"80"),username:Q.username,password:Q.password}}function J8A(){let A=vS();return A?new URL(A):void 0}function SS(A){let Q;try{Q=new URL(A.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${A.host}".`)}if(Q.port=String(A.port),A.username)Q.username=A.username;if(A.password)Q.password=A.password;return Q}function yS(A,Q,B){if(A.agent)return;let I=new URL(A.url).protocol!=="https:";if(A.tlsSettings)Q8A.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let C=A.headers.toJSON();if(I){if(!Q.httpProxyAgent)Q.httpProxyAgent=new A8A.HttpProxyAgent(B,{headers:C});A.agent=Q.httpProxyAgent}else{if(!Q.httpsProxyAgent)Q.httpsProxyAgent=new eUA.HttpsProxyAgent(B,{headers:C});A.agent=Q.httpsProxyAgent}}function G8A(A,Q){if(!_S)gC.globalNoProxyList.push(...bS());let B=A?SS(A):J8A(),E={};return{name:gC.proxyPolicyName,async sendRequest(I,C){if(!I.proxySettings&&B&&!F8A(I.url,Q?.customNoProxyList??gC.globalNoProxyList,Q?.customNoProxyList?void 0:D8A))yS(I,E,B);else if(I.proxySettings)yS(I,E,SS(I.proxySettings));return C(I)}}}});var RL=K((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.agentPolicyName=void 0;LJ.agentPolicy=N8A;LJ.agentPolicyName="agentPolicy";function N8A(A){return{name:LJ.agentPolicyName,sendRequest:async(Q,B)=>{if(!Q.agent)Q.agent=A;return B(Q)}}}});var gL=K((VJ)=>{Object.defineProperty(VJ,"__esModule",{value:!0});VJ.tlsPolicyName=void 0;VJ.tlsPolicy=U8A;VJ.tlsPolicyName="tlsPolicy";function U8A(A){return{name:VJ.tlsPolicyName,sendRequest:async(Q,B)=>{if(!Q.tlsSettings)Q.tlsSettings=A;return B(Q)}}}});var d9=K((Z1)=>{Object.defineProperty(Z1,"__esModule",{value:!0});Z1.isNodeReadableStream=uS;Z1.isWebReadableStream=mS;Z1.isBinaryBody=Z8A;Z1.isReadableStream=dS;Z1.isBlob=W8A;function uS(A){return Boolean(A&&typeof A.pipe==="function")}function mS(A){return Boolean(A&&typeof A.getReader==="function"&&typeof A.tee==="function")}function Z8A(A){return A!==void 0&&(A instanceof Uint8Array||dS(A)||typeof A==="function"||A instanceof Blob)}function dS(A){return uS(A)||mS(A)}function W8A(A){return typeof A.stream==="function"}});var pS=K((OL)=>{Object.defineProperty(OL,"__esModule",{value:!0});OL.concat=L8A;var TL=require("stream"),X8A=d9();async function*cS(){let A=this.getReader();try{while(!0){let{done:Q,value:B}=await A.read();if(Q)return;yield B}}finally{A.releaseLock()}}function $8A(A){if(!A[Symbol.asyncIterator])A[Symbol.asyncIterator]=cS.bind(A);if(!A.values)A.values=cS.bind(A)}function lS(A){if(A instanceof ReadableStream)return $8A(A),TL.Readable.fromWeb(A);else return A}function K8A(A){if(A instanceof Uint8Array)return TL.Readable.from(Buffer.from(A));else if((0,X8A.isBlob)(A))return lS(A.stream());else return lS(A)}async function L8A(A){return function(){let Q=A.map((B)=>typeof B==="function"?B():B).map(K8A);return TL.Readable.from(async function*(){for(let B of Q)for await(let E of B)yield E}())}}});var qL=K((HJ)=>{Object.defineProperty(HJ,"__esModule",{value:!0});HJ.multipartPolicyName=void 0;HJ.multipartPolicy=P8A;var zJ=G1(),V8A=d9(),z8A=m4(),H8A=pS();function w8A(){return`----AzSDKFormBoundary${(0,z8A.randomUUID)()}`}function M8A(A){let Q="";for(let[B,E]of A)Q+=`${B}: ${E}\r
`;return Q}function R8A(A){if(A instanceof Uint8Array)return A.byteLength;else if((0,V8A.isBlob)(A))return A.size===-1?void 0:A.size;else return}function g8A(A){let Q=0;for(let B of A){let E=R8A(B);if(E===void 0)return;else Q+=E}return Q}async function T8A(A,Q,B){let E=[(0,zJ.stringToUint8Array)(`--${B}`,"utf-8"),...Q.flatMap((C)=>[(0,zJ.stringToUint8Array)(`\r
`,"utf-8"),(0,zJ.stringToUint8Array)(M8A(C.headers),"utf-8"),(0,zJ.stringToUint8Array)(`\r
`,"utf-8"),C.body,(0,zJ.stringToUint8Array)(`\r
--${B}`,"utf-8")]),(0,zJ.stringToUint8Array)(`--\r
\r
`,"utf-8")],I=g8A(E);if(I)A.headers.set("Content-Length",I);A.body=await(0,H8A.concat)(E)}HJ.multipartPolicyName="multipartPolicy";var O8A=70,q8A=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function j8A(A){if(A.length>O8A)throw Error(`Multipart boundary "${A}" exceeds maximum length of 70 characters`);if(Array.from(A).some((Q)=>!q8A.has(Q)))throw Error(`Multipart boundary "${A}" contains invalid characters`)}function P8A(){return{name:HJ.multipartPolicyName,async sendRequest(A,Q){if(!A.multipartBody)return Q(A);if(A.body)throw Error("multipartBody and regular body cannot be set at the same time");let B=A.multipartBody.boundary,E=A.headers.get("Content-Type")??"multipart/mixed",I=E.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!I)throw Error(`Got multipart request body, but content-type header was not multipart: ${E}`);let[,C,D]=I;if(D&&B&&D!==B)throw Error(`Multipart boundary was specified as ${D} in the header, but got ${B} in the request body`);if(B??=D,B)j8A(B);else B=w8A();return A.headers.set("Content-Type",`${C}; boundary=${B}`),await T8A(A,A.multipartBody.parts,B),A.multipartBody=void 0,Q(A)}}}});var aS=K((jL)=>{Object.defineProperty(jL,"__esModule",{value:!0});jL.createPipelineFromOptions=m8A;var k8A=QL(),f8A=lK(),x8A=BL(),h8A=CL(),S8A=DL(),y8A=WL(),_8A=XL(),iS=u9(),v8A=ML(),b8A=RL(),u8A=gL(),nS=qL();function m8A(A){let Q=(0,f8A.createEmptyPipeline)();if(iS.isNodeLike){if(A.agent)Q.addPolicy((0,b8A.agentPolicy)(A.agent));if(A.tlsOptions)Q.addPolicy((0,u8A.tlsPolicy)(A.tlsOptions));Q.addPolicy((0,v8A.proxyPolicy)(A.proxyOptions)),Q.addPolicy((0,S8A.decompressResponsePolicy)())}if(Q.addPolicy((0,_8A.formDataPolicy)(),{beforePolicies:[nS.multipartPolicyName]}),Q.addPolicy((0,h8A.userAgentPolicy)(A.userAgentOptions)),Q.addPolicy((0,nS.multipartPolicy)(),{afterPhase:"Deserialize"}),Q.addPolicy((0,y8A.defaultRetryPolicy)(A.retryOptions),{phase:"Retry"}),iS.isNodeLike)Q.addPolicy((0,x8A.redirectPolicy)(A.redirectOptions),{afterPhase:"Retry"});return Q.addPolicy((0,k8A.logPolicy)(A.loggingOptions),{afterPhase:"Sign"}),Q}});var sS=K((wJ)=>{Object.defineProperty(wJ,"__esModule",{value:!0});wJ.apiVersionPolicyName=void 0;wJ.apiVersionPolicy=d8A;wJ.apiVersionPolicyName="ApiVersionPolicy";function d8A(A){return{name:wJ.apiVersionPolicyName,sendRequest:(Q,B)=>{let E=new URL(Q.url);if(!E.searchParams.get("api-version")&&A.apiVersion)Q.url=`${Q.url}${Array.from(E.searchParams.keys()).length>0?"&":"?"}api-version=${A.apiVersion}`;return B(Q)}}}});var oS=K((MJ)=>{Object.defineProperty(MJ,"__esModule",{value:!0});MJ.isOAuth2TokenCredential=c8A;MJ.isBearerTokenCredential=l8A;MJ.isBasicCredential=p8A;MJ.isApiKeyCredential=i8A;function c8A(A){return"getOAuth2Token"in A}function l8A(A){return"getBearerToken"in A}function p8A(A){return"username"in A&&"password"in A}function i8A(A){return"key"in A}});var c9=K((PL)=>{Object.defineProperty(PL,"__esModule",{value:!0});PL.ensureSecureConnection=o8A;var n8A=y9(),rS=!1;function a8A(A,Q){if(Q.allowInsecureConnection&&A.allowInsecureConnection){let B=new URL(A.url);if(B.hostname==="localhost"||B.hostname==="127.0.0.1")return!0}return!1}function s8A(){if(n8A.logger.warning("Sending token over insecure transport. Assume any token issued is compromised."),typeof process?.emitWarning==="function"&&!rS)rS=!0,process.emitWarning("Sending token over insecure transport. Assume any token issued is compromised.")}function o8A(A,Q){if(!A.url.toLowerCase().startsWith("https://"))if(a8A(A,Q))s8A();else throw Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var tS=K((RJ)=>{Object.defineProperty(RJ,"__esModule",{value:!0});RJ.apiKeyAuthenticationPolicyName=void 0;RJ.apiKeyAuthenticationPolicy=t8A;var r8A=c9();RJ.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function t8A(A){return{name:RJ.apiKeyAuthenticationPolicyName,async sendRequest(Q,B){(0,r8A.ensureSecureConnection)(Q,A);let E=(Q.authSchemes??A.authSchemes)?.find((I)=>I.kind==="apiKey");if(!E)return B(Q);if(E.apiKeyLocation!=="header")throw Error(`Unsupported API key location: ${E.apiKeyLocation}`);return Q.headers.set(E.name,A.credential.key),B(Q)}}}});var Ay=K((gJ)=>{Object.defineProperty(gJ,"__esModule",{value:!0});gJ.basicAuthenticationPolicyName=void 0;gJ.basicAuthenticationPolicy=A4A;var eS=G1(),e8A=c9();gJ.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function A4A(A){return{name:gJ.basicAuthenticationPolicyName,async sendRequest(Q,B){if((0,e8A.ensureSecureConnection)(Q,A),!(Q.authSchemes??A.authSchemes)?.find((F)=>F.kind==="http"&&F.scheme==="basic"))return B(Q);let{username:I,password:C}=A.credential,D=(0,eS.uint8ArrayToString)((0,eS.stringToUint8Array)(`${I}:${C}`,"utf-8"),"base64");return Q.headers.set("Authorization",`Basic ${D}`),B(Q)}}}});var Qy=K((TJ)=>{Object.defineProperty(TJ,"__esModule",{value:!0});TJ.bearerAuthenticationPolicyName=void 0;TJ.bearerAuthenticationPolicy=B4A;var Line truncated
`).join("")}return Q(A)}}}});var __=K((L1)=>{Object.defineProperty(L1,"__esModule",{value:!0});L1.auxiliaryAuthenticationHeaderPolicyName=void 0;L1.auxiliaryAuthenticationHeaderPolicy=kWA;var qWA=RV(),jWA=p9();L1.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var y_="x-ms-authorization-auxiliary";async function PWA(A){let{scopes:Q,getAccessToken:B,request:E}=A,I={abortSignal:E.abortSignal,tracingOptions:E.tracingOptions};return(await B(Q,I))?.token??""}function kWA(A){let{credentials:Q,scopes:B}=A,E=A.logger||jWA.logger,I=new WeakMap;return{name:L1.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(C,D){if(!C.url.toLowerCase().startsWith("https://"))throw Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!Q||Q.length===0)return E.info(`${L1.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),D(C);let F=[];for(let J of Q){let G=I.get(J);if(!G)G=(0,qWA.createTokenCycler)(J),I.set(J,G);F.push(PWA({scopes:Array.isArray(B)?B:[B],request:C,getAccessToken:G,logger:E}))}let Y=(await Promise.all(F)).filter((J)=>Boolean(J));if(Y.length===0)return E.warning(`None of the auxiliary tokens are valid. ${y_} header will not be set.`),D(C);return C.headers.set(y_,Y.map((J)=>`Bearer ${J}`).join(", ")),D(C)}}}});var AE=K((WA)=>{Object.defineProperty(WA,"__esModule",{value:!0});WA.createFileFromStream=WA.createFile=WA.agentPolicyName=WA.agentPolicy=WA.auxiliaryAuthenticationHeaderPolicyName=WA.auxiliaryAuthenticationHeaderPolicy=WA.ndJsonPolicyName=WA.ndJsonPolicy=WA.bearerTokenAuthenticationPolicyName=WA.bearerTokenAuthenticationPolicy=WA.formDataPolicyName=WA.formDataPolicy=WA.tlsPolicyName=WA.tlsPolicy=WA.userAgentPolicyName=WA.userAgentPolicy=WA.defaultRetryPolicy=WA.tracingPolicyName=WA.tracingPolicy=WA.retryPolicy=WA.throttlingRetryPolicyName=WA.throttlingRetryPolicy=WA.systemErrorRetryPolicyName=WA.systemErrorRetryPolicy=WA.redirectPolicyName=WA.redirectPolicy=WA.getDefaultProxySettings=WA.proxyPolicyName=WA.proxyPolicy=WA.multipartPolicyName=WA.multipartPolicy=WA.logPolicyName=WA.logPolicy=WA.setClientRequestIdPolicyName=WA.setClientRequestIdPolicy=WA.exponentialRetryPolicyName=WA.exponentialRetryPolicy=WA.decompressResponsePolicyName=WA.decompressResponsePolicy=WA.isRestError=WA.RestError=WA.createPipelineRequest=WA.createHttpHeaders=WA.createDefaultHttpClient=WA.createPipelineFromOptions=WA.createEmptyPipeline=void 0;var fWA=mL();Object.defineProperty(WA,"createEmptyPipeline",{enumerable:!0,get:function(){return fWA.createEmptyPipeline}});var xWA=V_();Object.defineProperty(WA,"createPipelineFromOptions",{enumerable:!0,get:function(){return xWA.createPipelineFromOptions}});var hWA=z_();Object.defineProperty(WA,"createDefaultHttpClient",{enumerable:!0,get:function(){return hWA.createDefaultHttpClient}});var SWA=H_();Object.defineProperty(WA,"createHttpHeaders",{enumerable:!0,get:function(){return SWA.createHttpHeaders}});var yWA=w_();Object.defineProperty(WA,"createPipelineRequest",{enumerable:!0,get:function(){return yWA.createPipelineRequest}});var v_=q2();Object.defineProperty(WA,"RestError",{enumerable:!0,get:function(){return v_.RestError}});Object.defineProperty(WA,"isRestError",{enumerable:!0,get:function(){return v_.isRestError}});var b_=EV();Object.defineProperty(WA,"decompressResponsePolicy",{enumerable:!0,get:function(){return b_.decompressResponsePolicy}});Object.defineProperty(WA,"decompressResponsePolicyName",{enumerable:!0,get:function(){return b_.decompressResponsePolicyName}});var u_=R_();Object.defineProperty(WA,"exponentialRetryPolicy",{enumerable:!0,get:function(){return u_.exponentialRetryPolicy}});Object.defineProperty(WA,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return u_.exponentialRetryPolicyName}});var m_=YV();Object.defineProperty(WA,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return m_.setClientRequestIdPolicy}});Object.defineProperty(WA,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return m_.setClientRequestIdPolicyName}});var d_=cL();Object.defineProperty(WA,"logPolicy",{enumerable:!0,get:function(){return d_.logPolicy}});Object.defineProperty(WA,"logPolicyName",{enumerable:!0,get:function(){return d_.logPolicyName}});var c_=BV();Object.defineProperty(WA,"multipartPolicy",{enumerable:!0,get:function(){return c_.multipartPolicy}});Object.defineProperty(WA,"multipartPolicyName",{enumerable:!0,get:function(){return c_.multipartPolicyName}});var gV=FV();Object.defineProperty(WA,"proxyPolicy",{enumerable:!0,get:function(){return gV.proxyPolicy}});Object.defineProperty(WA,"proxyPolicyName",{enumerable:!0,get:function(){return gV.proxyPolicyName}});Object.defineProperty(WA,"getDefaultProxySettings",{enumerable:!0,get:function(){return gV.getDefaultProxySettings}});var l_=lL();Object.defineProperty(WA,"redirectPolicy",{enumerable:!0,get:function(){return l_.redirectPolicy}});Object.defineProperty(WA,"redirect Line truncated
`&&L[S]!=="\r";S++)f+=L[S];if(f=f.trim(),f[f.length-1]==="/"&&(f=f.substring(0,f.length-1),S--),!C(f)){let r;return r=f.trim().length===0?"Invalid space after '<'.":"Tag '"+f+"' is an invalid name.",w("InvalidTag",r,M(L,S))}let v=Z(L,S);if(v===!1)return w("InvalidAttr","Attributes for '"+f+"' have open quote.",M(L,S));let a=v.value;if(S=v.index,a[a.length-1]==="/"){let r=S-a.length;a=a.substring(0,a.length-1);let $A=$(a,H);if($A!==!0)return w($A.err.code,$A.err.msg,M(L,r+$A.err.line));h=!0}else if(q){if(!v.tagClosed)return w("InvalidTag","Closing tag '"+f+"' doesn't have proper closing.",M(L,S));if(a.trim().length>0)return w("InvalidTag","Closing tag '"+f+"' can't have attributes or invalid starting.",M(L,z));if(j.length===0)return w("InvalidTag","Closing tag '"+f+"' has not been opened.",M(L,z));{let r=j.pop();if(f!==r.tagName){let $A=M(L,r.tagStartPos);return w("InvalidTag","Expected closing tag '"+r.tagName+"' (opened in line "+$A.line+", col "+$A.col+") instead of closing tag '"+f+"'.",M(L,z))}j.length==0&&(P=!0)}}else{let r=$(a,H);if(r!==!0)return w(r.err.code,r.err.msg,M(L,S-a.length+r.err.line));if(P===!0)return w("InvalidXml","Multiple possible root nodes found.",M(L,S));H.unpairedTags.indexOf(f)!==-1||j.push({tagName:f,tagStartPos:z}),h=!0}for(S++;S<L.length;S++)if(L[S]==="<"){if(L[S+1]==="!"){S++,S=G(L,S);continue}if(L[S+1]!=="?")break;if(S=J(L,++S),S.err)return S}else if(L[S]==="&"){let r=V(L,S);if(r==-1)return w("InvalidChar","char '&' is not expected.",M(L,S));S=r}else if(P===!0&&!Y(L[S]))return w("InvalidXml","Extra text at the end",M(L,S));L[S]==="<"&&S--}}}return h?j.length==1?w("InvalidTag","Unclosed tag '"+j[0].tagName+"'.",M(L,j[0].tagStartPos)):!(j.length>0)||w("InvalidXml","Invalid '"+JSON.stringify(j.map((S)=>S.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):w("InvalidXml","Start tag expected.",1)}function Y(L){return L===" "||L==="\t"||L===`
`||L==="\r"}function J(L,H){let j=H;for(;H<L.length;H++)if(L[H]!="?"&&L[H]!=" ");else{let h=L.substr(j,H-j);if(H>5&&h==="xml")return w("InvalidXml","XML declaration allowed only at the start of the document.",M(L,H));if(L[H]=="?"&&L[H+1]==">"){H++;break}}return H}function G(L,H){if(L.length>H+5&&L[H+1]==="-"&&L[H+2]==="-"){for(H+=3;H<L.length;H++)if(L[H]==="-"&&L[H+1]==="-"&&L[H+2]===">"){H+=2;break}}else if(L.length>H+8&&L[H+1]==="D"&&L[H+2]==="O"&&L[H+3]==="C"&&L[H+4]==="T"&&L[H+5]==="Y"&&L[H+6]==="P"&&L[H+7]==="E"){let j=1;for(H+=8;H<L.length;H++)if(L[H]==="<")j++;else if(L[H]===">"&&(j--,j===0))break}else if(L.length>H+9&&L[H+1]==="["&&L[H+2]==="C"&&L[H+3]==="D"&&L[H+4]==="A"&&L[H+5]==="T"&&L[H+6]==="A"&&L[H+7]==="["){for(H+=8;H<L.length;H++)if(L[H]==="]"&&L[H+1]==="]"&&L[H+2]===">"){H+=2;break}}return H}let N='"',U="'";function Z(L,H){let j="",h="",P=!1;for(;H<L.length;H++){if(L[H]===N||L[H]===U)h===""?h=L[H]:h!==L[H]||(h="");else if(L[H]===">"&&h===""){P=!0;break}j+=L[H]}return h===""&&{value:j,index:H,tagClosed:P}}let X=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function $(L,H){let j=I(L,X),h={};for(let P=0;P<j.length;P++){if(j[P][1].length===0)return w("InvalidAttr","Attribute '"+j[P][2]+"' has no space in starting.",k(j[P]));if(j[P][3]!==void 0&&j[P][4]===void 0)return w("InvalidAttr","Attribute '"+j[P][2]+"' is without value.",k(j[P]));if(j[P][3]===void 0&&!H.allowBooleanAttributes)return w("InvalidAttr","boolean attribute '"+j[P][2]+"' is not allowed.",k(j[P]));let S=j[P][2];if(!g(S))return w("InvalidAttr","Attribute '"+S+"' is an invalid name.",k(j[P]));if(h.hasOwnProperty(S))return w("InvalidAttr","Attribute '"+S+"' is repeated.",k(j[P]));h[S]=1}return!0}function V(L,H){if(L[++H]===";")return-1;if(L[H]==="#")return function(h,P){let S=/\d/;for(h[P]==="x"&&(P++,S=/[\da-fA-F]/);P<h.length;P++){if(h[P]===";")return P;if(!h[P].match(S))break}return-1}(L,++H);let j=0;for(;H<L.length;H++,j++)if(!(L[H].match(/\w/)&&j<20)){if(L[H]===";")break;return-1}return H}function w(L,H,j){return{err:{code:L,msg:H,line:j.line||j,col:j.col}}}function g(L){return C(L)}function M(L,H){let j=L.substring(0,H).split(/\r?\n/);return{line:j.length,col:j[j.length-1].length+1}}function k(L){return L.startIndex+L[1].length}let d={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(L,H){return H},attributeValueProcessor:function(L,H){return H},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(L,H,j){return L},captureMetaData:!1},t;t=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class m{constructor(L){this.tagname=L,this.child=[],this[":@"]={}}add(L,H){L==="__proto__"&&(L="#__proto__"),this.child.push({[L]:H})}addChild(L,H){L.tagname==="__proto__"&&(L.tagname="#__proto__"),L[":@"]&&Object.keys(L[":@"]).length>0?this.child.push({[L.tagname]:L.child,":@":L[":@"]}):this.child.push({[L.tagname]:L.child}),H!==void 0&&(this.child[this.child.length-1][t]={startIndex:H})}static getMetaDataSymbol(){return t}}function n(L,H){let j={};if(L[H+3]!=="O"||L[H+4]!=="C"||L[H+5]!=="T"||L[H+6]!=="Y"||L[H+7]!=="P"||L[H+8]!=="E")throw Error("Invalid Tag instead of DOCTYPE");{H+=9;let h=1,P=!1,S=!1,z="";for(;H<L.length;H++)if(L[H]!=="<"||S)if(L[H]===">"){if(S?L[H-1]==="-"&&L[H-2]==="-"&&(S=!1,h--):h--,h===0)break}else L[H]==="["?P=!0:z+=L[H];else{if(P&&i(L,"!ENTITY",H)){let q,f;H+=7,[q,f,H]=x(L,H+1),f.indexOf("&")===-1&&(j[q]={regx:RegExp(`&${q};`,"g"),val:f})}else if(P&&i(L,"!ELEMENT",H)){H+=8;let{index:q}=CA(L,H+1);H=q}else if(P&&i(L,"!ATTLIST",H))H+=8;else if(P&&i(L,"!NOTATION",H)){H+=9;let{index:q}=l(L,H+1);H=q}else{if(!i(L,"!--",H))throw Error("Invalid DOCTYPE");S=!0}h++,z=""}if(h!==0)throw Error("Unclosed DOCTYPE")}return{entities:j,i:H}}let QA=(L,H)=>{for(;H<L.length&&/\s/.test(L[H]);)H++;return H};function x(L,H){H=QA(L,H);let j="";for(;H<L.length&&!/\s/.test(L[H])&&L[H]!=='"'&&L[H]!=="'";)j+=L[H],H++;if(KA(j),H=QA(L,H),L.substring(H,H+6).toUpperCase()==="SYSTEM")throw Error("External entities are not supported");if(L[H]==="%")throw Error("Parameter entities are not supported");let h="";return[H,h]=u(L,H,"entity"),[j,h,--H]}function l(L,H){H=QA(L,H);let j="";for(;H<L.length&&!/\s/.test(L[H]);)j+=L[H],H++;KA(j),H=QA(L,H);let h=L.substring(H,H+6).toUpperCase();if(h!=="SYSTEM"&&h!=="PUBLIC")throw Error(`Expected SYSTEM or PUBLIC, found "${h}"`);H+=h.length,H=QA(L,H);let P=null,S=null;if(h==="PUBLIC")[H,P]=u(L,H,"publicIdentifier"),L[H=QA(L,H)]!=='"'&&L[H]!=="'"||([H,S]=u(L,H,"systemIdentifier"));else if(h==="SYSTEM"&&([H,S]=u(L,H,"systemIdentifier"),!S))throw Error("MissLine truncated
`);let H=new m("!xml"),j=H,h="",P="";for(let S=0;S<L.length;S++)if(L[S]==="<")if(L[S+1]==="/"){let z=e(L,">",S,"Closing Tag is not closed."),q=L.substring(S+2,z).trim();if(this.options.removeNSPrefix){let a=q.indexOf(":");a!==-1&&(q=q.substr(a+1))}this.options.transformTagName&&(q=this.options.transformTagName(q)),j&&(h=this.saveTextToParentTag(h,j,P));let f=P.substring(P.lastIndexOf(".")+1);if(q&&this.options.unpairedTags.indexOf(q)!==-1)throw Error(`Unpaired tag can not be used as closing tag: </${q}>`);let v=0;f&&this.options.unpairedTags.indexOf(f)!==-1?(v=P.lastIndexOf(".",P.lastIndexOf(".")-1),this.tagsNodeStack.pop()):v=P.lastIndexOf("."),P=P.substring(0,v),j=this.tagsNodeStack.pop(),h="",S=z}else if(L[S+1]==="?"){let z=EA(L,S,!1,"?>");if(!z)throw Error("Pi Tag is not closed.");if(h=this.saveTextToParentTag(h,j,P),this.options.ignoreDeclaration&&z.tagName==="?xml"||this.options.ignorePiTags);else{let q=new m(z.tagName);q.add(this.options.textNodeName,""),z.tagName!==z.tagExp&&z.attrExpPresent&&(q[":@"]=this.buildAttributesMap(z.tagExp,P,z.tagName)),this.addChild(j,q,P,S)}S=z.closeIndex+1}else if(L.substr(S+1,3)==="!--"){let z=e(L,"-->",S+4,"Comment is not closed.");if(this.options.commentPropName){let q=L.substring(S+4,z-2);h=this.saveTextToParentTag(h,j,P),j.add(this.options.commentPropName,[{[this.options.textNodeName]:q}])}S=z}else if(L.substr(S+1,2)==="!D"){let z=n(L,S);this.docTypeEntities=z.entities,S=z.i}else if(L.substr(S+1,2)==="!["){let z=e(L,"]]>",S,"CDATA is not closed.")-2,q=L.substring(S+9,z);h=this.saveTextToParentTag(h,j,P);let f=this.parseTextData(q,j.tagname,P,!0,!1,!0,!0);f==null&&(f=""),this.options.cdataPropName?j.add(this.options.cdataPropName,[{[this.options.textNodeName]:q}]):j.add(this.options.textNodeName,f),S=z+2}else{let z=EA(L,S,this.options.removeNSPrefix),q=z.tagName,f=z.rawTagName,v=z.tagExp,a=z.attrExpPresent,r=z.closeIndex;this.options.transformTagName&&(q=this.options.transformTagName(q)),j&&h&&j.tagname!=="!xml"&&(h=this.saveTextToParentTag(h,j,P,!1));let $A=j;$A&&this.options.unpairedTags.indexOf($A.tagname)!==-1&&(j=this.tagsNodeStack.pop(),P=P.substring(0,P.lastIndexOf("."))),q!==H.tagname&&(P+=P?"."+q:q);let ZA=S;if(this.isItStopNode(this.options.stopNodes,P,q)){let VA="";if(v.length>0&&v.lastIndexOf("/")===v.length-1)q[q.length-1]==="/"?(q=q.substr(0,q.length-1),P=P.substr(0,P.length-1),v=q):v=v.substr(0,v.length-1),S=z.closeIndex;else if(this.options.unpairedTags.indexOf(q)!==-1)S=z.closeIndex;else{let hQ=this.readStopNodeData(L,f,r+1);if(!hQ)throw Error(`Unexpected end of ${f}`);S=hQ.i,VA=hQ.tagContent}let SA=new m(q);q!==v&&a&&(SA[":@"]=this.buildAttributesMap(v,P,q)),VA&&(VA=this.parseTextData(VA,q,P,!0,a,!0,!0)),P=P.substr(0,P.lastIndexOf(".")),SA.add(this.options.textNodeName,VA),this.addChild(j,SA,P,ZA)}else{if(v.length>0&&v.lastIndexOf("/")===v.length-1){q[q.length-1]==="/"?(q=q.substr(0,q.length-1),P=P.substr(0,P.length-1),v=q):v=v.substr(0,v.length-1),this.options.transformTagName&&(q=this.options.transformTagName(q));let VA=new m(q);q!==v&&a&&(VA[":@"]=this.buildAttributesMap(v,P,q)),this.addChild(j,VA,P,ZA),P=P.substr(0,P.lastIndexOf("."))}else{let VA=new m(q);this.tagsNodeStack.push(j),q!==v&&a&&(VA[":@"]=this.buildAttributesMap(v,P,q)),this.addChild(j,VA,P,ZA),j=VA}h="",S=r}}else h+=L[S];return H.child};function BA(L,H,j,h){this.options.captureMetaData||(h=void 0);let P=this.options.updateTag(H.tagname,j,H[":@"]);P===!1||(typeof P=="string"?(H.tagname=P,L.addChild(H,h)):L.addChild(H,h))}let HB=function(L){if(this.options.processEntities){for(let H in this.docTypeEntities){let j=this.docTypeEntities[H];L=L.replace(j.regx,j.val)}for(let H in this.lastEntities){let j=this.lastEntities[H];L=L.replace(j.regex,j.val)}if(this.options.htmlEntities)for(let H in this.htmlEntities){let j=this.htmlEntities[H];L=L.replace(j.regex,j.val)}L=L.replace(this.ampEntity.regex,this.ampEntity.val)}return L};function WQ(L,H,j,h){return L&&(h===void 0&&(h=H.child.length===0),(L=this.parseTextData(L,H.tagname,j,!1,!!H[":@"]&&Object.keys(H[":@"]).length!==0,h))!==void 0&&L!==""&&H.add(this.options.textNodeName,L),L=""),L}function NB(L,H,j){let h="*."+j;for(let P in L){let S=L[P];if(h===S||H===S)return!0}return!1}function e(L,H,j,h){let P=L.indexOf(H,j);if(P===-1)throw Error(h);return P+H.length-1}function EA(L,H,j,h=">"){let P=function(r,$A,ZA=">"){let VA,SA="";for(let hQ=$A;hQ<r.length;hQ++){let tQ=r[hQ];if(VA)tQ===VA&&(VA="");else if(tQ==='"'||tQ==="'")VA=tQ;else if(tQ===ZA[0]){if(!ZA[1])return{data:SA,index:hQ};if(r[hQ+1]===ZA[1])return{data:SA,index:hQ}}else tQ==="\t"&&(tQ=" ");SA+=tQ}}(L,H+1,h);if(!P)return;let{data:S,index:z}=P,q=S.search(/\s/),f=S,v=!0;q!==-1&&(f=S.substring(0,q),S=S.substring(q+1).trimStart());let a=f;if(j){let r=f.indexOf(":");r!==-1&&(f=f.substr(r+1),v=f!==P.data.substr(r+1))}return{tagName:f,tagExp:S,closeIndex:z,attrExpPresent:v,rawTagName:a}}function BQ(L,H,j){let h=j,P=1;for(;j<L.length;j++)if(L[j]==="<")if(L[j+1]==="/"){let S=e(L,">",j,`${Line truncated
`),xQ(L,H,"",j)}function xQ(L,H,j,h){let P="",S=!1;for(let z=0;z<L.length;z++){let q=L[z],f=J0(q);if(f===void 0)continue;let v="";if(v=j.length===0?f:`${j}.${f}`,f===H.textNodeName){let ZA=q[f];VQ(v,H)||(ZA=H.tagValueProcessor(f,ZA),ZA=W(ZA,H)),S&&(P+=h),P+=ZA,S=!1;continue}if(f===H.cdataPropName){S&&(P+=h),P+=`<![CDATA[${q[f][0][H.textNodeName]}]]>`,S=!1;continue}if(f===H.commentPropName){P+=h+`<!--${q[f][0][H.textNodeName]}-->`,S=!0;continue}if(f[0]==="?"){let ZA=wA(q[":@"],H),VA=f==="?xml"?"":h,SA=q[f][0][H.textNodeName];SA=SA.length!==0?" "+SA:"",P+=VA+`<${f}${SA}${ZA}?>`,S=!0;continue}let a=h;a!==""&&(a+=H.indentBy);let r=h+`<${f}${wA(q[":@"],H)}`,$A=xQ(q[f],H,v,a);H.unpairedTags.indexOf(f)!==-1?H.suppressUnpairedNode?P+=r+">":P+=r+"/>":$A&&$A.length!==0||!H.suppressEmptyNode?$A&&$A.endsWith(">")?P+=r+`>${$A}${h}</${f}>`:(P+=r+">",$A&&h!==""&&($A.includes("/>")||$A.includes("</"))?P+=h+H.indentBy+$A+h:P+=$A,P+=`</${f}>`):P+=r+"/>",S=!0}return P}function J0(L){let H=Object.keys(L);for(let j=0;j<H.length;j++){let h=H[j];if(L.hasOwnProperty(h)&&h!==":@")return h}}function wA(L,H){let j="";if(L&&!H.ignoreAttributes)for(let h in L){if(!L.hasOwnProperty(h))continue;let P=H.attributeValueProcessor(h,L[h]);P=W(P,H),P===!0&&H.suppressBooleanAttributes?j+=` ${h.substr(H.attributeNamePrefix.length)}`:j+=` ${h.substr(H.attributeNamePrefix.length)}="${P}"`}return j}function VQ(L,H){let j=(L=L.substr(0,L.length-H.textNodeName.length-1)).substr(L.lastIndexOf(".")+1);for(let h in H.stopNodes)if(H.stopNodes[h]===L||H.stopNodes[h]==="*."+j)return!0;return!1}function W(L,H){if(L&&L.length>0&&H.processEntities)for(let j=0;j<H.entities.length;j++){let h=H.entities[j];L=L.replace(h.regex,h.val)}return L}let b={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(L,H){return H},attributeValueProcessor:function(L,H){return H},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function p(L){this.options=Object.assign({},b,L),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=JA(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=LA),this.processTextOrObjNode=NA,this.options.format?(this.indentate=AA,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function NA(L,H,j,h){let P=this.j2x(L,j+1,h.concat(H));return L[this.options.textNodeName]!==void 0&&Object.keys(L).length===1?this.buildTextValNode(L[this.options.textNodeName],H,P.attrStr,j):this.buildObjectNode(P.val,H,P.attrStr,j)}function AA(L){return this.options.indentBy.repeat(L)}function LA(L){return!(!L.startsWith(this.options.attributeNamePrefix)||L===this.options.textNodeName)&&L.substr(this.attrPrefixLen)}p.prototype.build=function(L){return this.options.preserveOrder?_A(L,this.options):(Array.isArray(L)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(L={[this.options.arrayNodeName]:L}),this.j2x(L,0,[]).val)},p.prototype.j2x=function(L,H,j){let h="",P="",S=j.join(".");for(let z in L)if(Object.prototype.hasOwnProperty.call(L,z))if(L[z]===void 0)this.isAttribute(z)&&(P+="");else if(L[z]===null)this.isAttribute(z)||z===this.options.cdataPropName?P+="":z[0]==="?"?P+=this.indentate(H)+"<"+z+"?"+this.tagEndChar:P+=this.indentate(H)+"<"+z+"/"+this.tagEndChar;else if(L[z]instanceof Date)P+=this.buildTextValNode(L[z],z,"",H);else if(typeof L[z]!="object"){let q=this.isAttribute(z);if(q&&!this.ignoreAttributesFn(q,S))h+=this.buildAttrPairStr(q,""+L[z]);else if(!q)if(z===this.options.textNodeName){let f=this.options.tagValueProcessor(z,""+L[z]);P+=this.replaceEntitiesValue(f)}else P+=this.buildTextValNode(L[z],z,"",H)}else if(Array.isArray(L[z])){let q=L[z].length,f="",v="";for(let a=0;a<q;a++){let r=L[z][a];if(r===void 0);else if(r===null)z[0]==="?"?P+=this.indentate(H)+"<"+z+"?"+this.tagEndChar:P+=this.indentate(H)+"<"+z+"/"+this.tagEndChar;else if(typeof r=="object")if(this.options.oneListGroup){let $A=this.j2x(r,H+1,j.concat(z));f+=$A.val,this.options.attributesGroupName&&r.hasOwnProperty(this.options.attributesGroupName)&&(v+=$A.attrStr)}else f+=this.processTextOrObjNode(r,z,H,j);else if(this.options.oneListGroup){let $A=this.options.tagValueProcessor(z,r);$A=this.replaceEntitiesValue($A),f+=$A}else f+=this.buildTextValNode(r,z,"",H)}this.options.oneListGroup&&(f=this.buildObjectNode(f,z,v,H)),P+=f}else if(this.options.attributesGroupName&&z===this.options.attributesGroupName){let q=Object.keys(L[z]),f=q.length;for(let v=0;v<f;v++)h+=this.buildAttrPairStr(q[v],""+L[z][q[v]])}else P+=this.processTextOrObjNode(L[z],z,H,j);return{attrStr:h,val:P}},p.prototype.buildAttrPairStr=function(L,H){return H=this.options.attributeValueProcessor(L,""+H),H=this.replaceEntitiesValue(H),this.options.suppressBooleanAttributes&&H==="true"?" "+L:" "+L+'="'+H+'"'},p.prototype.buildObjectNode=function(L,H,j,h){if(L==="")return H[0]==="?"?this.indentate(h)+"<"+H+j+"?"+this.tagEndChar:this.indentate(h)+"<"+H+j+this.closeTag(H)+this.tagEndChar;{let P="</"+H+this.tagEndChar,S="";return H[0]==="?"&&(S="?",P=""),!j&&j!==""||L.indexOf("<")!==-1?this.options.commentPropName!==!1&&H===this.options.commentPropName&&S.length===0?this.indentate(h)+`<!--${L}-->`+this.newLine:this.indentate(h)+"<"+H+j+S+this.tagEndChar+L+this.indentate(h)+P:this.indentate(h)+"<"+H+j+S+">"+L+P}},p.prototype.closeTag=function(L){let H="";return this.options.unpairedTags.indexOf(L)!==-1?this.options.suppressUnpairedNode||(H="/"):H=this.options.suppressEmptyNode?"/":`></${L}`,H},p.prototype.buildTextValNode=function(L,H,j,h){if(this.options.cdataPropName!==!1&&H===this.options.cdataPropName)return this.indentate(h)+`<![CDATA[${L}]]>`+this.newLine;if(this.options.commentPropName!==!1&&H===this.options.commentPropName)return this.indentate(h)+`<!--${L}-->`+this.newLine;if(H[0]==="?")return this.indentate(h)+"<"+H+j+"?"+this.tagEndChar;{let P=this.options.tagValueProcessor(H,L);return P=this.replaceEntitiesValue(P),P===""?this.indentate(h)+"<"+H+j+this.closeTag(H)+this.tagEndChar:this.indentate(h)+"<"+H+j+">"+P+"</"+H+this.tagEndChar}},p.prototype.replaceEntitiesValue=function(L){if(L&&L.length>0&&this.options.processEntities)for(let H=0;H<this.options.entities.length;H++){let j=this.options.entities[H];L=L.replace(j.regex,j.val)}return L};let UA={validate:F};Db.exports=Q})()});var pV=K((sJ)=>{Object.defineProperty(sJ,"__esModule",{value:!0});sJ.XML_CHARKEY=sJ.XML_ATTRKEY=void 0;sJ.XML_ATTRKEY="$";sJ.XML_CHARKEY="_"});var Gb=K((o2)=>{Object.defineProperty(o2,"__esModule",{value:!0});o2.stringifyXML=n6A;o2.parseXML=a6A;var iV=Fb(),Yb=pV();function Jb(A){var Q;return{attributesGroupName:Yb.XML_ATTRKEY,textNodeName:(Q=A.xmlCharKey)!==null&&Q!==void 0?Q:Yb.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function p6A(A={}){var Q,B;return Object.assign(Object.assign({},Jb(A)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(Q=A.rootName)!==null&&Q!==void 0?Q:"root",cdataPropName:(B=A.cdataPropName)!==null&&B!==void 0?B:"__cdata"})}function i6A(A={}){return Object.assign(Object.assign({},Jb(A)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:A.stopNodes,processEntities:!0,trimValues:!1})}function nLine truncated
`;mA.HTTP_VERSION_1_1="HTTP/1.1";mA.EncryptionAlgorithmAES25="AES256";mA.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";mA.StorageBlobLoggingAllowedHeaderNames=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"];mA.StorageBlobLoggingAllowedQueryParameters=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];mA.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";mA.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";mA.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var HE=K(($Q)=>{Object.defineProperty($Q,"__esModule",{value:!0});$Q.escapeURLPath=t6A;$Q.getValueInConnString=IF;$Q.extractConnectionStringParts=A7A;$Q.appendToURLPath=B7A;$Q.setURLParameter=Kb;$Q.getURLParameter=Lb;$Q.setURLHost=E7A;$Q.getURLPath=I7A;$Q.getURLScheme=C7A;$Q.getURLPathAndQuery=D7A;$Q.getURLQueries=F7A;$Q.appendToURLQuery=Y7A;$Q.truncatedISO8061Date=J7A;$Q.base64encode=Vb;$Q.base64decode=G7A;$Q.generateBlockID=N7A;$Q.delay=U7A;$Q.padStart=zb;$Q.sanitizeURL=Hb;$Q.sanitizeHeaders=Z7A;$Q.iEqual=W7A;$Q.getAccountNameFromUrl=wb;$Q.isIpEndpointStyle=Mb;$Q.toBlobTagsString=X7A;$Q.toBlobTags=$7A;$Q.toTags=K7A;$Q.toQuerySerialization=L7A;$Q.parseObjectReplicationRecord=V7A;$Q.attachCredential=z7A;$Q.httpAuthorizationToString=H7A;$Q.BlobNameToString=QZ;$Q.ConvertInternalResponseOfListBlobFlat=w7A;$Q.ConvertInternalResponseOfListBlobHierarchy=M7A;$Q.ExtractPageRangeInfoItems=R7A;$Q.EscapePath=g7A;$Q.assertResponse=T7A;var r6A=AE(),$b=BB(),rJ=QE();function t6A(A){let Q=new URL(A),B=Q.pathname;return B=B||"/",B=Q7A(B),Q.pathname=B,Q.toString()}function e6A(A){let Q="";if(A.search("DevelopmentStorageProxyUri=")!==-1){let B=A.split(";");for(let E of B)if(E.trim().startsWith("DevelopmentStorageProxyUri="))Q=E.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}return Q}function IF(A,Q){let B=A.split(";");for(let E of B)if(E.trim().startsWith(Q))return E.trim().match(Q+"=(.*)")[1];return""}function A7A(A){let Q="";if(A.startsWith("UseDevelopmentStorage=true"))Q=e6A(A),A=rJ.DevelopmentConnectionString;let B=IF(A,"BlobEndpoint");if(B=B.endsWith("/")?B.slice(0,-1):B,A.search("DefaultEndpointsProtocol=")!==-1&&A.search("AccountKey=")!==-1){let E="",I="",C=Buffer.from("accountKey","base64"),D="";if(I=IF(A,"AccountName"),C=Buffer.from(IF(A,"AccountKey"),"base64"),!B){E=IF(A,"DefaultEndpointsProtocol");let F=E Line truncated
`)+`
`+this.getCanonicalizedHeadersString(A)+this.getCanonicalizedResourceString(A),B=this.factory.computeHMACSHA256(Q);return A.headers.set(pE.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${B}`),A}getHeaderValueToSign(A,Q){let B=A.headers.get(Q);if(!B)return"";if(Q===pE.HeaderConstants.CONTENT_LENGTH&&B==="0")return"";return B}getCanonicalizedHeadersString(A){let Q=A.headers.headersArray().filter((E)=>{return E.name.toLowerCase().startsWith(pE.HeaderConstants.PREFIX_FOR_STORAGE)});Q.sort((E,I)=>{return(0,u7A.compareHeader)(E.name.toLowerCase(),I.name.toLowerCase())}),Q=Q.filter((E,I,C)=>{if(I>0&&E.name.toLowerCase()===C[I-1].name.toLowerCase())return!1;return!0});let B="";return Q.forEach((E)=>{B+=`${E.name.toLowerCase().trimRight()}:${E.value.trimLeft()}
`}),B}getCanonicalizedResourceString(A){let Q=(0,jb.getURLPath)(A.url)||"/",B="";B+=`/${this.factory.accountName}${Q}`;let E=(0,jb.getURLQueries)(A.url),I={};if(E){let C=[];for(let D in E)if(Object.prototype.hasOwnProperty.call(E,D)){let F=D.toLowerCase();I[F]=E[D],C.push(F)}C.sort();for(let D of C)B+=`
${D}:${decodeURIComponent(I[D])}`}return B}}CZ.StorageSharedKeyCredentialPolicy=Pb});var FZ=K((DZ)=>{Object.defineProperty(DZ,"__esModule",{value:!0});DZ.Credential=void 0;class kb{create(A,Q){throw Error("Method should be implemented in children classes.")}}DZ.Credential=kb});var YF=K((YZ)=>{Object.defineProperty(YZ,"__esModule",{value:!0});YZ.StorageSharedKeyCredential=void 0;var m7A=require("node:crypto"),d7A=Az(),c7A=FZ();class fb extends c7A.Credential{accountName;accountKey;constructor(A,Q){super();this.accountName=A,this.accountKey=Buffer.from(Q,"base64")}create(A,Q){return new d7A.StorageSharedKeyCredentialPolicy(A,Q,this)}computeHMACSHA256(A){return(0,m7A.createHmac)("sha256",this.accountKey).update(A,"utf8").digest("base64")}}YZ.StorageSharedKeyCredential=fb});var Qz=K((JZ)=>{Object.defineProperty(JZ,"__esModule",{value:!0});JZ.AnonymousCredentialPolicy=void 0;var l7A=IZ();class xb extends l7A.CredentialPolicy{constructor(A,Q){super(A,Q)}}JZ.AnonymousCredentialPolicy=xb});var JF=K((GZ)=>{Object.defineProperty(GZ,"__esModule",{value:!0});GZ.AnonymousCredential=void 0;var p7A=Qz(),i7A=FZ();class hb extends i7A.Credential{create(A,Q){return new p7A.AnonymousCredentialPolicy(A,Q)}}GZ.AnonymousCredential=hb});var yb=K((NZ)=>{Object.defineProperty(NZ,"__esModule",{value:!0});NZ.BuffersStream=void 0;var n7A=require("node:stream");class Sb extends n7A.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(A,Q,B){super(B);this.buffers=A,this.byteLength=Q,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let E=0;for(let I of this.buffers)E+=I.byteLength;if(E<this.byteLength)throw Error("Data size shouldn't be larger than the total length of buffers.")}_read(A){if(this.pushedBytesLength>=this.byteLength)this.push(null);if(!A)A=this.readableHighWaterMark;let Q=[],B=0;while(B<A&&this.pushedBytesLength<this.byteLength){let E=this.byteLength-this.pushedBytesLength,I=this.buffers[this.bufferIndex].byteLength-this.byteOffsetInCurrentBuffer,C=Math.min(I,E);if(C>A-B){let D=this.byteOffsetInCurrentBuffer+A-B;Q.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,D)),this.pushedBytesLength+=A-B,this.byteOffsetInCurrentBuffer=D,B=A;break}else{let D=this.byteOffsetInCurrentBuffer+C;if(Q.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,D)),C===I)this.byteOffsetInCurrentBuffer=0,this.bufferIndex++;else this.byteOffsetInCurrentBuffer=D;this.pushedBytesLength+=C,B+=C}}if(Q.length>1)this.push(Buffer.concat(Q));else if(Q.length===1)this.push(Q[0])}}NZ.BuffersStream=Sb});var vb=K((ZZ)=>{Object.defineProperty(ZZ,"__esModule",{value:!0});ZZ.PooledBuffer=void 0;var a7A=RB(),s7A=yb(),o7A=a7A.__importDefault(require("node:buffer")),UZ=o7A.default.constants.MAX_LENGTH;class _b{buffers=[];capacity;_size;get size(){return this._size}constructor(A,Q,B){this.capacity=A,this._size=0;let E=Math.ceil(A/UZ);for(let I=0;I<E;I++){let C=I===E-1?A%UZ:UZ;if(C===0)C=UZ;this.buffers.push(Buffer.allocUnsafe(C))}if(Q)this.fill(Q,B)}fill(A,Q){this._size=Math.min(this.capacity,Q);let B=0,E=0,I=0,C=0,D=0;while(D<this._size){let F=A[B],Y=this.buffers[E],J=F.copy(Y,I,C);if(D+=J,C+=J,I+=J,C===F.length)B++,C=0;if(I===Y.length)E++,I=0}if(A.splice(0,B),A.length>0)A[0]=A[0].slice(C)}getReadableStream(){return new s7A.BuffersStream(this.buffers,this.size)}}ZZ.PooledBuffer=_b});var ub=K((WZ)=>{Object.defineProperty(WZ,"__esModule",{value:!0});WZ.BufferScheduler=void 0;var r7A=require("events"),t7A=vb();class bb{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new r7A.EventEmitter;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(A,Q,B,E,I,C){if(Q<=0)throw RangeError(`bufferSize must be larger than 0, current is ${Q}`);if(B<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${B}`);if(I<=0)throw RangeError(`concurrency must be larger than 0, current is ${I}`);this.bufferSize=Q,this.maxBuffers=B,this.readable=A,this.outgoingHandler=E,this.concurrency=I,this.encoding=C}async do(){return new Promise((A,Q)=>{this.readable.on("data",(B)=>{if(B=typeof B==="string"?Buffer.from(B,this.encoding):B,this.appendUnresolvedData(B),!this.resolveData())this.readable.pause()}),this.readable.on("error",(B)=>{this.emitter.emit("error",B)}),this.readable.on("end",()=>{this.isStreamEnd=!0,this.emitter.emit("checkEnd")}),this.emitter.on("error",(B)=>{this.isError=!0,this.readable.pause(),Q(B)}),this.emitter.on("checkEnd",()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLength<this.bufferSize){let B=this.shiftBufferFromUnresolvedDataArray();this.outgoingHandler(()=>B.getReadableStream(),B.size,this.offset).then(A).catch(Q)}else if(this.unresolvedLength>=this.bufferSize)return;else A()})})}appendUnresolvedData(A){t Line truncated
`)+`
`+this.getCanonicalizedHeadersString(A)+this.getCanonicalizedResourceString(A),B=this.factory.computeHMACSHA256(Q);return A.headers.set(iE.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${B}`),A}getHeaderValueToSign(A,Q){let B=A.headers.get(Q);if(!B)return"";if(Q===iE.HeaderConstants.CONTENT_LENGTH&&B==="0")return"";return B}getCanonicalizedHeadersString(A){let Q=A.headers.headersArray().filter((E)=>{return E.name.toLowerCase().startsWith(iE.HeaderConstants.PREFIX_FOR_STORAGE)});Q.sort((E,I)=>{return(0,y3A.compareHeader)(E.name.toLowerCase(),I.name.toLowerCase())}),Q=Q.filter((E,I,C)=>{if(I>0&&E.name.toLowerCase()===C[I-1].name.toLowerCase())return!1;return!0});let B="";return Q.forEach((E)=>{B+=`${E.name.toLowerCase().trimRight()}:${E.value.trimLeft()}
`}),B}getCanonicalizedResourceString(A){let Q=(0,Du.getURLPath)(A.url)||"/",B="";B+=`/${this.factory.accountName}${Q}`;let E=(0,Du.getURLQueries)(A.url),I={};if(E){let C=[];for(let D in E)if(Object.prototype.hasOwnProperty.call(E,D)){let F=D.toLowerCase();I[F]=E[D],C.push(F)}C.sort();for(let D of C)B+=`
${D}:${decodeURIComponent(I[D])}`}return B}}MZ.StorageSharedKeyCredentialPolicy=Fu});var Ju=K((RZ)=>{Object.defineProperty(RZ,"__esModule",{value:!0});RZ.StorageSharedKeyCredential=void 0;var _3A=require("node:crypto"),v3A=Jz(),b3A=HZ();class Yu extends b3A.Credential{accountName;accountKey;constructor(A,Q){super();this.accountName=A,this.accountKey=Buffer.from(Q,"base64")}create(A,Q){return new v3A.StorageSharedKeyCredentialPolicy(A,Q,this)}computeHMACSHA256(A){return(0,_3A.createHmac)("sha256",this.accountKey).update(A,"utf8").digest("base64")}}RZ.StorageSharedKeyCredential=Yu});var Nu=K((gZ)=>{Object.defineProperty(gZ,"__esModule",{value:!0});gZ.AbortError=void 0;class Gu extends Error{constructor(A){super(A);this.name="AbortError"}}gZ.AbortError=Gu});var Gz=K((TZ)=>{Object.defineProperty(TZ,"__esModule",{value:!0});TZ.AbortError=void 0;var u3A=Nu();Object.defineProperty(TZ,"AbortError",{enumerable:!0,get:function(){return u3A.AbortError}})});var Nz=K((OZ)=>{Object.defineProperty(OZ,"__esModule",{value:!0});OZ.logger=void 0;var m3A=X1();OZ.logger=(0,m3A.createClientLogger)("storage-common")});var jZ=K((qZ)=>{Object.defineProperty(qZ,"__esModule",{value:!0});qZ.StorageRetryPolicyType=void 0;var Uu;(function(A){A[A.EXPONENTIAL=0]="EXPONENTIAL",A[A.FIXED=1]="FIXED"})(Uu||(qZ.StorageRetryPolicyType=Uu={}))});var Xz=K((w5)=>{Object.defineProperty(w5,"__esModule",{value:!0});w5.StorageRetryPolicy=void 0;w5.NewRetryPolicyFactory=l3A;var d3A=Gz(),c3A=H5(),Zu=WD(),Uz=z1(),NF=Nz(),Zz=jZ();function l3A(A){return{create:(Q,B)=>{return new Wz(Q,B,A)}}}var UF={maxRetryDelayInMs:120000,maxTries:4,retryDelayInMs:4000,retryPolicyType:Zz.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},p3A=new d3A.AbortError("The operation was aborted.");class Wz extends c3A.BaseRequestPolicy{retryOptions;constructor(A,Q,B=UF){super(A,Q);this.retryOptions={retryPolicyType:B.retryPolicyType?B.retryPolicyType:UF.retryPolicyType,maxTries:B.maxTries&&B.maxTries>=1?Math.floor(B.maxTries):UF.maxTries,tryTimeoutInMs:B.tryTimeoutInMs&&B.tryTimeoutInMs>=0?B.tryTimeoutInMs:UF.tryTimeoutInMs,retryDelayInMs:B.retryDelayInMs&&B.retryDelayInMs>=0?Math.min(B.retryDelayInMs,B.maxRetryDelayInMs?B.maxRetryDelayInMs:UF.maxRetryDelayInMs):UF.retryDelayInMs,maxRetryDelayInMs:B.maxRetryDelayInMs&&B.maxRetryDelayInMs>=0?B.maxRetryDelayInMs:UF.maxRetryDelayInMs,secondaryHost:B.secondaryHost?B.secondaryHost:UF.secondaryHost}}async sendRequest(A){return this.attemptSendRequest(A,!1,1)}async attemptSendRequest(A,Q,B){let E=A.clone(),I=Q||!this.retryOptions.secondaryHost||!(A.method==="GET"||A.method==="HEAD"||A.method==="OPTIONS")||B%2===1;if(!I)E.url=(0,Uz.setURLHost)(E.url,this.retryOptions.secondaryHost);if(this.retryOptions.tryTimeoutInMs)E.url=(0,Uz.setURLParameter)(E.url,Zu.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1000).toString());let C;try{if(NF.logger.info(`RetryPolicy: =====> Try=${B} ${I?"Primary":"Secondary"}`),C=await this._nextPolicy.sendRequest(E),!this.shouldRetry(I,B,C))return C;Q=Q||!I&&C.status===404}catch(D){if(NF.logger.error(`RetryPolicy: Caught error, message: ${D.message}, code: ${D.code}`),!this.shouldRetry(I,B,C,D))throw D}return await this.delay(I,B,A.abortSignal),this.attemptSendRequest(A,Q,++B)}shouldRetry(A,Q,B,E){if(Q>=this.retryOptions.maxTries)return NF.logger.info(`RetryPolicy: Attempt(s) ${Q} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let I=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(E){for(let C of I)if(E.name.toUpperCase().includes(C)||E.message.toUpperCase().includes(C)||E.code&&E.code.toString().toUpperCase()===C)return NF.logger.info(`RetryPolicy: Network error ${C} found, will retry.`),!0}if(B||E){let C=B?B.status:E?E.statusCode:0;if(!A&&C===404)return NF.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(C===503||C===500)return NF.logger.info(`RetryPolicy: Will retry for status code ${C}.`),!0}if(B){if(B?.status>=400){let C=B.headers.get(Zu.HeaderConstants.X_MS_CopySourceErrorCode);if(C!==void 0)switch(C){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}}if(E?.code==="PARSE_ERROR"&&E?.message.startsWith('Error "Error: Unclosed root tag'))return NF.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0;return!1}async delay(A,Q,B){let E=0;if(A)switch(this.retryOptions.retryPolicyType){case Zz.StorageRetryPolicyType.EXPONENTIAL:E=Math.min((Math.pow(2,Q-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Zz.StorageRetryPolicyType.FIXED:E=this.retryOptions.retryDelayInMs;break}else E=Math.random()*1000;return NF.logger.info(`RetryPolicy: Delay for ${E}ms`),(0,Uz.delay)(E,B,p3A)}}w5.StorageRetryPolicy=Wz});var PZ=K((ZF)=>{Object.defineProperty(ZF,"__esModule",{value:!0});ZF.StorageRetryPolicyFactory=ZF.StorageRetryPolicy=ZF.StorageRetryPolicyType=void Line truncated
`)+`
`+E(C)+I(C),F=(0,E$A.createHmac)("sha256",A.accountKey).update(D,"utf8").digest("base64");C.headers.set(nE.HeaderConstants.AUTHORIZATION,`SharedKey ${A.accountName}:${F}`)}function B(C,D){let F=C.headers.get(D);if(!F)return"";if(D===nE.HeaderConstants.CONTENT_LENGTH&&F==="0")return"";return F}function E(C){let D=[];for(let[Y,J]of C.headers)if(Y.toLowerCase().startsWith(nE.HeaderConstants.PREFIX_FOR_STORAGE))D.push({name:Y,value:J});D.sort((Y,J)=>{return(0,I$A.compareHeader)(Y.name.toLowerCase(),J.name.toLowerCase())}),D=D.filter((Y,J,G)=>{if(J>0&&Y.name.toLowerCase()===G[J-1].name.toLowerCase())return!1;return!0});let F="";return D.forEach((Y)=>{F+=`${Y.name.toLowerCase().trimRight()}:${Y.value.trimLeft()}
`}),F}function I(C){let D=(0,Hu.getURLPath)(C.url)||"/",F="";F+=`/${A.accountName}${D}`;let Y=(0,Hu.getURLQueries)(C.url),J={};if(Y){let G=[];for(let N in Y)if(Object.prototype.hasOwnProperty.call(Y,N)){let U=N.toLowerCase();J[U]=Y[N],G.push(U)}G.sort();for(let N of G)F+=`
${N}:${decodeURIComponent(J[N])}`}return F}return{name:IG.storageSharedKeyCredentialPolicyName,async sendRequest(C,D){return Q(C),D(C)}}}});var Mu=K((CG)=>{Object.defineProperty(CG,"__esModule",{value:!0});CG.storageRequestFailureDetailsParserPolicyName=void 0;CG.storageRequestFailureDetailsParserPolicy=D$A;CG.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function D$A(){return{name:CG.storageRequestFailureDetailsParserPolicyName,async sendRequest(A,Q){try{return await Q(A)}catch(B){if(typeof B==="object"&&B!==null&&B.response&&B.response.parsedBody){if(B.response.parsedBody.code==="InvalidHeaderValue"&&B.response.parsedBody.HeaderName==="x-ms-version")B.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.
`}throw B}}}}});var Vz=K((gB)=>{Object.defineProperty(gB,"__esModule",{value:!0});gB.BaseRequestPolicy=gB.getCachedDefaultHttpClient=void 0;var wE=RB();wE.__exportStar(ub(),gB);var F$A=mb();Object.defineProperty(gB,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return F$A.getCachedDefaultHttpClient}});wE.__exportStar(Au(),gB);wE.__exportStar(Cu(),gB);wE.__exportStar(HZ(),gB);wE.__exportStar(Ju(),gB);wE.__exportStar(PZ(),gB);var Y$A=H5();Object.defineProperty(gB,"BaseRequestPolicy",{enumerable:!0,get:function(){return Y$A.BaseRequestPolicy}});wE.__exportStar(Dz(),gB);wE.__exportStar(LZ(),gB);wE.__exportStar(Cz(),gB);wE.__exportStar($u(),gB);wE.__exportStar(Ku(),gB);wE.__exportStar(jZ(),gB);wE.__exportStar(Xz(),gB);wE.__exportStar(zu(),gB);wE.__exportStar(Jz(),gB);wE.__exportStar(wu(),gB);wE.__exportStar(PZ(),gB);wE.__exportStar(Mu(),gB)});var Ru=K((DG)=>{Object.defineProperty(DG,"__esModule",{value:!0});DG.storageBrowserPolicyName=void 0;DG.storageBrowserPolicy=N$A;var J$A=BB(),zz=QE(),G$A=HE();DG.storageBrowserPolicyName="storageBrowserPolicy";function N$A(){return{name:DG.storageBrowserPolicyName,async sendRequest(A,Q){if(J$A.isNodeLike)return Q(A);if(A.method==="GET"||A.method==="HEAD")A.url=(0,G$A.setURLParameter)(A.url,zz.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString());return A.headers.delete(zz.HeaderConstants.COOKIE),A.headers.delete(zz.HeaderConstants.CONTENT_LENGTH),Q(A)}}}});var Tu=K((YG)=>{Object.defineProperty(YG,"__esModule",{value:!0});YG.storageRetryPolicyName=void 0;YG.storageRetryPolicy=K$A;var U$A=K5(),gu=AE(),Z$A=BB(),wz=z5(),W$A=QE(),Hz=HE(),$D=oJ();YG.storageRetryPolicyName="storageRetryPolicy";var FG={maxRetryDelayInMs:120000,maxTries:4,retryDelayInMs:4000,retryPolicyType:wz.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},X$A=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],$$A=new U$A.AbortError("The operation was aborted.");function K$A(A={}){let Q=A.retryPolicyType??FG.retryPolicyType,B=A.maxTries??FG.maxTries,E=A.retryDelayInMs??FG.retryDelayInMs,I=A.maxRetryDelayInMs??FG.maxRetryDelayInMs,C=A.secondaryHost??FG.secondaryHost,D=A.tryTimeoutInMs??FG.tryTimeoutInMs;function F({isPrimaryRetry:J,attempt:G,response:N,error:U}){if(G>=B)return $D.logger.info(`RetryPolicy: Attempt(s) ${G} >= maxTries ${B}, no further try.`),!1;if(U){for(let Z of X$A)if(U.name.toUpperCase().includes(Z)||U.message.toUpperCase().includes(Z)||U.code&&U.code.toString().toUpperCase()===Z)return $D.logger.info(`RetryPolicy: Network error ${Z} found, will retry.`),!0;if(U?.code==="PARSE_ERROR"&&U?.message.startsWith('Error "Error: Unclosed root tag'))return $D.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(N||U){let Z=N?.status??U?.statusCode??0;if(!J&&Z===404)return $D.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(Z===503||Z===500)return $D.logger.info(`RetryPolicy: Will retry for status code ${Z}.`),!0}return!1}function Y(J,G){let N=0;if(J)switch(Q){case wz.StorageRetryPolicyType.EXPONENTIAL:N=Math.min((Math.pow(2,G-1)-1)*E,I);break;case wz.StorageRetryPolicyType.FIXED:N=E;break}else N=Math.random()*1000;return $D.logger.info(`RetryPolicy: Delay for ${N}ms`),N}return{name:YG.storageRetryPolicyName,async sendRequest(J,G){if(D)J.url=(0,Hz.setURLParameter)(J.url,W$A.URLConstants.Parameters.TIMEOUT,String(Math.floor(D/1000)));let N=J.url,U=C?(0,Hz.setURLHost)(J.url,C):void 0,Z=!1,X=1,$=!0,V,w;while($){let g=Z||!U||!["GET","HEAD","OPTIONS"].includes(J.method)||X%2===1;J.url=g?N:U,V=void 0,w=void 0;try{$D.logger.info(`RetryPolicy: =====> Try=${X} ${g?"Primary":"Secondary"}`),V=await G(J),Z=Z||!g&&V.status===404}catch(M){if((0,gu.isRestError)(M))$D.logger.error(`RetryPolicy: Caught error, message: ${M.message}, code: ${M.code}`),w=M;else throw $D.logger.error(`RetryPolicy: Caught error, message: ${(0,Z$A.getErrorMessage)(M)}`),M}if($=F({isPrimaryRetry:g,attempt:X,response:V,error:w}),$)await(0,Hz.delay)(Y(g,X),J.abortSignal,$$A);X++}if(V)return V;throw w??new gu.RestError("RetryPolicy failed without known error.")}}}});var Mz=K((JG)=>{Object.defineProperty(JG,"__esModule",{value:!0});JG.storageSharedKeyCredentialPolicyName=void 0;JG.storageSharedKeyCredentialPolicy=z$A;var L$A=require("node:crypto"),aE=QE(),Ou=HE(),V$A=eV();JG.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function z$A(A){function Q(C){if(C.headers.set(aE.HeaderConstants.X_MS_DATE,new Date().toUTCString()),C.body&&(typeof C.body==="string"||Buffer.isBuffer(C.body))&&C.body.length>0)C.headers.set(aE.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(C.body));let D=[C.method.toUpperCase(),B(C,aE.HeaderConstants.CONTENT_LANGUAGE),B(C,aE.HeaderConstants.CONTENT_ENCODING),B(C,aE.HeaderConstants.CONTENT_LENGTH),B(C,aE.HeaderConstants.CONTENT_MD5),B(C,aE.HeaderConstants.CONTENT_TYPE),B(C,aE.HeaderConstants.DATE),B(C,aE Line truncated
`)+`
`+E(C)+I(C),F=(0,L$A.createHmac)("sha256",A.accountKey).update(D,"utf8").digest("base64");C.headers.set(aE.HeaderConstants.AUTHORIZATION,`SharedKey ${A.accountName}:${F}`)}function B(C,D){let F=C.headers.get(D);if(!F)return"";if(D===aE.HeaderConstants.CONTENT_LENGTH&&F==="0")return"";return F}function E(C){let D=[];for(let[Y,J]of C.headers)if(Y.toLowerCase().startsWith(aE.HeaderConstants.PREFIX_FOR_STORAGE))D.push({name:Y,value:J});D.sort((Y,J)=>{return(0,V$A.compareHeader)(Y.name.toLowerCase(),J.name.toLowerCase())}),D=D.filter((Y,J,G)=>{if(J>0&&Y.name.toLowerCase()===G[J-1].name.toLowerCase())return!1;return!0});let F="";return D.forEach((Y)=>{F+=`${Y.name.toLowerCase().trimRight()}:${Y.value.trimLeft()}
`}),F}function I(C){let D=(0,Ou.getURLPath)(C.url)||"/",F="";F+=`/${A.accountName}${D}`;let Y=(0,Ou.getURLQueries)(C.url),J={};if(Y){let G=[];for(let N in Y)if(Object.prototype.hasOwnProperty.call(Y,N)){let U=N.toLowerCase();J[U]=Y[N],G.push(U)}G.sort();for(let N of G)F+=`
${N}:${decodeURIComponent(J[N])}`}return F}return{name:JG.storageSharedKeyCredentialPolicyName,async sendRequest(C,D){return Q(C),D(C)}}}});var ju=K((kZ)=>{Object.defineProperty(kZ,"__esModule",{value:!0});kZ.StorageBrowserPolicy=void 0;var H$A=L5(),w$A=BB(),Rz=QE(),M$A=HE();class qu extends H$A.BaseRequestPolicy{constructor(A,Q){super(A,Q)}async sendRequest(A){if(w$A.isNodeLike)return this._nextPolicy.sendRequest(A);if(A.method.toUpperCase()==="GET"||A.method.toUpperCase()==="HEAD")A.url=(0,M$A.setURLParameter)(A.url,Rz.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString());return A.headers.remove(Rz.HeaderConstants.COOKIE),A.headers.remove(Rz.HeaderConstants.CONTENT_LENGTH),this._nextPolicy.sendRequest(A)}}kZ.StorageBrowserPolicy=qu});var gz=K((GG)=>{Object.defineProperty(GG,"__esModule",{value:!0});GG.StorageBrowserPolicyFactory=GG.StorageBrowserPolicy=void 0;var Pu=ju();Object.defineProperty(GG,"StorageBrowserPolicy",{enumerable:!0,get:function(){return Pu.StorageBrowserPolicy}});class ku{create(A,Q){return new Pu.StorageBrowserPolicy(A,Q)}}GG.StorageBrowserPolicyFactory=ku});var fu=K((NG)=>{Object.defineProperty(NG,"__esModule",{value:!0});NG.storageCorrectContentLengthPolicyName=void 0;NG.storageCorrectContentLengthPolicy=g$A;var R$A=QE();NG.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function g$A(){function A(Q){if(Q.body&&(typeof Q.body==="string"||Buffer.isBuffer(Q.body))&&Q.body.length>0)Q.headers.set(R$A.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(Q.body))}return{name:NG.storageCorrectContentLengthPolicyName,async sendRequest(Q,B){return A(Q),B(Q)}}}});var WF=K((f0)=>{Object.defineProperty(f0,"__esModule",{value:!0});f0.Pipeline=f0.StorageOAuthScopes=void 0;f0.isPipelineLike=h$A;f0.newPipeline=S$A;f0.getCoreClientOptions=_$A;f0.getCredentialFromPipeline=vu;var yu=s2(),xu=AE(),hu=P0(),Su=nV(),Tz=lJ(),T$A=oJ(),O$A=z5(),_u=YF(),Oz=JF(),M5=QE();Object.defineProperty(f0,"StorageOAuthScopes",{enumerable:!0,get:function(){return M5.StorageOAuthScopes}});var q$A=Vz(),j$A=Ru(),P$A=Tu(),k$A=Mz(),f$A=gz(),x$A=fu();function h$A(A){if(!A||typeof A!=="object")return!1;let Q=A;return Array.isArray(Q.factories)&&typeof Q.options==="object"&&typeof Q.toServiceClientOptions==="function"}class qz{factories;options;constructor(A,Q={}){this.factories=A,this.options=Q}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}f0.Pipeline=qz;function S$A(A,Q={}){if(!A)A=new Oz.AnonymousCredential;let B=new qz([],Q);return B._credential=A,B}function y$A(A){let Q=[v$A,bu,b$A,u$A,m$A,d$A,l$A];if(A.factories.length){let B=A.factories.filter((E)=>{return!Q.some((I)=>I(E))});if(B.length){let E=B.some((I)=>c$A(I));return{wrappedPolicies:(0,yu.createRequestPolicyFactoryPolicy)(B),afterRetry:E}}}return}function _$A(A){let{httpClient:Q,...B}=A.options,E=A._coreHttpClient;if(!E)E=Q?(0,yu.convertHttpClient)(Q):(0,q$A.getCachedDefaultHttpClient)(),A._coreHttpClient=E;let I=A._corePipeline;if(!I){let C=`azsdk-js-azure-storage-blob/${M5.SDK_VERSION}`,D=B.userAgentOptions&&B.userAgentOptions.userAgentPrefix?`${B.userAgentOptions.userAgentPrefix} ${C}`:`${C}`;I=(0,hu.createClientPipeline)({...B,loggingOptions:{additionalAllowedHeaderNames:M5.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:M5.StorageBlobLoggingAllowedQueryParameters,logger:T$A.logger.info},userAgentOptions:{userAgentPrefix:D},serializationOptions:{stringifyXML:Su.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Su.parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}}),I.removePolicy({phase:"Retry"}),I.removePolicy({name:xu.decompressResponsePolicyName}),I.addPolicy((0,x$A.storageCorrectContentLengthPolicy)()),I.addPolicy((0,P$A.storageRetryPolicy)(B.retryOptions),{phase:"Retry"}),I.addPolicy((0,j$A.storageBrowserPolicy)());let F=y$A(A);if(F)I.addPolicy(F.wrappedPolicies,F.afterRetry?{afterPhase:"Retry"}:void 0);let Y=vu(A);if((0,Tz.isTokenCredential)(Y))I.addPolicy((0,xu.bearerTokenAuthenticationPolicy)({credential:Y,scopes:B.audience??M5.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:hu.authorizeRequestOnTenantChallenge}}),{phase:"Sign"});else if(Y instanceof _u.StorageSharedKeyCredential)I.addPolicy((0,k$A.storageSharedKeyCredentialPolicy)({accountName:Y.accountName,accountKey:Y.accountKey}),{phase:"Sign"});A._corePipeline=I}return{...B,allowInsecureConnection:!0,httpClient:E,pipeline:I}}function vu(A){if(A._credential)return A._credential;let Q=new Oz.AnonymousCredential;for(let B of A.factories)if((0,Tz.isTokenCredential)(B.credential))Q=B.credential;else if(bu(B))return B;return Q}function bu(A){if(A instanceof _u.StorageSharedKeyCredential)return!0;return A.constructor.name==="StorageSharedKeyCredential"}function v$A(A){if(A instanceof Oz.AnonymousCredential)return!0;return A.constructor.name==="AnonymousCredential"}function b$A(A){return(0,Tz.isTokenCredential)(A.credential)}fun Line truncated
`),C=Q.computeHMACSHA256(I);return{sasQueryParameters:new T1.SASQueryParameters(A.version,C,E,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType),stringToSign:I}}function TLA(A,Q){if(A=q1(A),!A.identifier&&!(A.permissions&&A.expiresOn))throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=M1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=R1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",O1(Q.accountName,A.containerName,A.blobName),A.identifier,A.ipRange?(0,g1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.cacheControl?A.cacheControl:"",A.contentDisposition?A.contentDisposition:"",A.contentEncoding?A.contentEncoding:"",A.contentLanguage?A.contentLanguage:"",A.contentType?A.contentType:""].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new T1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType),stringToSign:C}}function OLA(A,Q){if(A=q1(A),!A.identifier&&!(A.permissions&&A.expiresOn))throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=M1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=R1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",O1(Q.accountName,A.containerName,A.blobName),A.identifier,A.ipRange?(0,g1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.encryptionScope,A.cacheControl?A.cacheControl:"",A.contentDisposition?A.contentDisposition:"",A.contentEncoding?A.contentEncoding:"",A.contentLanguage?A.contentLanguage:"",A.contentType?A.contentType:""].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new T1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,void 0,void 0,void 0,A.encryptionScope),stringToSign:C}}function qLA(A,Q){if(A=q1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=M1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=R1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",O1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.ipRange?(0,g1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new T1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey),stringToSign:C}}function jLA(A,Q){if(A=q1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=M1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=R1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",O1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,A.ipRange?(0,g1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new T1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId),stringToSign:C}}function PLA(A,Q){if(A=q1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=M1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=R1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",O1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,A.ipRange?(0,g1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.encryptionScope,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new T1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId,A.encryptionScope),stringToSign:C}}function kLA(A,Q){if(A=q1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=M1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=R1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",O1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,void 0,void 0,A.ipRange?(0,g1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.encryptionScope,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new T1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId,A.encryptionScope),stringToSign:C}}function O1(A,Q,B){let E=[`/blob/${A}/${Q}`];if(B)E.push(`/${B}`);return E.join("")}function q1(A){let Q=A.version?A.version:qm.SERVICE_VERSION;if(A.snapshotTime&&Q<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(A.blobName===void 0&&A.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(A.versionId&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(A.blobName===void 0&&A.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(A.permissions&&A.permissions.setImmutabilityPolicy&&Q<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(A.permissions&&A.permissions.deleteVersion&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(A.permissions&&A.permissions.permanentDelete&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(A.permissions&&A.permissions.tag&&Q<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(Q<"2020-02-10"&&A.permissions&&(A.permissions.move||A.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(Q<"2021-04-10"&&A.permissions&&A.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(Q<"2020-02-10"&&(A.preauthorizedAgentObjectId||A.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(A.encryptionScope&&Q<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return A.version=Q,A}});var EW=K((BW)=>{Object.defineProperty(BW,"__esModule",{value:!0});BW.BlobLeaseClient=void 0;var fLA=BB(),h0=QE(),g5=w1(),QW=HE();class Pm{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(A,Q){let B=A.storageClientContext;if(this._url=A.url,A.name===void 0)this._isContainer=!0,this._containerOrBlobOperation=B.container;else this._isContainer=!1,this._containerOrBlobOperation=B.blob;if(!Q)Q=(0,fLA.randomUUID)();this._leaseId=Q}async acquireLease(A,Q={}){if(this._isContainer&&(Q.conditions?.ifMatch&&Q.conditions?.ifMatch!==h0.ETagNone||Q.conditions?.ifNoneMatch&&Q.conditions?.ifNoneMatch!==h0.ETagNone||Q.conditions?.tagConditions))throw 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 g5.tracingClient.withSpan("BlobLeaseClient-acquireLease",Q,async(B)=>{return(0,QW.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:Q.abortSignal,duration:A,modifiedAccessConditions:{...Q.conditions,ifTags:Q.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:B.tracingOptions}))})}async changeLease(A,Q={}){if(this._isContainer&&(Q.conditions?.ifMatch&&Q.conditions?.ifMatch!==h0.ETagNone||Q.conditions?.ifNoneMatch&&Q.conditions?.ifNoneMatch!==h0.ETagNone||Q.conditions?.tagConditions))throw 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 g5.tracingClient.withSpan("BlobLeaseClient-changeLease",Q,async(B)=>{let E=(0,QW.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,A,{abortSignal:Q.abortSignal,modifiedAccessConditions:{...Q.conditions,ifTags:Q.conditions?.tagConditions},tracingOptions:B.tracingOptions}));return this._leaseId=A,E})}async releaseLease(A={}){if(this._isContainer&&(A.conditions?.ifMatch&&A.conditions?.ifMatch!==h0.ETagNone||A.conditions?.ifNoneMatch&&A.conditions?.ifNoneMatch!==h0.ETagNone||A.conditions?.tagConditions))throw 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 g5.tracingClient.withSpan("BlobLeaseClient-releaseLease",A,async(Q)=>{return(0,QW.assertResponse)(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:A.abortSignal,modifiedAccessConditions:{...A.conditions,ifTags:A.conditions?.tagConditions},tracingOptions:Q.tracingOptions}))})}async renewLease(A={}){if(this._isContainer&&(A.conditions?.ifMatch&&A.conditions?.ifMatch!==h0.ETagNone||A.conditions?.ifNoneMatch&&A.conditions?.ifNoneMatch!==h0.ETagNon Line truncated
Polling from: ${B.config.operationLocation}
Operation status: ${G}
Polling status: ${Fd.terminalStates.includes(G)?"Stopped":"Running"}`),G==="succeeded"){let N=D(J,B);if(N!==void 0)return{response:await Q(N).catch(Dd({state:B,stateProxy:E,isOperationError:F})),status:G}}return{response:J,status:G}}async function CVA(A){let{poll:Q,state:B,stateProxy:E,options:I,getOperationStatus:C,getResourceLocation:D,getOperationLocation:F,isOperationError:Y,withOperationLocation:J,getPollingInterval:G,processResult:N,getError:U,updateState:Z,setDelay:X,isDone:$,setErrorAsResult:V}=A,{operationLocation:w}=B.config;if(w!==void 0){let{response:g,status:M}=await IVA({poll:Q,getOperationStatus:C,state:B,stateProxy:E,operationLocation:w,getResourceLocation:D,isOperationError:Y,options:I});if(Yd({status:M,response:g,state:B,stateProxy:E,isDone:$,processResult:N,getError:U,setErrorAsResult:V}),!Fd.terminalStates.includes(M)){let k=G===null||G===void 0?void 0:G(g);if(k)X(k);let d=F===null||F===void 0?void 0:F(g,B);if(d!==void 0){let t=w!==d;B.config.operationLocation=d,J===null||J===void 0||J(d,t)}else J===null||J===void 0||J(w,!1)}Z===null||Z===void 0||Z(B,g)}}zF.pollOperation=CVA});var nz=K((uB)=>{Object.defineProperty(uB,"__esModule",{value:!0});uB.pollHttpOperation=uB.isOperationError=uB.getResourceLocation=uB.getOperationStatus=uB.getOperationLocation=uB.initHttpOperation=uB.getStatusFromInitialResponse=uB.getErrorFromResponse=uB.parseRetryAfter=uB.inferLroMode=void 0;var Jd=WW(),lz=UW();function Gd(A){let{azureAsyncOperation:Q,operationLocation:B}=A;return B!==null&&B!==void 0?B:Q}function Nd(A){return A.headers.location}function Ud(A){return A.headers["operation-location"]}function Zd(A){return A.headers["azure-asyncoperation"]}function DVA(A){var Q;let{location:B,requestMethod:E,requestPath:I,resourceLocationConfig:C}=A;switch(E){case"PUT":return I;case"DELETE":return;case"PATCH":return(Q=D())!==null&&Q!==void 0?Q:I;default:return D()}function D(){switch(C){case"azure-async-operation":return;case"original-uri":return I;case"location":default:return B}}}function Wd(A){let{rawResponse:Q,requestMethod:B,requestPath:E,resourceLocationConfig:I}=A,C=Ud(Q),D=Zd(Q),F=Gd({operationLocation:C,azureAsyncOperation:D}),Y=Nd(Q),J=B===null||B===void 0?void 0:B.toLocaleUpperCase();if(F!==void 0)return{mode:"OperationLocation",operationLocation:F,resourceLocation:DVA({requestMethod:J,location:Y,requestPath:E,resourceLocationConfig:I})};else if(Y!==void 0)return{mode:"ResourceLocation",operationLocation:Y};else if(J==="PUT"&&E)return{mode:"Body",operationLocation:E};else return}uB.inferLroMode=Wd;function Xd(A){let{status:Q,statusCode:B}=A;if(typeof Q!=="string"&&Q!==void 0)throw Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${Q}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(Q===null||Q===void 0?void 0:Q.toLocaleLowerCase()){case void 0:return pz(B);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return lz.logger.verbose(`LRO: unrecognized operation status: ${Q}`),Q}}function FVA(A){var Q;let{status:B}=(Q=A.body)!==null&&Q!==void 0?Q:{};return Xd({status:B,statusCode:A.statusCode})}function YVA(A){var Q,B;let{properties:E,provisioningState:I}=(Q=A.body)!==null&&Q!==void 0?Q:{},C=(B=E===null||E===void 0?void 0:E.provisioningState)!==null&&B!==void 0?B:I;return Xd({status:C,statusCode:A.statusCode})}function pz(A){if(A===202)return"running";else if(A<300)return"succeeded";else return"failed"}function $d({rawResponse:A}){let Q=A.headers["retry-after"];if(Q!==void 0){let B=parseInt(Q);return isNaN(B)?JVA(new Date(Q)):B*1000}return}uB.parseRetryAfter=$d;function Kd(A){let Q=zd(A,"error");if(!Q){lz.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!Q.code||!Q.message){lz.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return Q}uB.getErrorFromResponse=Kd;function JVA(A){let Q=Math.floor(new Date().getTime()),B=A.getTime();if(Q<B)return B-Q;return}function Ld(A){let{response:Q,state:B,operationLocation:E}=A;function I(){var D;switch((D=B.config.metadata)===null||D===void 0?void 0:D.mode){case void 0:return pz(Q.rawResponse.statusCode);case"Body":return iz(Q,B);default:return"running"}}let C=I();return C==="running"&&E===void 0?"succeeded":C}uB.getStatusFromInitialResponse=Ld;async function GVA(A){let{stateProxy:Q,resourceLocationConfig:B,processResult:E,lro:I,setErrorAsResult:C}=A;return(0,Jd.initOperation)({init:async()=>{let D=await I.sendInitialRequest(),F=Wd({rawResponse:D.rawResponse,requestPath:I.requestPath,requestMethod:I.requestMethod,resourceLocationConfig:B});return Object.assign({response:D,operationLocation:F===null||F===void 0?void 0:FLine truncated
`);else D=[Q.accountName,E,I,C,A.startsOn?(0,rW.truncatedISO8061Date)(A.startsOn,!1):"",(0,rW.truncatedISO8061Date)(A.expiresOn,!1),A.ipRange?(0,Dc.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",B,""].join(`
`);let F=Q.computeHMACSHA256(D);return{sasQueryParameters:new LzA.SASQueryParameters(B,F,E.toString(),I,C,A.protocol,A.startsOn,A.expiresOn,A.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,A.encryptionScope),stringToSign:D}}});var Uc=K((BX)=>{Object.defineProperty(BX,"__esModule",{value:!0});BX.BlobServiceClient=void 0;var HzA=lJ(),wzA=AE(),Yc=BB(),j5=WF(),MzA=JH(),eW=HE(),AX=YF(),WH=JF(),u0=HE(),m0=w1(),RzA=uW(),gzA=cZ(),Jc=nW(),Gc=ZH(),Nc=oW();class QX extends gzA.StorageClient{serviceContext;static fromConnectionString(A,Q){Q=Q||{};let B=(0,eW.extractConnectionStringParts)(A);if(B.kind==="AccountConnString")if(Yc.isNodeLike){let E=new AX.StorageSharedKeyCredential(B.accountName,B.accountKey);if(!Q.proxyOptions)Q.proxyOptions=(0,wzA.getDefaultProxySettings)(B.proxyUri);let I=(0,j5.newPipeline)(E,Q);return new QX(B.url,I)}else throw Error("Account connection string is only supported in Node.js environment");else if(B.kind==="SASConnString"){let E=(0,j5.newPipeline)(new WH.AnonymousCredential,Q);return new QX(B.url+"?"+B.accountSas,E)}else throw Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(A,Q,B){let E;if((0,j5.isPipelineLike)(Q))E=Q;else if(Yc.isNodeLike&&Q instanceof AX.StorageSharedKeyCredential||Q instanceof WH.AnonymousCredential||(0,HzA.isTokenCredential)(Q))E=(0,j5.newPipeline)(Q,B);else E=(0,j5.newPipeline)(new WH.AnonymousCredential,B);super(A,E);this.serviceContext=this.storageClientContext.service}getContainerClient(A){return new MzA.ContainerClient((0,eW.appendToURLPath)(this.url,encodeURIComponent(A)),this.pipeline)}async createContainer(A,Q={}){return m0.tracingClient.withSpan("BlobServiceClient-createContainer",Q,async(B)=>{let E=this.getContainerClient(A),I=await E.create(B);return{containerClient:E,containerCreateResponse:I}})}async deleteContainer(A,Q={}){return m0.tracingClient.withSpan("BlobServiceClient-deleteContainer",Q,async(B)=>{return this.getContainerClient(A).delete(B)})}async undeleteContainer(A,Q,B={}){return m0.tracingClient.withSpan("BlobServiceClient-undeleteContainer",B,async(E)=>{let I=this.getContainerClient(B.destinationContainerName||A),C=I.storageClientContext.container,D=(0,u0.assertResponse)(await C.restore({deletedContainerName:A,deletedContainerVersion:Q,tracingOptions:E.tracingOptions}));return{containerClient:I,containerUndeleteResponse:D}})}async getProperties(A={}){return m0.tracingClient.withSpan("BlobServiceClient-getProperties",A,async(Q)=>{return(0,u0.assertResponse)(await this.serviceContext.getProperties({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async setProperties(A,Q={}){return m0.tracingClient.withSpan("BlobServiceClient-setProperties",Q,async(B)=>{return(0,u0.assertResponse)(await this.serviceContext.setProperties(A,{abortSignal:Q.abortSignal,tracingOptions:B.tracingOptions}))})}async getStatistics(A={}){return m0.tracingClient.withSpan("BlobServiceClient-getStatistics",A,async(Q)=>{return(0,u0.assertResponse)(await this.serviceContext.getStatistics({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async getAccountInfo(A={}){return m0.tracingClient.withSpan("BlobServiceClient-getAccountInfo",A,async(Q)=>{return(0,u0.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async listContainersSegment(A,Q={}){return m0.tracingClient.withSpan("BlobServiceClient-listContainersSegment",Q,async(B)=>{return(0,u0.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:Q.abortSignal,marker:A,...Q,include:typeof Q.include==="string"?[Q.include]:Q.include,tracingOptions:B.tracingOptions}))})}async findBlobsByTagsSegment(A,Q,B={}){return m0.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",B,async(E)=>{let I=(0,u0.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:B.abortSignal,where:A,marker:Q,maxPageSize:B.maxPageSize,tracingOptions:E.tracingOptions}));return{...I,_response:I._response,blobs:I.blobs.map((D)=>{let F="";if(D.tags?.blobTagSet.length===1)F=D.tags.blobTagSet[0].value;return{...D,tags:(0,eW.toTags)(D.tags),tagValue:F}})}})}async*findBlobsByTagsSegments(A,Q,B={}){let E;if(!!Q||Q===void 0)do E=await this.findBlobsByTagsSegment(A,Q,B),E.blobs=E.blobs||[],Q=E.continuationToken,yield E;while(Q)}async*findBlobsByTagsItems(A,Q={}){let B;for await(let E of this.findBlobsByTagsSegments(A,B,Q))yield*E.blobs}findBlobsByTags(A,Q={}){let B={...Q},E=this.findBlobsByTagsItems(A,B);return{next(){return E.next()},[Symbol.asyncIterator](){return this},byPage:(I={})=>{return this.findBlobsByTagsSegments(A,I.continuationToken,{maxPageSize:I.maxPageSize,...B})}}}async*listSegments(A,Q={}){let B;if(!!A||A===void 0)do B=await this.listContainersSegment(A,Q),B.containerItems=B.containerItems||[],A=B.continuationToken,yield await B;while(A)}async*listItems(A={}){let Q;for await(let B of this.listSegments(Q,A))yield*B.containerIte 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(Q);this.code=A,this.name="NetworkError"}}_I.NetworkError=$H;$H.isNetworkErrorCode=(A)=>{if(!A)return!1;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(A)};class KH extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`);this.name="UsageError"}}_I.UsageError=KH;KH.isUsageErrorMessage=(A)=>{if(!A)return!1;return A.includes("insufficient usage")}});var Hc=K((vI)=>{var kzA=vI&&vI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),fzA=vI&&vI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),xzA=vI&&vI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))kzA(Q,A,B)}return fzA(Q,A),Q},hzA=vI&&vI.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(vI,"__esModule",{value:!0});vI.uploadCacheArchiveSDK=vI.UploadProgress=void 0;var VH=xzA(yB()),SzA=XH(),yzA=LH();class zH{constructor(A){this.contentLength=A,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(A){this.sentBytes=A}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let A=this.sentBytes,Q=(100*(A/this.contentLength)).toFixed(1),B=Date.now()-this.startTime,E=(A/1048576/(B/1000)).toFixed(1);if(VH.info(`Sent ${A} of ${this.contentLength} (${Q}%), ${E} MBs/sec`),this.isDone())this.displayedComplete=!0}onProgress(){return(A)=>{this.setSentBytes(A.loadedBytes)}}startDisplayTimer(A=1000){let Q=()=>{if(this.display(),!this.isDone())this.timeoutHandle=setTimeout(Q,A)};this.timeoutHandle=setTimeout(Q,A)}stopDisplayTimer(){if(this.timeoutHandle)clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0;this.display()}}vI.UploadProgress=zH;function _zA(A,Q,B){var E;return hzA(this,void 0,void 0,function*(){let I=new SzA.BlobClient(A),C=I.getBlockBlobClient(),D=new zH((E=B===null||B===void 0?void 0:B.archiveSizeBytes)!==null&&E!==void 0?E:0),F={blockSize:B===null||B===void 0?void 0:B.uploadChunkSize,concurrency:B===null||B===void 0?void 0:B.uploadConcurrency,maxSingleShotSize:134217728,onProgress:D.onProgress()};try{D.startDisplayTimer(),VH.debug(`BlobClient: ${I.name}:${I.accountName}:${I.containerName}`);let Y=yield C.uploadFile(Q,F);if(Y._response.status>=400)throw new yzA.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${Y._response.status}`);return Y}catch(Y){throw VH.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${Y.message}`),Y}finally{D.stopDisplayTimer()}})}vI.uploadCacheArchiveSDK=_zA});var wH=K((mB)=>{var vzA=mB&&mB.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),bzA=mB&&mB.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),uzA=mB&&mB.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))vzA(Q,A,B)}return bzA(Q,A),Q},FX=mB&&mB.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(mB,"__esModule",{value:!0});mB.retryHttpClientResponse=mB.retryTypedResponse=mB.retry=mB.isRetryableStatusCode=mB.isServerErrorStatusCode=mB.isSuccessStatusCode=void 0;var wc=uzA(yB()),DX=JD(),MG=j9();function mzA(A){if(!A)return!1;return A>=200&&A<300}mB.isSuccessStatusCode=mzA;function Mc(A){if(!A)return!0;return A>=500}mB.isServerErrorStatusCode=Mc;function Rc(A){if(!A)return!1;return[DX.HttpCodes.BadGateway,DX.HttpCodes.ServiceUnavailable,DX.HttpCodes.GatewayTimeout].includes(A)}mB.isRetryableStatusCode=Rc;function dzA(A){return FX(this,void 0,void 0,function*(){return new Promise((Q)=>setTimeout(Q,A))})}function HH(A,Q,B,E=MG.DefaultRetryAttempts,I=MG.DefaultRetryDelay,C=void 0){return FX(this,void 0,void 0,function*(){let D="",F=1;while(F<=E){let Y=void 0,J=void 0,G=!1;try{Y=yield Q()}catch(N){if(C)Y=C(N);G=!0,D=N.message}if(Y){if(J=B(Y),!Mc(J))ret Line truncated
Other caches with similar key:`);for(let F of(C===null||C===void 0?void 0:C.artifactCaches)||[])EC.debug(`Cache Key: ${F===null||F===void 0?void 0:F.cacheKey}, Cache Version: ${F===null||F===void 0?void 0:F.cacheVersion}, Cache Scope: ${F===null||F===void 0?void 0:F.scope}, Cache Created: ${F===null||F===void 0?void 0:F.creationTime}`)}}})}function gHA(A,Q,B){return bI(this,void 0,void 0,function*(){let E=new KHA.URL(A),I=(0,OH.getDownloadOptions)(B);if(E.hostname.endsWith(".blob.core.windows.net"))if(I.useAzureSdk)yield(0,UX.downloadCacheStorageSDK)(A,Q,I);else if(I.concurrentBlobDownloads)yield(0,UX.downloadCacheHttpClientConcurrent)(A,Q,I);else yield(0,UX.downloadCacheHttpClient)(A,Q);else yield(0,UX.downloadCacheHttpClient)(A,Q)})}TE.downloadCache=gHA;function THA(A,Q,B){return bI(this,void 0,void 0,function*(){let E=qH(),I=TG.getCacheVersion(Q,B===null||B===void 0?void 0:B.compressionMethod,B===null||B===void 0?void 0:B.enableCrossOsArchive),C={key:A,version:I,cacheSize:B===null||B===void 0?void 0:B.cacheSize};return yield(0,RF.retryTypedResponse)("reserveCache",()=>bI(this,void 0,void 0,function*(){return E.postJson(h5("caches"),C)}))})}TE.reserveCache=THA;function vc(A,Q){return`bytes ${A}-${Q}/*`}function OHA(A,Q,B,E,I){return bI(this,void 0,void 0,function*(){EC.debug(`Uploading chunk of size ${I-E+1} bytes at offset ${E} with content range: ${vc(E,I)}`);let C={"Content-Type":"application/octet-stream","Content-Range":vc(E,I)},D=yield(0,RF.retryHttpClientResponse)(`uploadChunk (start: ${E}, end: ${I})`,()=>bI(this,void 0,void 0,function*(){return A.sendStream("PATCH",Q,B(),C)}));if(!(0,RF.isSuccessStatusCode)(D.message.statusCode))throw Error(`Cache service responded with ${D.message.statusCode} during upload chunk.`)})}function qHA(A,Q,B,E){return bI(this,void 0,void 0,function*(){let I=TG.getArchiveFileSizeInBytes(B),C=h5(`caches/${Q.toString()}`),D=gH.openSync(B,"r"),F=(0,OH.getUploadOptions)(E),Y=TG.assertDefined("uploadConcurrency",F.uploadConcurrency),J=TG.assertDefined("uploadChunkSize",F.uploadChunkSize),G=[...Array(Y).keys()];EC.debug("Awaiting all uploads");let N=0;try{yield Promise.all(G.map(()=>bI(this,void 0,void 0,function*(){while(N<I){let U=Math.min(I-N,J),Z=N,X=N+U-1;N+=J,yield OHA(A,C,()=>gH.createReadStream(B,{fd:D,start:Z,end:X,autoClose:!1}).on("error",($)=>{throw Error(`Cache upload failed because file read failed with ${$.message}`)}),Z,X)}})))}finally{gH.closeSync(D)}return})}function jHA(A,Q,B){return bI(this,void 0,void 0,function*(){let E={size:B};return yield(0,RF.retryTypedResponse)("commitCache",()=>bI(this,void 0,void 0,function*(){return A.postJson(h5(`caches/${Q.toString()}`),E)}))})}function PHA(A,Q,B,E){return bI(this,void 0,void 0,function*(){if((0,OH.getUploadOptions)(E).useAzureSdk){if(!B)throw Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,LHA.uploadCacheArchiveSDK)(B,Q,E)}else{let C=qH();EC.debug("Upload cache"),yield qHA(C,A,Q,E),EC.debug("Commiting cache");let D=TG.getArchiveFileSizeInBytes(Q);EC.info(`Cache Size: ~${Math.round(D/1048576)} MB (${D} B)`);let F=yield jHA(C,A,D);if(!(0,RF.isSuccessStatusCode)(F.statusCode))throw Error(`Cache service responded with ${F.statusCode} during commit cache.`);EC.info("Cache saved successfully")}})}TE.saveCache=PHA});var ZX=K((OG)=>{Object.defineProperty(OG,"__esModule",{value:!0});OG.isJsonObject=OG.typeofJsonValue=void 0;function kHA(A){let Q=typeof A;if(Q=="object"){if(Array.isArray(A))return"array";if(A===null)return"null"}return Q}OG.typeofJsonValue=kHA;function fHA(A){return A!==null&&typeof A=="object"&&!Array.isArray(A)}OG.isJsonObject=fHA});var XX=K((qG)=>{Object.defineProperty(qG,"__esModule",{value:!0});qG.base64encode=qG.base64decode=void 0;var VD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),WX=[];for(let A=0;A<VD.length;A++)WX[VD[A].charCodeAt(0)]=A;WX[45]=VD.indexOf("+");WX[95]=VD.indexOf("/");function xHA(A){let Q=A.length*3/4;if(A[A.length-2]=="=")Q-=2;else if(A[A.length-1]=="=")Q-=1;let B=new Uint8Array(Q),E=0,I=0,C,D=0;for(let F=0;F<A.length;F++){if(C=WX[A.charCodeAt(F)],C===void 0)switch(A[F]){case"=":I=0;case`
`:case"\r":case"\t":case" ":continue;default:throw Error("invalid base64 string.")}switch(I){case 0:D=C,I=1;break;case 1:B[E++]=D<<2|(C&48)>>4,D=C,I=2;break;case 2:B[E++]=(D&15)<<4|(C&60)>>2,D=C,I=3;break;case 3:B[E++]=(D&3)<<6|C,I=0;break}}if(I==1)throw Error("invalid base64 string.");return B.subarray(0,E)}qG.base64decode=xHA;function hHA(A){let Q="",B=0,E,I=0;for(let C=0;C<A.length;C++)switch(E=A[C],B){case 0:Q+=VD[E>>2],I=(E&3)<<4,B=1;break;case 1:Q+=VD[I|E>>4],I=(E&15)<<2,B=2;break;case 2:Q+=VD[I|E>>6],Q+=VD[E&63],B=0;break}if(B){if(Q+=VD[I],Q+="=",B==1)Q+="="}return Q}qG.base64encode=hHA});var uc=K(($X)=>{Object.defineProperty($X,"__esModule",{value:!0});$X.utf8read=void 0;var jH=(A)=>String.fromCharCode.apply(String,A);function SHA(A){if(A.length<1)return"";let Q=0,B=[],E=[],I=0,C,D=A.length;while(Q<D){if(C=A[Q++],C<128)E[I++]=C;else if(C>191&&C<224)E[I++]=(C&31)<<6|A[Q++]&63;else if(C>239&&C<365)C=((C&7)<<18|(A[Q++]&63)<<12|(A[Q++]&63)<<6|A[Q++]&63)-65536,E[I++]=55296+(C>>10),E[I++]=56320+(C&1023);else E[I++]=(C&15)<<12|(A[Q++]&63)<<6|A[Q++]&63;if(I>8191)B.push(jH(E)),I=0}if(B.length){if(I)B.push(jH(E.slice(0,I)));return B.join("")}return jH(E.slice(0,I))}$X.utf8read=SHA});var S5=K((d0)=>{Object.defineProperty(d0,"__esModule",{value:!0});d0.WireType=d0.mergeBinaryOptions=d0.UnknownFieldHandler=void 0;var yHA;(function(A){A.symbol=Symbol.for("protobuf-ts/unknown"),A.onRead=(B,E,I,C,D)=>{(Q(E)?E[A.symbol]:E[A.symbol]=[]).push({no:I,wireType:C,data:D})},A.onWrite=(B,E,I)=>{for(let{no:C,wireType:D,data:F}of A.list(E))I.tag(C,D).raw(F)},A.list=(B,E)=>{if(Q(B)){let I=B[A.symbol];return E?I.filter((C)=>C.no==E):I}return[]},A.last=(B,E)=>A.list(B,E).slice(-1)[0];let Q=(B)=>B&&Array.isArray(B[A.symbol])})(yHA=d0.UnknownFieldHandler||(d0.UnknownFieldHandler={}));function _HA(A,Q){return Object.assign(Object.assign({},A),Q)}d0.mergeBinaryOptions=_HA;var vHA;(function(A){A[A.Varint=0]="Varint",A[A.Bit64=1]="Bit64",A[A.LengthDelimited=2]="LengthDelimited",A[A.StartGroup=3]="StartGroup",A[A.EndGroup=4]="EndGroup",A[A.Bit32=5]="Bit32"})(vHA=d0.WireType||(d0.WireType={}))});var LX=K((uI)=>{Object.defineProperty(uI,"__esModule",{value:!0});uI.varint32read=uI.varint32write=uI.int64toString=uI.int64fromString=uI.varint64write=uI.varint64read=void 0;function bHA(){let A=0,Q=0;for(let E=0;E<28;E+=7){let I=this.buf[this.pos++];if(A|=(I&127)<<E,(I&128)==0)return this.assertBounds(),[A,Q]}let B=this.buf[this.pos++];if(A|=(B&15)<<28,Q=(B&112)>>4,(B&128)==0)return this.assertBounds(),[A,Q];for(let E=3;E<=31;E+=7){let I=this.buf[this.pos++];if(Q|=(I&127)<<E,(I&128)==0)return this.assertBounds(),[A,Q]}throw Error("invalid varint")}uI.varint64read=bHA;function uHA(A,Q,B){for(let C=0;C<28;C=C+7){let D=A>>>C,F=!(D>>>7==0&&Q==0),Y=(F?D|128:D)&255;if(B.push(Y),!F)return}let E=A>>>28&15|(Q&7)<<4,I=Q>>3!=0;if(B.push((I?E|128:E)&255),!I)return;for(let C=3;C<31;C=C+7){let D=Q>>>C,F=D>>>7!=0,Y=(F?D|128:D)&255;if(B.push(Y),!F)return}B.push(Q>>>31&1)}uI.varint64write=uHA;var KX=4294967296;function mHA(A){let Q=A[0]=="-";if(Q)A=A.slice(1);let B=1e6,E=0,I=0;function C(D,F){let Y=Number(A.slice(D,F));if(I*=B,E=E*B+Y,E>=KX)I=I+(E/KX|0),E=E%KX}return C(-24,-18),C(-18,-12),C(-12,-6),C(-6),[Q,E,I]}uI.int64fromString=mHA;function dHA(A,Q){if(Q>>>0<=2097151)return""+(KX*Q+(A>>>0));let B=A&16777215,E=(A>>>24|Q<<8)>>>0&16777215,I=Q>>16&65535,C=B+E*6777216+I*6710656,D=E+I*8147497,F=I*2,Y=1e7;if(C>=Y)D+=Math.floor(C/Y),C%=Y;if(D>=Y)F+=Math.floor(D/Y),D%=Y;function J(G,N){let U=G?String(G):"";if(N)return"0000000".slice(U.length)+U;return U}return J(F,0)+J(D,F)+J(C,1)}uI.int64toString=dHA;function cHA(A,Q){if(A>=0){while(A>127)Q.push(A&127|128),A=A>>>7;Q.push(A)}else{for(let B=0;B<9;B++)Q.push(A&127|128),A=A>>7;Q.push(1)}}uI.varint32write=cHA;function lHA(){let A=this.buf[this.pos++],Q=A&127;if((A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<7,(A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<14,(A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<21,(A&128)==0)return this.assertBounds(),Q;A=this.buf[this.pos++],Q|=(A&15)<<28;for(let B=5;(A&128)!==0&&B<10;B++)A=this.buf[this.pos++];if((A&128)!=0)throw Error("invalid varint");return this.assertBounds(),Q>>>0}uI.varint32read=lHA});var TF=K((gF)=>{Object.defineProperty(gF,"__esModule",{value:!0});gF.PbLong=gF.PbULong=gF.detectBi=void 0;var y5=LX(),EB;function mc(){let A=new DataView(new ArrayBuffer(8));EB=globalThis.BigInt!==void 0&&typeof A.getBigInt64==="function"&&typeof A.getBigUint64==="function"&&typeof A.setBigInt64==="function"&&typeof A.setBigUint64==="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:A}:void 0}gF.detectBi=mc;mc();function dc(A){if(!A)throw Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var cc=/^-?[0-9]+$/,zX=4294967296,VX=2147483648;class PH{ Line truncated
`)}}dX.RpcError=Tl});var eH=K((lX)=>{Object.defineProperty(lX,"__esModule",{value:!0});lX.mergeRpcOptions=void 0;var Ol=oB();function UMA(A,Q){if(!Q)return A;let B={};cX(A,B),cX(Q,B);for(let E of Object.keys(Q)){let I=Q[E];switch(E){case"jsonOptions":B.jsonOptions=Ol.mergeJsonOptions(A.jsonOptions,B.jsonOptions);break;case"binaryOptions":B.binaryOptions=Ol.mergeBinaryOptions(A.binaryOptions,B.binaryOptions);break;case"meta":B.meta={},cX(A.meta,B.meta),cX(Q.meta,B.meta);break;case"interceptors":B.interceptors=A.interceptors?A.interceptors.concat(I):I.concat();break}}return B}lX.mergeRpcOptions=UMA;function cX(A,Q){if(!A)return;let B=Q;for(let[E,I]of Object.entries(A))if(I instanceof Date)B[E]=new Date(I.getTime());else if(Array.isArray(I))B[E]=I.concat();else B[E]=I}});var Aw=K((S1)=>{Object.defineProperty(S1,"__esModule",{value:!0});S1.Deferred=S1.DeferredState=void 0;var p0;(function(A){A[A.PENDING=0]="PENDING",A[A.REJECTED=1]="REJECTED",A[A.RESOLVED=2]="RESOLVED"})(p0=S1.DeferredState||(S1.DeferredState={}));class ql{constructor(A=!0){if(this._state=p0.PENDING,this._promise=new Promise((Q,B)=>{this._resolve=Q,this._reject=B}),A)this._promise.catch((Q)=>{})}get state(){return this._state}get promise(){return this._promise}resolve(A){if(this.state!==p0.PENDING)throw Error(`cannot resolve ${p0[this.state].toLowerCase()}`);this._resolve(A),this._state=p0.RESOLVED}reject(A){if(this.state!==p0.PENDING)throw Error(`cannot reject ${p0[this.state].toLowerCase()}`);this._reject(A),this._state=p0.REJECTED}resolvePending(A){if(this._state===p0.PENDING)this.resolve(A)}rejectPending(A){if(this._state===p0.PENDING)this.reject(A)}}S1.Deferred=ql});var Qw=K((pX)=>{Object.defineProperty(pX,"__esModule",{value:!0});pX.RpcOutputStreamController=void 0;var jl=Aw(),y1=oB();class Pl{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(A){return this.addLis(A,this._lis.nxt)}onMessage(A){return this.addLis(A,this._lis.msg)}onError(A){return this.addLis(A,this._lis.err)}onComplete(A){return this.addLis(A,this._lis.cmp)}addLis(A,Q){return Q.push(A),()=>{let B=Q.indexOf(A);if(B>=0)Q.splice(B,1)}}clearLis(){for(let A of Object.values(this._lis))A.splice(0,A.length)}get closed(){return this._closed!==!1}notifyNext(A,Q,B){if(y1.assert((A?1:0)+(Q?1:0)+(B?1:0)<=1,"only one emission at a time"),A)this.notifyMessage(A);if(Q)this.notifyError(Q);if(B)this.notifyComplete()}notifyMessage(A){y1.assert(!this.closed,"stream is closed"),this.pushIt({value:A,done:!1}),this._lis.msg.forEach((Q)=>Q(A)),this._lis.nxt.forEach((Q)=>Q(A,void 0,!1))}notifyError(A){y1.assert(!this.closed,"stream is closed"),this._closed=A,this.pushIt(A),this._lis.err.forEach((Q)=>Q(A)),this._lis.nxt.forEach((Q)=>Q(void 0,A,!1)),this.clearLis()}notifyComplete(){y1.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach((A)=>A()),this._lis.nxt.forEach((A)=>A(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){if(this._closed===!0)this.pushIt({value:null,done:!0});else if(this._closed!==!1)this.pushIt(this._closed);return{next:()=>{let A=this._itState;y1.assert(A,"bad state"),y1.assert(!A.p,"iterator contract broken");let Q=A.q.shift();if(Q)return"value"in Q?Promise.resolve(Q):Promise.reject(Q);return A.p=new jl.Deferred,A.p.promise}}}pushIt(A){let Q=this._itState;if(Q.p){let B=Q.p;y1.assert(B.state==jl.DeferredState.PENDING,"iterator contract broken"),"value"in A?B.resolve(A):B.reject(A),delete Q.p}else Q.q.push(A)}}pX.RpcOutputStreamController=Pl});var Bw=K((SG)=>{var ZMA=SG&&SG.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(SG,"__esModule",{value:!0});SG.UnaryCall=void 0;class kl{constructor(A,Q,B,E,I,C,D){this.method=A,this.requestHeaders=Q,this.request=B,this.headers=E,this.response=I,this.status=C,this.trailers=D}then(A,Q){return this.promiseFinished().then((B)=>A?Promise.resolve(A(B)):B,(B)=>Q?Promise.resolve(Q(B)):Promise.reject(B))}promiseFinished(){return ZMA(this,void 0,void 0,function*(){let[A,Q,B,E]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:A,response:Q,status:B,trailers:E}})}}SG.UnaryCall=kl});var Ew=K((yG)=>{var WMA=yG&&yG.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(yG,"__esModule",{value:!0});yG.ServerStreamingCall=void 0;class fl{constructor(A,Q,B,E,I,C,D){this.me Line truncated
`));let E=yield Nw(B,"create");yield Uw(E,A)})}sE.createTar=YRA});var Wp=K((pB)=>{var JRA=pB&&pB.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),GRA=pB&&pB.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),o5=pB&&pB.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))JRA(Q,A,B)}return GRA(Q,A),Q},sG=pB&&pB.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(pB,"__esModule",{value:!0});pB.saveCache=pB.restoreCache=pB.isFeatureAvailable=pB.FinalizeCacheError=pB.ReserveCacheError=pB.ValidationError=void 0;var sA=o5(yB()),eX=o5(require("path")),qB=o5(QJ()),aG=o5(bc()),Up=o5(Yp()),A6=GX(),PF=Np(),Q6=JD();class yC extends Error{constructor(A){super(A);this.name="ValidationError",Object.setPrototypeOf(this,yC.prototype)}}pB.ValidationError=yC;class _1 extends Error{constructor(A){super(A);this.name="ReserveCacheError",Object.setPrototypeOf(this,_1.prototype)}}pB.ReserveCacheError=_1;class s5 extends Error{constructor(A){super(A);this.name="FinalizeCacheError",Object.setPrototypeOf(this,s5.prototype)}}pB.FinalizeCacheError=s5;function Zp(A){if(!A||A.length===0)throw new yC("Path Validation Error: At least one directory or file path is required")}function Zw(A){if(A.length>512)throw new yC(`Key Validation Error: ${A} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(A))throw new yC(`Key Validation Error: ${A} cannot contain commas.`)}function NRA(){switch((0,A6.getCacheServiceVersion)()){case"v2":return!!process.env.ACTIONS_RESULTS_URL;case"v1":default:return!!process.env.ACTIONS_CACHE_URL}}pB.isFeatureAvailable=NRA;function URA(A,Q,B,E,I=!1){return sG(this,void 0,void 0,function*(){let C=(0,A6.getCacheServiceVersion)();switch(sA.debug(`Cache service version: ${C}`),Zp(A),C){case"v2":return yield WRA(A,Q,B,E,I);case"v1":default:return yield ZRA(A,Q,B,E,I)}})}pB.restoreCache=URA;function ZRA(A,Q,B,E,I=!1){return sG(this,void 0,void 0,function*(){B=B||[];let C=[Q,...B];if(sA.debug("Resolved Keys:"),sA.debug(JSON.stringify(C)),C.length>10)throw new yC("Key Validation Error: Keys are limited to a maximum of 10.");for(let Y of C)Zw(Y);let D=yield qB.getCompressionMethod(),F="";try{let Y=yield aG.getCacheEntry(C,A,{compressionMethod:D,enableCrossOsArchive:I});if(!(Y===null||Y===void 0?void 0:Y.archiveLocation))return;if(E===null||E===void 0?void 0:E.lookupOnly)return sA.info("Lookup only - skipping download"),Y.cacheKey;if(F=eX.join(yield qB.createTempDirectory(),qB.getCacheFileName(D)),sA.debug(`Archive Path: ${F}`),yield aG.downloadCache(Y.archiveLocation,F,E),sA.isDebug())yield(0,PF.listTar)(F,D);let J=qB.getArchiveFileSizeInBytes(F);return sA.info(`Cache Size: ~${Math.round(J/1048576)} MB (${J} B)`),yield(0,PF.extractTar)(F,D),sA.info("Cache restored successfully"),Y.cacheKey}catch(Y){let J=Y;if(J.name===yC.name)throw Y;else if(J instanceof Q6.HttpClientError&&typeof J.statusCode==="number"&&J.statusCode>=500)sA.error(`Failed to restore: ${Y.message}`);else sA.warning(`Failed to restore: ${Y.message}`)}finally{try{yield qB.unlinkFile(F)}catch(Y){sA.debug(`Failed to delete archive: ${Y}`)}}return})}function WRA(A,Q,B,E,I=!1){return sG(this,void 0,void 0,function*(){E=Object.assign(Object.assign({},E),{useAzureSdk:!0}),B=B||[];let C=[Q,...B];if(sA.debug("Resolved Keys:"),sA.debug(JSON.stringify(C)),C.length>10)throw new yC("Key Validation Error: Keys are limited to a maximum of 10.");for(let F of C)Zw(F);let D="";try{let F=Up.internalCacheTwirpClient(),Y=yield qB.getCompressionMethod(),J={key:Q,restoreKeys:B,version:qB.getCacheVersion(A,Y,I)},G=yield F.GetCacheEntryDownloadURL(J);if(!G.ok){sA.debug(`Cache not found for version ${J.version} of keys: ${C.join(", ")}`);return}if(J.key!==G.matchedKey)sA.info(`Cache hit for restore-key: ${G.matchedKey}`);else sA.info(`Cache hit for: ${G.matchedKey}`);if(E===null||E===void 0?void 0:E.lookupOnly)return sA.info("Lookup only - skipping download"),G.matchedKey;D=eX.join(yield qB.createTempDirectory(),qB.getCacheFileName(Y)),sA.debug(`Archive path: ${D}`),sA.debug(`Starting download of archive to: ${D}`),yield aG.downloadCache(G.signedDownloadUrl,D,E);let U=qB.getArchiveFileSizeInBytes(D);if(sA.info(`Cache Size: ~${Math.round(U/1048576)} MB (${U} B)`),sA.isDebug())yield(0,PF.listTar)(D,Y);return yield(0,PF.extractTar)(D,Y),sA.info("Cache restored successfully"),G.matche Line truncated
`+A.errors.map((Q)=>` - ${Q.message}`).join(`
`)}var Yi=class extends Error{constructor(A,Q,B){super(hgA(B));if(this.request=A,this.headers=Q,this.response=B,this.name="GraphqlResponseError",this.errors=B.errors,this.data=B.data,Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}},SgA=["method","baseUrl","url","headers","request","query","mediaType"],ygA=["query","method","url"],Di=/\/api\/v3\/?$/;function _gA(A,Q,B){if(B){if(typeof Q==="string"&&"query"in B)return Promise.reject(Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let D in B){if(!ygA.includes(D))continue;return Promise.reject(Error(`[@octokit/graphql] "${D}" cannot be used as variable name`))}}let E=typeof Q==="string"?Object.assign({query:Q},B):Q,I=Object.keys(E).reduce((D,F)=>{if(SgA.includes(F))return D[F]=E[F],D;if(!D.variables)D.variables={};return D.variables[F]=E[F],D},{}),C=E.baseUrl||A.endpoint.DEFAULTS.baseUrl;if(Di.test(C))I.url=C.replace(Di,"/api/graphql");return A(I).then((D)=>{if(D.data.errors){let F={};for(let Y of Object.keys(D.headers))F[Y]=D.headers[Y];throw new Yi(I,F,D.data)}return D.data.data})}function gw(A,Q){let B=A.defaults(Q);return Object.assign((I,C)=>{return _gA(B,I,C)},{defaults:gw.bind(null,B),endpoint:B.endpoint})}var vgA=gw(kgA.request,{headers:{"user-agent":`octokit-graphql.js/${xgA} ${(0,fgA.getUserAgent)()}`},method:"POST",url:"/graphql"});function bgA(A){return gw(A,{method:"POST",url:"/graphql"})}});var Zi=K((LcA,Ui)=>{var{defineProperty:Tw,getOwnPropertyDescriptor:ugA,getOwnPropertyNames:mgA}=Object,dgA=Object.prototype.hasOwnProperty,cgA=(A,Q)=>{for(var B in Q)Tw(A,B,{get:Q[B],enumerable:!0})},lgA=(A,Q,B,E)=>{if(Q&&typeof Q==="object"||typeof Q==="function"){for(let I of mgA(Q))if(!dgA.call(A,I)&&I!==B)Tw(A,I,{get:()=>Q[I],enumerable:!(E=ugA(Q,I))||E.enumerable})}return A},pgA=(A)=>lgA(Tw({},"__esModule",{value:!0}),A),Ni={};cgA(Ni,{createTokenAuth:()=>tgA});Ui.exports=pgA(Ni);var igA=/^v1\./,ngA=/^ghs_/,agA=/^ghu_/;async function sgA(A){let Q=A.split(/\./).length===3,B=igA.test(A)||ngA.test(A),E=agA.test(A);return{type:"token",token:A,tokenType:Q?"app":B?"installation":E?"user-to-server":"oauth"}}function ogA(A){if(A.split(/\./).length===3)return`bearer ${A}`;return`token ${A}`}async function rgA(A,Q,B,E){let I=Q.endpoint.merge(B,E);return I.headers.authorization=ogA(A),Q(I)}var tgA=function(Q){if(!Q)throw Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof Q!=="string")throw Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return Q=Q.replace(/^(token|bearer) +/i,""),Object.assign(sgA.bind(null,Q),{hook:rgA.bind(null,Q)})}});var zi=K((VcA,Vi)=>{var{defineProperty:Ow,getOwnPropertyDescriptor:egA,getOwnPropertyNames:ATA}=Object,QTA=Object.prototype.hasOwnProperty,BTA=(A,Q)=>{for(var B in Q)Ow(A,B,{get:Q[B],enumerable:!0})},ETA=(A,Q,B,E)=>{if(Q&&typeof Q==="object"||typeof Q==="function"){for(let I of ATA(Q))if(!QTA.call(A,I)&&I!==B)Ow(A,I,{get:()=>Q[I],enumerable:!(E=egA(Q,I))||E.enumerable})}return A},ITA=(A)=>ETA(Ow({},"__esModule",{value:!0}),A),Ki={};BTA(Ki,{Octokit:()=>UTA});Vi.exports=ITA(Ki);var CTA=r5(),DTA=xp(),Wi=QU(),FTA=Gi(),YTA=Zi(),Li="5.2.2",Xi=()=>{},JTA=console.warn.bind(console),GTA=console.error.bind(console);function NTA(A={}){if(typeof A.debug!=="function")A.debug=Xi;if(typeof A.info!=="function")A.info=Xi;if(typeof A.warn!=="function")A.warn=JTA;if(typeof A.error!=="function")A.error=GTA;return A}var $i=`octokit-core.js/${Li} ${(0,CTA.getUserAgent)()}`,UTA=class{static{this.VERSION=Li}static defaults(A){return class extends this{constructor(...B){let E=B[0]||{};if(typeof A==="function"){super(A(E));return}super(Object.assign({},A,E,E.userAgent&&A.userAgent?{userAgent:`${E.userAgent} ${A.userAgent}`}:null))}}}static{this.plugins=[]}static plugin(...A){let Q=this.plugins;return class extends this{static{this.plugins=Q.concat(A.filter((E)=>!Q.includes(E)))}}}constructor(A={}){let Q=new DTA.Collection,B={baseUrl:Wi.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},A.request,{hook:Q.bind(null,"request")}),mediaType:{previews:[],format:""}};if(B.headers["user-agent"]=A.userAgent?`${A.userAgent} ${$i}`:$i,A.baseUrl)B.baseUrl=A.baseUrl;if(A.previews)B.mediaType.previews=A.previews;if(A.timeZone)B.headers["time-zone"]=A.timeZone;if(this.request=Wi.request.defaults(B),this.graphql=(0,FTA.withCustomRequest)(this.request).defaults(B),this.log=NTA(A.log),this.hook=Q,!A.authStrategy)if(!A.auth)this.auth=async()=>({type:"unauthenticated"});else{let I=(0,YTA.createTokenAuth)(A.auth);Q.wrap("request",I.hook),this.auth=I}else{let{authStrategy:I,...C}=A,D=I(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:C},A.auth));Q.wrap("request",D.hook),this.auth=D}let E=this.constructor;for(let I=0;I<E.plugins.length;++I)Object.assign(this,E.plugins[I](this,A))}}});var Oi=K((McA,Ti)=>{var{defineProperty:qw,getOwnPropertyDescriptor:ZTA,getOwnPropertyNames:WTA}=Object,XTA=Object.prototype.hasOwnProperty,$TA=(A,Q)=>{ Line truncated
`);for(let I of E){let C=I.split("=");if(C.length===2&&(C[0].trim()==="VERSION_ID"||C[0].trim()==="DISTRIB_RELEASE")){Q=C[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return Q}oE._getOsVersion=hOA;function SOA(){let B="";if(Z6.existsSync("/etc/lsb-release"))B=Z6.readFileSync("/etc/lsb-release").toString();else if(Z6.existsSync("/etc/os-release"))B=Z6.readFileSync("/etc/os-release").toString();return B}oE._readLinuxVersionFile=SOA});var Bn=K((bC)=>{var yOA=bC&&bC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),_OA=bC&&bC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),vOA=bC&&bC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))yOA(Q,A,B)}return _OA(Q,A),Q},ei=bC&&bC.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(bC,"__esModule",{value:!0});bC.RetryHelper=void 0;var An=vOA(yB());class Qn{constructor(A,Q,B){if(A<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=A,this.minSeconds=Math.floor(Q),this.maxSeconds=Math.floor(B),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds")}execute(A,Q){return ei(this,void 0,void 0,function*(){let B=1;while(B<this.maxAttempts){try{return yield A()}catch(I){if(Q&&!Q(I))throw I;An.info(I.message)}let E=this.getSleepAmount();An.info(`Waiting ${E} seconds before trying again`),yield this.sleep(E),B++}return yield A()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(A){return ei(this,void 0,void 0,function*(){return new Promise((Q)=>setTimeout(Q,A*1000))})}}bC.RetryHelper=Qn});var Gn=K((LQ)=>{var __dirname="/Users/kudo/01_Work/Repos/expo/actions/node_modules/@actions/tool-cache/lib",bOA=LQ&&LQ.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),uOA=LQ&&LQ.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),B0=LQ&&LQ.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))bOA(Q,A,B)}return uOA(Q,A),Q},WI=LQ&&LQ.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(LQ,"__esModule",{value:!0});LQ.evaluateVersions=LQ.isExplicitVersion=LQ.findFromManifest=LQ.getManifestFromRepo=LQ.findAllVersions=LQ.find=LQ.cacheFile=LQ.cacheDir=LQ.extractZip=LQ.extractXar=LQ.extractTar=LQ.extract7z=LQ.downloadTool=LQ.HTTPError=void 0;var kQ=B0(yB()),CC=B0(lY()),En=B0(require("crypto")),uC=B0(require("fs")),mOA=B0(ti()),DU=B0(require("os")),Q0=B0(require("path")),In=B0(JD()),gD=B0(bw()),dOA=B0(require("stream")),cOA=B0(require("util")),BN=require("assert"),kF=iY(),lOA=Bn();class W6 extends Error{constructor(A){super(`Unexpected HTTP response: ${A}`);this.httpStatusCode=A,Object.setPrototypeOf(this,new.target.prototype)}}LQ.HTTPError=W6;var cw=process.platform==="win32",pOA=process.platform==="darwin",iOA="actions/tool-cache";function nOA(A,Q,B,E){return WI(this,void 0,void 0,function*(){Q=Q||Q0.join(Jn(),En.randomUUID()),yield CC.mkdirP(Q0.dirname(Q)),kQ.debug(`Downloading ${A}`),kQ.debug(`Destination ${Q}`);let I=3,C=dw("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),D=dw("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new lOA.RetryHelper(I,C,D).execute(()=>WI(this,void 0,void 0,function*(){return yield aOA(A,Q||"",B,E)}),(Y)=>{if(Y instanceof W6&&Y.httpStatusCode){if(Y.httpStatusCode<500&&Y.httpStatusCode!==408&&Y.httpStatusCode!==429)return!1}return!0})})}LQ.downloadTool=nOA;function aOA(A,Q,B,E){return WI(this,void 0,void 0,function*(){if(uC.existsSync(Q))throw Error(`Destination file path ${Q} already exists`);let I=new In.HttpClient(iOA,[],{allowRetries:!1});if(B){if(kQ.debug("set auth"),E===void 0)E={};E.authorization=B}let C=yield I.get(A Line truncated
${I}`;Object.assign(M,w),Y(M)}else F(w)},X=($)=>{if(J)C.removeListener("exit",Z);else C.removeListener("close",Z);Object.assign($,{pid:C.pid,output:[N,U],stdout:N,stderr:U,status:null,signal:null}),Y($)};if(J)C.once("exit",Z);else C.once("close",Z);C.once("error",X)});return D.child=C,D}Ba.exports=SqA});var Ia=K((ncA,Ea)=>{Ea.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var QM=K((acA,Da)=>{var FU=Ia(),Ca={};for(let A of Object.keys(FU))Ca[FU[A]]=A;var xA={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Da.exports=xA;for(let A of Object.keys(xA)){if(!("channels"in xA[A]))throw Error("missing channels property: "+A);if(!("labels"in xA[A]))throw Error("missing channel labels property: "+A);if(xA[A].labels.length!==xA[A].channels)throw Error("channel and label counts mismatch: "+A);let{channels:Q,labels:B}=xA[A];delete xA[A].channels,delete xA[A].labels,Object.defineProperty(xA[A],"channels",{value:Q}),Object.defineProperty(xA[A],"labels",{value:B})}xA.rgb.hsl=function(A){let Q=A[0]/255,B=A[1]/255,E=A[2]/255,I=Math.min(Q,B,E),C=Math.max(Q,B,E),D=C-I,F,Y;if(C===I)F=0;else if(Q===C)F=(B-E)/D;else if(B===C)F=2+(E-Q)/D;else if(E===C)F=4+(Q-B)/D;if(F=Math.min(F*60,3 Line truncated
`:`
`)+B,I=E+1,E=A.indexOf(`
`,I)}while(E!==-1);return C+=A.substr(I),C};Ka.exports={stringReplaceAll:iqA,stringEncaseCRLFWithFirstIndex:nqA}});var Ma=K((ecA,wa)=>{var aqA=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Va=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,sqA=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,oqA=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,rqA=new Map([["n",`
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Ha(A){let Q=A[0]==="u",B=A[1]==="{";if(Q&&!B&&A.length===5||A[0]==="x"&&A.length===3)return String.fromCharCode(parseInt(A.slice(1),16));if(Q&&B)return String.fromCodePoint(parseInt(A.slice(2,-1),16));return rqA.get(A)||A}function tqA(A,Q){let B=[],E=Q.trim().split(/\s*,\s*/g),I;for(let C of E){let D=Number(C);if(!Number.isNaN(D))B.push(D);else if(I=C.match(sqA))B.push(I[2].replace(oqA,(F,Y,J)=>Y?Ha(Y):J));else throw Error(`Invalid Chalk template style argument: ${C} (in style '${A}')`)}return B}function eqA(A){Va.lastIndex=0;let Q=[],B;while((B=Va.exec(A))!==null){let E=B[1];if(B[2]){let I=tqA(E,B[2]);Q.push([E].concat(I))}else Q.push([E])}return Q}function za(A,Q){let B={};for(let I of Q)for(let C of I.styles)B[C[0]]=I.inverse?null:C.slice(1);let E=A;for(let[I,C]of Object.entries(B)){if(!Array.isArray(C))continue;if(!(I in E))throw Error(`Unknown Chalk style: ${I}`);E=C.length>0?E[I](...C):E[I]}return E}wa.exports=(A,Q)=>{let B=[],E=[],I=[];if(Q.replace(aqA,(C,D,F,Y,J,G)=>{if(D)I.push(Ha(D));else if(Y){let N=I.join("");I=[],E.push(B.length===0?N:za(A,B)(N)),B.push({inverse:F,styles:eqA(Y)})}else if(J){if(B.length===0)throw Error("Found extraneous } in Chalk template literal");E.push(za(A,B)(I.join(""))),I=[],B.pop()}else I.push(G)}),E.push(I.join("")),B.length>0){let C=`Chalk template literal is missing ${B.length} closing bracket${B.length===1?"":"s"} (\`}\`)`;throw Error(C)}return E.join("")}});var ka=K((AlA,Pa)=>{var YU=$a(),{stdout:CM,stderr:DM}=VL(),{stringReplaceAll:AjA,stringEncaseCRLFWithFirstIndex:QjA}=La(),{isArray:H6}=Array,ga=["ansi","ansi","ansi256","ansi16m"],YN=Object.create(null),BjA=(A,Q={})=>{if(Q.level&&!(Number.isInteger(Q.level)&&Q.level>=0&&Q.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let B=CM?CM.level:0;A.level=Q.level===void 0?B:Q.level};class Ta{constructor(A){return Oa(A)}}var Oa=(A)=>{let Q={};return BjA(Q,A),Q.template=(...B)=>ja(Q.template,...B),Object.setPrototypeOf(Q,w6.prototype),Object.setPrototypeOf(Q.template,Q),Q.template.constructor=()=>{throw Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},Q.template.Instance=Ta,Q.template};function w6(A){return Oa(A)}for(let[A,Q]of Object.entries(YU))YN[A]={get(){let B=M6(this,FM(Q.open,Q.close,this._styler),this._isEmpty);return Object.defineProperty(this,A,{value:B}),B}};YN.visible={get(){let A=M6(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:A}),A}};var qa=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let A of qa)YN[A]={get(){let{level:Q}=this;return function(...B){let E=FM(YU.color[ga[Q]][A](...B),YU.color.close,this._styler);return M6(this,E,this._isEmpty)}}};for(let A of qa){let Q="bg"+A[0].toUpperCase()+A.slice(1);YN[Q]={get(){let{level:B}=this;return function(...E){let I=FM(YU.bgColor[ga[B]][A](...E),YU.bgColor.close,this._styler);return M6(this,I,this._isEmpty)}}}}var EjA=Object.defineProperties(()=>{},{...YN,level:{enumerable:!0,get(){return this._generator.level},set(A){this._generator.level=A}}}),FM=(A,Q,B)=>{let E,I;if(B===void 0)E=A,I=Q;else E=B.openAll+A,I=Q+B.closeAll;return{open:A,close:Q,openAll:E,closeAll:I,parent:B}},M6=(A,Q,B)=>{let E=(...I)=>{if(H6(I[0])&&H6(I[0].raw))return Ra(E,ja(E,...I));return Ra(E,I.length===1?""+I[0]:I.join(" "))};return Object.setPrototypeOf(E,EjA),E._generator=A,E._styler=Q,E._isEmpty=B,E},Ra=(A,Q)=>{if(A.level<=0||!Q)return A._isEmpty?"":Q;let B=A._styler;if(B===void 0)return Q;let{openAll:E,closeAll:I}=B;if(Q.indexOf("\x1B")!==-1)while(B!==void 0)Q=AjA(Q,B.close,B.open),B=B.parent;let C=Q.indexOf(`
`);if(C!==-1)Q=QjA(Q,I,E,C);return E+Q+I},IM,ja=(A,...Q)=>{let[B]=Q;if(!H6(B)||!H6(B.raw))return Q.join(" ");let E=Q.slice(1),I=[B.raw[0]];for(let C=1;C<B.length;C++)I.push(String(E[C-1]).replace(/[{}\\]/g,"\\$&"),String(B.raw[C]));if(IM===void 0)IM=Ma();return IM(A,I.join(""))};Object.defineProperties(w6.prototype,YN);var R6=w6();R6.supportsColor=CM;R6.stderr=w6({level:DM?DM.level:0});R6.stderr.supportsColor=DM;Pa.exports=R6});var ha=K((mC)=>{var g6=mC&&mC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(mC,"__esModule",{value:!0});mC.CocoaPodsPackageManager=mC.CocoaPodsError=void 0;mC.extractMissingDependencyError=JM;mC.getPodUpdateMessage=GM;mC.getPodRepoUpdateMessage=fa;mC.getImprovedPodInstallError=xa;var m1=g6(L6()),E0=g6(ka()),IjA=require("fs"),JU=g6(require("os")),YM=g6(require("path"));class TD extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=!0;constructor(A,Q,B){super(B?`${A}
└─ Cause: ${B.message}`:A);this.code=Q,this.cause=B}}mC.CocoaPodsError=TD;function JM(A){let Q=A.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(Q)return[Q[1],Q[2]];return null}class DC{options;silent;static getPodProjectRoot(A){if(DC.isUsingPods(A))return A;let Q=YM.default.join(A,"ios");if(DC.isUsingPods(Q))return Q;let B=YM.default.join(A,"macos");if(DC.isUsingPods(B))return B;return null}static isUsingPods(A){return(0,IjA.existsSync)(YM.default.join(A,"Podfile"))}static async gemInstallCLIAsync(A=!1,Q={stdio:"inherit"}){let B=["install","cocoapods","--no-document"];try{await(0,m1.default)("gem",B,Q)}catch(E){if(A)throw new TD("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",E);console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation"),await(0,m1.default)("sudo",["gem",...B],Q)}}static async brewLinkCLIAsync(A={stdio:"inherit"}){await(0,m1.default)("brew",["link","cocoapods"],A)}static async brewInstallCLIAsync(A={stdio:"inherit"}){await(0,m1.default)("brew",["install","cocoapods"],A)}static async installCLIAsync({nonInteractive:A=!1,spawnOptions:Q={stdio:"inherit"}}){if(!Q)Q={stdio:"inherit"};let B=!!Q.ignoreStdio;try{return!B&&console.log("› Attempting to install CocoaPods CLI with Gem"),await DC.gemInstallCLIAsync(A,Q),!B&&console.log("› Successfully installed CocoaPods CLI with Gem"),!0}catch(E){if(!B)console.log(E0.default.yellow("› Failed to install CocoaPods CLI with Gem")),console.log(E0.default.red(E.stderr??E.message)),console.log("› Attempting to install CocoaPods CLI with Homebrew");try{if(await DC.brewInstallCLIAsync(Q),!await DC.isCLIInstalledAsync(Q))try{if(await DC.brewLinkCLIAsync(Q),!await DC.isCLIInstalledAsync(Q))throw new TD("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",E)}catch(I){throw new TD("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",I)}return!B&&console.log("› Successfully installed CocoaPods CLI with Homebrew"),!0}catch(I){throw!B&&console.warn(E0.default.yellow("› Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/")),new TD("Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/","NO_CLI",I)}}}static isAvailable(A,Q){if(process.platform!=="darwin")return!Q&&console.log(E0.default.red("CocoaPods is only supported on macOS machines")),!1;if(!DC.isUsingPods(A))return!Q&&console.log(E0.default.yellow("CocoaPods is not supported in this project")),!1;return!0}static async isCLIInstalledAsync(A={stdio:"inherit"}){try{return await(0,m1.default)("pod",["--version"],A),!0}catch{return!1}}constructor({cwd:A,silent:Q}){this.silent=!!Q,this.options={cwd:A,stdio:"pipe"}}get name(){return"CocoaPods"}async installAsync({spinner:A}={}){await this._installAsync({spinner:A})}isCLIInstalledAsync(){return DC.isCLIInstalledAsync(this.options)}installCLIAsync(){return DC.installCLIAsync({nonInteractive:!0,spawnOptions:this.options})}async handleInstallErrorAsync({error:A,shouldUpdate:Q=!0,updatedPackages:B=[],spinner:E}){if(!A.output)throw A;if(!Q)throw xa(A,{cwd:this.options.cwd});let I=A.output.join(JU.default.EOL).trim(),{updatePackage:C,shouldUpdateRepo:D}=GM(I);if(!C||B.includes(C))return await this._installAsync({spinner:E,shouldRepoUpdate:!0,shouldUpdate:!1,updatedPackages:B});return B.push(C),await this.runInstallTypeCommandAsync(["update",C,D?"":"--no-repo-update"].filter(Boolean),{formatWarning(){return`Failed to update ${E0.default.bold(C)}. Attempting to update the repo instead.`},spinner:E,updatedPackages:B})}async _installAsync({shouldRepoUpdate:A,...Q}={}){return await this.runInstallTypeCommandAsync(["install",A?"--repo-update":""].filter(Boolean),{formatWarning(B){return fa(B.output.join(JU.default.EOL).trim()).message},...Q})}async runInstallTypeCommandAsync(A,{formatWarning:Q,...B}={}){try{return await this._runAsync(A)}catch(E){if(Q){let I=Q(E);if(B.spinner)B.spinner.text=E0.default.bold(I);if(!this.silent)console.warn(E0.default.yellow(I))}return await this.handleInstallErrorAsync({error:E,...B})}}async addWithParametersAsync(A,Q){throw Error("Unimplemented")}addAsync(A=[]){throw Error("Unimplemented")}addDevAsync(A=[]){throw Error("Unimplemented")}addGlobalAsync(A=[]){throw Error("Unimplemented")}removeAsync(A=[]){throw Error("Unimplemented")}removeDevAsync(A=[]){throw Error("Unimplemented")}removeGlobalAsync(A=[]){throw Error("Unimplemented")}async versionAsync(){let{stdout:A}=await(0,m1.default)("pod",["--version"],this.options);return A.trim()}async configAsync(A){throw Error("Unimplemented")}async removeLockfileAsync(){throw Error("Unimplemented")}async uninstallAsync(){throw Error("Unimplemented")}async podRepoUpdateAsync(){try{await this._runAsync(["r Line truncated
${E0.default.gray(Y)}`}}return new TD("Command `pod install --repo-update` failed.","COMMAND_FAILED",A)}else{let E=A.stderr.trim(),I=A.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(I){if(A.message?.match(/pod exited with non-zero code: 1/))A.message="";E=null}A.message=[I,A.message,E].filter(Boolean).join(`
`)}return new TD("Command `pod install` failed.","COMMAND_FAILED",A)}});var Sa=K((T6)=>{Object.defineProperty(T6,"__esModule",{value:!0});T6.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;T6.matchToToken=function(A){var Q={type:"invalid",value:A[0],closed:void 0};if(A[1])Q.type="string",Q.closed=!!(A[3]||A[4]);else if(A[5])Q.type="comment";else if(A[6])Q.type="comment",Q.closed=!!A[7];else if(A[8])Q.type="regex";else if(A[9])Q.type="number";else if(A[10])Q.type="name";else if(A[11])Q.type="punctuator";else if(A[12])Q.type="whitespace";return Q}});var ua=K((GU)=>{Object.defineProperty(GU,"__esModule",{value:!0});GU.isIdentifierChar=ba;GU.isIdentifierName=JjA;GU.isIdentifierStart=va;var UM="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ya="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",DjA=new RegExp("["+UM+"]"),FjA=new RegExp("["+UM+ya+"]");UM=ya=null;var _a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5Line truncated
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Zs(A){if(A[0]==="u"&&A.length===5||A[0]==="x"&&A.length===3)return String.fromCharCode(parseInt(A.slice(1),16));return SjA.get(A)||A}function yjA(A,Q){let B=[],E=Q.trim().split(/\s*,\s*/g),I;for(let C of E)if(!isNaN(C))B.push(Number(C));else if(I=C.match(xjA))B.push(I[2].replace(hjA,(D,F,Y)=>F?Zs(F):Y));else throw Error(`Invalid Chalk template style argument: ${C} (in style '${A}')`);return B}function _jA(A){Ns.lastIndex=0;let Q=[],B;while((B=Ns.exec(A))!==null){let E=B[1];if(B[2]){let I=yjA(E,B[2]);Q.push([E].concat(I))}else Q.push([E])}return Q}function Us(A,Q){let B={};for(let I of Q)for(let C of I.styles)B[C[0]]=I.inverse?null:C.slice(1);let E=A;for(let I of Object.keys(B))if(Array.isArray(B[I])){if(!(I in E))throw Error(`Unknown Chalk style: ${I}`);if(B[I].length>0)E=E[I].apply(E,B[I]);else E=E[I]}return E}Ws.exports=(A,Q)=>{let B=[],E=[],I=[];if(Q.replace(fjA,(C,D,F,Y,J,G)=>{if(D)I.push(Zs(D));else if(Y){let N=I.join("");I=[],E.push(B.length===0?N:Us(A,B)(N)),B.push({inverse:F,styles:_jA(Y)})}else if(J){if(B.length===0)throw Error("Found extraneous } in Chalk template literal");E.push(Us(A,B)(I.join(""))),I=[],B.pop()}else I.push(G)}),E.push(I.join("")),B.length>0){let C=`Chalk template literal is missing ${B.length} closing bracket${B.length===1?"":"s"} (\`}\`)`;throw Error(C)}return E.join("")}});var zs=K(($lA,WU)=>{var wM=oa(),DE=Ds(),HM=Gs().stdout,vjA=Xs(),Ks=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Ls=["ansi","ansi","ansi256","ansi16m"],Vs=new Set(["gray"]),UN=Object.create(null);function $s(A,Q){Q=Q||{};let B=HM?HM.level:0;A.level=Q.level===void 0?B:Q.level,A.enabled="enabled"in Q?Q.enabled:A.level>0}function ZU(A){if(!this||!(this instanceof ZU)||this.template){let Q={};return $s(Q,A),Q.template=function(){let B=[].slice.call(arguments);return mjA.apply(null,[Q.template].concat(B))},Object.setPrototypeOf(Q,ZU.prototype),Object.setPrototypeOf(Q.template,Q),Q.template.constructor=ZU,Q.template}$s(this,A)}if(Ks)DE.blue.open="\x1B[94m";for(let A of Object.keys(DE))DE[A].closeRe=new RegExp(wM(DE[A].close),"g"),UN[A]={get(){let Q=DE[A];return x6.call(this,this._styles?this._styles.concat(Q):[Q],this._empty,A)}};UN.visible={get(){return x6.call(this,this._styles||[],!0,"visible")}};DE.color.closeRe=new RegExp(wM(DE.color.close),"g");for(let A of Object.keys(DE.color.ansi)){if(Vs.has(A))continue;UN[A]={get(){let Q=this.level;return function(){let E={open:DE.color[Ls[Q]][A].apply(null,arguments),close:DE.color.close,closeRe:DE.color.closeRe};return x6.call(this,this._styles?this._styles.concat(E):[E],this._empty,A)}}}}DE.bgColor.closeRe=new RegExp(wM(DE.bgColor.close),"g");for(let A of Object.keys(DE.bgColor.ansi)){if(Vs.has(A))continue;let Q="bg"+A[0].toUpperCase()+A.slice(1);UN[Q]={get(){let B=this.level;return function(){let I={open:DE.bgColor[Ls[B]][A].apply(null,arguments),close:DE.bgColor.close,closeRe:DE.bgColor.closeRe};return x6.call(this,this._styles?this._styles.concat(I):[I],this._empty,A)}}}}var bjA=Object.defineProperties(()=>{},UN);function x6(A,Q,B){let E=function(){return ujA.apply(E,arguments)};E._styles=A,E._empty=Q;let I=this;return Object.defineProperty(E,"level",{enumerable:!0,get(){return I.level},set(C){I.level=C}}),Object.defineProperty(E,"enabled",{enumerable:!0,get(){return I.enabled},set(C){I.enabled=C}}),E.hasGrey=this.hasGrey||B==="gray"||B==="grey",E.__proto__=bjA,E}function ujA(){let A=arguments,Q=A.length,B=String(arguments[0]);if(Q===0)return"";if(Q>1)for(let I=1;I<Q;I++)B+=" "+A[I];if(!this.enabled||this.level<=0||!B)return this._empty?"":B;let E=DE.dim.open;if(Ks&&this.hasGrey)DE.dim.open="";for(let I of this._styles.slice().reverse())B=I.open+B.replace(I.closeRe,I.open)+I.close,B=B.replace(/\r?\n/g,`${I.close}$&${I.open}`);return DE.dim.open=E,B}function mjA(A,Q){if(!Array.isArray(Q))return[].slice.call(arguments,1).join(" ");let B=[].slice.call(arguments,2),E=[Q.raw[0]];for(let I=1;I<Q.length;I++)E.push(String(B[I-1]).replace(/[{}\\]/g,"\\$&")),E.push(String(Q.raw[I]));return vjA(A,E.join(""))}Object.defineProperties(ZU.prototype,UN);WU.exports=ZU();WU.exports.supportsColor=HM;WU.exports.default=WU.exports});var qs=K((XU)=>{Object.defineProperty(XU,"__esModule",{value:!0});XU.default=sjA;XU.shouldHighlight=Os;var Hs=Sa(),ws=pa(),RM=djA(aa(),!0);function Rs(A){if(typeof WeakMap!="function")return null;var Q=new WeakMap,B=new WeakMap;return(Rs=function(E){return E?B:Q})(A)}function djA(A,Q){if(!Q&&A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var B=Rs(Q);if(B&&B.has(A))return B.get(A);var E={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in A)if(C!=="default"&&{}.hasOwnProperty.call(A,C)){var D=I?Object.getOwnPropertyDescriptor(A,C):null;D&&(D.get||D.set)?Object.defineProperty(E,C,D):E[C]=A[C]}return E.default=A,B&&B.sLine truncated
`);else B+=I}return B}function Os(A){return gs.isColorSupported||A.forceColor}var MM=void 0;function ajA(A){if(A){var Q;return(Q=MM)!=null||(MM=(0,RM.createColors)(!0)),MM}return gs}function sjA(A,Q={}){if(A!==""&&Os(Q)){let B=ljA(ajA(Q.forceColor));return njA(B,A)}else return A}{let A,Q;XU.getChalk=({forceColor:B})=>{var E;if((E=A)!=null||(A=zs()),B){var I;return(I=Q)!=null||(Q=new A.constructor({enabled:!0,level:1})),Q}return A}}});var xs=K((h6)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.codeFrameColumns=fs;h6.default=ejA;var gM=ojA(qs());function ks(){if(typeof WeakMap!=="function")return null;var A=new WeakMap;return ks=function(){return A},A}function ojA(A){if(A&&A.__esModule)return A;if(A===null||typeof A!=="object"&&typeof A!=="function")return{default:A};var Q=ks();if(Q&&Q.has(A))return Q.get(A);var B={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in A)if(Object.prototype.hasOwnProperty.call(A,I)){var C=E?Object.getOwnPropertyDescriptor(A,I):null;if(C&&(C.get||C.set))Object.defineProperty(B,I,C);else B[I]=A[I]}if(B.default=A,Q)Q.set(A,B);return B}var js=!1;function rjA(A){return{gutter:A.grey,marker:A.red.bold,message:A.red.bold}}var Ps=/\r\n|[\n\r\u2028\u2029]/;function tjA(A,Q,B){let E=Object.assign({column:0,line:-1},A.start),I=Object.assign({},E,A.end),{linesAbove:C=2,linesBelow:D=3}=B||{},F=E.line,Y=E.column,J=I.line,G=I.column,N=Math.max(F-(C+1),0),U=Math.min(Q.length,J+D);if(F===-1)N=0;if(J===-1)U=Q.length;let Z=J-F,X={};if(Z)for(let $=0;$<=Z;$++){let V=$+F;if(!Y)X[V]=!0;else if($===0){let w=Q[V-1].length;X[V]=[Y,w-Y+1]}else if($===Z)X[V]=[0,G];else{let w=Q[V-$].length;X[V]=[0,w]}}else if(Y===G)if(Y)X[F]=[Y,0];else X[F]=!0;else X[F]=[Y,G-Y];return{start:N,end:U,markerLines:X}}function fs(A,Q,B={}){let E=(B.highlightCode||B.forceColor)&&(0,gM.shouldHighlight)(B),I=(0,gM.getChalk)(B),C=rjA(I),D=($,V)=>{return E?$(V):V},F=A.split(Ps),{start:Y,end:J,markerLines:G}=tjA(Q,F,B),N=Q.start&&typeof Q.start.column==="number",U=String(J).length,X=(E?(0,gM.default)(A,B):A).split(Ps).slice(Y,J).map(($,V)=>{let w=Y+1+V,M=` ${` ${w}`.slice(-U)} | `,k=G[w],d=!G[w+1];if(k){let t="";if(Array.isArray(k)){let m=$.slice(0,Math.max(k[0]-1,0)).replace(/[^\t]/g," "),n=k[1]||1;if(t=[`
`,D(C.gutter,M.replace(/\d/g," ")),m,D(C.marker,"^").repeat(n)].join(""),d&&B.message)t+=" "+D(C.message,B.message)}return[D(C.marker,">"),D(C.gutter,M),$,t].join("")}else return` ${D(C.gutter,M)}${$}`}).join(`
`);if(B.message&&!N)X=`${" ".repeat(U+1)}${B.message}
${X}`;if(E)return I.reset(X);else return X}function ejA(A,Q,B,E={}){if(!js){js=!0;let C="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(C,"DeprecationWarning");else{let D=Error(C);D.name="DeprecationWarning",console.warn(Error(C))}}return B=Math.max(B,0),fs(A,{start:{column:B,line:Q}},E)}});var hs=K((VlA,S6)=>{S6.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;S6.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uLine truncated
`)fF++,C0=0;else if(A)C0+=A.length;else C0++;if(A)_6+=A.length;return A}var _s={default(){switch(RQ){case"\t":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
`:case"\r":case"\u2028":case"\u2029":DA();return;case"/":DA(),UQ="comment";return;case void 0:return DA(),LB("eof")}if(qE.isSpaceSeparator(RQ)){DA();return}return _s[XI]()},comment(){switch(RQ){case"*":DA(),UQ="multiLineComment";return;case"/":DA(),UQ="singleLineComment";return}throw VB(DA())},multiLineComment(){switch(RQ){case"*":DA(),UQ="multiLineCommentAsterisk";return;case void 0:throw VB(DA())}DA()},multiLineCommentAsterisk(){switch(RQ){case"*":DA();return;case"/":DA(),UQ="default";return;case void 0:throw VB(DA())}DA(),UQ="multiLineComment"},singleLineComment(){switch(RQ){case`
`:case"\r":case"\u2028":case"\u2029":DA(),UQ="default";return;case void 0:return DA(),LB("eof")}DA()},value(){switch(RQ){case"{":case"[":return LB("punctuator",DA());case"n":return DA(),l1("ull"),LB("null",null);case"t":return DA(),l1("rue"),LB("boolean",!0);case"f":return DA(),l1("alse"),LB("boolean",!1);case"-":case"+":if(DA()==="-")OD=-1;UQ="sign";return;case".":IQ=DA(),UQ="decimalPointLeading";return;case"0":IQ=DA(),UQ="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":IQ=DA(),UQ="decimalInteger";return;case"I":return DA(),l1("nfinity"),LB("numeric",1/0);case"N":return DA(),l1("aN"),LB("numeric",NaN);case'"':case"'":$U=DA()==='"',IQ="",UQ="string";return}throw VB(DA())},identifierNameStartEscape(){if(RQ!=="u")throw VB(DA());DA();let A=kM();switch(A){case"$":case"_":break;default:if(!qE.isIdStartChar(A))throw ys();break}IQ+=A,UQ="identifierName"},identifierName(){switch(RQ){case"$":case"_":case"‌":case"‍":IQ+=DA();return;case"\\":DA(),UQ="identifierNameEscape";return}if(qE.isIdContinueChar(RQ)){IQ+=DA();return}return LB("identifier",IQ)},identifierNameEscape(){if(RQ!=="u")throw VB(DA());DA();let A=kM();switch(A){case"$":case"_":case"‌":case"‍":break;default:if(!qE.isIdContinueChar(A))throw ys();break}IQ+=A,UQ="identifierName"},sign(){switch(RQ){case".":IQ=DA(),UQ="decimalPointLeading";return;case"0":IQ=DA(),UQ="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":IQ=DA(),UQ="decimalInteger";return;case"I":return DA(),l1("nfinity"),LB("numeric",OD*(1/0));case"N":return DA(),l1("aN"),LB("numeric",NaN)}throw VB(DA())},zero(){switch(RQ){case".":IQ+=DA(),UQ="decimalPoint";return;case"e":case"E":IQ+=DA(),UQ="decimalExponent";return;case"x":case"X":IQ+=DA(),UQ="hexadecimal";return}return LB("numeric",OD*0)},decimalInteger(){switch(RQ){case".":IQ+=DA(),UQ="decimalPoint";return;case"e":case"E":IQ+=DA(),UQ="decimalExponent";return}if(qE.isDigit(RQ)){IQ+=DA();return}return LB("numeric",OD*Number(IQ))},decimalPointLeading(){if(qE.isDigit(RQ)){IQ+=DA(),UQ="decimalFraction";return}throw VB(DA())},decimalPoint(){switch(RQ){case"e":case"E":IQ+=DA(),UQ="decimalExponent";return}if(qE.isDigit(RQ)){IQ+=DA(),UQ="decimalFraction";return}return LB("numeric",OD*Number(IQ))},decimalFraction(){switch(RQ){case"e":case"E":IQ+=DA(),UQ="decimalExponent";return}if(qE.isDigit(RQ)){IQ+=DA();return}return LB("numeric",OD*Number(IQ))},decimalExponent(){switch(RQ){case"+":case"-":IQ+=DA(),UQ="decimalExponentSign";return}if(qE.isDigit(RQ)){IQ+=DA(),UQ="decimalExponentInteger";return}throw VB(DA())},decimalExponentSign(){if(qE.isDigit(RQ)){IQ+=DA(),UQ="decimalExponentInteger";return}throw VB(DA())},decimalExponentInteger(){if(qE.isDigit(RQ)){IQ+=DA();return}return LB("numeric",OD*Number(IQ))},hexadecimal(){if(qE.isHexDigit(RQ)){IQ+=DA(),UQ="hexadecimalInteger";return}throw VB(DA())},hexadecimalInteger(){if(qE.isHexDigit(RQ)){IQ+=DA();return}return LB("numeric",OD*Number(IQ))},string(){switch(RQ){case"\\":DA(),IQ+=QPA();return;case'"':if($U)return DA(),LB("string",IQ);IQ+=DA();return;case"'":if(!$U)return DA(),LB("string",IQ);IQ+=DA();return;case`
`:case"\r":throw VB(DA());case"\u2028":case"\u2029":IPA(RQ);break;case void 0:throw VB(DA())}IQ+=DA()},start(){switch(RQ){case"{":case"[":return LB("punctuator",DA())}UQ="value"},beforePropertyName(){switch(RQ){case"$":case"_":IQ=DA(),UQ="identifierName";return;case"\\":DA(),UQ="identifierNameStartEscape";return;case"}":return LB("punctuator",DA());case'"':case"'":$U=DA()==='"',UQ="string";return}if(qE.isIdStartChar(RQ)){IQ+=DA(),UQ="identifierName";return}throw VB(DA())},afterPropertyName(){if(RQ===":")return LB("punctuator",DA());throw VB(DA())},beforePropertyValue(){UQ="value"},afterPropertyValue(){switch(RQ){case",":case"}":return LB("punctuator",DA())}throw VB(DA())},beforeArrayValue(){if(RQ==="]")return LB("punctuator",DA());UQ="value"},afterArrayValue(){switch(RQ){case",":case"]":return LB("punctuator",DA())}throw VB(DA())},end(){throw VB(DA())}};function LB(A,Q){return{type:A,value:Q,line:fF,column:C0}}function l1(A){for(let Q of A){if(jD()!==Q)throw VB(DA());DA()}}function QPA(){switch(jD()){case"b":return DA(),"\b";case"f":return DA(),"\f";case"n":return DA(),`
`;case"r":return DA(),"\r";case"t":return DA(),"\t";case"v":return DA(),"\v";case"0":if(DA(),qE.isDigit(jD()))throw VB(DA());return"\x00";case"x":return DA(),BPA();case"u":return DA(),kM();case`
`:case"\u2028":case"\u2029":return DA(),"";case"\r":if(DA(),jD()===`
`)DA();return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw VB(DA());case void 0:throw VB(DA())}return DA()}function BPA(){let A="",Q=jD();if(!qE.isHexDigit(Q))throw VB(DA());if(A+=DA(),Q=jD(),!qE.isHexDigit(Q))throw VB(DA());return A+=DA(),String.fromCodePoint(parseInt(A,16))}function kM(){let A="",Q=4;while(Q-- >0){let B=jD();if(!qE.isHexDigit(B))throw VB(DA());A+=DA()}return String.fromCodePoint(parseInt(A,16))}var EPA={start(){if(jE.type==="eof")throw p1();qM()},beforePropertyName(){switch(jE.type){case"identifier":case"string":fM=jE.value,XI="afterPropertyName";return;case"punctuator":y6();return;case"eof":throw p1()}},afterPropertyName(){if(jE.type==="eof")throw p1();XI="beforePropertyValue"},beforePropertyValue(){if(jE.type==="eof")throw p1();qM()},beforeArrayValue(){if(jE.type==="eof")throw p1();if(jE.type==="punctuator"&&jE.value==="]"){y6();return}qM()},afterPropertyValue(){if(jE.type==="eof")throw p1();switch(jE.value){case",":XI="beforePropertyName";return;case"}":y6()}},afterArrayValue(){if(jE.type==="eof")throw p1();switch(jE.value){case",":XI="beforeArrayValue";return;case"]":y6()}},end(){}};function qM(){let A;switch(jE.type){case"punctuator":switch(jE.value){case"{":A={};break;case"[":A=[];break}break;case"null":case"boolean":case"numeric":case"string":A=jE.value;break}if(KU===void 0)KU=A;else{let Q=qD[qD.length-1];if(Array.isArray(Q))Q.push(A);else Object.defineProperty(Q,fM,{value:A,writable:!0,enumerable:!0,configurable:!0})}if(A!==null&&typeof A==="object")if(qD.push(A),Array.isArray(A))XI="beforeArrayValue";else XI="beforePropertyName";else{let Q=qD[qD.length-1];if(Q==null)XI="end";else if(Array.isArray(Q))XI="afterArrayValue";else XI="afterPropertyValue"}}function y6(){qD.pop();let A=qD[qD.length-1];if(A==null)XI="end";else if(Array.isArray(A))XI="afterArrayValue";else XI="afterPropertyValue"}function VB(A){if(A===void 0)return v6(`JSON5: invalid end of input at ${fF}:${C0}`);return v6(`JSON5: invalid character '${vs(A)}' at ${fF}:${C0}`)}function p1(){return v6(`JSON5: invalid end of input at ${fF}:${C0}`)}function ys(){return C0-=5,v6(`JSON5: invalid identifier character at ${fF}:${C0}`)}function IPA(A){console.warn(`JSON5: '${vs(A)}' in strings is not valid ECMAScript; consider escaping`)}function vs(A){let Q={"'":"\\'",'"':"\\\"","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(Q[A])return Q[A];if(A<" "){let B=A.charCodeAt(0).toString(16);return"\\x"+("00"+B).substring(B.length)}return A}function v6(A){let Q=SyntaxError(A);return Q.lineNumber=fF,Q.columnNumber=C0,Q}});var ds=K((wlA,ms)=>{var xM=OM();ms.exports=function(Q,B,E){let I=[],C="",D,F,Y="",J;if(B!=null&&typeof B==="object"&&!Array.isArray(B))E=B.space,J=B.quote,B=B.replacer;if(typeof B==="function")F=B;else if(Array.isArray(B)){D=[];for(let $ of B){let V;if(typeof $==="string")V=$;else if(typeof $==="number"||$ instanceof String||$ instanceof Number)V=String($);if(V!==void 0&&D.indexOf(V)<0)D.push(V)}}if(E instanceof Number)E=Number(E);else if(E instanceof String)E=String(E);if(typeof E==="number"){if(E>0)E=Math.min(10,Math.floor(E)),Y=" ".substr(0,E)}else if(typeof E==="string")Y=E.substr(0,10);return G("",{"":Q});function G($,V){let w=V[$];if(w!=null){if(typeof w.toJSON5==="function")w=w.toJSON5($);else if(typeof w.toJSON==="function")w=w.toJSON($)}if(F)w=F.call(V,$,w);if(w instanceof Number)w=Number(w);else if(w instanceof String)w=String(w);else if(w instanceof Boolean)w=w.valueOf();switch(w){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof w==="string")return N(w,!1);if(typeof w==="number")return String(w);if(typeof w==="object")return Array.isArray(w)?X(w):U(w);return}function N($){let V={"'":0.1,'"':0.2},w={"'":"\\'",'"':"\\\"","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},g="";for(let k=0;k<$.length;k++){let d=$[k];switch(d){case"'":case'"':V[d]++,g+=d;continue;case"\x00":if(xM.isDigit($[k+1])){g+="\\x00";continue}}if(w[d]){g+=w[d];continue}if(d<" "){let t=d.charCodeAt(0).toString(16);g+="\\x"+("00"+t).substring(t.length);continue}g+=d}let M=J||Object.keys(V).reduce((k,d)=>V[k]<V[d]?k:d);return g=g.replace(new RegExp(M,"g"),w[M]),M+g+M}function U($){if(I.indexOf($)>=0)throw TypeError("Converting circular structure to JSON5");I.push($);let V=C;C=C+Y;let w=D||Object.keys($),g=[];for(let k of w){let d=G(k,$);if(d!==void 0){let t=Z(k)+":";if(Y!=="")t+=" ";t+=d,g.push(t)}}let M;if(g.length===0)M="{}";else{let k;if(Y==="")k=g.join(","),M="{"+k+"}";else{let d=`,
`+C;k=g.join(d),M=`{
`+C+k+`,
`+V+"}"}}return I.pop(),C=V,M}function Z($){if($.length===0)return N($,!0);let V=String.fromCodePoint($.codePointAt(0));if(!xM.isIdStartChar(V))return N($,!0);for(let w=V.length;w<$.length;w++)if(!xM.isIdContinueChar(String.fromCodePoint($.codePointAt(w))))return N($,!0);return $}function X($){if(I.indexOf($)>=0)throw TypeError("Converting circular structure to JSON5");I.push($);let V=C;C=C+Y;let w=[];for(let M=0;M<$.length;M++){let k=G(String(M),$);w.push(k!==void 0?k:"null")}let g;if(w.length===0)g="[]";else if(Y==="")g="["+w.join(",")+"]";else{let M=`,
`+C,k=w.join(M);g=`[
`+C+k+`,
`+V+"]"}return I.pop(),C=V,g}}});var ls=K((MlA,cs)=>{var CPA=us(),DPA=ds(),FPA={parse:CPA,stringify:DPA};cs.exports=FPA});var is=K((LU)=>{Object.defineProperty(LU,"__esModule",{value:!0});LU.EmptyJsonFileError=void 0;class hM extends Error{cause;code;fileName;isJsonFileError;constructor(A,Q,B,E){let I=A;if(E)I+=`
${Q?"├":"└"}─ File: ${E}`;if(Q)I+=`
└─ Cause: ${Q.name}: ${Q.message}`;super(I);this.name=this.constructor.name,this.cause=Q,this.code=B,this.fileName=E,this.isJsonFileError=!0}}LU.default=hM;class ps extends hM{constructor(A){super("Cannot parse an empty JSON string",void 0,"EJSONEMPTY",A)}}LU.EmptyJsonFileError=ps});var as=K((n0)=>{var YPA=n0&&n0.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),JPA=n0&&n0.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),GPA=n0&&n0.__importStar||function(){var A=function(Q){return A=Object.getOwnPropertyNames||function(B){var E=[];for(var I in B)if(Object.prototype.hasOwnProperty.call(B,I))E[E.length]=I;return E},A(Q)};return function(Q){if(Q&&Q.__esModule)return Q;var B={};if(Q!=null){for(var E=A(Q),I=0;I<E.length;I++)if(E[I]!=="default")YPA(B,Q,E[I])}return JPA(B,Q),B}}();Object.defineProperty(n0,"__esModule",{value:!0});n0.writeFileAtomicSync=UPA;n0.writeFileAtomic=ZPA;var NPA=require("node:crypto"),b6=GPA(require("node:fs"));function ns(A,Q){let B=(0,NPA.createHash)("sha256").update(Q).digest("base64url");return`${A}.${B}`}function UPA(A,Q){let B=ns(A,Q);b6.writeFileSync(B,Q),b6.renameSync(B,A)}async function ZPA(A,Q){let B=ns(A,Q);await b6.promises.writeFile(B,Q),await b6.promises.rename(B,A)}});var Jo=K((D0)=>{var WPA=D0&&D0.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),XPA=D0&&D0.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),$PA=D0&&D0.__importStar||function(){var A=function(Q){return A=Object.getOwnPropertyNames||function(B){var E=[];for(var I in B)if(Object.prototype.hasOwnProperty.call(B,I))E[E.length]=I;return E},A(Q)};return function(Q){if(Q&&Q.__esModule)return Q;var B={};if(Q!=null){for(var E=A(Q),I=0;I<E.length;I++)if(E[I]!=="default")WPA(B,Q,E[I])}return XPA(B,Q),B}}(),_M=D0&&D0.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(D0,"__esModule",{value:!0});var KPA=xs(),vM=_M(ls()),m6=_M(require("node:fs")),Co=_M(require("node:path")),xF=$PA(is()),Do=as(),LPA={badJsonDefault:void 0,jsonParseErrorDefault:void 0,cantReadFileDefault:void 0,ensureDir:!1,default:void 0,json5:!1,space:2,addNewLineAtEOF:!0};class Fo{file;options;static read=n1;static readAsync=a1;static parseJsonString=u6;static write=ZN;static writeAsync=WN;static get=ss;static getAsync=os;static set=rs;static setAsync=ts;static merge=Ao;static mergeAsync=es;static deleteKey=Bo;static deleteKeyAsync=Qo;static deleteKeys=yM;static deleteKeysAsync=SM;static rewrite=Io;static rewriteAsync=Eo;constructor(A,Q={}){this.file=A,this.options=Q}read(A){return n1(this.file,this._getOptions(A))}async readAsync(A){return a1(this.file,this._getOptions(A))}write(A,Q){return ZN(this.file,A,this._getOptions(Q))}async writeAsync(A,Q){return WN(this.file,A,this._getOptions(Q))}parseJsonString(A,Q){return u6(A,Q)}get(A,Q,B){return ss(this.file,A,Q,this._getOptions(B))}async getAsync(A,Q,B){return os(this.file,A,Q,this._getOptions(B))}set(A,Q,B){return rs(this.file,A,Q,this._getOptions(B))}async setAsync(A,Q,B){return ts(this.file,A,Q,this._getOptions(B))}async merge(A,Q){return Ao(this.file,A,this._getOptions(Q))}async mergeAsync(A,Q){return es(this.file,A,this._getOptions(Q))}deleteKey(A,Q){return Bo(this.file,A,this._getOptions(Q))}async deleteKeyAsync(A,Q){return Qo(this.file,A,this._getOptions(Q))}deleteKeys(A,Q){return yM(this.file,A,this._getOptions(Q))}async deleteKeysAsync(A,Q){return SM(this.file,A,this._getOptions(Q))}rewrite(A){return Io(this.file,this._getOptions(A))}async rewriteAsync(A){return Eo(this.file,this._getOptions(A))}_getOptions(A){return{...this.options,...A}}}D0.default=Fo;function n1(A,Q){let B;try{B=m6.default.readFileSync(A,"utf8")}catch(E){bM(B,A);let I=Yo(Q);if(I===void 0)throw new xF.default(`Can't read JSON file: ${A}`,E,E.code,A);else return I}return u6(B,Q,A)}async function a1(A,Q){let B;try{B=await m6.default.promises.readFile(A,"utf8")}catch(E){bM(B,A);let I=Yo(Q);if(I===void 0)throw new xF.default(`Can't read JSON file: ${A}`,E,E.code);else return I}return u6(B,Q)}function u6(A,Q,B){bM(A,B);try{if(i1(Q,"json5"))return vM.default.parse(A);else return JSON.parse(A)}catch(E){let I=VPA(Q);if(I===void 0){let C=zPA(E,A);if(C){let D=(0,KPA.codeFrameColumns)(A,{start:C});E.codeFrame=D,E.message+=`
${D}`}throw new xF.default(`Error parsing JSON: ${A}`,E,"EJSONPARSE",B)}else return I}}function ss(A,Q,B,E){let I=n1(A,E);if(Q in I)return I[Q];if(B===void 0)throw new xF.default(`No value at key path "${String(Q)}" in JSON object from: ${A}`);return B}async function os(A,Q,B,E){let I=await a1(A,E);if(Q in I)return I[Q];if(B===void 0)throw new xF.default(`No value at key path "${String(Q)}" in JSON object from: ${A}`);return B}function ZN(A,Q,B){if(B?.ensureDir)m6.default.mkdirSync(Co.default.dirname(A),{recursive:!0});let E=i1(B,"space"),I=i1(B,"json5"),C=i1(B,"addNewLineAtEOF"),D;try{if(I)D=vM.default.stringify(Q,null,E);else D=JSON.stringify(Q,null,E)}catch(Y){throw new xF.default(`Couldn't JSON.stringify object for file: ${A}`,Y)}let F=C?`${D}
`:D;return(0,Do.writeFileAtomicSync)(A,F),Q}async function WN(A,Q,B){if(B?.ensureDir)await m6.default.promises.mkdir(Co.default.dirname(A),{recursive:!0});let E=i1(B,"space"),I=i1(B,"json5"),C=i1(B,"addNewLineAtEOF"),D;try{if(I)D=vM.default.stringify(Q,null,E);else D=JSON.stringify(Q,null,E)}catch(Y){throw new xF.default(`Couldn't JSON.stringify object for file: ${A}`,Y)}let F=C?`${D}
`:D;return await(0,Do.writeFileAtomic)(A,F),Q}function rs(A,Q,B,E){let I=n1(A,E);return ZN(A,{...I,[Q]:B},E)}async function ts(A,Q,B,E){let I=await a1(A,E);return WN(A,{...I,[Q]:B},E)}async function es(A,Q,B){let E=await a1(A,B);if(Array.isArray(Q))Object.assign(E,...Q);else Object.assign(E,Q);return WN(A,E,B)}function Ao(A,Q,B){let E=n1(A,B);if(Array.isArray(Q))Object.assign(E,...Q);else Object.assign(E,Q);return ZN(A,E,B)}async function Qo(A,Q,B){return SM(A,[Q],B)}function Bo(A,Q,B){return yM(A,[Q],B)}async function SM(A,Q,B){let E=await a1(A,B),I=!1;for(let C=0;C<Q.length;C++){let D=Q[C];if(E.hasOwnProperty(D))delete E[D],I=!0}if(I)return WN(A,E,B);return E}function yM(A,Q,B){let E=n1(A,B),I=!1;for(let C=0;C<Q.length;C++){let D=Q[C];if(E.hasOwnProperty(D))delete E[D],I=!0}if(I)return ZN(A,E,B);return E}async function Eo(A,Q){let B=await a1(A,Q);return WN(A,B,Q)}function Io(A,Q){return ZN(A,n1(A,Q),Q)}function VPA(A={}){if(A.jsonParseErrorDefault===void 0)return A.default;else return A.jsonParseErrorDefault}function Yo(A={}){if(A.cantReadFileDefault===void 0)return A.default;else return A.cantReadFileDefault}function i1(A,Q){if(A){if(A[Q]!==void 0)return A[Q]}return LPA[Q]}function zPA(A,Q){if("lineNumber"in A&&"columnNumber"in A)return{line:A.lineNumber,column:A.columnNumber};let B=/at position (\d+)/.exec(A.message);if(B){let E=parseInt(B[1],10),I=Q.slice(0,E+1).split(`
`);return{line:I.length,column:I[I.length-1].length}}return null}function bM(A,Q){if(A?.trim()==="")throw new xF.EmptyJsonFileError(Q)}});var Wo=K((c6)=>{Object.defineProperty(c6,"__esModule",{value:!0});c6.LRUCache=void 0;var XN=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,No=new Set,uM=typeof process==="object"&&!!process?process:{},Uo=(A,Q,B,E)=>{typeof uM.emitWarning==="function"?uM.emitWarning(A,Q,B,E):console.error(`[${B}] ${Q}: ${A}`)},d6=globalThis.AbortController,Go=globalThis.AbortSignal;if(typeof d6>"u"){Go=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(E,I){this._onabort.push(I)}},d6=class{constructor(){Q()}signal=new Go;abort(E){if(this.signal.aborted)return;this.signal.reason=E,this.signal.aborted=!0;for(let I of this.signal._onabort)I(E);this.signal.onabort?.(E)}};let A=uM.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",Q=()=>{if(!A)return;A=!1,Uo("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",Q)}}var HPA=(A)=>!No.has(A),OlA=Symbol("type"),hF=(A)=>A&&A===Math.floor(A)&&A>0&&isFinite(A),Zo=(A)=>!hF(A)?null:A<=Math.pow(2,8)?Uint8Array:A<=Math.pow(2,16)?Uint16Array:A<=Math.pow(2,32)?Uint32Array:A<=Number.MAX_SAFE_INTEGER?VU:null;class VU extends Array{constructor(A){super(A);this.fill(0)}}class $N{heap;length;static#A=!1;static create(A){let Q=Zo(A);if(!Q)return[];$N.#A=!0;let B=new $N(A,Q);return $N.#A=!1,B}constructor(A,Q){if(!$N.#A)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new Q(A),this.length=0}push(A){this.heap[this.length++]=A}pop(){return this.heap[--this.length]}}class mM{#A;#I;#Q;#B;#K;#k;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#Y;#L;#F;#D;#E;#U;#W;#N;#J;#V;#G;#z;#H;#X;#w;#O;#Z;static unsafeExposeInternals(A){return{starts:A.#H,ttls:A.#X,sizes:A.#z,keyMap:A.#F,keyList:A.#D,valList:A.#E,next:A.#U,prev:A.#W,get head(){return A.#N},get tail(){return A.#J},free:A.#V,isBackgroundFetch:(Q)=>A.#C(Q),backgroundFetch:(Q,B,E,I)=>A.#h(Q,B,E,I),moveToTail:(Q)=>A.#P(Q),indexes:(Q)=>A.#M(Q),rindexes:(Q)=>A.#R(Q),isStale:(Q)=>A.#$(Q)}}get max(){return this.#A}get maxSize(){return this.#I}get calculatedSize(){return this.#L}get size(){return this.#Y}get fetchMethod(){return this.#K}get memoMethod(){return this.#k}get dispose(){return this.#Q}get disposeAfter(){return this.#B}constructor(A){let{max:Q=0,ttl:B,ttlResolution:E=1,ttlAutopurge:I,updateAgeOnGet:C,updateAgeOnHas:D,allowStale:F,dispose:Y,disposeAfter:J,noDisposeOnSet:G,noUpdateTTL:N,maxSize:U=0,maxEntrySize:Z=0,sizeCalculation:X,fetchMethod:$,memoMethod:V,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:g,allowStaleOnFetchRejection:M,allowStaleOnFetchAbort:k,ignoreFetchAbort:d}=A;if(Q!==0&&!hF(Q))throw TypeError("max option must be a nonnegative integer");let t=Q?Zo(Q):Array;if(!t)throw Error("invalid max value: "+Q);if(this.#A=Q,this.#I=U,this.maxEntrySize=Z||this.#I,this.sizeCalculation=X,this.sizeCalculation){if(!this.#I&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!=="function")throw TypeError("sizeCalculation set to non-function")}if(V!==void 0&&typeof V!=="function")throw TypeError("memoMethod must be a function if defined");if(this.#k=V,$!==void 0&&typeof $!=="function")throw TypeError("fetchMethod must be a function if specified");if(this.#K=$,this.#O=!!$,this.#F=new Map,this.#D=Array(Q).fill(void 0),this.#E=Array(Q).fill(void 0),this.#U=new t(Q),this.#W=new t(Q),this.#N=0,this.#J=0,this.#V=$N.create(Q),this.#Y=0,this.#L=0,typeof Y==="function")this.#Q=Y;if(typeof J==="function")this.#B=J,this.#G=[];else this.#B=void 0,this.#G=void 0;if(this.#w=!!this.#Q,this.#Z=!!this.#B,this.noDisposeOnSet=!!G,this.noUpdateTTL=!!N,this.noDeleteOnFetchRejection=!!w,this.allowStaleOnFetchRejection=!!M,this.allowStaleOnFetchAbort=!!k,this.ignoreFetchAbort=!!d,this.maxEntrySize!==0){if(this.#I!==0){if(!hF(this.#I))throw TypeError("maxSize must be a positive integer if specified")}if(!hF(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#m()}if(this.allowStale=!!F,this.noDeleteOnStaleGet=!!g,this.updateAgeOnGet=!!C,this.updateAgeOnHas=!!D,this.ttlResolution=hF(E)||E===0?E:1,this.ttlAutopurge=!!I,this.ttl=B||0,this.ttl){if(!hF(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#S()}if(this.#A===0&&this.ttl===0&&this.#I===0)t Line truncated
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},5873:(I,C,D)=>{let F=D(6330),Y=D(8750),J=D(5207),G=(U="",Z="",X=!1)=>{let $=[];if(U=[].concat(U),Z=[].concat(Z),!Z.length)return U;if(!U.length)return X?J.flatten(Z).map((V)=>`{${V}}`):Z;for(let V of U)if(Array.isArray(V))for(let w of V)$.push(G(w,Z,X));else for(let w of Z){if(X===!0&&typeof w==="string")w=`{${w}}`;$.push(Array.isArray(w)?G(V,w,X):V+w)}return J.flatten($)},N=(U,Z={})=>{let X=Z.rangeLimit===void 0?1000:Z.rangeLimit,$=(V,w={})=>{V.queue=[];let g=w,M=w.queue;while(g.type!=="brace"&&g.type!=="root"&&g.parent)g=g.parent,M=g.queue;if(V.invalid||V.dollar){M.push(G(M.pop(),Y(V,Z)));return}if(V.type==="brace"&&V.invalid!==!0&&V.nodes.length===2){M.push(G(M.pop(),["{}"]));return}if(V.nodes&&V.ranges>0){let m=J.reduce(V.nodes);if(J.exceedsLimit(...m,Z.step,X))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let n=F(...m,Z);if(n.length===0)n=Y(V,Z);M.push(G(M.pop(),n)),V.nodes=[];return}let k=J.encloseBrace(V),d=V.queue,t=V;while(t.type!=="brace"&&t.type!=="root"&&t.parent)t=t.parent,d=t.queue;for(let m=0;m<V.nodes.length;m++){let n=V.nodes[m];if(n.type==="comma"&&V.type==="brace"){if(m===1)d.push("");d.push("");continue}if(n.type==="close"){M.push(G(M.pop(),d,k));continue}if(n.value&&n.type!=="open"){d.push(G(d.pop(),n.value));continue}if(n.nodes)$(n,V)}return d};return J.flatten($(U))};I.exports=N},6477:(I,C,D)=>{let F=D(8750),{MAX_LENGTH:Y,CHAR_BACKSLASH:J,CHAR_BACKTICK:G,CHAR_COMMA:N,CHAR_DOT:U,CHAR_LEFT_PARENTHESES:Z,CHAR_RIGHT_PARENTHESES:X,CHAR_LEFT_CURLY_BRACE:$,CHAR_RIGHT_CURLY_BRACE:V,CHAR_LEFT_SQUARE_BRACKET:w,CHAR_RIGHT_SQUARE_BRACKET:g,CHAR_DOUBLE_QUOTE:M,CHAR_SINGLE_QUOTE:k,CHAR_NO_BREAK_SPACE:d,CHAR_ZERO_WIDTH_NOBREAK_SPACE:t}=D(8774),m=(n,QA={})=>{if(typeof n!=="string")throw TypeError("Expected a string");let x=QA||{},l=typeof x.maxLength==="number"?Math.min(Y,x.maxLength):Y;if(n.length>l)throw SyntaxError(`Input length (${n.length}), exceeds max characters (${l})`);let u={type:"root",input:n,nodes:[]},CA=[u],i=u,KA=u,HA=0,uA=n.length,cA=0,yA=0,JA,PA=()=>n[cA++],dA=(IA)=>{if(IA.type==="text"&&KA.type==="dot")KA.type="text";if(KA&&KA.type==="text"&&IA.type==="text"){KA.value+=IA.value;return}return i.nodes.push(IA),IA.parent=i,IA.prev=KA,KA=IA,IA};dA({type:"bos"});while(cA<uA){if(i=CA[CA.length-1],JA=PA(),JA===t||JA===d)continue;if(JA===J){dA({type:"text",value:(QA.keepEscaping?JA:"")+PA()});continue}if(JA===g){dA({type:"text",value:"\\"+JA});continue}if(JA===w){HA++;let IA;while(cA<uA&&(IA=PA())){if(JA+=IA,IA===w){HA++;continue}if(IA===J){JA+=PA();continue}if(IA===g){if(HA--,HA===0)break}}dA({type:"text",value:JA});continue}if(JA===Z){i=dA({type:"paren",nodes:[]}),CA.push(i),dA({type:"text",value:JA});continue}if(JA===X){if(i.type!=="paren"){dA({type:"text",value:JA});continue}i=CA.pop(),dA({type:"text",value:JA}),i=CA[CA.length-1];continue}if(JA===M||JA===k||JA===G){let IA=JA,kA;if(QA.keepQuotes!==!0)JA="";while(cA<uA&&(kA=PA())){if(kA===J){JA+=kA+PA();continue}if(kA===IA){if(QA.keepQuotes===!0)JA+=kA;break}JA+=kA}dA({type:"text",value:JA});continue}if(JA===$){yA++;let kA={type:"brace",open:!0,close:!1,dollar:KA.value&&KA.value.slice(-1)==="$"||i.dollar===!0,depth:yA,commas:0,ranges:0,nodes:[]};i=dA(kA),CA.push(i),dA({type:"open",value:JA});continue}if(JA===V){if(i.type!=="brace"){dA({type:"text",value:JA});continue}let IA="close";i=CA.pop(),i.close=!0,dA({type:IA,value:JA}),yA--,i=CA[CA.length-1];continue}if(JA===N&&yA>0){if(i.ranges>0){i.ranges=0;let IA=i.nodes.shift();i.nodes=[IA,{type:"text",value:F(i)}]}dA({type:"comma",value:JA}),i.commas++;continue}if(JA===U&&yA>0&&i.commas===0){let IA=i.nodes;if(yA===0||IA.length===0){dA({type:"text",value:JA});continue}if(KA.type==="dot"){if(i.range=[],KA.value+=JA,KA.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,KA.type="text";continue}i.ranges++,i.args=[];continue}if(KA.type==="range"){IA.pop();let kA=IA[IA.length-1];kA.value+=KA.value+JA,KA=kA,i.ranges--;continue}dA({type:"dot",value:JA});continue}dA({type:"text",value:JA})}do if(i=CA.pop(),i.type!=="root"){i.nodes.forEach((DQ)=>{if(!DQ.nodes){if(DQ.type==="open")DQ.isOpen=!0;if(DQ.type==="close")DQ.isClose=!0;if(!DQ.nodes)DQ.type="text";DQ.invalid=!0}});let IA=CA[CA.length-1],kA=IA.nodes.indexOf(i);IA.nodes.splice(kA,1,...i.nodes)}while(CA.length>0);return dA({type:"eos"}),u};I.exports=m},8750:(I,C,D)=>{let F=D(5207);I.exports=(Y,J={})=>{let G=(N,U={})=>{let Z=J.escapeInvalid&&F.isInvalidBrace(U),X=N.invalid===!0&&J.escapeInvalid===!0,$="";if(N.value){if((Z||X)&&F.isOpenOrClose(N))return"\\"+N.value;return N.value}if(N.value)return N.value;if(N.nodes)for(let V of N.nodes)$Line truncated
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*/let F=D(3837),Y=D(1861),J=(x)=>x!==null&&typeof x==="object"&&!Array.isArray(x),G=(x)=>(l)=>x===!0?Number(l):String(l),N=(x)=>typeof x==="number"||typeof x==="string"&&x!=="",U=(x)=>Number.isInteger(+x),Z=(x)=>{let l=`${x}`,u=-1;if(l[0]==="-")l=l.slice(1);if(l==="0")return!1;while(l[++u]==="0");return u>0},X=(x,l,u)=>{if(typeof x==="string"||typeof l==="string")return!0;return u.stringify===!0},$=(x,l,u)=>{if(l>0){let CA=x[0]==="-"?"-":"";if(CA)x=x.slice(1);x=CA+x.padStart(CA?l-1:l,"0")}if(u===!1)return String(x);return x},V=(x,l)=>{let u=x[0]==="-"?"-":"";if(u)x=x.slice(1),l--;while(x.length<l)x="0"+x;return u?"-"+x:x},w=(x,l,u)=>{x.negatives.sort((uA,cA)=>uA<cA?-1:uA>cA?1:0),x.positives.sort((uA,cA)=>uA<cA?-1:uA>cA?1:0);let CA=l.capture?"":"?:",i="",KA="",HA;if(x.positives.length)i=x.positives.map((uA)=>V(String(uA),u)).join("|");if(x.negatives.length)KA=`-(${CA}${x.negatives.map((uA)=>V(String(uA),u)).join("|")})`;if(i&&KA)HA=`${i}|${KA}`;else HA=i||KA;if(l.wrap)return`(${CA}${HA})`;return HA},g=(x,l,u,CA)=>{if(u)return Y(x,l,{wrap:!1,...CA});let i=String.fromCharCode(x);if(x===l)return i;let KA=String.fromCharCode(l);return`[${i}-${KA}]`},M=(x,l,u)=>{if(Array.isArray(x)){let CA=u.wrap===!0,i=u.capture?"":"?:";return CA?`(${i}${x.join("|")})`:x.join("|")}return Y(x,l,u)},k=(...x)=>RangeError("Invalid range arguments: "+F.inspect(...x)),d=(x,l,u)=>{if(u.strictRanges===!0)throw k([x,l]);return[]},t=(x,l)=>{if(l.strictRanges===!0)throw TypeError(`Expected step "${x}" to be a number`);return[]},m=(x,l,u=1,CA={})=>{let i=Number(x),KA=Number(l);if(!Number.isInteger(i)||!Number.isInteger(KA)){if(CA.strictRanges===!0)throw k([x,l]);return[]}if(i===0)i=0;if(KA===0)KA=0;let HA=i>KA,uA=String(x),cA=String(l),yA=String(u);u=Math.max(Math.abs(u),1);let JA=Z(uA)||Z(cA)||Z(yA),PA=JA?Math.max(uA.length,cA.length,yA.length):0,dA=JA===!1&&X(x,l,CA)===!1,IA=CA.transform||G(dA);if(CA.toRegex&&u===1)return g(V(x,PA),V(l,PA),!0,CA);let kA={negatives:[],positives:[]},DQ=(BA)=>kA[BA<0?"negatives":"positives"].push(Math.abs(BA)),rQ=[],jQ=0;while(HA?i>=KA:i<=KA){if(CA.toRegex===!0&&u>1)DQ(i);else rQ.push($(IA(i,jQ),PA,dA));i=HA?i-u:i+u,jQ++}if(CA.toRegex===!0)return u>1?w(kA,CA,PA):M(rQ,null,{wrap:!1,...CA});return rQ},n=(x,l,u=1,CA={})=>{if(!U(x)&&x.length>1||!U(l)&&l.length>1)return d(x,l,CA);let i=CA.transform||((dA)=>String.fromCharCode(dA)),KA=`${x}`.charCodeAt(0),HA=`${l}`.charCodeAt(0),uA=KA>HA,cA=Math.min(KA,HA),yA=Math.max(KA,HA);if(CA.toRegex&&u===1)return g(cA,yA,!1,CA);let JA=[],PA=0;while(uA?KA>=HA:KA<=HA)JA.push(i(KA,PA)),KA=uA?KA-u:KA+u,PA++;if(CA.toRegex===!0)return M(JA,null,{wrap:!1,options:CA});return JA},QA=(x,l,u,CA={})=>{if(l==null&&N(x))return[x];if(!N(x)||!N(l))return d(x,l,CA);if(typeof u==="function")return QA(x,l,1,{transform:u});if(J(u))return QA(x,l,0,u);let i={...CA};if(i.capture===!0)i.wrap=!0;if(u=u||i.step||1,!U(u)){if(u!=null&&!J(u))return t(u,i);return QA(x,l,1,u)}if(U(x)&&U(l))return m(x,l,u,i);return n(x,l,Math.max(Math.abs(u),1),i)};I.exports=QA},5680:(I)=>{/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/I.exports=function(C){if(typeof C==="number")return C-C===0;if(typeof C==="string"&&C.trim()!=="")return Number.isFinite?Number.isFinite(+C):isFinite(+C);return!1}},1917:(I,C,D)=>{var F=D(1161),Y=D(8866);function J(G,N){return function(){throw Error("Function yaml."+G+" is removed in js-yaml 4. Use yaml."+N+" instead, which is now safe by default.")}}I.exports.Type=D(6073),I.exports.Schema=D(1082),I.exports.FAILSAFE_SCHEMA=D(8562),I.exports.JSON_SCHEMA=D(1035),I.exports.CORE_SCHEMA=D(2011),I.exports.DEFAULT_SCHEMA=D(8759),I.exports.load=F.load,I.exports.loadAll=F.loadAll,I.exports.dump=Y.dump,I.exports.YAMLException=D(8179),I.exports.types={binary:D(7900),float:D(2705),map:D(6150),null:D(721),pairs:D(6860),set:D(9548),timestamp:D(9212),bool:D(4993),int:D(1615),merge:D(6104),omap:D(9046),seq:D(7283),str:D(3619)},I.exports.safeLoad=J("safeLoad","load"),I.exports.safeLoadAll=J("safeLoadAll","loadAll"),I.exports.safeDump=J("safeDump","dump")},6829:(I)=>{function C(N){return typeof N>"u"||N===null}function D(N){return typeof N==="object"&&N!==null}function F(N){if(Array.isArray(N))return N;else if(C(N))return[];return[N]}function Y(N,U){var Z,X,$,V;if(U){V=Object.keys(U);for(Z=0,X=V.length;Z<X;Z+=1)$=V[Z],N[$]=U[$]}return N}function J(N,U){var Z="",X;for(X=0;X<U;X+=1)Z+=N;return Z}function G(N){return N===0&&Number.NEGATIVE_INFINITY===1/N}I.exports.isNothing=C,I.exports.isObject=D,I.exports.toArray=F,I.exports.repeat=J,I.exports.isNegativeZero=G,I.exports.extend=Y},8866:(I,C,D)=>{var F=D(6829),Y=D(8179),J=D(8759),G=Object.prototype.toString,N=Object.prototype.hasOwnProperty,U=65279,Z=9,X=10,$=13,V=32,w=33,g=34,M=35,k=37,d=38,t=39,m=42,n=44,QA=45,x=58,l=61,u=62,CA=63,i=64,KA=91,HA=93,uA=96,cA=123,yA=124,JA=125,PA={};PA[0]="\\0",PA[7]="\\a",PA[8]="\\b",PA[9]="\\t",PA[10]="\\n",PA[11]="\\v",PA[12]="\\f",PA[13]="\\r",PA[27]="\\e",PA[34]="\\\"",PA[92]="\\\\",PA[133]="\\N",PA[160]="\\_",PA[8232]="\\L",PA[8233]="\\P";var dA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],IA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function kA(z,q){var f,v,a,r,$A,ZA,VA;if(q===null)return{};f={},v=Object.keys(q);for(a=0,r=v.length;a<r;a+=1){if($A=v[a],ZA=String(q[$A]),$A.slice(0,2)==="!!")$A="tag:yaml.org,2002:"+$A.slice(2);if(VA=z.compiledTypeMap.fallback[$A],VA&&N.call(VA.styleAliases,ZA))ZA=VA.styleAliases[ZA];f[$A]=ZA}return f}function DQ(z){var q,f,v;if(q=z.toString(16).toUpperCase(),z<=255)f="x",v=2;else if(z<=65535)f="u",v=4;else if(z<=4294967295)f="U",v=8;else throw new Y("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+f+F.repeat("0",v-q.length)+q}var rQ=1,jQ=2;function BA(z){this.schema=z.schema||J,this.indent=Math.max(1,z.indent||2),this.noArrayIndent=z.noArrayIndent||!1,this.skipInvalid=z.skipInvalid||!1,this.flowLevel=F.isNothing(z.flowLevel)?-1:z.flowLevel,this.styleMap=kA(this.schema,z.styles||null),this.sortKeys=z.sortKeys||!1,this.lineWidth=z.lineWidth||80,this.noRefs=z.noRefs||!1,this.noCompatMode=z.noCompatMode||!1,this.condenseFlow=z.condenseFlow||!1,this.quotingType=z.quotingType==='"'?jQ:rQ,this.forceQuotes=z.forceQuotes||!1,this.replacer=typeof z.replacer==="function"?z.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function HB(z,q){var f=F.repeat(" ",q),v=0,a=-1,r="",$A,ZA=z.length;while(v<ZA){if(a=z.indexOf(`
`,v),a===-1)$A=z.slice(v),v=ZA;else $A=z.slice(v,a+1),v=a+1;if($A.length&&$A!==`
`)r+=f;r+=$A}return r}function WQ(z,q){return`
`+F.repeat(" ",z.indent*q)}function NB(z,q){var f,v,a;for(f=0,v=z.implicitTypes.length;f<v;f+=1)if(a=z.implicitTypes[f],a.resolve(q))return!0;return!1}function e(z){return z===V||z===Z}function EA(z){return 32<=z&&z<=126||161<=z&&z<=55295&&z!==8232&&z!==8233||57344<=z&&z<=65533&&z!==U||65536<=z&&z<=1114111}function BQ(z){return EA(z)&&z!==U&&z!==$&&z!==X}function tA(z,q,f){var v=BQ(z),a=v&&!e(z);return(f?v:v&&z!==n&&z!==KA&&z!==HA&&z!==cA&&z!==JA)&&z!==M&&!(q===x&&!a)||BQ(q)&&!e(q)&&z===M||q===x&&a}function iB(z){return EA(z)&&z!==U&&!e(z)&&z!==QA&&z!==CA&&z!==x&&z!==n&&z!==KA&&z!==HA&&z!==cA&&z!==JA&&z!==M&&z!==d&&z!==m&&z!==w&&z!==yA&&z!==l&&z!==u&&z!==t&&z!==g&&z!==k&&z!==i&&z!==uA}function AI(z){return!e(z)&&z!==x}function qQ(z,q){var f=z.charCodeAt(q),v;if(f>=55296&&f<=56319&&q+1<z.length){if(v=z.charCodeAt(q+1),v>=56320&&v<=57343)return(f-55296)*1024+v-56320+65536}return f}function aQ(z){var q=/^\n* /;return q.test(z)}var FC=1,YE=2,jB=3,_A=4,xQ=5;function J0(z,q,f,v,a,r,$A,ZA){var VA,SA=0,hQ=null,tQ=!1,IB=!1,OR=v!==-1,ON=-1,qN=iB(qQ(z,0))&&AI(qQ(z,z.length-1));if(q||$A)for(VA=0;VA<z.length;SA>=65536?VA+=2:VA++){if(SA=qQ(z,VA),!EA(SA))return xQ;qN=qN&&tA(SA,hQ,ZA),hQ=SA}else{for(VA=0;VA<z.length;SA>=65536?VA+=2:VA++){if(SA=qQ(z,VA),SA===X){if(tQ=!0,OR)IB=IB||VA-ON-1>v&&z[ON+1]!==" ",ON=VA}else if(!EA(SA))return xQ;qN=qN&&tA(SA,hQ,ZA),hQ=SA}IB=IB||OR&&(VA-ON-1>v&&z[ON+1]!==" ")}if(!tQ&&!IB){if(qN&&!$A&&!a(z))return FC;return r===jQ?xQ:YE}if(f>9&&aQ(z))return xQ;if(!$A)return IB?_A:jB;return r===jQ?xQ:YE}function wA(z,q,f,v,a){z.dump=function(){if(q.length===0)return z.quotingType===jQ?'""':"''";if(!z.noCompatMode){if(dA.indexOf(q)!==-1||IA.test(q))return z.quotingType===jQ?'"'+q+'"':"'"+q+"'"}var r=z.indent*Math.max(1,f),$A=z.lineWidth===-1?-1:Math.max(Math.min(z.lineWidth,40),z.lineWidth-r),ZA=v||z.flowLevel>-1&&f>=z.flowLevel;function VA(SA){return NB(z,SA)}switch(J0(q,ZA,z.indent,$A,VA,z.quotingType,z.forceQuotes&&!v,a)){case FC:return q;case YE:return"'"+q.replace(/'/g,"''")+"'";case jB:return"|"+VQ(q,z.indent)+W(HB(q,r));case _A:return">"+VQ(q,z.indent)+W(HB(b(q,$A),r));case xQ:return'"'+NA(q,$A)+'"';default:throw new Y("impossible error: invalid scalar style")}}()}function VQ(z,q){var f=aQ(z)?String(q):"",v=z[z.length-1]===`
`,a=v&&(z[z.length-2]===`
`||z===`
`),r=a?"+":v?"":"-";return f+r+`
`}function W(z){return z[z.length-1]===`
`?z.slice(0,-1):z}function b(z,q){var f=/(\n+)([^\n]*)/g,v=function(){var SA=z.indexOf(`
`);return SA=SA!==-1?SA:z.length,f.lastIndex=SA,p(z.slice(0,SA),q)}(),a=z[0]===`
`||z[0]===" ",r,$A;while($A=f.exec(z)){var ZA=$A[1],VA=$A[2];r=VA[0]===" ",v+=ZA+(!a&&!r&&VA!==""?`
`:"")+p(VA,q),a=r}return v}function p(z,q){if(z===""||z[0]===" ")return z;var f=/ [^ ]/g,v,a=0,r,$A=0,ZA=0,VA="";while(v=f.exec(z)){if(ZA=v.index,ZA-a>q)r=$A>a?$A:ZA,VA+=`
`+z.slice(a,r),a=r+1;$A=ZA}if(VA+=`
`,z.length-a>q&&$A>a)VA+=z.slice(a,$A)+`
`+z.slice($A+1);else VA+=z.slice(a);return VA.slice(1)}function NA(z){var q="",f=0,v;for(var a=0;a<z.length;f>=65536?a+=2:a++)if(f=qQ(z,a),v=PA[f],!v&&EA(f)){if(q+=z[a],f>=65536)q+=z[a+1]}else q+=v||DQ(f);return q}function AA(z,q,f){var v="",a=z.tag,r,$A,ZA;for(r=0,$A=f.length;r<$A;r+=1){if(ZA=f[r],z.replacer)ZA=z.replacer.call(f,String(r),ZA);if(j(z,q,ZA,!1,!1)||typeof ZA>"u"&&j(z,q,null,!1,!1)){if(v!=="")v+=","+(!z.condenseFlow?" ":"");v+=z.dump}}z.tag=a,z.dump="["+v+"]"}function LA(z,q,f,v){var a="",r=z.tag,$A,ZA,VA;for($A=0,ZA=f.length;$A<ZA;$A+=1){if(VA=f[$A],z.replacer)VA=z.replacer.call(f,String($A),VA);if(j(z,q+1,VA,!0,!0,!1,!0)||typeof VA>"u"&&j(z,q+1,null,!0,!0,!1,!0)){if(!v||a!=="")a+=WQ(z,q);if(z.dump&&X===z.dump.charCodeAt(0))a+="-";else a+="- ";a+=z.dump}}z.tag=r,z.dump=a||"[]"}function UA(z,q,f){var v="",a=z.tag,r=Object.keys(f),$A,ZA,VA,SA,hQ;for($A=0,ZA=r.length;$A<ZA;$A+=1){if(hQ="",v!=="")hQ+=", ";if(z.condenseFlow)hQ+='"';if(VA=r[$A],SA=f[VA],z.replacer)SA=z.replacer.call(f,VA,SA);if(!j(z,q,VA,!1,!1))continue;if(z.dump.length>1024)hQ+="? ";if(hQ+=z.dump+(z.condenseFlow?'"':"")+":"+(z.condenseFlow?"":" "),!j(z,q,SA,!1,!1))continue;hQ+=z.dump,v+=hQ}z.tag=a,z.dump="{"+v+"}"}function L(z,q,f,v){var a="",r=z.tag,$A=Object.keys(f),ZA,VA,SA,hQ,tQ,IB;if(z.sortKeys===!0)$A.sort();else if(typeof z.sortKeys==="function")$A.sort(z.sortKeys);else if(z.sortKeys)throw new Y("sortKeys must be a boolean or a function");for(ZA=0,VA=$A.length;ZA<VA;ZA+=1){if(IB="",!v||a!=="")IB+=WQ(z,q);if(SA=$A[ZA],hQ=f[SA],z.replacer)hQ=z.replacer.call(f,SA,hQ);if(!j(z,q+1,SA,!0,!0,!0))continue;if(tQ=z.tag!==null&&z.tag!=="?"||z.dump&&z.dump.length>1024,tQ)if(z.dump&&X===z.dump.charCodeAt(0))IB+="?";else IB+="? ";if(IB+=z.dump,tQ)IB+=WQ(z,q);if(!j(z,q+1,hQ,!0,tQ))continue;if(z.dump&&X===z.dump.charCodeAt(0))IB+=":";else IB+=": ";IB+=z.dump,a+=IB}z.tag=r,z.dump=a||"{}"}function H(z,q,f){var v,a,r,$A,ZA,VA;a=f?z.explicitTypes:z.implicitTypes;for(r=0,$A=a.length;r<$A;r+=1)if(ZA=a[r],(ZA.instanceOf||ZA.predicate)&&(!ZA.instanceOf||typeof q==="object"&&q instanceof ZA.instanceOf)&&(!ZA.predicate||ZA.predicate(q))){if(f)if(ZA.multi&&ZA.representName)z.tag=ZA.representName(q);else z.tag=ZA.tag;else z.tag="?";if(ZA.represent){if(VA=z.styleMap[ZA.tag]||ZA.defaultStyle,G.call(ZA.represent)==="[object Function]")v=ZA.represent(q,VA);else if(N.call(ZA.represent,VA))v=ZA.represent[VA](q,VA);else throw new Y("!<"+ZA.tag+'> tag resolver accepts not "'+VA+'" style');z.dump=v}return!0}return!1}function j(z,q,f,v,a,r,$A){if(z.tag=null,z.dump=f,!H(z,f,!1))H(z,f,!0);var ZA=G.call(z.dump),VA=v,SA;if(v)v=z.flowLevel<0||z.flowLevel>q;var hQ=ZA==="[object Object]"||ZA==="[object Array]",tQ,IB;if(hQ)tQ=z.duplicates.indexOf(f),IB=tQ!==-1;if(z.tag!==null&&z.tag!=="?"||IB||z.indent!==2&&q>0)a=!1;if(IB&&z.usedDuplicates[tQ])z.dump="*ref_"+tQ;else{if(hQ&&IB&&!z.usedDuplicates[tQ])z.usedDuplicates[tQ]=!0;if(ZA==="[object Object]"){if(v&&Object.keys(z.dump).length!==0){if(L(z,q,z.dump,a),IB)z.dump="&ref_"+tQ+z.dump}else if(UA(z,q,z.dump),IB)z.dump="&ref_"+tQ+" "+z.dump}else if(ZA==="[object Array]"){if(v&&z.dump.length!==0){if(z.noArrayIndent&&!$A&&q>0)LA(z,q-1,z.dump,a);else LA(z,q,z.dump,a);if(IB)z.dump="&ref_"+tQ+z.dump}else if(AA(z,q,z.dump),IB)z.dump="&ref_"+tQ+" "+z.dump}else if(ZA==="[object String]"){if(z.tag!=="?")wA(z,z.dump,q,r,VA)}else if(ZA==="[object Undefined]")return!1;else{if(z.skipInvalid)return!1;throw new Y("unacceptable kind of an object to dump "+ZA)}if(z.tag!==null&&z.tag!=="?"){if(SA=encodeURI(z.tag[0]==="!"?z.tag.slice(1):z.tag).replace(/!/g,"%21"),z.tag[0]==="!")SA="!"+SA;else if(SA.slice(0,18)==="tag:yaml.org,2002:")SA="!!"+SA.slice(18);else SA="!<"+SA+">";z.dump=SA+" "+z.dump}}return!0}function h(z,q){var f=[],v=[],a,r;P(z,f,v);for(a=0,r=v.length;a<r;a+=1)q.duplicates.push(f[v[a]]);q.usedDuplicates=Array(r)}function P(z,q,f){var v,a,r;if(z!==null&&typeof z==="object")if(a=q.indexOf(z),a!==-1){if(f.indexOf(a)===-1)f.push(a)}else if(q.push(z),Array.isArray(z))for(a=0,r=z.length;a<r;a+=1)P(z[a],q,f);else{v=Object.keys(z);for(a=0,r=v.length;a<r;a+=1)P(z[v[a]],q,f)}}function S(z,q){q=q||{};var f=new BA(q);if(!f.noRefs)h(z,f);var v=z;if(f.replacer)v=f.replacer.call({"":v},"",v);if(j(f,0,v,!0,!0))return f.dump+`
`;return""}I.exports.dump=S},8179:(I)=>{function C(F,Y){var J="",G=F.reason||"(unknown reason)";if(!F.mark)return G;if(F.mark.name)J+='in "'+F.mark.name+'" ';if(J+="("+(F.mark.line+1)+":"+(F.mark.column+1)+")",!Y&&F.mark.snippet)J+=`
`+F.mark.snippet;return G+" "+J}function D(F,Y){if(Error.call(this),this.name="YAMLException",this.reason=F,this.mark=Y,this.message=C(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D.prototype.toString=function(Y){return this.name+": "+C(this,Y)},I.exports=D},1161:(I,C,D)=>{var F=D(6829),Y=D(8179),J=D(6975),G=D(8759),N=Object.prototype.hasOwnProperty,U=1,Z=2,X=3,$=4,V=1,w=2,g=3,M=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,k=/[\x85\u2028\u2029]/,d=/[,\[\]\{\}]/,t=/^(?:!|!!|![a-z\-]+!)$/i,m=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function n(W){return Object.prototype.toString.call(W)}function QA(W){return W===10||W===13}function x(W){return W===9||W===32}function l(W){return W===9||W===32||W===10||W===13}function u(W){return W===44||W===91||W===93||W===123||W===125}function CA(W){var b;if(48<=W&&W<=57)return W-48;if(b=W|32,97<=b&&b<=102)return b-97+10;return-1}function i(W){if(W===120)return 2;if(W===117)return 4;if(W===85)return 8;return 0}function KA(W){if(48<=W&&W<=57)return W-48;return-1}function HA(W){return W===48?"\x00":W===97?"\x07":W===98?"\b":W===116?"\t":W===9?"\t":W===110?`
`:W===118?"\v":W===102?"\f":W===114?"\r":W===101?"\x1B":W===32?" ":W===34?'"':W===47?"/":W===92?"\\":W===78?"…":W===95?" ":W===76?"\u2028":W===80?"\u2029":""}function uA(W){if(W<=65535)return String.fromCharCode(W);return String.fromCharCode((W-65536>>10)+55296,(W-65536&1023)+56320)}var cA=Array(256),yA=Array(256);for(var JA=0;JA<256;JA++)cA[JA]=HA(JA)?1:0,yA[JA]=HA(JA);function PA(W,b){this.input=W,this.filename=b.filename||null,this.schema=b.schema||G,this.onWarning=b.onWarning||null,this.legacy=b.legacy||!1,this.json=b.json||!1,this.listener=b.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=W.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function dA(W,b){var p={name:W.filename,buffer:W.input.slice(0,-1),position:W.position,line:W.line,column:W.position-W.lineStart};return p.snippet=J(p),new Y(b,p)}function IA(W,b){throw dA(W,b)}function kA(W,b){if(W.onWarning)W.onWarning.call(null,dA(W,b))}var DQ={YAML:function(b,p,NA){var AA,LA,UA;if(b.version!==null)IA(b,"duplication of %YAML directive");if(NA.length!==1)IA(b,"YAML directive accepts exactly one argument");if(AA=/^([0-9]+)\.([0-9]+)$/.exec(NA[0]),AA===null)IA(b,"ill-formed argument of the YAML directive");if(LA=parseInt(AA[1],10),UA=parseInt(AA[2],10),LA!==1)IA(b,"unacceptable YAML version of the document");if(b.version=NA[0],b.checkLineBreaks=UA<2,UA!==1&&UA!==2)kA(b,"unsupported YAML version of the document")},TAG:function(b,p,NA){var AA,LA;if(NA.length!==2)IA(b,"TAG directive accepts exactly two arguments");if(AA=NA[0],LA=NA[1],!t.test(AA))IA(b,"ill-formed tag handle (first argument) of the TAG directive");if(N.call(b.tagMap,AA))IA(b,'there is a previously declared suffix for "'+AA+'" tag handle');if(!m.test(LA))IA(b,"ill-formed tag prefix (second argument) of the TAG directive");try{LA=decodeURIComponent(LA)}catch(UA){IA(b,"tag prefix is malformed: "+LA)}b.tagMap[AA]=LA}};function rQ(W,b,p,NA){var AA,LA,UA,L;if(b<p){if(L=W.input.slice(b,p),NA){for(AA=0,LA=L.length;AA<LA;AA+=1)if(UA=L.charCodeAt(AA),!(UA===9||32<=UA&&UA<=1114111))IA(W,"expected valid JSON character")}else if(M.test(L))IA(W,"the stream contains non-printable characters");W.result+=L}}function jQ(W,b,p,NA){var AA,LA,UA,L;if(!F.isObject(p))IA(W,"cannot merge mappings; the provided source object is unacceptable");AA=Object.keys(p);for(UA=0,L=AA.length;UA<L;UA+=1)if(LA=AA[UA],!N.call(b,LA))b[LA]=p[LA],NA[LA]=!0}function BA(W,b,p,NA,AA,LA,UA,L,H){var j,h;if(Array.isArray(AA)){AA=Array.prototype.slice.call(AA);for(j=0,h=AA.length;j<h;j+=1){if(Array.isArray(AA[j]))IA(W,"nested arrays are not supported inside keys");if(typeof AA==="object"&&n(AA[j])==="[object Object]")AA[j]="[object Object]"}}if(typeof AA==="object"&&n(AA)==="[object Object]")AA="[object Object]";if(AA=String(AA),b===null)b={};if(NA==="tag:yaml.org,2002:merge")if(Array.isArray(LA))for(j=0,h=LA.length;j<h;j+=1)jQ(W,b,LA[j],p);else jQ(W,b,LA,p);else{if(!W.json&&!N.call(p,AA)&&N.call(b,AA))W.line=UA||W.line,W.lineStart=L||W.lineStart,W.position=H||W.position,IA(W,"duplicated mapping key");if(AA==="__proto__")Object.defineProperty(b,AA,{configurable:!0,enumerable:!0,writable:!0,value:LA});else b[AA]=LA;delete p[AA]}return b}function HB(W){var b=W.input.charCodeAt(W.position);if(b===10)W.position++;else if(b===13){if(W.position++,W.input.charCodeAt(W.position)===10)W.position++}else IA(W,"a line break is expected");W.line+=1,W.lineStart=W.position,W.firstTabInLine=-1}function WQ(W,b,p){var NA=0,AA=W.input.charCodeAt(W.position);while(AA!==0){while(x(AA)){if(AA===9&&W.firstTabInLine===-1)W.firstTabInLine=W.position;AA=W.input.charCodeAt(++W.position)}if(b&&AA===35)do AA=W.input.charCodeAt(++W.position);while(AA!==10&&AA!==13&&AA!==0);if(QA(AA)){HB(W),AA=W.input.charCodeAt(W.position),NA++,W.lineIndent=0;while(AA===32)W.lineIndent++,AA=W.input.charCodeAt(++W.position)}else break}if(p!==-1&&NA!==0&&W.lineIndent<p)kA(W,"deficient indentation");return NA}function NB(W){var b=W.position,p;if(p=W.input.charCodeAt(b),(p===45||p===46)&&p===W.input.charCodeAt(b+1)&&p===W.input.charCodeAt(b+2)){if(b+=3,p=W.input.charCodeAt(b),p===0||l(p))return!0}return!1}function e(W,b){if(b===1)W.result+=" ";else if(b>1)W.result+=F.repeat(`
`,b-1)}function EA(W,b,p){var NA,AA,LA,UA,L,H,j,h,P=W.kind,S=W.result,z;if(z=W.input.charCodeAt(W.position),l(z)||u(z)||z===35||z===38||z===42||z===33||z===124||z===62||z===39||z===34||z===37||z===64||z===96)return!1;if(z===63||z===45){if(AA=W.input.charCodeAt(W.position+1),l(AA)||p&&u(AA))return!1}W.kind="scalar",W.result="",LA=UA=W.position,L=!1;while(z!==0){if(z===58){if(AA=W.input.charCodeAt(W.position+1),l(AA)||p&&u(AA))break}else if(z===35){if(NA=W.input.charCodeAt(W.position-1),l(NA))break}else if(W.position===W.lineStart&&NB(W)||p&&u(z))break;else if(QA(z))if(H=W.line,j=W.lineStart,h=W.lineIndent,WQ(W,!1,-1),W.lineIndent>=b){L=!0,z=W.input.charCodeAt(W.position);continue}else{W.position=UA,W.line=H,W.lineStart=j,W.lineIndent=h;break}if(L)rQ(W,LA,UA,!1),e(W,W.line-H),LA=UA=W.position,L=!1;if(!x(z))UA=W.position+1;z=W.input.charCodeAt(++W.position)}if(rQ(W,LA,UA,!1),W.result)return!0;return W.kind=P,W.result=S,!1}function BQ(W,b){var p,NA,AA;if(p=W.input.charCodeAt(W.position),p!==39)return!1;W.kind="scalar",W.result="",W.position++,NA=AA=W.position;while((p=W.input.charCodeAt(W.position))!==0)if(p===39)if(rQ(W,NA,W.position,!0),p=W.input.charCodeAt(++W.position),p===39)NA=W.position,W.position++,AA=W.position;else return!0;else if(QA(p))rQ(W,NA,AA,!0),e(W,WQ(W,!1,b)),NA=AA=W.position;else if(W.position===W.lineStart&&NB(W))IA(W,"unexpected end of the document within a single quoted scalar");else W.position++,AA=W.position;IA(W,"unexpected end of the stream within a single quoted scalar")}function tA(W,b){var p,NA,AA,LA,UA,L;if(L=W.input.charCodeAt(W.position),L!==34)return!1;W.kind="scalar",W.result="",W.position++,p=NA=W.position;while((L=W.input.charCodeAt(W.position))!==0)if(L===34)return rQ(W,p,W.position,!0),W.position++,!0;else if(L===92){if(rQ(W,p,W.position,!0),L=W.input.charCodeAt(++W.position),QA(L))WQ(W,!1,b);else if(L<256&&cA[L])W.result+=yA[L],W.position++;else if((UA=i(L))>0){AA=UA,LA=0;for(;AA>0;AA--)if(L=W.input.charCodeAt(++W.position),(UA=CA(L))>=0)LA=(LA<<4)+UA;else IA(W,"expected hexadecimal character");W.result+=uA(LA),W.position++}else IA(W,"unknown escape sequence");p=NA=W.position}else if(QA(L))rQ(W,p,NA,!0),e(W,WQ(W,!1,b)),p=NA=W.position;else if(W.position===W.lineStart&&NB(W))IA(W,"unexpected end of the document within a double quoted scalar");else W.position++,NA=W.position;IA(W,"unexpected end of the stream within a double quoted scalar")}function iB(W,b){var p=!0,NA,AA,LA,UA=W.tag,L,H=W.anchor,j,h,P,S,z,q=Object.create(null),f,v,a,r;if(r=W.input.charCodeAt(W.position),r===91)h=93,z=!1,L=[];else if(r===123)h=125,z=!0,L={};else return!1;if(W.anchor!==null)W.anchorMap[W.anchor]=L;r=W.input.charCodeAt(++W.position);while(r!==0){if(WQ(W,!0,b),r=W.input.charCodeAt(W.position),r===h)return W.position++,W.tag=UA,W.anchor=H,W.kind=z?"mapping":"sequence",W.result=L,!0;else if(!p)IA(W,"missed comma between flow collection entries");else if(r===44)IA(W,"expected the node content, but found ','");if(v=f=a=null,P=S=!1,r===63){if(j=W.input.charCodeAt(W.position+1),l(j))P=S=!0,W.position++,WQ(W,!0,b)}if(NA=W.line,AA=W.lineStart,LA=W.position,_A(W,b,U,!1,!0),v=W.tag,f=W.result,WQ(W,!0,b),r=W.input.charCodeAt(W.position),(S||W.line===NA)&&r===58)P=!0,r=W.input.charCodeAt(++W.position),WQ(W,!0,b),_A(W,b,U,!1,!0),a=W.result;if(z)BA(W,L,q,v,f,a,NA,AA,LA);else if(P)L.push(BA(W,null,q,v,f,a,NA,AA,LA));else L.push(f);if(WQ(W,!0,b),r=W.input.charCodeAt(W.position),r===44)p=!0,r=W.input.charCodeAt(++W.position);else p=!1}IA(W,"unexpected end of the stream within a flow collection")}function AI(W,b){var p,NA,AA=V,LA=!1,UA=!1,L=b,H=0,j=!1,h,P;if(P=W.input.charCodeAt(W.position),P===124)NA=!1;else if(P===62)NA=!0;else return!1;W.kind="scalar",W.result="";while(P!==0)if(P=W.input.charCodeAt(++W.position),P===43||P===45)if(V===AA)AA=P===43?g:w;else IA(W,"repeat of a chomping mode identifier");else if((h=KA(P))>=0)if(h===0)IA(W,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!UA)L=b+h-1,UA=!0;else IA(W,"repeat of an indentation width identifier");else break;if(x(P)){do P=W.input.charCodeAt(++W.position);while(x(P));if(P===35)do P=W.input.charCodeAt(++W.position);while(!QA(P)&&P!==0)}while(P!==0){HB(W),W.lineIndent=0,P=W.input.charCodeAt(W.position);while((!UA||W.lineIndent<L)&&P===32)W.lineIndent++,P=W.input.charCodeAt(++W.position);if(!UA&&W.lineIndent>L)L=W.lineIndent;if(QA(P)){H++;continue}if(W.lineIndent<L){if(AA===g)W.result+=F.repeat(`
`,LA?1+H:H);else if(AA===V){if(LA)W.result+=`
`}break}if(NA)if(x(P))j=!0,W.result+=F.repeat(`
`,LA?1+H:H);else if(j)j=!1,W.result+=F.repeat(`
`,H+1);else if(H===0){if(LA)W.result+=" "}else W.result+=F.repeat(`
`,H);else W.result+=F.repeat(`
`,LA?1+H:H);LA=!0,UA=!0,H=0,p=W.position;while(!QA(P)&&P!==0)P=W.input.charCodeAt(++W.position);rQ(W,p,W.position,!1)}return!0}function qQ(W,b){var p,NA=W.tag,AA=W.anchor,LA=[],UA,L=!1,H;if(W.firstTabInLine!==-1)return!1;if(W.anchor!==null)W.anchorMap[W.anchor]=LA;H=W.input.charCodeAt(W.position);while(H!==0){if(W.firstTabInLine!==-1)W.position=W.firstTabInLine,IA(W,"tab characters must not be used in indentation");if(H!==45)break;if(UA=W.input.charCodeAt(W.position+1),!l(UA))break;if(L=!0,W.position++,WQ(W,!0,-1)){if(W.lineIndent<=b){LA.push(null),H=W.input.charCodeAt(W.position);continue}}if(p=W.line,_A(W,b,X,!1,!0),LA.push(W.result),WQ(W,!0,-1),H=W.input.charCodeAt(W.position),(W.line===p||W.lineIndent>b)&&H!==0)IA(W,"bad indentation of a sequence entry");else if(W.lineIndent<b)break}if(L)return W.tag=NA,W.anchor=AA,W.kind="sequence",W.result=LA,!0;return!1}function aQ(W,b,p){var NA,AA,LA,UA,L,H,j=W.tag,h=W.anchor,P={},S=Object.create(null),z=null,q=null,f=null,v=!1,a=!1,r;if(W.firstTabInLine!==-1)return!1;if(W.anchor!==null)W.anchorMap[W.anchor]=P;r=W.input.charCodeAt(W.position);while(r!==0){if(!v&&W.firstTabInLine!==-1)W.position=W.firstTabInLine,IA(W,"tab characters must not be used in indentation");if(NA=W.input.charCodeAt(W.position+1),LA=W.line,(r===63||r===58)&&l(NA)){if(r===63){if(v)BA(W,P,S,z,q,null,UA,L,H),z=q=f=null;a=!0,v=!0,AA=!0}else if(v)v=!1,AA=!0;else IA(W,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");W.position+=1,r=NA}else{if(UA=W.line,L=W.lineStart,H=W.position,!_A(W,p,Z,!1,!0))break;if(W.line===LA){r=W.input.charCodeAt(W.position);while(x(r))r=W.input.charCodeAt(++W.position);if(r===58){if(r=W.input.charCodeAt(++W.position),!l(r))IA(W,"a whitespace character is expected after the key-value separator within a block mapping");if(v)BA(W,P,S,z,q,null,UA,L,H),z=q=f=null;a=!0,v=!1,AA=!1,z=W.tag,q=W.result}else if(a)IA(W,"can not read an implicit mapping pair; a colon is missed");else return W.tag=j,W.anchor=h,!0}else if(a)IA(W,"can not read a block mapping entry; a multiline key may not be an implicit key");else return W.tag=j,W.anchor=h,!0}if(W.line===LA||W.lineIndent>b){if(v)UA=W.line,L=W.lineStart,H=W.position;if(_A(W,b,$,!0,AA))if(v)q=W.result;else f=W.result;if(!v)BA(W,P,S,z,q,f,UA,L,H),z=q=f=null;WQ(W,!0,-1),r=W.input.charCodeAt(W.position)}if((W.line===LA||W.lineIndent>b)&&r!==0)IA(W,"bad indentation of a mapping entry");else if(W.lineIndent<b)break}if(v)BA(W,P,S,z,q,null,UA,L,H);if(a)W.tag=j,W.anchor=h,W.kind="mapping",W.result=P;return a}function FC(W){var b,p=!1,NA=!1,AA,LA,UA;if(UA=W.input.charCodeAt(W.position),UA!==33)return!1;if(W.tag!==null)IA(W,"duplication of a tag property");if(UA=W.input.charCodeAt(++W.position),UA===60)p=!0,UA=W.input.charCodeAt(++W.position);else if(UA===33)NA=!0,AA="!!",UA=W.input.charCodeAt(++W.position);else AA="!";if(b=W.position,p){do UA=W.input.charCodeAt(++W.position);while(UA!==0&&UA!==62);if(W.position<W.length)LA=W.input.slice(b,W.position),UA=W.input.charCodeAt(++W.position);else IA(W,"unexpected end of the stream within a verbatim tag")}else{while(UA!==0&&!l(UA)){if(UA===33)if(!NA){if(AA=W.input.slice(b-1,W.position+1),!t.test(AA))IA(W,"named tag handle cannot contain such characters");NA=!0,b=W.position+1}else IA(W,"tag suffix cannot contain exclamation marks");UA=W.input.charCodeAt(++W.position)}if(LA=W.input.slice(b,W.position),d.test(LA))IA(W,"tag suffix cannot contain flow indicator characters")}if(LA&&!m.test(LA))IA(W,"tag name cannot contain such characters: "+LA);try{LA=decodeURIComponent(LA)}catch(L){IA(W,"tag name is malformed: "+LA)}if(p)W.tag=LA;else if(N.call(W.tagMap,AA))W.tag=W.tagMap[AA]+LA;else if(AA==="!")W.tag="!"+LA;else if(AA==="!!")W.tag="tag:yaml.org,2002:"+LA;else IA(W,'undeclared tag handle "'+AA+'"');return!0}function YE(W){var b,p;if(p=W.input.charCodeAt(W.position),p!==38)return!1;if(W.anchor!==null)IA(W,"duplication of an anchor property");p=W.input.charCodeAt(++W.position),b=W.position;while(p!==0&&!l(p)&&!u(p))p=W.input.charCodeAt(++W.position);if(W.position===b)IA(W,"name of an anchor node must contain at least one character");return W.anchor=W.input.slice(b,W.position),!0}function jB(W){var b,p,NA;if(NA=W.input.charCodeAt(W.position),NA!==42)return!1;NA=W.input.charCodeAt(++W.position),b=W.position;while(NA!==0&&!l(NA)&&!u(NA))NA=W.input.charCodeAt(++W.position);if(W.position===b)IA(W,"name of an alias node must contain at least one character");if(p=W.input.slice(b,W.position),!N.call(W.anchorMap,p))IA(W,'unidentified alias "'+p+'"');return W.result=W.anchorMap[p],WQ(W,!0,-1),!0}function _A(W,b,p,NA,AA){var LA,UA,L,H=1,j=!1,h=!1,P,S,z,q,f,v;if(W.listener!==null)W.listener("open",W);if(W.tag=null,W.anchor=null,W.kind=null,W.result=null,LA=UA=L=$===p||X===p,NA){if(WQ(W,!0,-1)){if(j=!0,W.lineIndent>b)H=1;else if(W.lineIndent===b)H=0;else if(W.lineIndent<b)H=-1}}if(H===1)while(FC(W)||YE(W))if(WQ(W,!0,-1)){if(j=!0,L=LA,W.lineIndent>b)H=1;else if(W.lineInden Line truncated
`;if(W.charCodeAt(0)===65279)W=W.slice(1)}var p=new PA(W,b),NA=W.indexOf("\x00");if(NA!==-1)p.position=NA,IA(p,"null byte is not allowed in input");p.input+="\x00";while(p.input.charCodeAt(p.position)===32)p.lineIndent+=1,p.position+=1;while(p.position<p.length-1)xQ(p);return p.documents}function wA(W,b,p){if(b!==null&&typeof b==="object"&&typeof p>"u")p=b,b=null;var NA=J0(W,p);if(typeof b!=="function")return NA;for(var AA=0,LA=NA.length;AA<LA;AA+=1)b(NA[AA])}function VQ(W,b){var p=J0(W,b);if(p.length===0)return;else if(p.length===1)return p[0];throw new Y("expected a single document in the stream, but found more")}I.exports.loadAll=wA,I.exports.load=VQ},1082:(I,C,D)=>{var F=D(8179),Y=D(6073);function J(U,Z){var X=[];return U[Z].forEach(function($){var V=X.length;X.forEach(function(w,g){if(w.tag===$.tag&&w.kind===$.kind&&w.multi===$.multi)V=g}),X[V]=$}),X}function G(){var U={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},Z,X;function $(V){if(V.multi)U.multi[V.kind].push(V),U.multi.fallback.push(V);else U[V.kind][V.tag]=U.fallback[V.tag]=V}for(Z=0,X=arguments.length;Z<X;Z+=1)arguments[Z].forEach($);return U}function N(U){return this.extend(U)}N.prototype.extend=function(Z){var X=[],$=[];if(Z instanceof Y)$.push(Z);else if(Array.isArray(Z))$=$.concat(Z);else if(Z&&(Array.isArray(Z.implicit)||Array.isArray(Z.explicit))){if(Z.implicit)X=X.concat(Z.implicit);if(Z.explicit)$=$.concat(Z.explicit)}else throw new F("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");X.forEach(function(w){if(!(w instanceof Y))throw new F("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(w.loadKind&&w.loadKind!=="scalar")throw new F("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(w.multi)throw new F("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),$.forEach(function(w){if(!(w instanceof Y))throw new F("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var V=Object.create(N.prototype);return V.implicit=(this.implicit||[]).concat(X),V.explicit=(this.explicit||[]).concat($),V.compiledImplicit=J(V,"implicit"),V.compiledExplicit=J(V,"explicit"),V.compiledTypeMap=G(V.compiledImplicit,V.compiledExplicit),V},I.exports=N},2011:(I,C,D)=>{I.exports=D(1035)},8759:(I,C,D)=>{I.exports=D(2011).extend({implicit:[D(9212),D(6104)],explicit:[D(7900),D(9046),D(6860),D(9548)]})},8562:(I,C,D)=>{var F=D(1082);I.exports=new F({explicit:[D(3619),D(7283),D(6150)]})},1035:(I,C,D)=>{I.exports=D(8562).extend({implicit:[D(721),D(4993),D(1615),D(2705)]})},6975:(I,C,D)=>{var F=D(6829);function Y(N,U,Z,X,$){var V="",w="",g=Math.floor($/2)-1;if(X-U>g)V=" ... ",U=X-g+V.length;if(Z-X>g)w=" ...",Z=X+g-w.length;return{str:V+N.slice(U,Z).replace(/\t/g,"→")+w,pos:X-U+V.length}}function J(N,U){return F.repeat(" ",U-N.length)+N}function G(N,U){if(U=Object.create(U||null),!N.buffer)return null;if(!U.maxLength)U.maxLength=79;if(typeof U.indent!=="number")U.indent=1;if(typeof U.linesBefore!=="number")U.linesBefore=3;if(typeof U.linesAfter!=="number")U.linesAfter=2;var Z=/\r?\n|\r|\0/g,X=[0],$=[],V,w=-1;while(V=Z.exec(N.buffer))if($.push(V.index),X.push(V.index+V[0].length),N.position<=V.index&&w<0)w=X.length-2;if(w<0)w=X.length-1;var g="",M,k,d=Math.min(N.line+U.linesAfter,$.length).toString().length,t=U.maxLength-(U.indent+d+3);for(M=1;M<=U.linesBefore;M++){if(w-M<0)break;k=Y(N.buffer,X[w-M],$[w-M],N.position-(X[w]-X[w-M]),t),g=F.repeat(" ",U.indent)+J((N.line-M+1).toString(),d)+" | "+k.str+`
`+g}k=Y(N.buffer,X[w],$[w],N.position,t),g+=F.repeat(" ",U.indent)+J((N.line+1).toString(),d)+" | "+k.str+`
`,g+=F.repeat("-",U.indent+d+3+k.pos)+`^
`;for(M=1;M<=U.linesAfter;M++){if(w+M>=$.length)break;k=Y(N.buffer,X[w+M],$[w+M],N.position-(X[w]-X[w+M]),t),g+=F.repeat(" ",U.indent)+J((N.line+M+1).toString(),d)+" | "+k.str+`
`}return g.replace(/\n$/,"")}I.exports=G},6073:(I,C,D)=>{var F=D(8179),Y=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],J=["scalar","sequence","mapping"];function G(U){var Z={};if(U!==null)Object.keys(U).forEach(function(X){U[X].forEach(function($){Z[String($)]=X})});return Z}function N(U,Z){if(Z=Z||{},Object.keys(Z).forEach(function(X){if(Y.indexOf(X)===-1)throw new F('Unknown option "'+X+'" is met in definition of "'+U+'" YAML type.')}),this.options=Z,this.tag=U,this.kind=Z.kind||null,this.resolve=Z.resolve||function(){return!0},this.construct=Z.construct||function(X){return X},this.instanceOf=Z.instanceOf||null,this.predicate=Z.predicate||null,this.represent=Z.represent||null,this.representName=Z.representName||null,this.defaultStyle=Z.defaultStyle||null,this.multi=Z.multi||!1,this.styleAliases=G(Z.styleAliases||null),J.indexOf(this.kind)===-1)throw new F('Unknown kind "'+this.kind+'" is specified for "'+U+'" YAML type.')}I.exports=N},7900:(I,C,D)=>{var F=D(6073),Y=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function J(Z){if(Z===null)return!1;var X,$,V=0,w=Z.length,g=Y;for($=0;$<w;$++){if(X=g.indexOf(Z.charAt($)),X>64)continue;if(X<0)return!1;V+=6}return V%8===0}function G(Z){var X,$,V=Z.replace(/[\r\n=]/g,""),w=V.length,g=Y,M=0,k=[];for(X=0;X<w;X++){if(X%4===0&&X)k.push(M>>16&255),k.push(M>>8&255),k.push(M&255);M=M<<6|g.indexOf(V.charAt(X))}if($=w%4*6,$===0)k.push(M>>16&255),k.push(M>>8&255),k.push(M&255);else if($===18)k.push(M>>10&255),k.push(M>>2&255);else if($===12)k.push(M>>4&255);return new Uint8Array(k)}function N(Z){var X="",$=0,V,w,g=Z.length,M=Y;for(V=0;V<g;V++){if(V%3===0&&V)X+=M[$>>18&63],X+=M[$>>12&63],X+=M[$>>6&63],X+=M[$&63];$=($<<8)+Z[V]}if(w=g%3,w===0)X+=M[$>>18&63],X+=M[$>>12&63],X+=M[$>>6&63],X+=M[$&63];else if(w===2)X+=M[$>>10&63],X+=M[$>>4&63],X+=M[$<<2&63],X+=M[64];else if(w===1)X+=M[$>>2&63],X+=M[$<<4&63],X+=M[64],X+=M[64];return X}function U(Z){return Object.prototype.toString.call(Z)==="[object Uint8Array]"}I.exports=new F("tag:yaml.org,2002:binary",{kind:"scalar",resolve:J,construct:G,predicate:U,represent:N})},4993:(I,C,D)=>{var F=D(6073);function Y(N){if(N===null)return!1;var U=N.length;return U===4&&(N==="true"||N==="True"||N==="TRUE")||U===5&&(N==="false"||N==="False"||N==="FALSE")}function J(N){return N==="true"||N==="True"||N==="TRUE"}function G(N){return Object.prototype.toString.call(N)==="[object Boolean]"}I.exports=new F("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Y,construct:J,predicate:G,represent:{lowercase:function(N){return N?"true":"false"},uppercase:function(N){return N?"TRUE":"FALSE"},camelcase:function(N){return N?"True":"False"}},defaultStyle:"lowercase"})},2705:(I,C,D)=>{var F=D(6829),Y=D(6073),J=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function G($){if($===null)return!1;if(!J.test($)||$[$.length-1]==="_")return!1;return!0}function N($){var V,w;if(V=$.replace(/_/g,"").toLowerCase(),w=V[0]==="-"?-1:1,"+-".indexOf(V[0])>=0)V=V.slice(1);if(V===".inf")return w===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(V===".nan")return NaN;return w*parseFloat(V,10)}var U=/^[-+]?[0-9]+e/;function Z($,V){var w;if(isNaN($))switch(V){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(V){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(V){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(F.isNegativeZero($))return"-0.0";return w=$.toString(10),U.test(w)?w.replace("e",".e"):w}function X($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||F.isNegativeZero($))}I.exports=new Y("tag:yaml.org,2002:float",{kind:"scalar",resolve:G,construct:N,predicate:X,represent:Z,defaultStyle:"lowercase"})},1615:(I,C,D)=>{var F=D(6829),Y=D(6073);function J($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function G($){return 48<=$&&$<=55}function N($){return 48<=$&&$<=57}function U($){if($===null)return!1;var V=$.length,w=0,g=!1,M;if(!V)return!1;if(M=$[w],M==="-"||M==="+")M=$[++w];if(M==="0"){if(w+1===V)return!0;if(M=$[++w],M==="b"){w++;for(;w<V;w++){if(M=$[w],M==="_")continue;if(M!=="0"&&M!=="1")return!1;g=!0}return g&&M!=="_"}if(M==="x"){w++;for(;w<V;w++){if(M=$[w],M==="_")continue;if(!J($.charCodeAt(w)))return!1;g=!0}return g&&M!=="_"}if(M==="o"){w++;for(;w<V;w++){if(M=$[w],M==="_")continue;if(!G($.charCodeAt(w)))return!1;g=!0}return g&&M!=="_"}}if(M==="_")return!1;for(;w<V;w++){if(M=$[w],M==="_")continue;if(!N($.charCodeAt(w)))return!1;g=!0}if(!g||M==="_")return!1;return!0}function Z($){var V=$,w=1,g;if(V.indexOf("_")!==-1)V=V.replace(/_/g,"");if(g=V[0],g==="-"||g==="+"){if(g==="-")w=-1;V=V.slice(1),g=V[0]}if(V==="0")return 0;if(g==="0"){if(V[1]==="b")return w*parseInt(V.slice(2),2);if(V[1]==="x")return w*parseInt(V.slice(2),16);if(V[1]==="o")return w*parseInt(V.slice(2),8)}return w*parseInt(V,10)}function X($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!F.isNegativeZero($))}I.exports=new Y("tag:yaml.org,2002:int",{kind:"scalar",resolve:U,construct:Z,predicate:X,represent:{binary:function($){return $>=0?"0b"+$.toString(2):"-0b"+$.toString(2).slice(1)},octal:function($){return $>=0?"0o"+$.toString(8):"-0o"+$.toString(8).slice(1)},decimal:function($){return $.toString(10)},hexadecimal:function($){return $>=0?"0x"+$.toString(16).toUpperCase():"-0x"+$.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(I,C,D)=>{var F=D(6073);I.exports=new F("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Y){return Y!==null?Y:{}}})},6104:(I,C,D)=>{var F=D(6073);function Y(J){return J==="<<"||J===null}I.exports=new F("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Y})},721:(I,C,D)=>{var F=D(6073);function Y(N){if(N= Line truncated
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*/let F=D(5680),Y=(m,n,QA)=>{if(F(m)===!1)throw TypeError("toRegexRange: expected the first argument to be a number");if(n===void 0||m===n)return String(m);if(F(n)===!1)throw TypeError("toRegexRange: expected the second argument to be a number.");let x={relaxZeros:!0,...QA};if(typeof x.strictZeros==="boolean")x.relaxZeros=x.strictZeros===!1;let l=String(x.relaxZeros),u=String(x.shorthand),CA=String(x.capture),i=String(x.wrap),KA=m+":"+n+"="+l+u+CA+i;if(Y.cache.hasOwnProperty(KA))return Y.cache[KA].result;let HA=Math.min(m,n),uA=Math.max(m,n);if(Math.abs(HA-uA)===1){let dA=m+"|"+n;if(x.capture)return`(${dA})`;if(x.wrap===!1)return dA;return`(?:${dA})`}let cA=d(m)||d(n),yA={min:m,max:n,a:HA,b:uA},JA=[],PA=[];if(cA)yA.isPadded=cA,yA.maxLen=String(yA.max).length;if(HA<0){let dA=uA<0?Math.abs(uA):1;PA=U(dA,Math.abs(HA),yA,x),HA=yA.a=0}if(uA>=0)JA=U(HA,uA,yA,x);if(yA.negatives=PA,yA.positives=JA,yA.result=J(PA,JA,x),x.capture===!0)yA.result=`(${yA.result})`;else if(x.wrap!==!1&&JA.length+PA.length>1)yA.result=`(?:${yA.result})`;return Y.cache[KA]=yA,yA.result};function J(m,n,QA){let x=Z(m,n,"-",!1,QA)||[],l=Z(n,m,"",!1,QA)||[],u=Z(m,n,"-?",!0,QA)||[];return x.concat(u).concat(l).join("|")}function G(m,n){let QA=1,x=1,l=w(m,QA),u=new Set([n]);while(m<=l&&l<=n)u.add(l),QA+=1,l=w(m,QA);l=g(n+1,x)-1;while(m<l&&l<=n)u.add(l),x+=1,l=g(n+1,x)-1;return u=[...u],u.sort($),u}function N(m,n,QA){if(m===n)return{pattern:m,count:[],digits:0};let x=X(m,n),l=x.length,u="",CA=0;for(let i=0;i<l;i++){let[KA,HA]=x[i];if(KA===HA)u+=KA;else if(KA!=="0"||HA!=="9")u+=k(KA,HA,QA);else CA++}if(CA)u+=QA.shorthand===!0?"\\d":"[0-9]";return{pattern:u,count:[CA],digits:l}}function U(m,n,QA,x){let l=G(m,n),u=[],CA=m,i;for(let KA=0;KA<l.length;KA++){let HA=l[KA],uA=N(String(CA),String(HA),x),cA="";if(!QA.isPadded&&i&&i.pattern===uA.pattern){if(i.count.length>1)i.count.pop();i.count.push(uA.count[0]),i.string=i.pattern+M(i.count),CA=HA+1;continue}if(QA.isPadded)cA=t(HA,QA,x);uA.string=cA+uA.pattern+M(uA.count),u.push(uA),CA=HA+1,i=uA}return u}function Z(m,n,QA,x,l){let u=[];for(let CA of m){let{string:i}=CA;if(!x&&!V(n,"string",i))u.push(QA+i);if(x&&V(n,"string",i))u.push(QA+i)}return u}function X(m,n){let QA=[];for(let x=0;x<m.length;x++)QA.push([m[x],n[x]]);return QA}function $(m,n){return m>n?1:n>m?-1:0}function V(m,n,QA){return m.some((x)=>x[n]===QA)}function w(m,n){return Number(String(m).slice(0,-n)+"9".repeat(n))}function g(m,n){return m-m%Math.pow(10,n)}function M(m){let[n=0,QA=""]=m;if(QA||n>1)return`{${n+(QA?","+QA:"")}}`;return""}function k(m,n,QA){return`[${m}${n-m===1?"":"-"}${n}]`}function d(m){return/^-?(0+)\d/.test(m)}function t(m,n,QA){if(!n.isPadded)return m;let x=Math.abs(n.maxLen-String(m).length),l=QA.relaxZeros!==!1;switch(x){case 0:return"";case 1:return l?"0?":"0";case 2:return l?"0{0,2}":"00";default:return l?`0{0,${x}}`:`0{${x}}`}}Y.cache={},Y.clearCache=()=>Y.cache={},I.exports=Y},6144:function(I,C,D){var F=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(C,"__esModule",{value:!0}),C.resolveWorkspaceRoot=Z,C.resolveWorkspaceRootAsync=X,C.getWorkspaceGlobs=$,C.getWorkspaceGlobsAsync=V;let Y=F(D(9411)),J=F(D(7742)),G=D(2737),N=D(6455),U=D(4679);function Z(w=J.default.cwd(),g={}){return(0,G.searchParentDirs)(w,(M,k)=>{let d=null;if(g.packageWorkspaces!==!1){d=(0,N.tryReadFile)(Y.default.join(M,"package.json"));let t=d&&(0,U.workspaceGlobsFromPackage)(d);if(t&&(0,U.pathMatchesWorkspaceGlobs)(t,k))return M}if(g.pnpmWorkspaces!==!1&&d){let t=(0,N.tryReadFile)(Y.default.join(M,"pnpm-workspace.yaml")),m=t&&(0,U.workspaceGlobsFromPnpm)(t);if(m&&(0,U.pathMatchesWorkspaceGlobs)(m,k))return M}})}function X(w=J.default.cwd(),g={}){return(0,G.searchParentDirsAsync)(w,async(M,k)=>{let d=null;if(g.packageWorkspaces!==!1){d=await(0,N.tryReadFileAsync)(Y.default.join(M,"package.json"));let t=d&&(0,U.workspaceGlobsFromPackage)(d);if(t&&(0,U.pathMatchesWorkspaceGlobs)(t,k))return M}if(g.pnpmWorkspaces!==!1&&d){let t=await(0,N.tryReadFileAsync)(Y.default.join(M,"pnpm-workspace.yaml")),m=t&&(0,U.workspaceGlobsFromPnpm)(t);if(m&&(0,U.pathMatchesWorkspaceGlobs)(m,k))return M}})}function $(w=J.default.cwd(),g={}){if(g.packageWorkspaces!==!1){let M=(0,N.tryReadFile)(Y.default.join(w,"package.json")),k=M&&(0,U.workspaceGlobsFromPackage)(M);if(k)return k}if(g.pnpmWorkspaces!==!1){let M=(0,N.tryReadFile)(Y.default.join(w,"pnpm-workspace.yaml")),k=M&&(0,U.workspaceGlobsFromPnpm)(M);if(k)return k}return null}async function V(w=J.default.cwd(),g={}){if(g.packageWorkspaces!==!1){let M=await(0,N.tryReadFileAsync)(Y.default.join(w,"package.json")),k=M&&(0,U.workspaceGlobsFromPackage)(M);if(k)return k}if(g.pnpmWorkspaces!==!1){let M=await(0,N.tryReadFileAsync)(Y.default.join(w,"pnpm-workspace.yaml")),k=M&&(0,U.workspaceGlobsFromPnpm)(M);if(k)return k}return null}},2737:function(I,C,D){var F=this&&this.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(C,"__esModuleLine truncated
WHERE eas_build_id IS NOT NULL AND eas_build_id != "" AND fingerprint_hash = ?
ORDER BY updated_at DESC LIMIT 1`,A);return Q?XE.serialize(Q):null}async getEntityFromGitCommitHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let Q=await this.db.getAsync(`SELECT * FROM ${XE.TABLE_NAME} WHERE git_commit_hash = ?`,A);return Q?XE.serialize(Q):null}async getFirstEntityFromFingerprintHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let Q=await this.db.getAsync(`SELECT * FROM ${XE.TABLE_NAME} WHERE fingerprint_hash = ?`,A);return Q?XE.serialize(Q):null}async queryEntitiesFromFingerprintHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");return(await this.db.allAsync(`SELECT * FROM ${XE.TABLE_NAME} WHERE fingerprint_hash = ?`,A)).map((B)=>XE.serialize(B))}async getFingerprintSourcesAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let B=(await this.db.getAsync(`SELECT json_extract(fingerprint, '$.sources') as sources FROM ${XE.TABLE_NAME} WHERE fingerprint_hash = ?`,A))?.sources;if(!B)return null;return JSON.parse(B)}async getFirstGitHubArtifactAsync(A,Q){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let B=await this.db.getAsync(`SELECT ga.id, ga.artifact_id, ga.artifact_url, ga.artifact_digest, ga.workflow_run_id, ga.platform
FROM ${XE.TABLE_NAME} f
JOIN github_artifacts ga ON f.id = ga.fingerprint_id
WHERE f.fingerprint_hash = ? AND (ga.platform = ? AND (f.platform = ? OR f.platform IS NULL))
ORDER BY f.id ASC, ga.id ASC
LIMIT 1`,A,Q,Q);if(!B)return null;return{id:B.id,artifactId:B.artifact_id,artifactUrl:B.artifact_url,artifactDigest:B.artifact_digest,workflowRunId:B.workflow_run_id,platform:B.platform}}getArtifactsManager(){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");return new WE(this.db)}async closeAsync(){this.db?.closeAsync()}static TABLE_NAME="fingerprint";static SCHEMA=["id INTEGER PRIMARY KEY AUTOINCREMENT","eas_build_id TEXT","git_commit_hash TEXT NOT NULL","fingerprint_hash TEXT NOT NULL","fingerprint TEXT NOT NULL","platform TEXT","created_at TEXT NOT NULL DEFAULT (DATETIME('now', 'utc'))","updated_at TEXT NOT NULL DEFAULT (DATETIME('now', 'utc'))"];static INDEXES=[`CREATE UNIQUE INDEX IF NOT EXISTS idx_git_commit_hash ON ${this.TABLE_NAME} (git_commit_hash)`,`CREATE INDEX IF NOT EXISTS idx_fingerprint_hash ON ${this.TABLE_NAME} (fingerprint_hash)`];static EXTRA_CREATE_DB_STATEMENTS=[`CREATE TRIGGER IF NOT EXISTS update_fingerprint_updated_at AFTER UPDATE ON ${this.TABLE_NAME}
BEGIN
UPDATE ${this.TABLE_NAME} SET updated_at = DATETIME('now', 'utc') WHERE id = NEW.id;
END`];db=null;static serialize(A){return{id:A.id,easBuildId:A.eas_build_id,gitCommitHash:A.git_commit_hash,fingerprintHash:A.fingerprint_hash,fingerprint:JSON.parse(A.fingerprint),platform:A.platform,createdAt:A.created_at,updatedAt:A.updated_at}}}async function DiA(A,Q){await UhA(Q.fingerprintVersion,Q.packager,Q.fingerprintInstallationCache);let B=require("@expo/fingerprint"),E=await B.createFingerprintAsync(Q.workingDirectory),I=null;if(Q.previousGitCommitHash)I=await A.getEntityFromGitCommitHashAsync(Q.previousGitCommitHash);let C=I!=null?await B.diffFingerprints(I.fingerprint,E):await B.diffFingerprints({sources:[],hash:""},E);return{currentFingerprint:E,previousFingerprint:I?.fingerprint??null,diff:C}}async function FiA(A,Q){await De(A);let B=await RR();if(await ZhA(Q)!=null)PE.info(`Restored fingerprint database from cache - cacheKey[${Q}]`);else PE.info(`Missing fingerprint database from cache - will create a new database - cacheKey[${Q}]`);let I=new XE(B);return await I.initAsync(),I}function Ge(){return{packager:PE.getInput("packager")||"yarn",githubToken:PE.getInput("github-token"),workingDirectory:PE.getInput("working-directory"),fingerprintVersion:PE.getInput("fingerprint-version")||"latest",fingerprintInstallationCache:!PE.getInput("fingerprint-installation-cache")||PE.getBooleanInput("fingerprint-installation-cache"),fingerprintDbCacheKey:PE.getInput("fingerprint-db-cache-key"),previousGitCommitHash:PE.getInput("previous-git-commit")||(t1.context.eventName==="pull_request"?t1.context.payload.pull_request?.base?.sha:t1.context.payload.before),currentGitCommitHash:PE.getInput("current-git-commit")||(t1.context.eventName==="pull_request"?t1.context.payload.pull_request?.head?.sha:t1.context.sha),savingDbBranch:PE.getInput("saving-db-branch")||void 0}}async function UhA(A,Q,B=!0){let I=await Y7("@expo/fingerprint",A),C=B?`Installing @expo/fingerprint (${I}) from cache or with ${Q}`:`Installing @expo/fingerprint (${I}) with ${Q}`;return await PE.group(C,async()=>{let D=await J7({name:"@expo/fingerprint",version:I,packageManager:Q,packageCache:B});return uf(D),V4(TN.default.join(D,"node_modules")),D})}async function ZhA(A){return F6(TN.default.dirname(await RR()),A)}async function Ne(A){return PE.info(`Saving fingerprint database to cache: ${A}`),Y6(TN.default.dirname(await RR()),A)}async function RR(){Ye.default(process.env.RUNNER_TOOL_CACHE,"Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined");let A=TN.default.join(process.env.RUNNER_TOOL_CACHE,"fingerprint-storage","fingerprint.db"),Q=TN.default.dirname(A);if(!await Je.default.promises.stat(Q).catch(()=>null))await Fe.mkdirP(Q);return A}async function Ue(A,Q,B=5000){let E;for(let I=0;I<Q;++I)try{return await A()}catch(C){if(C instanceof Error)E=C,await WhA(B)}if(E)throw E;throw Error("retryAsync function did not return a value")}async function WhA(A){return new Promise((Q)=>setTimeout(Q,A))}bf(Ze);async function Ze(A=Ge()){let Q=A.savingDbBranch??ui();if(TR.default(Q),!mi(Q))return;gR.info(`Saving fingerprint database to ${Q} branch.`);try{let B=process.env.GITHUB_REF;TR.default(B!=null,"GITHUB_REF is not defined"),await ci(A.githubToken,A.fingerprintDbCacheKey,B)}catch(B){gR.info(`Failed to delete the cache: ${B}`)}await Ue(()=>Ne(A.fingerprintDbCacheKey),3)}
-91645
View File
File diff suppressed because it is too large. Load diff
-1598
View File
File diff suppressed because it is too large. Load diff
+226
View File
@@ -0,0 +1,226 @@
var Fe=Object.create;var{getPrototypeOf:Ye,defineProperty:PN,getOwnPropertyNames:qR,getOwnPropertyDescriptor:Je}=Object,jR=Object.prototype.hasOwnProperty;var tQ=(A,Q,B)=>{B=A!=null?Fe(Ye(A)):{};let E=Q||!A||!A.__esModule?PN(B,"default",{value:A,enumerable:!0}):B;for(let I of qR(A))if(!jR.call(E,I))PN(E,I,{get:()=>A[I],enumerable:!0});return E},OR=new WeakMap,DhA=(A)=>{var Q=OR.get(A),B;if(Q)return Q;if(Q=PN({},"__esModule",{value:!0}),A&&typeof A==="object"||typeof A==="function")qR(A).map((E)=>!jR.call(Q,E)&&PN(Q,E,{get:()=>A[E],enumerable:!(B=Je(A,E))||B.enumerable}));return OR.set(A,Q),Q},K=(A,Q)=>()=>(Q||A((Q={exports:{}}).exports,Q),Q.exports);var FhA=(A,Q)=>{for(var B in Q)PN(A,B,{get:Q[B],enumerable:!0,configurable:!0,set:(E)=>Q[B]=()=>E})};var hU=K((AY)=>{Object.defineProperty(AY,"__esModule",{value:!0});AY.toCommandProperties=AY.toCommandValue=void 0;function Ge(A){if(A===null||A===void 0)return"";else if(typeof A==="string"||A instanceof String)return A;return JSON.stringify(A)}AY.toCommandValue=Ge;function Ne(A){if(!Object.keys(A).length)return{};return{title:A.title,file:A.file,line:A.startLine,endLine:A.endLine,col:A.startColumn,endColumn:A.endColumn}}AY.toCommandProperties=Ne});var hR=K((YC)=>{var Ue=YC&&YC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),Ze=YC&&YC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),We=YC&&YC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))Ue(Q,A,B)}return Ze(Q,A),Q};Object.defineProperty(YC,"__esModule",{value:!0});YC.issue=YC.issueCommand=void 0;var Xe=We(require("os")),kR=hU();function fR(A,Q,B){let E=new xR(A,Q,B);process.stdout.write(E.toString()+Xe.EOL)}YC.issueCommand=fR;function $e(A,Q=""){fR(A,{},Q)}YC.issue=$e;var PR="::";class xR{constructor(A,Q,B){if(!A)A="missing.command";this.command=A,this.properties=Q,this.message=B}toString(){let A=PR+this.command;if(this.properties&&Object.keys(this.properties).length>0){A+=" ";let Q=!0;for(let B in this.properties)if(this.properties.hasOwnProperty(B)){let E=this.properties[B];if(E){if(Q)Q=!1;else A+=",";A+=`${B}=${Le(E)}`}}}return A+=`${PR}${Ke(this.message)}`,A}}function Ke(A){return(0,kR.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function Le(A){return(0,kR.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});var _R=K((JC)=>{var Ve=JC&&JC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),ze=JC&&JC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),U7=JC&&JC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))Ve(Q,A,B)}return ze(Q,A),Q};Object.defineProperty(JC,"__esModule",{value:!0});JC.prepareKeyValueMessage=JC.issueFileCommand=void 0;var He=U7(require("crypto")),SR=U7(require("fs")),N7=U7(require("os")),yR=hU();function we(A,Q){let B=process.env[`GITHUB_${A}`];if(!B)throw Error(`Unable to find environment variable for file command ${A}`);if(!SR.existsSync(B))throw Error(`Missing file at path: ${B}`);SR.appendFileSync(B,`${(0,yR.toCommandValue)(Q)}${N7.EOL}`,{encoding:"utf8"})}JC.issueFileCommand=we;function Me(A,Q){let B=`ghadelimiter_${He.randomUUID()}`,E=(0,yR.toCommandValue)(Q);if(A.includes(B))throw Error(`Unexpected input: name should not contain the delimiter "${B}"`);if(E.includes(B))throw Error(`Unexpected input: value should not contain the delimiter "${B}"`);return`${A}<<${B}${N7.EOL}${E}${N7.EOL}${B}`}JC.prepareKeyValueMessage=Me});var bR=K((QY)=>{Object.defineProperty(QY,"__esModule",{value:!0});QY.checkBypass=QY.getProxyUrl=void 0;function Re(A){let Q=A.protocol==="https:";if(vR(A))return;let B=(()=>{if(Q)return process.env.https_proxy||process.env.HTTPS_PROXY;else return process.env.http_proxy||process.env.HTTP_PROXY})();if(B)try{return new Z7(B)}catch(E){if(!B.startsWith("http://")&&!B.startsWith("https://"))return new Z7(`http://${B}`)}else return}QY.getProxyUrl=Re;function vR(A){if(!A.hostname)return!1;let Q=A.hostname;if(ge(Q))return!0;let B=process.env.no_proxy||process.env.NO_PROXY||"";if(!B)return!1;let E;if(A.port)E=Number(A.port);else if(A.protocol==="http:")E=80;else if(A.protocol==="https:")E=443;let I=[A.hostname.toUpperCaseLine truncated
`,N.message,N.stack);var U=Error("tunneling socket could not be established, cause="+N.message);U.code="ECONNRESET",Q.request.emit("error",U),E.removeSocket(I)}};o0.prototype.removeSocket=function(Q){var B=this.sockets.indexOf(Q);if(B===-1)return;this.sockets.splice(B,1);var E=this.requests.shift();if(E)this.createSocket(E,function(I){E.request.onSocket(I)})};function mR(A,Q){var B=this;o0.prototype.createSocket.call(B,A,function(E){var I=A.request.getHeader("host"),C=X7({},B.options,{socket:E,servername:I?I.replace(/:.*$/,""):A.host}),D=Te.connect(0,C);B.sockets[B.sockets.indexOf(E)]=D,Q(D)})}function dR(A,Q,B){if(typeof A==="string")return{host:A,port:Q,localAddress:B};return A}function X7(A){for(var Q=1,B=arguments.length;Q<B;++Q){var E=arguments[Q];if(typeof E==="object"){var I=Object.keys(E);for(var C=0,D=I.length;C<D;++C){var F=I[C];if(E[F]!==void 0)A[F]=E[F]}}}return A}var kD;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG))kD=function(){var A=Array.prototype.slice.call(arguments);if(typeof A[0]==="string")A[0]="TUNNEL: "+A[0];else A.unshift("TUNNEL:");console.error.apply(console,A)};else kD=function(){};BY.debug=kD});var pR=K(($hA,lR)=>{lR.exports=cR()});var UB=K((KhA,iR)=>{iR.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"),kHeadersList:Symbol("headers list"),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"),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"),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"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}});var eQ=K((LhA,aR)=>{class rB extends Error{constructor(A){super(A);this.name="UndiciError",this.code="UND_ERR"}}class $7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,$7),this.name="ConnectTimeoutError",this.message=A||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}}class K7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,K7),this.name="HeadersTimeoutError",this.message=A||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}}class L7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,L7),this.name="HeadersOverflowError",this.message=A||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}}class V7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,V7),this.name="BodyTimeoutError",this.message=A||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}}class z7 extends rB{constructor(A,Q,B,E){super(A);Error.captureStackTrace(this,z7),this.name="ResponseStatusCodeError",this.message=A||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=E,this.status=Q,this.statusCode=Q,this.headers=B}}class H7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,H7),this.name="InvalidArgumentError",this.message=A||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}}class w7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,w7),this.name="InvalidReturnValueError",this.message=A||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}}class M7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,M7),this.name="AbortError",this.me Line truncated
\r
`),LAA=/\r\n/g,VAA=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function IY(A){Kg.call(this),A=A||{};let Q=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=$g(A,"maxHeaderPairs",2000),this.maxHeaderSize=$g(A,"maxHeaderSize",81920),this.buffer="",this.header={},this.finished=!1,this.ss=new $AA(KAA),this.ss.on("info",function(B,E,I,C){if(E&&!Q.maxed){if(Q.nread+C-I>=Q.maxHeaderSize)C=Q.maxHeaderSize-Q.nread+I,Q.nread=Q.maxHeaderSize,Q.maxed=!0;else Q.nread+=C-I;Q.buffer+=E.toString("binary",I,C)}if(B)Q._finish()})}XAA(IY,Kg);IY.prototype.push=function(A){let Q=this.ss.push(A);if(this.finished)return Q};IY.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};IY.prototype._finish=function(){if(this.buffer)this._parseHeader();this.ss.matches=this.ss.maxMatches;let A=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",A)};IY.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let A=this.buffer.split(LAA),Q=A.length,B,E;for(var I=0;I<Q;++I){if(A[I].length===0)continue;if(A[I][0]==="\t"||A[I][0]===" "){if(E){this.header[E][this.header[E].length-1]+=A[I];continue}}let C=A[I].indexOf(":");if(C===-1||C===0)return;if(B=VAA.exec(A[I]),E=B[1].toLowerCase(),this.header[E]=this.header[E]||[],this.header[E].push(B[2]||""),++this.npairs===this.maxHeaderPairs)break}};Lg.exports=IY});var d7=K((ThA,Hg)=>{var m7=require("node:stream").Writable,zAA=require("node:util").inherits,HAA=b7(),zg=Wg(),wAA=Vg(),MAA=Buffer.from("-"),RAA=Buffer.from(`\r
`),gAA=function(){};function pC(A){if(!(this instanceof pC))return new pC(A);if(m7.call(this,A),!A||!A.headerFirst&&typeof A.boundary!=="string")throw TypeError("Boundary required");if(typeof A.boundary==="string")this.setBoundary(A.boundary);else this._bparser=void 0;this._headerFirst=A.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:A.partHwm},this._pause=!1;let Q=this;this._hparser=new wAA(A),this._hparser.on("header",function(B){Q._inHeader=!1,Q._part.emit("header",B)})}zAA(pC,m7);pC.prototype.emit=function(A){if(A==="finish"&&!this._realFinish){if(!this._finished){let Q=this;process.nextTick(function(){if(Q.emit("error",Error("Unexpected end of multipart data")),Q._part&&!Q._ignoreData){let B=Q._isPreamble?"Preamble":"Part";Q._part.emit("error",Error(B+" terminated early due to unexpected end of multipart data")),Q._part.push(null),process.nextTick(function(){Q._realFinish=!0,Q.emit("finish"),Q._realFinish=!1});return}Q._realFinish=!0,Q.emit("finish"),Q._realFinish=!1})}}else m7.prototype.emit.apply(this,arguments)};pC.prototype._write=function(A,Q,B){if(!this._hparser&&!this._bparser)return B();if(this._headerFirst&&this._isPreamble){if(!this._part)if(this._part=new zg(this._partOpts),this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else this._ignore();let E=this._hparser.push(A);if(!this._inHeader&&E!==void 0&&E<A.length)A=A.slice(E);else return B()}if(this._firstWrite)this._bparser.push(RAA),this._firstWrite=!1;if(this._bparser.push(A),this._pause)this._cb=B;else B()};pC.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};pC.prototype.setBoundary=function(A){let Q=this;this._bparser=new HAA(`\r
--`+A),this._bparser.on("info",function(B,E,I,C){Q._oninfo(B,E,I,C)})};pC.prototype._ignore=function(){if(this._part&&!this._ignoreData)this._ignoreData=!0,this._part.on("error",gAA),this._part.resume()};pC.prototype._oninfo=function(A,Q,B,E){let I,C=this,D=0,F,Y=!0;if(!this._part&&this._justMatched&&Q){while(this._dashes<2&&B+D<E)if(Q[B+D]===45)++D,++this._dashes;else{if(this._dashes)I=MAA;this._dashes=0;break}if(this._dashes===2){if(B+D<E&&this.listenerCount("trailer")!==0)this.emit("trailer",Q.slice(B+D,E));if(this.reset(),this._finished=!0,C._parts===0)C._realFinish=!0,C.emit("finish"),C._realFinish=!1}if(this._dashes)return}if(this._justMatched)this._justMatched=!1;if(!this._part){if(this._part=new zg(this._partOpts),this._part._read=function(J){C._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else if(this._isPreamble!==!0&&this.listenerCount("part")!==0)this.emit("part",this._part);else this._ignore();if(!this._isPreamble)this._inHeader=!0}if(Q&&B<E&&!this._ignoreData){if(this._isPreamble||!this._inHeader){if(I)Y=this._part.push(I);if(Y=this._part.push(Q.slice(B,E)),!Y)this._pause=!0}else if(!this._isPreamble&&this._inHeader){if(I)this._hparser.push(I);if(F=this._hparser.push(Q.slice(B,E)),!this._inHeader&&F!==void 0&&F<E)this._oninfo(!1,Q,B+F,E)}}if(A){if(this._hparser.reset(),this._isPreamble)this._isPreamble=!1;else if(B!==E)++this._parts,this._part.on("end",function(){if(--C._parts===0)if(C._finished)C._realFinish=!0,C.emit("finish"),C._realFinish=!1;else C._unpause()});this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0}};pC.prototype._unpause=function(){if(!this._pause)return;if(this._pause=!1,this._cb){let A=this._cb;this._cb=void 0,A()}};Hg.exports=pC});var bU=K((c7,Rg)=>{var wg=new TextDecoder("utf-8"),Mg=new Map([["utf-8",wg],["utf8",wg]]);function TAA(A){let Q;while(!0)switch(A){case"utf-8":case"utf8":return fN.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return fN.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return fN.utf16le;case"base64":return fN.base64;default:if(Q===void 0){Q=!0,A=A.toLowerCase();continue}return fN.other.bind(A)}}var fN={utf8:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.utf8Slice(0,A.length)},latin1:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")return A;return A.latin1Slice(0,A.length)},utf16le:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.ucs2Slice(0,A.length)},base64:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.base64Slice(0,A.length)},other:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);if(Mg.has(c7.toString()))try{return Mg.get(c7).decode(A)}catch{}return typeof A==="string"?A:A.toString()}};function OAA(A,Q,B){if(A)return TAA(B)(A,Q);return A}Rg.exports=OAA});var p7=K((OhA,jg)=>{var uU=bU(),gg=/%[a-fA-F0-9][a-fA-F0-9]/g,qAA={"%00":"\x00","%01":"\x01","%02":"\x02","%03":"\x03","%04":"\x04","%05":"\x05","%06":"\x06","%07":"\x07","%08":"\b","%09":"\t","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"\x0E","%0E":"\x0E","%0f":"\x0F","%0F":"\x0F","%10":"\x10","%11":"\x11","%12":"\x12","%13":"\x13","%14":"\x14","%15":"\x15","%16":"\x16","%17":"\x17","%18":"\x18","%19":"\x19","%1a":"\x1A","%1A":"\x1A","%1b":"\x1B","%1B":"\x1B","%1c":"\x1C","%1C":"\x1C","%1d":"\x1D","%1D":"\x1D","%1e":"\x1E","%1E":"\x1E","%1f":"\x1F","%1F":"\x1F","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"","%B6":"","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%FdLine truncated
`))return!1;return!0}function OQA(A,Q){let{headersList:B}=Q,E=(B.get("referrer-policy")??"").split(","),I="";if(E.length>0)for(let C=E.length;C!==0;C--){let D=E[C-1].trim();if(ZQA.has(D)){I=D;break}}if(I!=="")A.referrerPolicy=I}function qQA(){return"allowed"}function jQA(){return"success"}function PQA(){return"success"}function kQA(A){let Q=null;Q=A.mode,A.headersList.set("sec-fetch-mode",Q)}function fQA(A){let Q=A.origin;if(A.responseTainting==="cors"||A.mode==="websocket"){if(Q)A.headersList.append("origin",Q)}else if(A.method!=="GET"&&A.method!=="HEAD"){switch(A.referrerPolicy){case"no-referrer":Q=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(A.origin&&e7(A.origin)&&!e7(SN(A)))Q=null;break;case"same-origin":if(!pU(A,SN(A)))Q=null;break;default:}if(Q)A.headersList.append("origin",Q)}}function xQA(A){return $QA.now()}function hQA(A){return{startTime:A.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:A.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function SQA(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function yQA(A){return{referrerPolicy:A.referrerPolicy}}function _QA(A){let Q=A.referrerPolicy;JY(Q);let B=null;if(A.referrer==="client"){let F=XQA();if(!F||F.origin==="null")return"no-referrer";B=new URL(F)}else if(A.referrer instanceof URL)B=A.referrer;let E=r7(B),I=r7(B,!0);if(E.toString().length>4096)E=I;let C=pU(A,E),D=hN(E)&&!hN(A.url);switch(Q){case"origin":return I!=null?I:r7(B,!0);case"unsafe-url":return E;case"same-origin":return C?I:"no-referrer";case"origin-when-cross-origin":return C?E:I;case"strict-origin-when-cross-origin":{let F=SN(A);if(pU(E,F))return E;if(hN(E)&&!hN(F))return"no-referrer";return I}case"strict-origin":case"no-referrer-when-downgrade":default:return D?"no-referrer":I}}function r7(A,Q){if(JY(A instanceof URL),A.protocol==="file:"||A.protocol==="about:"||A.protocol==="blank:")return"no-referrer";if(A.username="",A.password="",A.hash="",Q)A.pathname="",A.search="";return A}function hN(A){if(!(A instanceof URL))return!1;if(A.href==="about:blank"||A.href==="about:srcdoc")return!0;if(A.protocol==="data:")return!0;if(A.protocol==="file:")return!0;return Q(A.origin);function Q(B){if(B==null||B==="null")return!1;let E=new URL(B);if(E.protocol==="https:"||E.protocol==="wss:")return!0;if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(E.hostname)||(E.hostname==="localhost"||E.hostname.includes("localhost."))||E.hostname.endsWith(".localhost"))return!0;return!1}}function vQA(A,Q){if(lU===void 0)return!0;let B=BT(Q);if(B==="no metadata")return!0;if(B.length===0)return!0;let E=uQA(B),I=mQA(B,E);for(let C of I){let{algo:D,hash:F}=C,Y=lU.createHash(D).update(A).digest("base64");if(Y[Y.length-1]==="=")if(Y[Y.length-2]==="=")Y=Y.slice(0,-2);else Y=Y.slice(0,-1);if(dQA(Y,F))return!0}return!1}var bQA=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function BT(A){let Q=[],B=!0;for(let E of A.split(" ")){B=!1;let I=bQA.exec(E);if(I===null||I.groups===void 0||I.groups.algo===void 0)continue;let C=I.groups.algo.toLowerCase();if(tg.includes(C))Q.push(I.groups)}if(B===!0)return"no metadata";return Q}function uQA(A){let Q=A[0].algo;if(Q[3]==="5")return Q;for(let B=1;B<A.length;++B){let E=A[B];if(E.algo[3]==="5"){Q="sha512";break}else if(Q[3]==="3")continue;else if(E.algo[3]==="3")Q="sha384"}return Q}function mQA(A,Q){if(A.length===1)return A;let B=0;for(let E=0;E<A.length;++E)if(A[E].algo===Q)A[B++]=A[E];return A.length=B,A}function dQA(A,Q){if(A.length!==Q.length)return!1;for(let B=0;B<A.length;++B)if(A[B]!==Q[B]){if(A[B]==="+"&&Q[B]==="-"||A[B]==="/"&&Q[B]==="_")continue;return!1}return!0}function cQA(A){}function pU(A,Q){if(A.origin===Q.origin&&A.origin==="null")return!0;if(A.protocol===Q.protocol&&A.hostname===Q.hostname&&A.port===Q.port)return!0;return!1}function lQA(){let A,Q;return{promise:new Promise((E,I)=>{A=E,Q=I}),resolve:A,reject:Q}}function pQA(A){return A.controller.state==="aborted"}function iQA(A){return A.controller.state==="aborted"||A.controller.state==="terminated"}var A3={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(A3,null);function nQA(A){return A3[A.toLowerCase()]??A}function aQA(A){let Q=JSON.stringify(A);if(Q===void 0)throw TypeError("Value is not JSON serializable");return JY(typeof Q==="string"),Q}var sQA=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function oQA(A,Q,B){let E={index:0,kind:B,target:A},I={next(){if(Object.getPrototypeOf(this)!==I)throw TypeError(`'next' called on an object that does not implement interface ${Q} Iterator.`);let{index:C,kind:D,target:F}=E,Y=F(),J=Y.length;if(C>=J)return{value:void 0,done:!0};let Line truncated
`||A==="\t"||A===" "}function Q3(A,Q=!0,B=!0){let E=0,I=A.length-1;if(Q)for(;E<A.length&&JT(A[E]);E++);if(B)for(;I>0&&JT(A[I]);I--);return A.slice(E,I+1)}function GT(A){return A==="\r"||A===`
`||A==="\t"||A==="\f"||A===" "}function $BA(A,Q=!0,B=!0){let E=0,I=A.length-1;if(Q)for(;E<A.length&&GT(A[E]);E++);if(B)for(;I>0&&GT(A[I]);I--);return A.slice(E,I+1)}WT.exports={dataURLProcessor:UBA,URLSerializer:NT,collectASequenceOfCodePoints:aU,collectASequenceOfCodePointsFast:GY,stringPercentDecode:UT,parseMIMEType:B3,collectAnHTTPQuotedString:ZT,serializeAMimeType:XBA}});var sU=K((bhA,VT)=>{var{Blob:KT,File:XT}=require("buffer"),{types:E3}=require("util"),{kState:cI}=t0(),{isBlobLike:LT}=GC(),{webidl:yQ}=QI(),{parseMIMEType:KBA,serializeAMimeType:LBA}=iC(),{kEnumerableProperty:$T}=TQ(),VBA=new TextEncoder;class mF extends KT{constructor(A,Q,B={}){yQ.argumentLengthCheck(arguments,2,{header:"File constructor"}),A=yQ.converters["sequence<BlobPart>"](A),Q=yQ.converters.USVString(Q),B=yQ.converters.FilePropertyBag(B);let E=Q,I=B.type,C;A:{if(I){if(I=KBA(I),I==="failure"){I="";break A}I=LBA(I).toLowerCase()}C=B.lastModified}super(zBA(A,B),{type:I});this[cI]={name:E,lastModified:C,type:I}}get name(){return yQ.brandCheck(this,mF),this[cI].name}get lastModified(){return yQ.brandCheck(this,mF),this[cI].lastModified}get type(){return yQ.brandCheck(this,mF),this[cI].type}}class U0{constructor(A,Q,B={}){let E=Q,I=B.type,C=B.lastModified??Date.now();this[cI]={blobLike:A,name:E,type:I,lastModified:C}}stream(...A){return yQ.brandCheck(this,U0),this[cI].blobLike.stream(...A)}arrayBuffer(...A){return yQ.brandCheck(this,U0),this[cI].blobLike.arrayBuffer(...A)}slice(...A){return yQ.brandCheck(this,U0),this[cI].blobLike.slice(...A)}text(...A){return yQ.brandCheck(this,U0),this[cI].blobLike.text(...A)}get size(){return yQ.brandCheck(this,U0),this[cI].blobLike.size}get type(){return yQ.brandCheck(this,U0),this[cI].blobLike.type}get name(){return yQ.brandCheck(this,U0),this[cI].name}get lastModified(){return yQ.brandCheck(this,U0),this[cI].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(mF.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:$T,lastModified:$T});yQ.converters.Blob=yQ.interfaceConverter(KT);yQ.converters.BlobPart=function(A,Q){if(yQ.util.Type(A)==="Object"){if(LT(A))return yQ.converters.Blob(A,{strict:!1});if(ArrayBuffer.isView(A)||E3.isAnyArrayBuffer(A))return yQ.converters.BufferSource(A,Q)}return yQ.converters.USVString(A,Q)};yQ.converters["sequence<BlobPart>"]=yQ.sequenceConverter(yQ.converters.BlobPart);yQ.converters.FilePropertyBag=yQ.dictionaryConverter([{key:"lastModified",converter:yQ.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:yQ.converters.DOMString,defaultValue:""},{key:"endings",converter:(A)=>{if(A=yQ.converters.DOMString(A),A=A.toLowerCase(),A!=="native")A="transparent";return A},defaultValue:"transparent"}]);function zBA(A,Q){let B=[];for(let E of A)if(typeof E==="string"){let I=E;if(Q.endings==="native")I=HBA(I);B.push(VBA.encode(I))}else if(E3.isAnyArrayBuffer(E)||E3.isTypedArray(E))if(!E.buffer)B.push(new Uint8Array(E));else B.push(new Uint8Array(E.buffer,E.byteOffset,E.byteLength));else if(LT(E))B.push(E);return B}function HBA(A){let Q=`
`;if(process.platform==="win32")Q=`\r
`;return A.replace(/\r?\n/g,Q)}function wBA(A){return XT&&A instanceof XT||A instanceof mF||A&&(typeof A.stream==="function"||typeof A.arrayBuffer==="function")&&A[Symbol.toStringTag]==="File"}VT.exports={File:mF,FileLike:U0,isFileLike:wBA}});var rU=K((uhA,RT)=>{var{isBlobLike:oU,toUSVString:MBA,makeIterator:I3}=GC(),{kState:vE}=t0(),{File:MT,FileLike:zT,isFileLike:RBA}=sU(),{webidl:lQ}=QI(),{Blob:gBA,File:C3}=require("buffer"),HT=C3??MT;class BI{constructor(A){if(A!==void 0)throw lQ.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[vE]=[]}append(A,Q,B=void 0){if(lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!oU(Q))throw TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");A=lQ.converters.USVString(A),Q=oU(Q)?lQ.converters.Blob(Q,{strict:!1}):lQ.converters.USVString(Q),B=arguments.length===3?lQ.converters.USVString(B):void 0;let E=wT(A,Q,B);this[vE].push(E)}delete(A){lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),A=lQ.converters.USVString(A),this[vE]=this[vE].filter((Q)=>Q.name!==A)}get(A){lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.get"}),A=lQ.converters.USVString(A);let Q=this[vE].findIndex((B)=>B.name===A);if(Q===-1)return null;return this[vE][Q].value}getAll(A){return lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),A=lQ.converters.USVString(A),this[vE].filter((Q)=>Q.name===A).map((Q)=>Q.value)}has(A){return lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.has"}),A=lQ.converters.USVString(A),this[vE].findIndex((Q)=>Q.name===A)!==-1}set(A,Q,B=void 0){if(lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!oU(Q))throw TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");A=lQ.converters.USVString(A),Q=oU(Q)?lQ.converters.Blob(Q,{strict:!1}):lQ.converters.USVString(Q),B=arguments.length===3?MBA(B):void 0;let E=wT(A,Q,B),I=this[vE].findIndex((C)=>C.name===A);if(I!==-1)this[vE]=[...this[vE].slice(0,I),E,...this[vE].slice(I+1).filter((C)=>C.name!==A)];else this[vE].push(E)}entries(){return lQ.brandCheck(this,BI),I3(()=>this[vE].map((A)=>[A.name,A.value]),"FormData","key+value")}keys(){return lQ.brandCheck(this,BI),I3(()=>this[vE].map((A)=>[A.name,A.value]),"FormData","key")}values(){return lQ.brandCheck(this,BI),I3(()=>this[vE].map((A)=>[A.name,A.value]),"FormData","value")}forEach(A,Q=globalThis){if(lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof A!=="function")throw TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[B,E]of this)A.apply(Q,[E,B,this])}}BI.prototype[Symbol.iterator]=BI.prototype.entries;Object.defineProperties(BI.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function wT(A,Q,B){if(A=Buffer.from(A).toString("utf8"),typeof Q==="string")Q=Buffer.from(Q).toString("utf8");else{if(!RBA(Q))Q=Q instanceof gBA?new HT([Q],"blob",{type:Q.type}):new zT(Q,"blob",{type:Q.type});if(B!==void 0){let E={type:Q.type,lastModified:Q.lastModified};Q=C3&&Q instanceof C3||Q instanceof MT?new HT([Q],B,E):new zT(Q,B,E)}}return{name:A,value:Q}}RT.exports={FormData:BI}});var yN=K((mhA,xT)=>{var TBA=dg(),NY=TQ(),{ReadableStreamFrom:OBA,isBlobLike:gT,isReadableStreamLike:qBA,readableStreamClose:jBA,createDeferredPromise:PBA,fullyReadBody:kBA}=GC(),{FormData:TT}=rU(),{kState:AD}=t0(),{webidl:D3}=QI(),{DOMException:jT,structuredClone:fBA}=hD(),{Blob:xBA,File:hBA}=require("buffer"),{kBodyUsed:SBA}=UB(),F3=require("assert"),{isErrored:yBA}=TQ(),{isUint8Array:PT,isArrayBuffer:_BA}=require("util/types"),{File:vBA}=sU(),{parseMIMEType:bBA,serializeAMimeType:uBA}=iC(),Y3;try{let A=require("node:crypto");Y3=(Q)=>A.randomInt(0,Q)}catch{Y3=(A)=>Math.floor(Math.random(A))}var e0=globalThis.ReadableStream,OT=hBA??vBA,tU=new TextEncoder,mBA=new TextDecoder;function kT(A,Q=!1){if(!e0)e0=require("stream/web").ReadableStream;let B=null;if(A instanceof e0)B=A;else if(gT(A))B=A.stream();else B=new e0({async pull(Y){Y.enqueue(typeof I==="string"?tU.encode(I):I),queueMicrotask(()=>jBA(Y))},start(){},type:void 0});F3(qBA(B));let E=null,I=null,C=null,D=null;if(typeof A==="string")I=A,D="text/plain;charset=UTF-8";else if(A instanceof URLSearchParams)I=A.toString(),D="application/x-www-form-urlencoded;charset=UTF-8";else if(_BA(A))I=new Uint8Array(A.slice());else if(ArrayBuffer.isView(A))I=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength));else if(NY.isFormDataLike(A)){let Y=`----formdata-undici-0${`${Y3(100000000000)}`.padStart(11,"0")}`,J=`--${Y}\r
Content-Disposition: form-data`;/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */let G=(V)=>V.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),N=(V)=>V.replace(/\r?\n|\r/g,`\r
`),U=[],Z=new Uint8Array([13,10]);C=0;let X=!1;for(let[V,w]of A)if(typeof w==="string"){let g=tU.encode(J+`; name="${G(N(V))}"\r
\r
${N(w)}\r
`);U.push(g),C+=g.byteLength}else{let g=tU.encode(`${J}; name="${G(N(V))}"`+(w.name?`; filename="${G(w.name)}"`:"")+`\r
Content-Type: ${w.type||"application/octet-stream"}\r
\r
`);if(U.push(g,w,Z),typeof w.size==="number")C+=g.byteLength+w.size+Z.byteLength;else X=!0}let $=tU.encode(`--${Y}--`);if(U.push($),C+=$.byteLength,X)C=null;I=A,E=async function*(){for(let V of U)if(V.stream)yield*V.stream();else yield V},D="multipart/form-data; boundary="+Y}else if(gT(A)){if(I=A,C=A.size,A.type)D=A.type}else if(typeof A[Symbol.asyncIterator]==="function"){if(Q)throw TypeError("keepalive");if(NY.isDisturbed(A)||A.locked)throw TypeError("Response body object should not be disturbed or locked");B=A instanceof e0?A:OBA(A)}if(typeof I==="string"||NY.isBuffer(I))C=Buffer.byteLength(I);if(E!=null){let Y;B=new e0({async start(){Y=E(A)[Symbol.asyncIterator]()},async pull(J){let{value:G,done:N}=await Y.next();if(N)queueMicrotask(()=>{J.close()});else if(!yBA(B))J.enqueue(new Uint8Array(G));return J.desiredSize>0},async cancel(J){await Y.return()},type:void 0})}return[{stream:B,source:I,length:C},D]}function dBA(A,Q=!1){if(!e0)e0=require("stream/web").ReadableStream;if(A instanceof e0)F3(!NY.isDisturbed(A),"The body has already been consumed."),F3(!A.locked,"The stream is locked.");return kT(A,Q)}function cBA(A){let[Q,B]=A.stream.tee(),E=fBA(B,{transfer:[B]}),[,I]=E.tee();return A.stream=Q,{stream:I,length:A.length,source:A.source}}async function*qT(A){if(A)if(PT(A))yield A;else{let Q=A.stream;if(NY.isDisturbed(Q))throw TypeError("The body has already been consumed.");if(Q.locked)throw TypeError("The stream is locked.");Q[SBA]=!0,yield*Q}}function J3(A){if(A.aborted)throw new jT("The operation was aborted.","AbortError")}function lBA(A){return{blob(){return eU(this,(B)=>{let E=aBA(this);if(E==="failure")E="";else if(E)E=uBA(E);return new xBA([B],{type:E})},A)},arrayBuffer(){return eU(this,(B)=>{return new Uint8Array(B).buffer},A)},text(){return eU(this,fT,A)},json(){return eU(this,nBA,A)},async formData(){D3.brandCheck(this,A),J3(this[AD]);let B=this.headers.get("Content-Type");if(/multipart\/form-data/.test(B)){let E={};for(let[F,Y]of this.headers)E[F.toLowerCase()]=Y;let I=new TT,C;try{C=new TBA({headers:E,preservePath:!0})}catch(F){throw new jT(`${F}`,"AbortError")}C.on("field",(F,Y)=>{I.append(F,Y)}),C.on("file",(F,Y,J,G,N)=>{let U=[];if(G==="base64"||G.toLowerCase()==="base64"){let Z="";Y.on("data",(X)=>{Z+=X.toString().replace(/[\r\n]/gm,"");let $=Z.length-Z.length%4;U.push(Buffer.from(Z.slice(0,$),"base64")),Z=Z.slice($)}),Y.on("end",()=>{U.push(Buffer.from(Z,"base64")),I.append(F,new OT(U,J,{type:N}))})}else Y.on("data",(Z)=>{U.push(Z)}),Y.on("end",()=>{I.append(F,new OT(U,J,{type:N}))})});let D=new Promise((F,Y)=>{C.on("finish",F),C.on("error",(J)=>Y(TypeError(J)))});if(this.body!==null)for await(let F of qT(this[AD].body))C.write(F);return C.end(),await D,I}else if(/application\/x-www-form-urlencoded/.test(B)){let E;try{let C="",D=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let F of qT(this[AD].body)){if(!PT(F))throw TypeError("Expected Uint8Array chunk");C+=D.decode(F,{stream:!0})}C+=D.decode(),E=new URLSearchParams(C)}catch(C){throw Object.assign(TypeError(),{cause:C})}let I=new TT;for(let[C,D]of E)I.append(C,D);return I}else throw await Promise.resolve(),J3(this[AD]),D3.errors.exception({header:`${A.name}.formData`,message:"Could not parse content as FormData."})}}}function pBA(A){Object.assign(A.prototype,lBA(A))}async function eU(A,Q,B){if(D3.brandCheck(A,B),J3(A[AD]),iBA(A[AD].body))throw TypeError("Body is unusable");let E=PBA(),I=(D)=>E.reject(D),C=(D)=>{try{E.resolve(Q(D))}catch(F){I(F)}};if(A[AD].body==null)return C(new Uint8Array),E.promise;return await kBA(A[AD].body,C,I),E.promise}function iBA(A){return A!=null&&(A.stream.locked||NY.isDisturbed(A.stream))}function fT(A){if(A.length===0)return"";if(A[0]===239&&A[1]===187&&A[2]===191)A=A.subarray(3);return mBA.decode(A)}function nBA(A){return JSON.parse(fT(A))}function aBA(A){let{headersList:Q}=A[AD],B=Q.get("content-type");if(B===null)return"failure";return bBA(B)}xT.exports={extractBody:kT,safelyExtractBody:dBA,cloneBody:cBA,mixinBody:pBA}});var _T=K((dhA,yT)=>{var{InvalidArgumentError:CB,NotSupportedError:sBA}=eQ(),QD=require("assert"),{kHTTP2BuildRequest:oBA,kHTTP2CopyHeaders:rBA,kHTTP1BuildRequest:tBA}=UB(),VI=TQ(),hT=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,ST=/[^\t\x20-\x7e\x80-\xff]/,eBA=/[^\u0021-\u00ff]/,nC=Symbol("handler"),tB={},G3;try{let A=require("diagnostics_channel");tB.create=A.channel("undici:request:create"),tB.bodySent=A.channel("undici:request:bodySent"),tB.headers=A.channel("undici:request:headers"),tB.trailers=A.channel("undici:request:trailers"),tB.error=A.channel("undici:request:error")}catch{tB.create={hasSubscribers:!1},tB.bodySent={hasSubscribers:!1},tB.headers={hasSubscribers:!1},tB.trailers={hasSubscribers:!1},tB.error={hasSubscribers:!1}}class A8{constructor(A,{path:Q,method:B,body:E,headers:I,query:C,idempotent:D,blocking:F,upgrade:Y,headersTimeout:J,bodyTimeout:G,reset:N,throwOnError:U,expectContinue:Z},X){if(typeof Q!=="string")throw new CB("path must be a string");else if(Q[0]!=="/"&&!(Q.startsLine truncated
`;this.body=$.stream,this.contentLength=$.length}else if(VI.isBlobLike(E)&&this.contentType==null&&E.type)this.contentType=E.type,this.headers+=`content-type: ${E.type}\r
`;if(VI.validateHandler(X,B,Y),this.servername=VI.getServerName(this.host),this[nC]=X,tB.create.hasSubscribers)tB.create.publish({request:this})}onBodySent(A){if(this[nC].onBodySent)try{return this[nC].onBodySent(A)}catch(Q){this.abort(Q)}}onRequestSent(){if(tB.bodySent.hasSubscribers)tB.bodySent.publish({request:this});if(this[nC].onRequestSent)try{return this[nC].onRequestSent()}catch(A){this.abort(A)}}onConnect(A){if(QD(!this.aborted),QD(!this.completed),this.error)A(this.error);else return this.abort=A,this[nC].onConnect(A)}onHeaders(A,Q,B,E){if(QD(!this.aborted),QD(!this.completed),tB.headers.hasSubscribers)tB.headers.publish({request:this,response:{statusCode:A,headers:Q,statusText:E}});try{return this[nC].onHeaders(A,Q,B,E)}catch(I){this.abort(I)}}onData(A){QD(!this.aborted),QD(!this.completed);try{return this[nC].onData(A)}catch(Q){return this.abort(Q),!1}}onUpgrade(A,Q,B){return QD(!this.aborted),QD(!this.completed),this[nC].onUpgrade(A,Q,B)}onComplete(A){if(this.onFinally(),QD(!this.aborted),this.completed=!0,tB.trailers.hasSubscribers)tB.trailers.publish({request:this,trailers:A});try{return this[nC].onComplete(A)}catch(Q){this.onError(Q)}}onError(A){if(this.onFinally(),tB.error.hasSubscribers)tB.error.publish({request:this,error:A});if(this.aborted)return;return this.aborted=!0,this[nC].onError(A)}onFinally(){if(this.errorHandler)this.body.off("error",this.errorHandler),this.errorHandler=null;if(this.endHandler)this.body.off("end",this.endHandler),this.endHandler=null}addHeader(A,Q){return _N(this,A,Q),this}static[tBA](A,Q,B){return new A8(A,Q,B)}static[oBA](A,Q,B){let E=Q.headers;Q={...Q,headers:null};let I=new A8(A,Q,B);if(I.headers={},Array.isArray(E)){if(E.length%2!==0)throw new CB("headers array must be even");for(let C=0;C<E.length;C+=2)_N(I,E[C],E[C+1],!0)}else if(E&&typeof E==="object"){let C=Object.keys(E);for(let D=0;D<C.length;D++){let F=C[D];_N(I,F,E[F],!0)}}else if(E!=null)throw new CB("headers must be an object or an array");return I}static[rBA](A){let Q=A.split(`\r
`),B={};for(let E of Q){let[I,C]=E.split(": ");if(C==null||C.length===0)continue;if(B[I])B[I]+=`,${C}`;else B[I]=C}return B}}function dF(A,Q,B){if(Q&&typeof Q==="object")throw new CB(`invalid ${A} header`);if(Q=Q!=null?`${Q}`:"",ST.exec(Q)!==null)throw new CB(`invalid ${A} header`);return B?Q:`${A}: ${Q}\r
`}function _N(A,Q,B,E=!1){if(B&&(typeof B==="object"&&!Array.isArray(B)))throw new CB(`invalid ${Q} header`);else if(B===void 0)return;if(A.host===null&&Q.length===4&&Q.toLowerCase()==="host"){if(ST.exec(B)!==null)throw new CB(`invalid ${Q} header`);A.host=B}else if(A.contentLength===null&&Q.length===14&&Q.toLowerCase()==="content-length"){if(A.contentLength=parseInt(B,10),!Number.isFinite(A.contentLength))throw new CB("invalid content-length header")}else if(A.contentType===null&&Q.length===12&&Q.toLowerCase()==="content-type")if(A.contentType=B,E)A.headers[Q]=dF(Q,B,E);else A.headers+=dF(Q,B);else if(Q.length===17&&Q.toLowerCase()==="transfer-encoding")throw new CB("invalid transfer-encoding header");else if(Q.length===10&&Q.toLowerCase()==="connection"){let I=typeof B==="string"?B.toLowerCase():null;if(I!=="close"&&I!=="keep-alive")throw new CB("invalid connection header");else if(I==="close")A.reset=!0}else if(Q.length===10&&Q.toLowerCase()==="keep-alive")throw new CB("invalid keep-alive header");else if(Q.length===7&&Q.toLowerCase()==="upgrade")throw new CB("invalid upgrade header");else if(Q.length===6&&Q.toLowerCase()==="expect")throw new sBA("expect header not supported");else if(hT.exec(Q)===null)throw new CB("invalid header key");else if(Array.isArray(B))for(let I=0;I<B.length;I++)if(E)if(A.headers[Q])A.headers[Q]+=`,${dF(Q,B[I],E)}`;else A.headers[Q]=dF(Q,B[I],E);else A.headers+=dF(Q,B[I]);else if(E)A.headers[Q]=dF(Q,B,E);else A.headers+=dF(Q,B)}yT.exports=A8});var Q8=K((chA,bT)=>{var AEA=require("events");class vT extends AEA{dispatch(){throw Error("not implemented")}close(){throw Error("not implemented")}destroy(){throw Error("not implemented")}}bT.exports=vT});var bN=K((lhA,mT)=>{var QEA=Q8(),{ClientDestroyedError:N3,ClientClosedError:BEA,InvalidArgumentError:UY}=eQ(),{kDestroy:EEA,kClose:IEA,kDispatch:U3,kInterceptors:cF}=UB(),ZY=Symbol("destroyed"),vN=Symbol("closed"),BD=Symbol("onDestroyed"),WY=Symbol("onClosed"),B8=Symbol("Intercepted Dispatch");class uT extends QEA{constructor(){super();this[ZY]=!1,this[BD]=null,this[vN]=!1,this[WY]=[]}get destroyed(){return this[ZY]}get closed(){return this[vN]}get interceptors(){return this[cF]}set interceptors(A){if(A){for(let Q=A.length-1;Q>=0;Q--)if(typeof this[cF][Q]!=="function")throw new UY("interceptor must be an function")}this[cF]=A}close(A){if(A===void 0)return new Promise((B,E)=>{this.close((I,C)=>{return I?E(I):B(C)})});if(typeof A!=="function")throw new UY("invalid callback");if(this[ZY]){queueMicrotask(()=>A(new N3,null));return}if(this[vN]){if(this[WY])this[WY].push(A);else queueMicrotask(()=>A(null,null));return}this[vN]=!0,this[WY].push(A);let Q=()=>{let B=this[WY];this[WY]=null;for(let E=0;E<B.length;E++)B[E](null,null)};this[IEA]().then(()=>this.destroy()).then(()=>{queueMicrotask(Q)})}destroy(A,Q){if(typeof A==="function")Q=A,A=null;if(Q===void 0)return new Promise((E,I)=>{this.destroy(A,(C,D)=>{return C?I(C):E(D)})});if(typeof Q!=="function")throw new UY("invalid callback");if(this[ZY]){if(this[BD])this[BD].push(Q);else queueMicrotask(()=>Q(null,null));return}if(!A)A=new N3;this[ZY]=!0,this[BD]=this[BD]||[],this[BD].push(Q);let B=()=>{let E=this[BD];this[BD]=null;for(let I=0;I<E.length;I++)E[I](null,null)};this[EEA](A).then(()=>{queueMicrotask(B)})}[B8](A,Q){if(!this[cF]||this[cF].length===0)return this[B8]=this[U3],this[U3](A,Q);let B=this[U3].bind(this);for(let E=this[cF].length-1;E>=0;E--)B=this[cF][E](B);return this[B8]=B,B(A,Q)}dispatch(A,Q){if(!Q||typeof Q!=="object")throw new UY("handler must be an object");try{if(!A||typeof A!=="object")throw new UY("opts must be an object.");if(this[ZY]||this[BD])throw new N3;if(this[vN])throw new BEA;return this[B8](A,Q)}catch(B){if(typeof Q.onError!=="function")throw new UY("invalid onError method");return Q.onError(B),!1}}}mT.exports=uT});var uN=K((phA,lT)=>{var CEA=require("net"),dT=require("assert"),cT=TQ(),{InvalidArgumentError:DEA,ConnectTimeoutError:FEA}=eQ(),Z3,W3;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE)W3=class{constructor(Q){this._maxCachedSessions=Q,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry((B)=>{if(this._sessionCache.size<this._maxCachedSessions)return;let E=this._sessionCache.get(B);if(E!==void 0&&E.deref()===void 0)this._sessionCache.delete(B)})}get(Q){let B=this._sessionCache.get(Q);return B?B.deref():null}set(Q,B){if(this._maxCachedSessions===0)return;this._sessionCache.set(Q,new WeakRef(B)),this._sessionRegistry.register(B,Q)}};else W3=class{constructor(Q){this._maxCachedSessions=Q,this._sessionCache=new Map}get(Q){return this._sessionCache.get(Q)}set(Q,B){if(this._maxCachedSessions===0)return;if(this._sessionCache.size>=this._maxCachedSessions){let{value:E}=this._sessionCache.keys().next();this._sessionCache.delete(E)}this._sessionCache.set(Q,B)}};function YEA({allowH2:A,maxCachedSessions:Q,socketPath:B,timeout:E,...I}){if(Q!=null&&(!Number.isInteger(Q)||Q<0))throw new DEA("maxCachedSessions must be a positive Line truncated
`,this[YO]=F!=null?F:300000,this[FO]=E!=null?E:300000,this[iN]=w==null?!0:w,this[vEA]=M,this[nN]=d,this[yD]=null,this[GO]=m>-1?m:-1,this[L0]="h1",this[pI]=null,this[J8]=!x?null:{openStreams:0,maxConcurrentStreams:l!=null?l:100},this[NO]=`${this[fE].hostname}${this[fE].port?`:${this[fE].port}`:""}`,this[ZB]=[],this[WB]=0,this[lI]=0}get pipelining(){return this[vD]}set pipelining(A){this[vD]=A,iI(this,!0)}get[iF](){return this[ZB].length-this[lI]}get[PB](){return this[lI]-this[WB]}get[pF](){return this[ZB].length-this[WB]}get[_EA](){return!!this[SB]&&!this[$Y]&&!this[SB].destroyed}get[w3](){let A=this[SB];return A&&(A[EI]||A[CD]||A[LY])||this[pF]>=(this[vD]||1)||this[iF]>0}[yEA](A){KO(this),this.once("connect",A)}[mEA](A,Q){let B=A.origin||this[fE].origin,E=this[L0]==="h2"?H3[cEA](B,A,Q):H3[pEA](B,A,Q);if(this[ZB].push(E),this[lF]);else if(lA.bodyLength(E.body)==null&&lA.isIterable(E.body))this[lF]=1,process.nextTick(iI,this);else iI(this,!0);if(this[lF]&&this[_D]!==2&&this[w3])this[_D]=2;return this[_D]<2}async[bEA](){return new Promise((A)=>{if(!this[pF])A(null);else this[yD]=A})}async[uEA](A){return new Promise((Q)=>{let B=this[ZB].splice(this[lI]);for(let I=0;I<B.length;I++){let C=B[I];II(this,C,A)}let E=()=>{if(this[yD])this[yD](),this[yD]=null;Q()};if(this[pI]!=null)lA.destroy(this[pI],A),this[pI]=null,this[J8]=null;if(!this[SB])queueMicrotask(E);else lA.destroy(this[SB].on("close",E),A);iI(this)})}}function eEA(A){qA(A.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[SB][xE]=A,U8(this[K0],A)}function AIA(A,Q,B){let E=new $0(`HTTP/2: "frameError" received - type ${A}, code ${Q}`);if(B===0)this[SB][xE]=E,U8(this[K0],E)}function QIA(){lA.destroy(this,new KY("other side closed")),lA.destroy(this[SB],new KY("other side closed"))}function BIA(A){let Q=this[K0],B=new $0(`HTTP/2: "GOAWAY" frame received with code ${A}`);if(Q[SB]=null,Q[pI]=null,Q.destroyed){qA(this[iF]===0);let E=Q[ZB].splice(Q[WB]);for(let I=0;I<E.length;I++){let C=E[I];II(this,C,B)}}else if(Q[PB]>0){let E=Q[ZB][Q[WB]];Q[ZB][Q[WB]++]=null,II(Q,E,B)}Q[lI]=Q[WB],qA(Q[PB]===0),Q.emit("disconnect",Q[fE],[Q],B),iI(Q)}var Z0=iT(),EIA=I8(),IIA=Buffer.alloc(0);async function CIA(){let A=process.env.JEST_WORKER_ID?L3():void 0,Q;try{Q=await WebAssembly.compile(Buffer.from(AO(),"base64"))}catch(B){Q=await WebAssembly.compile(Buffer.from(A||L3(),"base64"))}return await WebAssembly.instantiate(Q,{env:{wasm_on_url:(B,E,I)=>{return 0},wasm_on_status:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-X0+W0.byteOffset;return JE.onStatus(new C8(W0.buffer,C,I))||0},wasm_on_message_begin:(B)=>{return qA.strictEqual(JE.ptr,B),JE.onMessageBegin()||0},wasm_on_header_field:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-X0+W0.byteOffset;return JE.onHeaderField(new C8(W0.buffer,C,I))||0},wasm_on_header_value:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-X0+W0.byteOffset;return JE.onHeaderValue(new C8(W0.buffer,C,I))||0},wasm_on_headers_complete:(B,E,I,C)=>{return qA.strictEqual(JE.ptr,B),JE.onHeadersComplete(E,Boolean(I),Boolean(C))||0},wasm_on_body:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-X0+W0.byteOffset;return JE.onBody(new C8(W0.buffer,C,I))||0},wasm_on_message_complete:(B)=>{return qA.strictEqual(JE.ptr,B),JE.onMessageComplete()||0}}})}var z3=null,R3=CIA();R3.catch();var JE=null,W0=null,D8=0,X0=null,VY=1,Y8=2,g3=3;class ZO{constructor(A,Q,{exports:B}){qA(Number.isFinite(A[F8])&&A[F8]>0),this.llhttp=B,this.ptr=this.llhttp.llhttp_alloc(Z0.TYPE.RESPONSE),this.client=A,this.socket=Q,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=A[F8],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=A[GO]}setTimeout(A,Q){if(this.timeoutType=Q,A!==this.timeoutValue){if(V3.clearTimeout(this.timeout),A){if(this.timeout=V3.setTimeout(DIA,A,this),this.timeout.unref)this.timeout.unref()}else this.timeout=null;this.timeoutValue=A}else if(this.timeout){if(this.timeout.refresh)this.timeout.refresh()}}resume(){if(this.socket.destroyed||!this.paused)return;if(qA(this.ptr!=null),qA(JE==null),this.llhttp.llhttp_resume(this.ptr),qA(this.timeoutType===Y8),this.timeout){if(this.timeout.refresh)this.timeout.refresh()}this.paused=!1,this.execute(this.socket.read()||IIA),this.readMore()}readMore(){while(!this.paused&&this.ptr){let A=this.socket.read();if(A===null)break;this.execute(A)}}execute(A){qA(this.ptr!=null),qA(JE==null),qA(!this.paused);let{socket:Q,llhttp:B}=this;if(A.length>D8){if(X0)B.free(X0);D8=Math.ceil(A.length/4096)*4096,X0=B.malloc(D8)}new Uint8Array(B.memory.buffer,X0,D8).set(A);try{let E;try{W0=A,JE=this,E=B.llhttp_execute(this.ptr,X0,A.length)}catch(C){throw C}finally{JE=null,W0=null}let I=B.llhttp_get_error_pos(this.ptr)-X0;if(E===Z0.ERROR.PAUSED_UPGRADE)this.onUpgrade(A.slice(I));else if(E===Z0.ERROR.PAUSED)this.paused=!0,Q.unshift(A.slice(I));else if(E Line truncated
`;if(typeof C==="string")X+=`host: ${C}\r
`;else X+=A[IO];if(D)X+=`connection: upgrade\r
upgrade: ${D}\r
`;else if(A[vD]&&!Z[EI])X+=`connection: keep-alive\r
`;else X+=`connection: close\r
`;if(F)X+=F;if(bE.sendHeaders.hasSubscribers)bE.sendHeaders.publish({request:Q,headers:X,socket:Z});if(!B||N===0){if(U===0)Z.write(`${X}content-length: 0\r
\r
`,"latin1");else qA(U===null,"no body must not have content length"),Z.write(`${X}\r
`,"latin1");Q.onRequestSent()}else if(lA.isBuffer(B)){if(qA(U===B.byteLength,"buffer body must have content length"),Z.cork(),Z.write(`${X}content-length: ${U}\r
\r
`,"latin1"),Z.write(B),Z.uncork(),Q.onBodySent(B),Q.onRequestSent(),!G)Z[EI]=!0}else if(lA.isBlobLike(B))if(typeof B.stream==="function")N8({body:B.stream(),client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else zO({body:B,client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else if(lA.isStream(B))VO({body:B,client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else if(lA.isIterable(B))N8({body:B,client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else qA(!1);return!0}function JIA(A,Q,B){let{body:E,method:I,path:C,host:D,upgrade:F,expectContinue:Y,signal:J,headers:G}=B,N;if(typeof G==="string")N=H3[lEA](G.trim());else N=G;if(F)return II(A,B,Error("Upgrade not supported for H2")),!1;try{B.onConnect((g)=>{if(B.aborted||B.completed)return;II(A,B,g||new O3)})}catch(g){II(A,B,g)}if(B.aborted)return!1;let U,Z=A[J8];if(N[iEA]=D||A[NO],N[nEA]=I,I==="CONNECT"){if(Q.ref(),U=Q.request(N,{endStream:!1,signal:J}),U.id&&!U.pending)B.onUpgrade(null,null,U),++Z.openStreams;else U.once("ready",()=>{B.onUpgrade(null,null,U),++Z.openStreams});return U.once("close",()=>{if(Z.openStreams-=1,Z.openStreams===0)Q.unref()}),!0}N[aEA]=C,N[sEA]="https";let X=I==="PUT"||I==="POST"||I==="PATCH";if(E&&typeof E.read==="function")E.read(0);let $=lA.bodyLength(E);if($==null)$=B.contentLength;if($===0||!X)$=null;if(LO(I)&&$>0&&B.contentLength!=null&&B.contentLength!==$){if(A[iN])return II(A,B,new ID),!1;process.emitWarning(new ID)}if($!=null)qA(E,"no body must not have content length"),N[oEA]=`${$}`;Q.ref();let V=I==="GET"||I==="HEAD";if(Y)N[rEA]="100-continue",U=Q.request(N,{endStream:V,signal:J}),U.once("continue",w);else U=Q.request(N,{endStream:V,signal:J}),w();return++Z.openStreams,U.once("response",(g)=>{let{[tEA]:M,...k}=g;if(B.onHeaders(Number(M),k,U.resume.bind(U),"")===!1)U.pause()}),U.once("end",()=>{B.onComplete([])}),U.on("data",(g)=>{if(B.onData(g)===!1)U.pause()}),U.once("close",()=>{if(Z.openStreams-=1,Z.openStreams===0)Q.unref()}),U.once("error",function(g){if(A[pI]&&!A[pI].destroyed&&!this.closed&&!this.destroyed)Z.streams-=1,lA.destroy(U,g)}),U.once("frameError",(g,M)=>{let k=new $0(`HTTP/2: "frameError" received - type ${g}, code ${M}`);if(II(A,B,k),A[pI]&&!A[pI].destroyed&&!this.closed&&!this.destroyed)Z.streams-=1,lA.destroy(U,k)}),!0;function w(){if(!E)B.onRequestSent();else if(lA.isBuffer(E))qA($===E.byteLength,"buffer body must have content length"),U.cork(),U.write(E),U.uncork(),U.end(),B.onBodySent(E),B.onRequestSent();else if(lA.isBlobLike(E))if(typeof E.stream==="function")N8({client:A,request:B,contentLength:$,h2stream:U,expectsPayload:X,body:E.stream(),socket:A[SB],header:""});else zO({body:E,client:A,request:B,contentLength:$,expectsPayload:X,h2stream:U,header:"",socket:A[SB]});else if(lA.isStream(E))VO({body:E,client:A,request:B,contentLength:$,expectsPayload:X,socket:A[SB],h2stream:U,header:""});else if(lA.isIterable(E))N8({body:E,client:A,request:B,contentLength:$,expectsPayload:X,header:"",h2stream:U,socket:A[SB]});else qA(!1)}}function VO({h2stream:A,body:Q,client:B,request:E,socket:I,contentLength:C,header:D,expectsPayload:F}){if(qA(C!==0||B[PB]===0,"stream body cannot be pipelined"),B[L0]==="h2"){let $=function(V){E.onBodySent(V)},X=TEA(Q,A,(V)=>{if(V)lA.destroy(Q,V),lA.destroy(A,V);else E.onRequestSent()});X.on("data",$),X.once("end",()=>{X.removeListener("data",$),lA.destroy(X)});return}let Y=!1,J=new q3({socket:I,request:E,contentLength:C,client:B,expectsPayload:F,header:D}),G=function(X){if(Y)return;try{if(!J.write(X)&&this.pause)this.pause()}catch($){lA.destroy(this,$)}},N=function(){if(Y)return;if(Q.resume)Q.resume()},U=function(){if(Y)return;let X=new O3;queueMicrotask(()=>Z(X))},Z=function(X){if(Y)return;if(Y=!0,qA(I.destroyed||I[CD]&&B[PB]<=1),I.off("drain",N).off("error",Z),Q.removeListener("data",G).removeListener("end",Z).removeListener("error",Z).removeListener("close",U),!X)try{J.end()}catch($){X=$}if(J.destroy(X),X&&(X.code!=="UND_ERR_INFO"||X.message!=="reset"))lA.destroy(Q,X);else lA.destroy(Q)};if(Q.on("data",G).on("end",Z).on("error",Z).on("close",U),Q.resume)Q.resume();I.on("drain",N).on("error",Z)}async function zO({h2stream:A,body:Q,client:B,request:E,socket:I,contentLength:C,header:D,expectsPayload:F}){qA(C===Q.size,"blob body must have content length");let Y=B[L0]==="h2";try{if(C!=null&&C!==Q.size)throw new ID;let J=Buffer.from(await Q.arrayBuffer());if(Y)A.cork(),A.write(J),A.uncork();else I.cork(),I.write(`${D}content-length: ${C}\r
\r
`,"latin1"),I.write(J),I.uncork();if(E.onBodySent(J),E.onRequestSent(),!F)I[EI]=!0;iI(B)}catch(J){lA.destroy(Y?A:I,J)}}async function N8({h2stream:A,body:Q,client:B,request:E,socket:I,contentLength:C,header:D,expectsPayload:F}){qA(C!==0||B[PB]===0,"iterator body cannot be pipelined");let Y=null;function J(){if(Y){let U=Y;Y=null,U()}}let G=()=>new Promise((U,Z)=>{if(qA(Y===null),I[xE])Z(I[xE]);else Y=U});if(B[L0]==="h2"){A.on("close",J).on("drain",J);try{for await(let U of Q){if(I[xE])throw I[xE];let Z=A.write(U);if(E.onBodySent(U),!Z)await G()}}catch(U){A.destroy(U)}finally{E.onRequestSent(),A.end(),A.off("close",J).off("drain",J)}return}I.on("close",J).on("drain",J);let N=new q3({socket:I,request:E,contentLength:C,client:B,expectsPayload:F,header:D});try{for await(let U of Q){if(I[xE])throw I[xE];if(!N.write(U))await G()}N.end()}catch(U){N.destroy(U)}finally{I.off("close",J).off("drain",J)}}class q3{constructor({socket:A,request:Q,contentLength:B,client:E,expectsPayload:I,header:C}){this.socket=A,this.request=Q,this.contentLength=B,this.client=E,this.bytesWritten=0,this.expectsPayload=I,this.header=C,A[CD]=!0}write(A){let{socket:Q,request:B,contentLength:E,client:I,bytesWritten:C,expectsPayload:D,header:F}=this;if(Q[xE])throw Q[xE];if(Q.destroyed)return!1;let Y=Buffer.byteLength(A);if(!Y)return!0;if(E!==null&&C+Y>E){if(I[iN])throw new ID;process.emitWarning(new ID)}if(Q.cork(),C===0){if(!D)Q[EI]=!0;if(E===null)Q.write(`${F}transfer-encoding: chunked\r
`,"latin1");else Q.write(`${F}content-length: ${E}\r
\r
`,"latin1")}if(E===null)Q.write(`\r
${Y.toString(16)}\r
`,"latin1");this.bytesWritten+=Y;let J=Q.write(A);if(Q.uncork(),B.onBodySent(A),!J){if(Q[hB].timeout&&Q[hB].timeoutType===VY){if(Q[hB].timeout.refresh)Q[hB].timeout.refresh()}}return J}end(){let{socket:A,contentLength:Q,client:B,bytesWritten:E,expectsPayload:I,header:C,request:D}=this;if(D.onRequestSent(),A[CD]=!1,A[xE])throw A[xE];if(A.destroyed)return;if(E===0)if(I)A.write(`${C}content-length: 0\r
\r
`,"latin1");else A.write(`${C}\r
`,"latin1");else if(Q===null)A.write(`\r
0\r
\r
`,"latin1");if(Q!==null&&E!==Q)if(B[iN])throw new ID;else process.emitWarning(new ID);if(A[hB].timeout&&A[hB].timeoutType===VY){if(A[hB].timeout.refresh)A[hB].timeout.refresh()}iI(B)}destroy(A){let{socket:Q,client:B}=this;if(Q[CD]=!1,A)qA(B[PB]<=1,"pipeline should only contain this request"),lA.destroy(Q,A)}}function II(A,Q,B){try{Q.onError(B),qA(Q.aborted)}catch(E){A.emit("error",E)}}HO.exports=UO});var MO=K((ehA,wO)=>{class j3{constructor(){this.bottom=0,this.top=0,this.list=Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(A){this.list[this.top]=A,this.top=this.top+1&2047}shift(){let A=this.list[this.bottom];if(A===void 0)return null;return this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,A}}wO.exports=class{constructor(){this.head=this.tail=new j3}isEmpty(){return this.head.isEmpty()}push(Q){if(this.head.isFull())this.head=this.head.next=new j3;this.head.push(Q)}shift(){let Q=this.tail,B=Q.shift();if(Q.isEmpty()&&Q.next!==null)this.tail=Q.next;return B}}});var TO=K((ASA,gO)=>{var{kFree:GIA,kConnected:NIA,kPending:UIA,kQueued:ZIA,kRunning:WIA,kSize:XIA}=UB(),nF=Symbol("pool");class RO{constructor(A){this[nF]=A}get connected(){return this[nF][NIA]}get free(){return this[nF][GIA]}get pending(){return this[nF][UIA]}get queued(){return this[nF][ZIA]}get running(){return this[nF][WIA]}get size(){return this[nF][XIA]}}gO.exports=RO});var h3=K((QSA,_O)=>{var $IA=bN(),KIA=MO(),{kConnected:P3,kSize:OO,kRunning:qO,kPending:jO,kQueued:sN,kBusy:LIA,kFree:VIA,kUrl:zIA,kClose:HIA,kDestroy:wIA,kDispatch:MIA}=UB(),RIA=TO(),zI=Symbol("clients"),CI=Symbol("needDrain"),oN=Symbol("queue"),k3=Symbol("closed resolve"),f3=Symbol("onDrain"),PO=Symbol("onConnect"),kO=Symbol("onDisconnect"),fO=Symbol("onConnectionError"),x3=Symbol("get dispatcher"),hO=Symbol("add client"),SO=Symbol("remove client"),xO=Symbol("stats");class yO extends $IA{constructor(){super();this[oN]=new KIA,this[zI]=[],this[sN]=0;let A=this;this[f3]=function(B,E){let I=A[oN],C=!1;while(!C){let D=I.shift();if(!D)break;A[sN]--,C=!this.dispatch(D.opts,D.handler)}if(this[CI]=C,!this[CI]&&A[CI])A[CI]=!1,A.emit("drain",B,[A,...E]);if(A[k3]&&I.isEmpty())Promise.all(A[zI].map((D)=>D.close())).then(A[k3])},this[PO]=(Q,B)=>{A.emit("connect",Q,[A,...B])},this[kO]=(Q,B,E)=>{A.emit("disconnect",Q,[A,...B],E)},this[fO]=(Q,B,E)=>{A.emit("connectionError",Q,[A,...B],E)},this[xO]=new RIA(this)}get[LIA](){return this[CI]}get[P3](){return this[zI].filter((A)=>A[P3]).length}get[VIA](){return this[zI].filter((A)=>A[P3]&&!A[CI]).length}get[jO](){let A=this[sN];for(let{[jO]:Q}of this[zI])A+=Q;return A}get[qO](){let A=0;for(let{[qO]:Q}of this[zI])A+=Q;return A}get[OO](){let A=this[sN];for(let{[OO]:Q}of this[zI])A+=Q;return A}get stats(){return this[xO]}async[HIA](){if(this[oN].isEmpty())return Promise.all(this[zI].map((A)=>A.close()));else return new Promise((A)=>{this[k3]=A})}async[wIA](A){while(!0){let Q=this[oN].shift();if(!Q)break;Q.handler.onError(A)}return Promise.all(this[zI].map((Q)=>Q.destroy(A)))}[MIA](A,Q){let B=this[x3]();if(!B)this[CI]=!0,this[oN].push({opts:A,handler:Q}),this[sN]++;else if(!B.dispatch(A,Q))B[CI]=!0,this[CI]=!this[x3]();return!this[CI]}[hO](A){if(A.on("drain",this[f3]).on("connect",this[PO]).on("disconnect",this[kO]).on("connectionError",this[fO]),this[zI].push(A),this[CI])process.nextTick(()=>{if(this[CI])this[f3](A[zIA],[this,A])});return this}[SO](A){A.close(()=>{let Q=this[zI].indexOf(A);if(Q!==-1)this[zI].splice(Q,1)}),this[CI]=this[zI].some((Q)=>!Q[CI]&&Q.closed!==!0&&Q.destroyed!==!0)}}_O.exports={PoolBase:yO,kClients:zI,kNeedDrain:CI,kAddClient:hO,kRemoveClient:SO,kGetDispatcher:x3}});var zY=K((BSA,mO)=>{var{PoolBase:gIA,kClients:Z8,kNeedDrain:TIA,kAddClient:OIA,kGetDispatcher:qIA}=h3(),jIA=aN(),{InvalidArgumentError:S3}=eQ(),y3=TQ(),{kUrl:vO,kInterceptors:PIA}=UB(),kIA=uN(),_3=Symbol("options"),v3=Symbol("connections"),bO=Symbol("factory");function fIA(A,Q){return new jIA(A,Q)}class uO extends gIA{constructor(A,{connections:Q,factory:B=fIA,connect:E,connectTimeout:I,tls:C,maxCachedSessions:D,socketPath:F,autoSelectFamily:Y,autoSelectFamilyAttemptTimeout:J,allowH2:G,...N}={}){super();if(Q!=null&&(!Number.isFinite(Q)||Q<0))throw new S3("invalid connections");if(typeof B!=="function")throw new S3("factory must be a function.");if(E!=null&&typeof E!=="function"&&typeof E!=="object")throw new S3("connect must be a function or an object");if(typeof E!=="function")E=kIA({...C,maxCachedSessions:D,allowH2:G,socketPath:F,timeout:I,...y3.nodeHasAutoSelectFamily&&Y?{autoSelectFamily:Y,autoSelectFamilyAttemptTimeout:J}:void 0,...E});this[PIA]=N.interceptors&&N.interceptors.Pool&&Array.isArray(N.interceptors.Pool)?N.interceptors.Pool:[],this[v3]=Q||null,this[vO]=y3.parseOrigin(A),this[_3]={...y3.deepClone(N),connect:E,allowH2:G},this[_3].interceptors=N.interceptors?{...N.interceptors}:void 0,this[bO]=B,this.on("connectionError",(U,Z,X)=>{for(let $ of Z){let V=this[Z8].indexOf($); Line truncated
${B.count} ${B.noun} ${B.is} pending:
${A.format(Q)}
`.trim())}}fj.exports=kj});var uj=K((RSA,bj)=>{var{kProxy:x0A,kClose:h0A,kDestroy:S0A,kInterceptors:y0A}=UB(),{URL:hj}=require("url"),Sj=tN(),_0A=zY(),v0A=bN(),{InvalidArgumentError:I9,RequestAbortedError:b0A}=eQ(),yj=uN(),B9=Symbol("proxy agent"),k8=Symbol("proxy client"),E9=Symbol("proxy headers"),Z$=Symbol("request tls settings"),u0A=Symbol("proxy tls settings"),_j=Symbol("connect endpoint function");function m0A(A){return A==="https:"?443:80}function d0A(A){if(typeof A==="string")A={uri:A};if(!A||!A.uri)throw new I9("Proxy opts.uri is mandatory");return{uri:A.uri,protocol:A.protocol||"https"}}function c0A(A,Q){return new _0A(A,Q)}class vj extends v0A{constructor(A){super(A);if(this[x0A]=d0A(A),this[B9]=new Sj(A),this[y0A]=A.interceptors&&A.interceptors.ProxyAgent&&Array.isArray(A.interceptors.ProxyAgent)?A.interceptors.ProxyAgent:[],typeof A==="string")A={uri:A};if(!A||!A.uri)throw new I9("Proxy opts.uri is mandatory");let{clientFactory:Q=c0A}=A;if(typeof Q!=="function")throw new I9("Proxy opts.clientFactory must be a function.");this[Z$]=A.requestTls,this[u0A]=A.proxyTls,this[E9]=A.headers||{};let B=new hj(A.uri),{origin:E,port:I,host:C,username:D,password:F}=B;if(A.auth&&A.token)throw new I9("opts.auth cannot be used in combination with opts.token");else if(A.auth)this[E9]["proxy-authorization"]=`Basic ${A.auth}`;else if(A.token)this[E9]["proxy-authorization"]=A.token;else if(D&&F)this[E9]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(D)}:${decodeURIComponent(F)}`).toString("base64")}`;let Y=yj({...A.proxyTls});this[_j]=yj({...A.requestTls}),this[k8]=Q(B,{connect:Y}),this[B9]=new Sj({...A,connect:async(J,G)=>{let N=J.host;if(!J.port)N+=`:${m0A(J.protocol)}`;try{let{socket:U,statusCode:Z}=await this[k8].connect({origin:E,port:I,path:N,signal:J.signal,headers:{...this[E9],host:C}});if(Z!==200)U.on("error",()=>{}).destroy(),G(new b0A(`Proxy response (${Z}) !== 200 when HTTP Tunneling`));if(J.protocol!=="https:"){G(null,U);return}let X;if(this[Z$])X=this[Z$].servername;else X=J.servername;this[_j]({...J,servername:X,httpSocket:U},G)}catch(U){G(U)}}})}dispatch(A,Q){let{host:B}=new hj(A.origin),E=l0A(A.headers);return p0A(E),this[B9].dispatch({...A,headers:{...E,host:B}},Q)}async[h0A](){await this[B9].close(),await this[k8].close()}async[S0A](){await this[B9].destroy(),await this[k8].destroy()}}function l0A(A){if(Array.isArray(A)){let Q={};for(let B=0;B<A.length;B+=2)Q[A[B]]=A[B+1];return Q}return A}function p0A(A){if(A&&Object.keys(A).find((B)=>B.toLowerCase()==="proxy-authorization"))throw new I9("Proxy-Authorization should be sent in ProxyAgent constructor")}bj.exports=vj});var pj=K((gSA,lj)=>{var eF=require("assert"),{kRetryHandlerDefaultRetry:mj}=UB(),{RequestRetryError:f8}=eQ(),{isDisturbed:dj,parseHeaders:i0A,parseRangeHeader:cj}=TQ();function n0A(A){let Q=Date.now();return new Date(A).getTime()-Q}class W${constructor(A,Q){let{retryOptions:B,...E}=A,{retry:I,maxRetries:C,maxTimeout:D,minTimeout:F,timeoutFactor:Y,methods:J,errorCodes:G,retryAfter:N,statusCodes:U}=B??{};this.dispatch=Q.dispatch,this.handler=Q.handler,this.opts=E,this.abort=null,this.aborted=!1,this.retryOpts={retry:I??W$[mj],retryAfter:N??!0,maxTimeout:D??30000,timeout:F??500,timeoutFactor:Y??2,maxRetries:C??5,methods:J??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:U??[500,502,503,504,429],errorCodes:G??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect((Z)=>{if(this.aborted=!0,this.abort)this.abort(Z);else this.reason=Z})}onRequestSent(){if(this.handler.onRequestSent)this.handler.onRequestSent()}onUpgrade(A,Q,B){if(this.handler.onUpgrade)this.handler.onUpgrade(A,Q,B)}onConnect(A){if(this.aborted)A(this.reason);else this.abort=A}onBodySent(A){if(this.handler.onBodySent)return this.handler.onBodySent(A)}static[mj](A,{state:Q,opts:B},E){let{statusCode:I,code:C,headers:D}=A,{method:F,retryOptions:Y}=B,{maxRetries:J,timeout:G,maxTimeout:N,timeoutFactor:U,statusCodes:Z,errorCodes:X,methods:$}=Y,{counter:V,currentTimeout:w}=Q;if(w=w!=null&&w>0?w:G,C&&C!=="UND_ERR_REQ_RETRY"&&C!=="UND_ERR_SOCKET"&&!X.includes(C)){E(A);return}if(Array.isArray($)&&!$.includes(F)){E(A);return}if(I!=null&&Array.isArray(Z)&&!Z.includes(I)){E(A);return}if(V>J){E(A);return}let g=D!=null&&D["retry-after"];if(g)g=Number(g),g=isNaN(g)?n0A(g):g*1000;let M=g>0?Math.min(g,N):Math.min(w*U**V,N);Q.currentTimeout=M,setTimeout(()=>E(null),M)}onHeaders(A,Q,B,E){let I=i0A(Q);if(this.retryCount+=1,A>=300)return this.abort(new f8("Request failed",A,{headers:I,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,A!==206)return!0;let D=cj(I["content-range"]);if(!D)return this.abort(new f8("Content-Range mismatch",A,{headers:I,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==I.etag)return this.abort(new f8("ETag mismatch",A,{headers:I,count:this.retryCount})),!1;let{star Line truncated
Error Code : ${C.statusCode}
Error Message: ${C.message}`)})).result)===null||Q===void 0?void 0:Q.value;if(!I)throw Error("Response json body do not have ID Token field");return I})}static getIDToken(A){return Cf(this,void 0,void 0,function*(){try{let Q=cY.getIDTokenUrl();if(A){let E=encodeURIComponent(A);Q=`${Q}&audience=${E}`}(0,Df.debug)(`ID token url is ${Q}`);let B=yield cY.getCall(Q);return(0,Df.setSecret)(B),B}catch(Q){throw Error(`Error message: ${Q.message}`)}})}}lY.OidcClient=cY});var QK=K((gI)=>{var e$=gI&&gI.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(gI,"__esModule",{value:!0});gI.summary=gI.markdownSummary=gI.SUMMARY_DOCS_URL=gI.SUMMARY_ENV_VAR=void 0;var SYA=require("os"),AK=require("fs"),{access:yYA,appendFile:_YA,writeFile:vYA}=AK.promises;gI.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";gI.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Yf{constructor(){this._buffer=""}filePath(){return e$(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let A=process.env[gI.SUMMARY_ENV_VAR];if(!A)throw Error(`Unable to find environment variable for $${gI.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield yYA(A,AK.constants.R_OK|AK.constants.W_OK)}catch(Q){throw Error(`Unable to access summary file: '${A}'. Check if the file has correct read/write permissions.`)}return this._filePath=A,this._filePath})}wrap(A,Q,B={}){let E=Object.entries(B).map(([I,C])=>` ${I}="${C}"`).join("");if(!Q)return`<${A}${E}>`;return`<${A}${E}>${Q}</${A}>`}write(A){return e$(this,void 0,void 0,function*(){let Q=!!(A===null||A===void 0?void 0:A.overwrite),B=yield this.filePath();return yield(Q?vYA:_YA)(B,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return e$(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(A,Q=!1){return this._buffer+=A,Q?this.addEOL():this}addEOL(){return this.addRaw(SYA.EOL)}addCodeBlock(A,Q){let B=Object.assign({},Q&&{lang:Q}),E=this.wrap("pre",this.wrap("code",A),B);return this.addRaw(E).addEOL()}addList(A,Q=!1){let B=Q?"ol":"ul",E=A.map((C)=>this.wrap("li",C)).join(""),I=this.wrap(B,E);return this.addRaw(I).addEOL()}addTable(A){let Q=A.map((E)=>{let I=E.map((C)=>{if(typeof C==="string")return this.wrap("td",C);let{header:D,data:F,colspan:Y,rowspan:J}=C,G=D?"th":"td",N=Object.assign(Object.assign({},Y&&{colspan:Y}),J&&{rowspan:J});return this.wrap(G,F,N)}).join("");return this.wrap("tr",I)}).join(""),B=this.wrap("table",Q);return this.addRaw(B).addEOL()}addDetails(A,Q){let B=this.wrap("details",this.wrap("summary",A)+Q);return this.addRaw(B).addEOL()}addImage(A,Q,B){let{width:E,height:I}=B||{},C=Object.assign(Object.assign({},E&&{width:E}),I&&{height:I}),D=this.wrap("img",null,Object.assign({src:A,alt:Q},C));return this.addRaw(D).addEOL()}addHeading(A,Q){let B=`h${Q}`,E=["h1","h2","h3","h4","h5","h6"].includes(B)?B:"h1",I=this.wrap(E,A);return this.addRaw(I).addEOL()}addSeparator(){let A=this.wrap("hr",null);return this.addRaw(A).addEOL()}addBreak(){let A=this.wrap("br",null);return this.addRaw(A).addEOL()}addQuote(A,Q){let B=Object.assign({},Q&&{cite:Q}),E=this.wrap("blockquote",A,B);return this.addRaw(E).addEOL()}addLink(A,Q){let B=this.wrap("a",A,{href:Q});return this.addRaw(B).addEOL()}}var Jf=new Yf;gI.markdownSummary=Jf;gI.summary=Jf});var Gf=K((TI)=>{var bYA=TI&&TI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),uYA=TI&&TI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),mYA=TI&&TI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))bYA(Q,A,B)}return uYA(Q,A),Q};Object.defineProperty(TI,"__esModule",{value:!0});TI.toPlatformPath=TI.toWin32Path=TI.toPosixPath=void 0;var dYA=mYA(require("path"));function cYA(A){return A.replace(/[\\]/g,"/")}TI.toPosixPath=cYA;function lYA(A){return A.replace(/[/]/g,"\\")}TI.toWin32Path=lYA;function pYA(A){return A.replace(/[/\\]/g,dYA.sep)}TI.toPlatformPath=pYA});var EK=K((fA)=>{var iYA=fA&&fA.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;Object.defineProperty(A,E,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),Line truncated
`);return{name:Q,version:B}});OQ.platform=jf.default.platform();OQ.arch=jf.default.arch();OQ.isWindows=OQ.platform==="win32";OQ.isMacOS=OQ.platform==="darwin";OQ.isLinux=OQ.platform==="linux";function RJA(){return V4(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield OQ.isWindows?HJA():OQ.isMacOS?wJA():MJA()),{platform:OQ.platform,arch:OQ.arch,isWindows:OQ.isWindows,isMacOS:OQ.isMacOS,isLinux:OQ.isLinux})})}OQ.getDetails=RJA});var yB=K((jA)=>{var gJA=jA&&jA.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),TJA=jA&&jA.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),FK=jA&&jA.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))gJA(Q,A,B)}return TJA(Q,A),Q},kf=jA&&jA.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(jA,"__esModule",{value:!0});jA.platform=jA.toPlatformPath=jA.toWin32Path=jA.toPosixPath=jA.markdownSummary=jA.summary=jA.getIDToken=jA.getState=jA.saveState=jA.group=jA.endGroup=jA.startGroup=jA.info=jA.notice=jA.warning=jA.error=jA.debug=jA.isDebug=jA.setFailed=jA.setCommandEcho=jA.setOutput=jA.getBooleanInput=jA.getMultilineInput=jA.getInput=jA.addPath=jA.setSecret=jA.exportVariable=jA.ExitCode=void 0;var KC=hR(),C1=_R(),aY=hU(),ff=FK(require("os")),OJA=FK(require("path")),qJA=Ff(),DK;(function(A){A[A.Success=0]="Success",A[A.Failure=1]="Failure"})(DK||(jA.ExitCode=DK={}));function jJA(A,Q){let B=(0,aY.toCommandValue)(Q);if(process.env[A]=B,process.env.GITHUB_ENV||"")return(0,C1.issueFileCommand)("ENV",(0,C1.prepareKeyValueMessage)(A,Q));(0,KC.issueCommand)("set-env",{name:A},B)}jA.exportVariable=jJA;function PJA(A){(0,KC.issueCommand)("add-mask",{},A)}jA.setSecret=PJA;function kJA(A){if(process.env.GITHUB_PATH||"")(0,C1.issueFileCommand)("PATH",A);else(0,KC.issueCommand)("add-path",{},A);process.env.PATH=`${A}${OJA.delimiter}${process.env.PATH}`}jA.addPath=kJA;function YK(A,Q){let B=process.env[`INPUT_${A.replace(/ /g,"_").toUpperCase()}`]||"";if(Q&&Q.required&&!B)throw Error(`Input required and not supplied: ${A}`);if(Q&&Q.trimWhitespace===!1)return B;return B.trim()}jA.getInput=YK;function fJA(A,Q){let B=YK(A,Q).split(`
`).filter((E)=>E!=="");if(Q&&Q.trimWhitespace===!1)return B;return B.map((E)=>E.trim())}jA.getMultilineInput=fJA;function xJA(A,Q){let B=["true","True","TRUE"],E=["false","False","FALSE"],I=YK(A,Q);if(B.includes(I))return!0;if(E.includes(I))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${A}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}jA.getBooleanInput=xJA;function hJA(A,Q){if(process.env.GITHUB_OUTPUT||"")return(0,C1.issueFileCommand)("OUTPUT",(0,C1.prepareKeyValueMessage)(A,Q));process.stdout.write(ff.EOL),(0,KC.issueCommand)("set-output",{name:A},(0,aY.toCommandValue)(Q))}jA.setOutput=hJA;function SJA(A){(0,KC.issue)("echo",A?"on":"off")}jA.setCommandEcho=SJA;function yJA(A){process.exitCode=DK.Failure,xf(A)}jA.setFailed=yJA;function _JA(){return process.env.RUNNER_DEBUG==="1"}jA.isDebug=_JA;function vJA(A){(0,KC.issueCommand)("debug",{},A)}jA.debug=vJA;function xf(A,Q={}){(0,KC.issueCommand)("error",(0,aY.toCommandProperties)(Q),A instanceof Error?A.toString():A)}jA.error=xf;function bJA(A,Q={}){(0,KC.issueCommand)("warning",(0,aY.toCommandProperties)(Q),A instanceof Error?A.toString():A)}jA.warning=bJA;function uJA(A,Q={}){(0,KC.issueCommand)("notice",(0,aY.toCommandProperties)(Q),A instanceof Error?A.toString():A)}jA.notice=uJA;function mJA(A){process.stdout.write(A+ff.EOL)}jA.info=mJA;function hf(A){(0,KC.issue)("group",A)}jA.startGroup=hf;function Sf(){(0,KC.issue)("endgroup")}jA.endGroup=Sf;function dJA(A,Q){return kf(this,void 0,void 0,function*(){hf(A);let B;try{B=yield Q()}finally{Sf()}return B})}jA.group=dJA;function cJA(A,Q){if(process.env.GITHUB_STATE||"")return(0,C1.issueFileCommand)("STATE",(0,C1.prepareKeyValueMessage)(A,Q));(0,KC.issueCommand)("save-state",{name:A},(0,aY.toCommandValue)(Q))}jA.saveState=cJA;function lJA(A){return process.env[`STATE_${A}`]||""}jA.getState=lJA;function pJA(A){return kf(this,void 0,void 0,function*(){return yield qJA.OidcClient.getIDToken(A)})}jA.getIDToken=pJA;var iJA=QK();Object.defineProperty(jA,"summary",{enumerable:!0,get:function(){return iJA.summary}});var nJA=QK();Object.defineProperty(jA,"markdownSummary",{enumerable:!0,get:function(){return nJA.markdownSummary}});var JK=Gf();Object.defineProperty(jA,"toPosixPath",{enumerable:!0,get:function(){return JK.toPosixPath}});Object.defineProperty(jA,"toWin32Path",{enumerable:!0,get:function(){return JK.toWin32Path}});Object.defineProperty(jA,"toPlatformPath",{enumerable:!0,get:function(){return JK.toPlatformPath}});jA.platform=FK(Pf())});var UK=K((H4)=>{Object.defineProperty(H4,"__esModule",{value:!0});H4.Context=void 0;var uf=require("fs"),aJA=require("os");class mf{constructor(){var A,Q,B;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,uf.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,uf.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let E=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${E} does not exist${aJA.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(A=process.env.GITHUB_API_URL)!==null&&A!==void 0?A:"https://api.github.com",this.serverUrl=(Q=process.env.GITHUB_SERVER_URL)!==null&&Q!==void 0?Q:"https://github.com",this.graphqlUrl=(B=process.env.GITHUB_GRAPHQL_URL)!==null&&B!==void 0?B:"https://api.github.com/graphql"}get issue(){let A=this.payload;return Object.assign(Object.assign({},this.repo),{number:(A.issue||A.pull_request||A).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[A,Q]=process.env.GITHUB_REPOSITORY.split("/");return{owner:A,repo:Q}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}H4.Context=mf});var lf=K((AE)=>{var sJA=AE&&AE.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),oJA=AE&&AE.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),rJA=AE&&AE.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))sJA(Q,A,B)}return oJA(Q,A),Q},tJA=AE&&AE.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(AE,"__esModule",{value:!0});AE.getApiBaseUrl=AE.getProxyFetch=AE.getProxyAgentDispatcher=AE.getProxyAgent=AE.getAuthStringLine truncated
`+A.errors.map((Q)=>` - ${Q.message}`).join(`
`)}var hx=class extends Error{constructor(A,Q,B){super(GNA(B));if(this.request=A,this.headers=Q,this.response=B,this.name="GraphqlResponseError",this.errors=B.errors,this.data=B.data,Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}},NNA=["method","baseUrl","url","headers","request","query","mediaType"],UNA=["query","method","url"],fx=/\/api\/v3\/?$/;function ZNA(A,Q,B){if(B){if(typeof Q==="string"&&"query"in B)return Promise.reject(Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let D in B){if(!UNA.includes(D))continue;return Promise.reject(Error(`[@octokit/graphql] "${D}" cannot be used as variable name`))}}let E=typeof Q==="string"?Object.assign({query:Q},B):Q,I=Object.keys(E).reduce((D,F)=>{if(NNA.includes(F))return D[F]=E[F],D;if(!D.variables)D.variables={};return D.variables[F]=E[F],D},{}),C=E.baseUrl||A.endpoint.DEFAULTS.baseUrl;if(fx.test(C))I.url=C.replace(fx,"/api/graphql");return A(I).then((D)=>{if(D.data.errors){let F={};for(let Y of Object.keys(D.headers))F[Y]=D.headers[Y];throw new hx(I,F,D.data)}return D.data.data})}function MK(A,Q){let B=A.defaults(Q);return Object.assign((I,C)=>{return ZNA(B,I,C)},{defaults:MK.bind(null,B),endpoint:B.endpoint})}var WNA=MK(FNA.request,{headers:{"user-agent":`octokit-graphql.js/${JNA} ${(0,YNA.getUserAgent)()}`},method:"POST",url:"/graphql"});function XNA(A){return MK(A,{method:"POST",url:"/graphql"})}});var bx=K((PyA,vx)=>{var{defineProperty:RK,getOwnPropertyDescriptor:$NA,getOwnPropertyNames:KNA}=Object,LNA=Object.prototype.hasOwnProperty,VNA=(A,Q)=>{for(var B in Q)RK(A,B,{get:Q[B],enumerable:!0})},zNA=(A,Q,B,E)=>{if(Q&&typeof Q==="object"||typeof Q==="function"){for(let I of KNA(Q))if(!LNA.call(A,I)&&I!==B)RK(A,I,{get:()=>Q[I],enumerable:!(E=$NA(Q,I))||E.enumerable})}return A},HNA=(A)=>zNA(RK({},"__esModule",{value:!0}),A),_x={};VNA(_x,{createTokenAuth:()=>qNA});vx.exports=HNA(_x);var wNA=/^v1\./,MNA=/^ghs_/,RNA=/^ghu_/;async function gNA(A){let Q=A.split(/\./).length===3,B=wNA.test(A)||MNA.test(A),E=RNA.test(A);return{type:"token",token:A,tokenType:Q?"app":B?"installation":E?"user-to-server":"oauth"}}function TNA(A){if(A.split(/\./).length===3)return`bearer ${A}`;return`token ${A}`}async function ONA(A,Q,B,E){let I=Q.endpoint.merge(B,E);return I.headers.authorization=TNA(A),Q(I)}var qNA=function(Q){if(!Q)throw Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof Q!=="string")throw Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return Q=Q.replace(/^(token|bearer) +/i,""),Object.assign(gNA.bind(null,Q),{hook:ONA.bind(null,Q)})}});var ix=K((kyA,px)=>{var{defineProperty:gK,getOwnPropertyDescriptor:jNA,getOwnPropertyNames:PNA}=Object,kNA=Object.prototype.hasOwnProperty,fNA=(A,Q)=>{for(var B in Q)gK(A,B,{get:Q[B],enumerable:!0})},xNA=(A,Q,B,E)=>{if(Q&&typeof Q==="object"||typeof Q==="function"){for(let I of PNA(Q))if(!kNA.call(A,I)&&I!==B)gK(A,I,{get:()=>Q[I],enumerable:!(E=jNA(Q,I))||E.enumerable})}return A},hNA=(A)=>xNA(gK({},"__esModule",{value:!0}),A),cx={};fNA(cx,{Octokit:()=>dNA});px.exports=hNA(cx);var SNA=V9(),yNA=Cx(),ux=M9(),_NA=yx(),vNA=bx(),lx="5.2.2",mx=()=>{},bNA=console.warn.bind(console),uNA=console.error.bind(console);function mNA(A={}){if(typeof A.debug!=="function")A.debug=mx;if(typeof A.info!=="function")A.info=mx;if(typeof A.warn!=="function")A.warn=bNA;if(typeof A.error!=="function")A.error=uNA;return A}var dx=`octokit-core.js/${lx} ${(0,SNA.getUserAgent)()}`,dNA=class{static{this.VERSION=lx}static defaults(A){return class extends this{constructor(...B){let E=B[0]||{};if(typeof A==="function"){super(A(E));return}super(Object.assign({},A,E,E.userAgent&&A.userAgent?{userAgent:`${E.userAgent} ${A.userAgent}`}:null))}}}static{this.plugins=[]}static plugin(...A){let Q=this.plugins;return class extends this{static{this.plugins=Q.concat(A.filter((E)=>!Q.includes(E)))}}}constructor(A={}){let Q=new yNA.Collection,B={baseUrl:ux.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},A.request,{hook:Q.bind(null,"request")}),mediaType:{previews:[],format:""}};if(B.headers["user-agent"]=A.userAgent?`${A.userAgent} ${dx}`:dx,A.baseUrl)B.baseUrl=A.baseUrl;if(A.previews)B.mediaType.previews=A.previews;if(A.timeZone)B.headers["time-zone"]=A.timeZone;if(this.request=ux.request.defaults(B),this.graphql=(0,_NA.withCustomRequest)(this.request).defaults(B),this.log=mNA(A.log),this.hook=Q,!A.authStrategy)if(!A.auth)this.auth=async()=>({type:"unauthenticated"});else{let I=(0,vNA.createTokenAuth)(A.auth);Q.wrap("request",I.hook),this.auth=I}else{let{authStrategy:I,...C}=A,D=I(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:C},A.auth));Q.wrap("request",D.hook),this.auth=D}let E=this.constructor;for(let I=0;I<E.plugins.length;++I)Object.assign(this,E.plugins[I](this,A))}}});var ex=K((SyA,tx)=>{var{defineProperty:TK,getOwnPropertyDescriptor:cNA,getOwnPropertyNames:lNA}=Object,pNA=Object.prototype.hasOwnProperty,iNA=(A,Q)=>{ Line truncated
`);for(let I of E){let C=I.split("=");if(C.length===2&&(C[0].trim()==="VERSION_ID"||C[0].trim()==="DISTRIB_RELEASE")){Q=C[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return Q}cE._getOsVersion=G5A;function N5A(){let B="";if(P4.existsSync("/etc/lsb-release"))B=P4.readFileSync("/etc/lsb-release").toString();else if(P4.existsSync("/etc/os-release"))B=P4.readFileSync("/etc/os-release").toString();return B}cE._readLinuxVersionFile=N5A});var Hh=K((zC)=>{var U5A=zC&&zC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),Z5A=zC&&zC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),W5A=zC&&zC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))U5A(Q,A,B)}return Z5A(Q,A),Q},Lh=zC&&zC.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(zC,"__esModule",{value:!0});zC.RetryHelper=void 0;var Vh=W5A(yB());class zh{constructor(A,Q,B){if(A<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=A,this.minSeconds=Math.floor(Q),this.maxSeconds=Math.floor(B),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds")}execute(A,Q){return Lh(this,void 0,void 0,function*(){let B=1;while(B<this.maxAttempts){try{return yield A()}catch(I){if(Q&&!Q(I))throw I;Vh.info(I.message)}let E=this.getSleepAmount();Vh.info(`Waiting ${E} seconds before trying again`),yield this.sleep(E),B++}return yield A()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(A){return Lh(this,void 0,void 0,function*(){return new Promise((Q)=>setTimeout(Q,A*1000))})}}zC.RetryHelper=zh});var jh=K(($Q)=>{var __dirname="/Users/kudo/01_Work/Repos/expo/actions/node_modules/@actions/tool-cache/lib",X5A=$Q&&$Q.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),$5A=$Q&&$Q.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),tC=$Q&&$Q.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))X5A(Q,A,B)}return $5A(Q,A),Q},GI=$Q&&$Q.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty($Q,"__esModule",{value:!0});$Q.evaluateVersions=$Q.isExplicitVersion=$Q.findFromManifest=$Q.getManifestFromRepo=$Q.findAllVersions=$Q.find=$Q.cacheFile=$Q.cacheDir=$Q.extractZip=$Q.extractXar=$Q.extractTar=$Q.extract7z=$Q.downloadTool=$Q.HTTPError=void 0;var PQ=tC(yB()),tI=tC(pY()),wh=tC(require("crypto")),HC=tC(require("fs")),K5A=tC(Kh()),O9=tC(require("os")),rC=tC(require("path")),Mh=tC(GD()),UD=tC(_K()),L5A=tC(require("stream")),V5A=tC(require("util")),BJ=require("assert"),aD=nY(),z5A=Hh();class k4 extends Error{constructor(A){super(`Unexpected HTTP response: ${A}`);this.httpStatusCode=A,Object.setPrototypeOf(this,new.target.prototype)}}$Q.HTTPError=k4;var mK=process.platform==="win32",H5A=process.platform==="darwin",w5A="actions/tool-cache";function M5A(A,Q,B,E){return GI(this,void 0,void 0,function*(){Q=Q||rC.join(qh(),wh.randomUUID()),yield tI.mkdirP(rC.dirname(Q)),PQ.debug(`Downloading ${A}`),PQ.debug(`Destination ${Q}`);let I=3,C=uK("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),D=uK("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new z5A.RetryHelper(I,C,D).execute(()=>GI(this,void 0,void 0,function*(){return yield R5A(A,Q||"",B,E)}),(Y)=>{if(Y instanceof k4&&Y.httpStatusCode){if(Y.httpStatusCode<500&&Y.httpStatusCode!==408&&Y.httpStatusCode!==429)return!1}return!0})})}$Q.downloadTool=M5A;function R5A(A,Q,B,E){return GI(this,void 0,void 0,function*(){if(HC.existsSync(Q))throw Error(`Destination file path ${Q} already exists`);let I=new Mh.HttpClient(w5A,[],{allowRetries:!1});if(B){if(PQ.debug("set auth"),E===void 0)E={};E.authorization=B}let C=yield I.get(A Line truncated
${I}`;Object.assign(M,w),Y(M)}else F(w)},X=($)=>{if(J)C.removeListener("exit",Z);else C.removeListener("close",Z);Object.assign($,{pid:C.pid,output:[N,U],stdout:N,stderr:U,status:null,signal:null}),Y($)};if(J)C.once("exit",Z);else C.once("close",Z);C.once("error",X)});return D.child=C,D}zS.exports=NUA});var wS=K((B_A,HS)=>{HS.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var eK=K((E_A,RS)=>{var q9=wS(),MS={};for(let A of Object.keys(q9))MS[q9[A]]=A;var xA={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};RS.exports=xA;for(let A of Object.keys(xA)){if(!("channels"in xA[A]))throw Error("missing channels property: "+A);if(!("labels"in xA[A]))throw Error("missing channel labels property: "+A);if(xA[A].labels.length!==xA[A].channels)throw Error("channel and label counts mismatch: "+A);let{channels:Q,labels:B}=xA[A];delete xA[A].channels,delete xA[A].labels,Object.defineProperty(xA[A],"channels",{value:Q}),Object.defineProperty(xA[A],"labels",{value:B})}xA.rgb.hsl=function(A){let Q=A[0]/255,B=A[1]/255,E=A[2]/255,I=Math.min(Q,B,E),C=Math.max(Q,B,E),D=C-I,F,Y;if(C===I)F=0;else if(Q===C)F=(B-E)/D;else if(B===C)F=2+(E-Q)/D;else if(E===C)F=4+(Q-B)/D;if(F=Math.min(F*60,3 Line truncated
`:`
`)+B,I=E+1,E=A.indexOf(`
`,I)}while(E!==-1);return C+=A.substr(I),C};bS.exports={stringReplaceAll:RUA,stringEncaseCRLFWithFirstIndex:gUA}});var pS=K((G_A,lS)=>{var TUA=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,mS=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,OUA=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,qUA=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,jUA=new Map([["n",`
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function cS(A){let Q=A[0]==="u",B=A[1]==="{";if(Q&&!B&&A.length===5||A[0]==="x"&&A.length===3)return String.fromCharCode(parseInt(A.slice(1),16));if(Q&&B)return String.fromCodePoint(parseInt(A.slice(2,-1),16));return jUA.get(A)||A}function PUA(A,Q){let B=[],E=Q.trim().split(/\s*,\s*/g),I;for(let C of E){let D=Number(C);if(!Number.isNaN(D))B.push(D);else if(I=C.match(OUA))B.push(I[2].replace(qUA,(F,Y,J)=>Y?cS(Y):J));else throw Error(`Invalid Chalk template style argument: ${C} (in style '${A}')`)}return B}function kUA(A){mS.lastIndex=0;let Q=[],B;while((B=mS.exec(A))!==null){let E=B[1];if(B[2]){let I=PUA(E,B[2]);Q.push([E].concat(I))}else Q.push([E])}return Q}function dS(A,Q){let B={};for(let I of Q)for(let C of I.styles)B[C[0]]=I.inverse?null:C.slice(1);let E=A;for(let[I,C]of Object.entries(B)){if(!Array.isArray(C))continue;if(!(I in E))throw Error(`Unknown Chalk style: ${I}`);E=C.length>0?E[I](...C):E[I]}return E}lS.exports=(A,Q)=>{let B=[],E=[],I=[];if(Q.replace(TUA,(C,D,F,Y,J,G)=>{if(D)I.push(cS(D));else if(Y){let N=I.join("");I=[],E.push(B.length===0?N:dS(A,B)(N)),B.push({inverse:F,styles:kUA(Y)})}else if(J){if(B.length===0)throw Error("Found extraneous } in Chalk template literal");E.push(dS(A,B)(I.join(""))),I=[],B.pop()}else I.push(G)}),E.push(I.join("")),B.length>0){let C=`Chalk template literal is missing ${B.length} closing bracket${B.length===1?"":"s"} (\`}\`)`;throw Error(C)}return E.join("")}});var eS=K((N_A,tS)=>{var j9=hS(),{stdout:DL,stderr:FL}=IL(),{stringReplaceAll:fUA,stringEncaseCRLFWithFirstIndex:xUA}=uS(),{isArray:v4}=Array,nS=["ansi","ansi","ansi256","ansi16m"],YJ=Object.create(null),hUA=(A,Q={})=>{if(Q.level&&!(Number.isInteger(Q.level)&&Q.level>=0&&Q.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let B=DL?DL.level:0;A.level=Q.level===void 0?B:Q.level};class aS{constructor(A){return sS(A)}}var sS=(A)=>{let Q={};return hUA(Q,A),Q.template=(...B)=>rS(Q.template,...B),Object.setPrototypeOf(Q,b4.prototype),Object.setPrototypeOf(Q.template,Q),Q.template.constructor=()=>{throw Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},Q.template.Instance=aS,Q.template};function b4(A){return sS(A)}for(let[A,Q]of Object.entries(j9))YJ[A]={get(){let B=u4(this,YL(Q.open,Q.close,this._styler),this._isEmpty);return Object.defineProperty(this,A,{value:B}),B}};YJ.visible={get(){let A=u4(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:A}),A}};var oS=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let A of oS)YJ[A]={get(){let{level:Q}=this;return function(...B){let E=YL(j9.color[nS[Q]][A](...B),j9.color.close,this._styler);return u4(this,E,this._isEmpty)}}};for(let A of oS){let Q="bg"+A[0].toUpperCase()+A.slice(1);YJ[Q]={get(){let{level:B}=this;return function(...E){let I=YL(j9.bgColor[nS[B]][A](...E),j9.bgColor.close,this._styler);return u4(this,I,this._isEmpty)}}}}var SUA=Object.defineProperties(()=>{},{...YJ,level:{enumerable:!0,get(){return this._generator.level},set(A){this._generator.level=A}}}),YL=(A,Q,B)=>{let E,I;if(B===void 0)E=A,I=Q;else E=B.openAll+A,I=Q+B.closeAll;return{open:A,close:Q,openAll:E,closeAll:I,parent:B}},u4=(A,Q,B)=>{let E=(...I)=>{if(v4(I[0])&&v4(I[0].raw))return iS(E,rS(E,...I));return iS(E,I.length===1?""+I[0]:I.join(" "))};return Object.setPrototypeOf(E,SUA),E._generator=A,E._styler=Q,E._isEmpty=B,E},iS=(A,Q)=>{if(A.level<=0||!Q)return A._isEmpty?"":Q;let B=A._styler;if(B===void 0)return Q;let{openAll:E,closeAll:I}=B;if(Q.indexOf("\x1B")!==-1)while(B!==void 0)Q=fUA(Q,B.close,B.open),B=B.parent;let C=Q.indexOf(`
`);if(C!==-1)Q=xUA(Q,I,E,C);return E+Q+I},CL,rS=(A,...Q)=>{let[B]=Q;if(!v4(B)||!v4(B.raw))return Q.join(" ");let E=Q.slice(1),I=[B.raw[0]];for(let C=1;C<B.length;C++)I.push(String(E[C-1]).replace(/[{}\\]/g,"\\$&"),String(B.raw[C]));if(CL===void 0)CL=pS();return CL(A,I.join(""))};Object.defineProperties(b4.prototype,YJ);var m4=b4();m4.supportsColor=DL;m4.stderr=b4({level:FL?FL.level:0});m4.stderr.supportsColor=FL;tS.exports=m4});var By=K((MC)=>{var d4=MC&&MC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(MC,"__esModule",{value:!0});MC.CocoaPodsPackageManager=MC.CocoaPodsError=void 0;MC.extractMissingDependencyError=GL;MC.getPodUpdateMessage=NL;MC.getPodRepoUpdateMessage=Ay;MC.getImprovedPodInstallError=Qy;var J1=d4(S4()),eC=d4(eS()),yUA=require("fs"),P9=d4(require("os")),JL=d4(require("path"));class ZD extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=!0;constructor(A,Q,B){super(B?`${A}
└─ Cause: ${B.message}`:A);this.code=Q,this.cause=B}}MC.CocoaPodsError=ZD;function GL(A){let Q=A.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(Q)return[Q[1],Q[2]];return null}class eI{options;silent;static getPodProjectRoot(A){if(eI.isUsingPods(A))return A;let Q=JL.default.join(A,"ios");if(eI.isUsingPods(Q))return Q;let B=JL.default.join(A,"macos");if(eI.isUsingPods(B))return B;return null}static isUsingPods(A){return(0,yUA.existsSync)(JL.default.join(A,"Podfile"))}static async gemInstallCLIAsync(A=!1,Q={stdio:"inherit"}){let B=["install","cocoapods","--no-document"];try{await(0,J1.default)("gem",B,Q)}catch(E){if(A)throw new ZD("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",E);console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation"),await(0,J1.default)("sudo",["gem",...B],Q)}}static async brewLinkCLIAsync(A={stdio:"inherit"}){await(0,J1.default)("brew",["link","cocoapods"],A)}static async brewInstallCLIAsync(A={stdio:"inherit"}){await(0,J1.default)("brew",["install","cocoapods"],A)}static async installCLIAsync({nonInteractive:A=!1,spawnOptions:Q={stdio:"inherit"}}){if(!Q)Q={stdio:"inherit"};let B=!!Q.ignoreStdio;try{return!B&&console.log("› Attempting to install CocoaPods CLI with Gem"),await eI.gemInstallCLIAsync(A,Q),!B&&console.log("› Successfully installed CocoaPods CLI with Gem"),!0}catch(E){if(!B)console.log(eC.default.yellow("› Failed to install CocoaPods CLI with Gem")),console.log(eC.default.red(E.stderr??E.message)),console.log("› Attempting to install CocoaPods CLI with Homebrew");try{if(await eI.brewInstallCLIAsync(Q),!await eI.isCLIInstalledAsync(Q))try{if(await eI.brewLinkCLIAsync(Q),!await eI.isCLIInstalledAsync(Q))throw new ZD("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",E)}catch(I){throw new ZD("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",I)}return!B&&console.log("› Successfully installed CocoaPods CLI with Homebrew"),!0}catch(I){throw!B&&console.warn(eC.default.yellow("› Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/")),new ZD("Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/","NO_CLI",I)}}}static isAvailable(A,Q){if(process.platform!=="darwin")return!Q&&console.log(eC.default.red("CocoaPods is only supported on macOS machines")),!1;if(!eI.isUsingPods(A))return!Q&&console.log(eC.default.yellow("CocoaPods is not supported in this project")),!1;return!0}static async isCLIInstalledAsync(A={stdio:"inherit"}){try{return await(0,J1.default)("pod",["--version"],A),!0}catch{return!1}}constructor({cwd:A,silent:Q}){this.silent=!!Q,this.options={cwd:A,stdio:"pipe"}}get name(){return"CocoaPods"}async installAsync({spinner:A}={}){await this._installAsync({spinner:A})}isCLIInstalledAsync(){return eI.isCLIInstalledAsync(this.options)}installCLIAsync(){return eI.installCLIAsync({nonInteractive:!0,spawnOptions:this.options})}async handleInstallErrorAsync({error:A,shouldUpdate:Q=!0,updatedPackages:B=[],spinner:E}){if(!A.output)throw A;if(!Q)throw Qy(A,{cwd:this.options.cwd});let I=A.output.join(P9.default.EOL).trim(),{updatePackage:C,shouldUpdateRepo:D}=NL(I);if(!C||B.includes(C))return await this._installAsync({spinner:E,shouldRepoUpdate:!0,shouldUpdate:!1,updatedPackages:B});return B.push(C),await this.runInstallTypeCommandAsync(["update",C,D?"":"--no-repo-update"].filter(Boolean),{formatWarning(){return`Failed to update ${eC.default.bold(C)}. Attempting to update the repo instead.`},spinner:E,updatedPackages:B})}async _installAsync({shouldRepoUpdate:A,...Q}={}){return await this.runInstallTypeCommandAsync(["install",A?"--repo-update":""].filter(Boolean),{formatWarning(B){return Ay(B.output.join(P9.default.EOL).trim()).message},...Q})}async runInstallTypeCommandAsync(A,{formatWarning:Q,...B}={}){try{return await this._runAsync(A)}catch(E){if(Q){let I=Q(E);if(B.spinner)B.spinner.text=eC.default.bold(I);if(!this.silent)console.warn(eC.default.yellow(I))}return await this.handleInstallErrorAsync({error:E,...B})}}async addWithParametersAsync(A,Q){throw Error("Unimplemented")}addAsync(A=[]){throw Error("Unimplemented")}addDevAsync(A=[]){throw Error("Unimplemented")}addGlobalAsync(A=[]){throw Error("Unimplemented")}removeAsync(A=[]){throw Error("Unimplemented")}removeDevAsync(A=[]){throw Error("Unimplemented")}removeGlobalAsync(A=[]){throw Error("Unimplemented")}async versionAsync(){let{stdout:A}=await(0,J1.default)("pod",["--version"],this.options);return A.trim()}async configAsync(A){throw Error("Unimplemented")}async removeLockfileAsync(){throw Error("Unimplemented")}async uninstallAsync(){throw Error("Unimplemented")}async podRepoUpdateAsync(){try{await this._runAsync(["r Line truncated
${eC.default.gray(Y)}`}}return new ZD("Command `pod install --repo-update` failed.","COMMAND_FAILED",A)}else{let E=A.stderr.trim(),I=A.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(I){if(A.message?.match(/pod exited with non-zero code: 1/))A.message="";E=null}A.message=[I,A.message,E].filter(Boolean).join(`
`)}return new ZD("Command `pod install` failed.","COMMAND_FAILED",A)}});var Ey=K((c4)=>{Object.defineProperty(c4,"__esModule",{value:!0});c4.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;c4.matchToToken=function(A){var Q={type:"invalid",value:A[0],closed:void 0};if(A[1])Q.type="string",Q.closed=!!(A[3]||A[4]);else if(A[5])Q.type="comment";else if(A[6])Q.type="comment",Q.closed=!!A[7];else if(A[8])Q.type="regex";else if(A[9])Q.type="number";else if(A[10])Q.type="name";else if(A[11])Q.type="punctuator";else if(A[12])Q.type="whitespace";return Q}});var Yy=K((k9)=>{Object.defineProperty(k9,"__esModule",{value:!0});k9.isIdentifierChar=Fy;k9.isIdentifierName=mUA;k9.isIdentifierStart=Dy;var ZL="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Iy="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",vUA=new RegExp("["+ZL+"]"),bUA=new RegExp("["+ZL+Iy+"]");ZL=Iy=null;var Cy=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5Line truncated
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Sy(A){if(A[0]==="u"&&A.length===5||A[0]==="x"&&A.length===3)return String.fromCharCode(parseInt(A.slice(1),16));return Z8A.get(A)||A}function W8A(A,Q){let B=[],E=Q.trim().split(/\s*,\s*/g),I;for(let C of E)if(!isNaN(C))B.push(Number(C));else if(I=C.match(N8A))B.push(I[2].replace(U8A,(D,F,Y)=>F?Sy(F):Y));else throw Error(`Invalid Chalk template style argument: ${C} (in style '${A}')`);return B}function X8A(A){xy.lastIndex=0;let Q=[],B;while((B=xy.exec(A))!==null){let E=B[1];if(B[2]){let I=W8A(E,B[2]);Q.push([E].concat(I))}else Q.push([E])}return Q}function hy(A,Q){let B={};for(let I of Q)for(let C of I.styles)B[C[0]]=I.inverse?null:C.slice(1);let E=A;for(let I of Object.keys(B))if(Array.isArray(B[I])){if(!(I in E))throw Error(`Unknown Chalk style: ${I}`);if(B[I].length>0)E=E[I].apply(E,B[I]);else E=E[I]}return E}yy.exports=(A,Q)=>{let B=[],E=[],I=[];if(Q.replace(G8A,(C,D,F,Y,J,G)=>{if(D)I.push(Sy(D));else if(Y){let N=I.join("");I=[],E.push(B.length===0?N:hy(A,B)(N)),B.push({inverse:F,styles:X8A(Y)})}else if(J){if(B.length===0)throw Error("Found extraneous } in Chalk template literal");E.push(hy(A,B)(I.join(""))),I=[],B.pop()}else I.push(G)}),E.push(I.join("")),B.length>0){let C=`Chalk template literal is missing ${B.length} closing bracket${B.length===1?"":"s"} (\`}\`)`;throw Error(C)}return E.join("")}});var dy=K((O_A,S9)=>{var ML=Ly(),QE=qy(),wL=fy().stdout,$8A=_y(),by=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),uy=["ansi","ansi","ansi256","ansi16m"],my=new Set(["gray"]),UJ=Object.create(null);function vy(A,Q){Q=Q||{};let B=wL?wL.level:0;A.level=Q.level===void 0?B:Q.level,A.enabled="enabled"in Q?Q.enabled:A.level>0}function h9(A){if(!this||!(this instanceof h9)||this.template){let Q={};return vy(Q,A),Q.template=function(){let B=[].slice.call(arguments);return V8A.apply(null,[Q.template].concat(B))},Object.setPrototypeOf(Q,h9.prototype),Object.setPrototypeOf(Q.template,Q),Q.template.constructor=h9,Q.template}vy(this,A)}if(by)QE.blue.open="\x1B[94m";for(let A of Object.keys(QE))QE[A].closeRe=new RegExp(ML(QE[A].close),"g"),UJ[A]={get(){let Q=QE[A];return o4.call(this,this._styles?this._styles.concat(Q):[Q],this._empty,A)}};UJ.visible={get(){return o4.call(this,this._styles||[],!0,"visible")}};QE.color.closeRe=new RegExp(ML(QE.color.close),"g");for(let A of Object.keys(QE.color.ansi)){if(my.has(A))continue;UJ[A]={get(){let Q=this.level;return function(){let E={open:QE.color[uy[Q]][A].apply(null,arguments),close:QE.color.close,closeRe:QE.color.closeRe};return o4.call(this,this._styles?this._styles.concat(E):[E],this._empty,A)}}}}QE.bgColor.closeRe=new RegExp(ML(QE.bgColor.close),"g");for(let A of Object.keys(QE.bgColor.ansi)){if(my.has(A))continue;let Q="bg"+A[0].toUpperCase()+A.slice(1);UJ[Q]={get(){let B=this.level;return function(){let I={open:QE.bgColor[uy[B]][A].apply(null,arguments),close:QE.bgColor.close,closeRe:QE.bgColor.closeRe};return o4.call(this,this._styles?this._styles.concat(I):[I],this._empty,A)}}}}var K8A=Object.defineProperties(()=>{},UJ);function o4(A,Q,B){let E=function(){return L8A.apply(E,arguments)};E._styles=A,E._empty=Q;let I=this;return Object.defineProperty(E,"level",{enumerable:!0,get(){return I.level},set(C){I.level=C}}),Object.defineProperty(E,"enabled",{enumerable:!0,get(){return I.enabled},set(C){I.enabled=C}}),E.hasGrey=this.hasGrey||B==="gray"||B==="grey",E.__proto__=K8A,E}function L8A(){let A=arguments,Q=A.length,B=String(arguments[0]);if(Q===0)return"";if(Q>1)for(let I=1;I<Q;I++)B+=" "+A[I];if(!this.enabled||this.level<=0||!B)return this._empty?"":B;let E=QE.dim.open;if(by&&this.hasGrey)QE.dim.open="";for(let I of this._styles.slice().reverse())B=I.open+B.replace(I.closeRe,I.open)+I.close,B=B.replace(/\r?\n/g,`${I.close}$&${I.open}`);return QE.dim.open=E,B}function V8A(A,Q){if(!Array.isArray(Q))return[].slice.call(arguments,1).join(" ");let B=[].slice.call(arguments,2),E=[Q.raw[0]];for(let I=1;I<Q.length;I++)E.push(String(B[I-1]).replace(/[{}\\]/g,"\\$&")),E.push(String(Q.raw[I]));return $8A(A,E.join(""))}Object.defineProperties(h9.prototype,UJ);S9.exports=h9();S9.exports.supportsColor=wL;S9.exports.default=S9.exports});var oy=K((y9)=>{Object.defineProperty(y9,"__esModule",{value:!0});y9.default=O8A;y9.shouldHighlight=sy;var cy=Ey(),ly=Zy(),gL=z8A($y(),!0);function iy(A){if(typeof WeakMap!="function")return null;var Q=new WeakMap,B=new WeakMap;return(iy=function(E){return E?B:Q})(A)}function z8A(A,Q){if(!Q&&A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var B=iy(Q);if(B&&B.has(A))return B.get(A);var E={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in A)if(C!=="default"&&{}.hasOwnProperty.call(A,C)){var D=I?Object.getOwnPropertyDescriptor(A,C):null;D&&(D.get||D.set)?Object.defineProperty(E,C,D):E[C]=A[C]}return E.default=A,B&&B.sLine truncated
`);else B+=I}return B}function sy(A){return ny.isColorSupported||A.forceColor}var RL=void 0;function T8A(A){if(A){var Q;return(Q=RL)!=null||(RL=(0,gL.createColors)(!0)),RL}return ny}function O8A(A,Q={}){if(A!==""&&sy(Q)){let B=w8A(T8A(Q.forceColor));return g8A(B,A)}else return A}{let A,Q;y9.getChalk=({forceColor:B})=>{var E;if((E=A)!=null||(A=dy()),B){var I;return(I=Q)!=null||(Q=new A.constructor({enabled:!0,level:1})),Q}return A}}});var Q_=K((r4)=>{Object.defineProperty(r4,"__esModule",{value:!0});r4.codeFrameColumns=A_;r4.default=k8A;var TL=q8A(oy());function ey(){if(typeof WeakMap!=="function")return null;var A=new WeakMap;return ey=function(){return A},A}function q8A(A){if(A&&A.__esModule)return A;if(A===null||typeof A!=="object"&&typeof A!=="function")return{default:A};var Q=ey();if(Q&&Q.has(A))return Q.get(A);var B={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in A)if(Object.prototype.hasOwnProperty.call(A,I)){var C=E?Object.getOwnPropertyDescriptor(A,I):null;if(C&&(C.get||C.set))Object.defineProperty(B,I,C);else B[I]=A[I]}if(B.default=A,Q)Q.set(A,B);return B}var ry=!1;function j8A(A){return{gutter:A.grey,marker:A.red.bold,message:A.red.bold}}var ty=/\r\n|[\n\r\u2028\u2029]/;function P8A(A,Q,B){let E=Object.assign({column:0,line:-1},A.start),I=Object.assign({},E,A.end),{linesAbove:C=2,linesBelow:D=3}=B||{},F=E.line,Y=E.column,J=I.line,G=I.column,N=Math.max(F-(C+1),0),U=Math.min(Q.length,J+D);if(F===-1)N=0;if(J===-1)U=Q.length;let Z=J-F,X={};if(Z)for(let $=0;$<=Z;$++){let V=$+F;if(!Y)X[V]=!0;else if($===0){let w=Q[V-1].length;X[V]=[Y,w-Y+1]}else if($===Z)X[V]=[0,G];else{let w=Q[V-$].length;X[V]=[0,w]}}else if(Y===G)if(Y)X[F]=[Y,0];else X[F]=!0;else X[F]=[Y,G-Y];return{start:N,end:U,markerLines:X}}function A_(A,Q,B={}){let E=(B.highlightCode||B.forceColor)&&(0,TL.shouldHighlight)(B),I=(0,TL.getChalk)(B),C=j8A(I),D=($,V)=>{return E?$(V):V},F=A.split(ty),{start:Y,end:J,markerLines:G}=P8A(Q,F,B),N=Q.start&&typeof Q.start.column==="number",U=String(J).length,X=(E?(0,TL.default)(A,B):A).split(ty).slice(Y,J).map(($,V)=>{let w=Y+1+V,M=` ${` ${w}`.slice(-U)} | `,k=G[w],d=!G[w+1];if(k){let t="";if(Array.isArray(k)){let m=$.slice(0,Math.max(k[0]-1,0)).replace(/[^\t]/g," "),n=k[1]||1;if(t=[`
`,D(C.gutter,M.replace(/\d/g," ")),m,D(C.marker,"^").repeat(n)].join(""),d&&B.message)t+=" "+D(C.message,B.message)}return[D(C.marker,">"),D(C.gutter,M),$,t].join("")}else return` ${D(C.gutter,M)}${$}`}).join(`
`);if(B.message&&!N)X=`${" ".repeat(U+1)}${B.message}
${X}`;if(E)return I.reset(X);else return X}function k8A(A,Q,B,E={}){if(!ry){ry=!0;let C="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(C,"DeprecationWarning");else{let D=Error(C);D.name="DeprecationWarning",console.warn(Error(C))}}return B=Math.max(B,0),A_(A,{start:{column:B,line:Q}},E)}});var B_=K((P_A,t4)=>{t4.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;t4.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uLine truncated
`)oD++,Q0=0;else if(A)Q0+=A.length;else Q0++;if(A)A2+=A.length;return A}var C_={default(){switch(HQ){case"\t":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
`:case"\r":case"\u2028":case"\u2029":DA();return;case"/":DA(),NQ="comment";return;case void 0:return DA(),$B("eof")}if(LE.isSpaceSeparator(HQ)){DA();return}return C_[NI]()},comment(){switch(HQ){case"*":DA(),NQ="multiLineComment";return;case"/":DA(),NQ="singleLineComment";return}throw KB(DA())},multiLineComment(){switch(HQ){case"*":DA(),NQ="multiLineCommentAsterisk";return;case void 0:throw KB(DA())}DA()},multiLineCommentAsterisk(){switch(HQ){case"*":DA();return;case"/":DA(),NQ="default";return;case void 0:throw KB(DA())}DA(),NQ="multiLineComment"},singleLineComment(){switch(HQ){case`
`:case"\r":case"\u2028":case"\u2029":DA(),NQ="default";return;case void 0:return DA(),$B("eof")}DA()},value(){switch(HQ){case"{":case"[":return $B("punctuator",DA());case"n":return DA(),U1("ull"),$B("null",null);case"t":return DA(),U1("rue"),$B("boolean",!0);case"f":return DA(),U1("alse"),$B("boolean",!1);case"-":case"+":if(DA()==="-")WD=-1;NQ="sign";return;case".":IQ=DA(),NQ="decimalPointLeading";return;case"0":IQ=DA(),NQ="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":IQ=DA(),NQ="decimalInteger";return;case"I":return DA(),U1("nfinity"),$B("numeric",1/0);case"N":return DA(),U1("aN"),$B("numeric",NaN);case'"':case"'":_9=DA()==='"',IQ="",NQ="string";return}throw KB(DA())},identifierNameStartEscape(){if(HQ!=="u")throw KB(DA());DA();let A=fL();switch(A){case"$":case"_":break;default:if(!LE.isIdStartChar(A))throw I_();break}IQ+=A,NQ="identifierName"},identifierName(){switch(HQ){case"$":case"_":case"‌":case"‍":IQ+=DA();return;case"\\":DA(),NQ="identifierNameEscape";return}if(LE.isIdContinueChar(HQ)){IQ+=DA();return}return $B("identifier",IQ)},identifierNameEscape(){if(HQ!=="u")throw KB(DA());DA();let A=fL();switch(A){case"$":case"_":case"‌":case"‍":break;default:if(!LE.isIdContinueChar(A))throw I_();break}IQ+=A,NQ="identifierName"},sign(){switch(HQ){case".":IQ=DA(),NQ="decimalPointLeading";return;case"0":IQ=DA(),NQ="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":IQ=DA(),NQ="decimalInteger";return;case"I":return DA(),U1("nfinity"),$B("numeric",WD*(1/0));case"N":return DA(),U1("aN"),$B("numeric",NaN)}throw KB(DA())},zero(){switch(HQ){case".":IQ+=DA(),NQ="decimalPoint";return;case"e":case"E":IQ+=DA(),NQ="decimalExponent";return;case"x":case"X":IQ+=DA(),NQ="hexadecimal";return}return $B("numeric",WD*0)},decimalInteger(){switch(HQ){case".":IQ+=DA(),NQ="decimalPoint";return;case"e":case"E":IQ+=DA(),NQ="decimalExponent";return}if(LE.isDigit(HQ)){IQ+=DA();return}return $B("numeric",WD*Number(IQ))},decimalPointLeading(){if(LE.isDigit(HQ)){IQ+=DA(),NQ="decimalFraction";return}throw KB(DA())},decimalPoint(){switch(HQ){case"e":case"E":IQ+=DA(),NQ="decimalExponent";return}if(LE.isDigit(HQ)){IQ+=DA(),NQ="decimalFraction";return}return $B("numeric",WD*Number(IQ))},decimalFraction(){switch(HQ){case"e":case"E":IQ+=DA(),NQ="decimalExponent";return}if(LE.isDigit(HQ)){IQ+=DA();return}return $B("numeric",WD*Number(IQ))},decimalExponent(){switch(HQ){case"+":case"-":IQ+=DA(),NQ="decimalExponentSign";return}if(LE.isDigit(HQ)){IQ+=DA(),NQ="decimalExponentInteger";return}throw KB(DA())},decimalExponentSign(){if(LE.isDigit(HQ)){IQ+=DA(),NQ="decimalExponentInteger";return}throw KB(DA())},decimalExponentInteger(){if(LE.isDigit(HQ)){IQ+=DA();return}return $B("numeric",WD*Number(IQ))},hexadecimal(){if(LE.isHexDigit(HQ)){IQ+=DA(),NQ="hexadecimalInteger";return}throw KB(DA())},hexadecimalInteger(){if(LE.isHexDigit(HQ)){IQ+=DA();return}return $B("numeric",WD*Number(IQ))},string(){switch(HQ){case"\\":DA(),IQ+=x8A();return;case'"':if(_9)return DA(),$B("string",IQ);IQ+=DA();return;case"'":if(!_9)return DA(),$B("string",IQ);IQ+=DA();return;case`
`:case"\r":throw KB(DA());case"\u2028":case"\u2029":y8A(HQ);break;case void 0:throw KB(DA())}IQ+=DA()},start(){switch(HQ){case"{":case"[":return $B("punctuator",DA())}NQ="value"},beforePropertyName(){switch(HQ){case"$":case"_":IQ=DA(),NQ="identifierName";return;case"\\":DA(),NQ="identifierNameStartEscape";return;case"}":return $B("punctuator",DA());case'"':case"'":_9=DA()==='"',NQ="string";return}if(LE.isIdStartChar(HQ)){IQ+=DA(),NQ="identifierName";return}throw KB(DA())},afterPropertyName(){if(HQ===":")return $B("punctuator",DA());throw KB(DA())},beforePropertyValue(){NQ="value"},afterPropertyValue(){switch(HQ){case",":case"}":return $B("punctuator",DA())}throw KB(DA())},beforeArrayValue(){if(HQ==="]")return $B("punctuator",DA());NQ="value"},afterArrayValue(){switch(HQ){case",":case"]":return $B("punctuator",DA())}throw KB(DA())},end(){throw KB(DA())}};function $B(A,Q){return{type:A,value:Q,line:oD,column:Q0}}function U1(A){for(let Q of A){if($D()!==Q)throw KB(DA());DA()}}function x8A(){switch($D()){case"b":return DA(),"\b";case"f":return DA(),"\f";case"n":return DA(),`
`;case"r":return DA(),"\r";case"t":return DA(),"\t";case"v":return DA(),"\v";case"0":if(DA(),LE.isDigit($D()))throw KB(DA());return"\x00";case"x":return DA(),h8A();case"u":return DA(),fL();case`
`:case"\u2028":case"\u2029":return DA(),"";case"\r":if(DA(),$D()===`
`)DA();return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw KB(DA());case void 0:throw KB(DA())}return DA()}function h8A(){let A="",Q=$D();if(!LE.isHexDigit(Q))throw KB(DA());if(A+=DA(),Q=$D(),!LE.isHexDigit(Q))throw KB(DA());return A+=DA(),String.fromCodePoint(parseInt(A,16))}function fL(){let A="",Q=4;while(Q-- >0){let B=$D();if(!LE.isHexDigit(B))throw KB(DA());A+=DA()}return String.fromCodePoint(parseInt(A,16))}var S8A={start(){if(VE.type==="eof")throw Z1();jL()},beforePropertyName(){switch(VE.type){case"identifier":case"string":xL=VE.value,NI="afterPropertyName";return;case"punctuator":e4();return;case"eof":throw Z1()}},afterPropertyName(){if(VE.type==="eof")throw Z1();NI="beforePropertyValue"},beforePropertyValue(){if(VE.type==="eof")throw Z1();jL()},beforeArrayValue(){if(VE.type==="eof")throw Z1();if(VE.type==="punctuator"&&VE.value==="]"){e4();return}jL()},afterPropertyValue(){if(VE.type==="eof")throw Z1();switch(VE.value){case",":NI="beforePropertyName";return;case"}":e4()}},afterArrayValue(){if(VE.type==="eof")throw Z1();switch(VE.value){case",":NI="beforeArrayValue";return;case"]":e4()}},end(){}};function jL(){let A;switch(VE.type){case"punctuator":switch(VE.value){case"{":A={};break;case"[":A=[];break}break;case"null":case"boolean":case"numeric":case"string":A=VE.value;break}if(v9===void 0)v9=A;else{let Q=XD[XD.length-1];if(Array.isArray(Q))Q.push(A);else Object.defineProperty(Q,xL,{value:A,writable:!0,enumerable:!0,configurable:!0})}if(A!==null&&typeof A==="object")if(XD.push(A),Array.isArray(A))NI="beforeArrayValue";else NI="beforePropertyName";else{let Q=XD[XD.length-1];if(Q==null)NI="end";else if(Array.isArray(Q))NI="afterArrayValue";else NI="afterPropertyValue"}}function e4(){XD.pop();let A=XD[XD.length-1];if(A==null)NI="end";else if(Array.isArray(A))NI="afterArrayValue";else NI="afterPropertyValue"}function KB(A){if(A===void 0)return Q2(`JSON5: invalid end of input at ${oD}:${Q0}`);return Q2(`JSON5: invalid character '${D_(A)}' at ${oD}:${Q0}`)}function Z1(){return Q2(`JSON5: invalid end of input at ${oD}:${Q0}`)}function I_(){return Q0-=5,Q2(`JSON5: invalid identifier character at ${oD}:${Q0}`)}function y8A(A){console.warn(`JSON5: '${D_(A)}' in strings is not valid ECMAScript; consider escaping`)}function D_(A){let Q={"'":"\\'",'"':"\\\"","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(Q[A])return Q[A];if(A<" "){let B=A.charCodeAt(0).toString(16);return"\\x"+("00"+B).substring(B.length)}return A}function Q2(A){let Q=SyntaxError(A);return Q.lineNumber=oD,Q.columnNumber=Q0,Q}});var G_=K((x_A,J_)=>{var hL=qL();J_.exports=function(Q,B,E){let I=[],C="",D,F,Y="",J;if(B!=null&&typeof B==="object"&&!Array.isArray(B))E=B.space,J=B.quote,B=B.replacer;if(typeof B==="function")F=B;else if(Array.isArray(B)){D=[];for(let $ of B){let V;if(typeof $==="string")V=$;else if(typeof $==="number"||$ instanceof String||$ instanceof Number)V=String($);if(V!==void 0&&D.indexOf(V)<0)D.push(V)}}if(E instanceof Number)E=Number(E);else if(E instanceof String)E=String(E);if(typeof E==="number"){if(E>0)E=Math.min(10,Math.floor(E)),Y=" ".substr(0,E)}else if(typeof E==="string")Y=E.substr(0,10);return G("",{"":Q});function G($,V){let w=V[$];if(w!=null){if(typeof w.toJSON5==="function")w=w.toJSON5($);else if(typeof w.toJSON==="function")w=w.toJSON($)}if(F)w=F.call(V,$,w);if(w instanceof Number)w=Number(w);else if(w instanceof String)w=String(w);else if(w instanceof Boolean)w=w.valueOf();switch(w){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof w==="string")return N(w,!1);if(typeof w==="number")return String(w);if(typeof w==="object")return Array.isArray(w)?X(w):U(w);return}function N($){let V={"'":0.1,'"':0.2},w={"'":"\\'",'"':"\\\"","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},g="";for(let k=0;k<$.length;k++){let d=$[k];switch(d){case"'":case'"':V[d]++,g+=d;continue;case"\x00":if(hL.isDigit($[k+1])){g+="\\x00";continue}}if(w[d]){g+=w[d];continue}if(d<" "){let t=d.charCodeAt(0).toString(16);g+="\\x"+("00"+t).substring(t.length);continue}g+=d}let M=J||Object.keys(V).reduce((k,d)=>V[k]<V[d]?k:d);return g=g.replace(new RegExp(M,"g"),w[M]),M+g+M}function U($){if(I.indexOf($)>=0)throw TypeError("Converting circular structure to JSON5");I.push($);let V=C;C=C+Y;let w=D||Object.keys($),g=[];for(let k of w){let d=G(k,$);if(d!==void 0){let t=Z(k)+":";if(Y!=="")t+=" ";t+=d,g.push(t)}}let M;if(g.length===0)M="{}";else{let k;if(Y==="")k=g.join(","),M="{"+k+"}";else{let d=`,
`+C;k=g.join(d),M=`{
`+C+k+`,
`+V+"}"}}return I.pop(),C=V,M}function Z($){if($.length===0)return N($,!0);let V=String.fromCodePoint($.codePointAt(0));if(!hL.isIdStartChar(V))return N($,!0);for(let w=V.length;w<$.length;w++)if(!hL.isIdContinueChar(String.fromCodePoint($.codePointAt(w))))return N($,!0);return $}function X($){if(I.indexOf($)>=0)throw TypeError("Converting circular structure to JSON5");I.push($);let V=C;C=C+Y;let w=[];for(let M=0;M<$.length;M++){let k=G(String(M),$);w.push(k!==void 0?k:"null")}let g;if(w.length===0)g="[]";else if(Y==="")g="["+w.join(",")+"]";else{let M=`,
`+C,k=w.join(M);g=`[
`+C+k+`,
`+V+"]"}return I.pop(),C=V,g}}});var U_=K((h_A,N_)=>{var _8A=Y_(),v8A=G_(),b8A={parse:_8A,stringify:v8A};N_.exports=b8A});var W_=K((b9)=>{Object.defineProperty(b9,"__esModule",{value:!0});b9.EmptyJsonFileError=void 0;class SL extends Error{cause;code;fileName;isJsonFileError;constructor(A,Q,B,E){let I=A;if(E)I+=`
${Q?"├":"└"}─ File: ${E}`;if(Q)I+=`
└─ Cause: ${Q.name}: ${Q.message}`;super(I);this.name=this.constructor.name,this.cause=Q,this.code=B,this.fileName=E,this.isJsonFileError=!0}}b9.default=SL;class Z_ extends SL{constructor(A){super("Cannot parse an empty JSON string",void 0,"EJSONEMPTY",A)}}b9.EmptyJsonFileError=Z_});var $_=K((j0)=>{var u8A=j0&&j0.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),m8A=j0&&j0.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),d8A=j0&&j0.__importStar||function(){var A=function(Q){return A=Object.getOwnPropertyNames||function(B){var E=[];for(var I in B)if(Object.prototype.hasOwnProperty.call(B,I))E[E.length]=I;return E},A(Q)};return function(Q){if(Q&&Q.__esModule)return Q;var B={};if(Q!=null){for(var E=A(Q),I=0;I<E.length;I++)if(E[I]!=="default")u8A(B,Q,E[I])}return m8A(B,Q),B}}();Object.defineProperty(j0,"__esModule",{value:!0});j0.writeFileAtomicSync=l8A;j0.writeFileAtomic=p8A;var c8A=require("node:crypto"),B2=d8A(require("node:fs"));function X_(A,Q){let B=(0,c8A.createHash)("sha256").update(Q).digest("base64url");return`${A}.${B}`}function l8A(A,Q){let B=X_(A,Q);B2.writeFileSync(B,Q),B2.renameSync(B,A)}async function p8A(A,Q){let B=X_(A,Q);await B2.promises.writeFile(B,Q),await B2.promises.rename(B,A)}});var k_=K((B0)=>{var i8A=B0&&B0.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),n8A=B0&&B0.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),a8A=B0&&B0.__importStar||function(){var A=function(Q){return A=Object.getOwnPropertyNames||function(B){var E=[];for(var I in B)if(Object.prototype.hasOwnProperty.call(B,I))E[E.length]=I;return E},A(Q)};return function(Q){if(Q&&Q.__esModule)return Q;var B={};if(Q!=null){for(var E=A(Q),I=0;I<E.length;I++)if(E[I]!=="default")i8A(B,Q,E[I])}return n8A(B,Q),B}}(),vL=B0&&B0.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(B0,"__esModule",{value:!0});var s8A=Q_(),bL=vL(U_()),I2=vL(require("node:fs")),O_=vL(require("node:path")),rD=a8A(W_()),q_=$_(),o8A={badJsonDefault:void 0,jsonParseErrorDefault:void 0,cantReadFileDefault:void 0,ensureDir:!1,default:void 0,json5:!1,space:2,addNewLineAtEOF:!0};class j_{file;options;static read=X1;static readAsync=$1;static parseJsonString=E2;static write=ZJ;static writeAsync=WJ;static get=K_;static getAsync=L_;static set=V_;static setAsync=z_;static merge=w_;static mergeAsync=H_;static deleteKey=R_;static deleteKeyAsync=M_;static deleteKeys=_L;static deleteKeysAsync=yL;static rewrite=T_;static rewriteAsync=g_;constructor(A,Q={}){this.file=A,this.options=Q}read(A){return X1(this.file,this._getOptions(A))}async readAsync(A){return $1(this.file,this._getOptions(A))}write(A,Q){return ZJ(this.file,A,this._getOptions(Q))}async writeAsync(A,Q){return WJ(this.file,A,this._getOptions(Q))}parseJsonString(A,Q){return E2(A,Q)}get(A,Q,B){return K_(this.file,A,Q,this._getOptions(B))}async getAsync(A,Q,B){return L_(this.file,A,Q,this._getOptions(B))}set(A,Q,B){return V_(this.file,A,Q,this._getOptions(B))}async setAsync(A,Q,B){return z_(this.file,A,Q,this._getOptions(B))}async merge(A,Q){return w_(this.file,A,this._getOptions(Q))}async mergeAsync(A,Q){return H_(this.file,A,this._getOptions(Q))}deleteKey(A,Q){return R_(this.file,A,this._getOptions(Q))}async deleteKeyAsync(A,Q){return M_(this.file,A,this._getOptions(Q))}deleteKeys(A,Q){return _L(this.file,A,this._getOptions(Q))}async deleteKeysAsync(A,Q){return yL(this.file,A,this._getOptions(Q))}rewrite(A){return T_(this.file,this._getOptions(A))}async rewriteAsync(A){return g_(this.file,this._getOptions(A))}_getOptions(A){return{...this.options,...A}}}B0.default=j_;function X1(A,Q){let B;try{B=I2.default.readFileSync(A,"utf8")}catch(E){uL(B,A);let I=P_(Q);if(I===void 0)throw new rD.default(`Can't read JSON file: ${A}`,E,E.code,A);else return I}return E2(B,Q,A)}async function $1(A,Q){let B;try{B=await I2.default.promises.readFile(A,"utf8")}catch(E){uL(B,A);let I=P_(Q);if(I===void 0)throw new rD.default(`Can't read JSON file: ${A}`,E,E.code);else return I}return E2(B,Q)}function E2(A,Q,B){uL(A,B);try{if(W1(Q,"json5"))return bL.default.parse(A);else return JSON.parse(A)}catch(E){let I=r8A(Q);if(I===void 0){let C=t8A(E,A);if(C){let D=(0,s8A.codeFrameColumns)(A,{start:C});E.codeFrame=D,E.message+=`
${D}`}throw new rD.default(`Error parsing JSON: ${A}`,E,"EJSONPARSE",B)}else return I}}function K_(A,Q,B,E){let I=X1(A,E);if(Q in I)return I[Q];if(B===void 0)throw new rD.default(`No value at key path "${String(Q)}" in JSON object from: ${A}`);return B}async function L_(A,Q,B,E){let I=await $1(A,E);if(Q in I)return I[Q];if(B===void 0)throw new rD.default(`No value at key path "${String(Q)}" in JSON object from: ${A}`);return B}function ZJ(A,Q,B){if(B?.ensureDir)I2.default.mkdirSync(O_.default.dirname(A),{recursive:!0});let E=W1(B,"space"),I=W1(B,"json5"),C=W1(B,"addNewLineAtEOF"),D;try{if(I)D=bL.default.stringify(Q,null,E);else D=JSON.stringify(Q,null,E)}catch(Y){throw new rD.default(`Couldn't JSON.stringify object for file: ${A}`,Y)}let F=C?`${D}
`:D;return(0,q_.writeFileAtomicSync)(A,F),Q}async function WJ(A,Q,B){if(B?.ensureDir)await I2.default.promises.mkdir(O_.default.dirname(A),{recursive:!0});let E=W1(B,"space"),I=W1(B,"json5"),C=W1(B,"addNewLineAtEOF"),D;try{if(I)D=bL.default.stringify(Q,null,E);else D=JSON.stringify(Q,null,E)}catch(Y){throw new rD.default(`Couldn't JSON.stringify object for file: ${A}`,Y)}let F=C?`${D}
`:D;return await(0,q_.writeFileAtomic)(A,F),Q}function V_(A,Q,B,E){let I=X1(A,E);return ZJ(A,{...I,[Q]:B},E)}async function z_(A,Q,B,E){let I=await $1(A,E);return WJ(A,{...I,[Q]:B},E)}async function H_(A,Q,B){let E=await $1(A,B);if(Array.isArray(Q))Object.assign(E,...Q);else Object.assign(E,Q);return WJ(A,E,B)}function w_(A,Q,B){let E=X1(A,B);if(Array.isArray(Q))Object.assign(E,...Q);else Object.assign(E,Q);return ZJ(A,E,B)}async function M_(A,Q,B){return yL(A,[Q],B)}function R_(A,Q,B){return _L(A,[Q],B)}async function yL(A,Q,B){let E=await $1(A,B),I=!1;for(let C=0;C<Q.length;C++){let D=Q[C];if(E.hasOwnProperty(D))delete E[D],I=!0}if(I)return WJ(A,E,B);return E}function _L(A,Q,B){let E=X1(A,B),I=!1;for(let C=0;C<Q.length;C++){let D=Q[C];if(E.hasOwnProperty(D))delete E[D],I=!0}if(I)return ZJ(A,E,B);return E}async function g_(A,Q){let B=await $1(A,Q);return WJ(A,B,Q)}function T_(A,Q){return ZJ(A,X1(A,Q),Q)}function r8A(A={}){if(A.jsonParseErrorDefault===void 0)return A.default;else return A.jsonParseErrorDefault}function P_(A={}){if(A.cantReadFileDefault===void 0)return A.default;else return A.cantReadFileDefault}function W1(A,Q){if(A){if(A[Q]!==void 0)return A[Q]}return o8A[Q]}function t8A(A,Q){if("lineNumber"in A&&"columnNumber"in A)return{line:A.lineNumber,column:A.columnNumber};let B=/at position (\d+)/.exec(A.message);if(B){let E=parseInt(B[1],10),I=Q.slice(0,E+1).split(`
`);return{line:I.length,column:I[I.length-1].length}}return null}function uL(A,Q){if(A?.trim()==="")throw new rD.EmptyJsonFileError(Q)}});var y_=K((D2)=>{Object.defineProperty(D2,"__esModule",{value:!0});D2.LRUCache=void 0;var XJ=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,x_=new Set,mL=typeof process==="object"&&!!process?process:{},h_=(A,Q,B,E)=>{typeof mL.emitWarning==="function"?mL.emitWarning(A,Q,B,E):console.error(`[${B}] ${Q}: ${A}`)},C2=globalThis.AbortController,f_=globalThis.AbortSignal;if(typeof C2>"u"){f_=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(E,I){this._onabort.push(I)}},C2=class{constructor(){Q()}signal=new f_;abort(E){if(this.signal.aborted)return;this.signal.reason=E,this.signal.aborted=!0;for(let I of this.signal._onabort)I(E);this.signal.onabort?.(E)}};let A=mL.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",Q=()=>{if(!A)return;A=!1,h_("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",Q)}}var e8A=(A)=>!x_.has(A),v_A=Symbol("type"),tD=(A)=>A&&A===Math.floor(A)&&A>0&&isFinite(A),S_=(A)=>!tD(A)?null:A<=Math.pow(2,8)?Uint8Array:A<=Math.pow(2,16)?Uint16Array:A<=Math.pow(2,32)?Uint32Array:A<=Number.MAX_SAFE_INTEGER?u9:null;class u9 extends Array{constructor(A){super(A);this.fill(0)}}class $J{heap;length;static#A=!1;static create(A){let Q=S_(A);if(!Q)return[];$J.#A=!0;let B=new $J(A,Q);return $J.#A=!1,B}constructor(A,Q){if(!$J.#A)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new Q(A),this.length=0}push(A){this.heap[this.length++]=A}pop(){return this.heap[--this.length]}}class dL{#A;#I;#Q;#B;#K;#k;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#Y;#L;#F;#D;#E;#U;#W;#N;#J;#V;#G;#z;#H;#X;#w;#O;#Z;static unsafeExposeInternals(A){return{starts:A.#H,ttls:A.#X,sizes:A.#z,keyMap:A.#F,keyList:A.#D,valList:A.#E,next:A.#U,prev:A.#W,get head(){return A.#N},get tail(){return A.#J},free:A.#V,isBackgroundFetch:(Q)=>A.#C(Q),backgroundFetch:(Q,B,E,I)=>A.#h(Q,B,E,I),moveToTail:(Q)=>A.#P(Q),indexes:(Q)=>A.#M(Q),rindexes:(Q)=>A.#R(Q),isStale:(Q)=>A.#$(Q)}}get max(){return this.#A}get maxSize(){return this.#I}get calculatedSize(){return this.#L}get size(){return this.#Y}get fetchMethod(){return this.#K}get memoMethod(){return this.#k}get dispose(){return this.#Q}get disposeAfter(){return this.#B}constructor(A){let{max:Q=0,ttl:B,ttlResolution:E=1,ttlAutopurge:I,updateAgeOnGet:C,updateAgeOnHas:D,allowStale:F,dispose:Y,disposeAfter:J,noDisposeOnSet:G,noUpdateTTL:N,maxSize:U=0,maxEntrySize:Z=0,sizeCalculation:X,fetchMethod:$,memoMethod:V,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:g,allowStaleOnFetchRejection:M,allowStaleOnFetchAbort:k,ignoreFetchAbort:d}=A;if(Q!==0&&!tD(Q))throw TypeError("max option must be a nonnegative integer");let t=Q?S_(Q):Array;if(!t)throw Error("invalid max value: "+Q);if(this.#A=Q,this.#I=U,this.maxEntrySize=Z||this.#I,this.sizeCalculation=X,this.sizeCalculation){if(!this.#I&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!=="function")throw TypeError("sizeCalculation set to non-function")}if(V!==void 0&&typeof V!=="function")throw TypeError("memoMethod must be a function if defined");if(this.#k=V,$!==void 0&&typeof $!=="function")throw TypeError("fetchMethod must be a function if specified");if(this.#K=$,this.#O=!!$,this.#F=new Map,this.#D=Array(Q).fill(void 0),this.#E=Array(Q).fill(void 0),this.#U=new t(Q),this.#W=new t(Q),this.#N=0,this.#J=0,this.#V=$J.create(Q),this.#Y=0,this.#L=0,typeof Y==="function")this.#Q=Y;if(typeof J==="function")this.#B=J,this.#G=[];else this.#B=void 0,this.#G=void 0;if(this.#w=!!this.#Q,this.#Z=!!this.#B,this.noDisposeOnSet=!!G,this.noUpdateTTL=!!N,this.noDeleteOnFetchRejection=!!w,this.allowStaleOnFetchRejection=!!M,this.allowStaleOnFetchAbort=!!k,this.ignoreFetchAbort=!!d,this.maxEntrySize!==0){if(this.#I!==0){if(!tD(this.#I))throw TypeError("maxSize must be a positive integer if specified")}if(!tD(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#m()}if(this.allowStale=!!F,this.noDeleteOnStaleGet=!!g,this.updateAgeOnGet=!!C,this.updateAgeOnHas=!!D,this.ttlResolution=tD(E)||E===0?E:1,this.ttlAutopurge=!!I,this.ttl=B||0,this.ttl){if(!tD(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#S()}if(this.#A===0&&this.ttl===0&&this.#I===0)t Line truncated
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},5873:(I,C,D)=>{let F=D(6330),Y=D(8750),J=D(5207),G=(U="",Z="",X=!1)=>{let $=[];if(U=[].concat(U),Z=[].concat(Z),!Z.length)return U;if(!U.length)return X?J.flatten(Z).map((V)=>`{${V}}`):Z;for(let V of U)if(Array.isArray(V))for(let w of V)$.push(G(w,Z,X));else for(let w of Z){if(X===!0&&typeof w==="string")w=`{${w}}`;$.push(Array.isArray(w)?G(V,w,X):V+w)}return J.flatten($)},N=(U,Z={})=>{let X=Z.rangeLimit===void 0?1000:Z.rangeLimit,$=(V,w={})=>{V.queue=[];let g=w,M=w.queue;while(g.type!=="brace"&&g.type!=="root"&&g.parent)g=g.parent,M=g.queue;if(V.invalid||V.dollar){M.push(G(M.pop(),Y(V,Z)));return}if(V.type==="brace"&&V.invalid!==!0&&V.nodes.length===2){M.push(G(M.pop(),["{}"]));return}if(V.nodes&&V.ranges>0){let m=J.reduce(V.nodes);if(J.exceedsLimit(...m,Z.step,X))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let n=F(...m,Z);if(n.length===0)n=Y(V,Z);M.push(G(M.pop(),n)),V.nodes=[];return}let k=J.encloseBrace(V),d=V.queue,t=V;while(t.type!=="brace"&&t.type!=="root"&&t.parent)t=t.parent,d=t.queue;for(let m=0;m<V.nodes.length;m++){let n=V.nodes[m];if(n.type==="comma"&&V.type==="brace"){if(m===1)d.push("");d.push("");continue}if(n.type==="close"){M.push(G(M.pop(),d,k));continue}if(n.value&&n.type!=="open"){d.push(G(d.pop(),n.value));continue}if(n.nodes)$(n,V)}return d};return J.flatten($(U))};I.exports=N},6477:(I,C,D)=>{let F=D(8750),{MAX_LENGTH:Y,CHAR_BACKSLASH:J,CHAR_BACKTICK:G,CHAR_COMMA:N,CHAR_DOT:U,CHAR_LEFT_PARENTHESES:Z,CHAR_RIGHT_PARENTHESES:X,CHAR_LEFT_CURLY_BRACE:$,CHAR_RIGHT_CURLY_BRACE:V,CHAR_LEFT_SQUARE_BRACKET:w,CHAR_RIGHT_SQUARE_BRACKET:g,CHAR_DOUBLE_QUOTE:M,CHAR_SINGLE_QUOTE:k,CHAR_NO_BREAK_SPACE:d,CHAR_ZERO_WIDTH_NOBREAK_SPACE:t}=D(8774),m=(n,QA={})=>{if(typeof n!=="string")throw TypeError("Expected a string");let x=QA||{},l=typeof x.maxLength==="number"?Math.min(Y,x.maxLength):Y;if(n.length>l)throw SyntaxError(`Input length (${n.length}), exceeds max characters (${l})`);let u={type:"root",input:n,nodes:[]},CA=[u],i=u,KA=u,HA=0,uA=n.length,cA=0,yA=0,JA,PA=()=>n[cA++],dA=(IA)=>{if(IA.type==="text"&&KA.type==="dot")KA.type="text";if(KA&&KA.type==="text"&&IA.type==="text"){KA.value+=IA.value;return}return i.nodes.push(IA),IA.parent=i,IA.prev=KA,KA=IA,IA};dA({type:"bos"});while(cA<uA){if(i=CA[CA.length-1],JA=PA(),JA===t||JA===d)continue;if(JA===J){dA({type:"text",value:(QA.keepEscaping?JA:"")+PA()});continue}if(JA===g){dA({type:"text",value:"\\"+JA});continue}if(JA===w){HA++;let IA;while(cA<uA&&(IA=PA())){if(JA+=IA,IA===w){HA++;continue}if(IA===J){JA+=PA();continue}if(IA===g){if(HA--,HA===0)break}}dA({type:"text",value:JA});continue}if(JA===Z){i=dA({type:"paren",nodes:[]}),CA.push(i),dA({type:"text",value:JA});continue}if(JA===X){if(i.type!=="paren"){dA({type:"text",value:JA});continue}i=CA.pop(),dA({type:"text",value:JA}),i=CA[CA.length-1];continue}if(JA===M||JA===k||JA===G){let IA=JA,kA;if(QA.keepQuotes!==!0)JA="";while(cA<uA&&(kA=PA())){if(kA===J){JA+=kA+PA();continue}if(kA===IA){if(QA.keepQuotes===!0)JA+=kA;break}JA+=kA}dA({type:"text",value:JA});continue}if(JA===$){yA++;let kA={type:"brace",open:!0,close:!1,dollar:KA.value&&KA.value.slice(-1)==="$"||i.dollar===!0,depth:yA,commas:0,ranges:0,nodes:[]};i=dA(kA),CA.push(i),dA({type:"open",value:JA});continue}if(JA===V){if(i.type!=="brace"){dA({type:"text",value:JA});continue}let IA="close";i=CA.pop(),i.close=!0,dA({type:IA,value:JA}),yA--,i=CA[CA.length-1];continue}if(JA===N&&yA>0){if(i.ranges>0){i.ranges=0;let IA=i.nodes.shift();i.nodes=[IA,{type:"text",value:F(i)}]}dA({type:"comma",value:JA}),i.commas++;continue}if(JA===U&&yA>0&&i.commas===0){let IA=i.nodes;if(yA===0||IA.length===0){dA({type:"text",value:JA});continue}if(KA.type==="dot"){if(i.range=[],KA.value+=JA,KA.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,KA.type="text";continue}i.ranges++,i.args=[];continue}if(KA.type==="range"){IA.pop();let kA=IA[IA.length-1];kA.value+=KA.value+JA,KA=kA,i.ranges--;continue}dA({type:"dot",value:JA});continue}dA({type:"text",value:JA})}do if(i=CA.pop(),i.type!=="root"){i.nodes.forEach((DQ)=>{if(!DQ.nodes){if(DQ.type==="open")DQ.isOpen=!0;if(DQ.type==="close")DQ.isClose=!0;if(!DQ.nodes)DQ.type="text";DQ.invalid=!0}});let IA=CA[CA.length-1],kA=IA.nodes.indexOf(i);IA.nodes.splice(kA,1,...i.nodes)}while(CA.length>0);return dA({type:"eos"}),u};I.exports=m},8750:(I,C,D)=>{let F=D(5207);I.exports=(Y,J={})=>{let G=(N,U={})=>{let Z=J.escapeInvalid&&F.isInvalidBrace(U),X=N.invalid===!0&&J.escapeInvalid===!0,$="";if(N.value){if((Z||X)&&F.isOpenOrClose(N))return"\\"+N.value;return N.value}if(N.value)return N.value;if(N.nodes)for(let V of N.nodes)$Line truncated
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*/let F=D(3837),Y=D(1861),J=(x)=>x!==null&&typeof x==="object"&&!Array.isArray(x),G=(x)=>(l)=>x===!0?Number(l):String(l),N=(x)=>typeof x==="number"||typeof x==="string"&&x!=="",U=(x)=>Number.isInteger(+x),Z=(x)=>{let l=`${x}`,u=-1;if(l[0]==="-")l=l.slice(1);if(l==="0")return!1;while(l[++u]==="0");return u>0},X=(x,l,u)=>{if(typeof x==="string"||typeof l==="string")return!0;return u.stringify===!0},$=(x,l,u)=>{if(l>0){let CA=x[0]==="-"?"-":"";if(CA)x=x.slice(1);x=CA+x.padStart(CA?l-1:l,"0")}if(u===!1)return String(x);return x},V=(x,l)=>{let u=x[0]==="-"?"-":"";if(u)x=x.slice(1),l--;while(x.length<l)x="0"+x;return u?"-"+x:x},w=(x,l,u)=>{x.negatives.sort((uA,cA)=>uA<cA?-1:uA>cA?1:0),x.positives.sort((uA,cA)=>uA<cA?-1:uA>cA?1:0);let CA=l.capture?"":"?:",i="",KA="",HA;if(x.positives.length)i=x.positives.map((uA)=>V(String(uA),u)).join("|");if(x.negatives.length)KA=`-(${CA}${x.negatives.map((uA)=>V(String(uA),u)).join("|")})`;if(i&&KA)HA=`${i}|${KA}`;else HA=i||KA;if(l.wrap)return`(${CA}${HA})`;return HA},g=(x,l,u,CA)=>{if(u)return Y(x,l,{wrap:!1,...CA});let i=String.fromCharCode(x);if(x===l)return i;let KA=String.fromCharCode(l);return`[${i}-${KA}]`},M=(x,l,u)=>{if(Array.isArray(x)){let CA=u.wrap===!0,i=u.capture?"":"?:";return CA?`(${i}${x.join("|")})`:x.join("|")}return Y(x,l,u)},k=(...x)=>RangeError("Invalid range arguments: "+F.inspect(...x)),d=(x,l,u)=>{if(u.strictRanges===!0)throw k([x,l]);return[]},t=(x,l)=>{if(l.strictRanges===!0)throw TypeError(`Expected step "${x}" to be a number`);return[]},m=(x,l,u=1,CA={})=>{let i=Number(x),KA=Number(l);if(!Number.isInteger(i)||!Number.isInteger(KA)){if(CA.strictRanges===!0)throw k([x,l]);return[]}if(i===0)i=0;if(KA===0)KA=0;let HA=i>KA,uA=String(x),cA=String(l),yA=String(u);u=Math.max(Math.abs(u),1);let JA=Z(uA)||Z(cA)||Z(yA),PA=JA?Math.max(uA.length,cA.length,yA.length):0,dA=JA===!1&&X(x,l,CA)===!1,IA=CA.transform||G(dA);if(CA.toRegex&&u===1)return g(V(x,PA),V(l,PA),!0,CA);let kA={negatives:[],positives:[]},DQ=(BA)=>kA[BA<0?"negatives":"positives"].push(Math.abs(BA)),oQ=[],jQ=0;while(HA?i>=KA:i<=KA){if(CA.toRegex===!0&&u>1)DQ(i);else oQ.push($(IA(i,jQ),PA,dA));i=HA?i-u:i+u,jQ++}if(CA.toRegex===!0)return u>1?w(kA,CA,PA):M(oQ,null,{wrap:!1,...CA});return oQ},n=(x,l,u=1,CA={})=>{if(!U(x)&&x.length>1||!U(l)&&l.length>1)return d(x,l,CA);let i=CA.transform||((dA)=>String.fromCharCode(dA)),KA=`${x}`.charCodeAt(0),HA=`${l}`.charCodeAt(0),uA=KA>HA,cA=Math.min(KA,HA),yA=Math.max(KA,HA);if(CA.toRegex&&u===1)return g(cA,yA,!1,CA);let JA=[],PA=0;while(uA?KA>=HA:KA<=HA)JA.push(i(KA,PA)),KA=uA?KA-u:KA+u,PA++;if(CA.toRegex===!0)return M(JA,null,{wrap:!1,options:CA});return JA},QA=(x,l,u,CA={})=>{if(l==null&&N(x))return[x];if(!N(x)||!N(l))return d(x,l,CA);if(typeof u==="function")return QA(x,l,1,{transform:u});if(J(u))return QA(x,l,0,u);let i={...CA};if(i.capture===!0)i.wrap=!0;if(u=u||i.step||1,!U(u)){if(u!=null&&!J(u))return t(u,i);return QA(x,l,1,u)}if(U(x)&&U(l))return m(x,l,u,i);return n(x,l,Math.max(Math.abs(u),1),i)};I.exports=QA},5680:(I)=>{/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/I.exports=function(C){if(typeof C==="number")return C-C===0;if(typeof C==="string"&&C.trim()!=="")return Number.isFinite?Number.isFinite(+C):isFinite(+C);return!1}},1917:(I,C,D)=>{var F=D(1161),Y=D(8866);function J(G,N){return function(){throw Error("Function yaml."+G+" is removed in js-yaml 4. Use yaml."+N+" instead, which is now safe by default.")}}I.exports.Type=D(6073),I.exports.Schema=D(1082),I.exports.FAILSAFE_SCHEMA=D(8562),I.exports.JSON_SCHEMA=D(1035),I.exports.CORE_SCHEMA=D(2011),I.exports.DEFAULT_SCHEMA=D(8759),I.exports.load=F.load,I.exports.loadAll=F.loadAll,I.exports.dump=Y.dump,I.exports.YAMLException=D(8179),I.exports.types={binary:D(7900),float:D(2705),map:D(6150),null:D(721),pairs:D(6860),set:D(9548),timestamp:D(9212),bool:D(4993),int:D(1615),merge:D(6104),omap:D(9046),seq:D(7283),str:D(3619)},I.exports.safeLoad=J("safeLoad","load"),I.exports.safeLoadAll=J("safeLoadAll","loadAll"),I.exports.safeDump=J("safeDump","dump")},6829:(I)=>{function C(N){return typeof N>"u"||N===null}function D(N){return typeof N==="object"&&N!==null}function F(N){if(Array.isArray(N))return N;else if(C(N))return[];return[N]}function Y(N,U){var Z,X,$,V;if(U){V=Object.keys(U);for(Z=0,X=V.length;Z<X;Z+=1)$=V[Z],N[$]=U[$]}return N}function J(N,U){var Z="",X;for(X=0;X<U;X+=1)Z+=N;return Z}function G(N){return N===0&&Number.NEGATIVE_INFINITY===1/N}I.exports.isNothing=C,I.exports.isObject=D,I.exports.toArray=F,I.exports.repeat=J,I.exports.isNegativeZero=G,I.exports.extend=Y},8866:(I,C,D)=>{var F=D(6829),Y=D(8179),J=D(8759),G=Object.prototype.toString,N=Object.prototype.hasOwnProperty,U=65279,Z=9,X=10,$=13,V=32,w=33,g=34,M=35,k=37,d=38,t=39,m=42,n=44,QA=45,x=58,l=61,u=62,CA=63,i=64,KA=91,HA=93,uA=96,cA=123,yA=124,JA=125,PA={};PA[0]="\\0",PA[7]="\\a",PA[8]="\\b",PA[9]="\\t",PA[10]="\\n",PA[11]="\\v",PA[12]="\\f",PA[13]="\\r",PA[27]="\\e",PA[34]="\\\"",PA[92]="\\\\",PA[133]="\\N",PA[160]="\\_",PA[8232]="\\L",PA[8233]="\\P";var dA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],IA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function kA(z,q){var f,v,a,r,$A,ZA,VA;if(q===null)return{};f={},v=Object.keys(q);for(a=0,r=v.length;a<r;a+=1){if($A=v[a],ZA=String(q[$A]),$A.slice(0,2)==="!!")$A="tag:yaml.org,2002:"+$A.slice(2);if(VA=z.compiledTypeMap.fallback[$A],VA&&N.call(VA.styleAliases,ZA))ZA=VA.styleAliases[ZA];f[$A]=ZA}return f}function DQ(z){var q,f,v;if(q=z.toString(16).toUpperCase(),z<=255)f="x",v=2;else if(z<=65535)f="u",v=4;else if(z<=4294967295)f="U",v=8;else throw new Y("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+f+F.repeat("0",v-q.length)+q}var oQ=1,jQ=2;function BA(z){this.schema=z.schema||J,this.indent=Math.max(1,z.indent||2),this.noArrayIndent=z.noArrayIndent||!1,this.skipInvalid=z.skipInvalid||!1,this.flowLevel=F.isNothing(z.flowLevel)?-1:z.flowLevel,this.styleMap=kA(this.schema,z.styles||null),this.sortKeys=z.sortKeys||!1,this.lineWidth=z.lineWidth||80,this.noRefs=z.noRefs||!1,this.noCompatMode=z.noCompatMode||!1,this.condenseFlow=z.condenseFlow||!1,this.quotingType=z.quotingType==='"'?jQ:oQ,this.forceQuotes=z.forceQuotes||!1,this.replacer=typeof z.replacer==="function"?z.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function HB(z,q){var f=F.repeat(" ",q),v=0,a=-1,r="",$A,ZA=z.length;while(v<ZA){if(a=z.indexOf(`
`,v),a===-1)$A=z.slice(v),v=ZA;else $A=z.slice(v,a+1),v=a+1;if($A.length&&$A!==`
`)r+=f;r+=$A}return r}function WQ(z,q){return`
`+F.repeat(" ",z.indent*q)}function NB(z,q){var f,v,a;for(f=0,v=z.implicitTypes.length;f<v;f+=1)if(a=z.implicitTypes[f],a.resolve(q))return!0;return!1}function e(z){return z===V||z===Z}function EA(z){return 32<=z&&z<=126||161<=z&&z<=55295&&z!==8232&&z!==8233||57344<=z&&z<=65533&&z!==U||65536<=z&&z<=1114111}function BQ(z){return EA(z)&&z!==U&&z!==$&&z!==X}function tA(z,q,f){var v=BQ(z),a=v&&!e(z);return(f?v:v&&z!==n&&z!==KA&&z!==HA&&z!==cA&&z!==JA)&&z!==M&&!(q===x&&!a)||BQ(q)&&!e(q)&&z===M||q===x&&a}function iB(z){return EA(z)&&z!==U&&!e(z)&&z!==QA&&z!==CA&&z!==x&&z!==n&&z!==KA&&z!==HA&&z!==cA&&z!==JA&&z!==M&&z!==d&&z!==m&&z!==w&&z!==yA&&z!==l&&z!==u&&z!==t&&z!==g&&z!==k&&z!==i&&z!==uA}function AI(z){return!e(z)&&z!==x}function qQ(z,q){var f=z.charCodeAt(q),v;if(f>=55296&&f<=56319&&q+1<z.length){if(v=z.charCodeAt(q+1),v>=56320&&v<=57343)return(f-55296)*1024+v-56320+65536}return f}function aQ(z){var q=/^\n* /;return q.test(z)}var FC=1,YE=2,jB=3,_A=4,xQ=5;function G0(z,q,f,v,a,r,$A,ZA){var VA,SA=0,hQ=null,rQ=!1,IB=!1,TR=v!==-1,qN=-1,jN=iB(qQ(z,0))&&AI(qQ(z,z.length-1));if(q||$A)for(VA=0;VA<z.length;SA>=65536?VA+=2:VA++){if(SA=qQ(z,VA),!EA(SA))return xQ;jN=jN&&tA(SA,hQ,ZA),hQ=SA}else{for(VA=0;VA<z.length;SA>=65536?VA+=2:VA++){if(SA=qQ(z,VA),SA===X){if(rQ=!0,TR)IB=IB||VA-qN-1>v&&z[qN+1]!==" ",qN=VA}else if(!EA(SA))return xQ;jN=jN&&tA(SA,hQ,ZA),hQ=SA}IB=IB||TR&&(VA-qN-1>v&&z[qN+1]!==" ")}if(!rQ&&!IB){if(jN&&!$A&&!a(z))return FC;return r===jQ?xQ:YE}if(f>9&&aQ(z))return xQ;if(!$A)return IB?_A:jB;return r===jQ?xQ:YE}function wA(z,q,f,v,a){z.dump=function(){if(q.length===0)return z.quotingType===jQ?'""':"''";if(!z.noCompatMode){if(dA.indexOf(q)!==-1||IA.test(q))return z.quotingType===jQ?'"'+q+'"':"'"+q+"'"}var r=z.indent*Math.max(1,f),$A=z.lineWidth===-1?-1:Math.max(Math.min(z.lineWidth,40),z.lineWidth-r),ZA=v||z.flowLevel>-1&&f>=z.flowLevel;function VA(SA){return NB(z,SA)}switch(G0(q,ZA,z.indent,$A,VA,z.quotingType,z.forceQuotes&&!v,a)){case FC:return q;case YE:return"'"+q.replace(/'/g,"''")+"'";case jB:return"|"+VQ(q,z.indent)+W(HB(q,r));case _A:return">"+VQ(q,z.indent)+W(HB(b(q,$A),r));case xQ:return'"'+NA(q,$A)+'"';default:throw new Y("impossible error: invalid scalar style")}}()}function VQ(z,q){var f=aQ(z)?String(q):"",v=z[z.length-1]===`
`,a=v&&(z[z.length-2]===`
`||z===`
`),r=a?"+":v?"":"-";return f+r+`
`}function W(z){return z[z.length-1]===`
`?z.slice(0,-1):z}function b(z,q){var f=/(\n+)([^\n]*)/g,v=function(){var SA=z.indexOf(`
`);return SA=SA!==-1?SA:z.length,f.lastIndex=SA,p(z.slice(0,SA),q)}(),a=z[0]===`
`||z[0]===" ",r,$A;while($A=f.exec(z)){var ZA=$A[1],VA=$A[2];r=VA[0]===" ",v+=ZA+(!a&&!r&&VA!==""?`
`:"")+p(VA,q),a=r}return v}function p(z,q){if(z===""||z[0]===" ")return z;var f=/ [^ ]/g,v,a=0,r,$A=0,ZA=0,VA="";while(v=f.exec(z)){if(ZA=v.index,ZA-a>q)r=$A>a?$A:ZA,VA+=`
`+z.slice(a,r),a=r+1;$A=ZA}if(VA+=`
`,z.length-a>q&&$A>a)VA+=z.slice(a,$A)+`
`+z.slice($A+1);else VA+=z.slice(a);return VA.slice(1)}function NA(z){var q="",f=0,v;for(var a=0;a<z.length;f>=65536?a+=2:a++)if(f=qQ(z,a),v=PA[f],!v&&EA(f)){if(q+=z[a],f>=65536)q+=z[a+1]}else q+=v||DQ(f);return q}function AA(z,q,f){var v="",a=z.tag,r,$A,ZA;for(r=0,$A=f.length;r<$A;r+=1){if(ZA=f[r],z.replacer)ZA=z.replacer.call(f,String(r),ZA);if(j(z,q,ZA,!1,!1)||typeof ZA>"u"&&j(z,q,null,!1,!1)){if(v!=="")v+=","+(!z.condenseFlow?" ":"");v+=z.dump}}z.tag=a,z.dump="["+v+"]"}function LA(z,q,f,v){var a="",r=z.tag,$A,ZA,VA;for($A=0,ZA=f.length;$A<ZA;$A+=1){if(VA=f[$A],z.replacer)VA=z.replacer.call(f,String($A),VA);if(j(z,q+1,VA,!0,!0,!1,!0)||typeof VA>"u"&&j(z,q+1,null,!0,!0,!1,!0)){if(!v||a!=="")a+=WQ(z,q);if(z.dump&&X===z.dump.charCodeAt(0))a+="-";else a+="- ";a+=z.dump}}z.tag=r,z.dump=a||"[]"}function UA(z,q,f){var v="",a=z.tag,r=Object.keys(f),$A,ZA,VA,SA,hQ;for($A=0,ZA=r.length;$A<ZA;$A+=1){if(hQ="",v!=="")hQ+=", ";if(z.condenseFlow)hQ+='"';if(VA=r[$A],SA=f[VA],z.replacer)SA=z.replacer.call(f,VA,SA);if(!j(z,q,VA,!1,!1))continue;if(z.dump.length>1024)hQ+="? ";if(hQ+=z.dump+(z.condenseFlow?'"':"")+":"+(z.condenseFlow?"":" "),!j(z,q,SA,!1,!1))continue;hQ+=z.dump,v+=hQ}z.tag=a,z.dump="{"+v+"}"}function L(z,q,f,v){var a="",r=z.tag,$A=Object.keys(f),ZA,VA,SA,hQ,rQ,IB;if(z.sortKeys===!0)$A.sort();else if(typeof z.sortKeys==="function")$A.sort(z.sortKeys);else if(z.sortKeys)throw new Y("sortKeys must be a boolean or a function");for(ZA=0,VA=$A.length;ZA<VA;ZA+=1){if(IB="",!v||a!=="")IB+=WQ(z,q);if(SA=$A[ZA],hQ=f[SA],z.replacer)hQ=z.replacer.call(f,SA,hQ);if(!j(z,q+1,SA,!0,!0,!0))continue;if(rQ=z.tag!==null&&z.tag!=="?"||z.dump&&z.dump.length>1024,rQ)if(z.dump&&X===z.dump.charCodeAt(0))IB+="?";else IB+="? ";if(IB+=z.dump,rQ)IB+=WQ(z,q);if(!j(z,q+1,hQ,!0,rQ))continue;if(z.dump&&X===z.dump.charCodeAt(0))IB+=":";else IB+=": ";IB+=z.dump,a+=IB}z.tag=r,z.dump=a||"{}"}function H(z,q,f){var v,a,r,$A,ZA,VA;a=f?z.explicitTypes:z.implicitTypes;for(r=0,$A=a.length;r<$A;r+=1)if(ZA=a[r],(ZA.instanceOf||ZA.predicate)&&(!ZA.instanceOf||typeof q==="object"&&q instanceof ZA.instanceOf)&&(!ZA.predicate||ZA.predicate(q))){if(f)if(ZA.multi&&ZA.representName)z.tag=ZA.representName(q);else z.tag=ZA.tag;else z.tag="?";if(ZA.represent){if(VA=z.styleMap[ZA.tag]||ZA.defaultStyle,G.call(ZA.represent)==="[object Function]")v=ZA.represent(q,VA);else if(N.call(ZA.represent,VA))v=ZA.represent[VA](q,VA);else throw new Y("!<"+ZA.tag+'> tag resolver accepts not "'+VA+'" style');z.dump=v}return!0}return!1}function j(z,q,f,v,a,r,$A){if(z.tag=null,z.dump=f,!H(z,f,!1))H(z,f,!0);var ZA=G.call(z.dump),VA=v,SA;if(v)v=z.flowLevel<0||z.flowLevel>q;var hQ=ZA==="[object Object]"||ZA==="[object Array]",rQ,IB;if(hQ)rQ=z.duplicates.indexOf(f),IB=rQ!==-1;if(z.tag!==null&&z.tag!=="?"||IB||z.indent!==2&&q>0)a=!1;if(IB&&z.usedDuplicates[rQ])z.dump="*ref_"+rQ;else{if(hQ&&IB&&!z.usedDuplicates[rQ])z.usedDuplicates[rQ]=!0;if(ZA==="[object Object]"){if(v&&Object.keys(z.dump).length!==0){if(L(z,q,z.dump,a),IB)z.dump="&ref_"+rQ+z.dump}else if(UA(z,q,z.dump),IB)z.dump="&ref_"+rQ+" "+z.dump}else if(ZA==="[object Array]"){if(v&&z.dump.length!==0){if(z.noArrayIndent&&!$A&&q>0)LA(z,q-1,z.dump,a);else LA(z,q,z.dump,a);if(IB)z.dump="&ref_"+rQ+z.dump}else if(AA(z,q,z.dump),IB)z.dump="&ref_"+rQ+" "+z.dump}else if(ZA==="[object String]"){if(z.tag!=="?")wA(z,z.dump,q,r,VA)}else if(ZA==="[object Undefined]")return!1;else{if(z.skipInvalid)return!1;throw new Y("unacceptable kind of an object to dump "+ZA)}if(z.tag!==null&&z.tag!=="?"){if(SA=encodeURI(z.tag[0]==="!"?z.tag.slice(1):z.tag).replace(/!/g,"%21"),z.tag[0]==="!")SA="!"+SA;else if(SA.slice(0,18)==="tag:yaml.org,2002:")SA="!!"+SA.slice(18);else SA="!<"+SA+">";z.dump=SA+" "+z.dump}}return!0}function h(z,q){var f=[],v=[],a,r;P(z,f,v);for(a=0,r=v.length;a<r;a+=1)q.duplicates.push(f[v[a]]);q.usedDuplicates=Array(r)}function P(z,q,f){var v,a,r;if(z!==null&&typeof z==="object")if(a=q.indexOf(z),a!==-1){if(f.indexOf(a)===-1)f.push(a)}else if(q.push(z),Array.isArray(z))for(a=0,r=z.length;a<r;a+=1)P(z[a],q,f);else{v=Object.keys(z);for(a=0,r=v.length;a<r;a+=1)P(z[v[a]],q,f)}}function S(z,q){q=q||{};var f=new BA(q);if(!f.noRefs)h(z,f);var v=z;if(f.replacer)v=f.replacer.call({"":v},"",v);if(j(f,0,v,!0,!0))return f.dump+`
`;return""}I.exports.dump=S},8179:(I)=>{function C(F,Y){var J="",G=F.reason||"(unknown reason)";if(!F.mark)return G;if(F.mark.name)J+='in "'+F.mark.name+'" ';if(J+="("+(F.mark.line+1)+":"+(F.mark.column+1)+")",!Y&&F.mark.snippet)J+=`
`+F.mark.snippet;return G+" "+J}function D(F,Y){if(Error.call(this),this.name="YAMLException",this.reason=F,this.mark=Y,this.message=C(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D.prototype.toString=function(Y){return this.name+": "+C(this,Y)},I.exports=D},1161:(I,C,D)=>{var F=D(6829),Y=D(8179),J=D(6975),G=D(8759),N=Object.prototype.hasOwnProperty,U=1,Z=2,X=3,$=4,V=1,w=2,g=3,M=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,k=/[\x85\u2028\u2029]/,d=/[,\[\]\{\}]/,t=/^(?:!|!!|![a-z\-]+!)$/i,m=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function n(W){return Object.prototype.toString.call(W)}function QA(W){return W===10||W===13}function x(W){return W===9||W===32}function l(W){return W===9||W===32||W===10||W===13}function u(W){return W===44||W===91||W===93||W===123||W===125}function CA(W){var b;if(48<=W&&W<=57)return W-48;if(b=W|32,97<=b&&b<=102)return b-97+10;return-1}function i(W){if(W===120)return 2;if(W===117)return 4;if(W===85)return 8;return 0}function KA(W){if(48<=W&&W<=57)return W-48;return-1}function HA(W){return W===48?"\x00":W===97?"\x07":W===98?"\b":W===116?"\t":W===9?"\t":W===110?`
`:W===118?"\v":W===102?"\f":W===114?"\r":W===101?"\x1B":W===32?" ":W===34?'"':W===47?"/":W===92?"\\":W===78?"…":W===95?" ":W===76?"\u2028":W===80?"\u2029":""}function uA(W){if(W<=65535)return String.fromCharCode(W);return String.fromCharCode((W-65536>>10)+55296,(W-65536&1023)+56320)}var cA=Array(256),yA=Array(256);for(var JA=0;JA<256;JA++)cA[JA]=HA(JA)?1:0,yA[JA]=HA(JA);function PA(W,b){this.input=W,this.filename=b.filename||null,this.schema=b.schema||G,this.onWarning=b.onWarning||null,this.legacy=b.legacy||!1,this.json=b.json||!1,this.listener=b.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=W.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function dA(W,b){var p={name:W.filename,buffer:W.input.slice(0,-1),position:W.position,line:W.line,column:W.position-W.lineStart};return p.snippet=J(p),new Y(b,p)}function IA(W,b){throw dA(W,b)}function kA(W,b){if(W.onWarning)W.onWarning.call(null,dA(W,b))}var DQ={YAML:function(b,p,NA){var AA,LA,UA;if(b.version!==null)IA(b,"duplication of %YAML directive");if(NA.length!==1)IA(b,"YAML directive accepts exactly one argument");if(AA=/^([0-9]+)\.([0-9]+)$/.exec(NA[0]),AA===null)IA(b,"ill-formed argument of the YAML directive");if(LA=parseInt(AA[1],10),UA=parseInt(AA[2],10),LA!==1)IA(b,"unacceptable YAML version of the document");if(b.version=NA[0],b.checkLineBreaks=UA<2,UA!==1&&UA!==2)kA(b,"unsupported YAML version of the document")},TAG:function(b,p,NA){var AA,LA;if(NA.length!==2)IA(b,"TAG directive accepts exactly two arguments");if(AA=NA[0],LA=NA[1],!t.test(AA))IA(b,"ill-formed tag handle (first argument) of the TAG directive");if(N.call(b.tagMap,AA))IA(b,'there is a previously declared suffix for "'+AA+'" tag handle');if(!m.test(LA))IA(b,"ill-formed tag prefix (second argument) of the TAG directive");try{LA=decodeURIComponent(LA)}catch(UA){IA(b,"tag prefix is malformed: "+LA)}b.tagMap[AA]=LA}};function oQ(W,b,p,NA){var AA,LA,UA,L;if(b<p){if(L=W.input.slice(b,p),NA){for(AA=0,LA=L.length;AA<LA;AA+=1)if(UA=L.charCodeAt(AA),!(UA===9||32<=UA&&UA<=1114111))IA(W,"expected valid JSON character")}else if(M.test(L))IA(W,"the stream contains non-printable characters");W.result+=L}}function jQ(W,b,p,NA){var AA,LA,UA,L;if(!F.isObject(p))IA(W,"cannot merge mappings; the provided source object is unacceptable");AA=Object.keys(p);for(UA=0,L=AA.length;UA<L;UA+=1)if(LA=AA[UA],!N.call(b,LA))b[LA]=p[LA],NA[LA]=!0}function BA(W,b,p,NA,AA,LA,UA,L,H){var j,h;if(Array.isArray(AA)){AA=Array.prototype.slice.call(AA);for(j=0,h=AA.length;j<h;j+=1){if(Array.isArray(AA[j]))IA(W,"nested arrays are not supported inside keys");if(typeof AA==="object"&&n(AA[j])==="[object Object]")AA[j]="[object Object]"}}if(typeof AA==="object"&&n(AA)==="[object Object]")AA="[object Object]";if(AA=String(AA),b===null)b={};if(NA==="tag:yaml.org,2002:merge")if(Array.isArray(LA))for(j=0,h=LA.length;j<h;j+=1)jQ(W,b,LA[j],p);else jQ(W,b,LA,p);else{if(!W.json&&!N.call(p,AA)&&N.call(b,AA))W.line=UA||W.line,W.lineStart=L||W.lineStart,W.position=H||W.position,IA(W,"duplicated mapping key");if(AA==="__proto__")Object.defineProperty(b,AA,{configurable:!0,enumerable:!0,writable:!0,value:LA});else b[AA]=LA;delete p[AA]}return b}function HB(W){var b=W.input.charCodeAt(W.position);if(b===10)W.position++;else if(b===13){if(W.position++,W.input.charCodeAt(W.position)===10)W.position++}else IA(W,"a line break is expected");W.line+=1,W.lineStart=W.position,W.firstTabInLine=-1}function WQ(W,b,p){var NA=0,AA=W.input.charCodeAt(W.position);while(AA!==0){while(x(AA)){if(AA===9&&W.firstTabInLine===-1)W.firstTabInLine=W.position;AA=W.input.charCodeAt(++W.position)}if(b&&AA===35)do AA=W.input.charCodeAt(++W.position);while(AA!==10&&AA!==13&&AA!==0);if(QA(AA)){HB(W),AA=W.input.charCodeAt(W.position),NA++,W.lineIndent=0;while(AA===32)W.lineIndent++,AA=W.input.charCodeAt(++W.position)}else break}if(p!==-1&&NA!==0&&W.lineIndent<p)kA(W,"deficient indentation");return NA}function NB(W){var b=W.position,p;if(p=W.input.charCodeAt(b),(p===45||p===46)&&p===W.input.charCodeAt(b+1)&&p===W.input.charCodeAt(b+2)){if(b+=3,p=W.input.charCodeAt(b),p===0||l(p))return!0}return!1}function e(W,b){if(b===1)W.result+=" ";else if(b>1)W.result+=F.repeat(`
`,b-1)}function EA(W,b,p){var NA,AA,LA,UA,L,H,j,h,P=W.kind,S=W.result,z;if(z=W.input.charCodeAt(W.position),l(z)||u(z)||z===35||z===38||z===42||z===33||z===124||z===62||z===39||z===34||z===37||z===64||z===96)return!1;if(z===63||z===45){if(AA=W.input.charCodeAt(W.position+1),l(AA)||p&&u(AA))return!1}W.kind="scalar",W.result="",LA=UA=W.position,L=!1;while(z!==0){if(z===58){if(AA=W.input.charCodeAt(W.position+1),l(AA)||p&&u(AA))break}else if(z===35){if(NA=W.input.charCodeAt(W.position-1),l(NA))break}else if(W.position===W.lineStart&&NB(W)||p&&u(z))break;else if(QA(z))if(H=W.line,j=W.lineStart,h=W.lineIndent,WQ(W,!1,-1),W.lineIndent>=b){L=!0,z=W.input.charCodeAt(W.position);continue}else{W.position=UA,W.line=H,W.lineStart=j,W.lineIndent=h;break}if(L)oQ(W,LA,UA,!1),e(W,W.line-H),LA=UA=W.position,L=!1;if(!x(z))UA=W.position+1;z=W.input.charCodeAt(++W.position)}if(oQ(W,LA,UA,!1),W.result)return!0;return W.kind=P,W.result=S,!1}function BQ(W,b){var p,NA,AA;if(p=W.input.charCodeAt(W.position),p!==39)return!1;W.kind="scalar",W.result="",W.position++,NA=AA=W.position;while((p=W.input.charCodeAt(W.position))!==0)if(p===39)if(oQ(W,NA,W.position,!0),p=W.input.charCodeAt(++W.position),p===39)NA=W.position,W.position++,AA=W.position;else return!0;else if(QA(p))oQ(W,NA,AA,!0),e(W,WQ(W,!1,b)),NA=AA=W.position;else if(W.position===W.lineStart&&NB(W))IA(W,"unexpected end of the document within a single quoted scalar");else W.position++,AA=W.position;IA(W,"unexpected end of the stream within a single quoted scalar")}function tA(W,b){var p,NA,AA,LA,UA,L;if(L=W.input.charCodeAt(W.position),L!==34)return!1;W.kind="scalar",W.result="",W.position++,p=NA=W.position;while((L=W.input.charCodeAt(W.position))!==0)if(L===34)return oQ(W,p,W.position,!0),W.position++,!0;else if(L===92){if(oQ(W,p,W.position,!0),L=W.input.charCodeAt(++W.position),QA(L))WQ(W,!1,b);else if(L<256&&cA[L])W.result+=yA[L],W.position++;else if((UA=i(L))>0){AA=UA,LA=0;for(;AA>0;AA--)if(L=W.input.charCodeAt(++W.position),(UA=CA(L))>=0)LA=(LA<<4)+UA;else IA(W,"expected hexadecimal character");W.result+=uA(LA),W.position++}else IA(W,"unknown escape sequence");p=NA=W.position}else if(QA(L))oQ(W,p,NA,!0),e(W,WQ(W,!1,b)),p=NA=W.position;else if(W.position===W.lineStart&&NB(W))IA(W,"unexpected end of the document within a double quoted scalar");else W.position++,NA=W.position;IA(W,"unexpected end of the stream within a double quoted scalar")}function iB(W,b){var p=!0,NA,AA,LA,UA=W.tag,L,H=W.anchor,j,h,P,S,z,q=Object.create(null),f,v,a,r;if(r=W.input.charCodeAt(W.position),r===91)h=93,z=!1,L=[];else if(r===123)h=125,z=!0,L={};else return!1;if(W.anchor!==null)W.anchorMap[W.anchor]=L;r=W.input.charCodeAt(++W.position);while(r!==0){if(WQ(W,!0,b),r=W.input.charCodeAt(W.position),r===h)return W.position++,W.tag=UA,W.anchor=H,W.kind=z?"mapping":"sequence",W.result=L,!0;else if(!p)IA(W,"missed comma between flow collection entries");else if(r===44)IA(W,"expected the node content, but found ','");if(v=f=a=null,P=S=!1,r===63){if(j=W.input.charCodeAt(W.position+1),l(j))P=S=!0,W.position++,WQ(W,!0,b)}if(NA=W.line,AA=W.lineStart,LA=W.position,_A(W,b,U,!1,!0),v=W.tag,f=W.result,WQ(W,!0,b),r=W.input.charCodeAt(W.position),(S||W.line===NA)&&r===58)P=!0,r=W.input.charCodeAt(++W.position),WQ(W,!0,b),_A(W,b,U,!1,!0),a=W.result;if(z)BA(W,L,q,v,f,a,NA,AA,LA);else if(P)L.push(BA(W,null,q,v,f,a,NA,AA,LA));else L.push(f);if(WQ(W,!0,b),r=W.input.charCodeAt(W.position),r===44)p=!0,r=W.input.charCodeAt(++W.position);else p=!1}IA(W,"unexpected end of the stream within a flow collection")}function AI(W,b){var p,NA,AA=V,LA=!1,UA=!1,L=b,H=0,j=!1,h,P;if(P=W.input.charCodeAt(W.position),P===124)NA=!1;else if(P===62)NA=!0;else return!1;W.kind="scalar",W.result="";while(P!==0)if(P=W.input.charCodeAt(++W.position),P===43||P===45)if(V===AA)AA=P===43?g:w;else IA(W,"repeat of a chomping mode identifier");else if((h=KA(P))>=0)if(h===0)IA(W,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!UA)L=b+h-1,UA=!0;else IA(W,"repeat of an indentation width identifier");else break;if(x(P)){do P=W.input.charCodeAt(++W.position);while(x(P));if(P===35)do P=W.input.charCodeAt(++W.position);while(!QA(P)&&P!==0)}while(P!==0){HB(W),W.lineIndent=0,P=W.input.charCodeAt(W.position);while((!UA||W.lineIndent<L)&&P===32)W.lineIndent++,P=W.input.charCodeAt(++W.position);if(!UA&&W.lineIndent>L)L=W.lineIndent;if(QA(P)){H++;continue}if(W.lineIndent<L){if(AA===g)W.result+=F.repeat(`
`,LA?1+H:H);else if(AA===V){if(LA)W.result+=`
`}break}if(NA)if(x(P))j=!0,W.result+=F.repeat(`
`,LA?1+H:H);else if(j)j=!1,W.result+=F.repeat(`
`,H+1);else if(H===0){if(LA)W.result+=" "}else W.result+=F.repeat(`
`,H);else W.result+=F.repeat(`
`,LA?1+H:H);LA=!0,UA=!0,H=0,p=W.position;while(!QA(P)&&P!==0)P=W.input.charCodeAt(++W.position);oQ(W,p,W.position,!1)}return!0}function qQ(W,b){var p,NA=W.tag,AA=W.anchor,LA=[],UA,L=!1,H;if(W.firstTabInLine!==-1)return!1;if(W.anchor!==null)W.anchorMap[W.anchor]=LA;H=W.input.charCodeAt(W.position);while(H!==0){if(W.firstTabInLine!==-1)W.position=W.firstTabInLine,IA(W,"tab characters must not be used in indentation");if(H!==45)break;if(UA=W.input.charCodeAt(W.position+1),!l(UA))break;if(L=!0,W.position++,WQ(W,!0,-1)){if(W.lineIndent<=b){LA.push(null),H=W.input.charCodeAt(W.position);continue}}if(p=W.line,_A(W,b,X,!1,!0),LA.push(W.result),WQ(W,!0,-1),H=W.input.charCodeAt(W.position),(W.line===p||W.lineIndent>b)&&H!==0)IA(W,"bad indentation of a sequence entry");else if(W.lineIndent<b)break}if(L)return W.tag=NA,W.anchor=AA,W.kind="sequence",W.result=LA,!0;return!1}function aQ(W,b,p){var NA,AA,LA,UA,L,H,j=W.tag,h=W.anchor,P={},S=Object.create(null),z=null,q=null,f=null,v=!1,a=!1,r;if(W.firstTabInLine!==-1)return!1;if(W.anchor!==null)W.anchorMap[W.anchor]=P;r=W.input.charCodeAt(W.position);while(r!==0){if(!v&&W.firstTabInLine!==-1)W.position=W.firstTabInLine,IA(W,"tab characters must not be used in indentation");if(NA=W.input.charCodeAt(W.position+1),LA=W.line,(r===63||r===58)&&l(NA)){if(r===63){if(v)BA(W,P,S,z,q,null,UA,L,H),z=q=f=null;a=!0,v=!0,AA=!0}else if(v)v=!1,AA=!0;else IA(W,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");W.position+=1,r=NA}else{if(UA=W.line,L=W.lineStart,H=W.position,!_A(W,p,Z,!1,!0))break;if(W.line===LA){r=W.input.charCodeAt(W.position);while(x(r))r=W.input.charCodeAt(++W.position);if(r===58){if(r=W.input.charCodeAt(++W.position),!l(r))IA(W,"a whitespace character is expected after the key-value separator within a block mapping");if(v)BA(W,P,S,z,q,null,UA,L,H),z=q=f=null;a=!0,v=!1,AA=!1,z=W.tag,q=W.result}else if(a)IA(W,"can not read an implicit mapping pair; a colon is missed");else return W.tag=j,W.anchor=h,!0}else if(a)IA(W,"can not read a block mapping entry; a multiline key may not be an implicit key");else return W.tag=j,W.anchor=h,!0}if(W.line===LA||W.lineIndent>b){if(v)UA=W.line,L=W.lineStart,H=W.position;if(_A(W,b,$,!0,AA))if(v)q=W.result;else f=W.result;if(!v)BA(W,P,S,z,q,f,UA,L,H),z=q=f=null;WQ(W,!0,-1),r=W.input.charCodeAt(W.position)}if((W.line===LA||W.lineIndent>b)&&r!==0)IA(W,"bad indentation of a mapping entry");else if(W.lineIndent<b)break}if(v)BA(W,P,S,z,q,null,UA,L,H);if(a)W.tag=j,W.anchor=h,W.kind="mapping",W.result=P;return a}function FC(W){var b,p=!1,NA=!1,AA,LA,UA;if(UA=W.input.charCodeAt(W.position),UA!==33)return!1;if(W.tag!==null)IA(W,"duplication of a tag property");if(UA=W.input.charCodeAt(++W.position),UA===60)p=!0,UA=W.input.charCodeAt(++W.position);else if(UA===33)NA=!0,AA="!!",UA=W.input.charCodeAt(++W.position);else AA="!";if(b=W.position,p){do UA=W.input.charCodeAt(++W.position);while(UA!==0&&UA!==62);if(W.position<W.length)LA=W.input.slice(b,W.position),UA=W.input.charCodeAt(++W.position);else IA(W,"unexpected end of the stream within a verbatim tag")}else{while(UA!==0&&!l(UA)){if(UA===33)if(!NA){if(AA=W.input.slice(b-1,W.position+1),!t.test(AA))IA(W,"named tag handle cannot contain such characters");NA=!0,b=W.position+1}else IA(W,"tag suffix cannot contain exclamation marks");UA=W.input.charCodeAt(++W.position)}if(LA=W.input.slice(b,W.position),d.test(LA))IA(W,"tag suffix cannot contain flow indicator characters")}if(LA&&!m.test(LA))IA(W,"tag name cannot contain such characters: "+LA);try{LA=decodeURIComponent(LA)}catch(L){IA(W,"tag name is malformed: "+LA)}if(p)W.tag=LA;else if(N.call(W.tagMap,AA))W.tag=W.tagMap[AA]+LA;else if(AA==="!")W.tag="!"+LA;else if(AA==="!!")W.tag="tag:yaml.org,2002:"+LA;else IA(W,'undeclared tag handle "'+AA+'"');return!0}function YE(W){var b,p;if(p=W.input.charCodeAt(W.position),p!==38)return!1;if(W.anchor!==null)IA(W,"duplication of an anchor property");p=W.input.charCodeAt(++W.position),b=W.position;while(p!==0&&!l(p)&&!u(p))p=W.input.charCodeAt(++W.position);if(W.position===b)IA(W,"name of an anchor node must contain at least one character");return W.anchor=W.input.slice(b,W.position),!0}function jB(W){var b,p,NA;if(NA=W.input.charCodeAt(W.position),NA!==42)return!1;NA=W.input.charCodeAt(++W.position),b=W.position;while(NA!==0&&!l(NA)&&!u(NA))NA=W.input.charCodeAt(++W.position);if(W.position===b)IA(W,"name of an alias node must contain at least one character");if(p=W.input.slice(b,W.position),!N.call(W.anchorMap,p))IA(W,'unidentified alias "'+p+'"');return W.result=W.anchorMap[p],WQ(W,!0,-1),!0}function _A(W,b,p,NA,AA){var LA,UA,L,H=1,j=!1,h=!1,P,S,z,q,f,v;if(W.listener!==null)W.listener("open",W);if(W.tag=null,W.anchor=null,W.kind=null,W.result=null,LA=UA=L=$===p||X===p,NA){if(WQ(W,!0,-1)){if(j=!0,W.lineIndent>b)H=1;else if(W.lineIndent===b)H=0;else if(W.lineIndent<b)H=-1}}if(H===1)while(FC(W)||YE(W))if(WQ(W,!0,-1)){if(j=!0,L=LA,W.lineIndent>b)H=1;else if(W.lineInden Line truncated
`;if(W.charCodeAt(0)===65279)W=W.slice(1)}var p=new PA(W,b),NA=W.indexOf("\x00");if(NA!==-1)p.position=NA,IA(p,"null byte is not allowed in input");p.input+="\x00";while(p.input.charCodeAt(p.position)===32)p.lineIndent+=1,p.position+=1;while(p.position<p.length-1)xQ(p);return p.documents}function wA(W,b,p){if(b!==null&&typeof b==="object"&&typeof p>"u")p=b,b=null;var NA=G0(W,p);if(typeof b!=="function")return NA;for(var AA=0,LA=NA.length;AA<LA;AA+=1)b(NA[AA])}function VQ(W,b){var p=G0(W,b);if(p.length===0)return;else if(p.length===1)return p[0];throw new Y("expected a single document in the stream, but found more")}I.exports.loadAll=wA,I.exports.load=VQ},1082:(I,C,D)=>{var F=D(8179),Y=D(6073);function J(U,Z){var X=[];return U[Z].forEach(function($){var V=X.length;X.forEach(function(w,g){if(w.tag===$.tag&&w.kind===$.kind&&w.multi===$.multi)V=g}),X[V]=$}),X}function G(){var U={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},Z,X;function $(V){if(V.multi)U.multi[V.kind].push(V),U.multi.fallback.push(V);else U[V.kind][V.tag]=U.fallback[V.tag]=V}for(Z=0,X=arguments.length;Z<X;Z+=1)arguments[Z].forEach($);return U}function N(U){return this.extend(U)}N.prototype.extend=function(Z){var X=[],$=[];if(Z instanceof Y)$.push(Z);else if(Array.isArray(Z))$=$.concat(Z);else if(Z&&(Array.isArray(Z.implicit)||Array.isArray(Z.explicit))){if(Z.implicit)X=X.concat(Z.implicit);if(Z.explicit)$=$.concat(Z.explicit)}else throw new F("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");X.forEach(function(w){if(!(w instanceof Y))throw new F("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(w.loadKind&&w.loadKind!=="scalar")throw new F("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(w.multi)throw new F("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),$.forEach(function(w){if(!(w instanceof Y))throw new F("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var V=Object.create(N.prototype);return V.implicit=(this.implicit||[]).concat(X),V.explicit=(this.explicit||[]).concat($),V.compiledImplicit=J(V,"implicit"),V.compiledExplicit=J(V,"explicit"),V.compiledTypeMap=G(V.compiledImplicit,V.compiledExplicit),V},I.exports=N},2011:(I,C,D)=>{I.exports=D(1035)},8759:(I,C,D)=>{I.exports=D(2011).extend({implicit:[D(9212),D(6104)],explicit:[D(7900),D(9046),D(6860),D(9548)]})},8562:(I,C,D)=>{var F=D(1082);I.exports=new F({explicit:[D(3619),D(7283),D(6150)]})},1035:(I,C,D)=>{I.exports=D(8562).extend({implicit:[D(721),D(4993),D(1615),D(2705)]})},6975:(I,C,D)=>{var F=D(6829);function Y(N,U,Z,X,$){var V="",w="",g=Math.floor($/2)-1;if(X-U>g)V=" ... ",U=X-g+V.length;if(Z-X>g)w=" ...",Z=X+g-w.length;return{str:V+N.slice(U,Z).replace(/\t/g,"→")+w,pos:X-U+V.length}}function J(N,U){return F.repeat(" ",U-N.length)+N}function G(N,U){if(U=Object.create(U||null),!N.buffer)return null;if(!U.maxLength)U.maxLength=79;if(typeof U.indent!=="number")U.indent=1;if(typeof U.linesBefore!=="number")U.linesBefore=3;if(typeof U.linesAfter!=="number")U.linesAfter=2;var Z=/\r?\n|\r|\0/g,X=[0],$=[],V,w=-1;while(V=Z.exec(N.buffer))if($.push(V.index),X.push(V.index+V[0].length),N.position<=V.index&&w<0)w=X.length-2;if(w<0)w=X.length-1;var g="",M,k,d=Math.min(N.line+U.linesAfter,$.length).toString().length,t=U.maxLength-(U.indent+d+3);for(M=1;M<=U.linesBefore;M++){if(w-M<0)break;k=Y(N.buffer,X[w-M],$[w-M],N.position-(X[w]-X[w-M]),t),g=F.repeat(" ",U.indent)+J((N.line-M+1).toString(),d)+" | "+k.str+`
`+g}k=Y(N.buffer,X[w],$[w],N.position,t),g+=F.repeat(" ",U.indent)+J((N.line+1).toString(),d)+" | "+k.str+`
`,g+=F.repeat("-",U.indent+d+3+k.pos)+`^
`;for(M=1;M<=U.linesAfter;M++){if(w+M>=$.length)break;k=Y(N.buffer,X[w+M],$[w+M],N.position-(X[w]-X[w+M]),t),g+=F.repeat(" ",U.indent)+J((N.line+M+1).toString(),d)+" | "+k.str+`
`}return g.replace(/\n$/,"")}I.exports=G},6073:(I,C,D)=>{var F=D(8179),Y=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],J=["scalar","sequence","mapping"];function G(U){var Z={};if(U!==null)Object.keys(U).forEach(function(X){U[X].forEach(function($){Z[String($)]=X})});return Z}function N(U,Z){if(Z=Z||{},Object.keys(Z).forEach(function(X){if(Y.indexOf(X)===-1)throw new F('Unknown option "'+X+'" is met in definition of "'+U+'" YAML type.')}),this.options=Z,this.tag=U,this.kind=Z.kind||null,this.resolve=Z.resolve||function(){return!0},this.construct=Z.construct||function(X){return X},this.instanceOf=Z.instanceOf||null,this.predicate=Z.predicate||null,this.represent=Z.represent||null,this.representName=Z.representName||null,this.defaultStyle=Z.defaultStyle||null,this.multi=Z.multi||!1,this.styleAliases=G(Z.styleAliases||null),J.indexOf(this.kind)===-1)throw new F('Unknown kind "'+this.kind+'" is specified for "'+U+'" YAML type.')}I.exports=N},7900:(I,C,D)=>{var F=D(6073),Y=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function J(Z){if(Z===null)return!1;var X,$,V=0,w=Z.length,g=Y;for($=0;$<w;$++){if(X=g.indexOf(Z.charAt($)),X>64)continue;if(X<0)return!1;V+=6}return V%8===0}function G(Z){var X,$,V=Z.replace(/[\r\n=]/g,""),w=V.length,g=Y,M=0,k=[];for(X=0;X<w;X++){if(X%4===0&&X)k.push(M>>16&255),k.push(M>>8&255),k.push(M&255);M=M<<6|g.indexOf(V.charAt(X))}if($=w%4*6,$===0)k.push(M>>16&255),k.push(M>>8&255),k.push(M&255);else if($===18)k.push(M>>10&255),k.push(M>>2&255);else if($===12)k.push(M>>4&255);return new Uint8Array(k)}function N(Z){var X="",$=0,V,w,g=Z.length,M=Y;for(V=0;V<g;V++){if(V%3===0&&V)X+=M[$>>18&63],X+=M[$>>12&63],X+=M[$>>6&63],X+=M[$&63];$=($<<8)+Z[V]}if(w=g%3,w===0)X+=M[$>>18&63],X+=M[$>>12&63],X+=M[$>>6&63],X+=M[$&63];else if(w===2)X+=M[$>>10&63],X+=M[$>>4&63],X+=M[$<<2&63],X+=M[64];else if(w===1)X+=M[$>>2&63],X+=M[$<<4&63],X+=M[64],X+=M[64];return X}function U(Z){return Object.prototype.toString.call(Z)==="[object Uint8Array]"}I.exports=new F("tag:yaml.org,2002:binary",{kind:"scalar",resolve:J,construct:G,predicate:U,represent:N})},4993:(I,C,D)=>{var F=D(6073);function Y(N){if(N===null)return!1;var U=N.length;return U===4&&(N==="true"||N==="True"||N==="TRUE")||U===5&&(N==="false"||N==="False"||N==="FALSE")}function J(N){return N==="true"||N==="True"||N==="TRUE"}function G(N){return Object.prototype.toString.call(N)==="[object Boolean]"}I.exports=new F("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Y,construct:J,predicate:G,represent:{lowercase:function(N){return N?"true":"false"},uppercase:function(N){return N?"TRUE":"FALSE"},camelcase:function(N){return N?"True":"False"}},defaultStyle:"lowercase"})},2705:(I,C,D)=>{var F=D(6829),Y=D(6073),J=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function G($){if($===null)return!1;if(!J.test($)||$[$.length-1]==="_")return!1;return!0}function N($){var V,w;if(V=$.replace(/_/g,"").toLowerCase(),w=V[0]==="-"?-1:1,"+-".indexOf(V[0])>=0)V=V.slice(1);if(V===".inf")return w===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(V===".nan")return NaN;return w*parseFloat(V,10)}var U=/^[-+]?[0-9]+e/;function Z($,V){var w;if(isNaN($))switch(V){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(V){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(V){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(F.isNegativeZero($))return"-0.0";return w=$.toString(10),U.test(w)?w.replace("e",".e"):w}function X($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||F.isNegativeZero($))}I.exports=new Y("tag:yaml.org,2002:float",{kind:"scalar",resolve:G,construct:N,predicate:X,represent:Z,defaultStyle:"lowercase"})},1615:(I,C,D)=>{var F=D(6829),Y=D(6073);function J($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function G($){return 48<=$&&$<=55}function N($){return 48<=$&&$<=57}function U($){if($===null)return!1;var V=$.length,w=0,g=!1,M;if(!V)return!1;if(M=$[w],M==="-"||M==="+")M=$[++w];if(M==="0"){if(w+1===V)return!0;if(M=$[++w],M==="b"){w++;for(;w<V;w++){if(M=$[w],M==="_")continue;if(M!=="0"&&M!=="1")return!1;g=!0}return g&&M!=="_"}if(M==="x"){w++;for(;w<V;w++){if(M=$[w],M==="_")continue;if(!J($.charCodeAt(w)))return!1;g=!0}return g&&M!=="_"}if(M==="o"){w++;for(;w<V;w++){if(M=$[w],M==="_")continue;if(!G($.charCodeAt(w)))return!1;g=!0}return g&&M!=="_"}}if(M==="_")return!1;for(;w<V;w++){if(M=$[w],M==="_")continue;if(!N($.charCodeAt(w)))return!1;g=!0}if(!g||M==="_")return!1;return!0}function Z($){var V=$,w=1,g;if(V.indexOf("_")!==-1)V=V.replace(/_/g,"");if(g=V[0],g==="-"||g==="+"){if(g==="-")w=-1;V=V.slice(1),g=V[0]}if(V==="0")return 0;if(g==="0"){if(V[1]==="b")return w*parseInt(V.slice(2),2);if(V[1]==="x")return w*parseInt(V.slice(2),16);if(V[1]==="o")return w*parseInt(V.slice(2),8)}return w*parseInt(V,10)}function X($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!F.isNegativeZero($))}I.exports=new Y("tag:yaml.org,2002:int",{kind:"scalar",resolve:U,construct:Z,predicate:X,represent:{binary:function($){return $>=0?"0b"+$.toString(2):"-0b"+$.toString(2).slice(1)},octal:function($){return $>=0?"0o"+$.toString(8):"-0o"+$.toString(8).slice(1)},decimal:function($){return $.toString(10)},hexadecimal:function($){return $>=0?"0x"+$.toString(16).toUpperCase():"-0x"+$.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(I,C,D)=>{var F=D(6073);I.exports=new F("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Y){return Y!==null?Y:{}}})},6104:(I,C,D)=>{var F=D(6073);function Y(J){return J==="<<"||J===null}I.exports=new F("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Y})},721:(I,C,D)=>{var F=D(6073);function Y(N){if(N= Line truncated
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*/let F=D(5680),Y=(m,n,QA)=>{if(F(m)===!1)throw TypeError("toRegexRange: expected the first argument to be a number");if(n===void 0||m===n)return String(m);if(F(n)===!1)throw TypeError("toRegexRange: expected the second argument to be a number.");let x={relaxZeros:!0,...QA};if(typeof x.strictZeros==="boolean")x.relaxZeros=x.strictZeros===!1;let l=String(x.relaxZeros),u=String(x.shorthand),CA=String(x.capture),i=String(x.wrap),KA=m+":"+n+"="+l+u+CA+i;if(Y.cache.hasOwnProperty(KA))return Y.cache[KA].result;let HA=Math.min(m,n),uA=Math.max(m,n);if(Math.abs(HA-uA)===1){let dA=m+"|"+n;if(x.capture)return`(${dA})`;if(x.wrap===!1)return dA;return`(?:${dA})`}let cA=d(m)||d(n),yA={min:m,max:n,a:HA,b:uA},JA=[],PA=[];if(cA)yA.isPadded=cA,yA.maxLen=String(yA.max).length;if(HA<0){let dA=uA<0?Math.abs(uA):1;PA=U(dA,Math.abs(HA),yA,x),HA=yA.a=0}if(uA>=0)JA=U(HA,uA,yA,x);if(yA.negatives=PA,yA.positives=JA,yA.result=J(PA,JA,x),x.capture===!0)yA.result=`(${yA.result})`;else if(x.wrap!==!1&&JA.length+PA.length>1)yA.result=`(?:${yA.result})`;return Y.cache[KA]=yA,yA.result};function J(m,n,QA){let x=Z(m,n,"-",!1,QA)||[],l=Z(n,m,"",!1,QA)||[],u=Z(m,n,"-?",!0,QA)||[];return x.concat(u).concat(l).join("|")}function G(m,n){let QA=1,x=1,l=w(m,QA),u=new Set([n]);while(m<=l&&l<=n)u.add(l),QA+=1,l=w(m,QA);l=g(n+1,x)-1;while(m<l&&l<=n)u.add(l),x+=1,l=g(n+1,x)-1;return u=[...u],u.sort($),u}function N(m,n,QA){if(m===n)return{pattern:m,count:[],digits:0};let x=X(m,n),l=x.length,u="",CA=0;for(let i=0;i<l;i++){let[KA,HA]=x[i];if(KA===HA)u+=KA;else if(KA!=="0"||HA!=="9")u+=k(KA,HA,QA);else CA++}if(CA)u+=QA.shorthand===!0?"\\d":"[0-9]";return{pattern:u,count:[CA],digits:l}}function U(m,n,QA,x){let l=G(m,n),u=[],CA=m,i;for(let KA=0;KA<l.length;KA++){let HA=l[KA],uA=N(String(CA),String(HA),x),cA="";if(!QA.isPadded&&i&&i.pattern===uA.pattern){if(i.count.length>1)i.count.pop();i.count.push(uA.count[0]),i.string=i.pattern+M(i.count),CA=HA+1;continue}if(QA.isPadded)cA=t(HA,QA,x);uA.string=cA+uA.pattern+M(uA.count),u.push(uA),CA=HA+1,i=uA}return u}function Z(m,n,QA,x,l){let u=[];for(let CA of m){let{string:i}=CA;if(!x&&!V(n,"string",i))u.push(QA+i);if(x&&V(n,"string",i))u.push(QA+i)}return u}function X(m,n){let QA=[];for(let x=0;x<m.length;x++)QA.push([m[x],n[x]]);return QA}function $(m,n){return m>n?1:n>m?-1:0}function V(m,n,QA){return m.some((x)=>x[n]===QA)}function w(m,n){return Number(String(m).slice(0,-n)+"9".repeat(n))}function g(m,n){return m-m%Math.pow(10,n)}function M(m){let[n=0,QA=""]=m;if(QA||n>1)return`{${n+(QA?","+QA:"")}}`;return""}function k(m,n,QA){return`[${m}${n-m===1?"":"-"}${n}]`}function d(m){return/^-?(0+)\d/.test(m)}function t(m,n,QA){if(!n.isPadded)return m;let x=Math.abs(n.maxLen-String(m).length),l=QA.relaxZeros!==!1;switch(x){case 0:return"";case 1:return l?"0?":"0";case 2:return l?"0{0,2}":"00";default:return l?`0{0,${x}}`:`0{${x}}`}}Y.cache={},Y.clearCache=()=>Y.cache={},I.exports=Y},6144:function(I,C,D){var F=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(C,"__esModule",{value:!0}),C.resolveWorkspaceRoot=Z,C.resolveWorkspaceRootAsync=X,C.getWorkspaceGlobs=$,C.getWorkspaceGlobsAsync=V;let Y=F(D(9411)),J=F(D(7742)),G=D(2737),N=D(6455),U=D(4679);function Z(w=J.default.cwd(),g={}){return(0,G.searchParentDirs)(w,(M,k)=>{let d=null;if(g.packageWorkspaces!==!1){d=(0,N.tryReadFile)(Y.default.join(M,"package.json"));let t=d&&(0,U.workspaceGlobsFromPackage)(d);if(t&&(0,U.pathMatchesWorkspaceGlobs)(t,k))return M}if(g.pnpmWorkspaces!==!1&&d){let t=(0,N.tryReadFile)(Y.default.join(M,"pnpm-workspace.yaml")),m=t&&(0,U.workspaceGlobsFromPnpm)(t);if(m&&(0,U.pathMatchesWorkspaceGlobs)(m,k))return M}})}function X(w=J.default.cwd(),g={}){return(0,G.searchParentDirsAsync)(w,async(M,k)=>{let d=null;if(g.packageWorkspaces!==!1){d=await(0,N.tryReadFileAsync)(Y.default.join(M,"package.json"));let t=d&&(0,U.workspaceGlobsFromPackage)(d);if(t&&(0,U.pathMatchesWorkspaceGlobs)(t,k))return M}if(g.pnpmWorkspaces!==!1&&d){let t=await(0,N.tryReadFileAsync)(Y.default.join(M,"pnpm-workspace.yaml")),m=t&&(0,U.workspaceGlobsFromPnpm)(t);if(m&&(0,U.pathMatchesWorkspaceGlobs)(m,k))return M}})}function $(w=J.default.cwd(),g={}){if(g.packageWorkspaces!==!1){let M=(0,N.tryReadFile)(Y.default.join(w,"package.json")),k=M&&(0,U.workspaceGlobsFromPackage)(M);if(k)return k}if(g.pnpmWorkspaces!==!1){let M=(0,N.tryReadFile)(Y.default.join(w,"pnpm-workspace.yaml")),k=M&&(0,U.workspaceGlobsFromPnpm)(M);if(k)return k}return null}async function V(w=J.default.cwd(),g={}){if(g.packageWorkspaces!==!1){let M=await(0,N.tryReadFileAsync)(Y.default.join(w,"package.json")),k=M&&(0,U.workspaceGlobsFromPackage)(M);if(k)return k}if(g.pnpmWorkspaces!==!1){let M=await(0,N.tryReadFileAsync)(Y.default.join(w,"pnpm-workspace.yaml")),k=M&&(0,U.workspaceGlobsFromPnpm)(M);if(k)return k}return null}},2737:function(I,C,D){var F=this&&this.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(C,"__esModuleLine truncated
%s`,d,d,g,E);var t=g.type==="*"?jV:g.type==="?"?qV:"\\"+g.type;I=!0,E=E.slice(0,g.reStart)+t+"\\("+d}if(X(),C)E+="\\\\";var m=!1;switch(E.charAt(0)){case"[":case".":case"(":m=!0}for(var n=F.length-1;n>-1;n--){var QA=F[n],x=E.slice(0,QA.reStart),l=E.slice(QA.reStart,QA.reEnd-8),u=E.slice(QA.reEnd-8,QA.reEnd),CA=E.slice(QA.reEnd);u+=CA;var i=x.split("(").length-1,KA=CA;for($=0;$<i;$++)KA=KA.replace(/\)[+*?]?/,"");CA=KA;var HA="";if(CA===""&&Q!==q2)HA="$";var uA=x+l+CA+HA+u;E=uA}if(E!==""&&I)E="(?=.)"+E;if(m)E=U+E;if(Q===q2)return[E,I];if(!I)return TXA(A);var cA=B.nocase?"i":"";try{var yA=new RegExp("^"+E+"$",cA)}catch(JA){return new RegExp("$.")}return yA._glob=A,yA._src=E,yA}AC.makeRe=function(A,Q){return new yE(A,Q||{}).makeRe()};yE.prototype.makeRe=gXA;function gXA(){if(this.regexp||this.regexp===!1)return this.regexp;var A=this.set;if(!A.length)return this.regexp=!1,this.regexp;var Q=this.options,B=Q.noglobstar?jV:Q.dot?KXA:LXA,E=Q.nocase?"i":"",I=A.map(function(C){return C.map(function(D){return D===PV?B:typeof D==="string"?OXA(D):D._src}).join("\\/")}).join("|");if(I="^(?:"+I+")$",this.negate)I="^(?!"+I+").*$";try{this.regexp=new RegExp(I,E)}catch(C){this.regexp=!1}return this.regexp}AC.match=function(A,Q,B){B=B||{};var E=new yE(Q,B);if(A=A.filter(function(I){return E.match(I)}),E.options.nonull&&!A.length)A.push(Q);return A};yE.prototype.match=function(Q,B){if(typeof B>"u")B=this.partial;if(this.debug("match",Q,this.pattern),this.comment)return!1;if(this.empty)return Q==="";if(Q==="/"&&B)return!0;var E=this.options;if(Q5.sep!=="/")Q=Q.split(Q5.sep).join("/");Q=Q.split(bu),this.debug(this.pattern,"split",Q);var I=this.set;this.debug(this.pattern,"set",I);var C,D;for(D=Q.length-1;D>=0;D--)if(C=Q[D],C)break;for(D=0;D<I.length;D++){var F=I[D],Y=Q;if(E.matchBase&&F.length===1)Y=[C];var J=this.matchOne(Y,F,B);if(J){if(E.flipNegate)return!0;return!this.negate}}if(E.flipNegate)return!1;return this.negate};yE.prototype.matchOne=function(A,Q,B){var E=this.options;this.debug("matchOne",{this:this,file:A,pattern:Q}),this.debug("matchOne",A.length,Q.length);for(var I=0,C=0,D=A.length,F=Q.length;I<D&&C<F;I++,C++){this.debug("matchOne loop");var Y=Q[C],J=A[I];if(this.debug(Q,Y,J),Y===!1)return!1;if(Y===PV){this.debug("GLOBSTAR",[Q,Y,J]);var G=I,N=C+1;if(N===F){this.debug("** at the end");for(;I<D;I++)if(A[I]==="."||A[I]===".."||!E.dot&&A[I].charAt(0)===".")return!1;return!0}while(G<D){var U=A[G];if(this.debug(`
globstar while`,A,G,Q,N,U),this.matchOne(A.slice(G),Q.slice(N),B))return this.debug("globstar found match!",G,D,U),!0;else{if(U==="."||U===".."||!E.dot&&U.charAt(0)==="."){this.debug("dot detected!",A,G,Q,N);break}this.debug("globstar swallow a segment, and continue"),G++}}if(B){if(this.debug(`
>>> no match, partial?`,A,G,Q,N),G===D)return!0}return!1}var Z;if(typeof Y==="string")Z=J===Y,this.debug("string match",Y,J,Z);else Z=J.match(Y),this.debug("pattern match",Y,J,Z);if(!Z)return!1}if(I===D&&C===F)return!0;else if(I===D)return B;else if(C===F)return I===D-1&&A[I]==="";throw Error("wtf?")};function TXA(A){return A.replace(/\\(.)/g,"$1")}function OXA(A){return A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var pu=K((TC)=>{var qXA=TC&&TC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;Object.defineProperty(A,E,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),jXA=TC&&TC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),cu=TC&&TC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.hasOwnProperty.call(A,B))qXA(Q,A,B)}return jXA(Q,A),Q},PXA=TC&&TC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(TC,"__esModule",{value:!0});TC.Path=void 0;var B5=cu(require("path")),EF=cu(T2()),E5=PXA(require("assert")),kXA=process.platform==="win32";class lu{constructor(A){if(this.segments=[],typeof A==="string")if(E5.default(A,"Parameter 'itemPath' must not be empty"),A=EF.safeTrimTrailingSeparator(A),!EF.hasRoot(A))this.segments=A.split(B5.sep);else{let Q=A,B=EF.dirname(Q);while(B!==Q){let E=B5.basename(Q);this.segments.unshift(E),Q=B,B=EF.dirname(Q)}this.segments.unshift(Q)}else{E5.default(A.length>0,"Parameter 'itemPath' must not be an empty array");for(let Q=0;Q<A.length;Q++){let B=A[Q];if(E5.default(B,"Parameter 'itemPath' must not contain any empty segments"),B=EF.normalizeSeparators(A[Q]),Q===0&&EF.hasRoot(B))B=EF.safeTrimTrailingSeparator(B),E5.default(B===EF.dirname(B),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(B);else E5.default(!B.includes(B5.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(B)}}}toString(){let A=this.segments[0],Q=A.endsWith(B5.sep)||kXA&&/^[A-Z]:$/i.test(A);for(let B=1;B<this.segments.length;B++){if(Q)Q=!1;else A+=B5.sep;A+=this.segments[B]}return A}}TC.Path=lu});var iu=K((qC)=>{var fXA=qC&&qC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;Object.defineProperty(A,E,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),xXA=qC&&qC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),fV=qC&&qC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.hasOwnProperty.call(A,B))fXA(Q,A,B)}return xXA(Q,A),Q},hXA=qC&&qC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(qC,"__esModule",{value:!0});qC.Pattern=void 0;var SXA=fV(require("os")),I5=fV(require("path")),fI=fV(T2()),H1=hXA(require("assert")),yXA=du(),kV=O2(),P2=pu(),KD=process.platform==="win32";class OC{constructor(A,Q=!1,B,E){this.negate=!1;let I;if(typeof A==="string")I=A.trim();else{B=B||[],H1.default(B.length,"Parameter 'segments' must not empty");let Y=OC.getLiteral(B[0]);if(H1.default(Y&&fI.hasAbsoluteRoot(Y),"Parameter 'segments' first element must be a root path"),I=new P2.Path(B).toString().trim(),A)I=`!${I}`}while(I.startsWith("!"))this.negate=!this.negate,I=I.substr(1).trim();I=OC.fixupPattern(I,E),this.segments=new P2.Path(I).segments,this.trailingSeparator=fI.normalizeSeparators(I).endsWith(I5.sep),I=fI.safeTrimTrailingSeparator(I);let C=!1,D=this.segments.map((Y)=>OC.getLiteral(Y)).filter((Y)=>!C&&!(C=Y===""));this.searchPath=new P2.Path(D).toString(),this.rootRegExp=new RegExp(OC.regExpEscape(D[0]),KD?"i":""),this.isImplicitPattern=Q;let F={dot:!0,nobrace:!0,nocase:KD,nocomment:!0,noext:!0,nonegate:!0};I=KD?I.replace(/\\/g,"/"):I,this.minimatch=new yXA.Minimatch(I,F)}match(A){if(this.segments[this.segments.length-1]==="**"){if(A=fI.normalizeSeparators(A),!A.endsWith(I5.sep)&&this.isImplicitPattern===!1)A=`${A}${I5.sep}`}else A=fI.safeTrimTrailingSeparator(A);if(this.minimatch.match(A))return this.trailingSeparator?kV.MatchKind.Directory:kV.MatchKind.All;return kV.MatchKind.None}partialMatch(A){if(A=fI.safeTrimTrailingSeparator(A),fI.dirname(A)===A)return this.rootRegExp.test(A);return this.minimatch.matchOne(A.split(KD?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(A){return(KD?A:A.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(A,Q){H1.default(A,"pattern cannot be empty");let B=new P2.Path(A).segments.map((E)=>OC.getLiteral(E));if(H1.default(B.every((E,I)=>(E!=="."||I===0)&&E!==".."),`Invalid pattern '${A}'. Relative pathing '.' and '..' is not allowed.`),H1.default(!fI.hasRoot(A)||B[0],`Invalid pattern '${A}'. Root segment must not contain globs.`),A=fI.normalizeSe Line truncated
`),A=A.replace(/\r/g,`
`);let E=A.split(`
`).map((I)=>I.trim());for(let I of E)if(!I||I.startsWith("#"))continue;else B.patterns.push(new ru.Pattern(I));return B.searchPaths.push(...f2.getSearchPaths(B.patterns)),B})}static stat(A,Q,B){return xV(this,void 0,void 0,function*(){let E;if(Q.followSymbolicLinks)try{E=yield C5.promises.stat(A.path)}catch(I){if(I.code==="ENOENT"){if(Q.omitBrokenSymbolicLinks){hV.debug(`Broken symlink '${A.path}'`);return}throw Error(`No information found for the path '${A.path}'. This may indicate a broken symbolic link.`)}throw I}else E=yield C5.promises.lstat(A.path);if(E.isDirectory()&&Q.followSymbolicLinks){let I=yield C5.promises.realpath(A.path);while(B.length>=A.level)B.pop();if(B.some((C)=>C===I)){hV.debug(`Symlink cycle detected for path '${A.path}' and realpath '${I}'`);return}B.push(I)}return E})}}zE.DefaultGlobber=x2});var Am=K((TJ)=>{var cXA=TJ&&TJ.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(TJ,"__esModule",{value:!0});TJ.create=void 0;var lXA=eu();function pXA(A,Q){return cXA(this,void 0,void 0,function*(){return yield lXA.DefaultGlobber.create(A,Q)})}TJ.create=pXA});var Dm=K((QQ,Cm)=>{QQ=Cm.exports=UQ;var mQ;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG))mQ=function(){var A=Array.prototype.slice.call(arguments,0);A.unshift("SEMVER"),console.log.apply(console,A)};else mQ=function(){};QQ.SEMVER_SPEC_VERSION="2.0.0";var F5=256,h2=Number.MAX_SAFE_INTEGER||9007199254740991,SV=16,iXA=F5-6,OJ=QQ.re=[],uQ=QQ.safeRe=[],YA=QQ.src=[],o=QQ.tokens={},Em=0;function KQ(A){o[A]=Em++}var _V="[a-zA-Z0-9-]",yV=[["\\s",1],["\\d",F5],[_V,iXA]];function J5(A){for(var Q=0;Q<yV.length;Q++){var B=yV[Q][0],E=yV[Q][1];A=A.split(B+"*").join(B+"{0,"+E+"}").split(B+"+").join(B+"{1,"+E+"}")}return A}KQ("NUMERICIDENTIFIER");YA[o.NUMERICIDENTIFIER]="0|[1-9]\\d*";KQ("NUMERICIDENTIFIERLOOSE");YA[o.NUMERICIDENTIFIERLOOSE]="\\d+";KQ("NONNUMERICIDENTIFIER");YA[o.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+_V+"*";KQ("MAINVERSION");YA[o.MAINVERSION]="("+YA[o.NUMERICIDENTIFIER]+")\\.("+YA[o.NUMERICIDENTIFIER]+")\\.("+YA[o.NUMERICIDENTIFIER]+")";KQ("MAINVERSIONLOOSE");YA[o.MAINVERSIONLOOSE]="("+YA[o.NUMERICIDENTIFIERLOOSE]+")\\.("+YA[o.NUMERICIDENTIFIERLOOSE]+")\\.("+YA[o.NUMERICIDENTIFIERLOOSE]+")";KQ("PRERELEASEIDENTIFIER");YA[o.PRERELEASEIDENTIFIER]="(?:"+YA[o.NUMERICIDENTIFIER]+"|"+YA[o.NONNUMERICIDENTIFIER]+")";KQ("PRERELEASEIDENTIFIERLOOSE");YA[o.PRERELEASEIDENTIFIERLOOSE]="(?:"+YA[o.NUMERICIDENTIFIERLOOSE]+"|"+YA[o.NONNUMERICIDENTIFIER]+")";KQ("PRERELEASE");YA[o.PRERELEASE]="(?:-("+YA[o.PRERELEASEIDENTIFIER]+"(?:\\."+YA[o.PRERELEASEIDENTIFIER]+")*))";KQ("PRERELEASELOOSE");YA[o.PRERELEASELOOSE]="(?:-?("+YA[o.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+YA[o.PRERELEASEIDENTIFIERLOOSE]+")*))";KQ("BUILDIDENTIFIER");YA[o.BUILDIDENTIFIER]=_V+"+";KQ("BUILD");YA[o.BUILD]="(?:\\+("+YA[o.BUILDIDENTIFIER]+"(?:\\."+YA[o.BUILDIDENTIFIER]+")*))";KQ("FULL");KQ("FULLPLAIN");YA[o.FULLPLAIN]="v?"+YA[o.MAINVERSION]+YA[o.PRERELEASE]+"?"+YA[o.BUILD]+"?";YA[o.FULL]="^"+YA[o.FULLPLAIN]+"$";KQ("LOOSEPLAIN");YA[o.LOOSEPLAIN]="[v=\\s]*"+YA[o.MAINVERSIONLOOSE]+YA[o.PRERELEASELOOSE]+"?"+YA[o.BUILD]+"?";KQ("LOOSE");YA[o.LOOSE]="^"+YA[o.LOOSEPLAIN]+"$";KQ("GTLT");YA[o.GTLT]="((?:<|>)?=?)";KQ("XRANGEIDENTIFIERLOOSE");YA[o.XRANGEIDENTIFIERLOOSE]=YA[o.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";KQ("XRANGEIDENTIFIER");YA[o.XRANGEIDENTIFIER]=YA[o.NUMERICIDENTIFIER]+"|x|X|\\*";KQ("XRANGEPLAIN");YA[o.XRANGEPLAIN]="[v=\\s]*("+YA[o.XRANGEIDENTIFIER]+")(?:\\.("+YA[o.XRANGEIDENTIFIER]+")(?:\\.("+YA[o.XRANGEIDENTIFIER]+")(?:"+YA[o.PRERELEASE]+")?"+YA[o.BUILD]+"?)?)?";KQ("XRANGEPLAINLOOSE");YA[o.XRANGEPLAINLOOSE]="[v=\\s]*("+YA[o.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+YA[o.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+YA[o.XRANGEIDENTIFIERLOOSE]+")(?:"+YA[o.PRERELEASELOOSE]+")?"+YA[o.BUILD]+"?)?)?";KQ("XRANGE");YA[o.XRANGE]="^"+YA[o.GTLT]+"\\s*"+YA[o.XRANGEPLAIN]+"$";KQ("XRANGELOOSE");YA[o.XRANGELOOSE]="^"+YA[o.GTLT]+"\\s*"+YA[o.XRANGEPLAINLOOSE]+"$";KQ("COERCE");YA[o.COERCE]="(^|[^\\d])(\\d{1,"+SV+"})(?:\\.(\\d{1,"+SV+"}))?(?:\\.(\\d{1,"+SV+"}))?(?:$|[^\\d])";KQ("COERCERTL");OJ[o.COERCERTL]=new RegExp(YA[o.COERCE],"g");uQ[o.COERCERTL]=new RegExp(J5(YA[o.COERCE]),"g");KQ("LONETILDE");YA[o.LONETILDE]="(?:~>?)";KQ("TILDETRIM");YA[o.TILDETRIM]="(\\s*)"+YA[o.LONETILDE]+"\\s+";OJ[o.TILDETRIM]=new RegExp(YA[o.TILDETRIM],"g");uQ[o.TILDETRIM]=new RegExp(J5(YA[o.TILDETRIM]),"g");var nXA="$1~";KQ("TILDE");YA[o.TILDE]="^"+YA[o.LONETILDE]+YA[o.XRANGEPLAIN]+"$";KQ("TILDELOOSE");YA[o.TILDELOOSE]="^"+YA[o.LONETILDE]+YA[o.XRANGEPLAINLOOSE]+"$";KQ("LONECARET");YA[o.LONECARET]="(?:\\^)";KQ("CARETTRIM");YA[o.CARETTRIM]="(\\s*)"+YA[o.LONECARET]+"\\s+";OJ[o.CARETTRIM]=new RegExp(YA[o.CARETTRIM]," Line truncated
`),{implicitDescendants:!1});try{for(var J=!0,G=k6A(Y.globGenerator()),N;N=yield G.next(),Q=N.done,!Q;J=!0){I=N.value,J=!1;let U=I,Z=v2.relative(F,U).replace(new RegExp(`\\${v2.sep}`,"g"),"/");if(N5.debug(`Matched: ${Z}`),Z==="")D.push(".");else D.push(`${Z}`)}}catch(U){B={error:U}}finally{try{if(!J&&!Q&&(E=G.return))yield E.call(G)}finally{if(B)throw B.error}}return D})}fQ.resolvePaths=b6A;function u6A(A){return jJ(this,void 0,void 0,function*(){return S6A.promisify(dV.unlink)(A)})}fQ.unlinkFile=u6A;function Um(A,Q=[]){return jJ(this,void 0,void 0,function*(){let B="";Q.push("--version"),N5.debug(`Checking ${A} ${Q.join(" ")}`);try{yield f6A.exec(`${A}`,Q,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:(E)=>B+=E.toString(),stderr:(E)=>B+=E.toString()}})}catch(E){N5.debug(E.message)}return B=B.trim(),N5.debug(B),B})}function m6A(){return jJ(this,void 0,void 0,function*(){let A=yield Um("zstd",["--quiet"]),Q=h6A.clean(A);if(N5.debug(`zstd version: ${Q}`),A==="")return R1.CompressionMethod.Gzip;else return R1.CompressionMethod.ZstdWithoutLong})}fQ.getCompressionMethod=m6A;function d6A(A){return A===R1.CompressionMethod.Gzip?R1.CacheFilename.Gzip:R1.CacheFilename.Zstd}fQ.getCacheFileName=d6A;function c6A(){return jJ(this,void 0,void 0,function*(){if(dV.existsSync(R1.GnuTarPathOnWindows))return R1.GnuTarPathOnWindows;return(yield Um("tar")).toLowerCase().includes("gnu tar")?Gm.which("tar"):""})}fQ.getGnuTarPathOnWindows=c6A;function l6A(A,Q){if(Q===void 0)throw Error(`Expected ${A} but value was undefiend`);return Q}fQ.assertDefined=l6A;function p6A(A,Q,B=!1){let E=A.slice();if(Q)E.push(Q);if(process.platform==="win32"&&!B)E.push("windows-only");return E.push(y6A),Nm.createHash("sha256").update(E.join("|")).digest("hex")}fQ.getCacheVersion=p6A;function i6A(){let A=process.env.ACTIONS_RUNTIME_TOKEN;if(!A)throw Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return A}fQ.getRuntimeToken=i6A});var RB=K((JbA,m2)=>{var Zm,Wm,Xm,$m,Km,Lm,Vm,zm,Hm,wm,Mm,Rm,gm,b2,cV,Tm,Om,qm,kJ,jm,Pm,km,fm,xm,hm,Sm,ym,_m,u2,vm,bm,um;(function(A){var Q=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(E){A(B(Q,B(E)))});else if(typeof m2==="object"&&typeof m2.exports==="object")A(B(Q,B(m2.exports)));else A(B(Q));function B(E,I){if(E!==Q)if(typeof Object.create==="function")Object.defineProperty(E,"__esModule",{value:!0});else E.__esModule=!0;return function(C,D){return E[C]=I?I(C,D):D}}})(function(A){var Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,D){C.__proto__=D}||function(C,D){for(var F in D)if(Object.prototype.hasOwnProperty.call(D,F))C[F]=D[F]};Zm=function(C,D){if(typeof D!=="function"&&D!==null)throw TypeError("Class extends value "+String(D)+" is not a constructor or null");Q(C,D);function F(){this.constructor=C}C.prototype=D===null?Object.create(D):(F.prototype=D.prototype,new F)},Wm=Object.assign||function(C){for(var D,F=1,Y=arguments.length;F<Y;F++){D=arguments[F];for(var J in D)if(Object.prototype.hasOwnProperty.call(D,J))C[J]=D[J]}return C},Xm=function(C,D){var F={};for(var Y in C)if(Object.prototype.hasOwnProperty.call(C,Y)&&D.indexOf(Y)<0)F[Y]=C[Y];if(C!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var J=0,Y=Object.getOwnPropertySymbols(C);J<Y.length;J++)if(D.indexOf(Y[J])<0&&Object.prototype.propertyIsEnumerable.call(C,Y[J]))F[Y[J]]=C[Y[J]]}return F},$m=function(C,D,F,Y){var J=arguments.length,G=J<3?D:Y===null?Y=Object.getOwnPropertyDescriptor(D,F):Y,N;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")G=Reflect.decorate(C,D,F,Y);else for(var U=C.length-1;U>=0;U--)if(N=C[U])G=(J<3?N(G):J>3?N(D,F,G):N(D,F))||G;return J>3&&G&&Object.defineProperty(D,F,G),G},Km=function(C,D){return function(F,Y){D(F,Y,C)}},Lm=function(C,D,F,Y,J,G){function N(t){if(t!==void 0&&typeof t!=="function")throw TypeError("Function expected");return t}var U=Y.kind,Z=U==="getter"?"get":U==="setter"?"set":"value",X=!D&&C?Y.static?C:C.prototype:null,$=D||(X?Object.getOwnPropertyDescriptor(X,Y.name):{}),V,w=!1;for(var g=F.length-1;g>=0;g--){var M={};for(var k in Y)M[k]=k==="access"?{}:Y[k];for(var k in Y.access)M.access[k]=Y.access[k];M.addInitializer=function(t){if(w)throw TypeError("Cannot add initializers after decoration has completed");G.push(N(t||null))};var d=(0,F[g])(U==="accessor"?{get:$.get,set:$.set}:$[Z],M);if(U==="accessor"){if(d===void 0)continue;if(d===null||typeof d!=="object")throw TypeError("Object expected");if(V=N(d.get))$.get=V;if(V=N(d.set))$.set=V;if(V=N(d.init))J.unshift(V)}else if(V=N(d))if(U==="field")J.unshift(V);else $[Z]=V}if(X)Object.defineProperty(X,Y.name,$);w=!0},Vm=function(C,D,F){var Y=arguments.length>2;for(var J=0;J<D.length;J++)F=Y?D[J].call(C,F):D[J].call(C);return Y?F:void 0},zm=function(C){return typeof C==="symbol"?C:"".concat(C)},Hm=function(C,D,F){if(typeof D==="symbol")D=D.description?"[".concat(D.description,"]"):"";return O Line truncated
${R7A.sanitize({...this,request:{...this.request,agent:B},response:this.response})}`},enumerable:!1}),Object.setPrototypeOf(this,r2.prototype)}}$5.RestError=r2;function g7A(A){if(A instanceof r2)return!0;return(0,H7A.isError)(A)&&A.name==="RestError"}});var g1=K((t2)=>{Object.defineProperty(t2,"__esModule",{value:!0});t2.uint8ArrayToString=T7A;t2.stringToUint8Array=O7A;function T7A(A,Q){return Buffer.from(A).toString(Q)}function O7A(A,Q){return Buffer.from(A,Q)}});var K5=K((e2)=>{Object.defineProperty(e2,"__esModule",{value:!0});e2.logger=void 0;var q7A=W5();e2.logger=(0,q7A.createClientLogger)("ts-http-runtime")});var Xd=K((AZ)=>{Object.defineProperty(AZ,"__esModule",{value:!0});AZ.getBodyLength=Wd;AZ.createNodeHttpClient=y7A;var Gz=RB(),Fz=Gz.__importDefault(require("node:http")),Yz=Gz.__importDefault(require("node:https")),Jd=Gz.__importDefault(require("node:zlib")),j7A=require("node:stream"),Gd=U5(),P7A=DF(),V5=fJ(),xJ=K5(),k7A=X5(),f7A={};function L5(A){return A&&typeof A.pipe==="function"}function Nd(A){if(A.readable===!1)return Promise.resolve();return new Promise((Q)=>{let B=()=>{Q(),A.removeListener("close",B),A.removeListener("end",B),A.removeListener("error",B)};A.on("close",B),A.on("end",B),A.on("error",B)})}function Ud(A){return A&&typeof A.byteLength==="number"}class Jz extends j7A.Transform{loadedBytes=0;progressCallback;_transform(A,Q,B){this.push(A),this.loadedBytes+=A.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),B()}catch(E){B(E)}}constructor(A){super();this.progressCallback=A}}class Zd{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(A){let Q=new AbortController,B;if(A.abortSignal){if(A.abortSignal.aborted)throw new Gd.AbortError("The operation was aborted. Request has already been canceled.");B=(Y)=>{if(Y.type==="abort")Q.abort()},A.abortSignal.addEventListener("abort",B)}let E;if(A.timeout>0)E=setTimeout(()=>{let Y=new k7A.Sanitizer;xJ.logger.info(`request to '${Y.sanitizeUrl(A.url)}' timed out. canceling...`),Q.abort()},A.timeout);let I=A.headers.get("Accept-Encoding"),C=I?.includes("gzip")||I?.includes("deflate"),D=typeof A.body==="function"?A.body():A.body;if(D&&!A.headers.has("Content-Length")){let Y=Wd(D);if(Y!==null)A.headers.set("Content-Length",Y)}let F;try{if(D&&A.onUploadProgress){let Z=A.onUploadProgress,X=new Jz(Z);if(X.on("error",($)=>{xJ.logger.error("Error in upload progress",$)}),L5(D))D.pipe(X);else X.end(D);D=X}let Y=await this.makeRequest(A,Q,D);if(E!==void 0)clearTimeout(E);let J=x7A(Y),N={status:Y.statusCode??0,headers:J,request:A};if(A.method==="HEAD")return Y.resume(),N;F=C?h7A(Y,J):Y;let U=A.onDownloadProgress;if(U){let Z=new Jz(U);Z.on("error",(X)=>{xJ.logger.error("Error in download progress",X)}),F.pipe(Z),F=Z}if(A.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||A.streamResponseStatusCodes?.has(N.status))N.readableStreamBody=F;else N.bodyAsText=await S7A(F);return N}finally{if(A.abortSignal&&B){let Y=Promise.resolve();if(L5(D))Y=Nd(D);let J=Promise.resolve();if(L5(F))J=Nd(F);Promise.all([Y,J]).then(()=>{if(B)A.abortSignal?.removeEventListener("abort",B)}).catch((G)=>{xJ.logger.warning("Error when cleaning up abortListener on httpRequest",G)})}}}makeRequest(A,Q,B){let E=new URL(A.url),I=E.protocol!=="https:";if(I&&!A.allowInsecureConnection)throw Error(`Cannot connect to ${A.url} while allowInsecureConnection is false.`);let D={agent:A.agent??this.getOrCreateAgent(A,I),hostname:E.hostname,path:`${E.pathname}${E.search}`,port:E.port,method:A.method,headers:A.headers.toJSON({preserveCase:!0}),...A.requestOverrides};return new Promise((F,Y)=>{let J=I?Fz.default.request(D,F):Yz.default.request(D,F);if(J.once("error",(G)=>{Y(new V5.RestError(G.message,{code:G.code??V5.RestError.REQUEST_SEND_ERROR,request:A}))}),Q.signal.addEventListener("abort",()=>{let G=new Gd.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");J.destroy(G),Y(G)}),B&&L5(B))B.pipe(J);else if(B)if(typeof B==="string"||Buffer.isBuffer(B))J.end(B);else if(Ud(B))J.end(ArrayBuffer.isView(B)?Buffer.from(B.buffer):Buffer.from(B));else xJ.logger.error("Unrecognized body type",B),Y(new V5.RestError("Unrecognized body type"));else J.end()})}getOrCreateAgent(A,Q){let B=A.disableKeepAlive;if(Q){if(B)return Fz.default.globalAgent;if(!this.cachedHttpAgent)this.cachedHttpAgent=new Fz.default.Agent({keepAlive:!0});return this.cachedHttpAgent}else{if(B&&!A.tlsSettings)return Yz.default.globalAgent;let E=A.tlsSettings??f7A,I=this.cachedHttpsAgents.get(E);if(I&&I.options.keepAlive===!B)return I;return xJ.logger.info("No cached TLS Agent exist, creating a new Agent"),I=new Yz.default.Agent({keepAlive:!B,...E}),this.cachedHttpsAgents.set(E,I),I}}}function x7A(A){let Q=(0,P7A.createHttpHeaders)();for(let B of Object.keys(A.headers)){let E=A.headers[B];if(Array.isArray(E)){if(E.length>0)Q.set(B,E[0])}else if(E)Q.set(B,E)}return Q}function h7A(A,Q){let B=Q.get("Content-Encoding");if(B==="gzip"){let E=Jd.default.createGunzip();re Line truncated
`).join(`
`+C),A.push(I+"m+"+GZ.exports.humanize(this.diff)+"\x1B[0m")}else A[0]=p3A()+Q+" "+A[0]}function p3A(){if(HE.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function i3A(...A){return process.stderr.write(JZ.formatWithOptions(HE.inspectOpts,...A)+`
`)}function n3A(A){if(A)process.env.DEBUG=A;else delete process.env.DEBUG}function a3A(){return process.env.DEBUG}function s3A(A){A.inspectOpts={};let Q=Object.keys(HE.inspectOpts);for(let B=0;B<Q.length;B++)A.inspectOpts[Q[B]]=HE.inspectOpts[Q[B]]}GZ.exports=qz()(HE);var{formatters:xd}=GZ.exports;xd.o=function(A){return this.inspectOpts.colors=this.useColors,JZ.inspect(A,this.inspectOpts).split(`
`).map((Q)=>Q.trim()).join(" ")};xd.O=function(A){return this.inspectOpts.colors=this.useColors,JZ.inspect(A,this.inspectOpts)}});var NZ=K((nbA,jz)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)jz.exports=fd();else jz.exports=hd()});var _d=K((hI)=>{var o3A=hI&&hI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),r3A=hI&&hI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),Sd=hI&&hI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))o3A(Q,A,B)}return r3A(Q,A),Q};Object.defineProperty(hI,"__esModule",{value:!0});hI.req=hI.json=hI.toBuffer=void 0;var t3A=Sd(require("http")),e3A=Sd(require("https"));async function yd(A){let Q=0,B=[];for await(let E of A)Q+=E.length,B.push(E);return Buffer.concat(B,Q)}hI.toBuffer=yd;async function A$A(A){let B=(await yd(A)).toString("utf8");try{return JSON.parse(B)}catch(E){let I=E;throw I.message+=` (input: ${B})`,I}}hI.json=A$A;function Q$A(A,Q={}){let E=((typeof A==="string"?A:A.href).startsWith("https:")?e3A:t3A).request(A,Q),I=new Promise((C,D)=>{E.once("response",C).once("error",D).end()});return E.then=I.then.bind(I),E}hI.req=Q$A});var dd=K((QC)=>{var bd=QC&&QC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),B$A=QC&&QC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),ud=QC&&QC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))bd(Q,A,B)}return B$A(Q,A),Q},E$A=QC&&QC.__exportStar||function(A,Q){for(var B in A)if(B!=="default"&&!Object.prototype.hasOwnProperty.call(Q,B))bd(Q,A,B)};Object.defineProperty(QC,"__esModule",{value:!0});QC.Agent=void 0;var I$A=ud(require("net")),vd=ud(require("http")),C$A=require("https");E$A(_d(),QC);var f0=Symbol("AgentBaseInternalState");class md extends vd.Agent{constructor(A){super(A);this[f0]={}}isSecureEndpoint(A){if(A){if(typeof A.secureEndpoint==="boolean")return A.secureEndpoint;if(typeof A.protocol==="string")return A.protocol==="https:"}let{stack:Q}=Error();if(typeof Q!=="string")return!1;return Q.split(`
`).some((B)=>B.indexOf("(https.js:")!==-1||B.indexOf("node:https:")!==-1)}incrementSockets(A){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[A])this.sockets[A]=[];let Q=new I$A.Socket({writable:!1});return this.sockets[A].push(Q),this.totalSocketCount++,Q}decrementSockets(A,Q){if(!this.sockets[A]||Q===null)return;let B=this.sockets[A],E=B.indexOf(Q);if(E!==-1){if(B.splice(E,1),this.totalSocketCount--,B.length===0)delete this.sockets[A]}}getName(A){if(this.isSecureEndpoint(A))return C$A.Agent.prototype.getName.call(this,A);return super.getName(A)}createSocket(A,Q,B){let E={...Q,secureEndpoint:this.isSecureEndpoint(Q)},I=this.getName(E),C=this.incrementSockets(I);Promise.resolve().then(()=>this.connect(A,E)).then((D)=>{if(this.decrementSockets(I,C),D instanceof vd.Agent)try{return D.addRequest(A,E)}catch(F){return B(F)}this[f0].currentSocket=D,super.createSocket(A,Q,B)},(D)=>{this.decrementSockets(I,C),B(D)})}createConnection(){let A=this[f0].currentSocket;if(this[f0].currentSocket=void 0,!A)throw Error("No socket was returned in the `connect()` function");return A}get defaultPort(){return this[f0].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(A){if(this[f0])this[f0].defaultPort=A}get protocol(){return this[f0].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(A){if(this[f0])this[f0].protocol=A}}QC.Agent=md});var cd=K((pJ)=>{var D$A=pJ&&pJ.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(pJ,"__esModule",{value:!0});pJ.parseProxyResponse=void 0;var F$A=D$A(NZ()),UZ=(0,F$A.default)("https-proxy-agent:parse-proxy-response");function Y$A(A){return new Promise((Q,B)=>{let E=0,I=[];function C(){let G=A.read();if(G)J(G);else A.once("readable",C)}function D(){A.removeListener("end",F),A.removeListener("error",Y),A.removeListener("readable",C)}function F(){D(),UZ("onend"),B(Error("Proxy connection ended before receiving CONNECT response"))}function Y(G){D(),UZ("onerror %o",G),B(G)}function J(G){I.push(G),E+=G.length;let N=Buffer.concat(I,E),U=N.indexOf(`\r
\r
`);if(U===-1){UZ("have not received end of HTTP headers yet..."),C();return}let Z=N.slice(0,U).toString("ascii").split(`\r
`),X=Z.shift();if(!X)return A.destroy(),B(Error("No header received from proxy CONNECT response"));let $=X.split(" "),V=+$[1],w=$.slice(2).join(" "),g={};for(let M of Z){if(!M)continue;let k=M.indexOf(":");if(k===-1)return A.destroy(),B(Error(`Invalid header from proxy CONNECT response: "${M}"`));let d=M.slice(0,k).toLowerCase(),t=M.slice(k+1).trimStart(),m=g[d];if(typeof m==="string")g[d]=[m,t];else if(Array.isArray(m))m.push(t);else g[d]=t}UZ("got proxy server response: %o %o",X,g),D(),Q({connect:{statusCode:V,statusText:w,headers:g},buffered:N})}A.on("error",Y),A.on("end",F),C()})}pJ.parseProxyResponse=Y$A});var sd=K((PC)=>{var J$A=PC&&PC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),G$A=PC&&PC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),nd=PC&&PC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))J$A(Q,A,B)}return G$A(Q,A),Q},ad=PC&&PC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(PC,"__esModule",{value:!0});PC.HttpsProxyAgent=void 0;var ZZ=nd(require("net")),ld=nd(require("tls")),N$A=ad(require("assert")),U$A=ad(NZ()),Z$A=dd(),W$A=require("url"),X$A=cd(),w5=(0,U$A.default)("https-proxy-agent"),pd=(A)=>{if(A.servername===void 0&&A.host&&!ZZ.isIP(A.host))return{...A,servername:A.host};return A};class Pz extends Z$A.Agent{constructor(A,Q){super(Q);this.options={path:void 0},this.proxy=typeof A==="string"?new W$A.URL(A):A,this.proxyHeaders=Q?.headers??{},w5("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let B=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),E=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...Q?id(Q,"headers"):null,host:B,port:E}}async connect(A,Q){let{proxy:B}=this;if(!Q.host)throw TypeError('No "host" provided');let E;if(B.protocol==="https:")w5("Creating `tls.Socket`: %o",this.connectOpts),E=ld.connect(pd(this.connectOpts));else w5("Creating `net.Socket`: %o",this.connectOpts),E=ZZ.connect(this.connectOpts);let I=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},C=ZZ.isIPv6(Q.host)?`[${Q.host}]`:Q.host,D=`CONNECT ${C}:${Q.port} HTTP/1.1\r
`;if(B.username||B.password){let N=`${decodeURIComponent(B.username)}:${decodeURIComponent(B.password)}`;I["Proxy-Authorization"]=`Basic ${Buffer.from(N).toString("base64")}`}if(I.Host=`${C}:${Q.port}`,!I["Proxy-Connection"])I["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let N of Object.keys(I))D+=`${N}: ${I[N]}\r
`;let F=(0,X$A.parseProxyResponse)(E);E.write(`${D}\r
`);let{connect:Y,buffered:J}=await F;if(A.emit("proxyConnect",Y),this.emit("proxyConnect",Y,A),Y.statusCode===200){if(A.once("socket",$$A),Q.secureEndpoint)return w5("Upgrading socket connection to TLS"),ld.connect({...id(pd(Q),"host","path","port"),socket:E});return E}E.destroy();let G=new ZZ.Socket({writable:!1});return G.readable=!0,A.once("socket",(N)=>{w5("Replaying proxy buffer for failed request"),(0,N$A.default)(N.listenerCount("data")>0),N.push(J),N.push(null)}),G}}Pz.protocols=["http","https"];PC.HttpsProxyAgent=Pz;function $$A(A){A.resume()}function id(A,...Q){let B={},E;for(E in A)if(!Q.includes(E))B[E]=A[E];return B}});var td=K((SI)=>{var K$A=SI&&SI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),L$A=SI&&SI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),od=SI&&SI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))K$A(Q,A,B)}return L$A(Q,A),Q};Object.defineProperty(SI,"__esModule",{value:!0});SI.req=SI.json=SI.toBuffer=void 0;var V$A=od(require("http")),z$A=od(require("https"));async function rd(A){let Q=0,B=[];for await(let E of A)Q+=E.length,B.push(E);return Buffer.concat(B,Q)}SI.toBuffer=rd;async function H$A(A){let B=(await rd(A)).toString("utf8");try{return JSON.parse(B)}catch(E){let I=E;throw I.message+=` (input: ${B})`,I}}SI.json=H$A;function w$A(A,Q={}){let E=((typeof A==="string"?A:A.href).startsWith("https:")?z$A:V$A).request(A,Q),I=new Promise((C,D)=>{E.once("response",C).once("error",D).end()});return E.then=I.then.bind(I),E}SI.req=w$A});var Ec=K((BC)=>{var Ac=BC&&BC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),M$A=BC&&BC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),Qc=BC&&BC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))Ac(Q,A,B)}return M$A(Q,A),Q},R$A=BC&&BC.__exportStar||function(A,Q){for(var B in A)if(B!=="default"&&!Object.prototype.hasOwnProperty.call(Q,B))Ac(Q,A,B)};Object.defineProperty(BC,"__esModule",{value:!0});BC.Agent=void 0;var g$A=Qc(require("net")),ed=Qc(require("http")),T$A=require("https");R$A(td(),BC);var x0=Symbol("AgentBaseInternalState");class Bc extends ed.Agent{constructor(A){super(A);this[x0]={}}isSecureEndpoint(A){if(A){if(typeof A.secureEndpoint==="boolean")return A.secureEndpoint;if(typeof A.protocol==="string")return A.protocol==="https:"}let{stack:Q}=Error();if(typeof Q!=="string")return!1;return Q.split(`
`).some((B)=>B.indexOf("(https.js:")!==-1||B.indexOf("node:https:")!==-1)}incrementSockets(A){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[A])this.sockets[A]=[];let Q=new g$A.Socket({writable:!1});return this.sockets[A].push(Q),this.totalSocketCount++,Q}decrementSockets(A,Q){if(!this.sockets[A]||Q===null)return;let B=this.sockets[A],E=B.indexOf(Q);if(E!==-1){if(B.splice(E,1),this.totalSocketCount--,B.length===0)delete this.sockets[A]}}getName(A){if(this.isSecureEndpoint(A))return T$A.Agent.prototype.getName.call(this,A);return super.getName(A)}createSocket(A,Q,B){let E={...Q,secureEndpoint:this.isSecureEndpoint(Q)},I=this.getName(E),C=this.incrementSockets(I);Promise.resolve().then(()=>this.connect(A,E)).then((D)=>{if(this.decrementSockets(I,C),D instanceof ed.Agent)try{return D.addRequest(A,E)}catch(F){return B(F)}this[x0].currentSocket=D,super.createSocket(A,Q,B)},(D)=>{this.decrementSockets(I,C),B(D)})}createConnection(){let A=this[x0].currentSocket;if(this[x0].currentSocket=void 0,!A)throw Error("No socket was returned in the `connect()` function");return A}get defaultPort(){return this[x0].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(A){if(this[x0])this[x0].defaultPort=A}get protocol(){return this[x0].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(A){if(this[x0])this[x0].protocol=A}}BC.Agent=Bc});var Dc=K((kC)=>{var O$A=kC&&kC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),q$A=kC&&kC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),Cc=kC&&kC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))O$A(Q,A,B)}return q$A(Q,A),Q},j$A=kC&&kC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(kC,"__esModule",{value:!0});kC.HttpProxyAgent=void 0;var P$A=Cc(require("net")),k$A=Cc(require("tls")),f$A=j$A(NZ()),x$A=require("events"),h$A=Ec(),Ic=require("url"),iJ=(0,f$A.default)("http-proxy-agent");class kz extends h$A.Agent{constructor(A,Q){super(Q);this.proxy=typeof A==="string"?new Ic.URL(A):A,this.proxyHeaders=Q?.headers??{},iJ("Creating new HttpProxyAgent instance: %o",this.proxy.href);let B=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),E=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...Q?S$A(Q,"headers"):null,host:B,port:E}}addRequest(A,Q){A._header=null,this.setRequestProps(A,Q),super.addRequest(A,Q)}setRequestProps(A,Q){let{proxy:B}=this,E=Q.secureEndpoint?"https:":"http:",I=A.getHeader("host")||"localhost",C=`${E}//${I}`,D=new Ic.URL(A.path,C);if(Q.port!==80)D.port=String(Q.port);A.path=String(D);let F=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(B.username||B.password){let Y=`${decodeURIComponent(B.username)}:${decodeURIComponent(B.password)}`;F["Proxy-Authorization"]=`Basic ${Buffer.from(Y).toString("base64")}`}if(!F["Proxy-Connection"])F["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let Y of Object.keys(F)){let J=F[Y];if(J)A.setHeader(Y,J)}}async connect(A,Q){if(A._header=null,!A.path.includes("://"))this.setRequestProps(A,Q);let B,E;if(iJ("Regenerating stored HTTP header string for request"),A._implicitHeader(),A.outputData&&A.outputData.length>0)iJ("Patching connection write() output buffer with updated header"),B=A.outputData[0].data,E=B.indexOf(`\r
\r
`)+4,A.outputData[0].data=A._header+B.substring(E),iJ("Output buffer: %o",A.outputData[0].data);let I;if(this.proxy.protocol==="https:")iJ("Creating `tls.Socket`: %o",this.connectOpts),I=k$A.connect(this.connectOpts);else iJ("Creating `net.Socket`: %o",this.connectOpts),I=P$A.connect(this.connectOpts);return await(0,x$A.once)(I,"connect"),I}}kz.protocols=["http","https"];kC.HttpProxyAgent=kz;function S$A(A,...Q){let B={},E;for(E in A)if(!Q.includes(E))B[E]=A[E];return B}});var fz=K((fC)=>{Object.defineProperty(fC,"__esModule",{value:!0});fC.globalNoProxyList=fC.proxyPolicyName=void 0;fC.loadNoProxy=Nc;fC.getDefaultProxySettings=p$A;fC.proxyPolicy=n$A;var y$A=sd(),_$A=Dc(),v$A=K5(),b$A="HTTPS_PROXY",u$A="HTTP_PROXY",m$A="ALL_PROXY",d$A="NO_PROXY";fC.proxyPolicyName="proxyPolicy";fC.globalNoProxyList=[];var Jc=!1,c$A=new Map;function WZ(A){if(process.env[A])return process.env[A];else if(process.env[A.toLowerCase()])return process.env[A.toLowerCase()];return}function Gc(){if(!process)return;let A=WZ(b$A),Q=WZ(m$A),B=WZ(u$A);return A||Q||B}function l$A(A,Q,B){if(Q.length===0)return!1;let E=new URL(A).hostname;if(B?.has(E))return B.get(E);let I=!1;for(let C of Q)if(C[0]==="."){if(E.endsWith(C))I=!0;else if(E.length===C.length-1&&E===C.slice(1))I=!0}else if(E===C)I=!0;return B?.set(E,I),I}function Nc(){let A=WZ(d$A);if(Jc=!0,A)return A.split(",").map((Q)=>Q.trim()).filter((Q)=>Q.length);return[]}function p$A(A){if(!A){if(A=Gc(),!A)return}let Q=new URL(A);return{host:(Q.protocol?Q.protocol+"//":"")+Q.hostname,port:Number.parseInt(Q.port||"80"),username:Q.username,password:Q.password}}function i$A(){let A=Gc();return A?new URL(A):void 0}function Fc(A){let Q;try{Q=new URL(A.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${A.host}".`)}if(Q.port=String(A.port),A.username)Q.username=A.username;if(A.password)Q.password=A.password;return Q}function Yc(A,Q,B){if(A.agent)return;let I=new URL(A.url).protocol!=="https:";if(A.tlsSettings)v$A.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let C=A.headers.toJSON();if(I){if(!Q.httpProxyAgent)Q.httpProxyAgent=new _$A.HttpProxyAgent(B,{headers:C});A.agent=Q.httpProxyAgent}else{if(!Q.httpsProxyAgent)Q.httpsProxyAgent=new y$A.HttpsProxyAgent(B,{headers:C});A.agent=Q.httpsProxyAgent}}function n$A(A,Q){if(!Jc)fC.globalNoProxyList.push(...Nc());let B=A?Fc(A):i$A(),E={};return{name:fC.proxyPolicyName,async sendRequest(I,C){if(!I.proxySettings&&B&&!l$A(I.url,Q?.customNoProxyList??fC.globalNoProxyList,Q?.customNoProxyList?void 0:c$A))Yc(I,E,B);else if(I.proxySettings)Yc(I,E,Fc(I.proxySettings));return C(I)}}}});var xz=K((nJ)=>{Object.defineProperty(nJ,"__esModule",{value:!0});nJ.agentPolicyName=void 0;nJ.agentPolicy=a$A;nJ.agentPolicyName="agentPolicy";function a$A(A){return{name:nJ.agentPolicyName,sendRequest:async(Q,B)=>{if(!Q.agent)Q.agent=A;return B(Q)}}}});var hz=K((aJ)=>{Object.defineProperty(aJ,"__esModule",{value:!0});aJ.tlsPolicyName=void 0;aJ.tlsPolicy=s$A;aJ.tlsPolicyName="tlsPolicy";function s$A(A){return{name:aJ.tlsPolicyName,sendRequest:async(Q,B)=>{if(!Q.tlsSettings)Q.tlsSettings=A;return B(Q)}}}});var M5=K((q1)=>{Object.defineProperty(q1,"__esModule",{value:!0});q1.isNodeReadableStream=Uc;q1.isWebReadableStream=Zc;q1.isBinaryBody=o$A;q1.isReadableStream=Wc;q1.isBlob=r$A;function Uc(A){return Boolean(A&&typeof A.pipe==="function")}function Zc(A){return Boolean(A&&typeof A.getReader==="function"&&typeof A.tee==="function")}function o$A(A){return A!==void 0&&(A instanceof Uint8Array||Wc(A)||typeof A==="function"||A instanceof Blob)}function Wc(A){return Uc(A)||Zc(A)}function r$A(A){return typeof A.stream==="function"}});var Kc=K((yz)=>{Object.defineProperty(yz,"__esModule",{value:!0});yz.concat=QKA;var Sz=require("stream"),t$A=M5();async function*Xc(){let A=this.getReader();try{while(!0){let{done:Q,value:B}=await A.read();if(Q)return;yield B}}finally{A.releaseLock()}}function e$A(A){if(!A[Symbol.asyncIterator])A[Symbol.asyncIterator]=Xc.bind(A);if(!A.values)A.values=Xc.bind(A)}function $c(A){if(A instanceof ReadableStream)return e$A(A),Sz.Readable.fromWeb(A);else return A}function AKA(A){if(A instanceof Uint8Array)return Sz.Readable.from(Buffer.from(A));else if((0,t$A.isBlob)(A))return $c(A.stream());else return $c(A)}async function QKA(A){return function(){let Q=A.map((B)=>typeof B==="function"?B():B).map(AKA);return Sz.Readable.from(async function*(){for(let B of Q)for await(let E of B)yield E}())}}});var _z=K((oJ)=>{Object.defineProperty(oJ,"__esModule",{value:!0});oJ.multipartPolicyName=void 0;oJ.multipartPolicy=ZKA;var sJ=g1(),BKA=M5(),EKA=i2(),IKA=Kc();function CKA(){return`----AzSDKFormBoundary${(0,EKA.randomUUID)()}`}function DKA(A){let Q="";for(let[B,E]of A)Q+=`${B}: ${E}\r
`;return Q}function FKA(A){if(A instanceof Uint8Array)return A.byteLength;else if((0,BKA.isBlob)(A))return A.size===-1?void 0:A.size;else return}function YKA(A){let Q=0;for(let B of A){let E=FKA(B);if(E===void 0)return;else Q+=E}return Q}async function JKA(A,Q,B){let E=[(0,sJ.stringToUint8Array)(`--${B}`,"utf-8"),...Q.flatMap((C)=>[(0,sJ.stringToUint8Array)(`\r
`,"utf-8"),(0,sJ.stringToUint8Array)(DKA(C.headers),"utf-8"),(0,sJ.stringToUint8Array)(`\r
`,"utf-8"),C.body,(0,sJ.stringToUint8Array)(`\r
--${B}`,"utf-8")]),(0,sJ.stringToUint8Array)(`--\r
\r
`,"utf-8")],I=YKA(E);if(I)A.headers.set("Content-Length",I);A.body=await(0,IKA.concat)(E)}oJ.multipartPolicyName="multipartPolicy";var GKA=70,NKA=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function UKA(A){if(A.length>GKA)throw Error(`Multipart boundary "${A}" exceeds maximum length of 70 characters`);if(Array.from(A).some((Q)=>!NKA.has(Q)))throw Error(`Multipart boundary "${A}" contains invalid characters`)}function ZKA(){return{name:oJ.multipartPolicyName,async sendRequest(A,Q){if(!A.multipartBody)return Q(A);if(A.body)throw Error("multipartBody and regular body cannot be set at the same time");let B=A.multipartBody.boundary,E=A.headers.get("Content-Type")??"multipart/mixed",I=E.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!I)throw Error(`Got multipart request body, but content-type header was not multipart: ${E}`);let[,C,D]=I;if(D&&B&&D!==B)throw Error(`Multipart boundary was specified as ${D} in the header, but got ${B} in the request body`);if(B??=D,B)UKA(B);else B=CKA();return A.headers.set("Content-Type",`${C}; boundary=${B}`),await JKA(A,A.multipartBody.parts,B),A.multipartBody=void 0,Q(A)}}}});var zc=K((vz)=>{Object.defineProperty(vz,"__esModule",{value:!0});vz.createPipelineFromOptions=RKA;var WKA=Zz(),XKA=Bz(),$KA=Wz(),KKA=Kz(),LKA=Lz(),VKA=Tz(),zKA=Oz(),Lc=H5(),HKA=fz(),wKA=xz(),MKA=hz(),Vc=_z();function RKA(A){let Q=(0,XKA.createEmptyPipeline)();if(Lc.isNodeLike){if(A.agent)Q.addPolicy((0,wKA.agentPolicy)(A.agent));if(A.tlsOptions)Q.addPolicy((0,MKA.tlsPolicy)(A.tlsOptions));Q.addPolicy((0,HKA.proxyPolicy)(A.proxyOptions)),Q.addPolicy((0,LKA.decompressResponsePolicy)())}if(Q.addPolicy((0,zKA.formDataPolicy)(),{beforePolicies:[Vc.multipartPolicyName]}),Q.addPolicy((0,KKA.userAgentPolicy)(A.userAgentOptions)),Q.addPolicy((0,Vc.multipartPolicy)(),{afterPhase:"Deserialize"}),Q.addPolicy((0,VKA.defaultRetryPolicy)(A.retryOptions),{phase:"Retry"}),Lc.isNodeLike)Q.addPolicy((0,$KA.redirectPolicy)(A.redirectOptions),{afterPhase:"Retry"});return Q.addPolicy((0,WKA.logPolicy)(A.loggingOptions),{afterPhase:"Sign"}),Q}});var Hc=K((rJ)=>{Object.defineProperty(rJ,"__esModule",{value:!0});rJ.apiVersionPolicyName=void 0;rJ.apiVersionPolicy=gKA;rJ.apiVersionPolicyName="ApiVersionPolicy";function gKA(A){return{name:rJ.apiVersionPolicyName,sendRequest:(Q,B)=>{let E=new URL(Q.url);if(!E.searchParams.get("api-version")&&A.apiVersion)Q.url=`${Q.url}${Array.from(E.searchParams.keys()).length>0?"&":"?"}api-version=${A.apiVersion}`;return B(Q)}}}});var wc=K((tJ)=>{Object.defineProperty(tJ,"__esModule",{value:!0});tJ.isOAuth2TokenCredential=TKA;tJ.isBearerTokenCredential=OKA;tJ.isBasicCredential=qKA;tJ.isApiKeyCredential=jKA;function TKA(A){return"getOAuth2Token"in A}function OKA(A){return"getBearerToken"in A}function qKA(A){return"username"in A&&"password"in A}function jKA(A){return"key"in A}});var R5=K((bz)=>{Object.defineProperty(bz,"__esModule",{value:!0});bz.ensureSecureConnection=xKA;var PKA=K5(),Mc=!1;function kKA(A,Q){if(Q.allowInsecureConnection&&A.allowInsecureConnection){let B=new URL(A.url);if(B.hostname==="localhost"||B.hostname==="127.0.0.1")return!0}return!1}function fKA(){if(PKA.logger.warning("Sending token over insecure transport. Assume any token issued is compromised."),typeof process?.emitWarning==="function"&&!Mc)Mc=!0,process.emitWarning("Sending token over insecure transport. Assume any token issued is compromised.")}function xKA(A,Q){if(!A.url.toLowerCase().startsWith("https://"))if(kKA(A,Q))fKA();else throw Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var Rc=K((eJ)=>{Object.defineProperty(eJ,"__esModule",{value:!0});eJ.apiKeyAuthenticationPolicyName=void 0;eJ.apiKeyAuthenticationPolicy=SKA;var hKA=R5();eJ.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function SKA(A){return{name:eJ.apiKeyAuthenticationPolicyName,async sendRequest(Q,B){(0,hKA.ensureSecureConnection)(Q,A);let E=(Q.authSchemes??A.authSchemes)?.find((I)=>I.kind==="apiKey");if(!E)return B(Q);if(E.apiKeyLocation!=="header")throw Error(`Unsupported API key location: ${E.apiKeyLocation}`);return Q.headers.set(E.name,A.credential.key),B(Q)}}}});var Tc=K((AG)=>{Object.defineProperty(AG,"__esModule",{value:!0});AG.basicAuthenticationPolicyName=void 0;AG.basicAuthenticationPolicy=_KA;var gc=g1(),yKA=R5();AG.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function _KA(A){return{name:AG.basicAuthenticationPolicyName,async sendRequest(Q,B){if((0,yKA.ensureSecureConnection)(Q,A),!(Q.authSchemes??A.authSchemes)?.find((F)=>F.kind==="http"&&F.scheme==="basic"))return B(Q);let{username:I,password:C}=A.credential,D=(0,gc.uint8ArrayToString)((0,gc.stringToUint8Array)(`${I}:${C}`,"utf-8"),"base64");return Q.headers.set("Authorization",`Basic ${D}`),B(Q)}}}});var Oc=K((QG)=>{Object.defineProperty(QG,"__esModule",{value:!0});QG.bearerAuthenticationPolicyName=void 0;QG.bearerAuthenticationPolicy=bKA;var Line truncated
`).join("")}return Q(A)}}}});var Jp=K((x1)=>{Object.defineProperty(x1,"__esModule",{value:!0});x1.auxiliaryAuthenticationHeaderPolicyName=void 0;x1.auxiliaryAuthenticationHeaderPolicy=WHA;var NHA=xH(),UHA=T5();x1.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var Yp="x-ms-authorization-auxiliary";async function ZHA(A){let{scopes:Q,getAccessToken:B,request:E}=A,I={abortSignal:E.abortSignal,tracingOptions:E.tracingOptions};return(await B(Q,I))?.token??""}function WHA(A){let{credentials:Q,scopes:B}=A,E=A.logger||UHA.logger,I=new WeakMap;return{name:x1.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(C,D){if(!C.url.toLowerCase().startsWith("https://"))throw Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!Q||Q.length===0)return E.info(`${x1.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),D(C);let F=[];for(let J of Q){let G=I.get(J);if(!G)G=(0,NHA.createTokenCycler)(J),I.set(J,G);F.push(ZHA({scopes:Array.isArray(B)?B:[B],request:C,getAccessToken:G,logger:E}))}let Y=(await Promise.all(F)).filter((J)=>Boolean(J));if(Y.length===0)return E.warning(`None of the auxiliary tokens are valid. ${Yp} header will not be set.`),D(C);return C.headers.set(Yp,Y.map((J)=>`Bearer ${J}`).join(", ")),D(C)}}}});var EE=K((WA)=>{Object.defineProperty(WA,"__esModule",{value:!0});WA.createFileFromStream=WA.createFile=WA.agentPolicyName=WA.agentPolicy=WA.auxiliaryAuthenticationHeaderPolicyName=WA.auxiliaryAuthenticationHeaderPolicy=WA.ndJsonPolicyName=WA.ndJsonPolicy=WA.bearerTokenAuthenticationPolicyName=WA.bearerTokenAuthenticationPolicy=WA.formDataPolicyName=WA.formDataPolicy=WA.tlsPolicyName=WA.tlsPolicy=WA.userAgentPolicyName=WA.userAgentPolicy=WA.defaultRetryPolicy=WA.tracingPolicyName=WA.tracingPolicy=WA.retryPolicy=WA.throttlingRetryPolicyName=WA.throttlingRetryPolicy=WA.systemErrorRetryPolicyName=WA.systemErrorRetryPolicy=WA.redirectPolicyName=WA.redirectPolicy=WA.getDefaultProxySettings=WA.proxyPolicyName=WA.proxyPolicy=WA.multipartPolicyName=WA.multipartPolicy=WA.logPolicyName=WA.logPolicy=WA.setClientRequestIdPolicyName=WA.setClientRequestIdPolicy=WA.exponentialRetryPolicyName=WA.exponentialRetryPolicy=WA.decompressResponsePolicyName=WA.decompressResponsePolicy=WA.isRestError=WA.RestError=WA.createPipelineRequest=WA.createHttpHeaders=WA.createDefaultHttpClient=WA.createPipelineFromOptions=WA.createEmptyPipeline=void 0;var XHA=oz();Object.defineProperty(WA,"createEmptyPipeline",{enumerable:!0,get:function(){return XHA.createEmptyPipeline}});var $HA=pl();Object.defineProperty(WA,"createPipelineFromOptions",{enumerable:!0,get:function(){return $HA.createPipelineFromOptions}});var KHA=il();Object.defineProperty(WA,"createDefaultHttpClient",{enumerable:!0,get:function(){return KHA.createDefaultHttpClient}});var LHA=nl();Object.defineProperty(WA,"createHttpHeaders",{enumerable:!0,get:function(){return LHA.createHttpHeaders}});var VHA=al();Object.defineProperty(WA,"createPipelineRequest",{enumerable:!0,get:function(){return VHA.createPipelineRequest}});var Gp=xZ();Object.defineProperty(WA,"RestError",{enumerable:!0,get:function(){return Gp.RestError}});Object.defineProperty(WA,"isRestError",{enumerable:!0,get:function(){return Gp.isRestError}});var Np=UH();Object.defineProperty(WA,"decompressResponsePolicy",{enumerable:!0,get:function(){return Np.decompressResponsePolicy}});Object.defineProperty(WA,"decompressResponsePolicyName",{enumerable:!0,get:function(){return Np.decompressResponsePolicyName}});var Up=ol();Object.defineProperty(WA,"exponentialRetryPolicy",{enumerable:!0,get:function(){return Up.exponentialRetryPolicy}});Object.defineProperty(WA,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return Up.exponentialRetryPolicyName}});var Zp=KH();Object.defineProperty(WA,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return Zp.setClientRequestIdPolicy}});Object.defineProperty(WA,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return Zp.setClientRequestIdPolicyName}});var Wp=tz();Object.defineProperty(WA,"logPolicy",{enumerable:!0,get:function(){return Wp.logPolicy}});Object.defineProperty(WA,"logPolicyName",{enumerable:!0,get:function(){return Wp.logPolicyName}});var Xp=NH();Object.defineProperty(WA,"multipartPolicy",{enumerable:!0,get:function(){return Xp.multipartPolicy}});Object.defineProperty(WA,"multipartPolicyName",{enumerable:!0,get:function(){return Xp.multipartPolicyName}});var hH=$H();Object.defineProperty(WA,"proxyPolicy",{enumerable:!0,get:function(){return hH.proxyPolicy}});Object.defineProperty(WA,"proxyPolicyName",{enumerable:!0,get:function(){return hH.proxyPolicyName}});Object.defineProperty(WA,"getDefaultProxySettings",{enumerable:!0,get:function(){return hH.getDefaultProxySettings}});var $p=ez();Object.defineProperty(WA,"redirectPolicy",{enumerable:!0,get:function(){return $p.redirectPolicy}});Object.defineProperty(WA,"redirect Line truncated
`&&L[S]!=="\r";S++)f+=L[S];if(f=f.trim(),f[f.length-1]==="/"&&(f=f.substring(0,f.length-1),S--),!C(f)){let r;return r=f.trim().length===0?"Invalid space after '<'.":"Tag '"+f+"' is an invalid name.",w("InvalidTag",r,M(L,S))}let v=Z(L,S);if(v===!1)return w("InvalidAttr","Attributes for '"+f+"' have open quote.",M(L,S));let a=v.value;if(S=v.index,a[a.length-1]==="/"){let r=S-a.length;a=a.substring(0,a.length-1);let $A=$(a,H);if($A!==!0)return w($A.err.code,$A.err.msg,M(L,r+$A.err.line));h=!0}else if(q){if(!v.tagClosed)return w("InvalidTag","Closing tag '"+f+"' doesn't have proper closing.",M(L,S));if(a.trim().length>0)return w("InvalidTag","Closing tag '"+f+"' can't have attributes or invalid starting.",M(L,z));if(j.length===0)return w("InvalidTag","Closing tag '"+f+"' has not been opened.",M(L,z));{let r=j.pop();if(f!==r.tagName){let $A=M(L,r.tagStartPos);return w("InvalidTag","Expected closing tag '"+r.tagName+"' (opened in line "+$A.line+", col "+$A.col+") instead of closing tag '"+f+"'.",M(L,z))}j.length==0&&(P=!0)}}else{let r=$(a,H);if(r!==!0)return w(r.err.code,r.err.msg,M(L,S-a.length+r.err.line));if(P===!0)return w("InvalidXml","Multiple possible root nodes found.",M(L,S));H.unpairedTags.indexOf(f)!==-1||j.push({tagName:f,tagStartPos:z}),h=!0}for(S++;S<L.length;S++)if(L[S]==="<"){if(L[S+1]==="!"){S++,S=G(L,S);continue}if(L[S+1]!=="?")break;if(S=J(L,++S),S.err)return S}else if(L[S]==="&"){let r=V(L,S);if(r==-1)return w("InvalidChar","char '&' is not expected.",M(L,S));S=r}else if(P===!0&&!Y(L[S]))return w("InvalidXml","Extra text at the end",M(L,S));L[S]==="<"&&S--}}}return h?j.length==1?w("InvalidTag","Unclosed tag '"+j[0].tagName+"'.",M(L,j[0].tagStartPos)):!(j.length>0)||w("InvalidXml","Invalid '"+JSON.stringify(j.map((S)=>S.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):w("InvalidXml","Start tag expected.",1)}function Y(L){return L===" "||L==="\t"||L===`
`||L==="\r"}function J(L,H){let j=H;for(;H<L.length;H++)if(L[H]!="?"&&L[H]!=" ");else{let h=L.substr(j,H-j);if(H>5&&h==="xml")return w("InvalidXml","XML declaration allowed only at the start of the document.",M(L,H));if(L[H]=="?"&&L[H+1]==">"){H++;break}}return H}function G(L,H){if(L.length>H+5&&L[H+1]==="-"&&L[H+2]==="-"){for(H+=3;H<L.length;H++)if(L[H]==="-"&&L[H+1]==="-"&&L[H+2]===">"){H+=2;break}}else if(L.length>H+8&&L[H+1]==="D"&&L[H+2]==="O"&&L[H+3]==="C"&&L[H+4]==="T"&&L[H+5]==="Y"&&L[H+6]==="P"&&L[H+7]==="E"){let j=1;for(H+=8;H<L.length;H++)if(L[H]==="<")j++;else if(L[H]===">"&&(j--,j===0))break}else if(L.length>H+9&&L[H+1]==="["&&L[H+2]==="C"&&L[H+3]==="D"&&L[H+4]==="A"&&L[H+5]==="T"&&L[H+6]==="A"&&L[H+7]==="["){for(H+=8;H<L.length;H++)if(L[H]==="]"&&L[H+1]==="]"&&L[H+2]===">"){H+=2;break}}return H}let N='"',U="'";function Z(L,H){let j="",h="",P=!1;for(;H<L.length;H++){if(L[H]===N||L[H]===U)h===""?h=L[H]:h!==L[H]||(h="");else if(L[H]===">"&&h===""){P=!0;break}j+=L[H]}return h===""&&{value:j,index:H,tagClosed:P}}let X=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function $(L,H){let j=I(L,X),h={};for(let P=0;P<j.length;P++){if(j[P][1].length===0)return w("InvalidAttr","Attribute '"+j[P][2]+"' has no space in starting.",k(j[P]));if(j[P][3]!==void 0&&j[P][4]===void 0)return w("InvalidAttr","Attribute '"+j[P][2]+"' is without value.",k(j[P]));if(j[P][3]===void 0&&!H.allowBooleanAttributes)return w("InvalidAttr","boolean attribute '"+j[P][2]+"' is not allowed.",k(j[P]));let S=j[P][2];if(!g(S))return w("InvalidAttr","Attribute '"+S+"' is an invalid name.",k(j[P]));if(h.hasOwnProperty(S))return w("InvalidAttr","Attribute '"+S+"' is repeated.",k(j[P]));h[S]=1}return!0}function V(L,H){if(L[++H]===";")return-1;if(L[H]==="#")return function(h,P){let S=/\d/;for(h[P]==="x"&&(P++,S=/[\da-fA-F]/);P<h.length;P++){if(h[P]===";")return P;if(!h[P].match(S))break}return-1}(L,++H);let j=0;for(;H<L.length;H++,j++)if(!(L[H].match(/\w/)&&j<20)){if(L[H]===";")break;return-1}return H}function w(L,H,j){return{err:{code:L,msg:H,line:j.line||j,col:j.col}}}function g(L){return C(L)}function M(L,H){let j=L.substring(0,H).split(/\r?\n/);return{line:j.length,col:j[j.length-1].length+1}}function k(L){return L.startIndex+L[1].length}let d={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(L,H){return H},attributeValueProcessor:function(L,H){return H},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(L,H,j){return L},captureMetaData:!1},t;t=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class m{constructor(L){this.tagname=L,this.child=[],this[":@"]={}}add(L,H){L==="__proto__"&&(L="#__proto__"),this.child.push({[L]:H})}addChild(L,H){L.tagname==="__proto__"&&(L.tagname="#__proto__"),L[":@"]&&Object.keys(L[":@"]).length>0?this.child.push({[L.tagname]:L.child,":@":L[":@"]}):this.child.push({[L.tagname]:L.child}),H!==void 0&&(this.child[this.child.length-1][t]={startIndex:H})}static getMetaDataSymbol(){return t}}function n(L,H){let j={};if(L[H+3]!=="O"||L[H+4]!=="C"||L[H+5]!=="T"||L[H+6]!=="Y"||L[H+7]!=="P"||L[H+8]!=="E")throw Error("Invalid Tag instead of DOCTYPE");{H+=9;let h=1,P=!1,S=!1,z="";for(;H<L.length;H++)if(L[H]!=="<"||S)if(L[H]===">"){if(S?L[H-1]==="-"&&L[H-2]==="-"&&(S=!1,h--):h--,h===0)break}else L[H]==="["?P=!0:z+=L[H];else{if(P&&i(L,"!ENTITY",H)){let q,f;H+=7,[q,f,H]=x(L,H+1),f.indexOf("&")===-1&&(j[q]={regx:RegExp(`&${q};`,"g"),val:f})}else if(P&&i(L,"!ELEMENT",H)){H+=8;let{index:q}=CA(L,H+1);H=q}else if(P&&i(L,"!ATTLIST",H))H+=8;else if(P&&i(L,"!NOTATION",H)){H+=9;let{index:q}=l(L,H+1);H=q}else{if(!i(L,"!--",H))throw Error("Invalid DOCTYPE");S=!0}h++,z=""}if(h!==0)throw Error("Unclosed DOCTYPE")}return{entities:j,i:H}}let QA=(L,H)=>{for(;H<L.length&&/\s/.test(L[H]);)H++;return H};function x(L,H){H=QA(L,H);let j="";for(;H<L.length&&!/\s/.test(L[H])&&L[H]!=='"'&&L[H]!=="'";)j+=L[H],H++;if(KA(j),H=QA(L,H),L.substring(H,H+6).toUpperCase()==="SYSTEM")throw Error("External entities are not supported");if(L[H]==="%")throw Error("Parameter entities are not supported");let h="";return[H,h]=u(L,H,"entity"),[j,h,--H]}function l(L,H){H=QA(L,H);let j="";for(;H<L.length&&!/\s/.test(L[H]);)j+=L[H],H++;KA(j),H=QA(L,H);let h=L.substring(H,H+6).toUpperCase();if(h!=="SYSTEM"&&h!=="PUBLIC")throw Error(`Expected SYSTEM or PUBLIC, found "${h}"`);H+=h.length,H=QA(L,H);let P=null,S=null;if(h==="PUBLIC")[H,P]=u(L,H,"publicIdentifier"),L[H=QA(L,H)]!=='"'&&L[H]!=="'"||([H,S]=u(L,H,"systemIdentifier"));else if(h==="SYSTEM"&&([H,S]=u(L,H,"systemIdentifier"),!S))throw Error("MissLine truncated
`);let H=new m("!xml"),j=H,h="",P="";for(let S=0;S<L.length;S++)if(L[S]==="<")if(L[S+1]==="/"){let z=e(L,">",S,"Closing Tag is not closed."),q=L.substring(S+2,z).trim();if(this.options.removeNSPrefix){let a=q.indexOf(":");a!==-1&&(q=q.substr(a+1))}this.options.transformTagName&&(q=this.options.transformTagName(q)),j&&(h=this.saveTextToParentTag(h,j,P));let f=P.substring(P.lastIndexOf(".")+1);if(q&&this.options.unpairedTags.indexOf(q)!==-1)throw Error(`Unpaired tag can not be used as closing tag: </${q}>`);let v=0;f&&this.options.unpairedTags.indexOf(f)!==-1?(v=P.lastIndexOf(".",P.lastIndexOf(".")-1),this.tagsNodeStack.pop()):v=P.lastIndexOf("."),P=P.substring(0,v),j=this.tagsNodeStack.pop(),h="",S=z}else if(L[S+1]==="?"){let z=EA(L,S,!1,"?>");if(!z)throw Error("Pi Tag is not closed.");if(h=this.saveTextToParentTag(h,j,P),this.options.ignoreDeclaration&&z.tagName==="?xml"||this.options.ignorePiTags);else{let q=new m(z.tagName);q.add(this.options.textNodeName,""),z.tagName!==z.tagExp&&z.attrExpPresent&&(q[":@"]=this.buildAttributesMap(z.tagExp,P,z.tagName)),this.addChild(j,q,P,S)}S=z.closeIndex+1}else if(L.substr(S+1,3)==="!--"){let z=e(L,"-->",S+4,"Comment is not closed.");if(this.options.commentPropName){let q=L.substring(S+4,z-2);h=this.saveTextToParentTag(h,j,P),j.add(this.options.commentPropName,[{[this.options.textNodeName]:q}])}S=z}else if(L.substr(S+1,2)==="!D"){let z=n(L,S);this.docTypeEntities=z.entities,S=z.i}else if(L.substr(S+1,2)==="!["){let z=e(L,"]]>",S,"CDATA is not closed.")-2,q=L.substring(S+9,z);h=this.saveTextToParentTag(h,j,P);let f=this.parseTextData(q,j.tagname,P,!0,!1,!0,!0);f==null&&(f=""),this.options.cdataPropName?j.add(this.options.cdataPropName,[{[this.options.textNodeName]:q}]):j.add(this.options.textNodeName,f),S=z+2}else{let z=EA(L,S,this.options.removeNSPrefix),q=z.tagName,f=z.rawTagName,v=z.tagExp,a=z.attrExpPresent,r=z.closeIndex;this.options.transformTagName&&(q=this.options.transformTagName(q)),j&&h&&j.tagname!=="!xml"&&(h=this.saveTextToParentTag(h,j,P,!1));let $A=j;$A&&this.options.unpairedTags.indexOf($A.tagname)!==-1&&(j=this.tagsNodeStack.pop(),P=P.substring(0,P.lastIndexOf("."))),q!==H.tagname&&(P+=P?"."+q:q);let ZA=S;if(this.isItStopNode(this.options.stopNodes,P,q)){let VA="";if(v.length>0&&v.lastIndexOf("/")===v.length-1)q[q.length-1]==="/"?(q=q.substr(0,q.length-1),P=P.substr(0,P.length-1),v=q):v=v.substr(0,v.length-1),S=z.closeIndex;else if(this.options.unpairedTags.indexOf(q)!==-1)S=z.closeIndex;else{let hQ=this.readStopNodeData(L,f,r+1);if(!hQ)throw Error(`Unexpected end of ${f}`);S=hQ.i,VA=hQ.tagContent}let SA=new m(q);q!==v&&a&&(SA[":@"]=this.buildAttributesMap(v,P,q)),VA&&(VA=this.parseTextData(VA,q,P,!0,a,!0,!0)),P=P.substr(0,P.lastIndexOf(".")),SA.add(this.options.textNodeName,VA),this.addChild(j,SA,P,ZA)}else{if(v.length>0&&v.lastIndexOf("/")===v.length-1){q[q.length-1]==="/"?(q=q.substr(0,q.length-1),P=P.substr(0,P.length-1),v=q):v=v.substr(0,v.length-1),this.options.transformTagName&&(q=this.options.transformTagName(q));let VA=new m(q);q!==v&&a&&(VA[":@"]=this.buildAttributesMap(v,P,q)),this.addChild(j,VA,P,ZA),P=P.substr(0,P.lastIndexOf("."))}else{let VA=new m(q);this.tagsNodeStack.push(j),q!==v&&a&&(VA[":@"]=this.buildAttributesMap(v,P,q)),this.addChild(j,VA,P,ZA),j=VA}h="",S=r}}else h+=L[S];return H.child};function BA(L,H,j,h){this.options.captureMetaData||(h=void 0);let P=this.options.updateTag(H.tagname,j,H[":@"]);P===!1||(typeof P=="string"?(H.tagname=P,L.addChild(H,h)):L.addChild(H,h))}let HB=function(L){if(this.options.processEntities){for(let H in this.docTypeEntities){let j=this.docTypeEntities[H];L=L.replace(j.regx,j.val)}for(let H in this.lastEntities){let j=this.lastEntities[H];L=L.replace(j.regex,j.val)}if(this.options.htmlEntities)for(let H in this.htmlEntities){let j=this.htmlEntities[H];L=L.replace(j.regex,j.val)}L=L.replace(this.ampEntity.regex,this.ampEntity.val)}return L};function WQ(L,H,j,h){return L&&(h===void 0&&(h=H.child.length===0),(L=this.parseTextData(L,H.tagname,j,!1,!!H[":@"]&&Object.keys(H[":@"]).length!==0,h))!==void 0&&L!==""&&H.add(this.options.textNodeName,L),L=""),L}function NB(L,H,j){let h="*."+j;for(let P in L){let S=L[P];if(h===S||H===S)return!0}return!1}function e(L,H,j,h){let P=L.indexOf(H,j);if(P===-1)throw Error(h);return P+H.length-1}function EA(L,H,j,h=">"){let P=function(r,$A,ZA=">"){let VA,SA="";for(let hQ=$A;hQ<r.length;hQ++){let rQ=r[hQ];if(VA)rQ===VA&&(VA="");else if(rQ==='"'||rQ==="'")VA=rQ;else if(rQ===ZA[0]){if(!ZA[1])return{data:SA,index:hQ};if(r[hQ+1]===ZA[1])return{data:SA,index:hQ}}else rQ==="\t"&&(rQ=" ");SA+=rQ}}(L,H+1,h);if(!P)return;let{data:S,index:z}=P,q=S.search(/\s/),f=S,v=!0;q!==-1&&(f=S.substring(0,q),S=S.substring(q+1).trimStart());let a=f;if(j){let r=f.indexOf(":");r!==-1&&(f=f.substr(r+1),v=f!==P.data.substr(r+1))}return{tagName:f,tagExp:S,closeIndex:z,attrExpPresent:v,rawTagName:a}}function BQ(L,H,j){let h=j,P=1;for(;j<L.length;j++)if(L[j]==="<")if(L[j+1]==="/"){let S=e(L,">",j,`${Line truncated
`),xQ(L,H,"",j)}function xQ(L,H,j,h){let P="",S=!1;for(let z=0;z<L.length;z++){let q=L[z],f=G0(q);if(f===void 0)continue;let v="";if(v=j.length===0?f:`${j}.${f}`,f===H.textNodeName){let ZA=q[f];VQ(v,H)||(ZA=H.tagValueProcessor(f,ZA),ZA=W(ZA,H)),S&&(P+=h),P+=ZA,S=!1;continue}if(f===H.cdataPropName){S&&(P+=h),P+=`<![CDATA[${q[f][0][H.textNodeName]}]]>`,S=!1;continue}if(f===H.commentPropName){P+=h+`<!--${q[f][0][H.textNodeName]}-->`,S=!0;continue}if(f[0]==="?"){let ZA=wA(q[":@"],H),VA=f==="?xml"?"":h,SA=q[f][0][H.textNodeName];SA=SA.length!==0?" "+SA:"",P+=VA+`<${f}${SA}${ZA}?>`,S=!0;continue}let a=h;a!==""&&(a+=H.indentBy);let r=h+`<${f}${wA(q[":@"],H)}`,$A=xQ(q[f],H,v,a);H.unpairedTags.indexOf(f)!==-1?H.suppressUnpairedNode?P+=r+">":P+=r+"/>":$A&&$A.length!==0||!H.suppressEmptyNode?$A&&$A.endsWith(">")?P+=r+`>${$A}${h}</${f}>`:(P+=r+">",$A&&h!==""&&($A.includes("/>")||$A.includes("</"))?P+=h+H.indentBy+$A+h:P+=$A,P+=`</${f}>`):P+=r+"/>",S=!0}return P}function G0(L){let H=Object.keys(L);for(let j=0;j<H.length;j++){let h=H[j];if(L.hasOwnProperty(h)&&h!==":@")return h}}function wA(L,H){let j="";if(L&&!H.ignoreAttributes)for(let h in L){if(!L.hasOwnProperty(h))continue;let P=H.attributeValueProcessor(h,L[h]);P=W(P,H),P===!0&&H.suppressBooleanAttributes?j+=` ${h.substr(H.attributeNamePrefix.length)}`:j+=` ${h.substr(H.attributeNamePrefix.length)}="${P}"`}return j}function VQ(L,H){let j=(L=L.substr(0,L.length-H.textNodeName.length-1)).substr(L.lastIndexOf(".")+1);for(let h in H.stopNodes)if(H.stopNodes[h]===L||H.stopNodes[h]==="*."+j)return!0;return!1}function W(L,H){if(L&&L.length>0&&H.processEntities)for(let j=0;j<H.entities.length;j++){let h=H.entities[j];L=L.replace(h.regex,h.val)}return L}let b={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(L,H){return H},attributeValueProcessor:function(L,H){return H},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function p(L){this.options=Object.assign({},b,L),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=JA(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=LA),this.processTextOrObjNode=NA,this.options.format?(this.indentate=AA,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function NA(L,H,j,h){let P=this.j2x(L,j+1,h.concat(H));return L[this.options.textNodeName]!==void 0&&Object.keys(L).length===1?this.buildTextValNode(L[this.options.textNodeName],H,P.attrStr,j):this.buildObjectNode(P.val,H,P.attrStr,j)}function AA(L){return this.options.indentBy.repeat(L)}function LA(L){return!(!L.startsWith(this.options.attributeNamePrefix)||L===this.options.textNodeName)&&L.substr(this.attrPrefixLen)}p.prototype.build=function(L){return this.options.preserveOrder?_A(L,this.options):(Array.isArray(L)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(L={[this.options.arrayNodeName]:L}),this.j2x(L,0,[]).val)},p.prototype.j2x=function(L,H,j){let h="",P="",S=j.join(".");for(let z in L)if(Object.prototype.hasOwnProperty.call(L,z))if(L[z]===void 0)this.isAttribute(z)&&(P+="");else if(L[z]===null)this.isAttribute(z)||z===this.options.cdataPropName?P+="":z[0]==="?"?P+=this.indentate(H)+"<"+z+"?"+this.tagEndChar:P+=this.indentate(H)+"<"+z+"/"+this.tagEndChar;else if(L[z]instanceof Date)P+=this.buildTextValNode(L[z],z,"",H);else if(typeof L[z]!="object"){let q=this.isAttribute(z);if(q&&!this.ignoreAttributesFn(q,S))h+=this.buildAttrPairStr(q,""+L[z]);else if(!q)if(z===this.options.textNodeName){let f=this.options.tagValueProcessor(z,""+L[z]);P+=this.replaceEntitiesValue(f)}else P+=this.buildTextValNode(L[z],z,"",H)}else if(Array.isArray(L[z])){let q=L[z].length,f="",v="";for(let a=0;a<q;a++){let r=L[z][a];if(r===void 0);else if(r===null)z[0]==="?"?P+=this.indentate(H)+"<"+z+"?"+this.tagEndChar:P+=this.indentate(H)+"<"+z+"/"+this.tagEndChar;else if(typeof r=="object")if(this.options.oneListGroup){let $A=this.j2x(r,H+1,j.concat(z));f+=$A.val,this.options.attributesGroupName&&r.hasOwnProperty(this.options.attributesGroupName)&&(v+=$A.attrStr)}else f+=this.processTextOrObjNode(r,z,H,j);else if(this.options.oneListGroup){let $A=this.options.tagValueProcessor(z,r);$A=this.replaceEntitiesValue($A),f+=$A}else f+=this.buildTextValNode(r,z,"",H)}this.options.oneListGroup&&(f=this.buildObjectNode(f,z,v,H)),P+=f}else if(this.options.attributesGroupName&&z===this.options.attributesGroupName){let q=Object.keys(L[z]),f=q.length;for(let v=0;v<f;v++)h+=this.buildAttrPairStr(q[v],""+L[z][q[v]])}else P+=this.processTextOrObjNode(L[z],z,H,j);return{attrStr:h,val:P}},p.prototype.buildAttrPairStr=function(L,H){return H=this.options.attributeValueProcessor(L,""+H),H=this.replaceEntitiesValue(H),this.options.suppressBooleanAttributes&&H==="true"?" "+L:" "+L+'="'+H+'"'},p.prototype.buildObjectNode=function(L,H,j,h){if(L==="")return H[0]==="?"?this.indentate(h)+"<"+H+j+"?"+this.tagEndChar:this.indentate(h)+"<"+H+j+this.closeTag(H)+this.tagEndChar;{let P="</"+H+this.tagEndChar,S="";return H[0]==="?"&&(S="?",P=""),!j&&j!==""||L.indexOf("<")!==-1?this.options.commentPropName!==!1&&H===this.options.commentPropName&&S.length===0?this.indentate(h)+`<!--${L}-->`+this.newLine:this.indentate(h)+"<"+H+j+S+this.tagEndChar+L+this.indentate(h)+P:this.indentate(h)+"<"+H+j+S+">"+L+P}},p.prototype.closeTag=function(L){let H="";return this.options.unpairedTags.indexOf(L)!==-1?this.options.suppressUnpairedNode||(H="/"):H=this.options.suppressEmptyNode?"/":`></${L}`,H},p.prototype.buildTextValNode=function(L,H,j,h){if(this.options.cdataPropName!==!1&&H===this.options.cdataPropName)return this.indentate(h)+`<![CDATA[${L}]]>`+this.newLine;if(this.options.commentPropName!==!1&&H===this.options.commentPropName)return this.indentate(h)+`<!--${L}-->`+this.newLine;if(H[0]==="?")return this.indentate(h)+"<"+H+j+"?"+this.tagEndChar;{let P=this.options.tagValueProcessor(H,L);return P=this.replaceEntitiesValue(P),P===""?this.indentate(h)+"<"+H+j+this.closeTag(H)+this.tagEndChar:this.indentate(h)+"<"+H+j+">"+P+"</"+H+this.tagEndChar}},p.prototype.replaceEntitiesValue=function(L){if(L&&L.length>0&&this.options.processEntities)for(let H=0;H<this.options.entities.length;H++){let j=this.options.entities[H];L=L.replace(j.regex,j.val)}return L};let UA={validate:F};fi.exports=Q})()});var Aw=K((RG)=>{Object.defineProperty(RG,"__esModule",{value:!0});RG.XML_CHARKEY=RG.XML_ATTRKEY=void 0;RG.XML_ATTRKEY="$";RG.XML_CHARKEY="_"});var yi=K((QW)=>{Object.defineProperty(QW,"__esModule",{value:!0});QW.stringifyXML=PMA;QW.parseXML=kMA;var Qw=xi(),hi=Aw();function Si(A){var Q;return{attributesGroupName:hi.XML_ATTRKEY,textNodeName:(Q=A.xmlCharKey)!==null&&Q!==void 0?Q:hi.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function qMA(A={}){var Q,B;return Object.assign(Object.assign({},Si(A)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(Q=A.rootName)!==null&&Q!==void 0?Q:"root",cdataPropName:(B=A.cdataPropName)!==null&&B!==void 0?B:"__cdata"})}function jMA(A={}){return Object.assign(Object.assign({},Si(A)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:A.stopNodes,processEntities:!0,trimValues:!1})}function PLine truncated
`;mA.HTTP_VERSION_1_1="HTTP/1.1";mA.EncryptionAlgorithmAES25="AES256";mA.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";mA.StorageBlobLoggingAllowedHeaderNames=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"];mA.StorageBlobLoggingAllowedQueryParameters=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];mA.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";mA.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";mA.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var ME=K((LQ)=>{Object.defineProperty(LQ,"__esModule",{value:!0});LQ.escapeURLPath=SMA;LQ.getValueInConnString=NF;LQ.extractConnectionStringParts=_MA;LQ.appendToURLPath=bMA;LQ.setURLParameter=ci;LQ.getURLParameter=li;LQ.setURLHost=uMA;LQ.getURLPath=mMA;LQ.getURLScheme=dMA;LQ.getURLPathAndQuery=cMA;LQ.getURLQueries=lMA;LQ.appendToURLQuery=pMA;LQ.truncatedISO8061Date=iMA;LQ.base64encode=pi;LQ.base64decode=nMA;LQ.generateBlockID=aMA;LQ.delay=sMA;LQ.padStart=ii;LQ.sanitizeURL=ni;LQ.sanitizeHeaders=oMA;LQ.iEqual=rMA;LQ.getAccountNameFromUrl=ai;LQ.isIpEndpointStyle=si;LQ.toBlobTagsString=tMA;LQ.toBlobTags=eMA;LQ.toTags=ARA;LQ.toQuerySerialization=QRA;LQ.parseObjectReplicationRecord=BRA;LQ.attachCredential=ERA;LQ.httpAuthorizationToString=IRA;LQ.BlobNameToString=DW;LQ.ConvertInternalResponseOfListBlobFlat=CRA;LQ.ConvertInternalResponseOfListBlobHierarchy=DRA;LQ.ExtractPageRangeInfoItems=FRA;LQ.EscapePath=YRA;LQ.assertResponse=JRA;var hMA=EE(),di=BB(),TG=IE();function SMA(A){let Q=new URL(A),B=Q.pathname;return B=B||"/",B=vMA(B),Q.pathname=B,Q.toString()}function yMA(A){let Q="";if(A.search("DevelopmentStorageProxyUri=")!==-1){let B=A.split(";");for(let E of B)if(E.trim().startsWith("DevelopmentStorageProxyUri="))Q=E.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}return Q}function NF(A,Q){let B=A.split(";");for(let E of B)if(E.trim().startsWith(Q))return E.trim().match(Q+"=(.*)")[1];return""}function _MA(A){let Q="";if(A.startsWith("UseDevelopmentStorage=true"))Q=yMA(A),A=TG.DevelopmentConnectionString;let B=NF(A,"BlobEndpoint");if(B=B.endsWith("/")?B.slice(0,-1):B,A.search("DefaultEndpointsProtocol=")!==-1&&A.search("AccountKey=")!==-1){let E="",I="",C=Buffer.from("accountKey","base64"),D="";if(I=NF(A,"AccountName"),C=Buffer.from(NF(A,"AccountKey"),"base64"),!B){E=NF(A,"DefaultEndpointsProtocol");let F=E Line truncated
`)+`
`+this.getCanonicalizedHeadersString(A)+this.getCanonicalizedResourceString(A),B=this.factory.computeHMACSHA256(Q);return A.headers.set(sE.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${B}`),A}getHeaderValueToSign(A,Q){let B=A.headers.get(Q);if(!B)return"";if(Q===sE.HeaderConstants.CONTENT_LENGTH&&B==="0")return"";return B}getCanonicalizedHeadersString(A){let Q=A.headers.headersArray().filter((E)=>{return E.name.toLowerCase().startsWith(sE.HeaderConstants.PREFIX_FOR_STORAGE)});Q.sort((E,I)=>{return(0,MRA.compareHeader)(E.name.toLowerCase(),I.name.toLowerCase())}),Q=Q.filter((E,I,C)=>{if(I>0&&E.name.toLowerCase()===C[I-1].name.toLowerCase())return!1;return!0});let B="";return Q.forEach((E)=>{B+=`${E.name.toLowerCase().trimRight()}:${E.value.trimLeft()}
`}),B}getCanonicalizedResourceString(A){let Q=(0,Qn.getURLPath)(A.url)||"/",B="";B+=`/${this.factory.accountName}${Q}`;let E=(0,Qn.getURLQueries)(A.url),I={};if(E){let C=[];for(let D in E)if(Object.prototype.hasOwnProperty.call(E,D)){let F=D.toLowerCase();I[F]=E[D],C.push(F)}C.sort();for(let D of C)B+=`
${D}:${decodeURIComponent(I[D])}`}return B}}GW.StorageSharedKeyCredentialPolicy=Bn});var UW=K((NW)=>{Object.defineProperty(NW,"__esModule",{value:!0});NW.Credential=void 0;class En{create(A,Q){throw Error("Method should be implemented in children classes.")}}NW.Credential=En});var XF=K((ZW)=>{Object.defineProperty(ZW,"__esModule",{value:!0});ZW.StorageSharedKeyCredential=void 0;var RRA=require("node:crypto"),gRA=Jw(),TRA=UW();class In extends TRA.Credential{accountName;accountKey;constructor(A,Q){super();this.accountName=A,this.accountKey=Buffer.from(Q,"base64")}create(A,Q){return new gRA.StorageSharedKeyCredentialPolicy(A,Q,this)}computeHMACSHA256(A){return(0,RRA.createHmac)("sha256",this.accountKey).update(A,"utf8").digest("base64")}}ZW.StorageSharedKeyCredential=In});var Gw=K((WW)=>{Object.defineProperty(WW,"__esModule",{value:!0});WW.AnonymousCredentialPolicy=void 0;var ORA=JW();class Cn extends ORA.CredentialPolicy{constructor(A,Q){super(A,Q)}}WW.AnonymousCredentialPolicy=Cn});var $F=K((XW)=>{Object.defineProperty(XW,"__esModule",{value:!0});XW.AnonymousCredential=void 0;var qRA=Gw(),jRA=UW();class Dn extends jRA.Credential{create(A,Q){return new qRA.AnonymousCredentialPolicy(A,Q)}}XW.AnonymousCredential=Dn});var Yn=K(($W)=>{Object.defineProperty($W,"__esModule",{value:!0});$W.BuffersStream=void 0;var PRA=require("node:stream");class Fn extends PRA.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(A,Q,B){super(B);this.buffers=A,this.byteLength=Q,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let E=0;for(let I of this.buffers)E+=I.byteLength;if(E<this.byteLength)throw Error("Data size shouldn't be larger than the total length of buffers.")}_read(A){if(this.pushedBytesLength>=this.byteLength)this.push(null);if(!A)A=this.readableHighWaterMark;let Q=[],B=0;while(B<A&&this.pushedBytesLength<this.byteLength){let E=this.byteLength-this.pushedBytesLength,I=this.buffers[this.bufferIndex].byteLength-this.byteOffsetInCurrentBuffer,C=Math.min(I,E);if(C>A-B){let D=this.byteOffsetInCurrentBuffer+A-B;Q.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,D)),this.pushedBytesLength+=A-B,this.byteOffsetInCurrentBuffer=D,B=A;break}else{let D=this.byteOffsetInCurrentBuffer+C;if(Q.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,D)),C===I)this.byteOffsetInCurrentBuffer=0,this.bufferIndex++;else this.byteOffsetInCurrentBuffer=D;this.pushedBytesLength+=C,B+=C}}if(Q.length>1)this.push(Buffer.concat(Q));else if(Q.length===1)this.push(Q[0])}}$W.BuffersStream=Fn});var Gn=K((LW)=>{Object.defineProperty(LW,"__esModule",{value:!0});LW.PooledBuffer=void 0;var kRA=RB(),fRA=Yn(),xRA=kRA.__importDefault(require("node:buffer")),KW=xRA.default.constants.MAX_LENGTH;class Jn{buffers=[];capacity;_size;get size(){return this._size}constructor(A,Q,B){this.capacity=A,this._size=0;let E=Math.ceil(A/KW);for(let I=0;I<E;I++){let C=I===E-1?A%KW:KW;if(C===0)C=KW;this.buffers.push(Buffer.allocUnsafe(C))}if(Q)this.fill(Q,B)}fill(A,Q){this._size=Math.min(this.capacity,Q);let B=0,E=0,I=0,C=0,D=0;while(D<this._size){let F=A[B],Y=this.buffers[E],J=F.copy(Y,I,C);if(D+=J,C+=J,I+=J,C===F.length)B++,C=0;if(I===Y.length)E++,I=0}if(A.splice(0,B),A.length>0)A[0]=A[0].slice(C)}getReadableStream(){return new fRA.BuffersStream(this.buffers,this.size)}}LW.PooledBuffer=Jn});var Un=K((VW)=>{Object.defineProperty(VW,"__esModule",{value:!0});VW.BufferScheduler=void 0;var hRA=require("events"),SRA=Gn();class Nn{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new hRA.EventEmitter;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(A,Q,B,E,I,C){if(Q<=0)throw RangeError(`bufferSize must be larger than 0, current is ${Q}`);if(B<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${B}`);if(I<=0)throw RangeError(`concurrency must be larger than 0, current is ${I}`);this.bufferSize=Q,this.maxBuffers=B,this.readable=A,this.outgoingHandler=E,this.concurrency=I,this.encoding=C}async do(){return new Promise((A,Q)=>{this.readable.on("data",(B)=>{if(B=typeof B==="string"?Buffer.from(B,this.encoding):B,this.appendUnresolvedData(B),!this.resolveData())this.readable.pause()}),this.readable.on("error",(B)=>{this.emitter.emit("error",B)}),this.readable.on("end",()=>{this.isStreamEnd=!0,this.emitter.emit("checkEnd")}),this.emitter.on("error",(B)=>{this.isError=!0,this.readable.pause(),Q(B)}),this.emitter.on("checkEnd",()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLength<this.bufferSize){let B=this.shiftBufferFromUnresolvedDataArray();this.outgoingHandler(()=>B.getReadableStream(),B.size,this.offset).then(A).catch(Q)}else if(this.unresolvedLength>=this.bufferSize)return;else A()})})}appendUnresolvedData(A){t Line truncated
`)+`
`+this.getCanonicalizedHeadersString(A)+this.getCanonicalizedResourceString(A),B=this.factory.computeHMACSHA256(Q);return A.headers.set(oE.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${B}`),A}getHeaderValueToSign(A,Q){let B=A.headers.get(Q);if(!B)return"";if(Q===oE.HeaderConstants.CONTENT_LENGTH&&B==="0")return"";return B}getCanonicalizedHeadersString(A){let Q=A.headers.headersArray().filter((E)=>{return E.name.toLowerCase().startsWith(oE.HeaderConstants.PREFIX_FOR_STORAGE)});Q.sort((E,I)=>{return(0,VgA.compareHeader)(E.name.toLowerCase(),I.name.toLowerCase())}),Q=Q.filter((E,I,C)=>{if(I>0&&E.name.toLowerCase()===C[I-1].name.toLowerCase())return!1;return!0});let B="";return Q.forEach((E)=>{B+=`${E.name.toLowerCase().trimRight()}:${E.value.trimLeft()}
`}),B}getCanonicalizedResourceString(A){let Q=(0,fn.getURLPath)(A.url)||"/",B="";B+=`/${this.factory.accountName}${Q}`;let E=(0,fn.getURLQueries)(A.url),I={};if(E){let C=[];for(let D in E)if(Object.prototype.hasOwnProperty.call(E,D)){let F=D.toLowerCase();I[F]=E[D],C.push(F)}C.sort();for(let D of C)B+=`
${D}:${decodeURIComponent(I[D])}`}return B}}qW.StorageSharedKeyCredentialPolicy=xn});var Sn=K((jW)=>{Object.defineProperty(jW,"__esModule",{value:!0});jW.StorageSharedKeyCredential=void 0;var zgA=require("node:crypto"),HgA=Lw(),wgA=TW();class hn extends wgA.Credential{accountName;accountKey;constructor(A,Q){super();this.accountName=A,this.accountKey=Buffer.from(Q,"base64")}create(A,Q){return new HgA.StorageSharedKeyCredentialPolicy(A,Q,this)}computeHMACSHA256(A){return(0,zgA.createHmac)("sha256",this.accountKey).update(A,"utf8").digest("base64")}}jW.StorageSharedKeyCredential=hn});var _n=K((PW)=>{Object.defineProperty(PW,"__esModule",{value:!0});PW.AbortError=void 0;class yn extends Error{constructor(A){super(A);this.name="AbortError"}}PW.AbortError=yn});var Vw=K((kW)=>{Object.defineProperty(kW,"__esModule",{value:!0});kW.AbortError=void 0;var MgA=_n();Object.defineProperty(kW,"AbortError",{enumerable:!0,get:function(){return MgA.AbortError}})});var zw=K((fW)=>{Object.defineProperty(fW,"__esModule",{value:!0});fW.logger=void 0;var RgA=P1();fW.logger=(0,RgA.createClientLogger)("storage-common")});var hW=K((xW)=>{Object.defineProperty(xW,"__esModule",{value:!0});xW.StorageRetryPolicyType=void 0;var vn;(function(A){A[A.EXPONENTIAL=0]="EXPONENTIAL",A[A.FIXED=1]="FIXED"})(vn||(xW.StorageRetryPolicyType=vn={}))});var Rw=K((EU)=>{Object.defineProperty(EU,"__esModule",{value:!0});EU.StorageRetryPolicy=void 0;EU.NewRetryPolicyFactory=OgA;var ggA=Vw(),TgA=BU(),bn=HD(),Hw=S1(),LF=zw(),ww=hW();function OgA(A){return{create:(Q,B)=>{return new Mw(Q,B,A)}}}var VF={maxRetryDelayInMs:120000,maxTries:4,retryDelayInMs:4000,retryPolicyType:ww.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},qgA=new ggA.AbortError("The operation was aborted.");class Mw extends TgA.BaseRequestPolicy{retryOptions;constructor(A,Q,B=VF){super(A,Q);this.retryOptions={retryPolicyType:B.retryPolicyType?B.retryPolicyType:VF.retryPolicyType,maxTries:B.maxTries&&B.maxTries>=1?Math.floor(B.maxTries):VF.maxTries,tryTimeoutInMs:B.tryTimeoutInMs&&B.tryTimeoutInMs>=0?B.tryTimeoutInMs:VF.tryTimeoutInMs,retryDelayInMs:B.retryDelayInMs&&B.retryDelayInMs>=0?Math.min(B.retryDelayInMs,B.maxRetryDelayInMs?B.maxRetryDelayInMs:VF.maxRetryDelayInMs):VF.retryDelayInMs,maxRetryDelayInMs:B.maxRetryDelayInMs&&B.maxRetryDelayInMs>=0?B.maxRetryDelayInMs:VF.maxRetryDelayInMs,secondaryHost:B.secondaryHost?B.secondaryHost:VF.secondaryHost}}async sendRequest(A){return this.attemptSendRequest(A,!1,1)}async attemptSendRequest(A,Q,B){let E=A.clone(),I=Q||!this.retryOptions.secondaryHost||!(A.method==="GET"||A.method==="HEAD"||A.method==="OPTIONS")||B%2===1;if(!I)E.url=(0,Hw.setURLHost)(E.url,this.retryOptions.secondaryHost);if(this.retryOptions.tryTimeoutInMs)E.url=(0,Hw.setURLParameter)(E.url,bn.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1000).toString());let C;try{if(LF.logger.info(`RetryPolicy: =====> Try=${B} ${I?"Primary":"Secondary"}`),C=await this._nextPolicy.sendRequest(E),!this.shouldRetry(I,B,C))return C;Q=Q||!I&&C.status===404}catch(D){if(LF.logger.error(`RetryPolicy: Caught error, message: ${D.message}, code: ${D.code}`),!this.shouldRetry(I,B,C,D))throw D}return await this.delay(I,B,A.abortSignal),this.attemptSendRequest(A,Q,++B)}shouldRetry(A,Q,B,E){if(Q>=this.retryOptions.maxTries)return LF.logger.info(`RetryPolicy: Attempt(s) ${Q} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let I=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(E){for(let C of I)if(E.name.toUpperCase().includes(C)||E.message.toUpperCase().includes(C)||E.code&&E.code.toString().toUpperCase()===C)return LF.logger.info(`RetryPolicy: Network error ${C} found, will retry.`),!0}if(B||E){let C=B?B.status:E?E.statusCode:0;if(!A&&C===404)return LF.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(C===503||C===500)return LF.logger.info(`RetryPolicy: Will retry for status code ${C}.`),!0}if(B){if(B?.status>=400){let C=B.headers.get(bn.HeaderConstants.X_MS_CopySourceErrorCode);if(C!==void 0)switch(C){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}}if(E?.code==="PARSE_ERROR"&&E?.message.startsWith('Error "Error: Unclosed root tag'))return LF.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0;return!1}async delay(A,Q,B){let E=0;if(A)switch(this.retryOptions.retryPolicyType){case ww.StorageRetryPolicyType.EXPONENTIAL:E=Math.min((Math.pow(2,Q-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ww.StorageRetryPolicyType.FIXED:E=this.retryOptions.retryDelayInMs;break}else E=Math.random()*1000;return LF.logger.info(`RetryPolicy: Delay for ${E}ms`),(0,Hw.delay)(E,B,qgA)}}EU.StorageRetryPolicy=Mw});var SW=K((zF)=>{Object.defineProperty(zF,"__esModule",{value:!0});zF.StorageRetryPolicyFactory=zF.StorageRetryPolicy=zF.StorageRetryPolicyType=void Line truncated
`)+`
`+E(C)+I(C),F=(0,ugA.createHmac)("sha256",A.accountKey).update(D,"utf8").digest("base64");C.headers.set(rE.HeaderConstants.AUTHORIZATION,`SharedKey ${A.accountName}:${F}`)}function B(C,D){let F=C.headers.get(D);if(!F)return"";if(D===rE.HeaderConstants.CONTENT_LENGTH&&F==="0")return"";return F}function E(C){let D=[];for(let[Y,J]of C.headers)if(Y.toLowerCase().startsWith(rE.HeaderConstants.PREFIX_FOR_STORAGE))D.push({name:Y,value:J});D.sort((Y,J)=>{return(0,mgA.compareHeader)(Y.name.toLowerCase(),J.name.toLowerCase())}),D=D.filter((Y,J,G)=>{if(J>0&&Y.name.toLowerCase()===G[J-1].name.toLowerCase())return!1;return!0});let F="";return D.forEach((Y)=>{F+=`${Y.name.toLowerCase().trimRight()}:${Y.value.trimLeft()}
`}),F}function I(C){let D=(0,an.getURLPath)(C.url)||"/",F="";F+=`/${A.accountName}${D}`;let Y=(0,an.getURLQueries)(C.url),J={};if(Y){let G=[];for(let N in Y)if(Object.prototype.hasOwnProperty.call(Y,N)){let U=N.toLowerCase();J[U]=Y[N],G.push(U)}G.sort();for(let N of G)F+=`
${N}:${decodeURIComponent(J[N])}`}return F}return{name:xG.storageSharedKeyCredentialPolicyName,async sendRequest(C,D){return Q(C),D(C)}}}});var on=K((hG)=>{Object.defineProperty(hG,"__esModule",{value:!0});hG.storageRequestFailureDetailsParserPolicyName=void 0;hG.storageRequestFailureDetailsParserPolicy=cgA;hG.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function cgA(){return{name:hG.storageRequestFailureDetailsParserPolicyName,async sendRequest(A,Q){try{return await Q(A)}catch(B){if(typeof B==="object"&&B!==null&&B.response&&B.response.parsedBody){if(B.response.parsedBody.code==="InvalidHeaderValue"&&B.response.parsedBody.HeaderName==="x-ms-version")B.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.
`}throw B}}}}});var qw=K((gB)=>{Object.defineProperty(gB,"__esModule",{value:!0});gB.BaseRequestPolicy=gB.getCachedDefaultHttpClient=void 0;var RE=RB();RE.__exportStar(Un(),gB);var lgA=Zn();Object.defineProperty(gB,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return lgA.getCachedDefaultHttpClient}});RE.__exportStar(Tn(),gB);RE.__exportStar(kn(),gB);RE.__exportStar(TW(),gB);RE.__exportStar(Sn(),gB);RE.__exportStar(SW(),gB);var pgA=BU();Object.defineProperty(gB,"BaseRequestPolicy",{enumerable:!0,get:function(){return pgA.BaseRequestPolicy}});RE.__exportStar(Xw(),gB);RE.__exportStar(MW(),gB);RE.__exportStar(Ww(),gB);RE.__exportStar(dn(),gB);RE.__exportStar(cn(),gB);RE.__exportStar(hW(),gB);RE.__exportStar(Rw(),gB);RE.__exportStar(nn(),gB);RE.__exportStar(Lw(),gB);RE.__exportStar(sn(),gB);RE.__exportStar(SW(),gB);RE.__exportStar(on(),gB)});var rn=K((SG)=>{Object.defineProperty(SG,"__esModule",{value:!0});SG.storageBrowserPolicyName=void 0;SG.storageBrowserPolicy=agA;var igA=BB(),jw=IE(),ngA=ME();SG.storageBrowserPolicyName="storageBrowserPolicy";function agA(){return{name:SG.storageBrowserPolicyName,async sendRequest(A,Q){if(igA.isNodeLike)return Q(A);if(A.method==="GET"||A.method==="HEAD")A.url=(0,ngA.setURLParameter)(A.url,jw.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString());return A.headers.delete(jw.HeaderConstants.COOKIE),A.headers.delete(jw.HeaderConstants.CONTENT_LENGTH),Q(A)}}}});var en=K((_G)=>{Object.defineProperty(_G,"__esModule",{value:!0});_G.storageRetryPolicyName=void 0;_G.storageRetryPolicy=ATA;var sgA=t5(),tn=EE(),ogA=BB(),kw=QU(),rgA=IE(),Pw=ME(),MD=gG();_G.storageRetryPolicyName="storageRetryPolicy";var yG={maxRetryDelayInMs:120000,maxTries:4,retryDelayInMs:4000,retryPolicyType:kw.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},tgA=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],egA=new sgA.AbortError("The operation was aborted.");function ATA(A={}){let Q=A.retryPolicyType??yG.retryPolicyType,B=A.maxTries??yG.maxTries,E=A.retryDelayInMs??yG.retryDelayInMs,I=A.maxRetryDelayInMs??yG.maxRetryDelayInMs,C=A.secondaryHost??yG.secondaryHost,D=A.tryTimeoutInMs??yG.tryTimeoutInMs;function F({isPrimaryRetry:J,attempt:G,response:N,error:U}){if(G>=B)return MD.logger.info(`RetryPolicy: Attempt(s) ${G} >= maxTries ${B}, no further try.`),!1;if(U){for(let Z of tgA)if(U.name.toUpperCase().includes(Z)||U.message.toUpperCase().includes(Z)||U.code&&U.code.toString().toUpperCase()===Z)return MD.logger.info(`RetryPolicy: Network error ${Z} found, will retry.`),!0;if(U?.code==="PARSE_ERROR"&&U?.message.startsWith('Error "Error: Unclosed root tag'))return MD.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(N||U){let Z=N?.status??U?.statusCode??0;if(!J&&Z===404)return MD.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(Z===503||Z===500)return MD.logger.info(`RetryPolicy: Will retry for status code ${Z}.`),!0}return!1}function Y(J,G){let N=0;if(J)switch(Q){case kw.StorageRetryPolicyType.EXPONENTIAL:N=Math.min((Math.pow(2,G-1)-1)*E,I);break;case kw.StorageRetryPolicyType.FIXED:N=E;break}else N=Math.random()*1000;return MD.logger.info(`RetryPolicy: Delay for ${N}ms`),N}return{name:_G.storageRetryPolicyName,async sendRequest(J,G){if(D)J.url=(0,Pw.setURLParameter)(J.url,rgA.URLConstants.Parameters.TIMEOUT,String(Math.floor(D/1000)));let N=J.url,U=C?(0,Pw.setURLHost)(J.url,C):void 0,Z=!1,X=1,$=!0,V,w;while($){let g=Z||!U||!["GET","HEAD","OPTIONS"].includes(J.method)||X%2===1;J.url=g?N:U,V=void 0,w=void 0;try{MD.logger.info(`RetryPolicy: =====> Try=${X} ${g?"Primary":"Secondary"}`),V=await G(J),Z=Z||!g&&V.status===404}catch(M){if((0,tn.isRestError)(M))MD.logger.error(`RetryPolicy: Caught error, message: ${M.message}, code: ${M.code}`),w=M;else throw MD.logger.error(`RetryPolicy: Caught error, message: ${(0,ogA.getErrorMessage)(M)}`),M}if($=F({isPrimaryRetry:g,attempt:X,response:V,error:w}),$)await(0,Pw.delay)(Y(g,X),J.abortSignal,egA);X++}if(V)return V;throw w??new tn.RestError("RetryPolicy failed without known error.")}}}});var fw=K((vG)=>{Object.defineProperty(vG,"__esModule",{value:!0});vG.storageSharedKeyCredentialPolicyName=void 0;vG.storageSharedKeyCredentialPolicy=ETA;var QTA=require("node:crypto"),tE=IE(),Aa=ME(),BTA=Yw();vG.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function ETA(A){function Q(C){if(C.headers.set(tE.HeaderConstants.X_MS_DATE,new Date().toUTCString()),C.body&&(typeof C.body==="string"||Buffer.isBuffer(C.body))&&C.body.length>0)C.headers.set(tE.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(C.body));let D=[C.method.toUpperCase(),B(C,tE.HeaderConstants.CONTENT_LANGUAGE),B(C,tE.HeaderConstants.CONTENT_ENCODING),B(C,tE.HeaderConstants.CONTENT_LENGTH),B(C,tE.HeaderConstants.CONTENT_MD5),B(C,tE.HeaderConstants.CONTENT_TYPE),B(C,tE.HeaderConstants.DATE),B(C,tE Line truncated
`)+`
`+E(C)+I(C),F=(0,QTA.createHmac)("sha256",A.accountKey).update(D,"utf8").digest("base64");C.headers.set(tE.HeaderConstants.AUTHORIZATION,`SharedKey ${A.accountName}:${F}`)}function B(C,D){let F=C.headers.get(D);if(!F)return"";if(D===tE.HeaderConstants.CONTENT_LENGTH&&F==="0")return"";return F}function E(C){let D=[];for(let[Y,J]of C.headers)if(Y.toLowerCase().startsWith(tE.HeaderConstants.PREFIX_FOR_STORAGE))D.push({name:Y,value:J});D.sort((Y,J)=>{return(0,BTA.compareHeader)(Y.name.toLowerCase(),J.name.toLowerCase())}),D=D.filter((Y,J,G)=>{if(J>0&&Y.name.toLowerCase()===G[J-1].name.toLowerCase())return!1;return!0});let F="";return D.forEach((Y)=>{F+=`${Y.name.toLowerCase().trimRight()}:${Y.value.trimLeft()}
`}),F}function I(C){let D=(0,Aa.getURLPath)(C.url)||"/",F="";F+=`/${A.accountName}${D}`;let Y=(0,Aa.getURLQueries)(C.url),J={};if(Y){let G=[];for(let N in Y)if(Object.prototype.hasOwnProperty.call(Y,N)){let U=N.toLowerCase();J[U]=Y[N],G.push(U)}G.sort();for(let N of G)F+=`
${N}:${decodeURIComponent(J[N])}`}return F}return{name:vG.storageSharedKeyCredentialPolicyName,async sendRequest(C,D){return Q(C),D(C)}}}});var Ba=K((yW)=>{Object.defineProperty(yW,"__esModule",{value:!0});yW.StorageBrowserPolicy=void 0;var ITA=e5(),CTA=BB(),xw=IE(),DTA=ME();class Qa extends ITA.BaseRequestPolicy{constructor(A,Q){super(A,Q)}async sendRequest(A){if(CTA.isNodeLike)return this._nextPolicy.sendRequest(A);if(A.method.toUpperCase()==="GET"||A.method.toUpperCase()==="HEAD")A.url=(0,DTA.setURLParameter)(A.url,xw.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString());return A.headers.remove(xw.HeaderConstants.COOKIE),A.headers.remove(xw.HeaderConstants.CONTENT_LENGTH),this._nextPolicy.sendRequest(A)}}yW.StorageBrowserPolicy=Qa});var hw=K((bG)=>{Object.defineProperty(bG,"__esModule",{value:!0});bG.StorageBrowserPolicyFactory=bG.StorageBrowserPolicy=void 0;var Ea=Ba();Object.defineProperty(bG,"StorageBrowserPolicy",{enumerable:!0,get:function(){return Ea.StorageBrowserPolicy}});class Ia{create(A,Q){return new Ea.StorageBrowserPolicy(A,Q)}}bG.StorageBrowserPolicyFactory=Ia});var Ca=K((uG)=>{Object.defineProperty(uG,"__esModule",{value:!0});uG.storageCorrectContentLengthPolicyName=void 0;uG.storageCorrectContentLengthPolicy=YTA;var FTA=IE();uG.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function YTA(){function A(Q){if(Q.body&&(typeof Q.body==="string"||Buffer.isBuffer(Q.body))&&Q.body.length>0)Q.headers.set(FTA.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(Q.body))}return{name:uG.storageCorrectContentLengthPolicyName,async sendRequest(Q,B){return A(Q),B(Q)}}}});var HF=K((y0)=>{Object.defineProperty(y0,"__esModule",{value:!0});y0.Pipeline=y0.StorageOAuthScopes=void 0;y0.isPipelineLike=KTA;y0.newPipeline=LTA;y0.getCoreClientOptions=zTA;y0.getCredentialFromPipeline=Na;var Ja=AW(),Da=EE(),Fa=h0(),Ya=Bw(),Sw=VG(),JTA=gG(),GTA=QU(),Ga=XF(),yw=$F(),IU=IE();Object.defineProperty(y0,"StorageOAuthScopes",{enumerable:!0,get:function(){return IU.StorageOAuthScopes}});var NTA=qw(),UTA=rn(),ZTA=en(),WTA=fw(),XTA=hw(),$TA=Ca();function KTA(A){if(!A||typeof A!=="object")return!1;let Q=A;return Array.isArray(Q.factories)&&typeof Q.options==="object"&&typeof Q.toServiceClientOptions==="function"}class _w{factories;options;constructor(A,Q={}){this.factories=A,this.options=Q}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}y0.Pipeline=_w;function LTA(A,Q={}){if(!A)A=new yw.AnonymousCredential;let B=new _w([],Q);return B._credential=A,B}function VTA(A){let Q=[HTA,Ua,wTA,MTA,RTA,gTA,OTA];if(A.factories.length){let B=A.factories.filter((E)=>{return!Q.some((I)=>I(E))});if(B.length){let E=B.some((I)=>TTA(I));return{wrappedPolicies:(0,Ja.createRequestPolicyFactoryPolicy)(B),afterRetry:E}}}return}function zTA(A){let{httpClient:Q,...B}=A.options,E=A._coreHttpClient;if(!E)E=Q?(0,Ja.convertHttpClient)(Q):(0,NTA.getCachedDefaultHttpClient)(),A._coreHttpClient=E;let I=A._corePipeline;if(!I){let C=`azsdk-js-azure-storage-blob/${IU.SDK_VERSION}`,D=B.userAgentOptions&&B.userAgentOptions.userAgentPrefix?`${B.userAgentOptions.userAgentPrefix} ${C}`:`${C}`;I=(0,Fa.createClientPipeline)({...B,loggingOptions:{additionalAllowedHeaderNames:IU.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:IU.StorageBlobLoggingAllowedQueryParameters,logger:JTA.logger.info},userAgentOptions:{userAgentPrefix:D},serializationOptions:{stringifyXML:Ya.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Ya.parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}}),I.removePolicy({phase:"Retry"}),I.removePolicy({name:Da.decompressResponsePolicyName}),I.addPolicy((0,$TA.storageCorrectContentLengthPolicy)()),I.addPolicy((0,ZTA.storageRetryPolicy)(B.retryOptions),{phase:"Retry"}),I.addPolicy((0,UTA.storageBrowserPolicy)());let F=VTA(A);if(F)I.addPolicy(F.wrappedPolicies,F.afterRetry?{afterPhase:"Retry"}:void 0);let Y=Na(A);if((0,Sw.isTokenCredential)(Y))I.addPolicy((0,Da.bearerTokenAuthenticationPolicy)({credential:Y,scopes:B.audience??IU.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:Fa.authorizeRequestOnTenantChallenge}}),{phase:"Sign"});else if(Y instanceof Ga.StorageSharedKeyCredential)I.addPolicy((0,WTA.storageSharedKeyCredentialPolicy)({accountName:Y.accountName,accountKey:Y.accountKey}),{phase:"Sign"});A._corePipeline=I}return{...B,allowInsecureConnection:!0,httpClient:E,pipeline:I}}function Na(A){if(A._credential)return A._credential;let Q=new yw.AnonymousCredential;for(let B of A.factories)if((0,Sw.isTokenCredential)(B.credential))Q=B.credential;else if(Ua(B))return B;return Q}function Ua(A){if(A instanceof Ga.StorageSharedKeyCredential)return!0;return A.constructor.name==="StorageSharedKeyCredential"}function HTA(A){if(A instanceof yw.AnonymousCredential)return!0;return A.constructor.name==="AnonymousCredential"}function wTA(A){return(0,Sw.isTokenCredential)(A.credential)}fun Line truncated
`),C=Q.computeHMACSHA256(I);return{sasQueryParameters:new m1.SASQueryParameters(A.version,C,E,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType),stringToSign:I}}function JqA(A,Q){if(A=c1(A),!A.identifier&&!(A.permissions&&A.expiresOn))throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=v1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=b1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",d1(Q.accountName,A.containerName,A.blobName),A.identifier,A.ipRange?(0,u1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.cacheControl?A.cacheControl:"",A.contentDisposition?A.contentDisposition:"",A.contentEncoding?A.contentEncoding:"",A.contentLanguage?A.contentLanguage:"",A.contentType?A.contentType:""].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new m1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType),stringToSign:C}}function GqA(A,Q){if(A=c1(A),!A.identifier&&!(A.permissions&&A.expiresOn))throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=v1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=b1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",d1(Q.accountName,A.containerName,A.blobName),A.identifier,A.ipRange?(0,u1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.encryptionScope,A.cacheControl?A.cacheControl:"",A.contentDisposition?A.contentDisposition:"",A.contentEncoding?A.contentEncoding:"",A.contentLanguage?A.contentLanguage:"",A.contentType?A.contentType:""].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new m1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,void 0,void 0,void 0,A.encryptionScope),stringToSign:C}}function NqA(A,Q){if(A=c1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=v1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=b1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",d1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.ipRange?(0,u1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new m1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey),stringToSign:C}}function UqA(A,Q){if(A=c1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=v1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=b1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",d1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,A.ipRange?(0,u1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new m1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId),stringToSign:C}}function ZqA(A,Q){if(A=c1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=v1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=b1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",d1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,A.ipRange?(0,u1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.encryptionScope,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new m1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId,A.encryptionScope),stringToSign:C}}function WqA(A,Q){if(A=c1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=v1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=b1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",d1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,void 0,void 0,A.ipRange?(0,u1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.encryptionScope,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new m1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId,A.encryptionScope),stringToSign:C}}function d1(A,Q,B){let E=[`/blob/${A}/${Q}`];if(B)E.push(`/${B}`);return E.join("")}function c1(A){let Q=A.version?A.version:Qs.SERVICE_VERSION;if(A.snapshotTime&&Q<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(A.blobName===void 0&&A.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(A.versionId&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(A.blobName===void 0&&A.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(A.permissions&&A.permissions.setImmutabilityPolicy&&Q<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(A.permissions&&A.permissions.deleteVersion&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(A.permissions&&A.permissions.permanentDelete&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(A.permissions&&A.permissions.tag&&Q<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(Q<"2020-02-10"&&A.permissions&&(A.permissions.move||A.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(Q<"2021-04-10"&&A.permissions&&A.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(Q<"2020-02-10"&&(A.preauthorizedAgentObjectId||A.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(A.encryptionScope&&Q<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return A.version=Q,A}});var YX=K((FX)=>{Object.defineProperty(FX,"__esModule",{value:!0});FX.BlobLeaseClient=void 0;var XqA=BB(),v0=IE(),DU=_1(),DX=ME();class Es{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(A,Q){let B=A.storageClientContext;if(this._url=A.url,A.name===void 0)this._isContainer=!0,this._containerOrBlobOperation=B.container;else this._isContainer=!1,this._containerOrBlobOperation=B.blob;if(!Q)Q=(0,XqA.randomUUID)();this._leaseId=Q}async acquireLease(A,Q={}){if(this._isContainer&&(Q.conditions?.ifMatch&&Q.conditions?.ifMatch!==v0.ETagNone||Q.conditions?.ifNoneMatch&&Q.conditions?.ifNoneMatch!==v0.ETagNone||Q.conditions?.tagConditions))throw 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 DU.tracingClient.withSpan("BlobLeaseClient-acquireLease",Q,async(B)=>{return(0,DX.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:Q.abortSignal,duration:A,modifiedAccessConditions:{...Q.conditions,ifTags:Q.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:B.tracingOptions}))})}async changeLease(A,Q={}){if(this._isContainer&&(Q.conditions?.ifMatch&&Q.conditions?.ifMatch!==v0.ETagNone||Q.conditions?.ifNoneMatch&&Q.conditions?.ifNoneMatch!==v0.ETagNone||Q.conditions?.tagConditions))throw 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 DU.tracingClient.withSpan("BlobLeaseClient-changeLease",Q,async(B)=>{let E=(0,DX.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,A,{abortSignal:Q.abortSignal,modifiedAccessConditions:{...Q.conditions,ifTags:Q.conditions?.tagConditions},tracingOptions:B.tracingOptions}));return this._leaseId=A,E})}async releaseLease(A={}){if(this._isContainer&&(A.conditions?.ifMatch&&A.conditions?.ifMatch!==v0.ETagNone||A.conditions?.ifNoneMatch&&A.conditions?.ifNoneMatch!==v0.ETagNone||A.conditions?.tagConditions))throw 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 DU.tracingClient.withSpan("BlobLeaseClient-releaseLease",A,async(Q)=>{return(0,DX.assertResponse)(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:A.abortSignal,modifiedAccessConditions:{...A.conditions,ifTags:A.conditions?.tagConditions},tracingOptions:Q.tracingOptions}))})}async renewLease(A={}){if(this._isContainer&&(A.conditions?.ifMatch&&A.conditions?.ifMatch!==v0.ETagNone||A.conditions?.ifNoneMatch&&A.conditions?.ifNoneMatch!==v0.ETagNon Line truncated
Polling from: ${B.config.operationLocation}
Operation status: ${G}
Polling status: ${hs.terminalStates.includes(G)?"Stopped":"Running"}`),G==="succeeded"){let N=D(J,B);if(N!==void 0)return{response:await Q(N).catch(xs({state:B,stateProxy:E,isOperationError:F})),status:G}}return{response:J,status:G}}async function dqA(A){let{poll:Q,state:B,stateProxy:E,options:I,getOperationStatus:C,getResourceLocation:D,getOperationLocation:F,isOperationError:Y,withOperationLocation:J,getPollingInterval:G,processResult:N,getError:U,updateState:Z,setDelay:X,isDone:$,setErrorAsResult:V}=A,{operationLocation:w}=B.config;if(w!==void 0){let{response:g,status:M}=await mqA({poll:Q,getOperationStatus:C,state:B,stateProxy:E,operationLocation:w,getResourceLocation:D,isOperationError:Y,options:I});if(Ss({status:M,response:g,state:B,stateProxy:E,isDone:$,processResult:N,getError:U,setErrorAsResult:V}),!hs.terminalStates.includes(M)){let k=G===null||G===void 0?void 0:G(g);if(k)X(k);let d=F===null||F===void 0?void 0:F(g,B);if(d!==void 0){let t=w!==d;B.config.operationLocation=d,J===null||J===void 0||J(d,t)}else J===null||J===void 0||J(w,!1)}Z===null||Z===void 0||Z(B,g)}}OF.pollOperation=dqA});var BM=K((uB)=>{Object.defineProperty(uB,"__esModule",{value:!0});uB.pollHttpOperation=uB.isOperationError=uB.getResourceLocation=uB.getOperationStatus=uB.getOperationLocation=uB.initHttpOperation=uB.getStatusFromInitialResponse=uB.getErrorFromResponse=uB.parseRetryAfter=uB.inferLroMode=void 0;var ys=VX(),ew=KX();function _s(A){let{azureAsyncOperation:Q,operationLocation:B}=A;return B!==null&&B!==void 0?B:Q}function vs(A){return A.headers.location}function bs(A){return A.headers["operation-location"]}function us(A){return A.headers["azure-asyncoperation"]}function cqA(A){var Q;let{location:B,requestMethod:E,requestPath:I,resourceLocationConfig:C}=A;switch(E){case"PUT":return I;case"DELETE":return;case"PATCH":return(Q=D())!==null&&Q!==void 0?Q:I;default:return D()}function D(){switch(C){case"azure-async-operation":return;case"original-uri":return I;case"location":default:return B}}}function ms(A){let{rawResponse:Q,requestMethod:B,requestPath:E,resourceLocationConfig:I}=A,C=bs(Q),D=us(Q),F=_s({operationLocation:C,azureAsyncOperation:D}),Y=vs(Q),J=B===null||B===void 0?void 0:B.toLocaleUpperCase();if(F!==void 0)return{mode:"OperationLocation",operationLocation:F,resourceLocation:cqA({requestMethod:J,location:Y,requestPath:E,resourceLocationConfig:I})};else if(Y!==void 0)return{mode:"ResourceLocation",operationLocation:Y};else if(J==="PUT"&&E)return{mode:"Body",operationLocation:E};else return}uB.inferLroMode=ms;function ds(A){let{status:Q,statusCode:B}=A;if(typeof Q!=="string"&&Q!==void 0)throw Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${Q}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(Q===null||Q===void 0?void 0:Q.toLocaleLowerCase()){case void 0:return AM(B);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return ew.logger.verbose(`LRO: unrecognized operation status: ${Q}`),Q}}function lqA(A){var Q;let{status:B}=(Q=A.body)!==null&&Q!==void 0?Q:{};return ds({status:B,statusCode:A.statusCode})}function pqA(A){var Q,B;let{properties:E,provisioningState:I}=(Q=A.body)!==null&&Q!==void 0?Q:{},C=(B=E===null||E===void 0?void 0:E.provisioningState)!==null&&B!==void 0?B:I;return ds({status:C,statusCode:A.statusCode})}function AM(A){if(A===202)return"running";else if(A<300)return"succeeded";else return"failed"}function cs({rawResponse:A}){let Q=A.headers["retry-after"];if(Q!==void 0){let B=parseInt(Q);return isNaN(B)?iqA(new Date(Q)):B*1000}return}uB.parseRetryAfter=cs;function ls(A){let Q=ns(A,"error");if(!Q){ew.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!Q.code||!Q.message){ew.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return Q}uB.getErrorFromResponse=ls;function iqA(A){let Q=Math.floor(new Date().getTime()),B=A.getTime();if(Q<B)return B-Q;return}function ps(A){let{response:Q,state:B,operationLocation:E}=A;function I(){var D;switch((D=B.config.metadata)===null||D===void 0?void 0:D.mode){case void 0:return AM(Q.rawResponse.statusCode);case"Body":return QM(Q,B);default:return"running"}}let C=I();return C==="running"&&E===void 0?"succeeded":C}uB.getStatusFromInitialResponse=ps;async function nqA(A){let{stateProxy:Q,resourceLocationConfig:B,processResult:E,lro:I,setErrorAsResult:C}=A;return(0,ys.initOperation)({init:async()=>{let D=await I.sendInitialRequest(),F=ms({rawResponse:D.rawResponse,requestPath:I.requestPath,requestMethod:I.requestMethod,resourceLocationConfig:B});return Object.assign({response:D,operationLocation:F===null||F===void 0?void 0:FLine truncated
`);else D=[Q.accountName,E,I,C,A.startsOn?(0,B6.truncatedISO8061Date)(A.startsOn,!1):"",(0,B6.truncatedISO8061Date)(A.expiresOn,!1),A.ipRange?(0,xo.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",B,""].join(`
`);let F=Q.computeHMACSHA256(D);return{sasQueryParameters:new QPA.SASQueryParameters(B,F,E.toString(),I,C,A.protocol,A.startsOn,A.expiresOn,A.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,A.encryptionScope),stringToSign:D}}});var bo=K((F6)=>{Object.defineProperty(F6,"__esModule",{value:!0});F6.BlobServiceClient=void 0;var IPA=VG(),CPA=EE(),So=BB(),GU=HF(),DPA=LM(),I6=ME(),C6=XF(),MM=$F(),l0=ME(),p0=_1(),FPA=pX(),YPA=aW(),yo=tX(),_o=wM(),vo=Q6();class D6 extends YPA.StorageClient{serviceContext;static fromConnectionString(A,Q){Q=Q||{};let B=(0,I6.extractConnectionStringParts)(A);if(B.kind==="AccountConnString")if(So.isNodeLike){let E=new C6.StorageSharedKeyCredential(B.accountName,B.accountKey);if(!Q.proxyOptions)Q.proxyOptions=(0,CPA.getDefaultProxySettings)(B.proxyUri);let I=(0,GU.newPipeline)(E,Q);return new D6(B.url,I)}else throw Error("Account connection string is only supported in Node.js environment");else if(B.kind==="SASConnString"){let E=(0,GU.newPipeline)(new MM.AnonymousCredential,Q);return new D6(B.url+"?"+B.accountSas,E)}else throw Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(A,Q,B){let E;if((0,GU.isPipelineLike)(Q))E=Q;else if(So.isNodeLike&&Q instanceof C6.StorageSharedKeyCredential||Q instanceof MM.AnonymousCredential||(0,IPA.isTokenCredential)(Q))E=(0,GU.newPipeline)(Q,B);else E=(0,GU.newPipeline)(new MM.AnonymousCredential,B);super(A,E);this.serviceContext=this.storageClientContext.service}getContainerClient(A){return new DPA.ContainerClient((0,I6.appendToURLPath)(this.url,encodeURIComponent(A)),this.pipeline)}async createContainer(A,Q={}){return p0.tracingClient.withSpan("BlobServiceClient-createContainer",Q,async(B)=>{let E=this.getContainerClient(A),I=await E.create(B);return{containerClient:E,containerCreateResponse:I}})}async deleteContainer(A,Q={}){return p0.tracingClient.withSpan("BlobServiceClient-deleteContainer",Q,async(B)=>{return this.getContainerClient(A).delete(B)})}async undeleteContainer(A,Q,B={}){return p0.tracingClient.withSpan("BlobServiceClient-undeleteContainer",B,async(E)=>{let I=this.getContainerClient(B.destinationContainerName||A),C=I.storageClientContext.container,D=(0,l0.assertResponse)(await C.restore({deletedContainerName:A,deletedContainerVersion:Q,tracingOptions:E.tracingOptions}));return{containerClient:I,containerUndeleteResponse:D}})}async getProperties(A={}){return p0.tracingClient.withSpan("BlobServiceClient-getProperties",A,async(Q)=>{return(0,l0.assertResponse)(await this.serviceContext.getProperties({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async setProperties(A,Q={}){return p0.tracingClient.withSpan("BlobServiceClient-setProperties",Q,async(B)=>{return(0,l0.assertResponse)(await this.serviceContext.setProperties(A,{abortSignal:Q.abortSignal,tracingOptions:B.tracingOptions}))})}async getStatistics(A={}){return p0.tracingClient.withSpan("BlobServiceClient-getStatistics",A,async(Q)=>{return(0,l0.assertResponse)(await this.serviceContext.getStatistics({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async getAccountInfo(A={}){return p0.tracingClient.withSpan("BlobServiceClient-getAccountInfo",A,async(Q)=>{return(0,l0.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async listContainersSegment(A,Q={}){return p0.tracingClient.withSpan("BlobServiceClient-listContainersSegment",Q,async(B)=>{return(0,l0.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:Q.abortSignal,marker:A,...Q,include:typeof Q.include==="string"?[Q.include]:Q.include,tracingOptions:B.tracingOptions}))})}async findBlobsByTagsSegment(A,Q,B={}){return p0.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",B,async(E)=>{let I=(0,l0.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:B.abortSignal,where:A,marker:Q,maxPageSize:B.maxPageSize,tracingOptions:E.tracingOptions}));return{...I,_response:I._response,blobs:I.blobs.map((D)=>{let F="";if(D.tags?.blobTagSet.length===1)F=D.tags.blobTagSet[0].value;return{...D,tags:(0,I6.toTags)(D.tags),tagValue:F}})}})}async*findBlobsByTagsSegments(A,Q,B={}){let E;if(!!Q||Q===void 0)do E=await this.findBlobsByTagsSegment(A,Q,B),E.blobs=E.blobs||[],Q=E.continuationToken,yield E;while(Q)}async*findBlobsByTagsItems(A,Q={}){let B;for await(let E of this.findBlobsByTagsSegments(A,B,Q))yield*E.blobs}findBlobsByTags(A,Q={}){let B={...Q},E=this.findBlobsByTagsItems(A,B);return{next(){return E.next()},[Symbol.asyncIterator](){return this},byPage:(I={})=>{return this.findBlobsByTagsSegments(A,I.continuationToken,{maxPageSize:I.maxPageSize,...B})}}}async*listSegments(A,Q={}){let B;if(!!A||A===void 0)do B=await this.listContainersSegment(A,Q),B.containerItems=B.containerItems||[],A=B.continuationToken,yield await B;while(A)}async*listItems(A={}){let Q;for await(let B of this.listSegments(Q,A))yield*B.containerIte 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(Q);this.code=A,this.name="NetworkError"}}vI.NetworkError=gM;gM.isNetworkErrorCode=(A)=>{if(!A)return!1;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(A)};class TM extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`);this.name="UsageError"}}vI.UsageError=TM;TM.isUsageErrorMessage=(A)=>{if(!A)return!1;return A.includes("insufficient usage")}});var so=K((bI)=>{var WPA=bI&&bI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),XPA=bI&&bI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),$PA=bI&&bI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))WPA(Q,A,B)}return XPA(Q,A),Q},KPA=bI&&bI.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(bI,"__esModule",{value:!0});bI.uploadCacheArchiveSDK=bI.UploadProgress=void 0;var qM=$PA(yB()),LPA=RM(),VPA=OM();class jM{constructor(A){this.contentLength=A,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(A){this.sentBytes=A}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let A=this.sentBytes,Q=(100*(A/this.contentLength)).toFixed(1),B=Date.now()-this.startTime,E=(A/1048576/(B/1000)).toFixed(1);if(qM.info(`Sent ${A} of ${this.contentLength} (${Q}%), ${E} MBs/sec`),this.isDone())this.displayedComplete=!0}onProgress(){return(A)=>{this.setSentBytes(A.loadedBytes)}}startDisplayTimer(A=1000){let Q=()=>{if(this.display(),!this.isDone())this.timeoutHandle=setTimeout(Q,A)};this.timeoutHandle=setTimeout(Q,A)}stopDisplayTimer(){if(this.timeoutHandle)clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0;this.display()}}bI.UploadProgress=jM;function zPA(A,Q,B){var E;return KPA(this,void 0,void 0,function*(){let I=new LPA.BlobClient(A),C=I.getBlockBlobClient(),D=new jM((E=B===null||B===void 0?void 0:B.archiveSizeBytes)!==null&&E!==void 0?E:0),F={blockSize:B===null||B===void 0?void 0:B.uploadChunkSize,concurrency:B===null||B===void 0?void 0:B.uploadConcurrency,maxSingleShotSize:134217728,onProgress:D.onProgress()};try{D.startDisplayTimer(),qM.debug(`BlobClient: ${I.name}:${I.accountName}:${I.containerName}`);let Y=yield C.uploadFile(Q,F);if(Y._response.status>=400)throw new VPA.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${Y._response.status}`);return Y}catch(Y){throw qM.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${Y.message}`),Y}finally{D.stopDisplayTimer()}})}bI.uploadCacheArchiveSDK=zPA});var kM=K((mB)=>{var HPA=mB&&mB.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),wPA=mB&&mB.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),MPA=mB&&mB.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))HPA(Q,A,B)}return wPA(Q,A),Q},U6=mB&&mB.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(mB,"__esModule",{value:!0});mB.retryHttpClientResponse=mB.retryTypedResponse=mB.retry=mB.isRetryableStatusCode=mB.isServerErrorStatusCode=mB.isSuccessStatusCode=void 0;var oo=MPA(yB()),N6=GD(),tG=G5();function RPA(A){if(!A)return!1;return A>=200&&A<300}mB.isSuccessStatusCode=RPA;function ro(A){if(!A)return!0;return A>=500}mB.isServerErrorStatusCode=ro;function to(A){if(!A)return!1;return[N6.HttpCodes.BadGateway,N6.HttpCodes.ServiceUnavailable,N6.HttpCodes.GatewayTimeout].includes(A)}mB.isRetryableStatusCode=to;function gPA(A){return U6(this,void 0,void 0,function*(){return new Promise((Q)=>setTimeout(Q,A))})}function PM(A,Q,B,E=tG.DefaultRetryAttempts,I=tG.DefaultRetryDelay,C=void 0){return U6(this,void 0,void 0,function*(){let D="",F=1;while(F<=E){let Y=void 0,J=void 0,G=!1;try{Y=yield Q()}catch(N){if(C)Y=C(N);G=!0,D=N.message}if(Y){if(J=B(Y),!ro(J))ret Line truncated
Other caches with similar key:`);for(let F of(C===null||C===void 0?void 0:C.artifactCaches)||[])CC.debug(`Cache Key: ${F===null||F===void 0?void 0:F.cacheKey}, Cache Version: ${F===null||F===void 0?void 0:F.cacheVersion}, Cache Scope: ${F===null||F===void 0?void 0:F.scope}, Cache Created: ${F===null||F===void 0?void 0:F.creationTime}`)}}})}function YkA(A,Q,B){return uI(this,void 0,void 0,function*(){let E=new AkA.URL(A),I=(0,yM.getDownloadOptions)(B);if(E.hostname.endsWith(".blob.core.windows.net"))if(I.useAzureSdk)yield(0,K6.downloadCacheStorageSDK)(A,Q,I);else if(I.concurrentBlobDownloads)yield(0,K6.downloadCacheHttpClientConcurrent)(A,Q,I);else yield(0,K6.downloadCacheHttpClient)(A,Q);else yield(0,K6.downloadCacheHttpClient)(A,Q)})}qE.downloadCache=YkA;function JkA(A,Q,B){return uI(this,void 0,void 0,function*(){let E=_M(),I=QN.getCacheVersion(Q,B===null||B===void 0?void 0:B.compressionMethod,B===null||B===void 0?void 0:B.enableCrossOsArchive),C={key:A,version:I,cacheSize:B===null||B===void 0?void 0:B.cacheSize};return yield(0,kF.retryTypedResponse)("reserveCache",()=>uI(this,void 0,void 0,function*(){return E.postJson(XU("caches"),C)}))})}qE.reserveCache=JkA;function Ur(A,Q){return`bytes ${A}-${Q}/*`}function GkA(A,Q,B,E,I){return uI(this,void 0,void 0,function*(){CC.debug(`Uploading chunk of size ${I-E+1} bytes at offset ${E} with content range: ${Ur(E,I)}`);let C={"Content-Type":"application/octet-stream","Content-Range":Ur(E,I)},D=yield(0,kF.retryHttpClientResponse)(`uploadChunk (start: ${E}, end: ${I})`,()=>uI(this,void 0,void 0,function*(){return A.sendStream("PATCH",Q,B(),C)}));if(!(0,kF.isSuccessStatusCode)(D.message.statusCode))throw Error(`Cache service responded with ${D.message.statusCode} during upload chunk.`)})}function NkA(A,Q,B,E){return uI(this,void 0,void 0,function*(){let I=QN.getArchiveFileSizeInBytes(B),C=XU(`caches/${Q.toString()}`),D=hM.openSync(B,"r"),F=(0,yM.getUploadOptions)(E),Y=QN.assertDefined("uploadConcurrency",F.uploadConcurrency),J=QN.assertDefined("uploadChunkSize",F.uploadChunkSize),G=[...Array(Y).keys()];CC.debug("Awaiting all uploads");let N=0;try{yield Promise.all(G.map(()=>uI(this,void 0,void 0,function*(){while(N<I){let U=Math.min(I-N,J),Z=N,X=N+U-1;N+=J,yield GkA(A,C,()=>hM.createReadStream(B,{fd:D,start:Z,end:X,autoClose:!1}).on("error",($)=>{throw Error(`Cache upload failed because file read failed with ${$.message}`)}),Z,X)}})))}finally{hM.closeSync(D)}return})}function UkA(A,Q,B){return uI(this,void 0,void 0,function*(){let E={size:B};return yield(0,kF.retryTypedResponse)("commitCache",()=>uI(this,void 0,void 0,function*(){return A.postJson(XU(`caches/${Q.toString()}`),E)}))})}function ZkA(A,Q,B,E){return uI(this,void 0,void 0,function*(){if((0,yM.getUploadOptions)(E).useAzureSdk){if(!B)throw Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,QkA.uploadCacheArchiveSDK)(B,Q,E)}else{let C=_M();CC.debug("Upload cache"),yield NkA(C,A,Q,E),CC.debug("Commiting cache");let D=QN.getArchiveFileSizeInBytes(Q);CC.info(`Cache Size: ~${Math.round(D/1048576)} MB (${D} B)`);let F=yield UkA(C,A,D);if(!(0,kF.isSuccessStatusCode)(F.statusCode))throw Error(`Cache service responded with ${F.statusCode} during commit cache.`);CC.info("Cache saved successfully")}})}qE.saveCache=ZkA});var L6=K((BN)=>{Object.defineProperty(BN,"__esModule",{value:!0});BN.isJsonObject=BN.typeofJsonValue=void 0;function WkA(A){let Q=typeof A;if(Q=="object"){if(Array.isArray(A))return"array";if(A===null)return"null"}return Q}BN.typeofJsonValue=WkA;function XkA(A){return A!==null&&typeof A=="object"&&!Array.isArray(A)}BN.isJsonObject=XkA});var z6=K((EN)=>{Object.defineProperty(EN,"__esModule",{value:!0});EN.base64encode=EN.base64decode=void 0;var TD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),V6=[];for(let A=0;A<TD.length;A++)V6[TD[A].charCodeAt(0)]=A;V6[45]=TD.indexOf("+");V6[95]=TD.indexOf("/");function $kA(A){let Q=A.length*3/4;if(A[A.length-2]=="=")Q-=2;else if(A[A.length-1]=="=")Q-=1;let B=new Uint8Array(Q),E=0,I=0,C,D=0;for(let F=0;F<A.length;F++){if(C=V6[A.charCodeAt(F)],C===void 0)switch(A[F]){case"=":I=0;case`
`:case"\r":case"\t":case" ":continue;default:throw Error("invalid base64 string.")}switch(I){case 0:D=C,I=1;break;case 1:B[E++]=D<<2|(C&48)>>4,D=C,I=2;break;case 2:B[E++]=(D&15)<<4|(C&60)>>2,D=C,I=3;break;case 3:B[E++]=(D&3)<<6|C,I=0;break}}if(I==1)throw Error("invalid base64 string.");return B.subarray(0,E)}EN.base64decode=$kA;function KkA(A){let Q="",B=0,E,I=0;for(let C=0;C<A.length;C++)switch(E=A[C],B){case 0:Q+=TD[E>>2],I=(E&3)<<4,B=1;break;case 1:Q+=TD[I|E>>4],I=(E&15)<<2,B=2;break;case 2:Q+=TD[I|E>>6],Q+=TD[E&63],B=0;break}if(B){if(Q+=TD[I],Q+="=",B==1)Q+="="}return Q}EN.base64encode=KkA});var Wr=K((H6)=>{Object.defineProperty(H6,"__esModule",{value:!0});H6.utf8read=void 0;var vM=(A)=>String.fromCharCode.apply(String,A);function LkA(A){if(A.length<1)return"";let Q=0,B=[],E=[],I=0,C,D=A.length;while(Q<D){if(C=A[Q++],C<128)E[I++]=C;else if(C>191&&C<224)E[I++]=(C&31)<<6|A[Q++]&63;else if(C>239&&C<365)C=((C&7)<<18|(A[Q++]&63)<<12|(A[Q++]&63)<<6|A[Q++]&63)-65536,E[I++]=55296+(C>>10),E[I++]=56320+(C&1023);else E[I++]=(C&15)<<12|(A[Q++]&63)<<6|A[Q++]&63;if(I>8191)B.push(vM(E)),I=0}if(B.length){if(I)B.push(vM(E.slice(0,I)));return B.join("")}return vM(E.slice(0,I))}H6.utf8read=LkA});var $U=K((i0)=>{Object.defineProperty(i0,"__esModule",{value:!0});i0.WireType=i0.mergeBinaryOptions=i0.UnknownFieldHandler=void 0;var VkA;(function(A){A.symbol=Symbol.for("protobuf-ts/unknown"),A.onRead=(B,E,I,C,D)=>{(Q(E)?E[A.symbol]:E[A.symbol]=[]).push({no:I,wireType:C,data:D})},A.onWrite=(B,E,I)=>{for(let{no:C,wireType:D,data:F}of A.list(E))I.tag(C,D).raw(F)},A.list=(B,E)=>{if(Q(B)){let I=B[A.symbol];return E?I.filter((C)=>C.no==E):I}return[]},A.last=(B,E)=>A.list(B,E).slice(-1)[0];let Q=(B)=>B&&Array.isArray(B[A.symbol])})(VkA=i0.UnknownFieldHandler||(i0.UnknownFieldHandler={}));function zkA(A,Q){return Object.assign(Object.assign({},A),Q)}i0.mergeBinaryOptions=zkA;var HkA;(function(A){A[A.Varint=0]="Varint",A[A.Bit64=1]="Bit64",A[A.LengthDelimited=2]="LengthDelimited",A[A.StartGroup=3]="StartGroup",A[A.EndGroup=4]="EndGroup",A[A.Bit32=5]="Bit32"})(HkA=i0.WireType||(i0.WireType={}))});var M6=K((mI)=>{Object.defineProperty(mI,"__esModule",{value:!0});mI.varint32read=mI.varint32write=mI.int64toString=mI.int64fromString=mI.varint64write=mI.varint64read=void 0;function wkA(){let A=0,Q=0;for(let E=0;E<28;E+=7){let I=this.buf[this.pos++];if(A|=(I&127)<<E,(I&128)==0)return this.assertBounds(),[A,Q]}let B=this.buf[this.pos++];if(A|=(B&15)<<28,Q=(B&112)>>4,(B&128)==0)return this.assertBounds(),[A,Q];for(let E=3;E<=31;E+=7){let I=this.buf[this.pos++];if(Q|=(I&127)<<E,(I&128)==0)return this.assertBounds(),[A,Q]}throw Error("invalid varint")}mI.varint64read=wkA;function MkA(A,Q,B){for(let C=0;C<28;C=C+7){let D=A>>>C,F=!(D>>>7==0&&Q==0),Y=(F?D|128:D)&255;if(B.push(Y),!F)return}let E=A>>>28&15|(Q&7)<<4,I=Q>>3!=0;if(B.push((I?E|128:E)&255),!I)return;for(let C=3;C<31;C=C+7){let D=Q>>>C,F=D>>>7!=0,Y=(F?D|128:D)&255;if(B.push(Y),!F)return}B.push(Q>>>31&1)}mI.varint64write=MkA;var w6=4294967296;function RkA(A){let Q=A[0]=="-";if(Q)A=A.slice(1);let B=1e6,E=0,I=0;function C(D,F){let Y=Number(A.slice(D,F));if(I*=B,E=E*B+Y,E>=w6)I=I+(E/w6|0),E=E%w6}return C(-24,-18),C(-18,-12),C(-12,-6),C(-6),[Q,E,I]}mI.int64fromString=RkA;function gkA(A,Q){if(Q>>>0<=2097151)return""+(w6*Q+(A>>>0));let B=A&16777215,E=(A>>>24|Q<<8)>>>0&16777215,I=Q>>16&65535,C=B+E*6777216+I*6710656,D=E+I*8147497,F=I*2,Y=1e7;if(C>=Y)D+=Math.floor(C/Y),C%=Y;if(D>=Y)F+=Math.floor(D/Y),D%=Y;function J(G,N){let U=G?String(G):"";if(N)return"0000000".slice(U.length)+U;return U}return J(F,0)+J(D,F)+J(C,1)}mI.int64toString=gkA;function TkA(A,Q){if(A>=0){while(A>127)Q.push(A&127|128),A=A>>>7;Q.push(A)}else{for(let B=0;B<9;B++)Q.push(A&127|128),A=A>>7;Q.push(1)}}mI.varint32write=TkA;function OkA(){let A=this.buf[this.pos++],Q=A&127;if((A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<7,(A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<14,(A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<21,(A&128)==0)return this.assertBounds(),Q;A=this.buf[this.pos++],Q|=(A&15)<<28;for(let B=5;(A&128)!==0&&B<10;B++)A=this.buf[this.pos++];if((A&128)!=0)throw Error("invalid varint");return this.assertBounds(),Q>>>0}mI.varint32read=OkA});var xF=K((fF)=>{Object.defineProperty(fF,"__esModule",{value:!0});fF.PbLong=fF.PbULong=fF.detectBi=void 0;var KU=M6(),EB;function Xr(){let A=new DataView(new ArrayBuffer(8));EB=globalThis.BigInt!==void 0&&typeof A.getBigInt64==="function"&&typeof A.getBigUint64==="function"&&typeof A.setBigInt64==="function"&&typeof A.setBigUint64==="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:A}:void 0}fF.detectBi=Xr;Xr();function $r(A){if(!A)throw Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Kr=/^-?[0-9]+$/,g6=4294967296,R6=2147483648;class bM{ Line truncated
`)}}n6.RpcError=At});var YR=K((s6)=>{Object.defineProperty(s6,"__esModule",{value:!0});s6.mergeRpcOptions=void 0;var Qt=oB();function sfA(A,Q){if(!Q)return A;let B={};a6(A,B),a6(Q,B);for(let E of Object.keys(Q)){let I=Q[E];switch(E){case"jsonOptions":B.jsonOptions=Qt.mergeJsonOptions(A.jsonOptions,B.jsonOptions);break;case"binaryOptions":B.binaryOptions=Qt.mergeBinaryOptions(A.binaryOptions,B.binaryOptions);break;case"meta":B.meta={},a6(A.meta,B.meta),a6(Q.meta,B.meta);break;case"interceptors":B.interceptors=A.interceptors?A.interceptors.concat(I):I.concat();break}}return B}s6.mergeRpcOptions=sfA;function a6(A,Q){if(!A)return;let B=Q;for(let[E,I]of Object.entries(A))if(I instanceof Date)B[E]=new Date(I.getTime());else if(Array.isArray(I))B[E]=I.concat();else B[E]=I}});var JR=K((o1)=>{Object.defineProperty(o1,"__esModule",{value:!0});o1.Deferred=o1.DeferredState=void 0;var s0;(function(A){A[A.PENDING=0]="PENDING",A[A.REJECTED=1]="REJECTED",A[A.RESOLVED=2]="RESOLVED"})(s0=o1.DeferredState||(o1.DeferredState={}));class Bt{constructor(A=!0){if(this._state=s0.PENDING,this._promise=new Promise((Q,B)=>{this._resolve=Q,this._reject=B}),A)this._promise.catch((Q)=>{})}get state(){return this._state}get promise(){return this._promise}resolve(A){if(this.state!==s0.PENDING)throw Error(`cannot resolve ${s0[this.state].toLowerCase()}`);this._resolve(A),this._state=s0.RESOLVED}reject(A){if(this.state!==s0.PENDING)throw Error(`cannot reject ${s0[this.state].toLowerCase()}`);this._reject(A),this._state=s0.REJECTED}resolvePending(A){if(this._state===s0.PENDING)this.resolve(A)}rejectPending(A){if(this._state===s0.PENDING)this.reject(A)}}o1.Deferred=Bt});var GR=K((o6)=>{Object.defineProperty(o6,"__esModule",{value:!0});o6.RpcOutputStreamController=void 0;var Et=JR(),r1=oB();class It{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(A){return this.addLis(A,this._lis.nxt)}onMessage(A){return this.addLis(A,this._lis.msg)}onError(A){return this.addLis(A,this._lis.err)}onComplete(A){return this.addLis(A,this._lis.cmp)}addLis(A,Q){return Q.push(A),()=>{let B=Q.indexOf(A);if(B>=0)Q.splice(B,1)}}clearLis(){for(let A of Object.values(this._lis))A.splice(0,A.length)}get closed(){return this._closed!==!1}notifyNext(A,Q,B){if(r1.assert((A?1:0)+(Q?1:0)+(B?1:0)<=1,"only one emission at a time"),A)this.notifyMessage(A);if(Q)this.notifyError(Q);if(B)this.notifyComplete()}notifyMessage(A){r1.assert(!this.closed,"stream is closed"),this.pushIt({value:A,done:!1}),this._lis.msg.forEach((Q)=>Q(A)),this._lis.nxt.forEach((Q)=>Q(A,void 0,!1))}notifyError(A){r1.assert(!this.closed,"stream is closed"),this._closed=A,this.pushIt(A),this._lis.err.forEach((Q)=>Q(A)),this._lis.nxt.forEach((Q)=>Q(void 0,A,!1)),this.clearLis()}notifyComplete(){r1.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach((A)=>A()),this._lis.nxt.forEach((A)=>A(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){if(this._closed===!0)this.pushIt({value:null,done:!0});else if(this._closed!==!1)this.pushIt(this._closed);return{next:()=>{let A=this._itState;r1.assert(A,"bad state"),r1.assert(!A.p,"iterator contract broken");let Q=A.q.shift();if(Q)return"value"in Q?Promise.resolve(Q):Promise.reject(Q);return A.p=new Et.Deferred,A.p.promise}}}pushIt(A){let Q=this._itState;if(Q.p){let B=Q.p;r1.assert(B.state==Et.DeferredState.PENDING,"iterator contract broken"),"value"in A?B.resolve(A):B.reject(A),delete Q.p}else Q.q.push(A)}}o6.RpcOutputStreamController=It});var NR=K((GN)=>{var ofA=GN&&GN.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(GN,"__esModule",{value:!0});GN.UnaryCall=void 0;class Ct{constructor(A,Q,B,E,I,C,D){this.method=A,this.requestHeaders=Q,this.request=B,this.headers=E,this.response=I,this.status=C,this.trailers=D}then(A,Q){return this.promiseFinished().then((B)=>A?Promise.resolve(A(B)):B,(B)=>Q?Promise.resolve(Q(B)):Promise.reject(B))}promiseFinished(){return ofA(this,void 0,void 0,function*(){let[A,Q,B,E]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:A,response:Q,status:B,trailers:E}})}}GN.UnaryCall=Ct});var UR=K((NN)=>{var rfA=NN&&NN.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(NN,"__esModule",{value:!0});NN.ServerStreamingCall=void 0;class Dt{constructor(A,Q,B,E,I,C,D){this.me Line truncated
`));let E=yield zR(B,"create");yield HR(E,A)})}eE.createTar=pxA});var dt=K((pB)=>{var ixA=pB&&pB.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),nxA=pB&&pB.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),kU=pB&&pB.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))ixA(Q,A,B)}return nxA(Q,A),Q},RN=pB&&pB.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(pB,"__esModule",{value:!0});pB.saveCache=pB.restoreCache=pB.isFeatureAvailable=pB.FinalizeCacheError=pB.ReserveCacheError=pB.ValidationError=void 0;var sA=kU(yB()),I7=kU(require("path")),qB=kU(PJ()),MN=kU(Zr()),ut=kU(yt()),C7=X6(),_F=bt(),D7=GD();class cC extends Error{constructor(A){super(A);this.name="ValidationError",Object.setPrototypeOf(this,cC.prototype)}}pB.ValidationError=cC;class t1 extends Error{constructor(A){super(A);this.name="ReserveCacheError",Object.setPrototypeOf(this,t1.prototype)}}pB.ReserveCacheError=t1;class PU extends Error{constructor(A){super(A);this.name="FinalizeCacheError",Object.setPrototypeOf(this,PU.prototype)}}pB.FinalizeCacheError=PU;function mt(A){if(!A||A.length===0)throw new cC("Path Validation Error: At least one directory or file path is required")}function wR(A){if(A.length>512)throw new cC(`Key Validation Error: ${A} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(A))throw new cC(`Key Validation Error: ${A} cannot contain commas.`)}function axA(){switch((0,C7.getCacheServiceVersion)()){case"v2":return!!process.env.ACTIONS_RESULTS_URL;case"v1":default:return!!process.env.ACTIONS_CACHE_URL}}pB.isFeatureAvailable=axA;function sxA(A,Q,B,E,I=!1){return RN(this,void 0,void 0,function*(){let C=(0,C7.getCacheServiceVersion)();switch(sA.debug(`Cache service version: ${C}`),mt(A),C){case"v2":return yield rxA(A,Q,B,E,I);case"v1":default:return yield oxA(A,Q,B,E,I)}})}pB.restoreCache=sxA;function oxA(A,Q,B,E,I=!1){return RN(this,void 0,void 0,function*(){B=B||[];let C=[Q,...B];if(sA.debug("Resolved Keys:"),sA.debug(JSON.stringify(C)),C.length>10)throw new cC("Key Validation Error: Keys are limited to a maximum of 10.");for(let Y of C)wR(Y);let D=yield qB.getCompressionMethod(),F="";try{let Y=yield MN.getCacheEntry(C,A,{compressionMethod:D,enableCrossOsArchive:I});if(!(Y===null||Y===void 0?void 0:Y.archiveLocation))return;if(E===null||E===void 0?void 0:E.lookupOnly)return sA.info("Lookup only - skipping download"),Y.cacheKey;if(F=I7.join(yield qB.createTempDirectory(),qB.getCacheFileName(D)),sA.debug(`Archive Path: ${F}`),yield MN.downloadCache(Y.archiveLocation,F,E),sA.isDebug())yield(0,_F.listTar)(F,D);let J=qB.getArchiveFileSizeInBytes(F);return sA.info(`Cache Size: ~${Math.round(J/1048576)} MB (${J} B)`),yield(0,_F.extractTar)(F,D),sA.info("Cache restored successfully"),Y.cacheKey}catch(Y){let J=Y;if(J.name===cC.name)throw Y;else if(J instanceof D7.HttpClientError&&typeof J.statusCode==="number"&&J.statusCode>=500)sA.error(`Failed to restore: ${Y.message}`);else sA.warning(`Failed to restore: ${Y.message}`)}finally{try{yield qB.unlinkFile(F)}catch(Y){sA.debug(`Failed to delete archive: ${Y}`)}}return})}function rxA(A,Q,B,E,I=!1){return RN(this,void 0,void 0,function*(){E=Object.assign(Object.assign({},E),{useAzureSdk:!0}),B=B||[];let C=[Q,...B];if(sA.debug("Resolved Keys:"),sA.debug(JSON.stringify(C)),C.length>10)throw new cC("Key Validation Error: Keys are limited to a maximum of 10.");for(let F of C)wR(F);let D="";try{let F=ut.internalCacheTwirpClient(),Y=yield qB.getCompressionMethod(),J={key:Q,restoreKeys:B,version:qB.getCacheVersion(A,Y,I)},G=yield F.GetCacheEntryDownloadURL(J);if(!G.ok){sA.debug(`Cache not found for version ${J.version} of keys: ${C.join(", ")}`);return}if(J.key!==G.matchedKey)sA.info(`Cache hit for restore-key: ${G.matchedKey}`);else sA.info(`Cache hit for: ${G.matchedKey}`);if(E===null||E===void 0?void 0:E.lookupOnly)return sA.info("Lookup only - skipping download"),G.matchedKey;D=I7.join(yield qB.createTempDirectory(),qB.getCacheFileName(Y)),sA.debug(`Archive path: ${D}`),sA.debug(`Starting download of archive to: ${D}`),yield MN.downloadCache(G.signedDownloadUrl,D,E);let U=qB.getArchiveFileSizeInBytes(D);if(sA.info(`Cache Size: ~${Math.round(U/1048576)} MB (${U} B)`),sA.isDebug())yield(0,_F.listTar)(D,Y);return yield(0,_F.extractTar)(D,Y),sA.info("Cache restored successfully"),G.matche Line truncated
WHERE eas_build_id IS NOT NULL AND eas_build_id != "" AND fingerprint_hash = ?
ORDER BY updated_at DESC LIMIT 1`,A);return Q?XE.serialize(Q):null}async getEntityFromGitCommitHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let Q=await this.db.getAsync(`SELECT * FROM ${XE.TABLE_NAME} WHERE git_commit_hash = ?`,A);return Q?XE.serialize(Q):null}async getFirstEntityFromFingerprintHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let Q=await this.db.getAsync(`SELECT * FROM ${XE.TABLE_NAME} WHERE fingerprint_hash = ?`,A);return Q?XE.serialize(Q):null}async queryEntitiesFromFingerprintHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");return(await this.db.allAsync(`SELECT * FROM ${XE.TABLE_NAME} WHERE fingerprint_hash = ?`,A)).map((B)=>XE.serialize(B))}async getFingerprintSourcesAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let B=(await this.db.getAsync(`SELECT json_extract(fingerprint, '$.sources') as sources FROM ${XE.TABLE_NAME} WHERE fingerprint_hash = ?`,A))?.sources;if(!B)return null;return JSON.parse(B)}async getFirstGitHubArtifactAsync(A,Q){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let B=await this.db.getAsync(`SELECT ga.id, ga.artifact_id, ga.artifact_url, ga.artifact_digest, ga.workflow_run_id, ga.platform
FROM ${XE.TABLE_NAME} f
JOIN github_artifacts ga ON f.id = ga.fingerprint_id
WHERE f.fingerprint_hash = ? AND (ga.platform = ? AND (f.platform = ? OR f.platform IS NULL))
ORDER BY f.id ASC, ga.id ASC
LIMIT 1`,A,Q,Q);if(!B)return null;return{id:B.id,artifactId:B.artifact_id,artifactUrl:B.artifact_url,artifactDigest:B.artifact_digest,workflowRunId:B.workflow_run_id,platform:B.platform}}getArtifactsManager(){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");return new WE(this.db)}async closeAsync(){this.db?.closeAsync()}static TABLE_NAME="fingerprint";static SCHEMA=["id INTEGER PRIMARY KEY AUTOINCREMENT","eas_build_id TEXT","git_commit_hash TEXT NOT NULL","fingerprint_hash TEXT NOT NULL","fingerprint TEXT NOT NULL","platform TEXT","created_at TEXT NOT NULL DEFAULT (DATETIME('now', 'utc'))","updated_at TEXT NOT NULL DEFAULT (DATETIME('now', 'utc'))"];static INDEXES=[`CREATE UNIQUE INDEX IF NOT EXISTS idx_git_commit_hash ON ${this.TABLE_NAME} (git_commit_hash)`,`CREATE INDEX IF NOT EXISTS idx_fingerprint_hash ON ${this.TABLE_NAME} (fingerprint_hash)`];static EXTRA_CREATE_DB_STATEMENTS=[`CREATE TRIGGER IF NOT EXISTS update_fingerprint_updated_at AFTER UPDATE ON ${this.TABLE_NAME}
BEGIN
UPDATE ${this.TABLE_NAME} SET updated_at = DATETIME('now', 'utc') WHERE id = NEW.id;
END`];db=null;static serialize(A){return{id:A.id,easBuildId:A.eas_build_id,gitCommitHash:A.git_commit_hash,fingerprintHash:A.fingerprint_hash,fingerprint:JSON.parse(A.fingerprint),platform:A.platform,createdAt:A.created_at,updatedAt:A.updated_at}}}async function QiA(A,Q){await EhA(Q.fingerprintVersion,Q.packager,Q.fingerprintInstallationCache);let B=require("@expo/fingerprint"),E=await B.createFingerprintAsync(Q.workingDirectory),I=null;if(Q.previousGitCommitHash)I=await A.getEntityFromGitCommitHashAsync(Q.previousGitCommitHash);let C=I!=null?await B.diffFingerprints(I.fingerprint,E):await B.diffFingerprints({sources:[],hash:""},E);return{currentFingerprint:E,previousFingerprint:I?.fingerprint??null,diff:C}}async function De(A,Q){await Be(A);let B=await gR();if(await IhA(Q)!=null)PE.info(`Restored fingerprint database from cache - cacheKey[${Q}]`);else PE.info(`Missing fingerprint database from cache - will create a new database - cacheKey[${Q}]`);let I=new XE(B);return await I.initAsync(),I}function BiA(){return{packager:PE.getInput("packager")||"yarn",githubToken:PE.getInput("github-token"),workingDirectory:PE.getInput("working-directory"),fingerprintVersion:PE.getInput("fingerprint-version")||"latest",fingerprintInstallationCache:!PE.getInput("fingerprint-installation-cache")||PE.getBooleanInput("fingerprint-installation-cache"),fingerprintDbCacheKey:PE.getInput("fingerprint-db-cache-key"),previousGitCommitHash:PE.getInput("previous-git-commit")||(e1.context.eventName==="pull_request"?e1.context.payload.pull_request?.base?.sha:e1.context.payload.before),currentGitCommitHash:PE.getInput("current-git-commit")||(e1.context.eventName==="pull_request"?e1.context.payload.pull_request?.head?.sha:e1.context.sha),savingDbBranch:PE.getInput("saving-db-branch")||void 0}}async function EhA(A,Q,B=!0){let I=await J7("@expo/fingerprint",A),C=B?`Installing @expo/fingerprint (${I}) from cache or with ${Q}`:`Installing @expo/fingerprint (${I}) with ${Q}`;return await PE.group(C,async()=>{let D=await G7({name:"@expo/fingerprint",version:I,packageManager:Q,packageCache:B});return bf(D),z4(ON.default.join(D,"node_modules")),D})}async function IhA(A){return F7(ON.default.dirname(await gR()),A)}async function EiA(A){return PE.info(`Saving fingerprint database to cache: ${A}`),Y7(ON.default.dirname(await gR()),A)}async function gR(){Ie.default(process.env.RUNNER_TOOL_CACHE,"Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined");let A=ON.default.join(process.env.RUNNER_TOOL_CACHE,"fingerprint-storage","fingerprint.db"),Q=ON.default.dirname(A);if(!await Ce.default.promises.stat(Q).catch(()=>null))await Ee.mkdirP(Q);return A}vf(ChA);async function ChA(){let A=lC.getInput("fingerprint-hash",{required:!0}),Q=lC.getInput("platform",{required:!0}),B=lC.getInput("packager"),E=lC.getInput("fingerprint-db-cache-key"),C=await(await De(B,E)).getFirstGitHubArtifactAsync(A,Q);if(C)lC.setOutput("artifact-id",C.artifactId),lC.setOutput("artifact-url",C.artifactUrl),lC.setOutput("run-id",C.workflowRunId);else lC.setOutput("artifact-id",""),lC.setOutput("artifact-url",""),lC.setOutput("run-id","")}
+226
View File
@@ -0,0 +1,226 @@
var Je=Object.create;var{getPrototypeOf:Ge,defineProperty:PN,getOwnPropertyNames:qR,getOwnPropertyDescriptor:Ne}=Object,jR=Object.prototype.hasOwnProperty;var lQ=(A,Q,B)=>{B=A!=null?Je(Ge(A)):{};let E=Q||!A||!A.__esModule?PN(B,"default",{value:A,enumerable:!0}):B;for(let I of qR(A))if(!jR.call(E,I))PN(E,I,{get:()=>A[I],enumerable:!0});return E},OR=new WeakMap,JhA=(A)=>{var Q=OR.get(A),B;if(Q)return Q;if(Q=PN({},"__esModule",{value:!0}),A&&typeof A==="object"||typeof A==="function")qR(A).map((E)=>!jR.call(Q,E)&&PN(Q,E,{get:()=>A[E],enumerable:!(B=Ne(A,E))||B.enumerable}));return OR.set(A,Q),Q},K=(A,Q)=>()=>(Q||A((Q={exports:{}}).exports,Q),Q.exports);var GhA=(A,Q)=>{for(var B in Q)PN(A,B,{get:Q[B],enumerable:!0,configurable:!0,set:(E)=>Q[B]=()=>E})};var SU=K((AY)=>{Object.defineProperty(AY,"__esModule",{value:!0});AY.toCommandProperties=AY.toCommandValue=void 0;function Ue(A){if(A===null||A===void 0)return"";else if(typeof A==="string"||A instanceof String)return A;return JSON.stringify(A)}AY.toCommandValue=Ue;function Ze(A){if(!Object.keys(A).length)return{};return{title:A.title,file:A.file,line:A.startLine,endLine:A.endLine,col:A.startColumn,endColumn:A.endColumn}}AY.toCommandProperties=Ze});var hR=K((YC)=>{var We=YC&&YC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),Xe=YC&&YC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),$e=YC&&YC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))We(Q,A,B)}return Xe(Q,A),Q};Object.defineProperty(YC,"__esModule",{value:!0});YC.issue=YC.issueCommand=void 0;var Ke=$e(require("os")),kR=SU();function fR(A,Q,B){let E=new xR(A,Q,B);process.stdout.write(E.toString()+Ke.EOL)}YC.issueCommand=fR;function Le(A,Q=""){fR(A,{},Q)}YC.issue=Le;var PR="::";class xR{constructor(A,Q,B){if(!A)A="missing.command";this.command=A,this.properties=Q,this.message=B}toString(){let A=PR+this.command;if(this.properties&&Object.keys(this.properties).length>0){A+=" ";let Q=!0;for(let B in this.properties)if(this.properties.hasOwnProperty(B)){let E=this.properties[B];if(E){if(Q)Q=!1;else A+=",";A+=`${B}=${ze(E)}`}}}return A+=`${PR}${Ve(this.message)}`,A}}function Ve(A){return(0,kR.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function ze(A){return(0,kR.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});var _R=K((JC)=>{var He=JC&&JC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),we=JC&&JC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),U7=JC&&JC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))He(Q,A,B)}return we(Q,A),Q};Object.defineProperty(JC,"__esModule",{value:!0});JC.prepareKeyValueMessage=JC.issueFileCommand=void 0;var Me=U7(require("crypto")),SR=U7(require("fs")),N7=U7(require("os")),yR=SU();function Re(A,Q){let B=process.env[`GITHUB_${A}`];if(!B)throw Error(`Unable to find environment variable for file command ${A}`);if(!SR.existsSync(B))throw Error(`Missing file at path: ${B}`);SR.appendFileSync(B,`${(0,yR.toCommandValue)(Q)}${N7.EOL}`,{encoding:"utf8"})}JC.issueFileCommand=Re;function ge(A,Q){let B=`ghadelimiter_${Me.randomUUID()}`,E=(0,yR.toCommandValue)(Q);if(A.includes(B))throw Error(`Unexpected input: name should not contain the delimiter "${B}"`);if(E.includes(B))throw Error(`Unexpected input: value should not contain the delimiter "${B}"`);return`${A}<<${B}${N7.EOL}${E}${N7.EOL}${B}`}JC.prepareKeyValueMessage=ge});var bR=K((QY)=>{Object.defineProperty(QY,"__esModule",{value:!0});QY.checkBypass=QY.getProxyUrl=void 0;function Te(A){let Q=A.protocol==="https:";if(vR(A))return;let B=(()=>{if(Q)return process.env.https_proxy||process.env.HTTPS_PROXY;else return process.env.http_proxy||process.env.HTTP_PROXY})();if(B)try{return new Z7(B)}catch(E){if(!B.startsWith("http://")&&!B.startsWith("https://"))return new Z7(`http://${B}`)}else return}QY.getProxyUrl=Te;function vR(A){if(!A.hostname)return!1;let Q=A.hostname;if(Oe(Q))return!0;let B=process.env.no_proxy||process.env.NO_PROXY||"";if(!B)return!1;let E;if(A.port)E=Number(A.port);else if(A.protocol==="http:")E=80;else if(A.protocol==="https:")E=443;let I=[A.hostname.toUpperCaseLine truncated
`,N.message,N.stack);var U=Error("tunneling socket could not be established, cause="+N.message);U.code="ECONNRESET",Q.request.emit("error",U),E.removeSocket(I)}};s0.prototype.removeSocket=function(Q){var B=this.sockets.indexOf(Q);if(B===-1)return;this.sockets.splice(B,1);var E=this.requests.shift();if(E)this.createSocket(E,function(I){E.request.onSocket(I)})};function mR(A,Q){var B=this;s0.prototype.createSocket.call(B,A,function(E){var I=A.request.getHeader("host"),C=X7({},B.options,{socket:E,servername:I?I.replace(/:.*$/,""):A.host}),D=qe.connect(0,C);B.sockets[B.sockets.indexOf(E)]=D,Q(D)})}function dR(A,Q,B){if(typeof A==="string")return{host:A,port:Q,localAddress:B};return A}function X7(A){for(var Q=1,B=arguments.length;Q<B;++Q){var E=arguments[Q];if(typeof E==="object"){var I=Object.keys(E);for(var C=0,D=I.length;C<D;++C){var F=I[C];if(E[F]!==void 0)A[F]=E[F]}}}return A}var kD;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG))kD=function(){var A=Array.prototype.slice.call(arguments);if(typeof A[0]==="string")A[0]="TUNNEL: "+A[0];else A.unshift("TUNNEL:");console.error.apply(console,A)};else kD=function(){};BY.debug=kD});var pR=K((VhA,lR)=>{lR.exports=cR()});var UB=K((zhA,iR)=>{iR.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"),kHeadersList:Symbol("headers list"),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"),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"),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"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}});var eQ=K((HhA,aR)=>{class rB extends Error{constructor(A){super(A);this.name="UndiciError",this.code="UND_ERR"}}class $7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,$7),this.name="ConnectTimeoutError",this.message=A||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}}class K7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,K7),this.name="HeadersTimeoutError",this.message=A||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}}class L7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,L7),this.name="HeadersOverflowError",this.message=A||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}}class V7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,V7),this.name="BodyTimeoutError",this.message=A||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}}class z7 extends rB{constructor(A,Q,B,E){super(A);Error.captureStackTrace(this,z7),this.name="ResponseStatusCodeError",this.message=A||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=E,this.status=Q,this.statusCode=Q,this.headers=B}}class H7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,H7),this.name="InvalidArgumentError",this.message=A||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}}class w7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,w7),this.name="InvalidReturnValueError",this.message=A||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}}class M7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,M7),this.name="AbortError",this.me Line truncated
\r
`),zAA=/\r\n/g,HAA=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function IY(A){Kg.call(this),A=A||{};let Q=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=$g(A,"maxHeaderPairs",2000),this.maxHeaderSize=$g(A,"maxHeaderSize",81920),this.buffer="",this.header={},this.finished=!1,this.ss=new LAA(VAA),this.ss.on("info",function(B,E,I,C){if(E&&!Q.maxed){if(Q.nread+C-I>=Q.maxHeaderSize)C=Q.maxHeaderSize-Q.nread+I,Q.nread=Q.maxHeaderSize,Q.maxed=!0;else Q.nread+=C-I;Q.buffer+=E.toString("binary",I,C)}if(B)Q._finish()})}KAA(IY,Kg);IY.prototype.push=function(A){let Q=this.ss.push(A);if(this.finished)return Q};IY.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};IY.prototype._finish=function(){if(this.buffer)this._parseHeader();this.ss.matches=this.ss.maxMatches;let A=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",A)};IY.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let A=this.buffer.split(zAA),Q=A.length,B,E;for(var I=0;I<Q;++I){if(A[I].length===0)continue;if(A[I][0]==="\t"||A[I][0]===" "){if(E){this.header[E][this.header[E].length-1]+=A[I];continue}}let C=A[I].indexOf(":");if(C===-1||C===0)return;if(B=HAA.exec(A[I]),E=B[1].toLowerCase(),this.header[E]=this.header[E]||[],this.header[E].push(B[2]||""),++this.npairs===this.maxHeaderPairs)break}};Lg.exports=IY});var d7=K((jhA,Hg)=>{var m7=require("node:stream").Writable,wAA=require("node:util").inherits,MAA=b7(),zg=Wg(),RAA=Vg(),gAA=Buffer.from("-"),TAA=Buffer.from(`\r
`),OAA=function(){};function lC(A){if(!(this instanceof lC))return new lC(A);if(m7.call(this,A),!A||!A.headerFirst&&typeof A.boundary!=="string")throw TypeError("Boundary required");if(typeof A.boundary==="string")this.setBoundary(A.boundary);else this._bparser=void 0;this._headerFirst=A.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:A.partHwm},this._pause=!1;let Q=this;this._hparser=new RAA(A),this._hparser.on("header",function(B){Q._inHeader=!1,Q._part.emit("header",B)})}wAA(lC,m7);lC.prototype.emit=function(A){if(A==="finish"&&!this._realFinish){if(!this._finished){let Q=this;process.nextTick(function(){if(Q.emit("error",Error("Unexpected end of multipart data")),Q._part&&!Q._ignoreData){let B=Q._isPreamble?"Preamble":"Part";Q._part.emit("error",Error(B+" terminated early due to unexpected end of multipart data")),Q._part.push(null),process.nextTick(function(){Q._realFinish=!0,Q.emit("finish"),Q._realFinish=!1});return}Q._realFinish=!0,Q.emit("finish"),Q._realFinish=!1})}}else m7.prototype.emit.apply(this,arguments)};lC.prototype._write=function(A,Q,B){if(!this._hparser&&!this._bparser)return B();if(this._headerFirst&&this._isPreamble){if(!this._part)if(this._part=new zg(this._partOpts),this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else this._ignore();let E=this._hparser.push(A);if(!this._inHeader&&E!==void 0&&E<A.length)A=A.slice(E);else return B()}if(this._firstWrite)this._bparser.push(TAA),this._firstWrite=!1;if(this._bparser.push(A),this._pause)this._cb=B;else B()};lC.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};lC.prototype.setBoundary=function(A){let Q=this;this._bparser=new MAA(`\r
--`+A),this._bparser.on("info",function(B,E,I,C){Q._oninfo(B,E,I,C)})};lC.prototype._ignore=function(){if(this._part&&!this._ignoreData)this._ignoreData=!0,this._part.on("error",OAA),this._part.resume()};lC.prototype._oninfo=function(A,Q,B,E){let I,C=this,D=0,F,Y=!0;if(!this._part&&this._justMatched&&Q){while(this._dashes<2&&B+D<E)if(Q[B+D]===45)++D,++this._dashes;else{if(this._dashes)I=gAA;this._dashes=0;break}if(this._dashes===2){if(B+D<E&&this.listenerCount("trailer")!==0)this.emit("trailer",Q.slice(B+D,E));if(this.reset(),this._finished=!0,C._parts===0)C._realFinish=!0,C.emit("finish"),C._realFinish=!1}if(this._dashes)return}if(this._justMatched)this._justMatched=!1;if(!this._part){if(this._part=new zg(this._partOpts),this._part._read=function(J){C._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else if(this._isPreamble!==!0&&this.listenerCount("part")!==0)this.emit("part",this._part);else this._ignore();if(!this._isPreamble)this._inHeader=!0}if(Q&&B<E&&!this._ignoreData){if(this._isPreamble||!this._inHeader){if(I)Y=this._part.push(I);if(Y=this._part.push(Q.slice(B,E)),!Y)this._pause=!0}else if(!this._isPreamble&&this._inHeader){if(I)this._hparser.push(I);if(F=this._hparser.push(Q.slice(B,E)),!this._inHeader&&F!==void 0&&F<E)this._oninfo(!1,Q,B+F,E)}}if(A){if(this._hparser.reset(),this._isPreamble)this._isPreamble=!1;else if(B!==E)++this._parts,this._part.on("end",function(){if(--C._parts===0)if(C._finished)C._realFinish=!0,C.emit("finish"),C._realFinish=!1;else C._unpause()});this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0}};lC.prototype._unpause=function(){if(!this._pause)return;if(this._pause=!1,this._cb){let A=this._cb;this._cb=void 0,A()}};Hg.exports=lC});var uU=K((c7,Rg)=>{var wg=new TextDecoder("utf-8"),Mg=new Map([["utf-8",wg],["utf8",wg]]);function qAA(A){let Q;while(!0)switch(A){case"utf-8":case"utf8":return fN.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return fN.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return fN.utf16le;case"base64":return fN.base64;default:if(Q===void 0){Q=!0,A=A.toLowerCase();continue}return fN.other.bind(A)}}var fN={utf8:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.utf8Slice(0,A.length)},latin1:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")return A;return A.latin1Slice(0,A.length)},utf16le:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.ucs2Slice(0,A.length)},base64:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.base64Slice(0,A.length)},other:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);if(Mg.has(c7.toString()))try{return Mg.get(c7).decode(A)}catch{}return typeof A==="string"?A:A.toString()}};function jAA(A,Q,B){if(A)return qAA(B)(A,Q);return A}Rg.exports=jAA});var p7=K((PhA,jg)=>{var mU=uU(),gg=/%[a-fA-F0-9][a-fA-F0-9]/g,PAA={"%00":"\x00","%01":"\x01","%02":"\x02","%03":"\x03","%04":"\x04","%05":"\x05","%06":"\x06","%07":"\x07","%08":"\b","%09":"\t","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"\x0E","%0E":"\x0E","%0f":"\x0F","%0F":"\x0F","%10":"\x10","%11":"\x11","%12":"\x12","%13":"\x13","%14":"\x14","%15":"\x15","%16":"\x16","%17":"\x17","%18":"\x18","%19":"\x19","%1a":"\x1A","%1A":"\x1A","%1b":"\x1B","%1B":"\x1B","%1c":"\x1C","%1C":"\x1C","%1d":"\x1D","%1D":"\x1D","%1e":"\x1E","%1E":"\x1E","%1f":"\x1F","%1F":"\x1F","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"","%B6":"","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%FdLine truncated
`))return!1;return!0}function jQA(A,Q){let{headersList:B}=Q,E=(B.get("referrer-policy")??"").split(","),I="";if(E.length>0)for(let C=E.length;C!==0;C--){let D=E[C-1].trim();if(XQA.has(D)){I=D;break}}if(I!=="")A.referrerPolicy=I}function PQA(){return"allowed"}function kQA(){return"success"}function fQA(){return"success"}function xQA(A){let Q=null;Q=A.mode,A.headersList.set("sec-fetch-mode",Q)}function hQA(A){let Q=A.origin;if(A.responseTainting==="cors"||A.mode==="websocket"){if(Q)A.headersList.append("origin",Q)}else if(A.method!=="GET"&&A.method!=="HEAD"){switch(A.referrerPolicy){case"no-referrer":Q=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(A.origin&&e7(A.origin)&&!e7(SN(A)))Q=null;break;case"same-origin":if(!iU(A,SN(A)))Q=null;break;default:}if(Q)A.headersList.append("origin",Q)}}function SQA(A){return LQA.now()}function yQA(A){return{startTime:A.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:A.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function _QA(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function vQA(A){return{referrerPolicy:A.referrerPolicy}}function bQA(A){let Q=A.referrerPolicy;JY(Q);let B=null;if(A.referrer==="client"){let F=KQA();if(!F||F.origin==="null")return"no-referrer";B=new URL(F)}else if(A.referrer instanceof URL)B=A.referrer;let E=r7(B),I=r7(B,!0);if(E.toString().length>4096)E=I;let C=iU(A,E),D=hN(E)&&!hN(A.url);switch(Q){case"origin":return I!=null?I:r7(B,!0);case"unsafe-url":return E;case"same-origin":return C?I:"no-referrer";case"origin-when-cross-origin":return C?E:I;case"strict-origin-when-cross-origin":{let F=SN(A);if(iU(E,F))return E;if(hN(E)&&!hN(F))return"no-referrer";return I}case"strict-origin":case"no-referrer-when-downgrade":default:return D?"no-referrer":I}}function r7(A,Q){if(JY(A instanceof URL),A.protocol==="file:"||A.protocol==="about:"||A.protocol==="blank:")return"no-referrer";if(A.username="",A.password="",A.hash="",Q)A.pathname="",A.search="";return A}function hN(A){if(!(A instanceof URL))return!1;if(A.href==="about:blank"||A.href==="about:srcdoc")return!0;if(A.protocol==="data:")return!0;if(A.protocol==="file:")return!0;return Q(A.origin);function Q(B){if(B==null||B==="null")return!1;let E=new URL(B);if(E.protocol==="https:"||E.protocol==="wss:")return!0;if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(E.hostname)||(E.hostname==="localhost"||E.hostname.includes("localhost."))||E.hostname.endsWith(".localhost"))return!0;return!1}}function uQA(A,Q){if(pU===void 0)return!0;let B=BT(Q);if(B==="no metadata")return!0;if(B.length===0)return!0;let E=dQA(B),I=cQA(B,E);for(let C of I){let{algo:D,hash:F}=C,Y=pU.createHash(D).update(A).digest("base64");if(Y[Y.length-1]==="=")if(Y[Y.length-2]==="=")Y=Y.slice(0,-2);else Y=Y.slice(0,-1);if(lQA(Y,F))return!0}return!1}var mQA=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function BT(A){let Q=[],B=!0;for(let E of A.split(" ")){B=!1;let I=mQA.exec(E);if(I===null||I.groups===void 0||I.groups.algo===void 0)continue;let C=I.groups.algo.toLowerCase();if(tg.includes(C))Q.push(I.groups)}if(B===!0)return"no metadata";return Q}function dQA(A){let Q=A[0].algo;if(Q[3]==="5")return Q;for(let B=1;B<A.length;++B){let E=A[B];if(E.algo[3]==="5"){Q="sha512";break}else if(Q[3]==="3")continue;else if(E.algo[3]==="3")Q="sha384"}return Q}function cQA(A,Q){if(A.length===1)return A;let B=0;for(let E=0;E<A.length;++E)if(A[E].algo===Q)A[B++]=A[E];return A.length=B,A}function lQA(A,Q){if(A.length!==Q.length)return!1;for(let B=0;B<A.length;++B)if(A[B]!==Q[B]){if(A[B]==="+"&&Q[B]==="-"||A[B]==="/"&&Q[B]==="_")continue;return!1}return!0}function pQA(A){}function iU(A,Q){if(A.origin===Q.origin&&A.origin==="null")return!0;if(A.protocol===Q.protocol&&A.hostname===Q.hostname&&A.port===Q.port)return!0;return!1}function iQA(){let A,Q;return{promise:new Promise((E,I)=>{A=E,Q=I}),resolve:A,reject:Q}}function nQA(A){return A.controller.state==="aborted"}function aQA(A){return A.controller.state==="aborted"||A.controller.state==="terminated"}var A3={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(A3,null);function sQA(A){return A3[A.toLowerCase()]??A}function oQA(A){let Q=JSON.stringify(A);if(Q===void 0)throw TypeError("Value is not JSON serializable");return JY(typeof Q==="string"),Q}var rQA=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function tQA(A,Q,B){let E={index:0,kind:B,target:A},I={next(){if(Object.getPrototypeOf(this)!==I)throw TypeError(`'next' called on an object that does not implement interface ${Q} Iterator.`);let{index:C,kind:D,target:F}=E,Y=F(),J=Y.length;if(C>=J)return{value:void 0,done:!0};let Line truncated
`||A==="\t"||A===" "}function Q3(A,Q=!0,B=!0){let E=0,I=A.length-1;if(Q)for(;E<A.length&&JT(A[E]);E++);if(B)for(;I>0&&JT(A[I]);I--);return A.slice(E,I+1)}function GT(A){return A==="\r"||A===`
`||A==="\t"||A==="\f"||A===" "}function LBA(A,Q=!0,B=!0){let E=0,I=A.length-1;if(Q)for(;E<A.length&&GT(A[E]);E++);if(B)for(;I>0&&GT(A[I]);I--);return A.slice(E,I+1)}WT.exports={dataURLProcessor:WBA,URLSerializer:NT,collectASequenceOfCodePoints:sU,collectASequenceOfCodePointsFast:GY,stringPercentDecode:UT,parseMIMEType:B3,collectAnHTTPQuotedString:ZT,serializeAMimeType:KBA}});var oU=K((dhA,VT)=>{var{Blob:KT,File:XT}=require("buffer"),{types:E3}=require("util"),{kState:cI}=r0(),{isBlobLike:LT}=GC(),{webidl:yQ}=QI(),{parseMIMEType:VBA,serializeAMimeType:zBA}=pC(),{kEnumerableProperty:$T}=TQ(),HBA=new TextEncoder;class mF extends KT{constructor(A,Q,B={}){yQ.argumentLengthCheck(arguments,2,{header:"File constructor"}),A=yQ.converters["sequence<BlobPart>"](A),Q=yQ.converters.USVString(Q),B=yQ.converters.FilePropertyBag(B);let E=Q,I=B.type,C;A:{if(I){if(I=VBA(I),I==="failure"){I="";break A}I=zBA(I).toLowerCase()}C=B.lastModified}super(wBA(A,B),{type:I});this[cI]={name:E,lastModified:C,type:I}}get name(){return yQ.brandCheck(this,mF),this[cI].name}get lastModified(){return yQ.brandCheck(this,mF),this[cI].lastModified}get type(){return yQ.brandCheck(this,mF),this[cI].type}}class N0{constructor(A,Q,B={}){let E=Q,I=B.type,C=B.lastModified??Date.now();this[cI]={blobLike:A,name:E,type:I,lastModified:C}}stream(...A){return yQ.brandCheck(this,N0),this[cI].blobLike.stream(...A)}arrayBuffer(...A){return yQ.brandCheck(this,N0),this[cI].blobLike.arrayBuffer(...A)}slice(...A){return yQ.brandCheck(this,N0),this[cI].blobLike.slice(...A)}text(...A){return yQ.brandCheck(this,N0),this[cI].blobLike.text(...A)}get size(){return yQ.brandCheck(this,N0),this[cI].blobLike.size}get type(){return yQ.brandCheck(this,N0),this[cI].blobLike.type}get name(){return yQ.brandCheck(this,N0),this[cI].name}get lastModified(){return yQ.brandCheck(this,N0),this[cI].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(mF.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:$T,lastModified:$T});yQ.converters.Blob=yQ.interfaceConverter(KT);yQ.converters.BlobPart=function(A,Q){if(yQ.util.Type(A)==="Object"){if(LT(A))return yQ.converters.Blob(A,{strict:!1});if(ArrayBuffer.isView(A)||E3.isAnyArrayBuffer(A))return yQ.converters.BufferSource(A,Q)}return yQ.converters.USVString(A,Q)};yQ.converters["sequence<BlobPart>"]=yQ.sequenceConverter(yQ.converters.BlobPart);yQ.converters.FilePropertyBag=yQ.dictionaryConverter([{key:"lastModified",converter:yQ.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:yQ.converters.DOMString,defaultValue:""},{key:"endings",converter:(A)=>{if(A=yQ.converters.DOMString(A),A=A.toLowerCase(),A!=="native")A="transparent";return A},defaultValue:"transparent"}]);function wBA(A,Q){let B=[];for(let E of A)if(typeof E==="string"){let I=E;if(Q.endings==="native")I=MBA(I);B.push(HBA.encode(I))}else if(E3.isAnyArrayBuffer(E)||E3.isTypedArray(E))if(!E.buffer)B.push(new Uint8Array(E));else B.push(new Uint8Array(E.buffer,E.byteOffset,E.byteLength));else if(LT(E))B.push(E);return B}function MBA(A){let Q=`
`;if(process.platform==="win32")Q=`\r
`;return A.replace(/\r?\n/g,Q)}function RBA(A){return XT&&A instanceof XT||A instanceof mF||A&&(typeof A.stream==="function"||typeof A.arrayBuffer==="function")&&A[Symbol.toStringTag]==="File"}VT.exports={File:mF,FileLike:N0,isFileLike:RBA}});var tU=K((chA,RT)=>{var{isBlobLike:rU,toUSVString:gBA,makeIterator:I3}=GC(),{kState:vE}=r0(),{File:MT,FileLike:zT,isFileLike:TBA}=oU(),{webidl:pQ}=QI(),{Blob:OBA,File:C3}=require("buffer"),HT=C3??MT;class BI{constructor(A){if(A!==void 0)throw pQ.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[vE]=[]}append(A,Q,B=void 0){if(pQ.brandCheck(this,BI),pQ.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!rU(Q))throw TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");A=pQ.converters.USVString(A),Q=rU(Q)?pQ.converters.Blob(Q,{strict:!1}):pQ.converters.USVString(Q),B=arguments.length===3?pQ.converters.USVString(B):void 0;let E=wT(A,Q,B);this[vE].push(E)}delete(A){pQ.brandCheck(this,BI),pQ.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),A=pQ.converters.USVString(A),this[vE]=this[vE].filter((Q)=>Q.name!==A)}get(A){pQ.brandCheck(this,BI),pQ.argumentLengthCheck(arguments,1,{header:"FormData.get"}),A=pQ.converters.USVString(A);let Q=this[vE].findIndex((B)=>B.name===A);if(Q===-1)return null;return this[vE][Q].value}getAll(A){return pQ.brandCheck(this,BI),pQ.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),A=pQ.converters.USVString(A),this[vE].filter((Q)=>Q.name===A).map((Q)=>Q.value)}has(A){return pQ.brandCheck(this,BI),pQ.argumentLengthCheck(arguments,1,{header:"FormData.has"}),A=pQ.converters.USVString(A),this[vE].findIndex((Q)=>Q.name===A)!==-1}set(A,Q,B=void 0){if(pQ.brandCheck(this,BI),pQ.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!rU(Q))throw TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");A=pQ.converters.USVString(A),Q=rU(Q)?pQ.converters.Blob(Q,{strict:!1}):pQ.converters.USVString(Q),B=arguments.length===3?gBA(B):void 0;let E=wT(A,Q,B),I=this[vE].findIndex((C)=>C.name===A);if(I!==-1)this[vE]=[...this[vE].slice(0,I),E,...this[vE].slice(I+1).filter((C)=>C.name!==A)];else this[vE].push(E)}entries(){return pQ.brandCheck(this,BI),I3(()=>this[vE].map((A)=>[A.name,A.value]),"FormData","key+value")}keys(){return pQ.brandCheck(this,BI),I3(()=>this[vE].map((A)=>[A.name,A.value]),"FormData","key")}values(){return pQ.brandCheck(this,BI),I3(()=>this[vE].map((A)=>[A.name,A.value]),"FormData","value")}forEach(A,Q=globalThis){if(pQ.brandCheck(this,BI),pQ.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof A!=="function")throw TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[B,E]of this)A.apply(Q,[E,B,this])}}BI.prototype[Symbol.iterator]=BI.prototype.entries;Object.defineProperties(BI.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function wT(A,Q,B){if(A=Buffer.from(A).toString("utf8"),typeof Q==="string")Q=Buffer.from(Q).toString("utf8");else{if(!TBA(Q))Q=Q instanceof OBA?new HT([Q],"blob",{type:Q.type}):new zT(Q,"blob",{type:Q.type});if(B!==void 0){let E={type:Q.type,lastModified:Q.lastModified};Q=C3&&Q instanceof C3||Q instanceof MT?new HT([Q],B,E):new zT(Q,B,E)}}return{name:A,value:Q}}RT.exports={FormData:BI}});var yN=K((lhA,xT)=>{var qBA=dg(),NY=TQ(),{ReadableStreamFrom:jBA,isBlobLike:gT,isReadableStreamLike:PBA,readableStreamClose:kBA,createDeferredPromise:fBA,fullyReadBody:xBA}=GC(),{FormData:TT}=tU(),{kState:e0}=r0(),{webidl:D3}=QI(),{DOMException:jT,structuredClone:hBA}=hD(),{Blob:SBA,File:yBA}=require("buffer"),{kBodyUsed:_BA}=UB(),F3=require("assert"),{isErrored:vBA}=TQ(),{isUint8Array:PT,isArrayBuffer:bBA}=require("util/types"),{File:uBA}=oU(),{parseMIMEType:mBA,serializeAMimeType:dBA}=pC(),Y3;try{let A=require("node:crypto");Y3=(Q)=>A.randomInt(0,Q)}catch{Y3=(A)=>Math.floor(Math.random(A))}var t0=globalThis.ReadableStream,OT=yBA??uBA,eU=new TextEncoder,cBA=new TextDecoder;function kT(A,Q=!1){if(!t0)t0=require("stream/web").ReadableStream;let B=null;if(A instanceof t0)B=A;else if(gT(A))B=A.stream();else B=new t0({async pull(Y){Y.enqueue(typeof I==="string"?eU.encode(I):I),queueMicrotask(()=>kBA(Y))},start(){},type:void 0});F3(PBA(B));let E=null,I=null,C=null,D=null;if(typeof A==="string")I=A,D="text/plain;charset=UTF-8";else if(A instanceof URLSearchParams)I=A.toString(),D="application/x-www-form-urlencoded;charset=UTF-8";else if(bBA(A))I=new Uint8Array(A.slice());else if(ArrayBuffer.isView(A))I=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength));else if(NY.isFormDataLike(A)){let Y=`----formdata-undici-0${`${Y3(100000000000)}`.padStart(11,"0")}`,J=`--${Y}\r
Content-Disposition: form-data`;/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */let G=(V)=>V.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),N=(V)=>V.replace(/\r?\n|\r/g,`\r
`),U=[],Z=new Uint8Array([13,10]);C=0;let X=!1;for(let[V,w]of A)if(typeof w==="string"){let g=eU.encode(J+`; name="${G(N(V))}"\r
\r
${N(w)}\r
`);U.push(g),C+=g.byteLength}else{let g=eU.encode(`${J}; name="${G(N(V))}"`+(w.name?`; filename="${G(w.name)}"`:"")+`\r
Content-Type: ${w.type||"application/octet-stream"}\r
\r
`);if(U.push(g,w,Z),typeof w.size==="number")C+=g.byteLength+w.size+Z.byteLength;else X=!0}let $=eU.encode(`--${Y}--`);if(U.push($),C+=$.byteLength,X)C=null;I=A,E=async function*(){for(let V of U)if(V.stream)yield*V.stream();else yield V},D="multipart/form-data; boundary="+Y}else if(gT(A)){if(I=A,C=A.size,A.type)D=A.type}else if(typeof A[Symbol.asyncIterator]==="function"){if(Q)throw TypeError("keepalive");if(NY.isDisturbed(A)||A.locked)throw TypeError("Response body object should not be disturbed or locked");B=A instanceof t0?A:jBA(A)}if(typeof I==="string"||NY.isBuffer(I))C=Buffer.byteLength(I);if(E!=null){let Y;B=new t0({async start(){Y=E(A)[Symbol.asyncIterator]()},async pull(J){let{value:G,done:N}=await Y.next();if(N)queueMicrotask(()=>{J.close()});else if(!vBA(B))J.enqueue(new Uint8Array(G));return J.desiredSize>0},async cancel(J){await Y.return()},type:void 0})}return[{stream:B,source:I,length:C},D]}function lBA(A,Q=!1){if(!t0)t0=require("stream/web").ReadableStream;if(A instanceof t0)F3(!NY.isDisturbed(A),"The body has already been consumed."),F3(!A.locked,"The stream is locked.");return kT(A,Q)}function pBA(A){let[Q,B]=A.stream.tee(),E=hBA(B,{transfer:[B]}),[,I]=E.tee();return A.stream=Q,{stream:I,length:A.length,source:A.source}}async function*qT(A){if(A)if(PT(A))yield A;else{let Q=A.stream;if(NY.isDisturbed(Q))throw TypeError("The body has already been consumed.");if(Q.locked)throw TypeError("The stream is locked.");Q[_BA]=!0,yield*Q}}function J3(A){if(A.aborted)throw new jT("The operation was aborted.","AbortError")}function iBA(A){return{blob(){return A8(this,(B)=>{let E=oBA(this);if(E==="failure")E="";else if(E)E=dBA(E);return new SBA([B],{type:E})},A)},arrayBuffer(){return A8(this,(B)=>{return new Uint8Array(B).buffer},A)},text(){return A8(this,fT,A)},json(){return A8(this,sBA,A)},async formData(){D3.brandCheck(this,A),J3(this[e0]);let B=this.headers.get("Content-Type");if(/multipart\/form-data/.test(B)){let E={};for(let[F,Y]of this.headers)E[F.toLowerCase()]=Y;let I=new TT,C;try{C=new qBA({headers:E,preservePath:!0})}catch(F){throw new jT(`${F}`,"AbortError")}C.on("field",(F,Y)=>{I.append(F,Y)}),C.on("file",(F,Y,J,G,N)=>{let U=[];if(G==="base64"||G.toLowerCase()==="base64"){let Z="";Y.on("data",(X)=>{Z+=X.toString().replace(/[\r\n]/gm,"");let $=Z.length-Z.length%4;U.push(Buffer.from(Z.slice(0,$),"base64")),Z=Z.slice($)}),Y.on("end",()=>{U.push(Buffer.from(Z,"base64")),I.append(F,new OT(U,J,{type:N}))})}else Y.on("data",(Z)=>{U.push(Z)}),Y.on("end",()=>{I.append(F,new OT(U,J,{type:N}))})});let D=new Promise((F,Y)=>{C.on("finish",F),C.on("error",(J)=>Y(TypeError(J)))});if(this.body!==null)for await(let F of qT(this[e0].body))C.write(F);return C.end(),await D,I}else if(/application\/x-www-form-urlencoded/.test(B)){let E;try{let C="",D=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let F of qT(this[e0].body)){if(!PT(F))throw TypeError("Expected Uint8Array chunk");C+=D.decode(F,{stream:!0})}C+=D.decode(),E=new URLSearchParams(C)}catch(C){throw Object.assign(TypeError(),{cause:C})}let I=new TT;for(let[C,D]of E)I.append(C,D);return I}else throw await Promise.resolve(),J3(this[e0]),D3.errors.exception({header:`${A.name}.formData`,message:"Could not parse content as FormData."})}}}function nBA(A){Object.assign(A.prototype,iBA(A))}async function A8(A,Q,B){if(D3.brandCheck(A,B),J3(A[e0]),aBA(A[e0].body))throw TypeError("Body is unusable");let E=fBA(),I=(D)=>E.reject(D),C=(D)=>{try{E.resolve(Q(D))}catch(F){I(F)}};if(A[e0].body==null)return C(new Uint8Array),E.promise;return await xBA(A[e0].body,C,I),E.promise}function aBA(A){return A!=null&&(A.stream.locked||NY.isDisturbed(A.stream))}function fT(A){if(A.length===0)return"";if(A[0]===239&&A[1]===187&&A[2]===191)A=A.subarray(3);return cBA.decode(A)}function sBA(A){return JSON.parse(fT(A))}function oBA(A){let{headersList:Q}=A[e0],B=Q.get("content-type");if(B===null)return"failure";return mBA(B)}xT.exports={extractBody:kT,safelyExtractBody:lBA,cloneBody:pBA,mixinBody:nBA}});var _T=K((phA,yT)=>{var{InvalidArgumentError:CB,NotSupportedError:rBA}=eQ(),AD=require("assert"),{kHTTP2BuildRequest:tBA,kHTTP2CopyHeaders:eBA,kHTTP1BuildRequest:AEA}=UB(),VI=TQ(),hT=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,ST=/[^\t\x20-\x7e\x80-\xff]/,QEA=/[^\u0021-\u00ff]/,iC=Symbol("handler"),tB={},G3;try{let A=require("diagnostics_channel");tB.create=A.channel("undici:request:create"),tB.bodySent=A.channel("undici:request:bodySent"),tB.headers=A.channel("undici:request:headers"),tB.trailers=A.channel("undici:request:trailers"),tB.error=A.channel("undici:request:error")}catch{tB.create={hasSubscribers:!1},tB.bodySent={hasSubscribers:!1},tB.headers={hasSubscribers:!1},tB.trailers={hasSubscribers:!1},tB.error={hasSubscribers:!1}}class Q8{constructor(A,{path:Q,method:B,body:E,headers:I,query:C,idempotent:D,blocking:F,upgrade:Y,headersTimeout:J,bodyTimeout:G,reset:N,throwOnError:U,expectContinue:Z},X){if(typeof Q!=="string")throw new CB("path must be a string");else if(Q[0]!=="/"&&!(Q.startsLine truncated
`;this.body=$.stream,this.contentLength=$.length}else if(VI.isBlobLike(E)&&this.contentType==null&&E.type)this.contentType=E.type,this.headers+=`content-type: ${E.type}\r
`;if(VI.validateHandler(X,B,Y),this.servername=VI.getServerName(this.host),this[iC]=X,tB.create.hasSubscribers)tB.create.publish({request:this})}onBodySent(A){if(this[iC].onBodySent)try{return this[iC].onBodySent(A)}catch(Q){this.abort(Q)}}onRequestSent(){if(tB.bodySent.hasSubscribers)tB.bodySent.publish({request:this});if(this[iC].onRequestSent)try{return this[iC].onRequestSent()}catch(A){this.abort(A)}}onConnect(A){if(AD(!this.aborted),AD(!this.completed),this.error)A(this.error);else return this.abort=A,this[iC].onConnect(A)}onHeaders(A,Q,B,E){if(AD(!this.aborted),AD(!this.completed),tB.headers.hasSubscribers)tB.headers.publish({request:this,response:{statusCode:A,headers:Q,statusText:E}});try{return this[iC].onHeaders(A,Q,B,E)}catch(I){this.abort(I)}}onData(A){AD(!this.aborted),AD(!this.completed);try{return this[iC].onData(A)}catch(Q){return this.abort(Q),!1}}onUpgrade(A,Q,B){return AD(!this.aborted),AD(!this.completed),this[iC].onUpgrade(A,Q,B)}onComplete(A){if(this.onFinally(),AD(!this.aborted),this.completed=!0,tB.trailers.hasSubscribers)tB.trailers.publish({request:this,trailers:A});try{return this[iC].onComplete(A)}catch(Q){this.onError(Q)}}onError(A){if(this.onFinally(),tB.error.hasSubscribers)tB.error.publish({request:this,error:A});if(this.aborted)return;return this.aborted=!0,this[iC].onError(A)}onFinally(){if(this.errorHandler)this.body.off("error",this.errorHandler),this.errorHandler=null;if(this.endHandler)this.body.off("end",this.endHandler),this.endHandler=null}addHeader(A,Q){return _N(this,A,Q),this}static[AEA](A,Q,B){return new Q8(A,Q,B)}static[tBA](A,Q,B){let E=Q.headers;Q={...Q,headers:null};let I=new Q8(A,Q,B);if(I.headers={},Array.isArray(E)){if(E.length%2!==0)throw new CB("headers array must be even");for(let C=0;C<E.length;C+=2)_N(I,E[C],E[C+1],!0)}else if(E&&typeof E==="object"){let C=Object.keys(E);for(let D=0;D<C.length;D++){let F=C[D];_N(I,F,E[F],!0)}}else if(E!=null)throw new CB("headers must be an object or an array");return I}static[eBA](A){let Q=A.split(`\r
`),B={};for(let E of Q){let[I,C]=E.split(": ");if(C==null||C.length===0)continue;if(B[I])B[I]+=`,${C}`;else B[I]=C}return B}}function dF(A,Q,B){if(Q&&typeof Q==="object")throw new CB(`invalid ${A} header`);if(Q=Q!=null?`${Q}`:"",ST.exec(Q)!==null)throw new CB(`invalid ${A} header`);return B?Q:`${A}: ${Q}\r
`}function _N(A,Q,B,E=!1){if(B&&(typeof B==="object"&&!Array.isArray(B)))throw new CB(`invalid ${Q} header`);else if(B===void 0)return;if(A.host===null&&Q.length===4&&Q.toLowerCase()==="host"){if(ST.exec(B)!==null)throw new CB(`invalid ${Q} header`);A.host=B}else if(A.contentLength===null&&Q.length===14&&Q.toLowerCase()==="content-length"){if(A.contentLength=parseInt(B,10),!Number.isFinite(A.contentLength))throw new CB("invalid content-length header")}else if(A.contentType===null&&Q.length===12&&Q.toLowerCase()==="content-type")if(A.contentType=B,E)A.headers[Q]=dF(Q,B,E);else A.headers+=dF(Q,B);else if(Q.length===17&&Q.toLowerCase()==="transfer-encoding")throw new CB("invalid transfer-encoding header");else if(Q.length===10&&Q.toLowerCase()==="connection"){let I=typeof B==="string"?B.toLowerCase():null;if(I!=="close"&&I!=="keep-alive")throw new CB("invalid connection header");else if(I==="close")A.reset=!0}else if(Q.length===10&&Q.toLowerCase()==="keep-alive")throw new CB("invalid keep-alive header");else if(Q.length===7&&Q.toLowerCase()==="upgrade")throw new CB("invalid upgrade header");else if(Q.length===6&&Q.toLowerCase()==="expect")throw new rBA("expect header not supported");else if(hT.exec(Q)===null)throw new CB("invalid header key");else if(Array.isArray(B))for(let I=0;I<B.length;I++)if(E)if(A.headers[Q])A.headers[Q]+=`,${dF(Q,B[I],E)}`;else A.headers[Q]=dF(Q,B[I],E);else A.headers+=dF(Q,B[I]);else if(E)A.headers[Q]=dF(Q,B,E);else A.headers+=dF(Q,B)}yT.exports=Q8});var B8=K((ihA,bT)=>{var BEA=require("events");class vT extends BEA{dispatch(){throw Error("not implemented")}close(){throw Error("not implemented")}destroy(){throw Error("not implemented")}}bT.exports=vT});var bN=K((nhA,mT)=>{var EEA=B8(),{ClientDestroyedError:N3,ClientClosedError:IEA,InvalidArgumentError:UY}=eQ(),{kDestroy:CEA,kClose:DEA,kDispatch:U3,kInterceptors:cF}=UB(),ZY=Symbol("destroyed"),vN=Symbol("closed"),QD=Symbol("onDestroyed"),WY=Symbol("onClosed"),E8=Symbol("Intercepted Dispatch");class uT extends EEA{constructor(){super();this[ZY]=!1,this[QD]=null,this[vN]=!1,this[WY]=[]}get destroyed(){return this[ZY]}get closed(){return this[vN]}get interceptors(){return this[cF]}set interceptors(A){if(A){for(let Q=A.length-1;Q>=0;Q--)if(typeof this[cF][Q]!=="function")throw new UY("interceptor must be an function")}this[cF]=A}close(A){if(A===void 0)return new Promise((B,E)=>{this.close((I,C)=>{return I?E(I):B(C)})});if(typeof A!=="function")throw new UY("invalid callback");if(this[ZY]){queueMicrotask(()=>A(new N3,null));return}if(this[vN]){if(this[WY])this[WY].push(A);else queueMicrotask(()=>A(null,null));return}this[vN]=!0,this[WY].push(A);let Q=()=>{let B=this[WY];this[WY]=null;for(let E=0;E<B.length;E++)B[E](null,null)};this[DEA]().then(()=>this.destroy()).then(()=>{queueMicrotask(Q)})}destroy(A,Q){if(typeof A==="function")Q=A,A=null;if(Q===void 0)return new Promise((E,I)=>{this.destroy(A,(C,D)=>{return C?I(C):E(D)})});if(typeof Q!=="function")throw new UY("invalid callback");if(this[ZY]){if(this[QD])this[QD].push(Q);else queueMicrotask(()=>Q(null,null));return}if(!A)A=new N3;this[ZY]=!0,this[QD]=this[QD]||[],this[QD].push(Q);let B=()=>{let E=this[QD];this[QD]=null;for(let I=0;I<E.length;I++)E[I](null,null)};this[CEA](A).then(()=>{queueMicrotask(B)})}[E8](A,Q){if(!this[cF]||this[cF].length===0)return this[E8]=this[U3],this[U3](A,Q);let B=this[U3].bind(this);for(let E=this[cF].length-1;E>=0;E--)B=this[cF][E](B);return this[E8]=B,B(A,Q)}dispatch(A,Q){if(!Q||typeof Q!=="object")throw new UY("handler must be an object");try{if(!A||typeof A!=="object")throw new UY("opts must be an object.");if(this[ZY]||this[QD])throw new N3;if(this[vN])throw new IEA;return this[E8](A,Q)}catch(B){if(typeof Q.onError!=="function")throw new UY("invalid onError method");return Q.onError(B),!1}}}mT.exports=uT});var uN=K((ahA,lT)=>{var FEA=require("net"),dT=require("assert"),cT=TQ(),{InvalidArgumentError:YEA,ConnectTimeoutError:JEA}=eQ(),Z3,W3;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE)W3=class{constructor(Q){this._maxCachedSessions=Q,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry((B)=>{if(this._sessionCache.size<this._maxCachedSessions)return;let E=this._sessionCache.get(B);if(E!==void 0&&E.deref()===void 0)this._sessionCache.delete(B)})}get(Q){let B=this._sessionCache.get(Q);return B?B.deref():null}set(Q,B){if(this._maxCachedSessions===0)return;this._sessionCache.set(Q,new WeakRef(B)),this._sessionRegistry.register(B,Q)}};else W3=class{constructor(Q){this._maxCachedSessions=Q,this._sessionCache=new Map}get(Q){return this._sessionCache.get(Q)}set(Q,B){if(this._maxCachedSessions===0)return;if(this._sessionCache.size>=this._maxCachedSessions){let{value:E}=this._sessionCache.keys().next();this._sessionCache.delete(E)}this._sessionCache.set(Q,B)}};function GEA({allowH2:A,maxCachedSessions:Q,socketPath:B,timeout:E,...I}){if(Q!=null&&(!Number.isInteger(Q)||Q<0))throw new YEA("maxCachedSessions must be a positive Line truncated
`,this[YO]=F!=null?F:300000,this[FO]=E!=null?E:300000,this[iN]=w==null?!0:w,this[uEA]=M,this[nN]=d,this[yD]=null,this[GO]=m>-1?m:-1,this[K0]="h1",this[pI]=null,this[G8]=!x?null:{openStreams:0,maxConcurrentStreams:l!=null?l:100},this[NO]=`${this[fE].hostname}${this[fE].port?`:${this[fE].port}`:""}`,this[ZB]=[],this[WB]=0,this[lI]=0}get pipelining(){return this[vD]}set pipelining(A){this[vD]=A,iI(this,!0)}get[iF](){return this[ZB].length-this[lI]}get[PB](){return this[lI]-this[WB]}get[pF](){return this[ZB].length-this[WB]}get[bEA](){return!!this[SB]&&!this[$Y]&&!this[SB].destroyed}get[w3](){let A=this[SB];return A&&(A[EI]||A[ID]||A[LY])||this[pF]>=(this[vD]||1)||this[iF]>0}[vEA](A){KO(this),this.once("connect",A)}[cEA](A,Q){let B=A.origin||this[fE].origin,E=this[K0]==="h2"?H3[pEA](B,A,Q):H3[nEA](B,A,Q);if(this[ZB].push(E),this[lF]);else if(lA.bodyLength(E.body)==null&&lA.isIterable(E.body))this[lF]=1,process.nextTick(iI,this);else iI(this,!0);if(this[lF]&&this[_D]!==2&&this[w3])this[_D]=2;return this[_D]<2}async[mEA](){return new Promise((A)=>{if(!this[pF])A(null);else this[yD]=A})}async[dEA](A){return new Promise((Q)=>{let B=this[ZB].splice(this[lI]);for(let I=0;I<B.length;I++){let C=B[I];II(this,C,A)}let E=()=>{if(this[yD])this[yD](),this[yD]=null;Q()};if(this[pI]!=null)lA.destroy(this[pI],A),this[pI]=null,this[G8]=null;if(!this[SB])queueMicrotask(E);else lA.destroy(this[SB].on("close",E),A);iI(this)})}}function QIA(A){qA(A.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[SB][xE]=A,Z8(this[$0],A)}function BIA(A,Q,B){let E=new X0(`HTTP/2: "frameError" received - type ${A}, code ${Q}`);if(B===0)this[SB][xE]=E,Z8(this[$0],E)}function EIA(){lA.destroy(this,new KY("other side closed")),lA.destroy(this[SB],new KY("other side closed"))}function IIA(A){let Q=this[$0],B=new X0(`HTTP/2: "GOAWAY" frame received with code ${A}`);if(Q[SB]=null,Q[pI]=null,Q.destroyed){qA(this[iF]===0);let E=Q[ZB].splice(Q[WB]);for(let I=0;I<E.length;I++){let C=E[I];II(this,C,B)}}else if(Q[PB]>0){let E=Q[ZB][Q[WB]];Q[ZB][Q[WB]++]=null,II(Q,E,B)}Q[lI]=Q[WB],qA(Q[PB]===0),Q.emit("disconnect",Q[fE],[Q],B),iI(Q)}var U0=iT(),CIA=C8(),DIA=Buffer.alloc(0);async function FIA(){let A=process.env.JEST_WORKER_ID?L3():void 0,Q;try{Q=await WebAssembly.compile(Buffer.from(AO(),"base64"))}catch(B){Q=await WebAssembly.compile(Buffer.from(A||L3(),"base64"))}return await WebAssembly.instantiate(Q,{env:{wasm_on_url:(B,E,I)=>{return 0},wasm_on_status:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-W0+Z0.byteOffset;return JE.onStatus(new D8(Z0.buffer,C,I))||0},wasm_on_message_begin:(B)=>{return qA.strictEqual(JE.ptr,B),JE.onMessageBegin()||0},wasm_on_header_field:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-W0+Z0.byteOffset;return JE.onHeaderField(new D8(Z0.buffer,C,I))||0},wasm_on_header_value:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-W0+Z0.byteOffset;return JE.onHeaderValue(new D8(Z0.buffer,C,I))||0},wasm_on_headers_complete:(B,E,I,C)=>{return qA.strictEqual(JE.ptr,B),JE.onHeadersComplete(E,Boolean(I),Boolean(C))||0},wasm_on_body:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-W0+Z0.byteOffset;return JE.onBody(new D8(Z0.buffer,C,I))||0},wasm_on_message_complete:(B)=>{return qA.strictEqual(JE.ptr,B),JE.onMessageComplete()||0}}})}var z3=null,R3=FIA();R3.catch();var JE=null,Z0=null,F8=0,W0=null,VY=1,J8=2,g3=3;class ZO{constructor(A,Q,{exports:B}){qA(Number.isFinite(A[Y8])&&A[Y8]>0),this.llhttp=B,this.ptr=this.llhttp.llhttp_alloc(U0.TYPE.RESPONSE),this.client=A,this.socket=Q,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=A[Y8],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=A[GO]}setTimeout(A,Q){if(this.timeoutType=Q,A!==this.timeoutValue){if(V3.clearTimeout(this.timeout),A){if(this.timeout=V3.setTimeout(YIA,A,this),this.timeout.unref)this.timeout.unref()}else this.timeout=null;this.timeoutValue=A}else if(this.timeout){if(this.timeout.refresh)this.timeout.refresh()}}resume(){if(this.socket.destroyed||!this.paused)return;if(qA(this.ptr!=null),qA(JE==null),this.llhttp.llhttp_resume(this.ptr),qA(this.timeoutType===J8),this.timeout){if(this.timeout.refresh)this.timeout.refresh()}this.paused=!1,this.execute(this.socket.read()||DIA),this.readMore()}readMore(){while(!this.paused&&this.ptr){let A=this.socket.read();if(A===null)break;this.execute(A)}}execute(A){qA(this.ptr!=null),qA(JE==null),qA(!this.paused);let{socket:Q,llhttp:B}=this;if(A.length>F8){if(W0)B.free(W0);F8=Math.ceil(A.length/4096)*4096,W0=B.malloc(F8)}new Uint8Array(B.memory.buffer,W0,F8).set(A);try{let E;try{Z0=A,JE=this,E=B.llhttp_execute(this.ptr,W0,A.length)}catch(C){throw C}finally{JE=null,Z0=null}let I=B.llhttp_get_error_pos(this.ptr)-W0;if(E===U0.ERROR.PAUSED_UPGRADE)this.onUpgrade(A.slice(I));else if(E===U0.ERROR.PAUSED)this.paused=!0,Q.unshift(A.slice(I));else if(E Line truncated
`;if(typeof C==="string")X+=`host: ${C}\r
`;else X+=A[IO];if(D)X+=`connection: upgrade\r
upgrade: ${D}\r
`;else if(A[vD]&&!Z[EI])X+=`connection: keep-alive\r
`;else X+=`connection: close\r
`;if(F)X+=F;if(bE.sendHeaders.hasSubscribers)bE.sendHeaders.publish({request:Q,headers:X,socket:Z});if(!B||N===0){if(U===0)Z.write(`${X}content-length: 0\r
\r
`,"latin1");else qA(U===null,"no body must not have content length"),Z.write(`${X}\r
`,"latin1");Q.onRequestSent()}else if(lA.isBuffer(B)){if(qA(U===B.byteLength,"buffer body must have content length"),Z.cork(),Z.write(`${X}content-length: ${U}\r
\r
`,"latin1"),Z.write(B),Z.uncork(),Q.onBodySent(B),Q.onRequestSent(),!G)Z[EI]=!0}else if(lA.isBlobLike(B))if(typeof B.stream==="function")U8({body:B.stream(),client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else zO({body:B,client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else if(lA.isStream(B))VO({body:B,client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else if(lA.isIterable(B))U8({body:B,client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else qA(!1);return!0}function NIA(A,Q,B){let{body:E,method:I,path:C,host:D,upgrade:F,expectContinue:Y,signal:J,headers:G}=B,N;if(typeof G==="string")N=H3[iEA](G.trim());else N=G;if(F)return II(A,B,Error("Upgrade not supported for H2")),!1;try{B.onConnect((g)=>{if(B.aborted||B.completed)return;II(A,B,g||new O3)})}catch(g){II(A,B,g)}if(B.aborted)return!1;let U,Z=A[G8];if(N[aEA]=D||A[NO],N[sEA]=I,I==="CONNECT"){if(Q.ref(),U=Q.request(N,{endStream:!1,signal:J}),U.id&&!U.pending)B.onUpgrade(null,null,U),++Z.openStreams;else U.once("ready",()=>{B.onUpgrade(null,null,U),++Z.openStreams});return U.once("close",()=>{if(Z.openStreams-=1,Z.openStreams===0)Q.unref()}),!0}N[oEA]=C,N[rEA]="https";let X=I==="PUT"||I==="POST"||I==="PATCH";if(E&&typeof E.read==="function")E.read(0);let $=lA.bodyLength(E);if($==null)$=B.contentLength;if($===0||!X)$=null;if(LO(I)&&$>0&&B.contentLength!=null&&B.contentLength!==$){if(A[iN])return II(A,B,new ED),!1;process.emitWarning(new ED)}if($!=null)qA(E,"no body must not have content length"),N[tEA]=`${$}`;Q.ref();let V=I==="GET"||I==="HEAD";if(Y)N[eEA]="100-continue",U=Q.request(N,{endStream:V,signal:J}),U.once("continue",w);else U=Q.request(N,{endStream:V,signal:J}),w();return++Z.openStreams,U.once("response",(g)=>{let{[AIA]:M,...k}=g;if(B.onHeaders(Number(M),k,U.resume.bind(U),"")===!1)U.pause()}),U.once("end",()=>{B.onComplete([])}),U.on("data",(g)=>{if(B.onData(g)===!1)U.pause()}),U.once("close",()=>{if(Z.openStreams-=1,Z.openStreams===0)Q.unref()}),U.once("error",function(g){if(A[pI]&&!A[pI].destroyed&&!this.closed&&!this.destroyed)Z.streams-=1,lA.destroy(U,g)}),U.once("frameError",(g,M)=>{let k=new X0(`HTTP/2: "frameError" received - type ${g}, code ${M}`);if(II(A,B,k),A[pI]&&!A[pI].destroyed&&!this.closed&&!this.destroyed)Z.streams-=1,lA.destroy(U,k)}),!0;function w(){if(!E)B.onRequestSent();else if(lA.isBuffer(E))qA($===E.byteLength,"buffer body must have content length"),U.cork(),U.write(E),U.uncork(),U.end(),B.onBodySent(E),B.onRequestSent();else if(lA.isBlobLike(E))if(typeof E.stream==="function")U8({client:A,request:B,contentLength:$,h2stream:U,expectsPayload:X,body:E.stream(),socket:A[SB],header:""});else zO({body:E,client:A,request:B,contentLength:$,expectsPayload:X,h2stream:U,header:"",socket:A[SB]});else if(lA.isStream(E))VO({body:E,client:A,request:B,contentLength:$,expectsPayload:X,socket:A[SB],h2stream:U,header:""});else if(lA.isIterable(E))U8({body:E,client:A,request:B,contentLength:$,expectsPayload:X,header:"",h2stream:U,socket:A[SB]});else qA(!1)}}function VO({h2stream:A,body:Q,client:B,request:E,socket:I,contentLength:C,header:D,expectsPayload:F}){if(qA(C!==0||B[PB]===0,"stream body cannot be pipelined"),B[K0]==="h2"){let $=function(V){E.onBodySent(V)},X=qEA(Q,A,(V)=>{if(V)lA.destroy(Q,V),lA.destroy(A,V);else E.onRequestSent()});X.on("data",$),X.once("end",()=>{X.removeListener("data",$),lA.destroy(X)});return}let Y=!1,J=new q3({socket:I,request:E,contentLength:C,client:B,expectsPayload:F,header:D}),G=function(X){if(Y)return;try{if(!J.write(X)&&this.pause)this.pause()}catch($){lA.destroy(this,$)}},N=function(){if(Y)return;if(Q.resume)Q.resume()},U=function(){if(Y)return;let X=new O3;queueMicrotask(()=>Z(X))},Z=function(X){if(Y)return;if(Y=!0,qA(I.destroyed||I[ID]&&B[PB]<=1),I.off("drain",N).off("error",Z),Q.removeListener("data",G).removeListener("end",Z).removeListener("error",Z).removeListener("close",U),!X)try{J.end()}catch($){X=$}if(J.destroy(X),X&&(X.code!=="UND_ERR_INFO"||X.message!=="reset"))lA.destroy(Q,X);else lA.destroy(Q)};if(Q.on("data",G).on("end",Z).on("error",Z).on("close",U),Q.resume)Q.resume();I.on("drain",N).on("error",Z)}async function zO({h2stream:A,body:Q,client:B,request:E,socket:I,contentLength:C,header:D,expectsPayload:F}){qA(C===Q.size,"blob body must have content length");let Y=B[K0]==="h2";try{if(C!=null&&C!==Q.size)throw new ED;let J=Buffer.from(await Q.arrayBuffer());if(Y)A.cork(),A.write(J),A.uncork();else I.cork(),I.write(`${D}content-length: ${C}\r
\r
`,"latin1"),I.write(J),I.uncork();if(E.onBodySent(J),E.onRequestSent(),!F)I[EI]=!0;iI(B)}catch(J){lA.destroy(Y?A:I,J)}}async function U8({h2stream:A,body:Q,client:B,request:E,socket:I,contentLength:C,header:D,expectsPayload:F}){qA(C!==0||B[PB]===0,"iterator body cannot be pipelined");let Y=null;function J(){if(Y){let U=Y;Y=null,U()}}let G=()=>new Promise((U,Z)=>{if(qA(Y===null),I[xE])Z(I[xE]);else Y=U});if(B[K0]==="h2"){A.on("close",J).on("drain",J);try{for await(let U of Q){if(I[xE])throw I[xE];let Z=A.write(U);if(E.onBodySent(U),!Z)await G()}}catch(U){A.destroy(U)}finally{E.onRequestSent(),A.end(),A.off("close",J).off("drain",J)}return}I.on("close",J).on("drain",J);let N=new q3({socket:I,request:E,contentLength:C,client:B,expectsPayload:F,header:D});try{for await(let U of Q){if(I[xE])throw I[xE];if(!N.write(U))await G()}N.end()}catch(U){N.destroy(U)}finally{I.off("close",J).off("drain",J)}}class q3{constructor({socket:A,request:Q,contentLength:B,client:E,expectsPayload:I,header:C}){this.socket=A,this.request=Q,this.contentLength=B,this.client=E,this.bytesWritten=0,this.expectsPayload=I,this.header=C,A[ID]=!0}write(A){let{socket:Q,request:B,contentLength:E,client:I,bytesWritten:C,expectsPayload:D,header:F}=this;if(Q[xE])throw Q[xE];if(Q.destroyed)return!1;let Y=Buffer.byteLength(A);if(!Y)return!0;if(E!==null&&C+Y>E){if(I[iN])throw new ED;process.emitWarning(new ED)}if(Q.cork(),C===0){if(!D)Q[EI]=!0;if(E===null)Q.write(`${F}transfer-encoding: chunked\r
`,"latin1");else Q.write(`${F}content-length: ${E}\r
\r
`,"latin1")}if(E===null)Q.write(`\r
${Y.toString(16)}\r
`,"latin1");this.bytesWritten+=Y;let J=Q.write(A);if(Q.uncork(),B.onBodySent(A),!J){if(Q[hB].timeout&&Q[hB].timeoutType===VY){if(Q[hB].timeout.refresh)Q[hB].timeout.refresh()}}return J}end(){let{socket:A,contentLength:Q,client:B,bytesWritten:E,expectsPayload:I,header:C,request:D}=this;if(D.onRequestSent(),A[ID]=!1,A[xE])throw A[xE];if(A.destroyed)return;if(E===0)if(I)A.write(`${C}content-length: 0\r
\r
`,"latin1");else A.write(`${C}\r
`,"latin1");else if(Q===null)A.write(`\r
0\r
\r
`,"latin1");if(Q!==null&&E!==Q)if(B[iN])throw new ED;else process.emitWarning(new ED);if(A[hB].timeout&&A[hB].timeoutType===VY){if(A[hB].timeout.refresh)A[hB].timeout.refresh()}iI(B)}destroy(A){let{socket:Q,client:B}=this;if(Q[ID]=!1,A)qA(B[PB]<=1,"pipeline should only contain this request"),lA.destroy(Q,A)}}function II(A,Q,B){try{Q.onError(B),qA(Q.aborted)}catch(E){A.emit("error",E)}}HO.exports=UO});var MO=K((BSA,wO)=>{class j3{constructor(){this.bottom=0,this.top=0,this.list=Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(A){this.list[this.top]=A,this.top=this.top+1&2047}shift(){let A=this.list[this.bottom];if(A===void 0)return null;return this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,A}}wO.exports=class{constructor(){this.head=this.tail=new j3}isEmpty(){return this.head.isEmpty()}push(Q){if(this.head.isFull())this.head=this.head.next=new j3;this.head.push(Q)}shift(){let Q=this.tail,B=Q.shift();if(Q.isEmpty()&&Q.next!==null)this.tail=Q.next;return B}}});var TO=K((ESA,gO)=>{var{kFree:UIA,kConnected:ZIA,kPending:WIA,kQueued:XIA,kRunning:$IA,kSize:KIA}=UB(),nF=Symbol("pool");class RO{constructor(A){this[nF]=A}get connected(){return this[nF][ZIA]}get free(){return this[nF][UIA]}get pending(){return this[nF][WIA]}get queued(){return this[nF][XIA]}get running(){return this[nF][$IA]}get size(){return this[nF][KIA]}}gO.exports=RO});var h3=K((ISA,_O)=>{var LIA=bN(),VIA=MO(),{kConnected:P3,kSize:OO,kRunning:qO,kPending:jO,kQueued:sN,kBusy:zIA,kFree:HIA,kUrl:wIA,kClose:MIA,kDestroy:RIA,kDispatch:gIA}=UB(),TIA=TO(),zI=Symbol("clients"),CI=Symbol("needDrain"),oN=Symbol("queue"),k3=Symbol("closed resolve"),f3=Symbol("onDrain"),PO=Symbol("onConnect"),kO=Symbol("onDisconnect"),fO=Symbol("onConnectionError"),x3=Symbol("get dispatcher"),hO=Symbol("add client"),SO=Symbol("remove client"),xO=Symbol("stats");class yO extends LIA{constructor(){super();this[oN]=new VIA,this[zI]=[],this[sN]=0;let A=this;this[f3]=function(B,E){let I=A[oN],C=!1;while(!C){let D=I.shift();if(!D)break;A[sN]--,C=!this.dispatch(D.opts,D.handler)}if(this[CI]=C,!this[CI]&&A[CI])A[CI]=!1,A.emit("drain",B,[A,...E]);if(A[k3]&&I.isEmpty())Promise.all(A[zI].map((D)=>D.close())).then(A[k3])},this[PO]=(Q,B)=>{A.emit("connect",Q,[A,...B])},this[kO]=(Q,B,E)=>{A.emit("disconnect",Q,[A,...B],E)},this[fO]=(Q,B,E)=>{A.emit("connectionError",Q,[A,...B],E)},this[xO]=new TIA(this)}get[zIA](){return this[CI]}get[P3](){return this[zI].filter((A)=>A[P3]).length}get[HIA](){return this[zI].filter((A)=>A[P3]&&!A[CI]).length}get[jO](){let A=this[sN];for(let{[jO]:Q}of this[zI])A+=Q;return A}get[qO](){let A=0;for(let{[qO]:Q}of this[zI])A+=Q;return A}get[OO](){let A=this[sN];for(let{[OO]:Q}of this[zI])A+=Q;return A}get stats(){return this[xO]}async[MIA](){if(this[oN].isEmpty())return Promise.all(this[zI].map((A)=>A.close()));else return new Promise((A)=>{this[k3]=A})}async[RIA](A){while(!0){let Q=this[oN].shift();if(!Q)break;Q.handler.onError(A)}return Promise.all(this[zI].map((Q)=>Q.destroy(A)))}[gIA](A,Q){let B=this[x3]();if(!B)this[CI]=!0,this[oN].push({opts:A,handler:Q}),this[sN]++;else if(!B.dispatch(A,Q))B[CI]=!0,this[CI]=!this[x3]();return!this[CI]}[hO](A){if(A.on("drain",this[f3]).on("connect",this[PO]).on("disconnect",this[kO]).on("connectionError",this[fO]),this[zI].push(A),this[CI])process.nextTick(()=>{if(this[CI])this[f3](A[wIA],[this,A])});return this}[SO](A){A.close(()=>{let Q=this[zI].indexOf(A);if(Q!==-1)this[zI].splice(Q,1)}),this[CI]=this[zI].some((Q)=>!Q[CI]&&Q.closed!==!0&&Q.destroyed!==!0)}}_O.exports={PoolBase:yO,kClients:zI,kNeedDrain:CI,kAddClient:hO,kRemoveClient:SO,kGetDispatcher:x3}});var zY=K((CSA,mO)=>{var{PoolBase:OIA,kClients:W8,kNeedDrain:qIA,kAddClient:jIA,kGetDispatcher:PIA}=h3(),kIA=aN(),{InvalidArgumentError:S3}=eQ(),y3=TQ(),{kUrl:vO,kInterceptors:fIA}=UB(),xIA=uN(),_3=Symbol("options"),v3=Symbol("connections"),bO=Symbol("factory");function hIA(A,Q){return new kIA(A,Q)}class uO extends OIA{constructor(A,{connections:Q,factory:B=hIA,connect:E,connectTimeout:I,tls:C,maxCachedSessions:D,socketPath:F,autoSelectFamily:Y,autoSelectFamilyAttemptTimeout:J,allowH2:G,...N}={}){super();if(Q!=null&&(!Number.isFinite(Q)||Q<0))throw new S3("invalid connections");if(typeof B!=="function")throw new S3("factory must be a function.");if(E!=null&&typeof E!=="function"&&typeof E!=="object")throw new S3("connect must be a function or an object");if(typeof E!=="function")E=xIA({...C,maxCachedSessions:D,allowH2:G,socketPath:F,timeout:I,...y3.nodeHasAutoSelectFamily&&Y?{autoSelectFamily:Y,autoSelectFamilyAttemptTimeout:J}:void 0,...E});this[fIA]=N.interceptors&&N.interceptors.Pool&&Array.isArray(N.interceptors.Pool)?N.interceptors.Pool:[],this[v3]=Q||null,this[vO]=y3.parseOrigin(A),this[_3]={...y3.deepClone(N),connect:E,allowH2:G},this[_3].interceptors=N.interceptors?{...N.interceptors}:void 0,this[bO]=B,this.on("connectionError",(U,Z,X)=>{for(let $ of Z){let V=this[W8].indexOf($); Line truncated
${B.count} ${B.noun} ${B.is} pending:
${A.format(Q)}
`.trim())}}fj.exports=kj});var uj=K((OSA,bj)=>{var{kProxy:S0A,kClose:y0A,kDestroy:_0A,kInterceptors:v0A}=UB(),{URL:hj}=require("url"),Sj=tN(),b0A=zY(),u0A=bN(),{InvalidArgumentError:I9,RequestAbortedError:m0A}=eQ(),yj=uN(),B9=Symbol("proxy agent"),f8=Symbol("proxy client"),E9=Symbol("proxy headers"),Z$=Symbol("request tls settings"),d0A=Symbol("proxy tls settings"),_j=Symbol("connect endpoint function");function c0A(A){return A==="https:"?443:80}function l0A(A){if(typeof A==="string")A={uri:A};if(!A||!A.uri)throw new I9("Proxy opts.uri is mandatory");return{uri:A.uri,protocol:A.protocol||"https"}}function p0A(A,Q){return new b0A(A,Q)}class vj extends u0A{constructor(A){super(A);if(this[S0A]=l0A(A),this[B9]=new Sj(A),this[v0A]=A.interceptors&&A.interceptors.ProxyAgent&&Array.isArray(A.interceptors.ProxyAgent)?A.interceptors.ProxyAgent:[],typeof A==="string")A={uri:A};if(!A||!A.uri)throw new I9("Proxy opts.uri is mandatory");let{clientFactory:Q=p0A}=A;if(typeof Q!=="function")throw new I9("Proxy opts.clientFactory must be a function.");this[Z$]=A.requestTls,this[d0A]=A.proxyTls,this[E9]=A.headers||{};let B=new hj(A.uri),{origin:E,port:I,host:C,username:D,password:F}=B;if(A.auth&&A.token)throw new I9("opts.auth cannot be used in combination with opts.token");else if(A.auth)this[E9]["proxy-authorization"]=`Basic ${A.auth}`;else if(A.token)this[E9]["proxy-authorization"]=A.token;else if(D&&F)this[E9]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(D)}:${decodeURIComponent(F)}`).toString("base64")}`;let Y=yj({...A.proxyTls});this[_j]=yj({...A.requestTls}),this[f8]=Q(B,{connect:Y}),this[B9]=new Sj({...A,connect:async(J,G)=>{let N=J.host;if(!J.port)N+=`:${c0A(J.protocol)}`;try{let{socket:U,statusCode:Z}=await this[f8].connect({origin:E,port:I,path:N,signal:J.signal,headers:{...this[E9],host:C}});if(Z!==200)U.on("error",()=>{}).destroy(),G(new m0A(`Proxy response (${Z}) !== 200 when HTTP Tunneling`));if(J.protocol!=="https:"){G(null,U);return}let X;if(this[Z$])X=this[Z$].servername;else X=J.servername;this[_j]({...J,servername:X,httpSocket:U},G)}catch(U){G(U)}}})}dispatch(A,Q){let{host:B}=new hj(A.origin),E=i0A(A.headers);return n0A(E),this[B9].dispatch({...A,headers:{...E,host:B}},Q)}async[y0A](){await this[B9].close(),await this[f8].close()}async[_0A](){await this[B9].destroy(),await this[f8].destroy()}}function i0A(A){if(Array.isArray(A)){let Q={};for(let B=0;B<A.length;B+=2)Q[A[B]]=A[B+1];return Q}return A}function n0A(A){if(A&&Object.keys(A).find((B)=>B.toLowerCase()==="proxy-authorization"))throw new I9("Proxy-Authorization should be sent in ProxyAgent constructor")}bj.exports=vj});var pj=K((qSA,lj)=>{var eF=require("assert"),{kRetryHandlerDefaultRetry:mj}=UB(),{RequestRetryError:x8}=eQ(),{isDisturbed:dj,parseHeaders:a0A,parseRangeHeader:cj}=TQ();function s0A(A){let Q=Date.now();return new Date(A).getTime()-Q}class W${constructor(A,Q){let{retryOptions:B,...E}=A,{retry:I,maxRetries:C,maxTimeout:D,minTimeout:F,timeoutFactor:Y,methods:J,errorCodes:G,retryAfter:N,statusCodes:U}=B??{};this.dispatch=Q.dispatch,this.handler=Q.handler,this.opts=E,this.abort=null,this.aborted=!1,this.retryOpts={retry:I??W$[mj],retryAfter:N??!0,maxTimeout:D??30000,timeout:F??500,timeoutFactor:Y??2,maxRetries:C??5,methods:J??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:U??[500,502,503,504,429],errorCodes:G??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect((Z)=>{if(this.aborted=!0,this.abort)this.abort(Z);else this.reason=Z})}onRequestSent(){if(this.handler.onRequestSent)this.handler.onRequestSent()}onUpgrade(A,Q,B){if(this.handler.onUpgrade)this.handler.onUpgrade(A,Q,B)}onConnect(A){if(this.aborted)A(this.reason);else this.abort=A}onBodySent(A){if(this.handler.onBodySent)return this.handler.onBodySent(A)}static[mj](A,{state:Q,opts:B},E){let{statusCode:I,code:C,headers:D}=A,{method:F,retryOptions:Y}=B,{maxRetries:J,timeout:G,maxTimeout:N,timeoutFactor:U,statusCodes:Z,errorCodes:X,methods:$}=Y,{counter:V,currentTimeout:w}=Q;if(w=w!=null&&w>0?w:G,C&&C!=="UND_ERR_REQ_RETRY"&&C!=="UND_ERR_SOCKET"&&!X.includes(C)){E(A);return}if(Array.isArray($)&&!$.includes(F)){E(A);return}if(I!=null&&Array.isArray(Z)&&!Z.includes(I)){E(A);return}if(V>J){E(A);return}let g=D!=null&&D["retry-after"];if(g)g=Number(g),g=isNaN(g)?s0A(g):g*1000;let M=g>0?Math.min(g,N):Math.min(w*U**V,N);Q.currentTimeout=M,setTimeout(()=>E(null),M)}onHeaders(A,Q,B,E){let I=a0A(Q);if(this.retryCount+=1,A>=300)return this.abort(new x8("Request failed",A,{headers:I,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,A!==206)return!0;let D=cj(I["content-range"]);if(!D)return this.abort(new x8("Content-Range mismatch",A,{headers:I,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==I.etag)return this.abort(new x8("ETag mismatch",A,{headers:I,count:this.retryCount})),!1;let{star Line truncated
Error Code : ${C.statusCode}
Error Message: ${C.message}`)})).result)===null||Q===void 0?void 0:Q.value;if(!I)throw Error("Response json body do not have ID Token field");return I})}static getIDToken(A){return Cf(this,void 0,void 0,function*(){try{let Q=cY.getIDTokenUrl();if(A){let E=encodeURIComponent(A);Q=`${Q}&audience=${E}`}(0,Df.debug)(`ID token url is ${Q}`);let B=yield cY.getCall(Q);return(0,Df.setSecret)(B),B}catch(Q){throw Error(`Error message: ${Q.message}`)}})}}lY.OidcClient=cY});var QK=K((gI)=>{var e$=gI&&gI.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(gI,"__esModule",{value:!0});gI.summary=gI.markdownSummary=gI.SUMMARY_DOCS_URL=gI.SUMMARY_ENV_VAR=void 0;var _YA=require("os"),AK=require("fs"),{access:vYA,appendFile:bYA,writeFile:uYA}=AK.promises;gI.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";gI.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Yf{constructor(){this._buffer=""}filePath(){return e$(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let A=process.env[gI.SUMMARY_ENV_VAR];if(!A)throw Error(`Unable to find environment variable for $${gI.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield vYA(A,AK.constants.R_OK|AK.constants.W_OK)}catch(Q){throw Error(`Unable to access summary file: '${A}'. Check if the file has correct read/write permissions.`)}return this._filePath=A,this._filePath})}wrap(A,Q,B={}){let E=Object.entries(B).map(([I,C])=>` ${I}="${C}"`).join("");if(!Q)return`<${A}${E}>`;return`<${A}${E}>${Q}</${A}>`}write(A){return e$(this,void 0,void 0,function*(){let Q=!!(A===null||A===void 0?void 0:A.overwrite),B=yield this.filePath();return yield(Q?uYA:bYA)(B,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return e$(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(A,Q=!1){return this._buffer+=A,Q?this.addEOL():this}addEOL(){return this.addRaw(_YA.EOL)}addCodeBlock(A,Q){let B=Object.assign({},Q&&{lang:Q}),E=this.wrap("pre",this.wrap("code",A),B);return this.addRaw(E).addEOL()}addList(A,Q=!1){let B=Q?"ol":"ul",E=A.map((C)=>this.wrap("li",C)).join(""),I=this.wrap(B,E);return this.addRaw(I).addEOL()}addTable(A){let Q=A.map((E)=>{let I=E.map((C)=>{if(typeof C==="string")return this.wrap("td",C);let{header:D,data:F,colspan:Y,rowspan:J}=C,G=D?"th":"td",N=Object.assign(Object.assign({},Y&&{colspan:Y}),J&&{rowspan:J});return this.wrap(G,F,N)}).join("");return this.wrap("tr",I)}).join(""),B=this.wrap("table",Q);return this.addRaw(B).addEOL()}addDetails(A,Q){let B=this.wrap("details",this.wrap("summary",A)+Q);return this.addRaw(B).addEOL()}addImage(A,Q,B){let{width:E,height:I}=B||{},C=Object.assign(Object.assign({},E&&{width:E}),I&&{height:I}),D=this.wrap("img",null,Object.assign({src:A,alt:Q},C));return this.addRaw(D).addEOL()}addHeading(A,Q){let B=`h${Q}`,E=["h1","h2","h3","h4","h5","h6"].includes(B)?B:"h1",I=this.wrap(E,A);return this.addRaw(I).addEOL()}addSeparator(){let A=this.wrap("hr",null);return this.addRaw(A).addEOL()}addBreak(){let A=this.wrap("br",null);return this.addRaw(A).addEOL()}addQuote(A,Q){let B=Object.assign({},Q&&{cite:Q}),E=this.wrap("blockquote",A,B);return this.addRaw(E).addEOL()}addLink(A,Q){let B=this.wrap("a",A,{href:Q});return this.addRaw(B).addEOL()}}var Jf=new Yf;gI.markdownSummary=Jf;gI.summary=Jf});var Gf=K((TI)=>{var mYA=TI&&TI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),dYA=TI&&TI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),cYA=TI&&TI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))mYA(Q,A,B)}return dYA(Q,A),Q};Object.defineProperty(TI,"__esModule",{value:!0});TI.toPlatformPath=TI.toWin32Path=TI.toPosixPath=void 0;var lYA=cYA(require("path"));function pYA(A){return A.replace(/[\\]/g,"/")}TI.toPosixPath=pYA;function iYA(A){return A.replace(/[/]/g,"\\")}TI.toWin32Path=iYA;function nYA(A){return A.replace(/[/\\]/g,lYA.sep)}TI.toPlatformPath=nYA});var EK=K((fA)=>{var aYA=fA&&fA.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;Object.defineProperty(A,E,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),Line truncated
`);return{name:Q,version:B}});OQ.platform=jf.default.platform();OQ.arch=jf.default.arch();OQ.isWindows=OQ.platform==="win32";OQ.isMacOS=OQ.platform==="darwin";OQ.isLinux=OQ.platform==="linux";function TJA(){return z4(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield OQ.isWindows?MJA():OQ.isMacOS?RJA():gJA()),{platform:OQ.platform,arch:OQ.arch,isWindows:OQ.isWindows,isMacOS:OQ.isMacOS,isLinux:OQ.isLinux})})}OQ.getDetails=TJA});var yB=K((jA)=>{var OJA=jA&&jA.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),qJA=jA&&jA.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),FK=jA&&jA.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))OJA(Q,A,B)}return qJA(Q,A),Q},kf=jA&&jA.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(jA,"__esModule",{value:!0});jA.platform=jA.toPlatformPath=jA.toWin32Path=jA.toPosixPath=jA.markdownSummary=jA.summary=jA.getIDToken=jA.getState=jA.saveState=jA.group=jA.endGroup=jA.startGroup=jA.info=jA.notice=jA.warning=jA.error=jA.debug=jA.isDebug=jA.setFailed=jA.setCommandEcho=jA.setOutput=jA.getBooleanInput=jA.getMultilineInput=jA.getInput=jA.addPath=jA.setSecret=jA.exportVariable=jA.ExitCode=void 0;var KC=hR(),C1=_R(),aY=SU(),ff=FK(require("os")),jJA=FK(require("path")),PJA=Ff(),DK;(function(A){A[A.Success=0]="Success",A[A.Failure=1]="Failure"})(DK||(jA.ExitCode=DK={}));function kJA(A,Q){let B=(0,aY.toCommandValue)(Q);if(process.env[A]=B,process.env.GITHUB_ENV||"")return(0,C1.issueFileCommand)("ENV",(0,C1.prepareKeyValueMessage)(A,Q));(0,KC.issueCommand)("set-env",{name:A},B)}jA.exportVariable=kJA;function fJA(A){(0,KC.issueCommand)("add-mask",{},A)}jA.setSecret=fJA;function xJA(A){if(process.env.GITHUB_PATH||"")(0,C1.issueFileCommand)("PATH",A);else(0,KC.issueCommand)("add-path",{},A);process.env.PATH=`${A}${jJA.delimiter}${process.env.PATH}`}jA.addPath=xJA;function YK(A,Q){let B=process.env[`INPUT_${A.replace(/ /g,"_").toUpperCase()}`]||"";if(Q&&Q.required&&!B)throw Error(`Input required and not supplied: ${A}`);if(Q&&Q.trimWhitespace===!1)return B;return B.trim()}jA.getInput=YK;function hJA(A,Q){let B=YK(A,Q).split(`
`).filter((E)=>E!=="");if(Q&&Q.trimWhitespace===!1)return B;return B.map((E)=>E.trim())}jA.getMultilineInput=hJA;function SJA(A,Q){let B=["true","True","TRUE"],E=["false","False","FALSE"],I=YK(A,Q);if(B.includes(I))return!0;if(E.includes(I))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${A}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}jA.getBooleanInput=SJA;function yJA(A,Q){if(process.env.GITHUB_OUTPUT||"")return(0,C1.issueFileCommand)("OUTPUT",(0,C1.prepareKeyValueMessage)(A,Q));process.stdout.write(ff.EOL),(0,KC.issueCommand)("set-output",{name:A},(0,aY.toCommandValue)(Q))}jA.setOutput=yJA;function _JA(A){(0,KC.issue)("echo",A?"on":"off")}jA.setCommandEcho=_JA;function vJA(A){process.exitCode=DK.Failure,xf(A)}jA.setFailed=vJA;function bJA(){return process.env.RUNNER_DEBUG==="1"}jA.isDebug=bJA;function uJA(A){(0,KC.issueCommand)("debug",{},A)}jA.debug=uJA;function xf(A,Q={}){(0,KC.issueCommand)("error",(0,aY.toCommandProperties)(Q),A instanceof Error?A.toString():A)}jA.error=xf;function mJA(A,Q={}){(0,KC.issueCommand)("warning",(0,aY.toCommandProperties)(Q),A instanceof Error?A.toString():A)}jA.warning=mJA;function dJA(A,Q={}){(0,KC.issueCommand)("notice",(0,aY.toCommandProperties)(Q),A instanceof Error?A.toString():A)}jA.notice=dJA;function cJA(A){process.stdout.write(A+ff.EOL)}jA.info=cJA;function hf(A){(0,KC.issue)("group",A)}jA.startGroup=hf;function Sf(){(0,KC.issue)("endgroup")}jA.endGroup=Sf;function lJA(A,Q){return kf(this,void 0,void 0,function*(){hf(A);let B;try{B=yield Q()}finally{Sf()}return B})}jA.group=lJA;function pJA(A,Q){if(process.env.GITHUB_STATE||"")return(0,C1.issueFileCommand)("STATE",(0,C1.prepareKeyValueMessage)(A,Q));(0,KC.issueCommand)("save-state",{name:A},(0,aY.toCommandValue)(Q))}jA.saveState=pJA;function iJA(A){return process.env[`STATE_${A}`]||""}jA.getState=iJA;function nJA(A){return kf(this,void 0,void 0,function*(){return yield PJA.OidcClient.getIDToken(A)})}jA.getIDToken=nJA;var aJA=QK();Object.defineProperty(jA,"summary",{enumerable:!0,get:function(){return aJA.summary}});var sJA=QK();Object.defineProperty(jA,"markdownSummary",{enumerable:!0,get:function(){return sJA.markdownSummary}});var JK=Gf();Object.defineProperty(jA,"toPosixPath",{enumerable:!0,get:function(){return JK.toPosixPath}});Object.defineProperty(jA,"toWin32Path",{enumerable:!0,get:function(){return JK.toWin32Path}});Object.defineProperty(jA,"toPlatformPath",{enumerable:!0,get:function(){return JK.toPlatformPath}});jA.platform=FK(Pf())});var GK=K((H4)=>{Object.defineProperty(H4,"__esModule",{value:!0});H4.Context=void 0;var yf=require("fs"),oJA=require("os");class _f{constructor(){var A,Q,B;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,yf.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,yf.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let E=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${E} does not exist${oJA.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(A=process.env.GITHUB_API_URL)!==null&&A!==void 0?A:"https://api.github.com",this.serverUrl=(Q=process.env.GITHUB_SERVER_URL)!==null&&Q!==void 0?Q:"https://github.com",this.graphqlUrl=(B=process.env.GITHUB_GRAPHQL_URL)!==null&&B!==void 0?B:"https://api.github.com/graphql"}get issue(){let A=this.payload;return Object.assign(Object.assign({},this.repo),{number:(A.issue||A.pull_request||A).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[A,Q]=process.env.GITHUB_REPOSITORY.split("/");return{owner:A,repo:Q}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}H4.Context=_f});var uf=K((AE)=>{var rJA=AE&&AE.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),tJA=AE&&AE.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),eJA=AE&&AE.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))rJA(Q,A,B)}return tJA(Q,A),Q},AGA=AE&&AE.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(AE,"__esModule",{value:!0});AE.getApiBaseUrl=AE.getProxyFetch=AE.getProxyAgentDispatcher=AE.getProxyAgent=AE.getAuthStringLine truncated
`+A.errors.map((Q)=>` - ${Q.message}`).join(`
`)}var Px=class extends Error{constructor(A,Q,B){super(UNA(B));if(this.request=A,this.headers=Q,this.response=B,this.name="GraphqlResponseError",this.errors=B.errors,this.data=B.data,Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}},ZNA=["method","baseUrl","url","headers","request","query","mediaType"],WNA=["query","method","url"],qx=/\/api\/v3\/?$/;function XNA(A,Q,B){if(B){if(typeof Q==="string"&&"query"in B)return Promise.reject(Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let D in B){if(!WNA.includes(D))continue;return Promise.reject(Error(`[@octokit/graphql] "${D}" cannot be used as variable name`))}}let E=typeof Q==="string"?Object.assign({query:Q},B):Q,I=Object.keys(E).reduce((D,F)=>{if(ZNA.includes(F))return D[F]=E[F],D;if(!D.variables)D.variables={};return D.variables[F]=E[F],D},{}),C=E.baseUrl||A.endpoint.DEFAULTS.baseUrl;if(qx.test(C))I.url=C.replace(qx,"/api/graphql");return A(I).then((D)=>{if(D.data.errors){let F={};for(let Y of Object.keys(D.headers))F[Y]=D.headers[Y];throw new Px(I,F,D.data)}return D.data.data})}function HK(A,Q){let B=A.defaults(Q);return Object.assign((I,C)=>{return XNA(B,I,C)},{defaults:HK.bind(null,B),endpoint:B.endpoint})}var $NA=HK(JNA.request,{headers:{"user-agent":`octokit-graphql.js/${NNA} ${(0,GNA.getUserAgent)()}`},method:"POST",url:"/graphql"});function KNA(A){return HK(A,{method:"POST",url:"/graphql"})}});var Sx=K((fyA,hx)=>{var{defineProperty:wK,getOwnPropertyDescriptor:LNA,getOwnPropertyNames:VNA}=Object,zNA=Object.prototype.hasOwnProperty,HNA=(A,Q)=>{for(var B in Q)wK(A,B,{get:Q[B],enumerable:!0})},wNA=(A,Q,B,E)=>{if(Q&&typeof Q==="object"||typeof Q==="function"){for(let I of VNA(Q))if(!zNA.call(A,I)&&I!==B)wK(A,I,{get:()=>Q[I],enumerable:!(E=LNA(Q,I))||E.enumerable})}return A},MNA=(A)=>wNA(wK({},"__esModule",{value:!0}),A),xx={};HNA(xx,{createTokenAuth:()=>PNA});hx.exports=MNA(xx);var RNA=/^v1\./,gNA=/^ghs_/,TNA=/^ghu_/;async function ONA(A){let Q=A.split(/\./).length===3,B=RNA.test(A)||gNA.test(A),E=TNA.test(A);return{type:"token",token:A,tokenType:Q?"app":B?"installation":E?"user-to-server":"oauth"}}function qNA(A){if(A.split(/\./).length===3)return`bearer ${A}`;return`token ${A}`}async function jNA(A,Q,B,E){let I=Q.endpoint.merge(B,E);return I.headers.authorization=qNA(A),Q(I)}var PNA=function(Q){if(!Q)throw Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof Q!=="string")throw Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return Q=Q.replace(/^(token|bearer) +/i,""),Object.assign(ONA.bind(null,Q),{hook:jNA.bind(null,Q)})}});var dx=K((xyA,mx)=>{var{defineProperty:MK,getOwnPropertyDescriptor:kNA,getOwnPropertyNames:fNA}=Object,xNA=Object.prototype.hasOwnProperty,hNA=(A,Q)=>{for(var B in Q)MK(A,B,{get:Q[B],enumerable:!0})},SNA=(A,Q,B,E)=>{if(Q&&typeof Q==="object"||typeof Q==="function"){for(let I of fNA(Q))if(!xNA.call(A,I)&&I!==B)MK(A,I,{get:()=>Q[I],enumerable:!(E=kNA(Q,I))||E.enumerable})}return A},yNA=(A)=>SNA(MK({},"__esModule",{value:!0}),A),bx={};hNA(bx,{Octokit:()=>lNA});mx.exports=yNA(bx);var _NA=V9(),vNA=Qx(),yx=M9(),bNA=fx(),uNA=Sx(),ux="5.2.2",_x=()=>{},mNA=console.warn.bind(console),dNA=console.error.bind(console);function cNA(A={}){if(typeof A.debug!=="function")A.debug=_x;if(typeof A.info!=="function")A.info=_x;if(typeof A.warn!=="function")A.warn=mNA;if(typeof A.error!=="function")A.error=dNA;return A}var vx=`octokit-core.js/${ux} ${(0,_NA.getUserAgent)()}`,lNA=class{static{this.VERSION=ux}static defaults(A){return class extends this{constructor(...B){let E=B[0]||{};if(typeof A==="function"){super(A(E));return}super(Object.assign({},A,E,E.userAgent&&A.userAgent?{userAgent:`${E.userAgent} ${A.userAgent}`}:null))}}}static{this.plugins=[]}static plugin(...A){let Q=this.plugins;return class extends this{static{this.plugins=Q.concat(A.filter((E)=>!Q.includes(E)))}}}constructor(A={}){let Q=new vNA.Collection,B={baseUrl:yx.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},A.request,{hook:Q.bind(null,"request")}),mediaType:{previews:[],format:""}};if(B.headers["user-agent"]=A.userAgent?`${A.userAgent} ${vx}`:vx,A.baseUrl)B.baseUrl=A.baseUrl;if(A.previews)B.mediaType.previews=A.previews;if(A.timeZone)B.headers["time-zone"]=A.timeZone;if(this.request=yx.request.defaults(B),this.graphql=(0,bNA.withCustomRequest)(this.request).defaults(B),this.log=cNA(A.log),this.hook=Q,!A.authStrategy)if(!A.auth)this.auth=async()=>({type:"unauthenticated"});else{let I=(0,uNA.createTokenAuth)(A.auth);Q.wrap("request",I.hook),this.auth=I}else{let{authStrategy:I,...C}=A,D=I(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:C},A.auth));Q.wrap("request",D.hook),this.auth=D}let E=this.constructor;for(let I=0;I<E.plugins.length;++I)Object.assign(this,E.plugins[I](this,A))}}});var sx=K((_yA,ax)=>{var{defineProperty:RK,getOwnPropertyDescriptor:pNA,getOwnPropertyNames:iNA}=Object,nNA=Object.prototype.hasOwnProperty,aNA=(A,Q)=>{ Line truncated
`);for(let I of E){let C=I.split("=");if(C.length===2&&(C[0].trim()==="VERSION_ID"||C[0].trim()==="DISTRIB_RELEASE")){Q=C[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return Q}cE._getOsVersion=U5A;function Z5A(){let B="";if(P4.existsSync("/etc/lsb-release"))B=P4.readFileSync("/etc/lsb-release").toString();else if(P4.existsSync("/etc/os-release"))B=P4.readFileSync("/etc/os-release").toString();return B}cE._readLinuxVersionFile=Z5A});var Hh=K((zC)=>{var W5A=zC&&zC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),X5A=zC&&zC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),$5A=zC&&zC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))W5A(Q,A,B)}return X5A(Q,A),Q},Lh=zC&&zC.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(zC,"__esModule",{value:!0});zC.RetryHelper=void 0;var Vh=$5A(yB());class zh{constructor(A,Q,B){if(A<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=A,this.minSeconds=Math.floor(Q),this.maxSeconds=Math.floor(B),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds")}execute(A,Q){return Lh(this,void 0,void 0,function*(){let B=1;while(B<this.maxAttempts){try{return yield A()}catch(I){if(Q&&!Q(I))throw I;Vh.info(I.message)}let E=this.getSleepAmount();Vh.info(`Waiting ${E} seconds before trying again`),yield this.sleep(E),B++}return yield A()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(A){return Lh(this,void 0,void 0,function*(){return new Promise((Q)=>setTimeout(Q,A*1000))})}}zC.RetryHelper=zh});var jh=K(($Q)=>{var __dirname="/Users/kudo/01_Work/Repos/expo/actions/node_modules/@actions/tool-cache/lib",K5A=$Q&&$Q.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),L5A=$Q&&$Q.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),rC=$Q&&$Q.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))K5A(Q,A,B)}return L5A(Q,A),Q},GI=$Q&&$Q.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty($Q,"__esModule",{value:!0});$Q.evaluateVersions=$Q.isExplicitVersion=$Q.findFromManifest=$Q.getManifestFromRepo=$Q.findAllVersions=$Q.find=$Q.cacheFile=$Q.cacheDir=$Q.extractZip=$Q.extractXar=$Q.extractTar=$Q.extract7z=$Q.downloadTool=$Q.HTTPError=void 0;var PQ=rC(yB()),tI=rC(pY()),wh=rC(require("crypto")),HC=rC(require("fs")),V5A=rC(Kh()),q9=rC(require("os")),oC=rC(require("path")),Mh=rC(JD()),ND=rC(_K()),z5A=rC(require("stream")),H5A=rC(require("util")),BJ=require("assert"),aD=nY(),w5A=Hh();class k4 extends Error{constructor(A){super(`Unexpected HTTP response: ${A}`);this.httpStatusCode=A,Object.setPrototypeOf(this,new.target.prototype)}}$Q.HTTPError=k4;var mK=process.platform==="win32",M5A=process.platform==="darwin",R5A="actions/tool-cache";function g5A(A,Q,B,E){return GI(this,void 0,void 0,function*(){Q=Q||oC.join(qh(),wh.randomUUID()),yield tI.mkdirP(oC.dirname(Q)),PQ.debug(`Downloading ${A}`),PQ.debug(`Destination ${Q}`);let I=3,C=uK("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),D=uK("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new w5A.RetryHelper(I,C,D).execute(()=>GI(this,void 0,void 0,function*(){return yield T5A(A,Q||"",B,E)}),(Y)=>{if(Y instanceof k4&&Y.httpStatusCode){if(Y.httpStatusCode<500&&Y.httpStatusCode!==408&&Y.httpStatusCode!==429)return!1}return!0})})}$Q.downloadTool=g5A;function T5A(A,Q,B,E){return GI(this,void 0,void 0,function*(){if(HC.existsSync(Q))throw Error(`Destination file path ${Q} already exists`);let I=new Mh.HttpClient(R5A,[],{allowRetries:!1});if(B){if(PQ.debug("set auth"),E===void 0)E={};E.authorization=B}let C=yield I.get(A Line truncated
${I}`;Object.assign(M,w),Y(M)}else F(w)},X=($)=>{if(J)C.removeListener("exit",Z);else C.removeListener("close",Z);Object.assign($,{pid:C.pid,output:[N,U],stdout:N,stderr:U,status:null,signal:null}),Y($)};if(J)C.once("exit",Z);else C.once("close",Z);C.once("error",X)});return D.child=C,D}zS.exports=ZUA});var wS=K((C_A,HS)=>{HS.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var eK=K((D_A,RS)=>{var j9=wS(),MS={};for(let A of Object.keys(j9))MS[j9[A]]=A;var xA={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};RS.exports=xA;for(let A of Object.keys(xA)){if(!("channels"in xA[A]))throw Error("missing channels property: "+A);if(!("labels"in xA[A]))throw Error("missing channel labels property: "+A);if(xA[A].labels.length!==xA[A].channels)throw Error("channel and label counts mismatch: "+A);let{channels:Q,labels:B}=xA[A];delete xA[A].channels,delete xA[A].labels,Object.defineProperty(xA[A],"channels",{value:Q}),Object.defineProperty(xA[A],"labels",{value:B})}xA.rgb.hsl=function(A){let Q=A[0]/255,B=A[1]/255,E=A[2]/255,I=Math.min(Q,B,E),C=Math.max(Q,B,E),D=C-I,F,Y;if(C===I)F=0;else if(Q===C)F=(B-E)/D;else if(B===C)F=2+(E-Q)/D;else if(E===C)F=4+(Q-B)/D;if(F=Math.min(F*60,3 Line truncated
`:`
`)+B,I=E+1,E=A.indexOf(`
`,I)}while(E!==-1);return C+=A.substr(I),C};bS.exports={stringReplaceAll:TUA,stringEncaseCRLFWithFirstIndex:OUA}});var pS=K((Z_A,lS)=>{var qUA=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,mS=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,jUA=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,PUA=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,kUA=new Map([["n",`
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function cS(A){let Q=A[0]==="u",B=A[1]==="{";if(Q&&!B&&A.length===5||A[0]==="x"&&A.length===3)return String.fromCharCode(parseInt(A.slice(1),16));if(Q&&B)return String.fromCodePoint(parseInt(A.slice(2,-1),16));return kUA.get(A)||A}function fUA(A,Q){let B=[],E=Q.trim().split(/\s*,\s*/g),I;for(let C of E){let D=Number(C);if(!Number.isNaN(D))B.push(D);else if(I=C.match(jUA))B.push(I[2].replace(PUA,(F,Y,J)=>Y?cS(Y):J));else throw Error(`Invalid Chalk template style argument: ${C} (in style '${A}')`)}return B}function xUA(A){mS.lastIndex=0;let Q=[],B;while((B=mS.exec(A))!==null){let E=B[1];if(B[2]){let I=fUA(E,B[2]);Q.push([E].concat(I))}else Q.push([E])}return Q}function dS(A,Q){let B={};for(let I of Q)for(let C of I.styles)B[C[0]]=I.inverse?null:C.slice(1);let E=A;for(let[I,C]of Object.entries(B)){if(!Array.isArray(C))continue;if(!(I in E))throw Error(`Unknown Chalk style: ${I}`);E=C.length>0?E[I](...C):E[I]}return E}lS.exports=(A,Q)=>{let B=[],E=[],I=[];if(Q.replace(qUA,(C,D,F,Y,J,G)=>{if(D)I.push(cS(D));else if(Y){let N=I.join("");I=[],E.push(B.length===0?N:dS(A,B)(N)),B.push({inverse:F,styles:xUA(Y)})}else if(J){if(B.length===0)throw Error("Found extraneous } in Chalk template literal");E.push(dS(A,B)(I.join(""))),I=[],B.pop()}else I.push(G)}),E.push(I.join("")),B.length>0){let C=`Chalk template literal is missing ${B.length} closing bracket${B.length===1?"":"s"} (\`}\`)`;throw Error(C)}return E.join("")}});var eS=K((W_A,tS)=>{var P9=hS(),{stdout:DL,stderr:FL}=IL(),{stringReplaceAll:hUA,stringEncaseCRLFWithFirstIndex:SUA}=uS(),{isArray:v4}=Array,nS=["ansi","ansi","ansi256","ansi16m"],YJ=Object.create(null),yUA=(A,Q={})=>{if(Q.level&&!(Number.isInteger(Q.level)&&Q.level>=0&&Q.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let B=DL?DL.level:0;A.level=Q.level===void 0?B:Q.level};class aS{constructor(A){return sS(A)}}var sS=(A)=>{let Q={};return yUA(Q,A),Q.template=(...B)=>rS(Q.template,...B),Object.setPrototypeOf(Q,b4.prototype),Object.setPrototypeOf(Q.template,Q),Q.template.constructor=()=>{throw Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},Q.template.Instance=aS,Q.template};function b4(A){return sS(A)}for(let[A,Q]of Object.entries(P9))YJ[A]={get(){let B=u4(this,YL(Q.open,Q.close,this._styler),this._isEmpty);return Object.defineProperty(this,A,{value:B}),B}};YJ.visible={get(){let A=u4(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:A}),A}};var oS=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let A of oS)YJ[A]={get(){let{level:Q}=this;return function(...B){let E=YL(P9.color[nS[Q]][A](...B),P9.color.close,this._styler);return u4(this,E,this._isEmpty)}}};for(let A of oS){let Q="bg"+A[0].toUpperCase()+A.slice(1);YJ[Q]={get(){let{level:B}=this;return function(...E){let I=YL(P9.bgColor[nS[B]][A](...E),P9.bgColor.close,this._styler);return u4(this,I,this._isEmpty)}}}}var _UA=Object.defineProperties(()=>{},{...YJ,level:{enumerable:!0,get(){return this._generator.level},set(A){this._generator.level=A}}}),YL=(A,Q,B)=>{let E,I;if(B===void 0)E=A,I=Q;else E=B.openAll+A,I=Q+B.closeAll;return{open:A,close:Q,openAll:E,closeAll:I,parent:B}},u4=(A,Q,B)=>{let E=(...I)=>{if(v4(I[0])&&v4(I[0].raw))return iS(E,rS(E,...I));return iS(E,I.length===1?""+I[0]:I.join(" "))};return Object.setPrototypeOf(E,_UA),E._generator=A,E._styler=Q,E._isEmpty=B,E},iS=(A,Q)=>{if(A.level<=0||!Q)return A._isEmpty?"":Q;let B=A._styler;if(B===void 0)return Q;let{openAll:E,closeAll:I}=B;if(Q.indexOf("\x1B")!==-1)while(B!==void 0)Q=hUA(Q,B.close,B.open),B=B.parent;let C=Q.indexOf(`
`);if(C!==-1)Q=SUA(Q,I,E,C);return E+Q+I},CL,rS=(A,...Q)=>{let[B]=Q;if(!v4(B)||!v4(B.raw))return Q.join(" ");let E=Q.slice(1),I=[B.raw[0]];for(let C=1;C<B.length;C++)I.push(String(E[C-1]).replace(/[{}\\]/g,"\\$&"),String(B.raw[C]));if(CL===void 0)CL=pS();return CL(A,I.join(""))};Object.defineProperties(b4.prototype,YJ);var m4=b4();m4.supportsColor=DL;m4.stderr=b4({level:FL?FL.level:0});m4.stderr.supportsColor=FL;tS.exports=m4});var By=K((MC)=>{var d4=MC&&MC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(MC,"__esModule",{value:!0});MC.CocoaPodsPackageManager=MC.CocoaPodsError=void 0;MC.extractMissingDependencyError=GL;MC.getPodUpdateMessage=NL;MC.getPodRepoUpdateMessage=Ay;MC.getImprovedPodInstallError=Qy;var J1=d4(S4()),tC=d4(eS()),vUA=require("fs"),k9=d4(require("os")),JL=d4(require("path"));class UD extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=!0;constructor(A,Q,B){super(B?`${A}
└─ Cause: ${B.message}`:A);this.code=Q,this.cause=B}}MC.CocoaPodsError=UD;function GL(A){let Q=A.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(Q)return[Q[1],Q[2]];return null}class eI{options;silent;static getPodProjectRoot(A){if(eI.isUsingPods(A))return A;let Q=JL.default.join(A,"ios");if(eI.isUsingPods(Q))return Q;let B=JL.default.join(A,"macos");if(eI.isUsingPods(B))return B;return null}static isUsingPods(A){return(0,vUA.existsSync)(JL.default.join(A,"Podfile"))}static async gemInstallCLIAsync(A=!1,Q={stdio:"inherit"}){let B=["install","cocoapods","--no-document"];try{await(0,J1.default)("gem",B,Q)}catch(E){if(A)throw new UD("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",E);console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation"),await(0,J1.default)("sudo",["gem",...B],Q)}}static async brewLinkCLIAsync(A={stdio:"inherit"}){await(0,J1.default)("brew",["link","cocoapods"],A)}static async brewInstallCLIAsync(A={stdio:"inherit"}){await(0,J1.default)("brew",["install","cocoapods"],A)}static async installCLIAsync({nonInteractive:A=!1,spawnOptions:Q={stdio:"inherit"}}){if(!Q)Q={stdio:"inherit"};let B=!!Q.ignoreStdio;try{return!B&&console.log("› Attempting to install CocoaPods CLI with Gem"),await eI.gemInstallCLIAsync(A,Q),!B&&console.log("› Successfully installed CocoaPods CLI with Gem"),!0}catch(E){if(!B)console.log(tC.default.yellow("› Failed to install CocoaPods CLI with Gem")),console.log(tC.default.red(E.stderr??E.message)),console.log("› Attempting to install CocoaPods CLI with Homebrew");try{if(await eI.brewInstallCLIAsync(Q),!await eI.isCLIInstalledAsync(Q))try{if(await eI.brewLinkCLIAsync(Q),!await eI.isCLIInstalledAsync(Q))throw new UD("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",E)}catch(I){throw new UD("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",I)}return!B&&console.log("› Successfully installed CocoaPods CLI with Homebrew"),!0}catch(I){throw!B&&console.warn(tC.default.yellow("› Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/")),new UD("Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/","NO_CLI",I)}}}static isAvailable(A,Q){if(process.platform!=="darwin")return!Q&&console.log(tC.default.red("CocoaPods is only supported on macOS machines")),!1;if(!eI.isUsingPods(A))return!Q&&console.log(tC.default.yellow("CocoaPods is not supported in this project")),!1;return!0}static async isCLIInstalledAsync(A={stdio:"inherit"}){try{return await(0,J1.default)("pod",["--version"],A),!0}catch{return!1}}constructor({cwd:A,silent:Q}){this.silent=!!Q,this.options={cwd:A,stdio:"pipe"}}get name(){return"CocoaPods"}async installAsync({spinner:A}={}){await this._installAsync({spinner:A})}isCLIInstalledAsync(){return eI.isCLIInstalledAsync(this.options)}installCLIAsync(){return eI.installCLIAsync({nonInteractive:!0,spawnOptions:this.options})}async handleInstallErrorAsync({error:A,shouldUpdate:Q=!0,updatedPackages:B=[],spinner:E}){if(!A.output)throw A;if(!Q)throw Qy(A,{cwd:this.options.cwd});let I=A.output.join(k9.default.EOL).trim(),{updatePackage:C,shouldUpdateRepo:D}=NL(I);if(!C||B.includes(C))return await this._installAsync({spinner:E,shouldRepoUpdate:!0,shouldUpdate:!1,updatedPackages:B});return B.push(C),await this.runInstallTypeCommandAsync(["update",C,D?"":"--no-repo-update"].filter(Boolean),{formatWarning(){return`Failed to update ${tC.default.bold(C)}. Attempting to update the repo instead.`},spinner:E,updatedPackages:B})}async _installAsync({shouldRepoUpdate:A,...Q}={}){return await this.runInstallTypeCommandAsync(["install",A?"--repo-update":""].filter(Boolean),{formatWarning(B){return Ay(B.output.join(k9.default.EOL).trim()).message},...Q})}async runInstallTypeCommandAsync(A,{formatWarning:Q,...B}={}){try{return await this._runAsync(A)}catch(E){if(Q){let I=Q(E);if(B.spinner)B.spinner.text=tC.default.bold(I);if(!this.silent)console.warn(tC.default.yellow(I))}return await this.handleInstallErrorAsync({error:E,...B})}}async addWithParametersAsync(A,Q){throw Error("Unimplemented")}addAsync(A=[]){throw Error("Unimplemented")}addDevAsync(A=[]){throw Error("Unimplemented")}addGlobalAsync(A=[]){throw Error("Unimplemented")}removeAsync(A=[]){throw Error("Unimplemented")}removeDevAsync(A=[]){throw Error("Unimplemented")}removeGlobalAsync(A=[]){throw Error("Unimplemented")}async versionAsync(){let{stdout:A}=await(0,J1.default)("pod",["--version"],this.options);return A.trim()}async configAsync(A){throw Error("Unimplemented")}async removeLockfileAsync(){throw Error("Unimplemented")}async uninstallAsync(){throw Error("Unimplemented")}async podRepoUpdateAsync(){try{await this._runAsync(["r Line truncated
${tC.default.gray(Y)}`}}return new UD("Command `pod install --repo-update` failed.","COMMAND_FAILED",A)}else{let E=A.stderr.trim(),I=A.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(I){if(A.message?.match(/pod exited with non-zero code: 1/))A.message="";E=null}A.message=[I,A.message,E].filter(Boolean).join(`
`)}return new UD("Command `pod install` failed.","COMMAND_FAILED",A)}});var Ey=K((c4)=>{Object.defineProperty(c4,"__esModule",{value:!0});c4.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;c4.matchToToken=function(A){var Q={type:"invalid",value:A[0],closed:void 0};if(A[1])Q.type="string",Q.closed=!!(A[3]||A[4]);else if(A[5])Q.type="comment";else if(A[6])Q.type="comment",Q.closed=!!A[7];else if(A[8])Q.type="regex";else if(A[9])Q.type="number";else if(A[10])Q.type="name";else if(A[11])Q.type="punctuator";else if(A[12])Q.type="whitespace";return Q}});var Yy=K((f9)=>{Object.defineProperty(f9,"__esModule",{value:!0});f9.isIdentifierChar=Fy;f9.isIdentifierName=cUA;f9.isIdentifierStart=Dy;var ZL="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Iy="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",uUA=new RegExp("["+ZL+"]"),mUA=new RegExp("["+ZL+Iy+"]");ZL=Iy=null;var Cy=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5Line truncated
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Sy(A){if(A[0]==="u"&&A.length===5||A[0]==="x"&&A.length===3)return String.fromCharCode(parseInt(A.slice(1),16));return X8A.get(A)||A}function $8A(A,Q){let B=[],E=Q.trim().split(/\s*,\s*/g),I;for(let C of E)if(!isNaN(C))B.push(Number(C));else if(I=C.match(Z8A))B.push(I[2].replace(W8A,(D,F,Y)=>F?Sy(F):Y));else throw Error(`Invalid Chalk template style argument: ${C} (in style '${A}')`);return B}function K8A(A){xy.lastIndex=0;let Q=[],B;while((B=xy.exec(A))!==null){let E=B[1];if(B[2]){let I=$8A(E,B[2]);Q.push([E].concat(I))}else Q.push([E])}return Q}function hy(A,Q){let B={};for(let I of Q)for(let C of I.styles)B[C[0]]=I.inverse?null:C.slice(1);let E=A;for(let I of Object.keys(B))if(Array.isArray(B[I])){if(!(I in E))throw Error(`Unknown Chalk style: ${I}`);if(B[I].length>0)E=E[I].apply(E,B[I]);else E=E[I]}return E}yy.exports=(A,Q)=>{let B=[],E=[],I=[];if(Q.replace(U8A,(C,D,F,Y,J,G)=>{if(D)I.push(Sy(D));else if(Y){let N=I.join("");I=[],E.push(B.length===0?N:hy(A,B)(N)),B.push({inverse:F,styles:K8A(Y)})}else if(J){if(B.length===0)throw Error("Found extraneous } in Chalk template literal");E.push(hy(A,B)(I.join(""))),I=[],B.pop()}else I.push(G)}),E.push(I.join("")),B.length>0){let C=`Chalk template literal is missing ${B.length} closing bracket${B.length===1?"":"s"} (\`}\`)`;throw Error(C)}return E.join("")}});var dy=K((P_A,y9)=>{var ML=Ly(),QE=qy(),wL=fy().stdout,L8A=_y(),by=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),uy=["ansi","ansi","ansi256","ansi16m"],my=new Set(["gray"]),UJ=Object.create(null);function vy(A,Q){Q=Q||{};let B=wL?wL.level:0;A.level=Q.level===void 0?B:Q.level,A.enabled="enabled"in Q?Q.enabled:A.level>0}function S9(A){if(!this||!(this instanceof S9)||this.template){let Q={};return vy(Q,A),Q.template=function(){let B=[].slice.call(arguments);return H8A.apply(null,[Q.template].concat(B))},Object.setPrototypeOf(Q,S9.prototype),Object.setPrototypeOf(Q.template,Q),Q.template.constructor=S9,Q.template}vy(this,A)}if(by)QE.blue.open="\x1B[94m";for(let A of Object.keys(QE))QE[A].closeRe=new RegExp(ML(QE[A].close),"g"),UJ[A]={get(){let Q=QE[A];return o4.call(this,this._styles?this._styles.concat(Q):[Q],this._empty,A)}};UJ.visible={get(){return o4.call(this,this._styles||[],!0,"visible")}};QE.color.closeRe=new RegExp(ML(QE.color.close),"g");for(let A of Object.keys(QE.color.ansi)){if(my.has(A))continue;UJ[A]={get(){let Q=this.level;return function(){let E={open:QE.color[uy[Q]][A].apply(null,arguments),close:QE.color.close,closeRe:QE.color.closeRe};return o4.call(this,this._styles?this._styles.concat(E):[E],this._empty,A)}}}}QE.bgColor.closeRe=new RegExp(ML(QE.bgColor.close),"g");for(let A of Object.keys(QE.bgColor.ansi)){if(my.has(A))continue;let Q="bg"+A[0].toUpperCase()+A.slice(1);UJ[Q]={get(){let B=this.level;return function(){let I={open:QE.bgColor[uy[B]][A].apply(null,arguments),close:QE.bgColor.close,closeRe:QE.bgColor.closeRe};return o4.call(this,this._styles?this._styles.concat(I):[I],this._empty,A)}}}}var V8A=Object.defineProperties(()=>{},UJ);function o4(A,Q,B){let E=function(){return z8A.apply(E,arguments)};E._styles=A,E._empty=Q;let I=this;return Object.defineProperty(E,"level",{enumerable:!0,get(){return I.level},set(C){I.level=C}}),Object.defineProperty(E,"enabled",{enumerable:!0,get(){return I.enabled},set(C){I.enabled=C}}),E.hasGrey=this.hasGrey||B==="gray"||B==="grey",E.__proto__=V8A,E}function z8A(){let A=arguments,Q=A.length,B=String(arguments[0]);if(Q===0)return"";if(Q>1)for(let I=1;I<Q;I++)B+=" "+A[I];if(!this.enabled||this.level<=0||!B)return this._empty?"":B;let E=QE.dim.open;if(by&&this.hasGrey)QE.dim.open="";for(let I of this._styles.slice().reverse())B=I.open+B.replace(I.closeRe,I.open)+I.close,B=B.replace(/\r?\n/g,`${I.close}$&${I.open}`);return QE.dim.open=E,B}function H8A(A,Q){if(!Array.isArray(Q))return[].slice.call(arguments,1).join(" ");let B=[].slice.call(arguments,2),E=[Q.raw[0]];for(let I=1;I<Q.length;I++)E.push(String(B[I-1]).replace(/[{}\\]/g,"\\$&")),E.push(String(Q.raw[I]));return L8A(A,E.join(""))}Object.defineProperties(S9.prototype,UJ);y9.exports=S9();y9.exports.supportsColor=wL;y9.exports.default=y9.exports});var oy=K((_9)=>{Object.defineProperty(_9,"__esModule",{value:!0});_9.default=j8A;_9.shouldHighlight=sy;var cy=Ey(),ly=Zy(),gL=w8A($y(),!0);function iy(A){if(typeof WeakMap!="function")return null;var Q=new WeakMap,B=new WeakMap;return(iy=function(E){return E?B:Q})(A)}function w8A(A,Q){if(!Q&&A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var B=iy(Q);if(B&&B.has(A))return B.get(A);var E={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in A)if(C!=="default"&&{}.hasOwnProperty.call(A,C)){var D=I?Object.getOwnPropertyDescriptor(A,C):null;D&&(D.get||D.set)?Object.defineProperty(E,C,D):E[C]=A[C]}return E.default=A,B&&B.sLine truncated
`);else B+=I}return B}function sy(A){return ny.isColorSupported||A.forceColor}var RL=void 0;function q8A(A){if(A){var Q;return(Q=RL)!=null||(RL=(0,gL.createColors)(!0)),RL}return ny}function j8A(A,Q={}){if(A!==""&&sy(Q)){let B=R8A(q8A(Q.forceColor));return O8A(B,A)}else return A}{let A,Q;_9.getChalk=({forceColor:B})=>{var E;if((E=A)!=null||(A=dy()),B){var I;return(I=Q)!=null||(Q=new A.constructor({enabled:!0,level:1})),Q}return A}}});var Q_=K((r4)=>{Object.defineProperty(r4,"__esModule",{value:!0});r4.codeFrameColumns=A_;r4.default=x8A;var TL=P8A(oy());function ey(){if(typeof WeakMap!=="function")return null;var A=new WeakMap;return ey=function(){return A},A}function P8A(A){if(A&&A.__esModule)return A;if(A===null||typeof A!=="object"&&typeof A!=="function")return{default:A};var Q=ey();if(Q&&Q.has(A))return Q.get(A);var B={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in A)if(Object.prototype.hasOwnProperty.call(A,I)){var C=E?Object.getOwnPropertyDescriptor(A,I):null;if(C&&(C.get||C.set))Object.defineProperty(B,I,C);else B[I]=A[I]}if(B.default=A,Q)Q.set(A,B);return B}var ry=!1;function k8A(A){return{gutter:A.grey,marker:A.red.bold,message:A.red.bold}}var ty=/\r\n|[\n\r\u2028\u2029]/;function f8A(A,Q,B){let E=Object.assign({column:0,line:-1},A.start),I=Object.assign({},E,A.end),{linesAbove:C=2,linesBelow:D=3}=B||{},F=E.line,Y=E.column,J=I.line,G=I.column,N=Math.max(F-(C+1),0),U=Math.min(Q.length,J+D);if(F===-1)N=0;if(J===-1)U=Q.length;let Z=J-F,X={};if(Z)for(let $=0;$<=Z;$++){let V=$+F;if(!Y)X[V]=!0;else if($===0){let w=Q[V-1].length;X[V]=[Y,w-Y+1]}else if($===Z)X[V]=[0,G];else{let w=Q[V-$].length;X[V]=[0,w]}}else if(Y===G)if(Y)X[F]=[Y,0];else X[F]=!0;else X[F]=[Y,G-Y];return{start:N,end:U,markerLines:X}}function A_(A,Q,B={}){let E=(B.highlightCode||B.forceColor)&&(0,TL.shouldHighlight)(B),I=(0,TL.getChalk)(B),C=k8A(I),D=($,V)=>{return E?$(V):V},F=A.split(ty),{start:Y,end:J,markerLines:G}=f8A(Q,F,B),N=Q.start&&typeof Q.start.column==="number",U=String(J).length,X=(E?(0,TL.default)(A,B):A).split(ty).slice(Y,J).map(($,V)=>{let w=Y+1+V,M=` ${` ${w}`.slice(-U)} | `,k=G[w],d=!G[w+1];if(k){let t="";if(Array.isArray(k)){let m=$.slice(0,Math.max(k[0]-1,0)).replace(/[^\t]/g," "),n=k[1]||1;if(t=[`
`,D(C.gutter,M.replace(/\d/g," ")),m,D(C.marker,"^").repeat(n)].join(""),d&&B.message)t+=" "+D(C.message,B.message)}return[D(C.marker,">"),D(C.gutter,M),$,t].join("")}else return` ${D(C.gutter,M)}${$}`}).join(`
`);if(B.message&&!N)X=`${" ".repeat(U+1)}${B.message}
${X}`;if(E)return I.reset(X);else return X}function x8A(A,Q,B,E={}){if(!ry){ry=!0;let C="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(C,"DeprecationWarning");else{let D=Error(C);D.name="DeprecationWarning",console.warn(Error(C))}}return B=Math.max(B,0),A_(A,{start:{column:B,line:Q}},E)}});var B_=K((x_A,t4)=>{t4.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;t4.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uLine truncated
`)oD++,A0=0;else if(A)A0+=A.length;else A0++;if(A)A2+=A.length;return A}var C_={default(){switch(HQ){case"\t":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
`:case"\r":case"\u2028":case"\u2029":DA();return;case"/":DA(),NQ="comment";return;case void 0:return DA(),$B("eof")}if(LE.isSpaceSeparator(HQ)){DA();return}return C_[NI]()},comment(){switch(HQ){case"*":DA(),NQ="multiLineComment";return;case"/":DA(),NQ="singleLineComment";return}throw KB(DA())},multiLineComment(){switch(HQ){case"*":DA(),NQ="multiLineCommentAsterisk";return;case void 0:throw KB(DA())}DA()},multiLineCommentAsterisk(){switch(HQ){case"*":DA();return;case"/":DA(),NQ="default";return;case void 0:throw KB(DA())}DA(),NQ="multiLineComment"},singleLineComment(){switch(HQ){case`
`:case"\r":case"\u2028":case"\u2029":DA(),NQ="default";return;case void 0:return DA(),$B("eof")}DA()},value(){switch(HQ){case"{":case"[":return $B("punctuator",DA());case"n":return DA(),U1("ull"),$B("null",null);case"t":return DA(),U1("rue"),$B("boolean",!0);case"f":return DA(),U1("alse"),$B("boolean",!1);case"-":case"+":if(DA()==="-")ZD=-1;NQ="sign";return;case".":IQ=DA(),NQ="decimalPointLeading";return;case"0":IQ=DA(),NQ="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":IQ=DA(),NQ="decimalInteger";return;case"I":return DA(),U1("nfinity"),$B("numeric",1/0);case"N":return DA(),U1("aN"),$B("numeric",NaN);case'"':case"'":v9=DA()==='"',IQ="",NQ="string";return}throw KB(DA())},identifierNameStartEscape(){if(HQ!=="u")throw KB(DA());DA();let A=fL();switch(A){case"$":case"_":break;default:if(!LE.isIdStartChar(A))throw I_();break}IQ+=A,NQ="identifierName"},identifierName(){switch(HQ){case"$":case"_":case"‌":case"‍":IQ+=DA();return;case"\\":DA(),NQ="identifierNameEscape";return}if(LE.isIdContinueChar(HQ)){IQ+=DA();return}return $B("identifier",IQ)},identifierNameEscape(){if(HQ!=="u")throw KB(DA());DA();let A=fL();switch(A){case"$":case"_":case"‌":case"‍":break;default:if(!LE.isIdContinueChar(A))throw I_();break}IQ+=A,NQ="identifierName"},sign(){switch(HQ){case".":IQ=DA(),NQ="decimalPointLeading";return;case"0":IQ=DA(),NQ="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":IQ=DA(),NQ="decimalInteger";return;case"I":return DA(),U1("nfinity"),$B("numeric",ZD*(1/0));case"N":return DA(),U1("aN"),$B("numeric",NaN)}throw KB(DA())},zero(){switch(HQ){case".":IQ+=DA(),NQ="decimalPoint";return;case"e":case"E":IQ+=DA(),NQ="decimalExponent";return;case"x":case"X":IQ+=DA(),NQ="hexadecimal";return}return $B("numeric",ZD*0)},decimalInteger(){switch(HQ){case".":IQ+=DA(),NQ="decimalPoint";return;case"e":case"E":IQ+=DA(),NQ="decimalExponent";return}if(LE.isDigit(HQ)){IQ+=DA();return}return $B("numeric",ZD*Number(IQ))},decimalPointLeading(){if(LE.isDigit(HQ)){IQ+=DA(),NQ="decimalFraction";return}throw KB(DA())},decimalPoint(){switch(HQ){case"e":case"E":IQ+=DA(),NQ="decimalExponent";return}if(LE.isDigit(HQ)){IQ+=DA(),NQ="decimalFraction";return}return $B("numeric",ZD*Number(IQ))},decimalFraction(){switch(HQ){case"e":case"E":IQ+=DA(),NQ="decimalExponent";return}if(LE.isDigit(HQ)){IQ+=DA();return}return $B("numeric",ZD*Number(IQ))},decimalExponent(){switch(HQ){case"+":case"-":IQ+=DA(),NQ="decimalExponentSign";return}if(LE.isDigit(HQ)){IQ+=DA(),NQ="decimalExponentInteger";return}throw KB(DA())},decimalExponentSign(){if(LE.isDigit(HQ)){IQ+=DA(),NQ="decimalExponentInteger";return}throw KB(DA())},decimalExponentInteger(){if(LE.isDigit(HQ)){IQ+=DA();return}return $B("numeric",ZD*Number(IQ))},hexadecimal(){if(LE.isHexDigit(HQ)){IQ+=DA(),NQ="hexadecimalInteger";return}throw KB(DA())},hexadecimalInteger(){if(LE.isHexDigit(HQ)){IQ+=DA();return}return $B("numeric",ZD*Number(IQ))},string(){switch(HQ){case"\\":DA(),IQ+=S8A();return;case'"':if(v9)return DA(),$B("string",IQ);IQ+=DA();return;case"'":if(!v9)return DA(),$B("string",IQ);IQ+=DA();return;case`
`:case"\r":throw KB(DA());case"\u2028":case"\u2029":v8A(HQ);break;case void 0:throw KB(DA())}IQ+=DA()},start(){switch(HQ){case"{":case"[":return $B("punctuator",DA())}NQ="value"},beforePropertyName(){switch(HQ){case"$":case"_":IQ=DA(),NQ="identifierName";return;case"\\":DA(),NQ="identifierNameStartEscape";return;case"}":return $B("punctuator",DA());case'"':case"'":v9=DA()==='"',NQ="string";return}if(LE.isIdStartChar(HQ)){IQ+=DA(),NQ="identifierName";return}throw KB(DA())},afterPropertyName(){if(HQ===":")return $B("punctuator",DA());throw KB(DA())},beforePropertyValue(){NQ="value"},afterPropertyValue(){switch(HQ){case",":case"}":return $B("punctuator",DA())}throw KB(DA())},beforeArrayValue(){if(HQ==="]")return $B("punctuator",DA());NQ="value"},afterArrayValue(){switch(HQ){case",":case"]":return $B("punctuator",DA())}throw KB(DA())},end(){throw KB(DA())}};function $B(A,Q){return{type:A,value:Q,line:oD,column:A0}}function U1(A){for(let Q of A){if(XD()!==Q)throw KB(DA());DA()}}function S8A(){switch(XD()){case"b":return DA(),"\b";case"f":return DA(),"\f";case"n":return DA(),`
`;case"r":return DA(),"\r";case"t":return DA(),"\t";case"v":return DA(),"\v";case"0":if(DA(),LE.isDigit(XD()))throw KB(DA());return"\x00";case"x":return DA(),y8A();case"u":return DA(),fL();case`
`:case"\u2028":case"\u2029":return DA(),"";case"\r":if(DA(),XD()===`
`)DA();return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw KB(DA());case void 0:throw KB(DA())}return DA()}function y8A(){let A="",Q=XD();if(!LE.isHexDigit(Q))throw KB(DA());if(A+=DA(),Q=XD(),!LE.isHexDigit(Q))throw KB(DA());return A+=DA(),String.fromCodePoint(parseInt(A,16))}function fL(){let A="",Q=4;while(Q-- >0){let B=XD();if(!LE.isHexDigit(B))throw KB(DA());A+=DA()}return String.fromCodePoint(parseInt(A,16))}var _8A={start(){if(VE.type==="eof")throw Z1();jL()},beforePropertyName(){switch(VE.type){case"identifier":case"string":xL=VE.value,NI="afterPropertyName";return;case"punctuator":e4();return;case"eof":throw Z1()}},afterPropertyName(){if(VE.type==="eof")throw Z1();NI="beforePropertyValue"},beforePropertyValue(){if(VE.type==="eof")throw Z1();jL()},beforeArrayValue(){if(VE.type==="eof")throw Z1();if(VE.type==="punctuator"&&VE.value==="]"){e4();return}jL()},afterPropertyValue(){if(VE.type==="eof")throw Z1();switch(VE.value){case",":NI="beforePropertyName";return;case"}":e4()}},afterArrayValue(){if(VE.type==="eof")throw Z1();switch(VE.value){case",":NI="beforeArrayValue";return;case"]":e4()}},end(){}};function jL(){let A;switch(VE.type){case"punctuator":switch(VE.value){case"{":A={};break;case"[":A=[];break}break;case"null":case"boolean":case"numeric":case"string":A=VE.value;break}if(b9===void 0)b9=A;else{let Q=WD[WD.length-1];if(Array.isArray(Q))Q.push(A);else Object.defineProperty(Q,xL,{value:A,writable:!0,enumerable:!0,configurable:!0})}if(A!==null&&typeof A==="object")if(WD.push(A),Array.isArray(A))NI="beforeArrayValue";else NI="beforePropertyName";else{let Q=WD[WD.length-1];if(Q==null)NI="end";else if(Array.isArray(Q))NI="afterArrayValue";else NI="afterPropertyValue"}}function e4(){WD.pop();let A=WD[WD.length-1];if(A==null)NI="end";else if(Array.isArray(A))NI="afterArrayValue";else NI="afterPropertyValue"}function KB(A){if(A===void 0)return Q2(`JSON5: invalid end of input at ${oD}:${A0}`);return Q2(`JSON5: invalid character '${D_(A)}' at ${oD}:${A0}`)}function Z1(){return Q2(`JSON5: invalid end of input at ${oD}:${A0}`)}function I_(){return A0-=5,Q2(`JSON5: invalid identifier character at ${oD}:${A0}`)}function v8A(A){console.warn(`JSON5: '${D_(A)}' in strings is not valid ECMAScript; consider escaping`)}function D_(A){let Q={"'":"\\'",'"':"\\\"","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(Q[A])return Q[A];if(A<" "){let B=A.charCodeAt(0).toString(16);return"\\x"+("00"+B).substring(B.length)}return A}function Q2(A){let Q=SyntaxError(A);return Q.lineNumber=oD,Q.columnNumber=A0,Q}});var G_=K((y_A,J_)=>{var hL=qL();J_.exports=function(Q,B,E){let I=[],C="",D,F,Y="",J;if(B!=null&&typeof B==="object"&&!Array.isArray(B))E=B.space,J=B.quote,B=B.replacer;if(typeof B==="function")F=B;else if(Array.isArray(B)){D=[];for(let $ of B){let V;if(typeof $==="string")V=$;else if(typeof $==="number"||$ instanceof String||$ instanceof Number)V=String($);if(V!==void 0&&D.indexOf(V)<0)D.push(V)}}if(E instanceof Number)E=Number(E);else if(E instanceof String)E=String(E);if(typeof E==="number"){if(E>0)E=Math.min(10,Math.floor(E)),Y=" ".substr(0,E)}else if(typeof E==="string")Y=E.substr(0,10);return G("",{"":Q});function G($,V){let w=V[$];if(w!=null){if(typeof w.toJSON5==="function")w=w.toJSON5($);else if(typeof w.toJSON==="function")w=w.toJSON($)}if(F)w=F.call(V,$,w);if(w instanceof Number)w=Number(w);else if(w instanceof String)w=String(w);else if(w instanceof Boolean)w=w.valueOf();switch(w){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof w==="string")return N(w,!1);if(typeof w==="number")return String(w);if(typeof w==="object")return Array.isArray(w)?X(w):U(w);return}function N($){let V={"'":0.1,'"':0.2},w={"'":"\\'",'"':"\\\"","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},g="";for(let k=0;k<$.length;k++){let d=$[k];switch(d){case"'":case'"':V[d]++,g+=d;continue;case"\x00":if(hL.isDigit($[k+1])){g+="\\x00";continue}}if(w[d]){g+=w[d];continue}if(d<" "){let t=d.charCodeAt(0).toString(16);g+="\\x"+("00"+t).substring(t.length);continue}g+=d}let M=J||Object.keys(V).reduce((k,d)=>V[k]<V[d]?k:d);return g=g.replace(new RegExp(M,"g"),w[M]),M+g+M}function U($){if(I.indexOf($)>=0)throw TypeError("Converting circular structure to JSON5");I.push($);let V=C;C=C+Y;let w=D||Object.keys($),g=[];for(let k of w){let d=G(k,$);if(d!==void 0){let t=Z(k)+":";if(Y!=="")t+=" ";t+=d,g.push(t)}}let M;if(g.length===0)M="{}";else{let k;if(Y==="")k=g.join(","),M="{"+k+"}";else{let d=`,
`+C;k=g.join(d),M=`{
`+C+k+`,
`+V+"}"}}return I.pop(),C=V,M}function Z($){if($.length===0)return N($,!0);let V=String.fromCodePoint($.codePointAt(0));if(!hL.isIdStartChar(V))return N($,!0);for(let w=V.length;w<$.length;w++)if(!hL.isIdContinueChar(String.fromCodePoint($.codePointAt(w))))return N($,!0);return $}function X($){if(I.indexOf($)>=0)throw TypeError("Converting circular structure to JSON5");I.push($);let V=C;C=C+Y;let w=[];for(let M=0;M<$.length;M++){let k=G(String(M),$);w.push(k!==void 0?k:"null")}let g;if(w.length===0)g="[]";else if(Y==="")g="["+w.join(",")+"]";else{let M=`,
`+C,k=w.join(M);g=`[
`+C+k+`,
`+V+"]"}return I.pop(),C=V,g}}});var U_=K((__A,N_)=>{var b8A=Y_(),u8A=G_(),m8A={parse:b8A,stringify:u8A};N_.exports=m8A});var W_=K((u9)=>{Object.defineProperty(u9,"__esModule",{value:!0});u9.EmptyJsonFileError=void 0;class SL extends Error{cause;code;fileName;isJsonFileError;constructor(A,Q,B,E){let I=A;if(E)I+=`
${Q?"├":"└"}─ File: ${E}`;if(Q)I+=`
└─ Cause: ${Q.name}: ${Q.message}`;super(I);this.name=this.constructor.name,this.cause=Q,this.code=B,this.fileName=E,this.isJsonFileError=!0}}u9.default=SL;class Z_ extends SL{constructor(A){super("Cannot parse an empty JSON string",void 0,"EJSONEMPTY",A)}}u9.EmptyJsonFileError=Z_});var $_=K((q0)=>{var d8A=q0&&q0.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),c8A=q0&&q0.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),l8A=q0&&q0.__importStar||function(){var A=function(Q){return A=Object.getOwnPropertyNames||function(B){var E=[];for(var I in B)if(Object.prototype.hasOwnProperty.call(B,I))E[E.length]=I;return E},A(Q)};return function(Q){if(Q&&Q.__esModule)return Q;var B={};if(Q!=null){for(var E=A(Q),I=0;I<E.length;I++)if(E[I]!=="default")d8A(B,Q,E[I])}return c8A(B,Q),B}}();Object.defineProperty(q0,"__esModule",{value:!0});q0.writeFileAtomicSync=i8A;q0.writeFileAtomic=n8A;var p8A=require("node:crypto"),B2=l8A(require("node:fs"));function X_(A,Q){let B=(0,p8A.createHash)("sha256").update(Q).digest("base64url");return`${A}.${B}`}function i8A(A,Q){let B=X_(A,Q);B2.writeFileSync(B,Q),B2.renameSync(B,A)}async function n8A(A,Q){let B=X_(A,Q);await B2.promises.writeFile(B,Q),await B2.promises.rename(B,A)}});var k_=K((Q0)=>{var a8A=Q0&&Q0.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),s8A=Q0&&Q0.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),o8A=Q0&&Q0.__importStar||function(){var A=function(Q){return A=Object.getOwnPropertyNames||function(B){var E=[];for(var I in B)if(Object.prototype.hasOwnProperty.call(B,I))E[E.length]=I;return E},A(Q)};return function(Q){if(Q&&Q.__esModule)return Q;var B={};if(Q!=null){for(var E=A(Q),I=0;I<E.length;I++)if(E[I]!=="default")a8A(B,Q,E[I])}return s8A(B,Q),B}}(),vL=Q0&&Q0.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(Q0,"__esModule",{value:!0});var r8A=Q_(),bL=vL(U_()),I2=vL(require("node:fs")),O_=vL(require("node:path")),rD=o8A(W_()),q_=$_(),t8A={badJsonDefault:void 0,jsonParseErrorDefault:void 0,cantReadFileDefault:void 0,ensureDir:!1,default:void 0,json5:!1,space:2,addNewLineAtEOF:!0};class j_{file;options;static read=X1;static readAsync=$1;static parseJsonString=E2;static write=ZJ;static writeAsync=WJ;static get=K_;static getAsync=L_;static set=V_;static setAsync=z_;static merge=w_;static mergeAsync=H_;static deleteKey=R_;static deleteKeyAsync=M_;static deleteKeys=_L;static deleteKeysAsync=yL;static rewrite=T_;static rewriteAsync=g_;constructor(A,Q={}){this.file=A,this.options=Q}read(A){return X1(this.file,this._getOptions(A))}async readAsync(A){return $1(this.file,this._getOptions(A))}write(A,Q){return ZJ(this.file,A,this._getOptions(Q))}async writeAsync(A,Q){return WJ(this.file,A,this._getOptions(Q))}parseJsonString(A,Q){return E2(A,Q)}get(A,Q,B){return K_(this.file,A,Q,this._getOptions(B))}async getAsync(A,Q,B){return L_(this.file,A,Q,this._getOptions(B))}set(A,Q,B){return V_(this.file,A,Q,this._getOptions(B))}async setAsync(A,Q,B){return z_(this.file,A,Q,this._getOptions(B))}async merge(A,Q){return w_(this.file,A,this._getOptions(Q))}async mergeAsync(A,Q){return H_(this.file,A,this._getOptions(Q))}deleteKey(A,Q){return R_(this.file,A,this._getOptions(Q))}async deleteKeyAsync(A,Q){return M_(this.file,A,this._getOptions(Q))}deleteKeys(A,Q){return _L(this.file,A,this._getOptions(Q))}async deleteKeysAsync(A,Q){return yL(this.file,A,this._getOptions(Q))}rewrite(A){return T_(this.file,this._getOptions(A))}async rewriteAsync(A){return g_(this.file,this._getOptions(A))}_getOptions(A){return{...this.options,...A}}}Q0.default=j_;function X1(A,Q){let B;try{B=I2.default.readFileSync(A,"utf8")}catch(E){uL(B,A);let I=P_(Q);if(I===void 0)throw new rD.default(`Can't read JSON file: ${A}`,E,E.code,A);else return I}return E2(B,Q,A)}async function $1(A,Q){let B;try{B=await I2.default.promises.readFile(A,"utf8")}catch(E){uL(B,A);let I=P_(Q);if(I===void 0)throw new rD.default(`Can't read JSON file: ${A}`,E,E.code);else return I}return E2(B,Q)}function E2(A,Q,B){uL(A,B);try{if(W1(Q,"json5"))return bL.default.parse(A);else return JSON.parse(A)}catch(E){let I=e8A(Q);if(I===void 0){let C=A4A(E,A);if(C){let D=(0,r8A.codeFrameColumns)(A,{start:C});E.codeFrame=D,E.message+=`
${D}`}throw new rD.default(`Error parsing JSON: ${A}`,E,"EJSONPARSE",B)}else return I}}function K_(A,Q,B,E){let I=X1(A,E);if(Q in I)return I[Q];if(B===void 0)throw new rD.default(`No value at key path "${String(Q)}" in JSON object from: ${A}`);return B}async function L_(A,Q,B,E){let I=await $1(A,E);if(Q in I)return I[Q];if(B===void 0)throw new rD.default(`No value at key path "${String(Q)}" in JSON object from: ${A}`);return B}function ZJ(A,Q,B){if(B?.ensureDir)I2.default.mkdirSync(O_.default.dirname(A),{recursive:!0});let E=W1(B,"space"),I=W1(B,"json5"),C=W1(B,"addNewLineAtEOF"),D;try{if(I)D=bL.default.stringify(Q,null,E);else D=JSON.stringify(Q,null,E)}catch(Y){throw new rD.default(`Couldn't JSON.stringify object for file: ${A}`,Y)}let F=C?`${D}
`:D;return(0,q_.writeFileAtomicSync)(A,F),Q}async function WJ(A,Q,B){if(B?.ensureDir)await I2.default.promises.mkdir(O_.default.dirname(A),{recursive:!0});let E=W1(B,"space"),I=W1(B,"json5"),C=W1(B,"addNewLineAtEOF"),D;try{if(I)D=bL.default.stringify(Q,null,E);else D=JSON.stringify(Q,null,E)}catch(Y){throw new rD.default(`Couldn't JSON.stringify object for file: ${A}`,Y)}let F=C?`${D}
`:D;return await(0,q_.writeFileAtomic)(A,F),Q}function V_(A,Q,B,E){let I=X1(A,E);return ZJ(A,{...I,[Q]:B},E)}async function z_(A,Q,B,E){let I=await $1(A,E);return WJ(A,{...I,[Q]:B},E)}async function H_(A,Q,B){let E=await $1(A,B);if(Array.isArray(Q))Object.assign(E,...Q);else Object.assign(E,Q);return WJ(A,E,B)}function w_(A,Q,B){let E=X1(A,B);if(Array.isArray(Q))Object.assign(E,...Q);else Object.assign(E,Q);return ZJ(A,E,B)}async function M_(A,Q,B){return yL(A,[Q],B)}function R_(A,Q,B){return _L(A,[Q],B)}async function yL(A,Q,B){let E=await $1(A,B),I=!1;for(let C=0;C<Q.length;C++){let D=Q[C];if(E.hasOwnProperty(D))delete E[D],I=!0}if(I)return WJ(A,E,B);return E}function _L(A,Q,B){let E=X1(A,B),I=!1;for(let C=0;C<Q.length;C++){let D=Q[C];if(E.hasOwnProperty(D))delete E[D],I=!0}if(I)return ZJ(A,E,B);return E}async function g_(A,Q){let B=await $1(A,Q);return WJ(A,B,Q)}function T_(A,Q){return ZJ(A,X1(A,Q),Q)}function e8A(A={}){if(A.jsonParseErrorDefault===void 0)return A.default;else return A.jsonParseErrorDefault}function P_(A={}){if(A.cantReadFileDefault===void 0)return A.default;else return A.cantReadFileDefault}function W1(A,Q){if(A){if(A[Q]!==void 0)return A[Q]}return t8A[Q]}function A4A(A,Q){if("lineNumber"in A&&"columnNumber"in A)return{line:A.lineNumber,column:A.columnNumber};let B=/at position (\d+)/.exec(A.message);if(B){let E=parseInt(B[1],10),I=Q.slice(0,E+1).split(`
`);return{line:I.length,column:I[I.length-1].length}}return null}function uL(A,Q){if(A?.trim()==="")throw new rD.EmptyJsonFileError(Q)}});var y_=K((D2)=>{Object.defineProperty(D2,"__esModule",{value:!0});D2.LRUCache=void 0;var XJ=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,x_=new Set,mL=typeof process==="object"&&!!process?process:{},h_=(A,Q,B,E)=>{typeof mL.emitWarning==="function"?mL.emitWarning(A,Q,B,E):console.error(`[${B}] ${Q}: ${A}`)},C2=globalThis.AbortController,f_=globalThis.AbortSignal;if(typeof C2>"u"){f_=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(E,I){this._onabort.push(I)}},C2=class{constructor(){Q()}signal=new f_;abort(E){if(this.signal.aborted)return;this.signal.reason=E,this.signal.aborted=!0;for(let I of this.signal._onabort)I(E);this.signal.onabort?.(E)}};let A=mL.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",Q=()=>{if(!A)return;A=!1,h_("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",Q)}}var Q4A=(A)=>!x_.has(A),m_A=Symbol("type"),tD=(A)=>A&&A===Math.floor(A)&&A>0&&isFinite(A),S_=(A)=>!tD(A)?null:A<=Math.pow(2,8)?Uint8Array:A<=Math.pow(2,16)?Uint16Array:A<=Math.pow(2,32)?Uint32Array:A<=Number.MAX_SAFE_INTEGER?m9:null;class m9 extends Array{constructor(A){super(A);this.fill(0)}}class $J{heap;length;static#A=!1;static create(A){let Q=S_(A);if(!Q)return[];$J.#A=!0;let B=new $J(A,Q);return $J.#A=!1,B}constructor(A,Q){if(!$J.#A)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new Q(A),this.length=0}push(A){this.heap[this.length++]=A}pop(){return this.heap[--this.length]}}class dL{#A;#I;#Q;#B;#K;#k;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#Y;#L;#F;#D;#E;#U;#W;#N;#J;#V;#G;#z;#H;#X;#w;#O;#Z;static unsafeExposeInternals(A){return{starts:A.#H,ttls:A.#X,sizes:A.#z,keyMap:A.#F,keyList:A.#D,valList:A.#E,next:A.#U,prev:A.#W,get head(){return A.#N},get tail(){return A.#J},free:A.#V,isBackgroundFetch:(Q)=>A.#C(Q),backgroundFetch:(Q,B,E,I)=>A.#h(Q,B,E,I),moveToTail:(Q)=>A.#P(Q),indexes:(Q)=>A.#M(Q),rindexes:(Q)=>A.#R(Q),isStale:(Q)=>A.#$(Q)}}get max(){return this.#A}get maxSize(){return this.#I}get calculatedSize(){return this.#L}get size(){return this.#Y}get fetchMethod(){return this.#K}get memoMethod(){return this.#k}get dispose(){return this.#Q}get disposeAfter(){return this.#B}constructor(A){let{max:Q=0,ttl:B,ttlResolution:E=1,ttlAutopurge:I,updateAgeOnGet:C,updateAgeOnHas:D,allowStale:F,dispose:Y,disposeAfter:J,noDisposeOnSet:G,noUpdateTTL:N,maxSize:U=0,maxEntrySize:Z=0,sizeCalculation:X,fetchMethod:$,memoMethod:V,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:g,allowStaleOnFetchRejection:M,allowStaleOnFetchAbort:k,ignoreFetchAbort:d}=A;if(Q!==0&&!tD(Q))throw TypeError("max option must be a nonnegative integer");let t=Q?S_(Q):Array;if(!t)throw Error("invalid max value: "+Q);if(this.#A=Q,this.#I=U,this.maxEntrySize=Z||this.#I,this.sizeCalculation=X,this.sizeCalculation){if(!this.#I&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!=="function")throw TypeError("sizeCalculation set to non-function")}if(V!==void 0&&typeof V!=="function")throw TypeError("memoMethod must be a function if defined");if(this.#k=V,$!==void 0&&typeof $!=="function")throw TypeError("fetchMethod must be a function if specified");if(this.#K=$,this.#O=!!$,this.#F=new Map,this.#D=Array(Q).fill(void 0),this.#E=Array(Q).fill(void 0),this.#U=new t(Q),this.#W=new t(Q),this.#N=0,this.#J=0,this.#V=$J.create(Q),this.#Y=0,this.#L=0,typeof Y==="function")this.#Q=Y;if(typeof J==="function")this.#B=J,this.#G=[];else this.#B=void 0,this.#G=void 0;if(this.#w=!!this.#Q,this.#Z=!!this.#B,this.noDisposeOnSet=!!G,this.noUpdateTTL=!!N,this.noDeleteOnFetchRejection=!!w,this.allowStaleOnFetchRejection=!!M,this.allowStaleOnFetchAbort=!!k,this.ignoreFetchAbort=!!d,this.maxEntrySize!==0){if(this.#I!==0){if(!tD(this.#I))throw TypeError("maxSize must be a positive integer if specified")}if(!tD(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#m()}if(this.allowStale=!!F,this.noDeleteOnStaleGet=!!g,this.updateAgeOnGet=!!C,this.updateAgeOnHas=!!D,this.ttlResolution=tD(E)||E===0?E:1,this.ttlAutopurge=!!I,this.ttl=B||0,this.ttl){if(!tD(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#S()}if(this.#A===0&&this.ttl===0&&this.#I===0)t Line truncated
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},5873:(I,C,D)=>{let F=D(6330),Y=D(8750),J=D(5207),G=(U="",Z="",X=!1)=>{let $=[];if(U=[].concat(U),Z=[].concat(Z),!Z.length)return U;if(!U.length)return X?J.flatten(Z).map((V)=>`{${V}}`):Z;for(let V of U)if(Array.isArray(V))for(let w of V)$.push(G(w,Z,X));else for(let w of Z){if(X===!0&&typeof w==="string")w=`{${w}}`;$.push(Array.isArray(w)?G(V,w,X):V+w)}return J.flatten($)},N=(U,Z={})=>{let X=Z.rangeLimit===void 0?1000:Z.rangeLimit,$=(V,w={})=>{V.queue=[];let g=w,M=w.queue;while(g.type!=="brace"&&g.type!=="root"&&g.parent)g=g.parent,M=g.queue;if(V.invalid||V.dollar){M.push(G(M.pop(),Y(V,Z)));return}if(V.type==="brace"&&V.invalid!==!0&&V.nodes.length===2){M.push(G(M.pop(),["{}"]));return}if(V.nodes&&V.ranges>0){let m=J.reduce(V.nodes);if(J.exceedsLimit(...m,Z.step,X))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let n=F(...m,Z);if(n.length===0)n=Y(V,Z);M.push(G(M.pop(),n)),V.nodes=[];return}let k=J.encloseBrace(V),d=V.queue,t=V;while(t.type!=="brace"&&t.type!=="root"&&t.parent)t=t.parent,d=t.queue;for(let m=0;m<V.nodes.length;m++){let n=V.nodes[m];if(n.type==="comma"&&V.type==="brace"){if(m===1)d.push("");d.push("");continue}if(n.type==="close"){M.push(G(M.pop(),d,k));continue}if(n.value&&n.type!=="open"){d.push(G(d.pop(),n.value));continue}if(n.nodes)$(n,V)}return d};return J.flatten($(U))};I.exports=N},6477:(I,C,D)=>{let F=D(8750),{MAX_LENGTH:Y,CHAR_BACKSLASH:J,CHAR_BACKTICK:G,CHAR_COMMA:N,CHAR_DOT:U,CHAR_LEFT_PARENTHESES:Z,CHAR_RIGHT_PARENTHESES:X,CHAR_LEFT_CURLY_BRACE:$,CHAR_RIGHT_CURLY_BRACE:V,CHAR_LEFT_SQUARE_BRACKET:w,CHAR_RIGHT_SQUARE_BRACKET:g,CHAR_DOUBLE_QUOTE:M,CHAR_SINGLE_QUOTE:k,CHAR_NO_BREAK_SPACE:d,CHAR_ZERO_WIDTH_NOBREAK_SPACE:t}=D(8774),m=(n,QA={})=>{if(typeof n!=="string")throw TypeError("Expected a string");let x=QA||{},l=typeof x.maxLength==="number"?Math.min(Y,x.maxLength):Y;if(n.length>l)throw SyntaxError(`Input length (${n.length}), exceeds max characters (${l})`);let u={type:"root",input:n,nodes:[]},CA=[u],i=u,KA=u,HA=0,uA=n.length,cA=0,yA=0,JA,PA=()=>n[cA++],dA=(IA)=>{if(IA.type==="text"&&KA.type==="dot")KA.type="text";if(KA&&KA.type==="text"&&IA.type==="text"){KA.value+=IA.value;return}return i.nodes.push(IA),IA.parent=i,IA.prev=KA,KA=IA,IA};dA({type:"bos"});while(cA<uA){if(i=CA[CA.length-1],JA=PA(),JA===t||JA===d)continue;if(JA===J){dA({type:"text",value:(QA.keepEscaping?JA:"")+PA()});continue}if(JA===g){dA({type:"text",value:"\\"+JA});continue}if(JA===w){HA++;let IA;while(cA<uA&&(IA=PA())){if(JA+=IA,IA===w){HA++;continue}if(IA===J){JA+=PA();continue}if(IA===g){if(HA--,HA===0)break}}dA({type:"text",value:JA});continue}if(JA===Z){i=dA({type:"paren",nodes:[]}),CA.push(i),dA({type:"text",value:JA});continue}if(JA===X){if(i.type!=="paren"){dA({type:"text",value:JA});continue}i=CA.pop(),dA({type:"text",value:JA}),i=CA[CA.length-1];continue}if(JA===M||JA===k||JA===G){let IA=JA,kA;if(QA.keepQuotes!==!0)JA="";while(cA<uA&&(kA=PA())){if(kA===J){JA+=kA+PA();continue}if(kA===IA){if(QA.keepQuotes===!0)JA+=kA;break}JA+=kA}dA({type:"text",value:JA});continue}if(JA===$){yA++;let kA={type:"brace",open:!0,close:!1,dollar:KA.value&&KA.value.slice(-1)==="$"||i.dollar===!0,depth:yA,commas:0,ranges:0,nodes:[]};i=dA(kA),CA.push(i),dA({type:"open",value:JA});continue}if(JA===V){if(i.type!=="brace"){dA({type:"text",value:JA});continue}let IA="close";i=CA.pop(),i.close=!0,dA({type:IA,value:JA}),yA--,i=CA[CA.length-1];continue}if(JA===N&&yA>0){if(i.ranges>0){i.ranges=0;let IA=i.nodes.shift();i.nodes=[IA,{type:"text",value:F(i)}]}dA({type:"comma",value:JA}),i.commas++;continue}if(JA===U&&yA>0&&i.commas===0){let IA=i.nodes;if(yA===0||IA.length===0){dA({type:"text",value:JA});continue}if(KA.type==="dot"){if(i.range=[],KA.value+=JA,KA.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,KA.type="text";continue}i.ranges++,i.args=[];continue}if(KA.type==="range"){IA.pop();let kA=IA[IA.length-1];kA.value+=KA.value+JA,KA=kA,i.ranges--;continue}dA({type:"dot",value:JA});continue}dA({type:"text",value:JA})}do if(i=CA.pop(),i.type!=="root"){i.nodes.forEach((DQ)=>{if(!DQ.nodes){if(DQ.type==="open")DQ.isOpen=!0;if(DQ.type==="close")DQ.isClose=!0;if(!DQ.nodes)DQ.type="text";DQ.invalid=!0}});let IA=CA[CA.length-1],kA=IA.nodes.indexOf(i);IA.nodes.splice(kA,1,...i.nodes)}while(CA.length>0);return dA({type:"eos"}),u};I.exports=m},8750:(I,C,D)=>{let F=D(5207);I.exports=(Y,J={})=>{let G=(N,U={})=>{let Z=J.escapeInvalid&&F.isInvalidBrace(U),X=N.invalid===!0&&J.escapeInvalid===!0,$="";if(N.value){if((Z||X)&&F.isOpenOrClose(N))return"\\"+N.value;return N.value}if(N.value)return N.value;if(N.nodes)for(let V of N.nodes)$Line truncated
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*/let F=D(3837),Y=D(1861),J=(x)=>x!==null&&typeof x==="object"&&!Array.isArray(x),G=(x)=>(l)=>x===!0?Number(l):String(l),N=(x)=>typeof x==="number"||typeof x==="string"&&x!=="",U=(x)=>Number.isInteger(+x),Z=(x)=>{let l=`${x}`,u=-1;if(l[0]==="-")l=l.slice(1);if(l==="0")return!1;while(l[++u]==="0");return u>0},X=(x,l,u)=>{if(typeof x==="string"||typeof l==="string")return!0;return u.stringify===!0},$=(x,l,u)=>{if(l>0){let CA=x[0]==="-"?"-":"";if(CA)x=x.slice(1);x=CA+x.padStart(CA?l-1:l,"0")}if(u===!1)return String(x);return x},V=(x,l)=>{let u=x[0]==="-"?"-":"";if(u)x=x.slice(1),l--;while(x.length<l)x="0"+x;return u?"-"+x:x},w=(x,l,u)=>{x.negatives.sort((uA,cA)=>uA<cA?-1:uA>cA?1:0),x.positives.sort((uA,cA)=>uA<cA?-1:uA>cA?1:0);let CA=l.capture?"":"?:",i="",KA="",HA;if(x.positives.length)i=x.positives.map((uA)=>V(String(uA),u)).join("|");if(x.negatives.length)KA=`-(${CA}${x.negatives.map((uA)=>V(String(uA),u)).join("|")})`;if(i&&KA)HA=`${i}|${KA}`;else HA=i||KA;if(l.wrap)return`(${CA}${HA})`;return HA},g=(x,l,u,CA)=>{if(u)return Y(x,l,{wrap:!1,...CA});let i=String.fromCharCode(x);if(x===l)return i;let KA=String.fromCharCode(l);return`[${i}-${KA}]`},M=(x,l,u)=>{if(Array.isArray(x)){let CA=u.wrap===!0,i=u.capture?"":"?:";return CA?`(${i}${x.join("|")})`:x.join("|")}return Y(x,l,u)},k=(...x)=>RangeError("Invalid range arguments: "+F.inspect(...x)),d=(x,l,u)=>{if(u.strictRanges===!0)throw k([x,l]);return[]},t=(x,l)=>{if(l.strictRanges===!0)throw TypeError(`Expected step "${x}" to be a number`);return[]},m=(x,l,u=1,CA={})=>{let i=Number(x),KA=Number(l);if(!Number.isInteger(i)||!Number.isInteger(KA)){if(CA.strictRanges===!0)throw k([x,l]);return[]}if(i===0)i=0;if(KA===0)KA=0;let HA=i>KA,uA=String(x),cA=String(l),yA=String(u);u=Math.max(Math.abs(u),1);let JA=Z(uA)||Z(cA)||Z(yA),PA=JA?Math.max(uA.length,cA.length,yA.length):0,dA=JA===!1&&X(x,l,CA)===!1,IA=CA.transform||G(dA);if(CA.toRegex&&u===1)return g(V(x,PA),V(l,PA),!0,CA);let kA={negatives:[],positives:[]},DQ=(BA)=>kA[BA<0?"negatives":"positives"].push(Math.abs(BA)),rQ=[],jQ=0;while(HA?i>=KA:i<=KA){if(CA.toRegex===!0&&u>1)DQ(i);else rQ.push($(IA(i,jQ),PA,dA));i=HA?i-u:i+u,jQ++}if(CA.toRegex===!0)return u>1?w(kA,CA,PA):M(rQ,null,{wrap:!1,...CA});return rQ},n=(x,l,u=1,CA={})=>{if(!U(x)&&x.length>1||!U(l)&&l.length>1)return d(x,l,CA);let i=CA.transform||((dA)=>String.fromCharCode(dA)),KA=`${x}`.charCodeAt(0),HA=`${l}`.charCodeAt(0),uA=KA>HA,cA=Math.min(KA,HA),yA=Math.max(KA,HA);if(CA.toRegex&&u===1)return g(cA,yA,!1,CA);let JA=[],PA=0;while(uA?KA>=HA:KA<=HA)JA.push(i(KA,PA)),KA=uA?KA-u:KA+u,PA++;if(CA.toRegex===!0)return M(JA,null,{wrap:!1,options:CA});return JA},QA=(x,l,u,CA={})=>{if(l==null&&N(x))return[x];if(!N(x)||!N(l))return d(x,l,CA);if(typeof u==="function")return QA(x,l,1,{transform:u});if(J(u))return QA(x,l,0,u);let i={...CA};if(i.capture===!0)i.wrap=!0;if(u=u||i.step||1,!U(u)){if(u!=null&&!J(u))return t(u,i);return QA(x,l,1,u)}if(U(x)&&U(l))return m(x,l,u,i);return n(x,l,Math.max(Math.abs(u),1),i)};I.exports=QA},5680:(I)=>{/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/I.exports=function(C){if(typeof C==="number")return C-C===0;if(typeof C==="string"&&C.trim()!=="")return Number.isFinite?Number.isFinite(+C):isFinite(+C);return!1}},1917:(I,C,D)=>{var F=D(1161),Y=D(8866);function J(G,N){return function(){throw Error("Function yaml."+G+" is removed in js-yaml 4. Use yaml."+N+" instead, which is now safe by default.")}}I.exports.Type=D(6073),I.exports.Schema=D(1082),I.exports.FAILSAFE_SCHEMA=D(8562),I.exports.JSON_SCHEMA=D(1035),I.exports.CORE_SCHEMA=D(2011),I.exports.DEFAULT_SCHEMA=D(8759),I.exports.load=F.load,I.exports.loadAll=F.loadAll,I.exports.dump=Y.dump,I.exports.YAMLException=D(8179),I.exports.types={binary:D(7900),float:D(2705),map:D(6150),null:D(721),pairs:D(6860),set:D(9548),timestamp:D(9212),bool:D(4993),int:D(1615),merge:D(6104),omap:D(9046),seq:D(7283),str:D(3619)},I.exports.safeLoad=J("safeLoad","load"),I.exports.safeLoadAll=J("safeLoadAll","loadAll"),I.exports.safeDump=J("safeDump","dump")},6829:(I)=>{function C(N){return typeof N>"u"||N===null}function D(N){return typeof N==="object"&&N!==null}function F(N){if(Array.isArray(N))return N;else if(C(N))return[];return[N]}function Y(N,U){var Z,X,$,V;if(U){V=Object.keys(U);for(Z=0,X=V.length;Z<X;Z+=1)$=V[Z],N[$]=U[$]}return N}function J(N,U){var Z="",X;for(X=0;X<U;X+=1)Z+=N;return Z}function G(N){return N===0&&Number.NEGATIVE_INFINITY===1/N}I.exports.isNothing=C,I.exports.isObject=D,I.exports.toArray=F,I.exports.repeat=J,I.exports.isNegativeZero=G,I.exports.extend=Y},8866:(I,C,D)=>{var F=D(6829),Y=D(8179),J=D(8759),G=Object.prototype.toString,N=Object.prototype.hasOwnProperty,U=65279,Z=9,X=10,$=13,V=32,w=33,g=34,M=35,k=37,d=38,t=39,m=42,n=44,QA=45,x=58,l=61,u=62,CA=63,i=64,KA=91,HA=93,uA=96,cA=123,yA=124,JA=125,PA={};PA[0]="\\0",PA[7]="\\a",PA[8]="\\b",PA[9]="\\t",PA[10]="\\n",PA[11]="\\v",PA[12]="\\f",PA[13]="\\r",PA[27]="\\e",PA[34]="\\\"",PA[92]="\\\\",PA[133]="\\N",PA[160]="\\_",PA[8232]="\\L",PA[8233]="\\P";var dA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],IA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function kA(z,q){var f,v,a,r,$A,ZA,VA;if(q===null)return{};f={},v=Object.keys(q);for(a=0,r=v.length;a<r;a+=1){if($A=v[a],ZA=String(q[$A]),$A.slice(0,2)==="!!")$A="tag:yaml.org,2002:"+$A.slice(2);if(VA=z.compiledTypeMap.fallback[$A],VA&&N.call(VA.styleAliases,ZA))ZA=VA.styleAliases[ZA];f[$A]=ZA}return f}function DQ(z){var q,f,v;if(q=z.toString(16).toUpperCase(),z<=255)f="x",v=2;else if(z<=65535)f="u",v=4;else if(z<=4294967295)f="U",v=8;else throw new Y("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+f+F.repeat("0",v-q.length)+q}var rQ=1,jQ=2;function BA(z){this.schema=z.schema||J,this.indent=Math.max(1,z.indent||2),this.noArrayIndent=z.noArrayIndent||!1,this.skipInvalid=z.skipInvalid||!1,this.flowLevel=F.isNothing(z.flowLevel)?-1:z.flowLevel,this.styleMap=kA(this.schema,z.styles||null),this.sortKeys=z.sortKeys||!1,this.lineWidth=z.lineWidth||80,this.noRefs=z.noRefs||!1,this.noCompatMode=z.noCompatMode||!1,this.condenseFlow=z.condenseFlow||!1,this.quotingType=z.quotingType==='"'?jQ:rQ,this.forceQuotes=z.forceQuotes||!1,this.replacer=typeof z.replacer==="function"?z.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function HB(z,q){var f=F.repeat(" ",q),v=0,a=-1,r="",$A,ZA=z.length;while(v<ZA){if(a=z.indexOf(`
`,v),a===-1)$A=z.slice(v),v=ZA;else $A=z.slice(v,a+1),v=a+1;if($A.length&&$A!==`
`)r+=f;r+=$A}return r}function WQ(z,q){return`
`+F.repeat(" ",z.indent*q)}function NB(z,q){var f,v,a;for(f=0,v=z.implicitTypes.length;f<v;f+=1)if(a=z.implicitTypes[f],a.resolve(q))return!0;return!1}function e(z){return z===V||z===Z}function EA(z){return 32<=z&&z<=126||161<=z&&z<=55295&&z!==8232&&z!==8233||57344<=z&&z<=65533&&z!==U||65536<=z&&z<=1114111}function BQ(z){return EA(z)&&z!==U&&z!==$&&z!==X}function tA(z,q,f){var v=BQ(z),a=v&&!e(z);return(f?v:v&&z!==n&&z!==KA&&z!==HA&&z!==cA&&z!==JA)&&z!==M&&!(q===x&&!a)||BQ(q)&&!e(q)&&z===M||q===x&&a}function iB(z){return EA(z)&&z!==U&&!e(z)&&z!==QA&&z!==CA&&z!==x&&z!==n&&z!==KA&&z!==HA&&z!==cA&&z!==JA&&z!==M&&z!==d&&z!==m&&z!==w&&z!==yA&&z!==l&&z!==u&&z!==t&&z!==g&&z!==k&&z!==i&&z!==uA}function AI(z){return!e(z)&&z!==x}function qQ(z,q){var f=z.charCodeAt(q),v;if(f>=55296&&f<=56319&&q+1<z.length){if(v=z.charCodeAt(q+1),v>=56320&&v<=57343)return(f-55296)*1024+v-56320+65536}return f}function sQ(z){var q=/^\n* /;return q.test(z)}var FC=1,YE=2,jB=3,_A=4,xQ=5;function J0(z,q,f,v,a,r,$A,ZA){var VA,SA=0,hQ=null,tQ=!1,IB=!1,TR=v!==-1,qN=-1,jN=iB(qQ(z,0))&&AI(qQ(z,z.length-1));if(q||$A)for(VA=0;VA<z.length;SA>=65536?VA+=2:VA++){if(SA=qQ(z,VA),!EA(SA))return xQ;jN=jN&&tA(SA,hQ,ZA),hQ=SA}else{for(VA=0;VA<z.length;SA>=65536?VA+=2:VA++){if(SA=qQ(z,VA),SA===X){if(tQ=!0,TR)IB=IB||VA-qN-1>v&&z[qN+1]!==" ",qN=VA}else if(!EA(SA))return xQ;jN=jN&&tA(SA,hQ,ZA),hQ=SA}IB=IB||TR&&(VA-qN-1>v&&z[qN+1]!==" ")}if(!tQ&&!IB){if(jN&&!$A&&!a(z))return FC;return r===jQ?xQ:YE}if(f>9&&sQ(z))return xQ;if(!$A)return IB?_A:jB;return r===jQ?xQ:YE}function wA(z,q,f,v,a){z.dump=function(){if(q.length===0)return z.quotingType===jQ?'""':"''";if(!z.noCompatMode){if(dA.indexOf(q)!==-1||IA.test(q))return z.quotingType===jQ?'"'+q+'"':"'"+q+"'"}var r=z.indent*Math.max(1,f),$A=z.lineWidth===-1?-1:Math.max(Math.min(z.lineWidth,40),z.lineWidth-r),ZA=v||z.flowLevel>-1&&f>=z.flowLevel;function VA(SA){return NB(z,SA)}switch(J0(q,ZA,z.indent,$A,VA,z.quotingType,z.forceQuotes&&!v,a)){case FC:return q;case YE:return"'"+q.replace(/'/g,"''")+"'";case jB:return"|"+VQ(q,z.indent)+W(HB(q,r));case _A:return">"+VQ(q,z.indent)+W(HB(b(q,$A),r));case xQ:return'"'+NA(q,$A)+'"';default:throw new Y("impossible error: invalid scalar style")}}()}function VQ(z,q){var f=sQ(z)?String(q):"",v=z[z.length-1]===`
`,a=v&&(z[z.length-2]===`
`||z===`
`),r=a?"+":v?"":"-";return f+r+`
`}function W(z){return z[z.length-1]===`
`?z.slice(0,-1):z}function b(z,q){var f=/(\n+)([^\n]*)/g,v=function(){var SA=z.indexOf(`
`);return SA=SA!==-1?SA:z.length,f.lastIndex=SA,p(z.slice(0,SA),q)}(),a=z[0]===`
`||z[0]===" ",r,$A;while($A=f.exec(z)){var ZA=$A[1],VA=$A[2];r=VA[0]===" ",v+=ZA+(!a&&!r&&VA!==""?`
`:"")+p(VA,q),a=r}return v}function p(z,q){if(z===""||z[0]===" ")return z;var f=/ [^ ]/g,v,a=0,r,$A=0,ZA=0,VA="";while(v=f.exec(z)){if(ZA=v.index,ZA-a>q)r=$A>a?$A:ZA,VA+=`
`+z.slice(a,r),a=r+1;$A=ZA}if(VA+=`
`,z.length-a>q&&$A>a)VA+=z.slice(a,$A)+`
`+z.slice($A+1);else VA+=z.slice(a);return VA.slice(1)}function NA(z){var q="",f=0,v;for(var a=0;a<z.length;f>=65536?a+=2:a++)if(f=qQ(z,a),v=PA[f],!v&&EA(f)){if(q+=z[a],f>=65536)q+=z[a+1]}else q+=v||DQ(f);return q}function AA(z,q,f){var v="",a=z.tag,r,$A,ZA;for(r=0,$A=f.length;r<$A;r+=1){if(ZA=f[r],z.replacer)ZA=z.replacer.call(f,String(r),ZA);if(j(z,q,ZA,!1,!1)||typeof ZA>"u"&&j(z,q,null,!1,!1)){if(v!=="")v+=","+(!z.condenseFlow?" ":"");v+=z.dump}}z.tag=a,z.dump="["+v+"]"}function LA(z,q,f,v){var a="",r=z.tag,$A,ZA,VA;for($A=0,ZA=f.length;$A<ZA;$A+=1){if(VA=f[$A],z.replacer)VA=z.replacer.call(f,String($A),VA);if(j(z,q+1,VA,!0,!0,!1,!0)||typeof VA>"u"&&j(z,q+1,null,!0,!0,!1,!0)){if(!v||a!=="")a+=WQ(z,q);if(z.dump&&X===z.dump.charCodeAt(0))a+="-";else a+="- ";a+=z.dump}}z.tag=r,z.dump=a||"[]"}function UA(z,q,f){var v="",a=z.tag,r=Object.keys(f),$A,ZA,VA,SA,hQ;for($A=0,ZA=r.length;$A<ZA;$A+=1){if(hQ="",v!=="")hQ+=", ";if(z.condenseFlow)hQ+='"';if(VA=r[$A],SA=f[VA],z.replacer)SA=z.replacer.call(f,VA,SA);if(!j(z,q,VA,!1,!1))continue;if(z.dump.length>1024)hQ+="? ";if(hQ+=z.dump+(z.condenseFlow?'"':"")+":"+(z.condenseFlow?"":" "),!j(z,q,SA,!1,!1))continue;hQ+=z.dump,v+=hQ}z.tag=a,z.dump="{"+v+"}"}function L(z,q,f,v){var a="",r=z.tag,$A=Object.keys(f),ZA,VA,SA,hQ,tQ,IB;if(z.sortKeys===!0)$A.sort();else if(typeof z.sortKeys==="function")$A.sort(z.sortKeys);else if(z.sortKeys)throw new Y("sortKeys must be a boolean or a function");for(ZA=0,VA=$A.length;ZA<VA;ZA+=1){if(IB="",!v||a!=="")IB+=WQ(z,q);if(SA=$A[ZA],hQ=f[SA],z.replacer)hQ=z.replacer.call(f,SA,hQ);if(!j(z,q+1,SA,!0,!0,!0))continue;if(tQ=z.tag!==null&&z.tag!=="?"||z.dump&&z.dump.length>1024,tQ)if(z.dump&&X===z.dump.charCodeAt(0))IB+="?";else IB+="? ";if(IB+=z.dump,tQ)IB+=WQ(z,q);if(!j(z,q+1,hQ,!0,tQ))continue;if(z.dump&&X===z.dump.charCodeAt(0))IB+=":";else IB+=": ";IB+=z.dump,a+=IB}z.tag=r,z.dump=a||"{}"}function H(z,q,f){var v,a,r,$A,ZA,VA;a=f?z.explicitTypes:z.implicitTypes;for(r=0,$A=a.length;r<$A;r+=1)if(ZA=a[r],(ZA.instanceOf||ZA.predicate)&&(!ZA.instanceOf||typeof q==="object"&&q instanceof ZA.instanceOf)&&(!ZA.predicate||ZA.predicate(q))){if(f)if(ZA.multi&&ZA.representName)z.tag=ZA.representName(q);else z.tag=ZA.tag;else z.tag="?";if(ZA.represent){if(VA=z.styleMap[ZA.tag]||ZA.defaultStyle,G.call(ZA.represent)==="[object Function]")v=ZA.represent(q,VA);else if(N.call(ZA.represent,VA))v=ZA.represent[VA](q,VA);else throw new Y("!<"+ZA.tag+'> tag resolver accepts not "'+VA+'" style');z.dump=v}return!0}return!1}function j(z,q,f,v,a,r,$A){if(z.tag=null,z.dump=f,!H(z,f,!1))H(z,f,!0);var ZA=G.call(z.dump),VA=v,SA;if(v)v=z.flowLevel<0||z.flowLevel>q;var hQ=ZA==="[object Object]"||ZA==="[object Array]",tQ,IB;if(hQ)tQ=z.duplicates.indexOf(f),IB=tQ!==-1;if(z.tag!==null&&z.tag!=="?"||IB||z.indent!==2&&q>0)a=!1;if(IB&&z.usedDuplicates[tQ])z.dump="*ref_"+tQ;else{if(hQ&&IB&&!z.usedDuplicates[tQ])z.usedDuplicates[tQ]=!0;if(ZA==="[object Object]"){if(v&&Object.keys(z.dump).length!==0){if(L(z,q,z.dump,a),IB)z.dump="&ref_"+tQ+z.dump}else if(UA(z,q,z.dump),IB)z.dump="&ref_"+tQ+" "+z.dump}else if(ZA==="[object Array]"){if(v&&z.dump.length!==0){if(z.noArrayIndent&&!$A&&q>0)LA(z,q-1,z.dump,a);else LA(z,q,z.dump,a);if(IB)z.dump="&ref_"+tQ+z.dump}else if(AA(z,q,z.dump),IB)z.dump="&ref_"+tQ+" "+z.dump}else if(ZA==="[object String]"){if(z.tag!=="?")wA(z,z.dump,q,r,VA)}else if(ZA==="[object Undefined]")return!1;else{if(z.skipInvalid)return!1;throw new Y("unacceptable kind of an object to dump "+ZA)}if(z.tag!==null&&z.tag!=="?"){if(SA=encodeURI(z.tag[0]==="!"?z.tag.slice(1):z.tag).replace(/!/g,"%21"),z.tag[0]==="!")SA="!"+SA;else if(SA.slice(0,18)==="tag:yaml.org,2002:")SA="!!"+SA.slice(18);else SA="!<"+SA+">";z.dump=SA+" "+z.dump}}return!0}function h(z,q){var f=[],v=[],a,r;P(z,f,v);for(a=0,r=v.length;a<r;a+=1)q.duplicates.push(f[v[a]]);q.usedDuplicates=Array(r)}function P(z,q,f){var v,a,r;if(z!==null&&typeof z==="object")if(a=q.indexOf(z),a!==-1){if(f.indexOf(a)===-1)f.push(a)}else if(q.push(z),Array.isArray(z))for(a=0,r=z.length;a<r;a+=1)P(z[a],q,f);else{v=Object.keys(z);for(a=0,r=v.length;a<r;a+=1)P(z[v[a]],q,f)}}function S(z,q){q=q||{};var f=new BA(q);if(!f.noRefs)h(z,f);var v=z;if(f.replacer)v=f.replacer.call({"":v},"",v);if(j(f,0,v,!0,!0))return f.dump+`
`;return""}I.exports.dump=S},8179:(I)=>{function C(F,Y){var J="",G=F.reason||"(unknown reason)";if(!F.mark)return G;if(F.mark.name)J+='in "'+F.mark.name+'" ';if(J+="("+(F.mark.line+1)+":"+(F.mark.column+1)+")",!Y&&F.mark.snippet)J+=`
`+F.mark.snippet;return G+" "+J}function D(F,Y){if(Error.call(this),this.name="YAMLException",this.reason=F,this.mark=Y,this.message=C(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D.prototype.toString=function(Y){return this.name+": "+C(this,Y)},I.exports=D},1161:(I,C,D)=>{var F=D(6829),Y=D(8179),J=D(6975),G=D(8759),N=Object.prototype.hasOwnProperty,U=1,Z=2,X=3,$=4,V=1,w=2,g=3,M=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,k=/[\x85\u2028\u2029]/,d=/[,\[\]\{\}]/,t=/^(?:!|!!|![a-z\-]+!)$/i,m=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function n(W){return Object.prototype.toString.call(W)}function QA(W){return W===10||W===13}function x(W){return W===9||W===32}function l(W){return W===9||W===32||W===10||W===13}function u(W){return W===44||W===91||W===93||W===123||W===125}function CA(W){var b;if(48<=W&&W<=57)return W-48;if(b=W|32,97<=b&&b<=102)return b-97+10;return-1}function i(W){if(W===120)return 2;if(W===117)return 4;if(W===85)return 8;return 0}function KA(W){if(48<=W&&W<=57)return W-48;return-1}function HA(W){return W===48?"\x00":W===97?"\x07":W===98?"\b":W===116?"\t":W===9?"\t":W===110?`
`:W===118?"\v":W===102?"\f":W===114?"\r":W===101?"\x1B":W===32?" ":W===34?'"':W===47?"/":W===92?"\\":W===78?"…":W===95?" ":W===76?"\u2028":W===80?"\u2029":""}function uA(W){if(W<=65535)return String.fromCharCode(W);return String.fromCharCode((W-65536>>10)+55296,(W-65536&1023)+56320)}var cA=Array(256),yA=Array(256);for(var JA=0;JA<256;JA++)cA[JA]=HA(JA)?1:0,yA[JA]=HA(JA);function PA(W,b){this.input=W,this.filename=b.filename||null,this.schema=b.schema||G,this.onWarning=b.onWarning||null,this.legacy=b.legacy||!1,this.json=b.json||!1,this.listener=b.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=W.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function dA(W,b){var p={name:W.filename,buffer:W.input.slice(0,-1),position:W.position,line:W.line,column:W.position-W.lineStart};return p.snippet=J(p),new Y(b,p)}function IA(W,b){throw dA(W,b)}function kA(W,b){if(W.onWarning)W.onWarning.call(null,dA(W,b))}var DQ={YAML:function(b,p,NA){var AA,LA,UA;if(b.version!==null)IA(b,"duplication of %YAML directive");if(NA.length!==1)IA(b,"YAML directive accepts exactly one argument");if(AA=/^([0-9]+)\.([0-9]+)$/.exec(NA[0]),AA===null)IA(b,"ill-formed argument of the YAML directive");if(LA=parseInt(AA[1],10),UA=parseInt(AA[2],10),LA!==1)IA(b,"unacceptable YAML version of the document");if(b.version=NA[0],b.checkLineBreaks=UA<2,UA!==1&&UA!==2)kA(b,"unsupported YAML version of the document")},TAG:function(b,p,NA){var AA,LA;if(NA.length!==2)IA(b,"TAG directive accepts exactly two arguments");if(AA=NA[0],LA=NA[1],!t.test(AA))IA(b,"ill-formed tag handle (first argument) of the TAG directive");if(N.call(b.tagMap,AA))IA(b,'there is a previously declared suffix for "'+AA+'" tag handle');if(!m.test(LA))IA(b,"ill-formed tag prefix (second argument) of the TAG directive");try{LA=decodeURIComponent(LA)}catch(UA){IA(b,"tag prefix is malformed: "+LA)}b.tagMap[AA]=LA}};function rQ(W,b,p,NA){var AA,LA,UA,L;if(b<p){if(L=W.input.slice(b,p),NA){for(AA=0,LA=L.length;AA<LA;AA+=1)if(UA=L.charCodeAt(AA),!(UA===9||32<=UA&&UA<=1114111))IA(W,"expected valid JSON character")}else if(M.test(L))IA(W,"the stream contains non-printable characters");W.result+=L}}function jQ(W,b,p,NA){var AA,LA,UA,L;if(!F.isObject(p))IA(W,"cannot merge mappings; the provided source object is unacceptable");AA=Object.keys(p);for(UA=0,L=AA.length;UA<L;UA+=1)if(LA=AA[UA],!N.call(b,LA))b[LA]=p[LA],NA[LA]=!0}function BA(W,b,p,NA,AA,LA,UA,L,H){var j,h;if(Array.isArray(AA)){AA=Array.prototype.slice.call(AA);for(j=0,h=AA.length;j<h;j+=1){if(Array.isArray(AA[j]))IA(W,"nested arrays are not supported inside keys");if(typeof AA==="object"&&n(AA[j])==="[object Object]")AA[j]="[object Object]"}}if(typeof AA==="object"&&n(AA)==="[object Object]")AA="[object Object]";if(AA=String(AA),b===null)b={};if(NA==="tag:yaml.org,2002:merge")if(Array.isArray(LA))for(j=0,h=LA.length;j<h;j+=1)jQ(W,b,LA[j],p);else jQ(W,b,LA,p);else{if(!W.json&&!N.call(p,AA)&&N.call(b,AA))W.line=UA||W.line,W.lineStart=L||W.lineStart,W.position=H||W.position,IA(W,"duplicated mapping key");if(AA==="__proto__")Object.defineProperty(b,AA,{configurable:!0,enumerable:!0,writable:!0,value:LA});else b[AA]=LA;delete p[AA]}return b}function HB(W){var b=W.input.charCodeAt(W.position);if(b===10)W.position++;else if(b===13){if(W.position++,W.input.charCodeAt(W.position)===10)W.position++}else IA(W,"a line break is expected");W.line+=1,W.lineStart=W.position,W.firstTabInLine=-1}function WQ(W,b,p){var NA=0,AA=W.input.charCodeAt(W.position);while(AA!==0){while(x(AA)){if(AA===9&&W.firstTabInLine===-1)W.firstTabInLine=W.position;AA=W.input.charCodeAt(++W.position)}if(b&&AA===35)do AA=W.input.charCodeAt(++W.position);while(AA!==10&&AA!==13&&AA!==0);if(QA(AA)){HB(W),AA=W.input.charCodeAt(W.position),NA++,W.lineIndent=0;while(AA===32)W.lineIndent++,AA=W.input.charCodeAt(++W.position)}else break}if(p!==-1&&NA!==0&&W.lineIndent<p)kA(W,"deficient indentation");return NA}function NB(W){var b=W.position,p;if(p=W.input.charCodeAt(b),(p===45||p===46)&&p===W.input.charCodeAt(b+1)&&p===W.input.charCodeAt(b+2)){if(b+=3,p=W.input.charCodeAt(b),p===0||l(p))return!0}return!1}function e(W,b){if(b===1)W.result+=" ";else if(b>1)W.result+=F.repeat(`
`,b-1)}function EA(W,b,p){var NA,AA,LA,UA,L,H,j,h,P=W.kind,S=W.result,z;if(z=W.input.charCodeAt(W.position),l(z)||u(z)||z===35||z===38||z===42||z===33||z===124||z===62||z===39||z===34||z===37||z===64||z===96)return!1;if(z===63||z===45){if(AA=W.input.charCodeAt(W.position+1),l(AA)||p&&u(AA))return!1}W.kind="scalar",W.result="",LA=UA=W.position,L=!1;while(z!==0){if(z===58){if(AA=W.input.charCodeAt(W.position+1),l(AA)||p&&u(AA))break}else if(z===35){if(NA=W.input.charCodeAt(W.position-1),l(NA))break}else if(W.position===W.lineStart&&NB(W)||p&&u(z))break;else if(QA(z))if(H=W.line,j=W.lineStart,h=W.lineIndent,WQ(W,!1,-1),W.lineIndent>=b){L=!0,z=W.input.charCodeAt(W.position);continue}else{W.position=UA,W.line=H,W.lineStart=j,W.lineIndent=h;break}if(L)rQ(W,LA,UA,!1),e(W,W.line-H),LA=UA=W.position,L=!1;if(!x(z))UA=W.position+1;z=W.input.charCodeAt(++W.position)}if(rQ(W,LA,UA,!1),W.result)return!0;return W.kind=P,W.result=S,!1}function BQ(W,b){var p,NA,AA;if(p=W.input.charCodeAt(W.position),p!==39)return!1;W.kind="scalar",W.result="",W.position++,NA=AA=W.position;while((p=W.input.charCodeAt(W.position))!==0)if(p===39)if(rQ(W,NA,W.position,!0),p=W.input.charCodeAt(++W.position),p===39)NA=W.position,W.position++,AA=W.position;else return!0;else if(QA(p))rQ(W,NA,AA,!0),e(W,WQ(W,!1,b)),NA=AA=W.position;else if(W.position===W.lineStart&&NB(W))IA(W,"unexpected end of the document within a single quoted scalar");else W.position++,AA=W.position;IA(W,"unexpected end of the stream within a single quoted scalar")}function tA(W,b){var p,NA,AA,LA,UA,L;if(L=W.input.charCodeAt(W.position),L!==34)return!1;W.kind="scalar",W.result="",W.position++,p=NA=W.position;while((L=W.input.charCodeAt(W.position))!==0)if(L===34)return rQ(W,p,W.position,!0),W.position++,!0;else if(L===92){if(rQ(W,p,W.position,!0),L=W.input.charCodeAt(++W.position),QA(L))WQ(W,!1,b);else if(L<256&&cA[L])W.result+=yA[L],W.position++;else if((UA=i(L))>0){AA=UA,LA=0;for(;AA>0;AA--)if(L=W.input.charCodeAt(++W.position),(UA=CA(L))>=0)LA=(LA<<4)+UA;else IA(W,"expected hexadecimal character");W.result+=uA(LA),W.position++}else IA(W,"unknown escape sequence");p=NA=W.position}else if(QA(L))rQ(W,p,NA,!0),e(W,WQ(W,!1,b)),p=NA=W.position;else if(W.position===W.lineStart&&NB(W))IA(W,"unexpected end of the document within a double quoted scalar");else W.position++,NA=W.position;IA(W,"unexpected end of the stream within a double quoted scalar")}function iB(W,b){var p=!0,NA,AA,LA,UA=W.tag,L,H=W.anchor,j,h,P,S,z,q=Object.create(null),f,v,a,r;if(r=W.input.charCodeAt(W.position),r===91)h=93,z=!1,L=[];else if(r===123)h=125,z=!0,L={};else return!1;if(W.anchor!==null)W.anchorMap[W.anchor]=L;r=W.input.charCodeAt(++W.position);while(r!==0){if(WQ(W,!0,b),r=W.input.charCodeAt(W.position),r===h)return W.position++,W.tag=UA,W.anchor=H,W.kind=z?"mapping":"sequence",W.result=L,!0;else if(!p)IA(W,"missed comma between flow collection entries");else if(r===44)IA(W,"expected the node content, but found ','");if(v=f=a=null,P=S=!1,r===63){if(j=W.input.charCodeAt(W.position+1),l(j))P=S=!0,W.position++,WQ(W,!0,b)}if(NA=W.line,AA=W.lineStart,LA=W.position,_A(W,b,U,!1,!0),v=W.tag,f=W.result,WQ(W,!0,b),r=W.input.charCodeAt(W.position),(S||W.line===NA)&&r===58)P=!0,r=W.input.charCodeAt(++W.position),WQ(W,!0,b),_A(W,b,U,!1,!0),a=W.result;if(z)BA(W,L,q,v,f,a,NA,AA,LA);else if(P)L.push(BA(W,null,q,v,f,a,NA,AA,LA));else L.push(f);if(WQ(W,!0,b),r=W.input.charCodeAt(W.position),r===44)p=!0,r=W.input.charCodeAt(++W.position);else p=!1}IA(W,"unexpected end of the stream within a flow collection")}function AI(W,b){var p,NA,AA=V,LA=!1,UA=!1,L=b,H=0,j=!1,h,P;if(P=W.input.charCodeAt(W.position),P===124)NA=!1;else if(P===62)NA=!0;else return!1;W.kind="scalar",W.result="";while(P!==0)if(P=W.input.charCodeAt(++W.position),P===43||P===45)if(V===AA)AA=P===43?g:w;else IA(W,"repeat of a chomping mode identifier");else if((h=KA(P))>=0)if(h===0)IA(W,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!UA)L=b+h-1,UA=!0;else IA(W,"repeat of an indentation width identifier");else break;if(x(P)){do P=W.input.charCodeAt(++W.position);while(x(P));if(P===35)do P=W.input.charCodeAt(++W.position);while(!QA(P)&&P!==0)}while(P!==0){HB(W),W.lineIndent=0,P=W.input.charCodeAt(W.position);while((!UA||W.lineIndent<L)&&P===32)W.lineIndent++,P=W.input.charCodeAt(++W.position);if(!UA&&W.lineIndent>L)L=W.lineIndent;if(QA(P)){H++;continue}if(W.lineIndent<L){if(AA===g)W.result+=F.repeat(`
`,LA?1+H:H);else if(AA===V){if(LA)W.result+=`
`}break}if(NA)if(x(P))j=!0,W.result+=F.repeat(`
`,LA?1+H:H);else if(j)j=!1,W.result+=F.repeat(`
`,H+1);else if(H===0){if(LA)W.result+=" "}else W.result+=F.repeat(`
`,H);else W.result+=F.repeat(`
`,LA?1+H:H);LA=!0,UA=!0,H=0,p=W.position;while(!QA(P)&&P!==0)P=W.input.charCodeAt(++W.position);rQ(W,p,W.position,!1)}return!0}function qQ(W,b){var p,NA=W.tag,AA=W.anchor,LA=[],UA,L=!1,H;if(W.firstTabInLine!==-1)return!1;if(W.anchor!==null)W.anchorMap[W.anchor]=LA;H=W.input.charCodeAt(W.position);while(H!==0){if(W.firstTabInLine!==-1)W.position=W.firstTabInLine,IA(W,"tab characters must not be used in indentation");if(H!==45)break;if(UA=W.input.charCodeAt(W.position+1),!l(UA))break;if(L=!0,W.position++,WQ(W,!0,-1)){if(W.lineIndent<=b){LA.push(null),H=W.input.charCodeAt(W.position);continue}}if(p=W.line,_A(W,b,X,!1,!0),LA.push(W.result),WQ(W,!0,-1),H=W.input.charCodeAt(W.position),(W.line===p||W.lineIndent>b)&&H!==0)IA(W,"bad indentation of a sequence entry");else if(W.lineIndent<b)break}if(L)return W.tag=NA,W.anchor=AA,W.kind="sequence",W.result=LA,!0;return!1}function sQ(W,b,p){var NA,AA,LA,UA,L,H,j=W.tag,h=W.anchor,P={},S=Object.create(null),z=null,q=null,f=null,v=!1,a=!1,r;if(W.firstTabInLine!==-1)return!1;if(W.anchor!==null)W.anchorMap[W.anchor]=P;r=W.input.charCodeAt(W.position);while(r!==0){if(!v&&W.firstTabInLine!==-1)W.position=W.firstTabInLine,IA(W,"tab characters must not be used in indentation");if(NA=W.input.charCodeAt(W.position+1),LA=W.line,(r===63||r===58)&&l(NA)){if(r===63){if(v)BA(W,P,S,z,q,null,UA,L,H),z=q=f=null;a=!0,v=!0,AA=!0}else if(v)v=!1,AA=!0;else IA(W,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");W.position+=1,r=NA}else{if(UA=W.line,L=W.lineStart,H=W.position,!_A(W,p,Z,!1,!0))break;if(W.line===LA){r=W.input.charCodeAt(W.position);while(x(r))r=W.input.charCodeAt(++W.position);if(r===58){if(r=W.input.charCodeAt(++W.position),!l(r))IA(W,"a whitespace character is expected after the key-value separator within a block mapping");if(v)BA(W,P,S,z,q,null,UA,L,H),z=q=f=null;a=!0,v=!1,AA=!1,z=W.tag,q=W.result}else if(a)IA(W,"can not read an implicit mapping pair; a colon is missed");else return W.tag=j,W.anchor=h,!0}else if(a)IA(W,"can not read a block mapping entry; a multiline key may not be an implicit key");else return W.tag=j,W.anchor=h,!0}if(W.line===LA||W.lineIndent>b){if(v)UA=W.line,L=W.lineStart,H=W.position;if(_A(W,b,$,!0,AA))if(v)q=W.result;else f=W.result;if(!v)BA(W,P,S,z,q,f,UA,L,H),z=q=f=null;WQ(W,!0,-1),r=W.input.charCodeAt(W.position)}if((W.line===LA||W.lineIndent>b)&&r!==0)IA(W,"bad indentation of a mapping entry");else if(W.lineIndent<b)break}if(v)BA(W,P,S,z,q,null,UA,L,H);if(a)W.tag=j,W.anchor=h,W.kind="mapping",W.result=P;return a}function FC(W){var b,p=!1,NA=!1,AA,LA,UA;if(UA=W.input.charCodeAt(W.position),UA!==33)return!1;if(W.tag!==null)IA(W,"duplication of a tag property");if(UA=W.input.charCodeAt(++W.position),UA===60)p=!0,UA=W.input.charCodeAt(++W.position);else if(UA===33)NA=!0,AA="!!",UA=W.input.charCodeAt(++W.position);else AA="!";if(b=W.position,p){do UA=W.input.charCodeAt(++W.position);while(UA!==0&&UA!==62);if(W.position<W.length)LA=W.input.slice(b,W.position),UA=W.input.charCodeAt(++W.position);else IA(W,"unexpected end of the stream within a verbatim tag")}else{while(UA!==0&&!l(UA)){if(UA===33)if(!NA){if(AA=W.input.slice(b-1,W.position+1),!t.test(AA))IA(W,"named tag handle cannot contain such characters");NA=!0,b=W.position+1}else IA(W,"tag suffix cannot contain exclamation marks");UA=W.input.charCodeAt(++W.position)}if(LA=W.input.slice(b,W.position),d.test(LA))IA(W,"tag suffix cannot contain flow indicator characters")}if(LA&&!m.test(LA))IA(W,"tag name cannot contain such characters: "+LA);try{LA=decodeURIComponent(LA)}catch(L){IA(W,"tag name is malformed: "+LA)}if(p)W.tag=LA;else if(N.call(W.tagMap,AA))W.tag=W.tagMap[AA]+LA;else if(AA==="!")W.tag="!"+LA;else if(AA==="!!")W.tag="tag:yaml.org,2002:"+LA;else IA(W,'undeclared tag handle "'+AA+'"');return!0}function YE(W){var b,p;if(p=W.input.charCodeAt(W.position),p!==38)return!1;if(W.anchor!==null)IA(W,"duplication of an anchor property");p=W.input.charCodeAt(++W.position),b=W.position;while(p!==0&&!l(p)&&!u(p))p=W.input.charCodeAt(++W.position);if(W.position===b)IA(W,"name of an anchor node must contain at least one character");return W.anchor=W.input.slice(b,W.position),!0}function jB(W){var b,p,NA;if(NA=W.input.charCodeAt(W.position),NA!==42)return!1;NA=W.input.charCodeAt(++W.position),b=W.position;while(NA!==0&&!l(NA)&&!u(NA))NA=W.input.charCodeAt(++W.position);if(W.position===b)IA(W,"name of an alias node must contain at least one character");if(p=W.input.slice(b,W.position),!N.call(W.anchorMap,p))IA(W,'unidentified alias "'+p+'"');return W.result=W.anchorMap[p],WQ(W,!0,-1),!0}function _A(W,b,p,NA,AA){var LA,UA,L,H=1,j=!1,h=!1,P,S,z,q,f,v;if(W.listener!==null)W.listener("open",W);if(W.tag=null,W.anchor=null,W.kind=null,W.result=null,LA=UA=L=$===p||X===p,NA){if(WQ(W,!0,-1)){if(j=!0,W.lineIndent>b)H=1;else if(W.lineIndent===b)H=0;else if(W.lineIndent<b)H=-1}}if(H===1)while(FC(W)||YE(W))if(WQ(W,!0,-1)){if(j=!0,L=LA,W.lineIndent>b)H=1;else if(W.lineInden Line truncated
`;if(W.charCodeAt(0)===65279)W=W.slice(1)}var p=new PA(W,b),NA=W.indexOf("\x00");if(NA!==-1)p.position=NA,IA(p,"null byte is not allowed in input");p.input+="\x00";while(p.input.charCodeAt(p.position)===32)p.lineIndent+=1,p.position+=1;while(p.position<p.length-1)xQ(p);return p.documents}function wA(W,b,p){if(b!==null&&typeof b==="object"&&typeof p>"u")p=b,b=null;var NA=J0(W,p);if(typeof b!=="function")return NA;for(var AA=0,LA=NA.length;AA<LA;AA+=1)b(NA[AA])}function VQ(W,b){var p=J0(W,b);if(p.length===0)return;else if(p.length===1)return p[0];throw new Y("expected a single document in the stream, but found more")}I.exports.loadAll=wA,I.exports.load=VQ},1082:(I,C,D)=>{var F=D(8179),Y=D(6073);function J(U,Z){var X=[];return U[Z].forEach(function($){var V=X.length;X.forEach(function(w,g){if(w.tag===$.tag&&w.kind===$.kind&&w.multi===$.multi)V=g}),X[V]=$}),X}function G(){var U={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},Z,X;function $(V){if(V.multi)U.multi[V.kind].push(V),U.multi.fallback.push(V);else U[V.kind][V.tag]=U.fallback[V.tag]=V}for(Z=0,X=arguments.length;Z<X;Z+=1)arguments[Z].forEach($);return U}function N(U){return this.extend(U)}N.prototype.extend=function(Z){var X=[],$=[];if(Z instanceof Y)$.push(Z);else if(Array.isArray(Z))$=$.concat(Z);else if(Z&&(Array.isArray(Z.implicit)||Array.isArray(Z.explicit))){if(Z.implicit)X=X.concat(Z.implicit);if(Z.explicit)$=$.concat(Z.explicit)}else throw new F("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");X.forEach(function(w){if(!(w instanceof Y))throw new F("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(w.loadKind&&w.loadKind!=="scalar")throw new F("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(w.multi)throw new F("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),$.forEach(function(w){if(!(w instanceof Y))throw new F("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var V=Object.create(N.prototype);return V.implicit=(this.implicit||[]).concat(X),V.explicit=(this.explicit||[]).concat($),V.compiledImplicit=J(V,"implicit"),V.compiledExplicit=J(V,"explicit"),V.compiledTypeMap=G(V.compiledImplicit,V.compiledExplicit),V},I.exports=N},2011:(I,C,D)=>{I.exports=D(1035)},8759:(I,C,D)=>{I.exports=D(2011).extend({implicit:[D(9212),D(6104)],explicit:[D(7900),D(9046),D(6860),D(9548)]})},8562:(I,C,D)=>{var F=D(1082);I.exports=new F({explicit:[D(3619),D(7283),D(6150)]})},1035:(I,C,D)=>{I.exports=D(8562).extend({implicit:[D(721),D(4993),D(1615),D(2705)]})},6975:(I,C,D)=>{var F=D(6829);function Y(N,U,Z,X,$){var V="",w="",g=Math.floor($/2)-1;if(X-U>g)V=" ... ",U=X-g+V.length;if(Z-X>g)w=" ...",Z=X+g-w.length;return{str:V+N.slice(U,Z).replace(/\t/g,"→")+w,pos:X-U+V.length}}function J(N,U){return F.repeat(" ",U-N.length)+N}function G(N,U){if(U=Object.create(U||null),!N.buffer)return null;if(!U.maxLength)U.maxLength=79;if(typeof U.indent!=="number")U.indent=1;if(typeof U.linesBefore!=="number")U.linesBefore=3;if(typeof U.linesAfter!=="number")U.linesAfter=2;var Z=/\r?\n|\r|\0/g,X=[0],$=[],V,w=-1;while(V=Z.exec(N.buffer))if($.push(V.index),X.push(V.index+V[0].length),N.position<=V.index&&w<0)w=X.length-2;if(w<0)w=X.length-1;var g="",M,k,d=Math.min(N.line+U.linesAfter,$.length).toString().length,t=U.maxLength-(U.indent+d+3);for(M=1;M<=U.linesBefore;M++){if(w-M<0)break;k=Y(N.buffer,X[w-M],$[w-M],N.position-(X[w]-X[w-M]),t),g=F.repeat(" ",U.indent)+J((N.line-M+1).toString(),d)+" | "+k.str+`
`+g}k=Y(N.buffer,X[w],$[w],N.position,t),g+=F.repeat(" ",U.indent)+J((N.line+1).toString(),d)+" | "+k.str+`
`,g+=F.repeat("-",U.indent+d+3+k.pos)+`^
`;for(M=1;M<=U.linesAfter;M++){if(w+M>=$.length)break;k=Y(N.buffer,X[w+M],$[w+M],N.position-(X[w]-X[w+M]),t),g+=F.repeat(" ",U.indent)+J((N.line+M+1).toString(),d)+" | "+k.str+`
`}return g.replace(/\n$/,"")}I.exports=G},6073:(I,C,D)=>{var F=D(8179),Y=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],J=["scalar","sequence","mapping"];function G(U){var Z={};if(U!==null)Object.keys(U).forEach(function(X){U[X].forEach(function($){Z[String($)]=X})});return Z}function N(U,Z){if(Z=Z||{},Object.keys(Z).forEach(function(X){if(Y.indexOf(X)===-1)throw new F('Unknown option "'+X+'" is met in definition of "'+U+'" YAML type.')}),this.options=Z,this.tag=U,this.kind=Z.kind||null,this.resolve=Z.resolve||function(){return!0},this.construct=Z.construct||function(X){return X},this.instanceOf=Z.instanceOf||null,this.predicate=Z.predicate||null,this.represent=Z.represent||null,this.representName=Z.representName||null,this.defaultStyle=Z.defaultStyle||null,this.multi=Z.multi||!1,this.styleAliases=G(Z.styleAliases||null),J.indexOf(this.kind)===-1)throw new F('Unknown kind "'+this.kind+'" is specified for "'+U+'" YAML type.')}I.exports=N},7900:(I,C,D)=>{var F=D(6073),Y=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function J(Z){if(Z===null)return!1;var X,$,V=0,w=Z.length,g=Y;for($=0;$<w;$++){if(X=g.indexOf(Z.charAt($)),X>64)continue;if(X<0)return!1;V+=6}return V%8===0}function G(Z){var X,$,V=Z.replace(/[\r\n=]/g,""),w=V.length,g=Y,M=0,k=[];for(X=0;X<w;X++){if(X%4===0&&X)k.push(M>>16&255),k.push(M>>8&255),k.push(M&255);M=M<<6|g.indexOf(V.charAt(X))}if($=w%4*6,$===0)k.push(M>>16&255),k.push(M>>8&255),k.push(M&255);else if($===18)k.push(M>>10&255),k.push(M>>2&255);else if($===12)k.push(M>>4&255);return new Uint8Array(k)}function N(Z){var X="",$=0,V,w,g=Z.length,M=Y;for(V=0;V<g;V++){if(V%3===0&&V)X+=M[$>>18&63],X+=M[$>>12&63],X+=M[$>>6&63],X+=M[$&63];$=($<<8)+Z[V]}if(w=g%3,w===0)X+=M[$>>18&63],X+=M[$>>12&63],X+=M[$>>6&63],X+=M[$&63];else if(w===2)X+=M[$>>10&63],X+=M[$>>4&63],X+=M[$<<2&63],X+=M[64];else if(w===1)X+=M[$>>2&63],X+=M[$<<4&63],X+=M[64],X+=M[64];return X}function U(Z){return Object.prototype.toString.call(Z)==="[object Uint8Array]"}I.exports=new F("tag:yaml.org,2002:binary",{kind:"scalar",resolve:J,construct:G,predicate:U,represent:N})},4993:(I,C,D)=>{var F=D(6073);function Y(N){if(N===null)return!1;var U=N.length;return U===4&&(N==="true"||N==="True"||N==="TRUE")||U===5&&(N==="false"||N==="False"||N==="FALSE")}function J(N){return N==="true"||N==="True"||N==="TRUE"}function G(N){return Object.prototype.toString.call(N)==="[object Boolean]"}I.exports=new F("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Y,construct:J,predicate:G,represent:{lowercase:function(N){return N?"true":"false"},uppercase:function(N){return N?"TRUE":"FALSE"},camelcase:function(N){return N?"True":"False"}},defaultStyle:"lowercase"})},2705:(I,C,D)=>{var F=D(6829),Y=D(6073),J=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function G($){if($===null)return!1;if(!J.test($)||$[$.length-1]==="_")return!1;return!0}function N($){var V,w;if(V=$.replace(/_/g,"").toLowerCase(),w=V[0]==="-"?-1:1,"+-".indexOf(V[0])>=0)V=V.slice(1);if(V===".inf")return w===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(V===".nan")return NaN;return w*parseFloat(V,10)}var U=/^[-+]?[0-9]+e/;function Z($,V){var w;if(isNaN($))switch(V){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(V){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(V){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(F.isNegativeZero($))return"-0.0";return w=$.toString(10),U.test(w)?w.replace("e",".e"):w}function X($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||F.isNegativeZero($))}I.exports=new Y("tag:yaml.org,2002:float",{kind:"scalar",resolve:G,construct:N,predicate:X,represent:Z,defaultStyle:"lowercase"})},1615:(I,C,D)=>{var F=D(6829),Y=D(6073);function J($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function G($){return 48<=$&&$<=55}function N($){return 48<=$&&$<=57}function U($){if($===null)return!1;var V=$.length,w=0,g=!1,M;if(!V)return!1;if(M=$[w],M==="-"||M==="+")M=$[++w];if(M==="0"){if(w+1===V)return!0;if(M=$[++w],M==="b"){w++;for(;w<V;w++){if(M=$[w],M==="_")continue;if(M!=="0"&&M!=="1")return!1;g=!0}return g&&M!=="_"}if(M==="x"){w++;for(;w<V;w++){if(M=$[w],M==="_")continue;if(!J($.charCodeAt(w)))return!1;g=!0}return g&&M!=="_"}if(M==="o"){w++;for(;w<V;w++){if(M=$[w],M==="_")continue;if(!G($.charCodeAt(w)))return!1;g=!0}return g&&M!=="_"}}if(M==="_")return!1;for(;w<V;w++){if(M=$[w],M==="_")continue;if(!N($.charCodeAt(w)))return!1;g=!0}if(!g||M==="_")return!1;return!0}function Z($){var V=$,w=1,g;if(V.indexOf("_")!==-1)V=V.replace(/_/g,"");if(g=V[0],g==="-"||g==="+"){if(g==="-")w=-1;V=V.slice(1),g=V[0]}if(V==="0")return 0;if(g==="0"){if(V[1]==="b")return w*parseInt(V.slice(2),2);if(V[1]==="x")return w*parseInt(V.slice(2),16);if(V[1]==="o")return w*parseInt(V.slice(2),8)}return w*parseInt(V,10)}function X($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!F.isNegativeZero($))}I.exports=new Y("tag:yaml.org,2002:int",{kind:"scalar",resolve:U,construct:Z,predicate:X,represent:{binary:function($){return $>=0?"0b"+$.toString(2):"-0b"+$.toString(2).slice(1)},octal:function($){return $>=0?"0o"+$.toString(8):"-0o"+$.toString(8).slice(1)},decimal:function($){return $.toString(10)},hexadecimal:function($){return $>=0?"0x"+$.toString(16).toUpperCase():"-0x"+$.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(I,C,D)=>{var F=D(6073);I.exports=new F("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Y){return Y!==null?Y:{}}})},6104:(I,C,D)=>{var F=D(6073);function Y(J){return J==="<<"||J===null}I.exports=new F("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Y})},721:(I,C,D)=>{var F=D(6073);function Y(N){if(N= Line truncated
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*/let F=D(5680),Y=(m,n,QA)=>{if(F(m)===!1)throw TypeError("toRegexRange: expected the first argument to be a number");if(n===void 0||m===n)return String(m);if(F(n)===!1)throw TypeError("toRegexRange: expected the second argument to be a number.");let x={relaxZeros:!0,...QA};if(typeof x.strictZeros==="boolean")x.relaxZeros=x.strictZeros===!1;let l=String(x.relaxZeros),u=String(x.shorthand),CA=String(x.capture),i=String(x.wrap),KA=m+":"+n+"="+l+u+CA+i;if(Y.cache.hasOwnProperty(KA))return Y.cache[KA].result;let HA=Math.min(m,n),uA=Math.max(m,n);if(Math.abs(HA-uA)===1){let dA=m+"|"+n;if(x.capture)return`(${dA})`;if(x.wrap===!1)return dA;return`(?:${dA})`}let cA=d(m)||d(n),yA={min:m,max:n,a:HA,b:uA},JA=[],PA=[];if(cA)yA.isPadded=cA,yA.maxLen=String(yA.max).length;if(HA<0){let dA=uA<0?Math.abs(uA):1;PA=U(dA,Math.abs(HA),yA,x),HA=yA.a=0}if(uA>=0)JA=U(HA,uA,yA,x);if(yA.negatives=PA,yA.positives=JA,yA.result=J(PA,JA,x),x.capture===!0)yA.result=`(${yA.result})`;else if(x.wrap!==!1&&JA.length+PA.length>1)yA.result=`(?:${yA.result})`;return Y.cache[KA]=yA,yA.result};function J(m,n,QA){let x=Z(m,n,"-",!1,QA)||[],l=Z(n,m,"",!1,QA)||[],u=Z(m,n,"-?",!0,QA)||[];return x.concat(u).concat(l).join("|")}function G(m,n){let QA=1,x=1,l=w(m,QA),u=new Set([n]);while(m<=l&&l<=n)u.add(l),QA+=1,l=w(m,QA);l=g(n+1,x)-1;while(m<l&&l<=n)u.add(l),x+=1,l=g(n+1,x)-1;return u=[...u],u.sort($),u}function N(m,n,QA){if(m===n)return{pattern:m,count:[],digits:0};let x=X(m,n),l=x.length,u="",CA=0;for(let i=0;i<l;i++){let[KA,HA]=x[i];if(KA===HA)u+=KA;else if(KA!=="0"||HA!=="9")u+=k(KA,HA,QA);else CA++}if(CA)u+=QA.shorthand===!0?"\\d":"[0-9]";return{pattern:u,count:[CA],digits:l}}function U(m,n,QA,x){let l=G(m,n),u=[],CA=m,i;for(let KA=0;KA<l.length;KA++){let HA=l[KA],uA=N(String(CA),String(HA),x),cA="";if(!QA.isPadded&&i&&i.pattern===uA.pattern){if(i.count.length>1)i.count.pop();i.count.push(uA.count[0]),i.string=i.pattern+M(i.count),CA=HA+1;continue}if(QA.isPadded)cA=t(HA,QA,x);uA.string=cA+uA.pattern+M(uA.count),u.push(uA),CA=HA+1,i=uA}return u}function Z(m,n,QA,x,l){let u=[];for(let CA of m){let{string:i}=CA;if(!x&&!V(n,"string",i))u.push(QA+i);if(x&&V(n,"string",i))u.push(QA+i)}return u}function X(m,n){let QA=[];for(let x=0;x<m.length;x++)QA.push([m[x],n[x]]);return QA}function $(m,n){return m>n?1:n>m?-1:0}function V(m,n,QA){return m.some((x)=>x[n]===QA)}function w(m,n){return Number(String(m).slice(0,-n)+"9".repeat(n))}function g(m,n){return m-m%Math.pow(10,n)}function M(m){let[n=0,QA=""]=m;if(QA||n>1)return`{${n+(QA?","+QA:"")}}`;return""}function k(m,n,QA){return`[${m}${n-m===1?"":"-"}${n}]`}function d(m){return/^-?(0+)\d/.test(m)}function t(m,n,QA){if(!n.isPadded)return m;let x=Math.abs(n.maxLen-String(m).length),l=QA.relaxZeros!==!1;switch(x){case 0:return"";case 1:return l?"0?":"0";case 2:return l?"0{0,2}":"00";default:return l?`0{0,${x}}`:`0{${x}}`}}Y.cache={},Y.clearCache=()=>Y.cache={},I.exports=Y},6144:function(I,C,D){var F=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(C,"__esModule",{value:!0}),C.resolveWorkspaceRoot=Z,C.resolveWorkspaceRootAsync=X,C.getWorkspaceGlobs=$,C.getWorkspaceGlobsAsync=V;let Y=F(D(9411)),J=F(D(7742)),G=D(2737),N=D(6455),U=D(4679);function Z(w=J.default.cwd(),g={}){return(0,G.searchParentDirs)(w,(M,k)=>{let d=null;if(g.packageWorkspaces!==!1){d=(0,N.tryReadFile)(Y.default.join(M,"package.json"));let t=d&&(0,U.workspaceGlobsFromPackage)(d);if(t&&(0,U.pathMatchesWorkspaceGlobs)(t,k))return M}if(g.pnpmWorkspaces!==!1&&d){let t=(0,N.tryReadFile)(Y.default.join(M,"pnpm-workspace.yaml")),m=t&&(0,U.workspaceGlobsFromPnpm)(t);if(m&&(0,U.pathMatchesWorkspaceGlobs)(m,k))return M}})}function X(w=J.default.cwd(),g={}){return(0,G.searchParentDirsAsync)(w,async(M,k)=>{let d=null;if(g.packageWorkspaces!==!1){d=await(0,N.tryReadFileAsync)(Y.default.join(M,"package.json"));let t=d&&(0,U.workspaceGlobsFromPackage)(d);if(t&&(0,U.pathMatchesWorkspaceGlobs)(t,k))return M}if(g.pnpmWorkspaces!==!1&&d){let t=await(0,N.tryReadFileAsync)(Y.default.join(M,"pnpm-workspace.yaml")),m=t&&(0,U.workspaceGlobsFromPnpm)(t);if(m&&(0,U.pathMatchesWorkspaceGlobs)(m,k))return M}})}function $(w=J.default.cwd(),g={}){if(g.packageWorkspaces!==!1){let M=(0,N.tryReadFile)(Y.default.join(w,"package.json")),k=M&&(0,U.workspaceGlobsFromPackage)(M);if(k)return k}if(g.pnpmWorkspaces!==!1){let M=(0,N.tryReadFile)(Y.default.join(w,"pnpm-workspace.yaml")),k=M&&(0,U.workspaceGlobsFromPnpm)(M);if(k)return k}return null}async function V(w=J.default.cwd(),g={}){if(g.packageWorkspaces!==!1){let M=await(0,N.tryReadFileAsync)(Y.default.join(w,"package.json")),k=M&&(0,U.workspaceGlobsFromPackage)(M);if(k)return k}if(g.pnpmWorkspaces!==!1){let M=await(0,N.tryReadFileAsync)(Y.default.join(w,"pnpm-workspace.yaml")),k=M&&(0,U.workspaceGlobsFromPnpm)(M);if(k)return k}return null}},2737:function(I,C,D){var F=this&&this.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(C,"__esModuleLine truncated
%s`,d,d,g,E);var t=g.type==="*"?jV:g.type==="?"?qV:"\\"+g.type;I=!0,E=E.slice(0,g.reStart)+t+"\\("+d}if(X(),C)E+="\\\\";var m=!1;switch(E.charAt(0)){case"[":case".":case"(":m=!0}for(var n=F.length-1;n>-1;n--){var QA=F[n],x=E.slice(0,QA.reStart),l=E.slice(QA.reStart,QA.reEnd-8),u=E.slice(QA.reEnd-8,QA.reEnd),CA=E.slice(QA.reEnd);u+=CA;var i=x.split("(").length-1,KA=CA;for($=0;$<i;$++)KA=KA.replace(/\)[+*?]?/,"");CA=KA;var HA="";if(CA===""&&Q!==q2)HA="$";var uA=x+l+CA+HA+u;E=uA}if(E!==""&&I)E="(?=.)"+E;if(m)E=U+E;if(Q===q2)return[E,I];if(!I)return qXA(A);var cA=B.nocase?"i":"";try{var yA=new RegExp("^"+E+"$",cA)}catch(JA){return new RegExp("$.")}return yA._glob=A,yA._src=E,yA}AC.makeRe=function(A,Q){return new yE(A,Q||{}).makeRe()};yE.prototype.makeRe=OXA;function OXA(){if(this.regexp||this.regexp===!1)return this.regexp;var A=this.set;if(!A.length)return this.regexp=!1,this.regexp;var Q=this.options,B=Q.noglobstar?jV:Q.dot?VXA:zXA,E=Q.nocase?"i":"",I=A.map(function(C){return C.map(function(D){return D===PV?B:typeof D==="string"?jXA(D):D._src}).join("\\/")}).join("|");if(I="^(?:"+I+")$",this.negate)I="^(?!"+I+").*$";try{this.regexp=new RegExp(I,E)}catch(C){this.regexp=!1}return this.regexp}AC.match=function(A,Q,B){B=B||{};var E=new yE(Q,B);if(A=A.filter(function(I){return E.match(I)}),E.options.nonull&&!A.length)A.push(Q);return A};yE.prototype.match=function(Q,B){if(typeof B>"u")B=this.partial;if(this.debug("match",Q,this.pattern),this.comment)return!1;if(this.empty)return Q==="";if(Q==="/"&&B)return!0;var E=this.options;if(B5.sep!=="/")Q=Q.split(B5.sep).join("/");Q=Q.split(bu),this.debug(this.pattern,"split",Q);var I=this.set;this.debug(this.pattern,"set",I);var C,D;for(D=Q.length-1;D>=0;D--)if(C=Q[D],C)break;for(D=0;D<I.length;D++){var F=I[D],Y=Q;if(E.matchBase&&F.length===1)Y=[C];var J=this.matchOne(Y,F,B);if(J){if(E.flipNegate)return!0;return!this.negate}}if(E.flipNegate)return!1;return this.negate};yE.prototype.matchOne=function(A,Q,B){var E=this.options;this.debug("matchOne",{this:this,file:A,pattern:Q}),this.debug("matchOne",A.length,Q.length);for(var I=0,C=0,D=A.length,F=Q.length;I<D&&C<F;I++,C++){this.debug("matchOne loop");var Y=Q[C],J=A[I];if(this.debug(Q,Y,J),Y===!1)return!1;if(Y===PV){this.debug("GLOBSTAR",[Q,Y,J]);var G=I,N=C+1;if(N===F){this.debug("** at the end");for(;I<D;I++)if(A[I]==="."||A[I]===".."||!E.dot&&A[I].charAt(0)===".")return!1;return!0}while(G<D){var U=A[G];if(this.debug(`
globstar while`,A,G,Q,N,U),this.matchOne(A.slice(G),Q.slice(N),B))return this.debug("globstar found match!",G,D,U),!0;else{if(U==="."||U===".."||!E.dot&&U.charAt(0)==="."){this.debug("dot detected!",A,G,Q,N);break}this.debug("globstar swallow a segment, and continue"),G++}}if(B){if(this.debug(`
>>> no match, partial?`,A,G,Q,N),G===D)return!0}return!1}var Z;if(typeof Y==="string")Z=J===Y,this.debug("string match",Y,J,Z);else Z=J.match(Y),this.debug("pattern match",Y,J,Z);if(!Z)return!1}if(I===D&&C===F)return!0;else if(I===D)return B;else if(C===F)return I===D-1&&A[I]==="";throw Error("wtf?")};function qXA(A){return A.replace(/\\(.)/g,"$1")}function jXA(A){return A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var pu=K((TC)=>{var PXA=TC&&TC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;Object.defineProperty(A,E,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),kXA=TC&&TC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),cu=TC&&TC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.hasOwnProperty.call(A,B))PXA(Q,A,B)}return kXA(Q,A),Q},fXA=TC&&TC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(TC,"__esModule",{value:!0});TC.Path=void 0;var E5=cu(require("path")),EF=cu(T2()),I5=fXA(require("assert")),xXA=process.platform==="win32";class lu{constructor(A){if(this.segments=[],typeof A==="string")if(I5.default(A,"Parameter 'itemPath' must not be empty"),A=EF.safeTrimTrailingSeparator(A),!EF.hasRoot(A))this.segments=A.split(E5.sep);else{let Q=A,B=EF.dirname(Q);while(B!==Q){let E=E5.basename(Q);this.segments.unshift(E),Q=B,B=EF.dirname(Q)}this.segments.unshift(Q)}else{I5.default(A.length>0,"Parameter 'itemPath' must not be an empty array");for(let Q=0;Q<A.length;Q++){let B=A[Q];if(I5.default(B,"Parameter 'itemPath' must not contain any empty segments"),B=EF.normalizeSeparators(A[Q]),Q===0&&EF.hasRoot(B))B=EF.safeTrimTrailingSeparator(B),I5.default(B===EF.dirname(B),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(B);else I5.default(!B.includes(E5.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(B)}}}toString(){let A=this.segments[0],Q=A.endsWith(E5.sep)||xXA&&/^[A-Z]:$/i.test(A);for(let B=1;B<this.segments.length;B++){if(Q)Q=!1;else A+=E5.sep;A+=this.segments[B]}return A}}TC.Path=lu});var iu=K((qC)=>{var hXA=qC&&qC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;Object.defineProperty(A,E,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),SXA=qC&&qC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),fV=qC&&qC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.hasOwnProperty.call(A,B))hXA(Q,A,B)}return SXA(Q,A),Q},yXA=qC&&qC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(qC,"__esModule",{value:!0});qC.Pattern=void 0;var _XA=fV(require("os")),C5=fV(require("path")),fI=fV(T2()),H1=yXA(require("assert")),vXA=du(),kV=O2(),P2=pu(),$D=process.platform==="win32";class OC{constructor(A,Q=!1,B,E){this.negate=!1;let I;if(typeof A==="string")I=A.trim();else{B=B||[],H1.default(B.length,"Parameter 'segments' must not empty");let Y=OC.getLiteral(B[0]);if(H1.default(Y&&fI.hasAbsoluteRoot(Y),"Parameter 'segments' first element must be a root path"),I=new P2.Path(B).toString().trim(),A)I=`!${I}`}while(I.startsWith("!"))this.negate=!this.negate,I=I.substr(1).trim();I=OC.fixupPattern(I,E),this.segments=new P2.Path(I).segments,this.trailingSeparator=fI.normalizeSeparators(I).endsWith(C5.sep),I=fI.safeTrimTrailingSeparator(I);let C=!1,D=this.segments.map((Y)=>OC.getLiteral(Y)).filter((Y)=>!C&&!(C=Y===""));this.searchPath=new P2.Path(D).toString(),this.rootRegExp=new RegExp(OC.regExpEscape(D[0]),$D?"i":""),this.isImplicitPattern=Q;let F={dot:!0,nobrace:!0,nocase:$D,nocomment:!0,noext:!0,nonegate:!0};I=$D?I.replace(/\\/g,"/"):I,this.minimatch=new vXA.Minimatch(I,F)}match(A){if(this.segments[this.segments.length-1]==="**"){if(A=fI.normalizeSeparators(A),!A.endsWith(C5.sep)&&this.isImplicitPattern===!1)A=`${A}${C5.sep}`}else A=fI.safeTrimTrailingSeparator(A);if(this.minimatch.match(A))return this.trailingSeparator?kV.MatchKind.Directory:kV.MatchKind.All;return kV.MatchKind.None}partialMatch(A){if(A=fI.safeTrimTrailingSeparator(A),fI.dirname(A)===A)return this.rootRegExp.test(A);return this.minimatch.matchOne(A.split($D?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(A){return($D?A:A.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(A,Q){H1.default(A,"pattern cannot be empty");let B=new P2.Path(A).segments.map((E)=>OC.getLiteral(E));if(H1.default(B.every((E,I)=>(E!=="."||I===0)&&E!==".."),`Invalid pattern '${A}'. Relative pathing '.' and '..' is not allowed.`),H1.default(!fI.hasRoot(A)||B[0],`Invalid pattern '${A}'. Root segment must not contain globs.`),A=fI.normalizeSe Line truncated
`),A=A.replace(/\r/g,`
`);let E=A.split(`
`).map((I)=>I.trim());for(let I of E)if(!I||I.startsWith("#"))continue;else B.patterns.push(new ru.Pattern(I));return B.searchPaths.push(...f2.getSearchPaths(B.patterns)),B})}static stat(A,Q,B){return xV(this,void 0,void 0,function*(){let E;if(Q.followSymbolicLinks)try{E=yield D5.promises.stat(A.path)}catch(I){if(I.code==="ENOENT"){if(Q.omitBrokenSymbolicLinks){hV.debug(`Broken symlink '${A.path}'`);return}throw Error(`No information found for the path '${A.path}'. This may indicate a broken symbolic link.`)}throw I}else E=yield D5.promises.lstat(A.path);if(E.isDirectory()&&Q.followSymbolicLinks){let I=yield D5.promises.realpath(A.path);while(B.length>=A.level)B.pop();if(B.some((C)=>C===I)){hV.debug(`Symlink cycle detected for path '${A.path}' and realpath '${I}'`);return}B.push(I)}return E})}}zE.DefaultGlobber=x2});var Am=K((TJ)=>{var pXA=TJ&&TJ.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(TJ,"__esModule",{value:!0});TJ.create=void 0;var iXA=eu();function nXA(A,Q){return pXA(this,void 0,void 0,function*(){return yield iXA.DefaultGlobber.create(A,Q)})}TJ.create=nXA});var Dm=K((QQ,Cm)=>{QQ=Cm.exports=UQ;var mQ;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG))mQ=function(){var A=Array.prototype.slice.call(arguments,0);A.unshift("SEMVER"),console.log.apply(console,A)};else mQ=function(){};QQ.SEMVER_SPEC_VERSION="2.0.0";var Y5=256,h2=Number.MAX_SAFE_INTEGER||9007199254740991,SV=16,aXA=Y5-6,OJ=QQ.re=[],uQ=QQ.safeRe=[],YA=QQ.src=[],o=QQ.tokens={},Em=0;function KQ(A){o[A]=Em++}var _V="[a-zA-Z0-9-]",yV=[["\\s",1],["\\d",Y5],[_V,aXA]];function G5(A){for(var Q=0;Q<yV.length;Q++){var B=yV[Q][0],E=yV[Q][1];A=A.split(B+"*").join(B+"{0,"+E+"}").split(B+"+").join(B+"{1,"+E+"}")}return A}KQ("NUMERICIDENTIFIER");YA[o.NUMERICIDENTIFIER]="0|[1-9]\\d*";KQ("NUMERICIDENTIFIERLOOSE");YA[o.NUMERICIDENTIFIERLOOSE]="\\d+";KQ("NONNUMERICIDENTIFIER");YA[o.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+_V+"*";KQ("MAINVERSION");YA[o.MAINVERSION]="("+YA[o.NUMERICIDENTIFIER]+")\\.("+YA[o.NUMERICIDENTIFIER]+")\\.("+YA[o.NUMERICIDENTIFIER]+")";KQ("MAINVERSIONLOOSE");YA[o.MAINVERSIONLOOSE]="("+YA[o.NUMERICIDENTIFIERLOOSE]+")\\.("+YA[o.NUMERICIDENTIFIERLOOSE]+")\\.("+YA[o.NUMERICIDENTIFIERLOOSE]+")";KQ("PRERELEASEIDENTIFIER");YA[o.PRERELEASEIDENTIFIER]="(?:"+YA[o.NUMERICIDENTIFIER]+"|"+YA[o.NONNUMERICIDENTIFIER]+")";KQ("PRERELEASEIDENTIFIERLOOSE");YA[o.PRERELEASEIDENTIFIERLOOSE]="(?:"+YA[o.NUMERICIDENTIFIERLOOSE]+"|"+YA[o.NONNUMERICIDENTIFIER]+")";KQ("PRERELEASE");YA[o.PRERELEASE]="(?:-("+YA[o.PRERELEASEIDENTIFIER]+"(?:\\."+YA[o.PRERELEASEIDENTIFIER]+")*))";KQ("PRERELEASELOOSE");YA[o.PRERELEASELOOSE]="(?:-?("+YA[o.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+YA[o.PRERELEASEIDENTIFIERLOOSE]+")*))";KQ("BUILDIDENTIFIER");YA[o.BUILDIDENTIFIER]=_V+"+";KQ("BUILD");YA[o.BUILD]="(?:\\+("+YA[o.BUILDIDENTIFIER]+"(?:\\."+YA[o.BUILDIDENTIFIER]+")*))";KQ("FULL");KQ("FULLPLAIN");YA[o.FULLPLAIN]="v?"+YA[o.MAINVERSION]+YA[o.PRERELEASE]+"?"+YA[o.BUILD]+"?";YA[o.FULL]="^"+YA[o.FULLPLAIN]+"$";KQ("LOOSEPLAIN");YA[o.LOOSEPLAIN]="[v=\\s]*"+YA[o.MAINVERSIONLOOSE]+YA[o.PRERELEASELOOSE]+"?"+YA[o.BUILD]+"?";KQ("LOOSE");YA[o.LOOSE]="^"+YA[o.LOOSEPLAIN]+"$";KQ("GTLT");YA[o.GTLT]="((?:<|>)?=?)";KQ("XRANGEIDENTIFIERLOOSE");YA[o.XRANGEIDENTIFIERLOOSE]=YA[o.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";KQ("XRANGEIDENTIFIER");YA[o.XRANGEIDENTIFIER]=YA[o.NUMERICIDENTIFIER]+"|x|X|\\*";KQ("XRANGEPLAIN");YA[o.XRANGEPLAIN]="[v=\\s]*("+YA[o.XRANGEIDENTIFIER]+")(?:\\.("+YA[o.XRANGEIDENTIFIER]+")(?:\\.("+YA[o.XRANGEIDENTIFIER]+")(?:"+YA[o.PRERELEASE]+")?"+YA[o.BUILD]+"?)?)?";KQ("XRANGEPLAINLOOSE");YA[o.XRANGEPLAINLOOSE]="[v=\\s]*("+YA[o.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+YA[o.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+YA[o.XRANGEIDENTIFIERLOOSE]+")(?:"+YA[o.PRERELEASELOOSE]+")?"+YA[o.BUILD]+"?)?)?";KQ("XRANGE");YA[o.XRANGE]="^"+YA[o.GTLT]+"\\s*"+YA[o.XRANGEPLAIN]+"$";KQ("XRANGELOOSE");YA[o.XRANGELOOSE]="^"+YA[o.GTLT]+"\\s*"+YA[o.XRANGEPLAINLOOSE]+"$";KQ("COERCE");YA[o.COERCE]="(^|[^\\d])(\\d{1,"+SV+"})(?:\\.(\\d{1,"+SV+"}))?(?:\\.(\\d{1,"+SV+"}))?(?:$|[^\\d])";KQ("COERCERTL");OJ[o.COERCERTL]=new RegExp(YA[o.COERCE],"g");uQ[o.COERCERTL]=new RegExp(G5(YA[o.COERCE]),"g");KQ("LONETILDE");YA[o.LONETILDE]="(?:~>?)";KQ("TILDETRIM");YA[o.TILDETRIM]="(\\s*)"+YA[o.LONETILDE]+"\\s+";OJ[o.TILDETRIM]=new RegExp(YA[o.TILDETRIM],"g");uQ[o.TILDETRIM]=new RegExp(G5(YA[o.TILDETRIM]),"g");var sXA="$1~";KQ("TILDE");YA[o.TILDE]="^"+YA[o.LONETILDE]+YA[o.XRANGEPLAIN]+"$";KQ("TILDELOOSE");YA[o.TILDELOOSE]="^"+YA[o.LONETILDE]+YA[o.XRANGEPLAINLOOSE]+"$";KQ("LONECARET");YA[o.LONECARET]="(?:\\^)";KQ("CARETTRIM");YA[o.CARETTRIM]="(\\s*)"+YA[o.LONECARET]+"\\s+";OJ[o.CARETTRIM]=new RegExp(YA[o.CARETTRIM]," Line truncated
`),{implicitDescendants:!1});try{for(var J=!0,G=x6A(Y.globGenerator()),N;N=yield G.next(),Q=N.done,!Q;J=!0){I=N.value,J=!1;let U=I,Z=v2.relative(F,U).replace(new RegExp(`\\${v2.sep}`,"g"),"/");if(U5.debug(`Matched: ${Z}`),Z==="")D.push(".");else D.push(`${Z}`)}}catch(U){B={error:U}}finally{try{if(!J&&!Q&&(E=G.return))yield E.call(G)}finally{if(B)throw B.error}}return D})}fQ.resolvePaths=m6A;function d6A(A){return jJ(this,void 0,void 0,function*(){return _6A.promisify(dV.unlink)(A)})}fQ.unlinkFile=d6A;function Um(A,Q=[]){return jJ(this,void 0,void 0,function*(){let B="";Q.push("--version"),U5.debug(`Checking ${A} ${Q.join(" ")}`);try{yield h6A.exec(`${A}`,Q,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:(E)=>B+=E.toString(),stderr:(E)=>B+=E.toString()}})}catch(E){U5.debug(E.message)}return B=B.trim(),U5.debug(B),B})}function c6A(){return jJ(this,void 0,void 0,function*(){let A=yield Um("zstd",["--quiet"]),Q=y6A.clean(A);if(U5.debug(`zstd version: ${Q}`),A==="")return R1.CompressionMethod.Gzip;else return R1.CompressionMethod.ZstdWithoutLong})}fQ.getCompressionMethod=c6A;function l6A(A){return A===R1.CompressionMethod.Gzip?R1.CacheFilename.Gzip:R1.CacheFilename.Zstd}fQ.getCacheFileName=l6A;function p6A(){return jJ(this,void 0,void 0,function*(){if(dV.existsSync(R1.GnuTarPathOnWindows))return R1.GnuTarPathOnWindows;return(yield Um("tar")).toLowerCase().includes("gnu tar")?Gm.which("tar"):""})}fQ.getGnuTarPathOnWindows=p6A;function i6A(A,Q){if(Q===void 0)throw Error(`Expected ${A} but value was undefiend`);return Q}fQ.assertDefined=i6A;function n6A(A,Q,B=!1){let E=A.slice();if(Q)E.push(Q);if(process.platform==="win32"&&!B)E.push("windows-only");return E.push(v6A),Nm.createHash("sha256").update(E.join("|")).digest("hex")}fQ.getCacheVersion=n6A;function a6A(){let A=process.env.ACTIONS_RUNTIME_TOKEN;if(!A)throw Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return A}fQ.getRuntimeToken=a6A});var RB=K((UbA,m2)=>{var Zm,Wm,Xm,$m,Km,Lm,Vm,zm,Hm,wm,Mm,Rm,gm,b2,cV,Tm,Om,qm,kJ,jm,Pm,km,fm,xm,hm,Sm,ym,_m,u2,vm,bm,um;(function(A){var Q=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(E){A(B(Q,B(E)))});else if(typeof m2==="object"&&typeof m2.exports==="object")A(B(Q,B(m2.exports)));else A(B(Q));function B(E,I){if(E!==Q)if(typeof Object.create==="function")Object.defineProperty(E,"__esModule",{value:!0});else E.__esModule=!0;return function(C,D){return E[C]=I?I(C,D):D}}})(function(A){var Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,D){C.__proto__=D}||function(C,D){for(var F in D)if(Object.prototype.hasOwnProperty.call(D,F))C[F]=D[F]};Zm=function(C,D){if(typeof D!=="function"&&D!==null)throw TypeError("Class extends value "+String(D)+" is not a constructor or null");Q(C,D);function F(){this.constructor=C}C.prototype=D===null?Object.create(D):(F.prototype=D.prototype,new F)},Wm=Object.assign||function(C){for(var D,F=1,Y=arguments.length;F<Y;F++){D=arguments[F];for(var J in D)if(Object.prototype.hasOwnProperty.call(D,J))C[J]=D[J]}return C},Xm=function(C,D){var F={};for(var Y in C)if(Object.prototype.hasOwnProperty.call(C,Y)&&D.indexOf(Y)<0)F[Y]=C[Y];if(C!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var J=0,Y=Object.getOwnPropertySymbols(C);J<Y.length;J++)if(D.indexOf(Y[J])<0&&Object.prototype.propertyIsEnumerable.call(C,Y[J]))F[Y[J]]=C[Y[J]]}return F},$m=function(C,D,F,Y){var J=arguments.length,G=J<3?D:Y===null?Y=Object.getOwnPropertyDescriptor(D,F):Y,N;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")G=Reflect.decorate(C,D,F,Y);else for(var U=C.length-1;U>=0;U--)if(N=C[U])G=(J<3?N(G):J>3?N(D,F,G):N(D,F))||G;return J>3&&G&&Object.defineProperty(D,F,G),G},Km=function(C,D){return function(F,Y){D(F,Y,C)}},Lm=function(C,D,F,Y,J,G){function N(t){if(t!==void 0&&typeof t!=="function")throw TypeError("Function expected");return t}var U=Y.kind,Z=U==="getter"?"get":U==="setter"?"set":"value",X=!D&&C?Y.static?C:C.prototype:null,$=D||(X?Object.getOwnPropertyDescriptor(X,Y.name):{}),V,w=!1;for(var g=F.length-1;g>=0;g--){var M={};for(var k in Y)M[k]=k==="access"?{}:Y[k];for(var k in Y.access)M.access[k]=Y.access[k];M.addInitializer=function(t){if(w)throw TypeError("Cannot add initializers after decoration has completed");G.push(N(t||null))};var d=(0,F[g])(U==="accessor"?{get:$.get,set:$.set}:$[Z],M);if(U==="accessor"){if(d===void 0)continue;if(d===null||typeof d!=="object")throw TypeError("Object expected");if(V=N(d.get))$.get=V;if(V=N(d.set))$.set=V;if(V=N(d.init))J.unshift(V)}else if(V=N(d))if(U==="field")J.unshift(V);else $[Z]=V}if(X)Object.defineProperty(X,Y.name,$);w=!0},Vm=function(C,D,F){var Y=arguments.length>2;for(var J=0;J<D.length;J++)F=Y?D[J].call(C,F):D[J].call(C);return Y?F:void 0},zm=function(C){return typeof C==="symbol"?C:"".concat(C)},Hm=function(C,D,F){if(typeof D==="symbol")D=D.description?"[".concat(D.description,"]"):"";return O Line truncated
${T7A.sanitize({...this,request:{...this.request,agent:B},response:this.response})}`},enumerable:!1}),Object.setPrototypeOf(this,r2.prototype)}}K5.RestError=r2;function O7A(A){if(A instanceof r2)return!0;return(0,M7A.isError)(A)&&A.name==="RestError"}});var g1=K((t2)=>{Object.defineProperty(t2,"__esModule",{value:!0});t2.uint8ArrayToString=q7A;t2.stringToUint8Array=j7A;function q7A(A,Q){return Buffer.from(A).toString(Q)}function j7A(A,Q){return Buffer.from(A,Q)}});var L5=K((e2)=>{Object.defineProperty(e2,"__esModule",{value:!0});e2.logger=void 0;var P7A=X5();e2.logger=(0,P7A.createClientLogger)("ts-http-runtime")});var Xd=K((AZ)=>{Object.defineProperty(AZ,"__esModule",{value:!0});AZ.getBodyLength=Wd;AZ.createNodeHttpClient=v7A;var Gz=RB(),Fz=Gz.__importDefault(require("node:http")),Yz=Gz.__importDefault(require("node:https")),Jd=Gz.__importDefault(require("node:zlib")),k7A=require("node:stream"),Gd=Z5(),f7A=DF(),z5=fJ(),xJ=L5(),x7A=$5(),h7A={};function V5(A){return A&&typeof A.pipe==="function"}function Nd(A){if(A.readable===!1)return Promise.resolve();return new Promise((Q)=>{let B=()=>{Q(),A.removeListener("close",B),A.removeListener("end",B),A.removeListener("error",B)};A.on("close",B),A.on("end",B),A.on("error",B)})}function Ud(A){return A&&typeof A.byteLength==="number"}class Jz extends k7A.Transform{loadedBytes=0;progressCallback;_transform(A,Q,B){this.push(A),this.loadedBytes+=A.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),B()}catch(E){B(E)}}constructor(A){super();this.progressCallback=A}}class Zd{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(A){let Q=new AbortController,B;if(A.abortSignal){if(A.abortSignal.aborted)throw new Gd.AbortError("The operation was aborted. Request has already been canceled.");B=(Y)=>{if(Y.type==="abort")Q.abort()},A.abortSignal.addEventListener("abort",B)}let E;if(A.timeout>0)E=setTimeout(()=>{let Y=new x7A.Sanitizer;xJ.logger.info(`request to '${Y.sanitizeUrl(A.url)}' timed out. canceling...`),Q.abort()},A.timeout);let I=A.headers.get("Accept-Encoding"),C=I?.includes("gzip")||I?.includes("deflate"),D=typeof A.body==="function"?A.body():A.body;if(D&&!A.headers.has("Content-Length")){let Y=Wd(D);if(Y!==null)A.headers.set("Content-Length",Y)}let F;try{if(D&&A.onUploadProgress){let Z=A.onUploadProgress,X=new Jz(Z);if(X.on("error",($)=>{xJ.logger.error("Error in upload progress",$)}),V5(D))D.pipe(X);else X.end(D);D=X}let Y=await this.makeRequest(A,Q,D);if(E!==void 0)clearTimeout(E);let J=S7A(Y),N={status:Y.statusCode??0,headers:J,request:A};if(A.method==="HEAD")return Y.resume(),N;F=C?y7A(Y,J):Y;let U=A.onDownloadProgress;if(U){let Z=new Jz(U);Z.on("error",(X)=>{xJ.logger.error("Error in download progress",X)}),F.pipe(Z),F=Z}if(A.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||A.streamResponseStatusCodes?.has(N.status))N.readableStreamBody=F;else N.bodyAsText=await _7A(F);return N}finally{if(A.abortSignal&&B){let Y=Promise.resolve();if(V5(D))Y=Nd(D);let J=Promise.resolve();if(V5(F))J=Nd(F);Promise.all([Y,J]).then(()=>{if(B)A.abortSignal?.removeEventListener("abort",B)}).catch((G)=>{xJ.logger.warning("Error when cleaning up abortListener on httpRequest",G)})}}}makeRequest(A,Q,B){let E=new URL(A.url),I=E.protocol!=="https:";if(I&&!A.allowInsecureConnection)throw Error(`Cannot connect to ${A.url} while allowInsecureConnection is false.`);let D={agent:A.agent??this.getOrCreateAgent(A,I),hostname:E.hostname,path:`${E.pathname}${E.search}`,port:E.port,method:A.method,headers:A.headers.toJSON({preserveCase:!0}),...A.requestOverrides};return new Promise((F,Y)=>{let J=I?Fz.default.request(D,F):Yz.default.request(D,F);if(J.once("error",(G)=>{Y(new z5.RestError(G.message,{code:G.code??z5.RestError.REQUEST_SEND_ERROR,request:A}))}),Q.signal.addEventListener("abort",()=>{let G=new Gd.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");J.destroy(G),Y(G)}),B&&V5(B))B.pipe(J);else if(B)if(typeof B==="string"||Buffer.isBuffer(B))J.end(B);else if(Ud(B))J.end(ArrayBuffer.isView(B)?Buffer.from(B.buffer):Buffer.from(B));else xJ.logger.error("Unrecognized body type",B),Y(new z5.RestError("Unrecognized body type"));else J.end()})}getOrCreateAgent(A,Q){let B=A.disableKeepAlive;if(Q){if(B)return Fz.default.globalAgent;if(!this.cachedHttpAgent)this.cachedHttpAgent=new Fz.default.Agent({keepAlive:!0});return this.cachedHttpAgent}else{if(B&&!A.tlsSettings)return Yz.default.globalAgent;let E=A.tlsSettings??h7A,I=this.cachedHttpsAgents.get(E);if(I&&I.options.keepAlive===!B)return I;return xJ.logger.info("No cached TLS Agent exist, creating a new Agent"),I=new Yz.default.Agent({keepAlive:!B,...E}),this.cachedHttpsAgents.set(E,I),I}}}function S7A(A){let Q=(0,f7A.createHttpHeaders)();for(let B of Object.keys(A.headers)){let E=A.headers[B];if(Array.isArray(E)){if(E.length>0)Q.set(B,E[0])}else if(E)Q.set(B,E)}return Q}function y7A(A,Q){let B=Q.get("Content-Encoding");if(B==="gzip"){let E=Jd.default.createGunzip();re Line truncated
`).join(`
`+C),A.push(I+"m+"+GZ.exports.humanize(this.diff)+"\x1B[0m")}else A[0]=n3A()+Q+" "+A[0]}function n3A(){if(HE.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function a3A(...A){return process.stderr.write(JZ.formatWithOptions(HE.inspectOpts,...A)+`
`)}function s3A(A){if(A)process.env.DEBUG=A;else delete process.env.DEBUG}function o3A(){return process.env.DEBUG}function r3A(A){A.inspectOpts={};let Q=Object.keys(HE.inspectOpts);for(let B=0;B<Q.length;B++)A.inspectOpts[Q[B]]=HE.inspectOpts[Q[B]]}GZ.exports=qz()(HE);var{formatters:xd}=GZ.exports;xd.o=function(A){return this.inspectOpts.colors=this.useColors,JZ.inspect(A,this.inspectOpts).split(`
`).map((Q)=>Q.trim()).join(" ")};xd.O=function(A){return this.inspectOpts.colors=this.useColors,JZ.inspect(A,this.inspectOpts)}});var NZ=K((obA,jz)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)jz.exports=fd();else jz.exports=hd()});var _d=K((hI)=>{var t3A=hI&&hI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),e3A=hI&&hI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),Sd=hI&&hI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))t3A(Q,A,B)}return e3A(Q,A),Q};Object.defineProperty(hI,"__esModule",{value:!0});hI.req=hI.json=hI.toBuffer=void 0;var A$A=Sd(require("http")),Q$A=Sd(require("https"));async function yd(A){let Q=0,B=[];for await(let E of A)Q+=E.length,B.push(E);return Buffer.concat(B,Q)}hI.toBuffer=yd;async function B$A(A){let B=(await yd(A)).toString("utf8");try{return JSON.parse(B)}catch(E){let I=E;throw I.message+=` (input: ${B})`,I}}hI.json=B$A;function E$A(A,Q={}){let E=((typeof A==="string"?A:A.href).startsWith("https:")?Q$A:A$A).request(A,Q),I=new Promise((C,D)=>{E.once("response",C).once("error",D).end()});return E.then=I.then.bind(I),E}hI.req=E$A});var dd=K((QC)=>{var bd=QC&&QC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),I$A=QC&&QC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),ud=QC&&QC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))bd(Q,A,B)}return I$A(Q,A),Q},C$A=QC&&QC.__exportStar||function(A,Q){for(var B in A)if(B!=="default"&&!Object.prototype.hasOwnProperty.call(Q,B))bd(Q,A,B)};Object.defineProperty(QC,"__esModule",{value:!0});QC.Agent=void 0;var D$A=ud(require("net")),vd=ud(require("http")),F$A=require("https");C$A(_d(),QC);var k0=Symbol("AgentBaseInternalState");class md extends vd.Agent{constructor(A){super(A);this[k0]={}}isSecureEndpoint(A){if(A){if(typeof A.secureEndpoint==="boolean")return A.secureEndpoint;if(typeof A.protocol==="string")return A.protocol==="https:"}let{stack:Q}=Error();if(typeof Q!=="string")return!1;return Q.split(`
`).some((B)=>B.indexOf("(https.js:")!==-1||B.indexOf("node:https:")!==-1)}incrementSockets(A){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[A])this.sockets[A]=[];let Q=new D$A.Socket({writable:!1});return this.sockets[A].push(Q),this.totalSocketCount++,Q}decrementSockets(A,Q){if(!this.sockets[A]||Q===null)return;let B=this.sockets[A],E=B.indexOf(Q);if(E!==-1){if(B.splice(E,1),this.totalSocketCount--,B.length===0)delete this.sockets[A]}}getName(A){if(this.isSecureEndpoint(A))return F$A.Agent.prototype.getName.call(this,A);return super.getName(A)}createSocket(A,Q,B){let E={...Q,secureEndpoint:this.isSecureEndpoint(Q)},I=this.getName(E),C=this.incrementSockets(I);Promise.resolve().then(()=>this.connect(A,E)).then((D)=>{if(this.decrementSockets(I,C),D instanceof vd.Agent)try{return D.addRequest(A,E)}catch(F){return B(F)}this[k0].currentSocket=D,super.createSocket(A,Q,B)},(D)=>{this.decrementSockets(I,C),B(D)})}createConnection(){let A=this[k0].currentSocket;if(this[k0].currentSocket=void 0,!A)throw Error("No socket was returned in the `connect()` function");return A}get defaultPort(){return this[k0].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(A){if(this[k0])this[k0].defaultPort=A}get protocol(){return this[k0].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(A){if(this[k0])this[k0].protocol=A}}QC.Agent=md});var cd=K((pJ)=>{var Y$A=pJ&&pJ.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(pJ,"__esModule",{value:!0});pJ.parseProxyResponse=void 0;var J$A=Y$A(NZ()),UZ=(0,J$A.default)("https-proxy-agent:parse-proxy-response");function G$A(A){return new Promise((Q,B)=>{let E=0,I=[];function C(){let G=A.read();if(G)J(G);else A.once("readable",C)}function D(){A.removeListener("end",F),A.removeListener("error",Y),A.removeListener("readable",C)}function F(){D(),UZ("onend"),B(Error("Proxy connection ended before receiving CONNECT response"))}function Y(G){D(),UZ("onerror %o",G),B(G)}function J(G){I.push(G),E+=G.length;let N=Buffer.concat(I,E),U=N.indexOf(`\r
\r
`);if(U===-1){UZ("have not received end of HTTP headers yet..."),C();return}let Z=N.slice(0,U).toString("ascii").split(`\r
`),X=Z.shift();if(!X)return A.destroy(),B(Error("No header received from proxy CONNECT response"));let $=X.split(" "),V=+$[1],w=$.slice(2).join(" "),g={};for(let M of Z){if(!M)continue;let k=M.indexOf(":");if(k===-1)return A.destroy(),B(Error(`Invalid header from proxy CONNECT response: "${M}"`));let d=M.slice(0,k).toLowerCase(),t=M.slice(k+1).trimStart(),m=g[d];if(typeof m==="string")g[d]=[m,t];else if(Array.isArray(m))m.push(t);else g[d]=t}UZ("got proxy server response: %o %o",X,g),D(),Q({connect:{statusCode:V,statusText:w,headers:g},buffered:N})}A.on("error",Y),A.on("end",F),C()})}pJ.parseProxyResponse=G$A});var sd=K((PC)=>{var N$A=PC&&PC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),U$A=PC&&PC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),nd=PC&&PC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))N$A(Q,A,B)}return U$A(Q,A),Q},ad=PC&&PC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(PC,"__esModule",{value:!0});PC.HttpsProxyAgent=void 0;var ZZ=nd(require("net")),ld=nd(require("tls")),Z$A=ad(require("assert")),W$A=ad(NZ()),X$A=dd(),$$A=require("url"),K$A=cd(),M5=(0,W$A.default)("https-proxy-agent"),pd=(A)=>{if(A.servername===void 0&&A.host&&!ZZ.isIP(A.host))return{...A,servername:A.host};return A};class Pz extends X$A.Agent{constructor(A,Q){super(Q);this.options={path:void 0},this.proxy=typeof A==="string"?new $$A.URL(A):A,this.proxyHeaders=Q?.headers??{},M5("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let B=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),E=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...Q?id(Q,"headers"):null,host:B,port:E}}async connect(A,Q){let{proxy:B}=this;if(!Q.host)throw TypeError('No "host" provided');let E;if(B.protocol==="https:")M5("Creating `tls.Socket`: %o",this.connectOpts),E=ld.connect(pd(this.connectOpts));else M5("Creating `net.Socket`: %o",this.connectOpts),E=ZZ.connect(this.connectOpts);let I=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},C=ZZ.isIPv6(Q.host)?`[${Q.host}]`:Q.host,D=`CONNECT ${C}:${Q.port} HTTP/1.1\r
`;if(B.username||B.password){let N=`${decodeURIComponent(B.username)}:${decodeURIComponent(B.password)}`;I["Proxy-Authorization"]=`Basic ${Buffer.from(N).toString("base64")}`}if(I.Host=`${C}:${Q.port}`,!I["Proxy-Connection"])I["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let N of Object.keys(I))D+=`${N}: ${I[N]}\r
`;let F=(0,K$A.parseProxyResponse)(E);E.write(`${D}\r
`);let{connect:Y,buffered:J}=await F;if(A.emit("proxyConnect",Y),this.emit("proxyConnect",Y,A),Y.statusCode===200){if(A.once("socket",L$A),Q.secureEndpoint)return M5("Upgrading socket connection to TLS"),ld.connect({...id(pd(Q),"host","path","port"),socket:E});return E}E.destroy();let G=new ZZ.Socket({writable:!1});return G.readable=!0,A.once("socket",(N)=>{M5("Replaying proxy buffer for failed request"),(0,Z$A.default)(N.listenerCount("data")>0),N.push(J),N.push(null)}),G}}Pz.protocols=["http","https"];PC.HttpsProxyAgent=Pz;function L$A(A){A.resume()}function id(A,...Q){let B={},E;for(E in A)if(!Q.includes(E))B[E]=A[E];return B}});var td=K((SI)=>{var V$A=SI&&SI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),z$A=SI&&SI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),od=SI&&SI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))V$A(Q,A,B)}return z$A(Q,A),Q};Object.defineProperty(SI,"__esModule",{value:!0});SI.req=SI.json=SI.toBuffer=void 0;var H$A=od(require("http")),w$A=od(require("https"));async function rd(A){let Q=0,B=[];for await(let E of A)Q+=E.length,B.push(E);return Buffer.concat(B,Q)}SI.toBuffer=rd;async function M$A(A){let B=(await rd(A)).toString("utf8");try{return JSON.parse(B)}catch(E){let I=E;throw I.message+=` (input: ${B})`,I}}SI.json=M$A;function R$A(A,Q={}){let E=((typeof A==="string"?A:A.href).startsWith("https:")?w$A:H$A).request(A,Q),I=new Promise((C,D)=>{E.once("response",C).once("error",D).end()});return E.then=I.then.bind(I),E}SI.req=R$A});var Ec=K((BC)=>{var Ac=BC&&BC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),g$A=BC&&BC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),Qc=BC&&BC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))Ac(Q,A,B)}return g$A(Q,A),Q},T$A=BC&&BC.__exportStar||function(A,Q){for(var B in A)if(B!=="default"&&!Object.prototype.hasOwnProperty.call(Q,B))Ac(Q,A,B)};Object.defineProperty(BC,"__esModule",{value:!0});BC.Agent=void 0;var O$A=Qc(require("net")),ed=Qc(require("http")),q$A=require("https");T$A(td(),BC);var f0=Symbol("AgentBaseInternalState");class Bc extends ed.Agent{constructor(A){super(A);this[f0]={}}isSecureEndpoint(A){if(A){if(typeof A.secureEndpoint==="boolean")return A.secureEndpoint;if(typeof A.protocol==="string")return A.protocol==="https:"}let{stack:Q}=Error();if(typeof Q!=="string")return!1;return Q.split(`
`).some((B)=>B.indexOf("(https.js:")!==-1||B.indexOf("node:https:")!==-1)}incrementSockets(A){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[A])this.sockets[A]=[];let Q=new O$A.Socket({writable:!1});return this.sockets[A].push(Q),this.totalSocketCount++,Q}decrementSockets(A,Q){if(!this.sockets[A]||Q===null)return;let B=this.sockets[A],E=B.indexOf(Q);if(E!==-1){if(B.splice(E,1),this.totalSocketCount--,B.length===0)delete this.sockets[A]}}getName(A){if(this.isSecureEndpoint(A))return q$A.Agent.prototype.getName.call(this,A);return super.getName(A)}createSocket(A,Q,B){let E={...Q,secureEndpoint:this.isSecureEndpoint(Q)},I=this.getName(E),C=this.incrementSockets(I);Promise.resolve().then(()=>this.connect(A,E)).then((D)=>{if(this.decrementSockets(I,C),D instanceof ed.Agent)try{return D.addRequest(A,E)}catch(F){return B(F)}this[f0].currentSocket=D,super.createSocket(A,Q,B)},(D)=>{this.decrementSockets(I,C),B(D)})}createConnection(){let A=this[f0].currentSocket;if(this[f0].currentSocket=void 0,!A)throw Error("No socket was returned in the `connect()` function");return A}get defaultPort(){return this[f0].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(A){if(this[f0])this[f0].defaultPort=A}get protocol(){return this[f0].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(A){if(this[f0])this[f0].protocol=A}}BC.Agent=Bc});var Dc=K((kC)=>{var j$A=kC&&kC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),P$A=kC&&kC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),Cc=kC&&kC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))j$A(Q,A,B)}return P$A(Q,A),Q},k$A=kC&&kC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(kC,"__esModule",{value:!0});kC.HttpProxyAgent=void 0;var f$A=Cc(require("net")),x$A=Cc(require("tls")),h$A=k$A(NZ()),S$A=require("events"),y$A=Ec(),Ic=require("url"),iJ=(0,h$A.default)("http-proxy-agent");class kz extends y$A.Agent{constructor(A,Q){super(Q);this.proxy=typeof A==="string"?new Ic.URL(A):A,this.proxyHeaders=Q?.headers??{},iJ("Creating new HttpProxyAgent instance: %o",this.proxy.href);let B=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),E=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...Q?_$A(Q,"headers"):null,host:B,port:E}}addRequest(A,Q){A._header=null,this.setRequestProps(A,Q),super.addRequest(A,Q)}setRequestProps(A,Q){let{proxy:B}=this,E=Q.secureEndpoint?"https:":"http:",I=A.getHeader("host")||"localhost",C=`${E}//${I}`,D=new Ic.URL(A.path,C);if(Q.port!==80)D.port=String(Q.port);A.path=String(D);let F=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(B.username||B.password){let Y=`${decodeURIComponent(B.username)}:${decodeURIComponent(B.password)}`;F["Proxy-Authorization"]=`Basic ${Buffer.from(Y).toString("base64")}`}if(!F["Proxy-Connection"])F["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let Y of Object.keys(F)){let J=F[Y];if(J)A.setHeader(Y,J)}}async connect(A,Q){if(A._header=null,!A.path.includes("://"))this.setRequestProps(A,Q);let B,E;if(iJ("Regenerating stored HTTP header string for request"),A._implicitHeader(),A.outputData&&A.outputData.length>0)iJ("Patching connection write() output buffer with updated header"),B=A.outputData[0].data,E=B.indexOf(`\r
\r
`)+4,A.outputData[0].data=A._header+B.substring(E),iJ("Output buffer: %o",A.outputData[0].data);let I;if(this.proxy.protocol==="https:")iJ("Creating `tls.Socket`: %o",this.connectOpts),I=x$A.connect(this.connectOpts);else iJ("Creating `net.Socket`: %o",this.connectOpts),I=f$A.connect(this.connectOpts);return await(0,S$A.once)(I,"connect"),I}}kz.protocols=["http","https"];kC.HttpProxyAgent=kz;function _$A(A,...Q){let B={},E;for(E in A)if(!Q.includes(E))B[E]=A[E];return B}});var fz=K((fC)=>{Object.defineProperty(fC,"__esModule",{value:!0});fC.globalNoProxyList=fC.proxyPolicyName=void 0;fC.loadNoProxy=Nc;fC.getDefaultProxySettings=n$A;fC.proxyPolicy=s$A;var v$A=sd(),b$A=Dc(),u$A=L5(),m$A="HTTPS_PROXY",d$A="HTTP_PROXY",c$A="ALL_PROXY",l$A="NO_PROXY";fC.proxyPolicyName="proxyPolicy";fC.globalNoProxyList=[];var Jc=!1,p$A=new Map;function WZ(A){if(process.env[A])return process.env[A];else if(process.env[A.toLowerCase()])return process.env[A.toLowerCase()];return}function Gc(){if(!process)return;let A=WZ(m$A),Q=WZ(c$A),B=WZ(d$A);return A||Q||B}function i$A(A,Q,B){if(Q.length===0)return!1;let E=new URL(A).hostname;if(B?.has(E))return B.get(E);let I=!1;for(let C of Q)if(C[0]==="."){if(E.endsWith(C))I=!0;else if(E.length===C.length-1&&E===C.slice(1))I=!0}else if(E===C)I=!0;return B?.set(E,I),I}function Nc(){let A=WZ(l$A);if(Jc=!0,A)return A.split(",").map((Q)=>Q.trim()).filter((Q)=>Q.length);return[]}function n$A(A){if(!A){if(A=Gc(),!A)return}let Q=new URL(A);return{host:(Q.protocol?Q.protocol+"//":"")+Q.hostname,port:Number.parseInt(Q.port||"80"),username:Q.username,password:Q.password}}function a$A(){let A=Gc();return A?new URL(A):void 0}function Fc(A){let Q;try{Q=new URL(A.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${A.host}".`)}if(Q.port=String(A.port),A.username)Q.username=A.username;if(A.password)Q.password=A.password;return Q}function Yc(A,Q,B){if(A.agent)return;let I=new URL(A.url).protocol!=="https:";if(A.tlsSettings)u$A.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let C=A.headers.toJSON();if(I){if(!Q.httpProxyAgent)Q.httpProxyAgent=new b$A.HttpProxyAgent(B,{headers:C});A.agent=Q.httpProxyAgent}else{if(!Q.httpsProxyAgent)Q.httpsProxyAgent=new v$A.HttpsProxyAgent(B,{headers:C});A.agent=Q.httpsProxyAgent}}function s$A(A,Q){if(!Jc)fC.globalNoProxyList.push(...Nc());let B=A?Fc(A):a$A(),E={};return{name:fC.proxyPolicyName,async sendRequest(I,C){if(!I.proxySettings&&B&&!i$A(I.url,Q?.customNoProxyList??fC.globalNoProxyList,Q?.customNoProxyList?void 0:p$A))Yc(I,E,B);else if(I.proxySettings)Yc(I,E,Fc(I.proxySettings));return C(I)}}}});var xz=K((nJ)=>{Object.defineProperty(nJ,"__esModule",{value:!0});nJ.agentPolicyName=void 0;nJ.agentPolicy=o$A;nJ.agentPolicyName="agentPolicy";function o$A(A){return{name:nJ.agentPolicyName,sendRequest:async(Q,B)=>{if(!Q.agent)Q.agent=A;return B(Q)}}}});var hz=K((aJ)=>{Object.defineProperty(aJ,"__esModule",{value:!0});aJ.tlsPolicyName=void 0;aJ.tlsPolicy=r$A;aJ.tlsPolicyName="tlsPolicy";function r$A(A){return{name:aJ.tlsPolicyName,sendRequest:async(Q,B)=>{if(!Q.tlsSettings)Q.tlsSettings=A;return B(Q)}}}});var R5=K((q1)=>{Object.defineProperty(q1,"__esModule",{value:!0});q1.isNodeReadableStream=Uc;q1.isWebReadableStream=Zc;q1.isBinaryBody=t$A;q1.isReadableStream=Wc;q1.isBlob=e$A;function Uc(A){return Boolean(A&&typeof A.pipe==="function")}function Zc(A){return Boolean(A&&typeof A.getReader==="function"&&typeof A.tee==="function")}function t$A(A){return A!==void 0&&(A instanceof Uint8Array||Wc(A)||typeof A==="function"||A instanceof Blob)}function Wc(A){return Uc(A)||Zc(A)}function e$A(A){return typeof A.stream==="function"}});var Kc=K((yz)=>{Object.defineProperty(yz,"__esModule",{value:!0});yz.concat=EKA;var Sz=require("stream"),AKA=R5();async function*Xc(){let A=this.getReader();try{while(!0){let{done:Q,value:B}=await A.read();if(Q)return;yield B}}finally{A.releaseLock()}}function QKA(A){if(!A[Symbol.asyncIterator])A[Symbol.asyncIterator]=Xc.bind(A);if(!A.values)A.values=Xc.bind(A)}function $c(A){if(A instanceof ReadableStream)return QKA(A),Sz.Readable.fromWeb(A);else return A}function BKA(A){if(A instanceof Uint8Array)return Sz.Readable.from(Buffer.from(A));else if((0,AKA.isBlob)(A))return $c(A.stream());else return $c(A)}async function EKA(A){return function(){let Q=A.map((B)=>typeof B==="function"?B():B).map(BKA);return Sz.Readable.from(async function*(){for(let B of Q)for await(let E of B)yield E}())}}});var _z=K((oJ)=>{Object.defineProperty(oJ,"__esModule",{value:!0});oJ.multipartPolicyName=void 0;oJ.multipartPolicy=XKA;var sJ=g1(),IKA=R5(),CKA=i2(),DKA=Kc();function FKA(){return`----AzSDKFormBoundary${(0,CKA.randomUUID)()}`}function YKA(A){let Q="";for(let[B,E]of A)Q+=`${B}: ${E}\r
`;return Q}function JKA(A){if(A instanceof Uint8Array)return A.byteLength;else if((0,IKA.isBlob)(A))return A.size===-1?void 0:A.size;else return}function GKA(A){let Q=0;for(let B of A){let E=JKA(B);if(E===void 0)return;else Q+=E}return Q}async function NKA(A,Q,B){let E=[(0,sJ.stringToUint8Array)(`--${B}`,"utf-8"),...Q.flatMap((C)=>[(0,sJ.stringToUint8Array)(`\r
`,"utf-8"),(0,sJ.stringToUint8Array)(YKA(C.headers),"utf-8"),(0,sJ.stringToUint8Array)(`\r
`,"utf-8"),C.body,(0,sJ.stringToUint8Array)(`\r
--${B}`,"utf-8")]),(0,sJ.stringToUint8Array)(`--\r
\r
`,"utf-8")],I=GKA(E);if(I)A.headers.set("Content-Length",I);A.body=await(0,DKA.concat)(E)}oJ.multipartPolicyName="multipartPolicy";var UKA=70,ZKA=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function WKA(A){if(A.length>UKA)throw Error(`Multipart boundary "${A}" exceeds maximum length of 70 characters`);if(Array.from(A).some((Q)=>!ZKA.has(Q)))throw Error(`Multipart boundary "${A}" contains invalid characters`)}function XKA(){return{name:oJ.multipartPolicyName,async sendRequest(A,Q){if(!A.multipartBody)return Q(A);if(A.body)throw Error("multipartBody and regular body cannot be set at the same time");let B=A.multipartBody.boundary,E=A.headers.get("Content-Type")??"multipart/mixed",I=E.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!I)throw Error(`Got multipart request body, but content-type header was not multipart: ${E}`);let[,C,D]=I;if(D&&B&&D!==B)throw Error(`Multipart boundary was specified as ${D} in the header, but got ${B} in the request body`);if(B??=D,B)WKA(B);else B=FKA();return A.headers.set("Content-Type",`${C}; boundary=${B}`),await NKA(A,A.multipartBody.parts,B),A.multipartBody=void 0,Q(A)}}}});var zc=K((vz)=>{Object.defineProperty(vz,"__esModule",{value:!0});vz.createPipelineFromOptions=TKA;var $KA=Zz(),KKA=Bz(),LKA=Wz(),VKA=Kz(),zKA=Lz(),HKA=Tz(),wKA=Oz(),Lc=w5(),MKA=fz(),RKA=xz(),gKA=hz(),Vc=_z();function TKA(A){let Q=(0,KKA.createEmptyPipeline)();if(Lc.isNodeLike){if(A.agent)Q.addPolicy((0,RKA.agentPolicy)(A.agent));if(A.tlsOptions)Q.addPolicy((0,gKA.tlsPolicy)(A.tlsOptions));Q.addPolicy((0,MKA.proxyPolicy)(A.proxyOptions)),Q.addPolicy((0,zKA.decompressResponsePolicy)())}if(Q.addPolicy((0,wKA.formDataPolicy)(),{beforePolicies:[Vc.multipartPolicyName]}),Q.addPolicy((0,VKA.userAgentPolicy)(A.userAgentOptions)),Q.addPolicy((0,Vc.multipartPolicy)(),{afterPhase:"Deserialize"}),Q.addPolicy((0,HKA.defaultRetryPolicy)(A.retryOptions),{phase:"Retry"}),Lc.isNodeLike)Q.addPolicy((0,LKA.redirectPolicy)(A.redirectOptions),{afterPhase:"Retry"});return Q.addPolicy((0,$KA.logPolicy)(A.loggingOptions),{afterPhase:"Sign"}),Q}});var Hc=K((rJ)=>{Object.defineProperty(rJ,"__esModule",{value:!0});rJ.apiVersionPolicyName=void 0;rJ.apiVersionPolicy=OKA;rJ.apiVersionPolicyName="ApiVersionPolicy";function OKA(A){return{name:rJ.apiVersionPolicyName,sendRequest:(Q,B)=>{let E=new URL(Q.url);if(!E.searchParams.get("api-version")&&A.apiVersion)Q.url=`${Q.url}${Array.from(E.searchParams.keys()).length>0?"&":"?"}api-version=${A.apiVersion}`;return B(Q)}}}});var wc=K((tJ)=>{Object.defineProperty(tJ,"__esModule",{value:!0});tJ.isOAuth2TokenCredential=qKA;tJ.isBearerTokenCredential=jKA;tJ.isBasicCredential=PKA;tJ.isApiKeyCredential=kKA;function qKA(A){return"getOAuth2Token"in A}function jKA(A){return"getBearerToken"in A}function PKA(A){return"username"in A&&"password"in A}function kKA(A){return"key"in A}});var g5=K((bz)=>{Object.defineProperty(bz,"__esModule",{value:!0});bz.ensureSecureConnection=SKA;var fKA=L5(),Mc=!1;function xKA(A,Q){if(Q.allowInsecureConnection&&A.allowInsecureConnection){let B=new URL(A.url);if(B.hostname==="localhost"||B.hostname==="127.0.0.1")return!0}return!1}function hKA(){if(fKA.logger.warning("Sending token over insecure transport. Assume any token issued is compromised."),typeof process?.emitWarning==="function"&&!Mc)Mc=!0,process.emitWarning("Sending token over insecure transport. Assume any token issued is compromised.")}function SKA(A,Q){if(!A.url.toLowerCase().startsWith("https://"))if(xKA(A,Q))hKA();else throw Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var Rc=K((eJ)=>{Object.defineProperty(eJ,"__esModule",{value:!0});eJ.apiKeyAuthenticationPolicyName=void 0;eJ.apiKeyAuthenticationPolicy=_KA;var yKA=g5();eJ.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function _KA(A){return{name:eJ.apiKeyAuthenticationPolicyName,async sendRequest(Q,B){(0,yKA.ensureSecureConnection)(Q,A);let E=(Q.authSchemes??A.authSchemes)?.find((I)=>I.kind==="apiKey");if(!E)return B(Q);if(E.apiKeyLocation!=="header")throw Error(`Unsupported API key location: ${E.apiKeyLocation}`);return Q.headers.set(E.name,A.credential.key),B(Q)}}}});var Tc=K((AG)=>{Object.defineProperty(AG,"__esModule",{value:!0});AG.basicAuthenticationPolicyName=void 0;AG.basicAuthenticationPolicy=bKA;var gc=g1(),vKA=g5();AG.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function bKA(A){return{name:AG.basicAuthenticationPolicyName,async sendRequest(Q,B){if((0,vKA.ensureSecureConnection)(Q,A),!(Q.authSchemes??A.authSchemes)?.find((F)=>F.kind==="http"&&F.scheme==="basic"))return B(Q);let{username:I,password:C}=A.credential,D=(0,gc.uint8ArrayToString)((0,gc.stringToUint8Array)(`${I}:${C}`,"utf-8"),"base64");return Q.headers.set("Authorization",`Basic ${D}`),B(Q)}}}});var Oc=K((QG)=>{Object.defineProperty(QG,"__esModule",{value:!0});QG.bearerAuthenticationPolicyName=void 0;QG.bearerAuthenticationPolicy=mKA;var Line truncated
`).join("")}return Q(A)}}}});var Jp=K((x1)=>{Object.defineProperty(x1,"__esModule",{value:!0});x1.auxiliaryAuthenticationHeaderPolicyName=void 0;x1.auxiliaryAuthenticationHeaderPolicy=$HA;var ZHA=xH(),WHA=O5();x1.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var Yp="x-ms-authorization-auxiliary";async function XHA(A){let{scopes:Q,getAccessToken:B,request:E}=A,I={abortSignal:E.abortSignal,tracingOptions:E.tracingOptions};return(await B(Q,I))?.token??""}function $HA(A){let{credentials:Q,scopes:B}=A,E=A.logger||WHA.logger,I=new WeakMap;return{name:x1.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(C,D){if(!C.url.toLowerCase().startsWith("https://"))throw Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!Q||Q.length===0)return E.info(`${x1.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),D(C);let F=[];for(let J of Q){let G=I.get(J);if(!G)G=(0,ZHA.createTokenCycler)(J),I.set(J,G);F.push(XHA({scopes:Array.isArray(B)?B:[B],request:C,getAccessToken:G,logger:E}))}let Y=(await Promise.all(F)).filter((J)=>Boolean(J));if(Y.length===0)return E.warning(`None of the auxiliary tokens are valid. ${Yp} header will not be set.`),D(C);return C.headers.set(Yp,Y.map((J)=>`Bearer ${J}`).join(", ")),D(C)}}}});var EE=K((WA)=>{Object.defineProperty(WA,"__esModule",{value:!0});WA.createFileFromStream=WA.createFile=WA.agentPolicyName=WA.agentPolicy=WA.auxiliaryAuthenticationHeaderPolicyName=WA.auxiliaryAuthenticationHeaderPolicy=WA.ndJsonPolicyName=WA.ndJsonPolicy=WA.bearerTokenAuthenticationPolicyName=WA.bearerTokenAuthenticationPolicy=WA.formDataPolicyName=WA.formDataPolicy=WA.tlsPolicyName=WA.tlsPolicy=WA.userAgentPolicyName=WA.userAgentPolicy=WA.defaultRetryPolicy=WA.tracingPolicyName=WA.tracingPolicy=WA.retryPolicy=WA.throttlingRetryPolicyName=WA.throttlingRetryPolicy=WA.systemErrorRetryPolicyName=WA.systemErrorRetryPolicy=WA.redirectPolicyName=WA.redirectPolicy=WA.getDefaultProxySettings=WA.proxyPolicyName=WA.proxyPolicy=WA.multipartPolicyName=WA.multipartPolicy=WA.logPolicyName=WA.logPolicy=WA.setClientRequestIdPolicyName=WA.setClientRequestIdPolicy=WA.exponentialRetryPolicyName=WA.exponentialRetryPolicy=WA.decompressResponsePolicyName=WA.decompressResponsePolicy=WA.isRestError=WA.RestError=WA.createPipelineRequest=WA.createHttpHeaders=WA.createDefaultHttpClient=WA.createPipelineFromOptions=WA.createEmptyPipeline=void 0;var KHA=oz();Object.defineProperty(WA,"createEmptyPipeline",{enumerable:!0,get:function(){return KHA.createEmptyPipeline}});var LHA=pl();Object.defineProperty(WA,"createPipelineFromOptions",{enumerable:!0,get:function(){return LHA.createPipelineFromOptions}});var VHA=il();Object.defineProperty(WA,"createDefaultHttpClient",{enumerable:!0,get:function(){return VHA.createDefaultHttpClient}});var zHA=nl();Object.defineProperty(WA,"createHttpHeaders",{enumerable:!0,get:function(){return zHA.createHttpHeaders}});var HHA=al();Object.defineProperty(WA,"createPipelineRequest",{enumerable:!0,get:function(){return HHA.createPipelineRequest}});var Gp=xZ();Object.defineProperty(WA,"RestError",{enumerable:!0,get:function(){return Gp.RestError}});Object.defineProperty(WA,"isRestError",{enumerable:!0,get:function(){return Gp.isRestError}});var Np=UH();Object.defineProperty(WA,"decompressResponsePolicy",{enumerable:!0,get:function(){return Np.decompressResponsePolicy}});Object.defineProperty(WA,"decompressResponsePolicyName",{enumerable:!0,get:function(){return Np.decompressResponsePolicyName}});var Up=ol();Object.defineProperty(WA,"exponentialRetryPolicy",{enumerable:!0,get:function(){return Up.exponentialRetryPolicy}});Object.defineProperty(WA,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return Up.exponentialRetryPolicyName}});var Zp=KH();Object.defineProperty(WA,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return Zp.setClientRequestIdPolicy}});Object.defineProperty(WA,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return Zp.setClientRequestIdPolicyName}});var Wp=tz();Object.defineProperty(WA,"logPolicy",{enumerable:!0,get:function(){return Wp.logPolicy}});Object.defineProperty(WA,"logPolicyName",{enumerable:!0,get:function(){return Wp.logPolicyName}});var Xp=NH();Object.defineProperty(WA,"multipartPolicy",{enumerable:!0,get:function(){return Xp.multipartPolicy}});Object.defineProperty(WA,"multipartPolicyName",{enumerable:!0,get:function(){return Xp.multipartPolicyName}});var hH=$H();Object.defineProperty(WA,"proxyPolicy",{enumerable:!0,get:function(){return hH.proxyPolicy}});Object.defineProperty(WA,"proxyPolicyName",{enumerable:!0,get:function(){return hH.proxyPolicyName}});Object.defineProperty(WA,"getDefaultProxySettings",{enumerable:!0,get:function(){return hH.getDefaultProxySettings}});var $p=ez();Object.defineProperty(WA,"redirectPolicy",{enumerable:!0,get:function(){return $p.redirectPolicy}});Object.defineProperty(WA,"redirect Line truncated
`&&L[S]!=="\r";S++)f+=L[S];if(f=f.trim(),f[f.length-1]==="/"&&(f=f.substring(0,f.length-1),S--),!C(f)){let r;return r=f.trim().length===0?"Invalid space after '<'.":"Tag '"+f+"' is an invalid name.",w("InvalidTag",r,M(L,S))}let v=Z(L,S);if(v===!1)return w("InvalidAttr","Attributes for '"+f+"' have open quote.",M(L,S));let a=v.value;if(S=v.index,a[a.length-1]==="/"){let r=S-a.length;a=a.substring(0,a.length-1);let $A=$(a,H);if($A!==!0)return w($A.err.code,$A.err.msg,M(L,r+$A.err.line));h=!0}else if(q){if(!v.tagClosed)return w("InvalidTag","Closing tag '"+f+"' doesn't have proper closing.",M(L,S));if(a.trim().length>0)return w("InvalidTag","Closing tag '"+f+"' can't have attributes or invalid starting.",M(L,z));if(j.length===0)return w("InvalidTag","Closing tag '"+f+"' has not been opened.",M(L,z));{let r=j.pop();if(f!==r.tagName){let $A=M(L,r.tagStartPos);return w("InvalidTag","Expected closing tag '"+r.tagName+"' (opened in line "+$A.line+", col "+$A.col+") instead of closing tag '"+f+"'.",M(L,z))}j.length==0&&(P=!0)}}else{let r=$(a,H);if(r!==!0)return w(r.err.code,r.err.msg,M(L,S-a.length+r.err.line));if(P===!0)return w("InvalidXml","Multiple possible root nodes found.",M(L,S));H.unpairedTags.indexOf(f)!==-1||j.push({tagName:f,tagStartPos:z}),h=!0}for(S++;S<L.length;S++)if(L[S]==="<"){if(L[S+1]==="!"){S++,S=G(L,S);continue}if(L[S+1]!=="?")break;if(S=J(L,++S),S.err)return S}else if(L[S]==="&"){let r=V(L,S);if(r==-1)return w("InvalidChar","char '&' is not expected.",M(L,S));S=r}else if(P===!0&&!Y(L[S]))return w("InvalidXml","Extra text at the end",M(L,S));L[S]==="<"&&S--}}}return h?j.length==1?w("InvalidTag","Unclosed tag '"+j[0].tagName+"'.",M(L,j[0].tagStartPos)):!(j.length>0)||w("InvalidXml","Invalid '"+JSON.stringify(j.map((S)=>S.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):w("InvalidXml","Start tag expected.",1)}function Y(L){return L===" "||L==="\t"||L===`
`||L==="\r"}function J(L,H){let j=H;for(;H<L.length;H++)if(L[H]!="?"&&L[H]!=" ");else{let h=L.substr(j,H-j);if(H>5&&h==="xml")return w("InvalidXml","XML declaration allowed only at the start of the document.",M(L,H));if(L[H]=="?"&&L[H+1]==">"){H++;break}}return H}function G(L,H){if(L.length>H+5&&L[H+1]==="-"&&L[H+2]==="-"){for(H+=3;H<L.length;H++)if(L[H]==="-"&&L[H+1]==="-"&&L[H+2]===">"){H+=2;break}}else if(L.length>H+8&&L[H+1]==="D"&&L[H+2]==="O"&&L[H+3]==="C"&&L[H+4]==="T"&&L[H+5]==="Y"&&L[H+6]==="P"&&L[H+7]==="E"){let j=1;for(H+=8;H<L.length;H++)if(L[H]==="<")j++;else if(L[H]===">"&&(j--,j===0))break}else if(L.length>H+9&&L[H+1]==="["&&L[H+2]==="C"&&L[H+3]==="D"&&L[H+4]==="A"&&L[H+5]==="T"&&L[H+6]==="A"&&L[H+7]==="["){for(H+=8;H<L.length;H++)if(L[H]==="]"&&L[H+1]==="]"&&L[H+2]===">"){H+=2;break}}return H}let N='"',U="'";function Z(L,H){let j="",h="",P=!1;for(;H<L.length;H++){if(L[H]===N||L[H]===U)h===""?h=L[H]:h!==L[H]||(h="");else if(L[H]===">"&&h===""){P=!0;break}j+=L[H]}return h===""&&{value:j,index:H,tagClosed:P}}let X=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function $(L,H){let j=I(L,X),h={};for(let P=0;P<j.length;P++){if(j[P][1].length===0)return w("InvalidAttr","Attribute '"+j[P][2]+"' has no space in starting.",k(j[P]));if(j[P][3]!==void 0&&j[P][4]===void 0)return w("InvalidAttr","Attribute '"+j[P][2]+"' is without value.",k(j[P]));if(j[P][3]===void 0&&!H.allowBooleanAttributes)return w("InvalidAttr","boolean attribute '"+j[P][2]+"' is not allowed.",k(j[P]));let S=j[P][2];if(!g(S))return w("InvalidAttr","Attribute '"+S+"' is an invalid name.",k(j[P]));if(h.hasOwnProperty(S))return w("InvalidAttr","Attribute '"+S+"' is repeated.",k(j[P]));h[S]=1}return!0}function V(L,H){if(L[++H]===";")return-1;if(L[H]==="#")return function(h,P){let S=/\d/;for(h[P]==="x"&&(P++,S=/[\da-fA-F]/);P<h.length;P++){if(h[P]===";")return P;if(!h[P].match(S))break}return-1}(L,++H);let j=0;for(;H<L.length;H++,j++)if(!(L[H].match(/\w/)&&j<20)){if(L[H]===";")break;return-1}return H}function w(L,H,j){return{err:{code:L,msg:H,line:j.line||j,col:j.col}}}function g(L){return C(L)}function M(L,H){let j=L.substring(0,H).split(/\r?\n/);return{line:j.length,col:j[j.length-1].length+1}}function k(L){return L.startIndex+L[1].length}let d={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(L,H){return H},attributeValueProcessor:function(L,H){return H},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(L,H,j){return L},captureMetaData:!1},t;t=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class m{constructor(L){this.tagname=L,this.child=[],this[":@"]={}}add(L,H){L==="__proto__"&&(L="#__proto__"),this.child.push({[L]:H})}addChild(L,H){L.tagname==="__proto__"&&(L.tagname="#__proto__"),L[":@"]&&Object.keys(L[":@"]).length>0?this.child.push({[L.tagname]:L.child,":@":L[":@"]}):this.child.push({[L.tagname]:L.child}),H!==void 0&&(this.child[this.child.length-1][t]={startIndex:H})}static getMetaDataSymbol(){return t}}function n(L,H){let j={};if(L[H+3]!=="O"||L[H+4]!=="C"||L[H+5]!=="T"||L[H+6]!=="Y"||L[H+7]!=="P"||L[H+8]!=="E")throw Error("Invalid Tag instead of DOCTYPE");{H+=9;let h=1,P=!1,S=!1,z="";for(;H<L.length;H++)if(L[H]!=="<"||S)if(L[H]===">"){if(S?L[H-1]==="-"&&L[H-2]==="-"&&(S=!1,h--):h--,h===0)break}else L[H]==="["?P=!0:z+=L[H];else{if(P&&i(L,"!ENTITY",H)){let q,f;H+=7,[q,f,H]=x(L,H+1),f.indexOf("&")===-1&&(j[q]={regx:RegExp(`&${q};`,"g"),val:f})}else if(P&&i(L,"!ELEMENT",H)){H+=8;let{index:q}=CA(L,H+1);H=q}else if(P&&i(L,"!ATTLIST",H))H+=8;else if(P&&i(L,"!NOTATION",H)){H+=9;let{index:q}=l(L,H+1);H=q}else{if(!i(L,"!--",H))throw Error("Invalid DOCTYPE");S=!0}h++,z=""}if(h!==0)throw Error("Unclosed DOCTYPE")}return{entities:j,i:H}}let QA=(L,H)=>{for(;H<L.length&&/\s/.test(L[H]);)H++;return H};function x(L,H){H=QA(L,H);let j="";for(;H<L.length&&!/\s/.test(L[H])&&L[H]!=='"'&&L[H]!=="'";)j+=L[H],H++;if(KA(j),H=QA(L,H),L.substring(H,H+6).toUpperCase()==="SYSTEM")throw Error("External entities are not supported");if(L[H]==="%")throw Error("Parameter entities are not supported");let h="";return[H,h]=u(L,H,"entity"),[j,h,--H]}function l(L,H){H=QA(L,H);let j="";for(;H<L.length&&!/\s/.test(L[H]);)j+=L[H],H++;KA(j),H=QA(L,H);let h=L.substring(H,H+6).toUpperCase();if(h!=="SYSTEM"&&h!=="PUBLIC")throw Error(`Expected SYSTEM or PUBLIC, found "${h}"`);H+=h.length,H=QA(L,H);let P=null,S=null;if(h==="PUBLIC")[H,P]=u(L,H,"publicIdentifier"),L[H=QA(L,H)]!=='"'&&L[H]!=="'"||([H,S]=u(L,H,"systemIdentifier"));else if(h==="SYSTEM"&&([H,S]=u(L,H,"systemIdentifier"),!S))throw Error("MissLine truncated
`);let H=new m("!xml"),j=H,h="",P="";for(let S=0;S<L.length;S++)if(L[S]==="<")if(L[S+1]==="/"){let z=e(L,">",S,"Closing Tag is not closed."),q=L.substring(S+2,z).trim();if(this.options.removeNSPrefix){let a=q.indexOf(":");a!==-1&&(q=q.substr(a+1))}this.options.transformTagName&&(q=this.options.transformTagName(q)),j&&(h=this.saveTextToParentTag(h,j,P));let f=P.substring(P.lastIndexOf(".")+1);if(q&&this.options.unpairedTags.indexOf(q)!==-1)throw Error(`Unpaired tag can not be used as closing tag: </${q}>`);let v=0;f&&this.options.unpairedTags.indexOf(f)!==-1?(v=P.lastIndexOf(".",P.lastIndexOf(".")-1),this.tagsNodeStack.pop()):v=P.lastIndexOf("."),P=P.substring(0,v),j=this.tagsNodeStack.pop(),h="",S=z}else if(L[S+1]==="?"){let z=EA(L,S,!1,"?>");if(!z)throw Error("Pi Tag is not closed.");if(h=this.saveTextToParentTag(h,j,P),this.options.ignoreDeclaration&&z.tagName==="?xml"||this.options.ignorePiTags);else{let q=new m(z.tagName);q.add(this.options.textNodeName,""),z.tagName!==z.tagExp&&z.attrExpPresent&&(q[":@"]=this.buildAttributesMap(z.tagExp,P,z.tagName)),this.addChild(j,q,P,S)}S=z.closeIndex+1}else if(L.substr(S+1,3)==="!--"){let z=e(L,"-->",S+4,"Comment is not closed.");if(this.options.commentPropName){let q=L.substring(S+4,z-2);h=this.saveTextToParentTag(h,j,P),j.add(this.options.commentPropName,[{[this.options.textNodeName]:q}])}S=z}else if(L.substr(S+1,2)==="!D"){let z=n(L,S);this.docTypeEntities=z.entities,S=z.i}else if(L.substr(S+1,2)==="!["){let z=e(L,"]]>",S,"CDATA is not closed.")-2,q=L.substring(S+9,z);h=this.saveTextToParentTag(h,j,P);let f=this.parseTextData(q,j.tagname,P,!0,!1,!0,!0);f==null&&(f=""),this.options.cdataPropName?j.add(this.options.cdataPropName,[{[this.options.textNodeName]:q}]):j.add(this.options.textNodeName,f),S=z+2}else{let z=EA(L,S,this.options.removeNSPrefix),q=z.tagName,f=z.rawTagName,v=z.tagExp,a=z.attrExpPresent,r=z.closeIndex;this.options.transformTagName&&(q=this.options.transformTagName(q)),j&&h&&j.tagname!=="!xml"&&(h=this.saveTextToParentTag(h,j,P,!1));let $A=j;$A&&this.options.unpairedTags.indexOf($A.tagname)!==-1&&(j=this.tagsNodeStack.pop(),P=P.substring(0,P.lastIndexOf("."))),q!==H.tagname&&(P+=P?"."+q:q);let ZA=S;if(this.isItStopNode(this.options.stopNodes,P,q)){let VA="";if(v.length>0&&v.lastIndexOf("/")===v.length-1)q[q.length-1]==="/"?(q=q.substr(0,q.length-1),P=P.substr(0,P.length-1),v=q):v=v.substr(0,v.length-1),S=z.closeIndex;else if(this.options.unpairedTags.indexOf(q)!==-1)S=z.closeIndex;else{let hQ=this.readStopNodeData(L,f,r+1);if(!hQ)throw Error(`Unexpected end of ${f}`);S=hQ.i,VA=hQ.tagContent}let SA=new m(q);q!==v&&a&&(SA[":@"]=this.buildAttributesMap(v,P,q)),VA&&(VA=this.parseTextData(VA,q,P,!0,a,!0,!0)),P=P.substr(0,P.lastIndexOf(".")),SA.add(this.options.textNodeName,VA),this.addChild(j,SA,P,ZA)}else{if(v.length>0&&v.lastIndexOf("/")===v.length-1){q[q.length-1]==="/"?(q=q.substr(0,q.length-1),P=P.substr(0,P.length-1),v=q):v=v.substr(0,v.length-1),this.options.transformTagName&&(q=this.options.transformTagName(q));let VA=new m(q);q!==v&&a&&(VA[":@"]=this.buildAttributesMap(v,P,q)),this.addChild(j,VA,P,ZA),P=P.substr(0,P.lastIndexOf("."))}else{let VA=new m(q);this.tagsNodeStack.push(j),q!==v&&a&&(VA[":@"]=this.buildAttributesMap(v,P,q)),this.addChild(j,VA,P,ZA),j=VA}h="",S=r}}else h+=L[S];return H.child};function BA(L,H,j,h){this.options.captureMetaData||(h=void 0);let P=this.options.updateTag(H.tagname,j,H[":@"]);P===!1||(typeof P=="string"?(H.tagname=P,L.addChild(H,h)):L.addChild(H,h))}let HB=function(L){if(this.options.processEntities){for(let H in this.docTypeEntities){let j=this.docTypeEntities[H];L=L.replace(j.regx,j.val)}for(let H in this.lastEntities){let j=this.lastEntities[H];L=L.replace(j.regex,j.val)}if(this.options.htmlEntities)for(let H in this.htmlEntities){let j=this.htmlEntities[H];L=L.replace(j.regex,j.val)}L=L.replace(this.ampEntity.regex,this.ampEntity.val)}return L};function WQ(L,H,j,h){return L&&(h===void 0&&(h=H.child.length===0),(L=this.parseTextData(L,H.tagname,j,!1,!!H[":@"]&&Object.keys(H[":@"]).length!==0,h))!==void 0&&L!==""&&H.add(this.options.textNodeName,L),L=""),L}function NB(L,H,j){let h="*."+j;for(let P in L){let S=L[P];if(h===S||H===S)return!0}return!1}function e(L,H,j,h){let P=L.indexOf(H,j);if(P===-1)throw Error(h);return P+H.length-1}function EA(L,H,j,h=">"){let P=function(r,$A,ZA=">"){let VA,SA="";for(let hQ=$A;hQ<r.length;hQ++){let tQ=r[hQ];if(VA)tQ===VA&&(VA="");else if(tQ==='"'||tQ==="'")VA=tQ;else if(tQ===ZA[0]){if(!ZA[1])return{data:SA,index:hQ};if(r[hQ+1]===ZA[1])return{data:SA,index:hQ}}else tQ==="\t"&&(tQ=" ");SA+=tQ}}(L,H+1,h);if(!P)return;let{data:S,index:z}=P,q=S.search(/\s/),f=S,v=!0;q!==-1&&(f=S.substring(0,q),S=S.substring(q+1).trimStart());let a=f;if(j){let r=f.indexOf(":");r!==-1&&(f=f.substr(r+1),v=f!==P.data.substr(r+1))}return{tagName:f,tagExp:S,closeIndex:z,attrExpPresent:v,rawTagName:a}}function BQ(L,H,j){let h=j,P=1;for(;j<L.length;j++)if(L[j]==="<")if(L[j+1]==="/"){let S=e(L,">",j,`${Line truncated
`),xQ(L,H,"",j)}function xQ(L,H,j,h){let P="",S=!1;for(let z=0;z<L.length;z++){let q=L[z],f=J0(q);if(f===void 0)continue;let v="";if(v=j.length===0?f:`${j}.${f}`,f===H.textNodeName){let ZA=q[f];VQ(v,H)||(ZA=H.tagValueProcessor(f,ZA),ZA=W(ZA,H)),S&&(P+=h),P+=ZA,S=!1;continue}if(f===H.cdataPropName){S&&(P+=h),P+=`<![CDATA[${q[f][0][H.textNodeName]}]]>`,S=!1;continue}if(f===H.commentPropName){P+=h+`<!--${q[f][0][H.textNodeName]}-->`,S=!0;continue}if(f[0]==="?"){let ZA=wA(q[":@"],H),VA=f==="?xml"?"":h,SA=q[f][0][H.textNodeName];SA=SA.length!==0?" "+SA:"",P+=VA+`<${f}${SA}${ZA}?>`,S=!0;continue}let a=h;a!==""&&(a+=H.indentBy);let r=h+`<${f}${wA(q[":@"],H)}`,$A=xQ(q[f],H,v,a);H.unpairedTags.indexOf(f)!==-1?H.suppressUnpairedNode?P+=r+">":P+=r+"/>":$A&&$A.length!==0||!H.suppressEmptyNode?$A&&$A.endsWith(">")?P+=r+`>${$A}${h}</${f}>`:(P+=r+">",$A&&h!==""&&($A.includes("/>")||$A.includes("</"))?P+=h+H.indentBy+$A+h:P+=$A,P+=`</${f}>`):P+=r+"/>",S=!0}return P}function J0(L){let H=Object.keys(L);for(let j=0;j<H.length;j++){let h=H[j];if(L.hasOwnProperty(h)&&h!==":@")return h}}function wA(L,H){let j="";if(L&&!H.ignoreAttributes)for(let h in L){if(!L.hasOwnProperty(h))continue;let P=H.attributeValueProcessor(h,L[h]);P=W(P,H),P===!0&&H.suppressBooleanAttributes?j+=` ${h.substr(H.attributeNamePrefix.length)}`:j+=` ${h.substr(H.attributeNamePrefix.length)}="${P}"`}return j}function VQ(L,H){let j=(L=L.substr(0,L.length-H.textNodeName.length-1)).substr(L.lastIndexOf(".")+1);for(let h in H.stopNodes)if(H.stopNodes[h]===L||H.stopNodes[h]==="*."+j)return!0;return!1}function W(L,H){if(L&&L.length>0&&H.processEntities)for(let j=0;j<H.entities.length;j++){let h=H.entities[j];L=L.replace(h.regex,h.val)}return L}let b={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(L,H){return H},attributeValueProcessor:function(L,H){return H},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function p(L){this.options=Object.assign({},b,L),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=JA(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=LA),this.processTextOrObjNode=NA,this.options.format?(this.indentate=AA,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function NA(L,H,j,h){let P=this.j2x(L,j+1,h.concat(H));return L[this.options.textNodeName]!==void 0&&Object.keys(L).length===1?this.buildTextValNode(L[this.options.textNodeName],H,P.attrStr,j):this.buildObjectNode(P.val,H,P.attrStr,j)}function AA(L){return this.options.indentBy.repeat(L)}function LA(L){return!(!L.startsWith(this.options.attributeNamePrefix)||L===this.options.textNodeName)&&L.substr(this.attrPrefixLen)}p.prototype.build=function(L){return this.options.preserveOrder?_A(L,this.options):(Array.isArray(L)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(L={[this.options.arrayNodeName]:L}),this.j2x(L,0,[]).val)},p.prototype.j2x=function(L,H,j){let h="",P="",S=j.join(".");for(let z in L)if(Object.prototype.hasOwnProperty.call(L,z))if(L[z]===void 0)this.isAttribute(z)&&(P+="");else if(L[z]===null)this.isAttribute(z)||z===this.options.cdataPropName?P+="":z[0]==="?"?P+=this.indentate(H)+"<"+z+"?"+this.tagEndChar:P+=this.indentate(H)+"<"+z+"/"+this.tagEndChar;else if(L[z]instanceof Date)P+=this.buildTextValNode(L[z],z,"",H);else if(typeof L[z]!="object"){let q=this.isAttribute(z);if(q&&!this.ignoreAttributesFn(q,S))h+=this.buildAttrPairStr(q,""+L[z]);else if(!q)if(z===this.options.textNodeName){let f=this.options.tagValueProcessor(z,""+L[z]);P+=this.replaceEntitiesValue(f)}else P+=this.buildTextValNode(L[z],z,"",H)}else if(Array.isArray(L[z])){let q=L[z].length,f="",v="";for(let a=0;a<q;a++){let r=L[z][a];if(r===void 0);else if(r===null)z[0]==="?"?P+=this.indentate(H)+"<"+z+"?"+this.tagEndChar:P+=this.indentate(H)+"<"+z+"/"+this.tagEndChar;else if(typeof r=="object")if(this.options.oneListGroup){let $A=this.j2x(r,H+1,j.concat(z));f+=$A.val,this.options.attributesGroupName&&r.hasOwnProperty(this.options.attributesGroupName)&&(v+=$A.attrStr)}else f+=this.processTextOrObjNode(r,z,H,j);else if(this.options.oneListGroup){let $A=this.options.tagValueProcessor(z,r);$A=this.replaceEntitiesValue($A),f+=$A}else f+=this.buildTextValNode(r,z,"",H)}this.options.oneListGroup&&(f=this.buildObjectNode(f,z,v,H)),P+=f}else if(this.options.attributesGroupName&&z===this.options.attributesGroupName){let q=Object.keys(L[z]),f=q.length;for(let v=0;v<f;v++)h+=this.buildAttrPairStr(q[v],""+L[z][q[v]])}else P+=this.processTextOrObjNode(L[z],z,H,j);return{attrStr:h,val:P}},p.prototype.buildAttrPairStr=function(L,H){return H=this.options.attributeValueProcessor(L,""+H),H=this.replaceEntitiesValue(H),this.options.suppressBooleanAttributes&&H==="true"?" "+L:" "+L+'="'+H+'"'},p.prototype.buildObjectNode=function(L,H,j,h){if(L==="")return H[0]==="?"?this.indentate(h)+"<"+H+j+"?"+this.tagEndChar:this.indentate(h)+"<"+H+j+this.closeTag(H)+this.tagEndChar;{let P="</"+H+this.tagEndChar,S="";return H[0]==="?"&&(S="?",P=""),!j&&j!==""||L.indexOf("<")!==-1?this.options.commentPropName!==!1&&H===this.options.commentPropName&&S.length===0?this.indentate(h)+`<!--${L}-->`+this.newLine:this.indentate(h)+"<"+H+j+S+this.tagEndChar+L+this.indentate(h)+P:this.indentate(h)+"<"+H+j+S+">"+L+P}},p.prototype.closeTag=function(L){let H="";return this.options.unpairedTags.indexOf(L)!==-1?this.options.suppressUnpairedNode||(H="/"):H=this.options.suppressEmptyNode?"/":`></${L}`,H},p.prototype.buildTextValNode=function(L,H,j,h){if(this.options.cdataPropName!==!1&&H===this.options.cdataPropName)return this.indentate(h)+`<![CDATA[${L}]]>`+this.newLine;if(this.options.commentPropName!==!1&&H===this.options.commentPropName)return this.indentate(h)+`<!--${L}-->`+this.newLine;if(H[0]==="?")return this.indentate(h)+"<"+H+j+"?"+this.tagEndChar;{let P=this.options.tagValueProcessor(H,L);return P=this.replaceEntitiesValue(P),P===""?this.indentate(h)+"<"+H+j+this.closeTag(H)+this.tagEndChar:this.indentate(h)+"<"+H+j+">"+P+"</"+H+this.tagEndChar}},p.prototype.replaceEntitiesValue=function(L){if(L&&L.length>0&&this.options.processEntities)for(let H=0;H<this.options.entities.length;H++){let j=this.options.entities[H];L=L.replace(j.regex,j.val)}return L};let UA={validate:F};fi.exports=Q})()});var Aw=K((RG)=>{Object.defineProperty(RG,"__esModule",{value:!0});RG.XML_CHARKEY=RG.XML_ATTRKEY=void 0;RG.XML_ATTRKEY="$";RG.XML_CHARKEY="_"});var yi=K((QW)=>{Object.defineProperty(QW,"__esModule",{value:!0});QW.stringifyXML=fMA;QW.parseXML=xMA;var Qw=xi(),hi=Aw();function Si(A){var Q;return{attributesGroupName:hi.XML_ATTRKEY,textNodeName:(Q=A.xmlCharKey)!==null&&Q!==void 0?Q:hi.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function PMA(A={}){var Q,B;return Object.assign(Object.assign({},Si(A)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(Q=A.rootName)!==null&&Q!==void 0?Q:"root",cdataPropName:(B=A.cdataPropName)!==null&&B!==void 0?B:"__cdata"})}function kMA(A={}){return Object.assign(Object.assign({},Si(A)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:A.stopNodes,processEntities:!0,trimValues:!1})}function fLine truncated
`;mA.HTTP_VERSION_1_1="HTTP/1.1";mA.EncryptionAlgorithmAES25="AES256";mA.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";mA.StorageBlobLoggingAllowedHeaderNames=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"];mA.StorageBlobLoggingAllowedQueryParameters=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];mA.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";mA.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";mA.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var ME=K((LQ)=>{Object.defineProperty(LQ,"__esModule",{value:!0});LQ.escapeURLPath=_MA;LQ.getValueInConnString=NF;LQ.extractConnectionStringParts=bMA;LQ.appendToURLPath=mMA;LQ.setURLParameter=ci;LQ.getURLParameter=li;LQ.setURLHost=dMA;LQ.getURLPath=cMA;LQ.getURLScheme=lMA;LQ.getURLPathAndQuery=pMA;LQ.getURLQueries=iMA;LQ.appendToURLQuery=nMA;LQ.truncatedISO8061Date=aMA;LQ.base64encode=pi;LQ.base64decode=sMA;LQ.generateBlockID=oMA;LQ.delay=rMA;LQ.padStart=ii;LQ.sanitizeURL=ni;LQ.sanitizeHeaders=tMA;LQ.iEqual=eMA;LQ.getAccountNameFromUrl=ai;LQ.isIpEndpointStyle=si;LQ.toBlobTagsString=ARA;LQ.toBlobTags=QRA;LQ.toTags=BRA;LQ.toQuerySerialization=ERA;LQ.parseObjectReplicationRecord=IRA;LQ.attachCredential=CRA;LQ.httpAuthorizationToString=DRA;LQ.BlobNameToString=DW;LQ.ConvertInternalResponseOfListBlobFlat=FRA;LQ.ConvertInternalResponseOfListBlobHierarchy=YRA;LQ.ExtractPageRangeInfoItems=JRA;LQ.EscapePath=GRA;LQ.assertResponse=NRA;var yMA=EE(),di=BB(),TG=IE();function _MA(A){let Q=new URL(A),B=Q.pathname;return B=B||"/",B=uMA(B),Q.pathname=B,Q.toString()}function vMA(A){let Q="";if(A.search("DevelopmentStorageProxyUri=")!==-1){let B=A.split(";");for(let E of B)if(E.trim().startsWith("DevelopmentStorageProxyUri="))Q=E.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}return Q}function NF(A,Q){let B=A.split(";");for(let E of B)if(E.trim().startsWith(Q))return E.trim().match(Q+"=(.*)")[1];return""}function bMA(A){let Q="";if(A.startsWith("UseDevelopmentStorage=true"))Q=vMA(A),A=TG.DevelopmentConnectionString;let B=NF(A,"BlobEndpoint");if(B=B.endsWith("/")?B.slice(0,-1):B,A.search("DefaultEndpointsProtocol=")!==-1&&A.search("AccountKey=")!==-1){let E="",I="",C=Buffer.from("accountKey","base64"),D="";if(I=NF(A,"AccountName"),C=Buffer.from(NF(A,"AccountKey"),"base64"),!B){E=NF(A,"DefaultEndpointsProtocol");let F=E Line truncated
`)+`
`+this.getCanonicalizedHeadersString(A)+this.getCanonicalizedResourceString(A),B=this.factory.computeHMACSHA256(Q);return A.headers.set(sE.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${B}`),A}getHeaderValueToSign(A,Q){let B=A.headers.get(Q);if(!B)return"";if(Q===sE.HeaderConstants.CONTENT_LENGTH&&B==="0")return"";return B}getCanonicalizedHeadersString(A){let Q=A.headers.headersArray().filter((E)=>{return E.name.toLowerCase().startsWith(sE.HeaderConstants.PREFIX_FOR_STORAGE)});Q.sort((E,I)=>{return(0,gRA.compareHeader)(E.name.toLowerCase(),I.name.toLowerCase())}),Q=Q.filter((E,I,C)=>{if(I>0&&E.name.toLowerCase()===C[I-1].name.toLowerCase())return!1;return!0});let B="";return Q.forEach((E)=>{B+=`${E.name.toLowerCase().trimRight()}:${E.value.trimLeft()}
`}),B}getCanonicalizedResourceString(A){let Q=(0,Qn.getURLPath)(A.url)||"/",B="";B+=`/${this.factory.accountName}${Q}`;let E=(0,Qn.getURLQueries)(A.url),I={};if(E){let C=[];for(let D in E)if(Object.prototype.hasOwnProperty.call(E,D)){let F=D.toLowerCase();I[F]=E[D],C.push(F)}C.sort();for(let D of C)B+=`
${D}:${decodeURIComponent(I[D])}`}return B}}GW.StorageSharedKeyCredentialPolicy=Bn});var UW=K((NW)=>{Object.defineProperty(NW,"__esModule",{value:!0});NW.Credential=void 0;class En{create(A,Q){throw Error("Method should be implemented in children classes.")}}NW.Credential=En});var XF=K((ZW)=>{Object.defineProperty(ZW,"__esModule",{value:!0});ZW.StorageSharedKeyCredential=void 0;var TRA=require("node:crypto"),ORA=Jw(),qRA=UW();class In extends qRA.Credential{accountName;accountKey;constructor(A,Q){super();this.accountName=A,this.accountKey=Buffer.from(Q,"base64")}create(A,Q){return new ORA.StorageSharedKeyCredentialPolicy(A,Q,this)}computeHMACSHA256(A){return(0,TRA.createHmac)("sha256",this.accountKey).update(A,"utf8").digest("base64")}}ZW.StorageSharedKeyCredential=In});var Gw=K((WW)=>{Object.defineProperty(WW,"__esModule",{value:!0});WW.AnonymousCredentialPolicy=void 0;var jRA=JW();class Cn extends jRA.CredentialPolicy{constructor(A,Q){super(A,Q)}}WW.AnonymousCredentialPolicy=Cn});var $F=K((XW)=>{Object.defineProperty(XW,"__esModule",{value:!0});XW.AnonymousCredential=void 0;var PRA=Gw(),kRA=UW();class Dn extends kRA.Credential{create(A,Q){return new PRA.AnonymousCredentialPolicy(A,Q)}}XW.AnonymousCredential=Dn});var Yn=K(($W)=>{Object.defineProperty($W,"__esModule",{value:!0});$W.BuffersStream=void 0;var fRA=require("node:stream");class Fn extends fRA.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(A,Q,B){super(B);this.buffers=A,this.byteLength=Q,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let E=0;for(let I of this.buffers)E+=I.byteLength;if(E<this.byteLength)throw Error("Data size shouldn't be larger than the total length of buffers.")}_read(A){if(this.pushedBytesLength>=this.byteLength)this.push(null);if(!A)A=this.readableHighWaterMark;let Q=[],B=0;while(B<A&&this.pushedBytesLength<this.byteLength){let E=this.byteLength-this.pushedBytesLength,I=this.buffers[this.bufferIndex].byteLength-this.byteOffsetInCurrentBuffer,C=Math.min(I,E);if(C>A-B){let D=this.byteOffsetInCurrentBuffer+A-B;Q.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,D)),this.pushedBytesLength+=A-B,this.byteOffsetInCurrentBuffer=D,B=A;break}else{let D=this.byteOffsetInCurrentBuffer+C;if(Q.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,D)),C===I)this.byteOffsetInCurrentBuffer=0,this.bufferIndex++;else this.byteOffsetInCurrentBuffer=D;this.pushedBytesLength+=C,B+=C}}if(Q.length>1)this.push(Buffer.concat(Q));else if(Q.length===1)this.push(Q[0])}}$W.BuffersStream=Fn});var Gn=K((LW)=>{Object.defineProperty(LW,"__esModule",{value:!0});LW.PooledBuffer=void 0;var xRA=RB(),hRA=Yn(),SRA=xRA.__importDefault(require("node:buffer")),KW=SRA.default.constants.MAX_LENGTH;class Jn{buffers=[];capacity;_size;get size(){return this._size}constructor(A,Q,B){this.capacity=A,this._size=0;let E=Math.ceil(A/KW);for(let I=0;I<E;I++){let C=I===E-1?A%KW:KW;if(C===0)C=KW;this.buffers.push(Buffer.allocUnsafe(C))}if(Q)this.fill(Q,B)}fill(A,Q){this._size=Math.min(this.capacity,Q);let B=0,E=0,I=0,C=0,D=0;while(D<this._size){let F=A[B],Y=this.buffers[E],J=F.copy(Y,I,C);if(D+=J,C+=J,I+=J,C===F.length)B++,C=0;if(I===Y.length)E++,I=0}if(A.splice(0,B),A.length>0)A[0]=A[0].slice(C)}getReadableStream(){return new hRA.BuffersStream(this.buffers,this.size)}}LW.PooledBuffer=Jn});var Un=K((VW)=>{Object.defineProperty(VW,"__esModule",{value:!0});VW.BufferScheduler=void 0;var yRA=require("events"),_RA=Gn();class Nn{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new yRA.EventEmitter;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(A,Q,B,E,I,C){if(Q<=0)throw RangeError(`bufferSize must be larger than 0, current is ${Q}`);if(B<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${B}`);if(I<=0)throw RangeError(`concurrency must be larger than 0, current is ${I}`);this.bufferSize=Q,this.maxBuffers=B,this.readable=A,this.outgoingHandler=E,this.concurrency=I,this.encoding=C}async do(){return new Promise((A,Q)=>{this.readable.on("data",(B)=>{if(B=typeof B==="string"?Buffer.from(B,this.encoding):B,this.appendUnresolvedData(B),!this.resolveData())this.readable.pause()}),this.readable.on("error",(B)=>{this.emitter.emit("error",B)}),this.readable.on("end",()=>{this.isStreamEnd=!0,this.emitter.emit("checkEnd")}),this.emitter.on("error",(B)=>{this.isError=!0,this.readable.pause(),Q(B)}),this.emitter.on("checkEnd",()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLength<this.bufferSize){let B=this.shiftBufferFromUnresolvedDataArray();this.outgoingHandler(()=>B.getReadableStream(),B.size,this.offset).then(A).catch(Q)}else if(this.unresolvedLength>=this.bufferSize)return;else A()})})}appendUnresolvedData(A){t Line truncated
`)+`
`+this.getCanonicalizedHeadersString(A)+this.getCanonicalizedResourceString(A),B=this.factory.computeHMACSHA256(Q);return A.headers.set(oE.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${B}`),A}getHeaderValueToSign(A,Q){let B=A.headers.get(Q);if(!B)return"";if(Q===oE.HeaderConstants.CONTENT_LENGTH&&B==="0")return"";return B}getCanonicalizedHeadersString(A){let Q=A.headers.headersArray().filter((E)=>{return E.name.toLowerCase().startsWith(oE.HeaderConstants.PREFIX_FOR_STORAGE)});Q.sort((E,I)=>{return(0,HgA.compareHeader)(E.name.toLowerCase(),I.name.toLowerCase())}),Q=Q.filter((E,I,C)=>{if(I>0&&E.name.toLowerCase()===C[I-1].name.toLowerCase())return!1;return!0});let B="";return Q.forEach((E)=>{B+=`${E.name.toLowerCase().trimRight()}:${E.value.trimLeft()}
`}),B}getCanonicalizedResourceString(A){let Q=(0,fn.getURLPath)(A.url)||"/",B="";B+=`/${this.factory.accountName}${Q}`;let E=(0,fn.getURLQueries)(A.url),I={};if(E){let C=[];for(let D in E)if(Object.prototype.hasOwnProperty.call(E,D)){let F=D.toLowerCase();I[F]=E[D],C.push(F)}C.sort();for(let D of C)B+=`
${D}:${decodeURIComponent(I[D])}`}return B}}qW.StorageSharedKeyCredentialPolicy=xn});var Sn=K((jW)=>{Object.defineProperty(jW,"__esModule",{value:!0});jW.StorageSharedKeyCredential=void 0;var wgA=require("node:crypto"),MgA=Lw(),RgA=TW();class hn extends RgA.Credential{accountName;accountKey;constructor(A,Q){super();this.accountName=A,this.accountKey=Buffer.from(Q,"base64")}create(A,Q){return new MgA.StorageSharedKeyCredentialPolicy(A,Q,this)}computeHMACSHA256(A){return(0,wgA.createHmac)("sha256",this.accountKey).update(A,"utf8").digest("base64")}}jW.StorageSharedKeyCredential=hn});var _n=K((PW)=>{Object.defineProperty(PW,"__esModule",{value:!0});PW.AbortError=void 0;class yn extends Error{constructor(A){super(A);this.name="AbortError"}}PW.AbortError=yn});var Vw=K((kW)=>{Object.defineProperty(kW,"__esModule",{value:!0});kW.AbortError=void 0;var ggA=_n();Object.defineProperty(kW,"AbortError",{enumerable:!0,get:function(){return ggA.AbortError}})});var zw=K((fW)=>{Object.defineProperty(fW,"__esModule",{value:!0});fW.logger=void 0;var TgA=P1();fW.logger=(0,TgA.createClientLogger)("storage-common")});var hW=K((xW)=>{Object.defineProperty(xW,"__esModule",{value:!0});xW.StorageRetryPolicyType=void 0;var vn;(function(A){A[A.EXPONENTIAL=0]="EXPONENTIAL",A[A.FIXED=1]="FIXED"})(vn||(xW.StorageRetryPolicyType=vn={}))});var Rw=K((IU)=>{Object.defineProperty(IU,"__esModule",{value:!0});IU.StorageRetryPolicy=void 0;IU.NewRetryPolicyFactory=jgA;var OgA=Vw(),qgA=EU(),bn=zD(),Hw=S1(),LF=zw(),ww=hW();function jgA(A){return{create:(Q,B)=>{return new Mw(Q,B,A)}}}var VF={maxRetryDelayInMs:120000,maxTries:4,retryDelayInMs:4000,retryPolicyType:ww.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},PgA=new OgA.AbortError("The operation was aborted.");class Mw extends qgA.BaseRequestPolicy{retryOptions;constructor(A,Q,B=VF){super(A,Q);this.retryOptions={retryPolicyType:B.retryPolicyType?B.retryPolicyType:VF.retryPolicyType,maxTries:B.maxTries&&B.maxTries>=1?Math.floor(B.maxTries):VF.maxTries,tryTimeoutInMs:B.tryTimeoutInMs&&B.tryTimeoutInMs>=0?B.tryTimeoutInMs:VF.tryTimeoutInMs,retryDelayInMs:B.retryDelayInMs&&B.retryDelayInMs>=0?Math.min(B.retryDelayInMs,B.maxRetryDelayInMs?B.maxRetryDelayInMs:VF.maxRetryDelayInMs):VF.retryDelayInMs,maxRetryDelayInMs:B.maxRetryDelayInMs&&B.maxRetryDelayInMs>=0?B.maxRetryDelayInMs:VF.maxRetryDelayInMs,secondaryHost:B.secondaryHost?B.secondaryHost:VF.secondaryHost}}async sendRequest(A){return this.attemptSendRequest(A,!1,1)}async attemptSendRequest(A,Q,B){let E=A.clone(),I=Q||!this.retryOptions.secondaryHost||!(A.method==="GET"||A.method==="HEAD"||A.method==="OPTIONS")||B%2===1;if(!I)E.url=(0,Hw.setURLHost)(E.url,this.retryOptions.secondaryHost);if(this.retryOptions.tryTimeoutInMs)E.url=(0,Hw.setURLParameter)(E.url,bn.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1000).toString());let C;try{if(LF.logger.info(`RetryPolicy: =====> Try=${B} ${I?"Primary":"Secondary"}`),C=await this._nextPolicy.sendRequest(E),!this.shouldRetry(I,B,C))return C;Q=Q||!I&&C.status===404}catch(D){if(LF.logger.error(`RetryPolicy: Caught error, message: ${D.message}, code: ${D.code}`),!this.shouldRetry(I,B,C,D))throw D}return await this.delay(I,B,A.abortSignal),this.attemptSendRequest(A,Q,++B)}shouldRetry(A,Q,B,E){if(Q>=this.retryOptions.maxTries)return LF.logger.info(`RetryPolicy: Attempt(s) ${Q} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let I=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(E){for(let C of I)if(E.name.toUpperCase().includes(C)||E.message.toUpperCase().includes(C)||E.code&&E.code.toString().toUpperCase()===C)return LF.logger.info(`RetryPolicy: Network error ${C} found, will retry.`),!0}if(B||E){let C=B?B.status:E?E.statusCode:0;if(!A&&C===404)return LF.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(C===503||C===500)return LF.logger.info(`RetryPolicy: Will retry for status code ${C}.`),!0}if(B){if(B?.status>=400){let C=B.headers.get(bn.HeaderConstants.X_MS_CopySourceErrorCode);if(C!==void 0)switch(C){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}}if(E?.code==="PARSE_ERROR"&&E?.message.startsWith('Error "Error: Unclosed root tag'))return LF.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0;return!1}async delay(A,Q,B){let E=0;if(A)switch(this.retryOptions.retryPolicyType){case ww.StorageRetryPolicyType.EXPONENTIAL:E=Math.min((Math.pow(2,Q-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ww.StorageRetryPolicyType.FIXED:E=this.retryOptions.retryDelayInMs;break}else E=Math.random()*1000;return LF.logger.info(`RetryPolicy: Delay for ${E}ms`),(0,Hw.delay)(E,B,PgA)}}IU.StorageRetryPolicy=Mw});var SW=K((zF)=>{Object.defineProperty(zF,"__esModule",{value:!0});zF.StorageRetryPolicyFactory=zF.StorageRetryPolicy=zF.StorageRetryPolicyType=void Line truncated
`)+`
`+E(C)+I(C),F=(0,dgA.createHmac)("sha256",A.accountKey).update(D,"utf8").digest("base64");C.headers.set(rE.HeaderConstants.AUTHORIZATION,`SharedKey ${A.accountName}:${F}`)}function B(C,D){let F=C.headers.get(D);if(!F)return"";if(D===rE.HeaderConstants.CONTENT_LENGTH&&F==="0")return"";return F}function E(C){let D=[];for(let[Y,J]of C.headers)if(Y.toLowerCase().startsWith(rE.HeaderConstants.PREFIX_FOR_STORAGE))D.push({name:Y,value:J});D.sort((Y,J)=>{return(0,cgA.compareHeader)(Y.name.toLowerCase(),J.name.toLowerCase())}),D=D.filter((Y,J,G)=>{if(J>0&&Y.name.toLowerCase()===G[J-1].name.toLowerCase())return!1;return!0});let F="";return D.forEach((Y)=>{F+=`${Y.name.toLowerCase().trimRight()}:${Y.value.trimLeft()}
`}),F}function I(C){let D=(0,an.getURLPath)(C.url)||"/",F="";F+=`/${A.accountName}${D}`;let Y=(0,an.getURLQueries)(C.url),J={};if(Y){let G=[];for(let N in Y)if(Object.prototype.hasOwnProperty.call(Y,N)){let U=N.toLowerCase();J[U]=Y[N],G.push(U)}G.sort();for(let N of G)F+=`
${N}:${decodeURIComponent(J[N])}`}return F}return{name:xG.storageSharedKeyCredentialPolicyName,async sendRequest(C,D){return Q(C),D(C)}}}});var on=K((hG)=>{Object.defineProperty(hG,"__esModule",{value:!0});hG.storageRequestFailureDetailsParserPolicyName=void 0;hG.storageRequestFailureDetailsParserPolicy=pgA;hG.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function pgA(){return{name:hG.storageRequestFailureDetailsParserPolicyName,async sendRequest(A,Q){try{return await Q(A)}catch(B){if(typeof B==="object"&&B!==null&&B.response&&B.response.parsedBody){if(B.response.parsedBody.code==="InvalidHeaderValue"&&B.response.parsedBody.HeaderName==="x-ms-version")B.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.
`}throw B}}}}});var qw=K((gB)=>{Object.defineProperty(gB,"__esModule",{value:!0});gB.BaseRequestPolicy=gB.getCachedDefaultHttpClient=void 0;var RE=RB();RE.__exportStar(Un(),gB);var igA=Zn();Object.defineProperty(gB,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return igA.getCachedDefaultHttpClient}});RE.__exportStar(Tn(),gB);RE.__exportStar(kn(),gB);RE.__exportStar(TW(),gB);RE.__exportStar(Sn(),gB);RE.__exportStar(SW(),gB);var ngA=EU();Object.defineProperty(gB,"BaseRequestPolicy",{enumerable:!0,get:function(){return ngA.BaseRequestPolicy}});RE.__exportStar(Xw(),gB);RE.__exportStar(MW(),gB);RE.__exportStar(Ww(),gB);RE.__exportStar(dn(),gB);RE.__exportStar(cn(),gB);RE.__exportStar(hW(),gB);RE.__exportStar(Rw(),gB);RE.__exportStar(nn(),gB);RE.__exportStar(Lw(),gB);RE.__exportStar(sn(),gB);RE.__exportStar(SW(),gB);RE.__exportStar(on(),gB)});var rn=K((SG)=>{Object.defineProperty(SG,"__esModule",{value:!0});SG.storageBrowserPolicyName=void 0;SG.storageBrowserPolicy=ogA;var agA=BB(),jw=IE(),sgA=ME();SG.storageBrowserPolicyName="storageBrowserPolicy";function ogA(){return{name:SG.storageBrowserPolicyName,async sendRequest(A,Q){if(agA.isNodeLike)return Q(A);if(A.method==="GET"||A.method==="HEAD")A.url=(0,sgA.setURLParameter)(A.url,jw.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString());return A.headers.delete(jw.HeaderConstants.COOKIE),A.headers.delete(jw.HeaderConstants.CONTENT_LENGTH),Q(A)}}}});var en=K((_G)=>{Object.defineProperty(_G,"__esModule",{value:!0});_G.storageRetryPolicyName=void 0;_G.storageRetryPolicy=BTA;var rgA=e5(),tn=EE(),tgA=BB(),kw=BU(),egA=IE(),Pw=ME(),wD=gG();_G.storageRetryPolicyName="storageRetryPolicy";var yG={maxRetryDelayInMs:120000,maxTries:4,retryDelayInMs:4000,retryPolicyType:kw.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},ATA=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],QTA=new rgA.AbortError("The operation was aborted.");function BTA(A={}){let Q=A.retryPolicyType??yG.retryPolicyType,B=A.maxTries??yG.maxTries,E=A.retryDelayInMs??yG.retryDelayInMs,I=A.maxRetryDelayInMs??yG.maxRetryDelayInMs,C=A.secondaryHost??yG.secondaryHost,D=A.tryTimeoutInMs??yG.tryTimeoutInMs;function F({isPrimaryRetry:J,attempt:G,response:N,error:U}){if(G>=B)return wD.logger.info(`RetryPolicy: Attempt(s) ${G} >= maxTries ${B}, no further try.`),!1;if(U){for(let Z of ATA)if(U.name.toUpperCase().includes(Z)||U.message.toUpperCase().includes(Z)||U.code&&U.code.toString().toUpperCase()===Z)return wD.logger.info(`RetryPolicy: Network error ${Z} found, will retry.`),!0;if(U?.code==="PARSE_ERROR"&&U?.message.startsWith('Error "Error: Unclosed root tag'))return wD.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(N||U){let Z=N?.status??U?.statusCode??0;if(!J&&Z===404)return wD.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(Z===503||Z===500)return wD.logger.info(`RetryPolicy: Will retry for status code ${Z}.`),!0}return!1}function Y(J,G){let N=0;if(J)switch(Q){case kw.StorageRetryPolicyType.EXPONENTIAL:N=Math.min((Math.pow(2,G-1)-1)*E,I);break;case kw.StorageRetryPolicyType.FIXED:N=E;break}else N=Math.random()*1000;return wD.logger.info(`RetryPolicy: Delay for ${N}ms`),N}return{name:_G.storageRetryPolicyName,async sendRequest(J,G){if(D)J.url=(0,Pw.setURLParameter)(J.url,egA.URLConstants.Parameters.TIMEOUT,String(Math.floor(D/1000)));let N=J.url,U=C?(0,Pw.setURLHost)(J.url,C):void 0,Z=!1,X=1,$=!0,V,w;while($){let g=Z||!U||!["GET","HEAD","OPTIONS"].includes(J.method)||X%2===1;J.url=g?N:U,V=void 0,w=void 0;try{wD.logger.info(`RetryPolicy: =====> Try=${X} ${g?"Primary":"Secondary"}`),V=await G(J),Z=Z||!g&&V.status===404}catch(M){if((0,tn.isRestError)(M))wD.logger.error(`RetryPolicy: Caught error, message: ${M.message}, code: ${M.code}`),w=M;else throw wD.logger.error(`RetryPolicy: Caught error, message: ${(0,tgA.getErrorMessage)(M)}`),M}if($=F({isPrimaryRetry:g,attempt:X,response:V,error:w}),$)await(0,Pw.delay)(Y(g,X),J.abortSignal,QTA);X++}if(V)return V;throw w??new tn.RestError("RetryPolicy failed without known error.")}}}});var fw=K((vG)=>{Object.defineProperty(vG,"__esModule",{value:!0});vG.storageSharedKeyCredentialPolicyName=void 0;vG.storageSharedKeyCredentialPolicy=CTA;var ETA=require("node:crypto"),tE=IE(),Aa=ME(),ITA=Yw();vG.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function CTA(A){function Q(C){if(C.headers.set(tE.HeaderConstants.X_MS_DATE,new Date().toUTCString()),C.body&&(typeof C.body==="string"||Buffer.isBuffer(C.body))&&C.body.length>0)C.headers.set(tE.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(C.body));let D=[C.method.toUpperCase(),B(C,tE.HeaderConstants.CONTENT_LANGUAGE),B(C,tE.HeaderConstants.CONTENT_ENCODING),B(C,tE.HeaderConstants.CONTENT_LENGTH),B(C,tE.HeaderConstants.CONTENT_MD5),B(C,tE.HeaderConstants.CONTENT_TYPE),B(C,tE.HeaderConstants.DATE),B(C,tE Line truncated
`)+`
`+E(C)+I(C),F=(0,ETA.createHmac)("sha256",A.accountKey).update(D,"utf8").digest("base64");C.headers.set(tE.HeaderConstants.AUTHORIZATION,`SharedKey ${A.accountName}:${F}`)}function B(C,D){let F=C.headers.get(D);if(!F)return"";if(D===tE.HeaderConstants.CONTENT_LENGTH&&F==="0")return"";return F}function E(C){let D=[];for(let[Y,J]of C.headers)if(Y.toLowerCase().startsWith(tE.HeaderConstants.PREFIX_FOR_STORAGE))D.push({name:Y,value:J});D.sort((Y,J)=>{return(0,ITA.compareHeader)(Y.name.toLowerCase(),J.name.toLowerCase())}),D=D.filter((Y,J,G)=>{if(J>0&&Y.name.toLowerCase()===G[J-1].name.toLowerCase())return!1;return!0});let F="";return D.forEach((Y)=>{F+=`${Y.name.toLowerCase().trimRight()}:${Y.value.trimLeft()}
`}),F}function I(C){let D=(0,Aa.getURLPath)(C.url)||"/",F="";F+=`/${A.accountName}${D}`;let Y=(0,Aa.getURLQueries)(C.url),J={};if(Y){let G=[];for(let N in Y)if(Object.prototype.hasOwnProperty.call(Y,N)){let U=N.toLowerCase();J[U]=Y[N],G.push(U)}G.sort();for(let N of G)F+=`
${N}:${decodeURIComponent(J[N])}`}return F}return{name:vG.storageSharedKeyCredentialPolicyName,async sendRequest(C,D){return Q(C),D(C)}}}});var Ba=K((yW)=>{Object.defineProperty(yW,"__esModule",{value:!0});yW.StorageBrowserPolicy=void 0;var DTA=AU(),FTA=BB(),xw=IE(),YTA=ME();class Qa extends DTA.BaseRequestPolicy{constructor(A,Q){super(A,Q)}async sendRequest(A){if(FTA.isNodeLike)return this._nextPolicy.sendRequest(A);if(A.method.toUpperCase()==="GET"||A.method.toUpperCase()==="HEAD")A.url=(0,YTA.setURLParameter)(A.url,xw.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString());return A.headers.remove(xw.HeaderConstants.COOKIE),A.headers.remove(xw.HeaderConstants.CONTENT_LENGTH),this._nextPolicy.sendRequest(A)}}yW.StorageBrowserPolicy=Qa});var hw=K((bG)=>{Object.defineProperty(bG,"__esModule",{value:!0});bG.StorageBrowserPolicyFactory=bG.StorageBrowserPolicy=void 0;var Ea=Ba();Object.defineProperty(bG,"StorageBrowserPolicy",{enumerable:!0,get:function(){return Ea.StorageBrowserPolicy}});class Ia{create(A,Q){return new Ea.StorageBrowserPolicy(A,Q)}}bG.StorageBrowserPolicyFactory=Ia});var Ca=K((uG)=>{Object.defineProperty(uG,"__esModule",{value:!0});uG.storageCorrectContentLengthPolicyName=void 0;uG.storageCorrectContentLengthPolicy=GTA;var JTA=IE();uG.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function GTA(){function A(Q){if(Q.body&&(typeof Q.body==="string"||Buffer.isBuffer(Q.body))&&Q.body.length>0)Q.headers.set(JTA.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(Q.body))}return{name:uG.storageCorrectContentLengthPolicyName,async sendRequest(Q,B){return A(Q),B(Q)}}}});var HF=K((S0)=>{Object.defineProperty(S0,"__esModule",{value:!0});S0.Pipeline=S0.StorageOAuthScopes=void 0;S0.isPipelineLike=VTA;S0.newPipeline=zTA;S0.getCoreClientOptions=wTA;S0.getCredentialFromPipeline=Na;var Ja=AW(),Da=EE(),Fa=x0(),Ya=Bw(),Sw=VG(),NTA=gG(),UTA=BU(),Ga=XF(),yw=$F(),CU=IE();Object.defineProperty(S0,"StorageOAuthScopes",{enumerable:!0,get:function(){return CU.StorageOAuthScopes}});var ZTA=qw(),WTA=rn(),XTA=en(),$TA=fw(),KTA=hw(),LTA=Ca();function VTA(A){if(!A||typeof A!=="object")return!1;let Q=A;return Array.isArray(Q.factories)&&typeof Q.options==="object"&&typeof Q.toServiceClientOptions==="function"}class _w{factories;options;constructor(A,Q={}){this.factories=A,this.options=Q}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}S0.Pipeline=_w;function zTA(A,Q={}){if(!A)A=new yw.AnonymousCredential;let B=new _w([],Q);return B._credential=A,B}function HTA(A){let Q=[MTA,Ua,RTA,gTA,TTA,OTA,jTA];if(A.factories.length){let B=A.factories.filter((E)=>{return!Q.some((I)=>I(E))});if(B.length){let E=B.some((I)=>qTA(I));return{wrappedPolicies:(0,Ja.createRequestPolicyFactoryPolicy)(B),afterRetry:E}}}return}function wTA(A){let{httpClient:Q,...B}=A.options,E=A._coreHttpClient;if(!E)E=Q?(0,Ja.convertHttpClient)(Q):(0,ZTA.getCachedDefaultHttpClient)(),A._coreHttpClient=E;let I=A._corePipeline;if(!I){let C=`azsdk-js-azure-storage-blob/${CU.SDK_VERSION}`,D=B.userAgentOptions&&B.userAgentOptions.userAgentPrefix?`${B.userAgentOptions.userAgentPrefix} ${C}`:`${C}`;I=(0,Fa.createClientPipeline)({...B,loggingOptions:{additionalAllowedHeaderNames:CU.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:CU.StorageBlobLoggingAllowedQueryParameters,logger:NTA.logger.info},userAgentOptions:{userAgentPrefix:D},serializationOptions:{stringifyXML:Ya.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Ya.parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}}),I.removePolicy({phase:"Retry"}),I.removePolicy({name:Da.decompressResponsePolicyName}),I.addPolicy((0,LTA.storageCorrectContentLengthPolicy)()),I.addPolicy((0,XTA.storageRetryPolicy)(B.retryOptions),{phase:"Retry"}),I.addPolicy((0,WTA.storageBrowserPolicy)());let F=HTA(A);if(F)I.addPolicy(F.wrappedPolicies,F.afterRetry?{afterPhase:"Retry"}:void 0);let Y=Na(A);if((0,Sw.isTokenCredential)(Y))I.addPolicy((0,Da.bearerTokenAuthenticationPolicy)({credential:Y,scopes:B.audience??CU.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:Fa.authorizeRequestOnTenantChallenge}}),{phase:"Sign"});else if(Y instanceof Ga.StorageSharedKeyCredential)I.addPolicy((0,$TA.storageSharedKeyCredentialPolicy)({accountName:Y.accountName,accountKey:Y.accountKey}),{phase:"Sign"});A._corePipeline=I}return{...B,allowInsecureConnection:!0,httpClient:E,pipeline:I}}function Na(A){if(A._credential)return A._credential;let Q=new yw.AnonymousCredential;for(let B of A.factories)if((0,Sw.isTokenCredential)(B.credential))Q=B.credential;else if(Ua(B))return B;return Q}function Ua(A){if(A instanceof Ga.StorageSharedKeyCredential)return!0;return A.constructor.name==="StorageSharedKeyCredential"}function MTA(A){if(A instanceof yw.AnonymousCredential)return!0;return A.constructor.name==="AnonymousCredential"}function RTA(A){return(0,Sw.isTokenCredential)(A.credential)}fun Line truncated
`),C=Q.computeHMACSHA256(I);return{sasQueryParameters:new m1.SASQueryParameters(A.version,C,E,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType),stringToSign:I}}function NqA(A,Q){if(A=c1(A),!A.identifier&&!(A.permissions&&A.expiresOn))throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=v1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=b1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",d1(Q.accountName,A.containerName,A.blobName),A.identifier,A.ipRange?(0,u1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.cacheControl?A.cacheControl:"",A.contentDisposition?A.contentDisposition:"",A.contentEncoding?A.contentEncoding:"",A.contentLanguage?A.contentLanguage:"",A.contentType?A.contentType:""].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new m1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType),stringToSign:C}}function UqA(A,Q){if(A=c1(A),!A.identifier&&!(A.permissions&&A.expiresOn))throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=v1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=b1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",d1(Q.accountName,A.containerName,A.blobName),A.identifier,A.ipRange?(0,u1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.encryptionScope,A.cacheControl?A.cacheControl:"",A.contentDisposition?A.contentDisposition:"",A.contentEncoding?A.contentEncoding:"",A.contentLanguage?A.contentLanguage:"",A.contentType?A.contentType:""].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new m1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,void 0,void 0,void 0,A.encryptionScope),stringToSign:C}}function ZqA(A,Q){if(A=c1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=v1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=b1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",d1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.ipRange?(0,u1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new m1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey),stringToSign:C}}function WqA(A,Q){if(A=c1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=v1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=b1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",d1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,A.ipRange?(0,u1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new m1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId),stringToSign:C}}function XqA(A,Q){if(A=c1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=v1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=b1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",d1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,A.ipRange?(0,u1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.encryptionScope,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new m1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId,A.encryptionScope),stringToSign:C}}function $qA(A,Q){if(A=c1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=v1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=b1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",d1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,void 0,void 0,A.ipRange?(0,u1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.encryptionScope,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new m1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId,A.encryptionScope),stringToSign:C}}function d1(A,Q,B){let E=[`/blob/${A}/${Q}`];if(B)E.push(`/${B}`);return E.join("")}function c1(A){let Q=A.version?A.version:Qs.SERVICE_VERSION;if(A.snapshotTime&&Q<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(A.blobName===void 0&&A.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(A.versionId&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(A.blobName===void 0&&A.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(A.permissions&&A.permissions.setImmutabilityPolicy&&Q<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(A.permissions&&A.permissions.deleteVersion&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(A.permissions&&A.permissions.permanentDelete&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(A.permissions&&A.permissions.tag&&Q<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(Q<"2020-02-10"&&A.permissions&&(A.permissions.move||A.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(Q<"2021-04-10"&&A.permissions&&A.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(Q<"2020-02-10"&&(A.preauthorizedAgentObjectId||A.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(A.encryptionScope&&Q<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return A.version=Q,A}});var YX=K((FX)=>{Object.defineProperty(FX,"__esModule",{value:!0});FX.BlobLeaseClient=void 0;var KqA=BB(),_0=IE(),FU=_1(),DX=ME();class Es{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(A,Q){let B=A.storageClientContext;if(this._url=A.url,A.name===void 0)this._isContainer=!0,this._containerOrBlobOperation=B.container;else this._isContainer=!1,this._containerOrBlobOperation=B.blob;if(!Q)Q=(0,KqA.randomUUID)();this._leaseId=Q}async acquireLease(A,Q={}){if(this._isContainer&&(Q.conditions?.ifMatch&&Q.conditions?.ifMatch!==_0.ETagNone||Q.conditions?.ifNoneMatch&&Q.conditions?.ifNoneMatch!==_0.ETagNone||Q.conditions?.tagConditions))throw 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 FU.tracingClient.withSpan("BlobLeaseClient-acquireLease",Q,async(B)=>{return(0,DX.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:Q.abortSignal,duration:A,modifiedAccessConditions:{...Q.conditions,ifTags:Q.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:B.tracingOptions}))})}async changeLease(A,Q={}){if(this._isContainer&&(Q.conditions?.ifMatch&&Q.conditions?.ifMatch!==_0.ETagNone||Q.conditions?.ifNoneMatch&&Q.conditions?.ifNoneMatch!==_0.ETagNone||Q.conditions?.tagConditions))throw 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 FU.tracingClient.withSpan("BlobLeaseClient-changeLease",Q,async(B)=>{let E=(0,DX.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,A,{abortSignal:Q.abortSignal,modifiedAccessConditions:{...Q.conditions,ifTags:Q.conditions?.tagConditions},tracingOptions:B.tracingOptions}));return this._leaseId=A,E})}async releaseLease(A={}){if(this._isContainer&&(A.conditions?.ifMatch&&A.conditions?.ifMatch!==_0.ETagNone||A.conditions?.ifNoneMatch&&A.conditions?.ifNoneMatch!==_0.ETagNone||A.conditions?.tagConditions))throw 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 FU.tracingClient.withSpan("BlobLeaseClient-releaseLease",A,async(Q)=>{return(0,DX.assertResponse)(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:A.abortSignal,modifiedAccessConditions:{...A.conditions,ifTags:A.conditions?.tagConditions},tracingOptions:Q.tracingOptions}))})}async renewLease(A={}){if(this._isContainer&&(A.conditions?.ifMatch&&A.conditions?.ifMatch!==_0.ETagNone||A.conditions?.ifNoneMatch&&A.conditions?.ifNoneMatch!==_0.ETagNon Line truncated
Polling from: ${B.config.operationLocation}
Operation status: ${G}
Polling status: ${hs.terminalStates.includes(G)?"Stopped":"Running"}`),G==="succeeded"){let N=D(J,B);if(N!==void 0)return{response:await Q(N).catch(xs({state:B,stateProxy:E,isOperationError:F})),status:G}}return{response:J,status:G}}async function lqA(A){let{poll:Q,state:B,stateProxy:E,options:I,getOperationStatus:C,getResourceLocation:D,getOperationLocation:F,isOperationError:Y,withOperationLocation:J,getPollingInterval:G,processResult:N,getError:U,updateState:Z,setDelay:X,isDone:$,setErrorAsResult:V}=A,{operationLocation:w}=B.config;if(w!==void 0){let{response:g,status:M}=await cqA({poll:Q,getOperationStatus:C,state:B,stateProxy:E,operationLocation:w,getResourceLocation:D,isOperationError:Y,options:I});if(Ss({status:M,response:g,state:B,stateProxy:E,isDone:$,processResult:N,getError:U,setErrorAsResult:V}),!hs.terminalStates.includes(M)){let k=G===null||G===void 0?void 0:G(g);if(k)X(k);let d=F===null||F===void 0?void 0:F(g,B);if(d!==void 0){let t=w!==d;B.config.operationLocation=d,J===null||J===void 0||J(d,t)}else J===null||J===void 0||J(w,!1)}Z===null||Z===void 0||Z(B,g)}}OF.pollOperation=lqA});var BM=K((uB)=>{Object.defineProperty(uB,"__esModule",{value:!0});uB.pollHttpOperation=uB.isOperationError=uB.getResourceLocation=uB.getOperationStatus=uB.getOperationLocation=uB.initHttpOperation=uB.getStatusFromInitialResponse=uB.getErrorFromResponse=uB.parseRetryAfter=uB.inferLroMode=void 0;var ys=VX(),ew=KX();function _s(A){let{azureAsyncOperation:Q,operationLocation:B}=A;return B!==null&&B!==void 0?B:Q}function vs(A){return A.headers.location}function bs(A){return A.headers["operation-location"]}function us(A){return A.headers["azure-asyncoperation"]}function pqA(A){var Q;let{location:B,requestMethod:E,requestPath:I,resourceLocationConfig:C}=A;switch(E){case"PUT":return I;case"DELETE":return;case"PATCH":return(Q=D())!==null&&Q!==void 0?Q:I;default:return D()}function D(){switch(C){case"azure-async-operation":return;case"original-uri":return I;case"location":default:return B}}}function ms(A){let{rawResponse:Q,requestMethod:B,requestPath:E,resourceLocationConfig:I}=A,C=bs(Q),D=us(Q),F=_s({operationLocation:C,azureAsyncOperation:D}),Y=vs(Q),J=B===null||B===void 0?void 0:B.toLocaleUpperCase();if(F!==void 0)return{mode:"OperationLocation",operationLocation:F,resourceLocation:pqA({requestMethod:J,location:Y,requestPath:E,resourceLocationConfig:I})};else if(Y!==void 0)return{mode:"ResourceLocation",operationLocation:Y};else if(J==="PUT"&&E)return{mode:"Body",operationLocation:E};else return}uB.inferLroMode=ms;function ds(A){let{status:Q,statusCode:B}=A;if(typeof Q!=="string"&&Q!==void 0)throw Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${Q}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(Q===null||Q===void 0?void 0:Q.toLocaleLowerCase()){case void 0:return AM(B);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return ew.logger.verbose(`LRO: unrecognized operation status: ${Q}`),Q}}function iqA(A){var Q;let{status:B}=(Q=A.body)!==null&&Q!==void 0?Q:{};return ds({status:B,statusCode:A.statusCode})}function nqA(A){var Q,B;let{properties:E,provisioningState:I}=(Q=A.body)!==null&&Q!==void 0?Q:{},C=(B=E===null||E===void 0?void 0:E.provisioningState)!==null&&B!==void 0?B:I;return ds({status:C,statusCode:A.statusCode})}function AM(A){if(A===202)return"running";else if(A<300)return"succeeded";else return"failed"}function cs({rawResponse:A}){let Q=A.headers["retry-after"];if(Q!==void 0){let B=parseInt(Q);return isNaN(B)?aqA(new Date(Q)):B*1000}return}uB.parseRetryAfter=cs;function ls(A){let Q=ns(A,"error");if(!Q){ew.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!Q.code||!Q.message){ew.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return Q}uB.getErrorFromResponse=ls;function aqA(A){let Q=Math.floor(new Date().getTime()),B=A.getTime();if(Q<B)return B-Q;return}function ps(A){let{response:Q,state:B,operationLocation:E}=A;function I(){var D;switch((D=B.config.metadata)===null||D===void 0?void 0:D.mode){case void 0:return AM(Q.rawResponse.statusCode);case"Body":return QM(Q,B);default:return"running"}}let C=I();return C==="running"&&E===void 0?"succeeded":C}uB.getStatusFromInitialResponse=ps;async function sqA(A){let{stateProxy:Q,resourceLocationConfig:B,processResult:E,lro:I,setErrorAsResult:C}=A;return(0,ys.initOperation)({init:async()=>{let D=await I.sendInitialRequest(),F=ms({rawResponse:D.rawResponse,requestPath:I.requestPath,requestMethod:I.requestMethod,resourceLocationConfig:B});return Object.assign({response:D,operationLocation:F===null||F===void 0?void 0:FLine truncated
`);else D=[Q.accountName,E,I,C,A.startsOn?(0,B6.truncatedISO8061Date)(A.startsOn,!1):"",(0,B6.truncatedISO8061Date)(A.expiresOn,!1),A.ipRange?(0,xo.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",B,""].join(`
`);let F=Q.computeHMACSHA256(D);return{sasQueryParameters:new EPA.SASQueryParameters(B,F,E.toString(),I,C,A.protocol,A.startsOn,A.expiresOn,A.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,A.encryptionScope),stringToSign:D}}});var bo=K((F6)=>{Object.defineProperty(F6,"__esModule",{value:!0});F6.BlobServiceClient=void 0;var DPA=VG(),FPA=EE(),So=BB(),NU=HF(),YPA=LM(),I6=ME(),C6=XF(),MM=$F(),c0=ME(),l0=_1(),JPA=pX(),GPA=aW(),yo=tX(),_o=wM(),vo=Q6();class D6 extends GPA.StorageClient{serviceContext;static fromConnectionString(A,Q){Q=Q||{};let B=(0,I6.extractConnectionStringParts)(A);if(B.kind==="AccountConnString")if(So.isNodeLike){let E=new C6.StorageSharedKeyCredential(B.accountName,B.accountKey);if(!Q.proxyOptions)Q.proxyOptions=(0,FPA.getDefaultProxySettings)(B.proxyUri);let I=(0,NU.newPipeline)(E,Q);return new D6(B.url,I)}else throw Error("Account connection string is only supported in Node.js environment");else if(B.kind==="SASConnString"){let E=(0,NU.newPipeline)(new MM.AnonymousCredential,Q);return new D6(B.url+"?"+B.accountSas,E)}else throw Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(A,Q,B){let E;if((0,NU.isPipelineLike)(Q))E=Q;else if(So.isNodeLike&&Q instanceof C6.StorageSharedKeyCredential||Q instanceof MM.AnonymousCredential||(0,DPA.isTokenCredential)(Q))E=(0,NU.newPipeline)(Q,B);else E=(0,NU.newPipeline)(new MM.AnonymousCredential,B);super(A,E);this.serviceContext=this.storageClientContext.service}getContainerClient(A){return new YPA.ContainerClient((0,I6.appendToURLPath)(this.url,encodeURIComponent(A)),this.pipeline)}async createContainer(A,Q={}){return l0.tracingClient.withSpan("BlobServiceClient-createContainer",Q,async(B)=>{let E=this.getContainerClient(A),I=await E.create(B);return{containerClient:E,containerCreateResponse:I}})}async deleteContainer(A,Q={}){return l0.tracingClient.withSpan("BlobServiceClient-deleteContainer",Q,async(B)=>{return this.getContainerClient(A).delete(B)})}async undeleteContainer(A,Q,B={}){return l0.tracingClient.withSpan("BlobServiceClient-undeleteContainer",B,async(E)=>{let I=this.getContainerClient(B.destinationContainerName||A),C=I.storageClientContext.container,D=(0,c0.assertResponse)(await C.restore({deletedContainerName:A,deletedContainerVersion:Q,tracingOptions:E.tracingOptions}));return{containerClient:I,containerUndeleteResponse:D}})}async getProperties(A={}){return l0.tracingClient.withSpan("BlobServiceClient-getProperties",A,async(Q)=>{return(0,c0.assertResponse)(await this.serviceContext.getProperties({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async setProperties(A,Q={}){return l0.tracingClient.withSpan("BlobServiceClient-setProperties",Q,async(B)=>{return(0,c0.assertResponse)(await this.serviceContext.setProperties(A,{abortSignal:Q.abortSignal,tracingOptions:B.tracingOptions}))})}async getStatistics(A={}){return l0.tracingClient.withSpan("BlobServiceClient-getStatistics",A,async(Q)=>{return(0,c0.assertResponse)(await this.serviceContext.getStatistics({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async getAccountInfo(A={}){return l0.tracingClient.withSpan("BlobServiceClient-getAccountInfo",A,async(Q)=>{return(0,c0.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async listContainersSegment(A,Q={}){return l0.tracingClient.withSpan("BlobServiceClient-listContainersSegment",Q,async(B)=>{return(0,c0.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:Q.abortSignal,marker:A,...Q,include:typeof Q.include==="string"?[Q.include]:Q.include,tracingOptions:B.tracingOptions}))})}async findBlobsByTagsSegment(A,Q,B={}){return l0.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",B,async(E)=>{let I=(0,c0.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:B.abortSignal,where:A,marker:Q,maxPageSize:B.maxPageSize,tracingOptions:E.tracingOptions}));return{...I,_response:I._response,blobs:I.blobs.map((D)=>{let F="";if(D.tags?.blobTagSet.length===1)F=D.tags.blobTagSet[0].value;return{...D,tags:(0,I6.toTags)(D.tags),tagValue:F}})}})}async*findBlobsByTagsSegments(A,Q,B={}){let E;if(!!Q||Q===void 0)do E=await this.findBlobsByTagsSegment(A,Q,B),E.blobs=E.blobs||[],Q=E.continuationToken,yield E;while(Q)}async*findBlobsByTagsItems(A,Q={}){let B;for await(let E of this.findBlobsByTagsSegments(A,B,Q))yield*E.blobs}findBlobsByTags(A,Q={}){let B={...Q},E=this.findBlobsByTagsItems(A,B);return{next(){return E.next()},[Symbol.asyncIterator](){return this},byPage:(I={})=>{return this.findBlobsByTagsSegments(A,I.continuationToken,{maxPageSize:I.maxPageSize,...B})}}}async*listSegments(A,Q={}){let B;if(!!A||A===void 0)do B=await this.listContainersSegment(A,Q),B.containerItems=B.containerItems||[],A=B.continuationToken,yield await B;while(A)}async*listItems(A={}){let Q;for await(let B of this.listSegments(Q,A))yield*B.containerIte 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(Q);this.code=A,this.name="NetworkError"}}vI.NetworkError=gM;gM.isNetworkErrorCode=(A)=>{if(!A)return!1;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(A)};class TM extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`);this.name="UsageError"}}vI.UsageError=TM;TM.isUsageErrorMessage=(A)=>{if(!A)return!1;return A.includes("insufficient usage")}});var so=K((bI)=>{var $PA=bI&&bI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),KPA=bI&&bI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),LPA=bI&&bI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))$PA(Q,A,B)}return KPA(Q,A),Q},VPA=bI&&bI.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(bI,"__esModule",{value:!0});bI.uploadCacheArchiveSDK=bI.UploadProgress=void 0;var qM=LPA(yB()),zPA=RM(),HPA=OM();class jM{constructor(A){this.contentLength=A,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(A){this.sentBytes=A}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let A=this.sentBytes,Q=(100*(A/this.contentLength)).toFixed(1),B=Date.now()-this.startTime,E=(A/1048576/(B/1000)).toFixed(1);if(qM.info(`Sent ${A} of ${this.contentLength} (${Q}%), ${E} MBs/sec`),this.isDone())this.displayedComplete=!0}onProgress(){return(A)=>{this.setSentBytes(A.loadedBytes)}}startDisplayTimer(A=1000){let Q=()=>{if(this.display(),!this.isDone())this.timeoutHandle=setTimeout(Q,A)};this.timeoutHandle=setTimeout(Q,A)}stopDisplayTimer(){if(this.timeoutHandle)clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0;this.display()}}bI.UploadProgress=jM;function wPA(A,Q,B){var E;return VPA(this,void 0,void 0,function*(){let I=new zPA.BlobClient(A),C=I.getBlockBlobClient(),D=new jM((E=B===null||B===void 0?void 0:B.archiveSizeBytes)!==null&&E!==void 0?E:0),F={blockSize:B===null||B===void 0?void 0:B.uploadChunkSize,concurrency:B===null||B===void 0?void 0:B.uploadConcurrency,maxSingleShotSize:134217728,onProgress:D.onProgress()};try{D.startDisplayTimer(),qM.debug(`BlobClient: ${I.name}:${I.accountName}:${I.containerName}`);let Y=yield C.uploadFile(Q,F);if(Y._response.status>=400)throw new HPA.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${Y._response.status}`);return Y}catch(Y){throw qM.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${Y.message}`),Y}finally{D.stopDisplayTimer()}})}bI.uploadCacheArchiveSDK=wPA});var kM=K((mB)=>{var MPA=mB&&mB.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),RPA=mB&&mB.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),gPA=mB&&mB.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))MPA(Q,A,B)}return RPA(Q,A),Q},U6=mB&&mB.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(mB,"__esModule",{value:!0});mB.retryHttpClientResponse=mB.retryTypedResponse=mB.retry=mB.isRetryableStatusCode=mB.isServerErrorStatusCode=mB.isSuccessStatusCode=void 0;var oo=gPA(yB()),N6=JD(),tG=N5();function TPA(A){if(!A)return!1;return A>=200&&A<300}mB.isSuccessStatusCode=TPA;function ro(A){if(!A)return!0;return A>=500}mB.isServerErrorStatusCode=ro;function to(A){if(!A)return!1;return[N6.HttpCodes.BadGateway,N6.HttpCodes.ServiceUnavailable,N6.HttpCodes.GatewayTimeout].includes(A)}mB.isRetryableStatusCode=to;function OPA(A){return U6(this,void 0,void 0,function*(){return new Promise((Q)=>setTimeout(Q,A))})}function PM(A,Q,B,E=tG.DefaultRetryAttempts,I=tG.DefaultRetryDelay,C=void 0){return U6(this,void 0,void 0,function*(){let D="",F=1;while(F<=E){let Y=void 0,J=void 0,G=!1;try{Y=yield Q()}catch(N){if(C)Y=C(N);G=!0,D=N.message}if(Y){if(J=B(Y),!ro(J))ret Line truncated
Other caches with similar key:`);for(let F of(C===null||C===void 0?void 0:C.artifactCaches)||[])CC.debug(`Cache Key: ${F===null||F===void 0?void 0:F.cacheKey}, Cache Version: ${F===null||F===void 0?void 0:F.cacheVersion}, Cache Scope: ${F===null||F===void 0?void 0:F.scope}, Cache Created: ${F===null||F===void 0?void 0:F.creationTime}`)}}})}function GkA(A,Q,B){return uI(this,void 0,void 0,function*(){let E=new BkA.URL(A),I=(0,yM.getDownloadOptions)(B);if(E.hostname.endsWith(".blob.core.windows.net"))if(I.useAzureSdk)yield(0,K6.downloadCacheStorageSDK)(A,Q,I);else if(I.concurrentBlobDownloads)yield(0,K6.downloadCacheHttpClientConcurrent)(A,Q,I);else yield(0,K6.downloadCacheHttpClient)(A,Q);else yield(0,K6.downloadCacheHttpClient)(A,Q)})}qE.downloadCache=GkA;function NkA(A,Q,B){return uI(this,void 0,void 0,function*(){let E=_M(),I=QN.getCacheVersion(Q,B===null||B===void 0?void 0:B.compressionMethod,B===null||B===void 0?void 0:B.enableCrossOsArchive),C={key:A,version:I,cacheSize:B===null||B===void 0?void 0:B.cacheSize};return yield(0,kF.retryTypedResponse)("reserveCache",()=>uI(this,void 0,void 0,function*(){return E.postJson($U("caches"),C)}))})}qE.reserveCache=NkA;function Ur(A,Q){return`bytes ${A}-${Q}/*`}function UkA(A,Q,B,E,I){return uI(this,void 0,void 0,function*(){CC.debug(`Uploading chunk of size ${I-E+1} bytes at offset ${E} with content range: ${Ur(E,I)}`);let C={"Content-Type":"application/octet-stream","Content-Range":Ur(E,I)},D=yield(0,kF.retryHttpClientResponse)(`uploadChunk (start: ${E}, end: ${I})`,()=>uI(this,void 0,void 0,function*(){return A.sendStream("PATCH",Q,B(),C)}));if(!(0,kF.isSuccessStatusCode)(D.message.statusCode))throw Error(`Cache service responded with ${D.message.statusCode} during upload chunk.`)})}function ZkA(A,Q,B,E){return uI(this,void 0,void 0,function*(){let I=QN.getArchiveFileSizeInBytes(B),C=$U(`caches/${Q.toString()}`),D=hM.openSync(B,"r"),F=(0,yM.getUploadOptions)(E),Y=QN.assertDefined("uploadConcurrency",F.uploadConcurrency),J=QN.assertDefined("uploadChunkSize",F.uploadChunkSize),G=[...Array(Y).keys()];CC.debug("Awaiting all uploads");let N=0;try{yield Promise.all(G.map(()=>uI(this,void 0,void 0,function*(){while(N<I){let U=Math.min(I-N,J),Z=N,X=N+U-1;N+=J,yield UkA(A,C,()=>hM.createReadStream(B,{fd:D,start:Z,end:X,autoClose:!1}).on("error",($)=>{throw Error(`Cache upload failed because file read failed with ${$.message}`)}),Z,X)}})))}finally{hM.closeSync(D)}return})}function WkA(A,Q,B){return uI(this,void 0,void 0,function*(){let E={size:B};return yield(0,kF.retryTypedResponse)("commitCache",()=>uI(this,void 0,void 0,function*(){return A.postJson($U(`caches/${Q.toString()}`),E)}))})}function XkA(A,Q,B,E){return uI(this,void 0,void 0,function*(){if((0,yM.getUploadOptions)(E).useAzureSdk){if(!B)throw Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,EkA.uploadCacheArchiveSDK)(B,Q,E)}else{let C=_M();CC.debug("Upload cache"),yield ZkA(C,A,Q,E),CC.debug("Commiting cache");let D=QN.getArchiveFileSizeInBytes(Q);CC.info(`Cache Size: ~${Math.round(D/1048576)} MB (${D} B)`);let F=yield WkA(C,A,D);if(!(0,kF.isSuccessStatusCode)(F.statusCode))throw Error(`Cache service responded with ${F.statusCode} during commit cache.`);CC.info("Cache saved successfully")}})}qE.saveCache=XkA});var L6=K((BN)=>{Object.defineProperty(BN,"__esModule",{value:!0});BN.isJsonObject=BN.typeofJsonValue=void 0;function $kA(A){let Q=typeof A;if(Q=="object"){if(Array.isArray(A))return"array";if(A===null)return"null"}return Q}BN.typeofJsonValue=$kA;function KkA(A){return A!==null&&typeof A=="object"&&!Array.isArray(A)}BN.isJsonObject=KkA});var z6=K((EN)=>{Object.defineProperty(EN,"__esModule",{value:!0});EN.base64encode=EN.base64decode=void 0;var gD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),V6=[];for(let A=0;A<gD.length;A++)V6[gD[A].charCodeAt(0)]=A;V6[45]=gD.indexOf("+");V6[95]=gD.indexOf("/");function LkA(A){let Q=A.length*3/4;if(A[A.length-2]=="=")Q-=2;else if(A[A.length-1]=="=")Q-=1;let B=new Uint8Array(Q),E=0,I=0,C,D=0;for(let F=0;F<A.length;F++){if(C=V6[A.charCodeAt(F)],C===void 0)switch(A[F]){case"=":I=0;case`
`:case"\r":case"\t":case" ":continue;default:throw Error("invalid base64 string.")}switch(I){case 0:D=C,I=1;break;case 1:B[E++]=D<<2|(C&48)>>4,D=C,I=2;break;case 2:B[E++]=(D&15)<<4|(C&60)>>2,D=C,I=3;break;case 3:B[E++]=(D&3)<<6|C,I=0;break}}if(I==1)throw Error("invalid base64 string.");return B.subarray(0,E)}EN.base64decode=LkA;function VkA(A){let Q="",B=0,E,I=0;for(let C=0;C<A.length;C++)switch(E=A[C],B){case 0:Q+=gD[E>>2],I=(E&3)<<4,B=1;break;case 1:Q+=gD[I|E>>4],I=(E&15)<<2,B=2;break;case 2:Q+=gD[I|E>>6],Q+=gD[E&63],B=0;break}if(B){if(Q+=gD[I],Q+="=",B==1)Q+="="}return Q}EN.base64encode=VkA});var Wr=K((H6)=>{Object.defineProperty(H6,"__esModule",{value:!0});H6.utf8read=void 0;var vM=(A)=>String.fromCharCode.apply(String,A);function zkA(A){if(A.length<1)return"";let Q=0,B=[],E=[],I=0,C,D=A.length;while(Q<D){if(C=A[Q++],C<128)E[I++]=C;else if(C>191&&C<224)E[I++]=(C&31)<<6|A[Q++]&63;else if(C>239&&C<365)C=((C&7)<<18|(A[Q++]&63)<<12|(A[Q++]&63)<<6|A[Q++]&63)-65536,E[I++]=55296+(C>>10),E[I++]=56320+(C&1023);else E[I++]=(C&15)<<12|(A[Q++]&63)<<6|A[Q++]&63;if(I>8191)B.push(vM(E)),I=0}if(B.length){if(I)B.push(vM(E.slice(0,I)));return B.join("")}return vM(E.slice(0,I))}H6.utf8read=zkA});var KU=K((p0)=>{Object.defineProperty(p0,"__esModule",{value:!0});p0.WireType=p0.mergeBinaryOptions=p0.UnknownFieldHandler=void 0;var HkA;(function(A){A.symbol=Symbol.for("protobuf-ts/unknown"),A.onRead=(B,E,I,C,D)=>{(Q(E)?E[A.symbol]:E[A.symbol]=[]).push({no:I,wireType:C,data:D})},A.onWrite=(B,E,I)=>{for(let{no:C,wireType:D,data:F}of A.list(E))I.tag(C,D).raw(F)},A.list=(B,E)=>{if(Q(B)){let I=B[A.symbol];return E?I.filter((C)=>C.no==E):I}return[]},A.last=(B,E)=>A.list(B,E).slice(-1)[0];let Q=(B)=>B&&Array.isArray(B[A.symbol])})(HkA=p0.UnknownFieldHandler||(p0.UnknownFieldHandler={}));function wkA(A,Q){return Object.assign(Object.assign({},A),Q)}p0.mergeBinaryOptions=wkA;var MkA;(function(A){A[A.Varint=0]="Varint",A[A.Bit64=1]="Bit64",A[A.LengthDelimited=2]="LengthDelimited",A[A.StartGroup=3]="StartGroup",A[A.EndGroup=4]="EndGroup",A[A.Bit32=5]="Bit32"})(MkA=p0.WireType||(p0.WireType={}))});var M6=K((mI)=>{Object.defineProperty(mI,"__esModule",{value:!0});mI.varint32read=mI.varint32write=mI.int64toString=mI.int64fromString=mI.varint64write=mI.varint64read=void 0;function RkA(){let A=0,Q=0;for(let E=0;E<28;E+=7){let I=this.buf[this.pos++];if(A|=(I&127)<<E,(I&128)==0)return this.assertBounds(),[A,Q]}let B=this.buf[this.pos++];if(A|=(B&15)<<28,Q=(B&112)>>4,(B&128)==0)return this.assertBounds(),[A,Q];for(let E=3;E<=31;E+=7){let I=this.buf[this.pos++];if(Q|=(I&127)<<E,(I&128)==0)return this.assertBounds(),[A,Q]}throw Error("invalid varint")}mI.varint64read=RkA;function gkA(A,Q,B){for(let C=0;C<28;C=C+7){let D=A>>>C,F=!(D>>>7==0&&Q==0),Y=(F?D|128:D)&255;if(B.push(Y),!F)return}let E=A>>>28&15|(Q&7)<<4,I=Q>>3!=0;if(B.push((I?E|128:E)&255),!I)return;for(let C=3;C<31;C=C+7){let D=Q>>>C,F=D>>>7!=0,Y=(F?D|128:D)&255;if(B.push(Y),!F)return}B.push(Q>>>31&1)}mI.varint64write=gkA;var w6=4294967296;function TkA(A){let Q=A[0]=="-";if(Q)A=A.slice(1);let B=1e6,E=0,I=0;function C(D,F){let Y=Number(A.slice(D,F));if(I*=B,E=E*B+Y,E>=w6)I=I+(E/w6|0),E=E%w6}return C(-24,-18),C(-18,-12),C(-12,-6),C(-6),[Q,E,I]}mI.int64fromString=TkA;function OkA(A,Q){if(Q>>>0<=2097151)return""+(w6*Q+(A>>>0));let B=A&16777215,E=(A>>>24|Q<<8)>>>0&16777215,I=Q>>16&65535,C=B+E*6777216+I*6710656,D=E+I*8147497,F=I*2,Y=1e7;if(C>=Y)D+=Math.floor(C/Y),C%=Y;if(D>=Y)F+=Math.floor(D/Y),D%=Y;function J(G,N){let U=G?String(G):"";if(N)return"0000000".slice(U.length)+U;return U}return J(F,0)+J(D,F)+J(C,1)}mI.int64toString=OkA;function qkA(A,Q){if(A>=0){while(A>127)Q.push(A&127|128),A=A>>>7;Q.push(A)}else{for(let B=0;B<9;B++)Q.push(A&127|128),A=A>>7;Q.push(1)}}mI.varint32write=qkA;function jkA(){let A=this.buf[this.pos++],Q=A&127;if((A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<7,(A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<14,(A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<21,(A&128)==0)return this.assertBounds(),Q;A=this.buf[this.pos++],Q|=(A&15)<<28;for(let B=5;(A&128)!==0&&B<10;B++)A=this.buf[this.pos++];if((A&128)!=0)throw Error("invalid varint");return this.assertBounds(),Q>>>0}mI.varint32read=jkA});var xF=K((fF)=>{Object.defineProperty(fF,"__esModule",{value:!0});fF.PbLong=fF.PbULong=fF.detectBi=void 0;var LU=M6(),EB;function Xr(){let A=new DataView(new ArrayBuffer(8));EB=globalThis.BigInt!==void 0&&typeof A.getBigInt64==="function"&&typeof A.getBigUint64==="function"&&typeof A.setBigInt64==="function"&&typeof A.setBigUint64==="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:A}:void 0}fF.detectBi=Xr;Xr();function $r(A){if(!A)throw Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Kr=/^-?[0-9]+$/,g6=4294967296,R6=2147483648;class bM{ Line truncated
`)}}n6.RpcError=At});var YR=K((s6)=>{Object.defineProperty(s6,"__esModule",{value:!0});s6.mergeRpcOptions=void 0;var Qt=oB();function rfA(A,Q){if(!Q)return A;let B={};a6(A,B),a6(Q,B);for(let E of Object.keys(Q)){let I=Q[E];switch(E){case"jsonOptions":B.jsonOptions=Qt.mergeJsonOptions(A.jsonOptions,B.jsonOptions);break;case"binaryOptions":B.binaryOptions=Qt.mergeBinaryOptions(A.binaryOptions,B.binaryOptions);break;case"meta":B.meta={},a6(A.meta,B.meta),a6(Q.meta,B.meta);break;case"interceptors":B.interceptors=A.interceptors?A.interceptors.concat(I):I.concat();break}}return B}s6.mergeRpcOptions=rfA;function a6(A,Q){if(!A)return;let B=Q;for(let[E,I]of Object.entries(A))if(I instanceof Date)B[E]=new Date(I.getTime());else if(Array.isArray(I))B[E]=I.concat();else B[E]=I}});var JR=K((o1)=>{Object.defineProperty(o1,"__esModule",{value:!0});o1.Deferred=o1.DeferredState=void 0;var a0;(function(A){A[A.PENDING=0]="PENDING",A[A.REJECTED=1]="REJECTED",A[A.RESOLVED=2]="RESOLVED"})(a0=o1.DeferredState||(o1.DeferredState={}));class Bt{constructor(A=!0){if(this._state=a0.PENDING,this._promise=new Promise((Q,B)=>{this._resolve=Q,this._reject=B}),A)this._promise.catch((Q)=>{})}get state(){return this._state}get promise(){return this._promise}resolve(A){if(this.state!==a0.PENDING)throw Error(`cannot resolve ${a0[this.state].toLowerCase()}`);this._resolve(A),this._state=a0.RESOLVED}reject(A){if(this.state!==a0.PENDING)throw Error(`cannot reject ${a0[this.state].toLowerCase()}`);this._reject(A),this._state=a0.REJECTED}resolvePending(A){if(this._state===a0.PENDING)this.resolve(A)}rejectPending(A){if(this._state===a0.PENDING)this.reject(A)}}o1.Deferred=Bt});var GR=K((o6)=>{Object.defineProperty(o6,"__esModule",{value:!0});o6.RpcOutputStreamController=void 0;var Et=JR(),r1=oB();class It{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(A){return this.addLis(A,this._lis.nxt)}onMessage(A){return this.addLis(A,this._lis.msg)}onError(A){return this.addLis(A,this._lis.err)}onComplete(A){return this.addLis(A,this._lis.cmp)}addLis(A,Q){return Q.push(A),()=>{let B=Q.indexOf(A);if(B>=0)Q.splice(B,1)}}clearLis(){for(let A of Object.values(this._lis))A.splice(0,A.length)}get closed(){return this._closed!==!1}notifyNext(A,Q,B){if(r1.assert((A?1:0)+(Q?1:0)+(B?1:0)<=1,"only one emission at a time"),A)this.notifyMessage(A);if(Q)this.notifyError(Q);if(B)this.notifyComplete()}notifyMessage(A){r1.assert(!this.closed,"stream is closed"),this.pushIt({value:A,done:!1}),this._lis.msg.forEach((Q)=>Q(A)),this._lis.nxt.forEach((Q)=>Q(A,void 0,!1))}notifyError(A){r1.assert(!this.closed,"stream is closed"),this._closed=A,this.pushIt(A),this._lis.err.forEach((Q)=>Q(A)),this._lis.nxt.forEach((Q)=>Q(void 0,A,!1)),this.clearLis()}notifyComplete(){r1.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach((A)=>A()),this._lis.nxt.forEach((A)=>A(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){if(this._closed===!0)this.pushIt({value:null,done:!0});else if(this._closed!==!1)this.pushIt(this._closed);return{next:()=>{let A=this._itState;r1.assert(A,"bad state"),r1.assert(!A.p,"iterator contract broken");let Q=A.q.shift();if(Q)return"value"in Q?Promise.resolve(Q):Promise.reject(Q);return A.p=new Et.Deferred,A.p.promise}}}pushIt(A){let Q=this._itState;if(Q.p){let B=Q.p;r1.assert(B.state==Et.DeferredState.PENDING,"iterator contract broken"),"value"in A?B.resolve(A):B.reject(A),delete Q.p}else Q.q.push(A)}}o6.RpcOutputStreamController=It});var NR=K((GN)=>{var tfA=GN&&GN.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(GN,"__esModule",{value:!0});GN.UnaryCall=void 0;class Ct{constructor(A,Q,B,E,I,C,D){this.method=A,this.requestHeaders=Q,this.request=B,this.headers=E,this.response=I,this.status=C,this.trailers=D}then(A,Q){return this.promiseFinished().then((B)=>A?Promise.resolve(A(B)):B,(B)=>Q?Promise.resolve(Q(B)):Promise.reject(B))}promiseFinished(){return tfA(this,void 0,void 0,function*(){let[A,Q,B,E]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:A,response:Q,status:B,trailers:E}})}}GN.UnaryCall=Ct});var UR=K((NN)=>{var efA=NN&&NN.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(NN,"__esModule",{value:!0});NN.ServerStreamingCall=void 0;class Dt{constructor(A,Q,B,E,I,C,D){this.me Line truncated
`));let E=yield zR(B,"create");yield HR(E,A)})}eE.createTar=nxA});var dt=K((pB)=>{var axA=pB&&pB.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),sxA=pB&&pB.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),fU=pB&&pB.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))axA(Q,A,B)}return sxA(Q,A),Q},RN=pB&&pB.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(pB,"__esModule",{value:!0});pB.saveCache=pB.restoreCache=pB.isFeatureAvailable=pB.FinalizeCacheError=pB.ReserveCacheError=pB.ValidationError=void 0;var sA=fU(yB()),I7=fU(require("path")),qB=fU(PJ()),MN=fU(Zr()),ut=fU(yt()),C7=X6(),_F=bt(),D7=JD();class cC extends Error{constructor(A){super(A);this.name="ValidationError",Object.setPrototypeOf(this,cC.prototype)}}pB.ValidationError=cC;class t1 extends Error{constructor(A){super(A);this.name="ReserveCacheError",Object.setPrototypeOf(this,t1.prototype)}}pB.ReserveCacheError=t1;class kU extends Error{constructor(A){super(A);this.name="FinalizeCacheError",Object.setPrototypeOf(this,kU.prototype)}}pB.FinalizeCacheError=kU;function mt(A){if(!A||A.length===0)throw new cC("Path Validation Error: At least one directory or file path is required")}function wR(A){if(A.length>512)throw new cC(`Key Validation Error: ${A} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(A))throw new cC(`Key Validation Error: ${A} cannot contain commas.`)}function oxA(){switch((0,C7.getCacheServiceVersion)()){case"v2":return!!process.env.ACTIONS_RESULTS_URL;case"v1":default:return!!process.env.ACTIONS_CACHE_URL}}pB.isFeatureAvailable=oxA;function rxA(A,Q,B,E,I=!1){return RN(this,void 0,void 0,function*(){let C=(0,C7.getCacheServiceVersion)();switch(sA.debug(`Cache service version: ${C}`),mt(A),C){case"v2":return yield exA(A,Q,B,E,I);case"v1":default:return yield txA(A,Q,B,E,I)}})}pB.restoreCache=rxA;function txA(A,Q,B,E,I=!1){return RN(this,void 0,void 0,function*(){B=B||[];let C=[Q,...B];if(sA.debug("Resolved Keys:"),sA.debug(JSON.stringify(C)),C.length>10)throw new cC("Key Validation Error: Keys are limited to a maximum of 10.");for(let Y of C)wR(Y);let D=yield qB.getCompressionMethod(),F="";try{let Y=yield MN.getCacheEntry(C,A,{compressionMethod:D,enableCrossOsArchive:I});if(!(Y===null||Y===void 0?void 0:Y.archiveLocation))return;if(E===null||E===void 0?void 0:E.lookupOnly)return sA.info("Lookup only - skipping download"),Y.cacheKey;if(F=I7.join(yield qB.createTempDirectory(),qB.getCacheFileName(D)),sA.debug(`Archive Path: ${F}`),yield MN.downloadCache(Y.archiveLocation,F,E),sA.isDebug())yield(0,_F.listTar)(F,D);let J=qB.getArchiveFileSizeInBytes(F);return sA.info(`Cache Size: ~${Math.round(J/1048576)} MB (${J} B)`),yield(0,_F.extractTar)(F,D),sA.info("Cache restored successfully"),Y.cacheKey}catch(Y){let J=Y;if(J.name===cC.name)throw Y;else if(J instanceof D7.HttpClientError&&typeof J.statusCode==="number"&&J.statusCode>=500)sA.error(`Failed to restore: ${Y.message}`);else sA.warning(`Failed to restore: ${Y.message}`)}finally{try{yield qB.unlinkFile(F)}catch(Y){sA.debug(`Failed to delete archive: ${Y}`)}}return})}function exA(A,Q,B,E,I=!1){return RN(this,void 0,void 0,function*(){E=Object.assign(Object.assign({},E),{useAzureSdk:!0}),B=B||[];let C=[Q,...B];if(sA.debug("Resolved Keys:"),sA.debug(JSON.stringify(C)),C.length>10)throw new cC("Key Validation Error: Keys are limited to a maximum of 10.");for(let F of C)wR(F);let D="";try{let F=ut.internalCacheTwirpClient(),Y=yield qB.getCompressionMethod(),J={key:Q,restoreKeys:B,version:qB.getCacheVersion(A,Y,I)},G=yield F.GetCacheEntryDownloadURL(J);if(!G.ok){sA.debug(`Cache not found for version ${J.version} of keys: ${C.join(", ")}`);return}if(J.key!==G.matchedKey)sA.info(`Cache hit for restore-key: ${G.matchedKey}`);else sA.info(`Cache hit for: ${G.matchedKey}`);if(E===null||E===void 0?void 0:E.lookupOnly)return sA.info("Lookup only - skipping download"),G.matchedKey;D=I7.join(yield qB.createTempDirectory(),qB.getCacheFileName(Y)),sA.debug(`Archive path: ${D}`),sA.debug(`Starting download of archive to: ${D}`),yield MN.downloadCache(G.signedDownloadUrl,D,E);let U=qB.getArchiveFileSizeInBytes(D);if(sA.info(`Cache Size: ~${Math.round(U/1048576)} MB (${U} B)`),sA.isDebug())yield(0,_F.listTar)(D,Y);return yield(0,_F.extractTar)(D,Y),sA.info("Cache restored successfully"),G.matche Line truncated
WHERE eas_build_id IS NOT NULL AND eas_build_id != "" AND fingerprint_hash = ?
ORDER BY updated_at DESC LIMIT 1`,A);return Q?XE.serialize(Q):null}async getEntityFromGitCommitHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let Q=await this.db.getAsync(`SELECT * FROM ${XE.TABLE_NAME} WHERE git_commit_hash = ?`,A);return Q?XE.serialize(Q):null}async getFirstEntityFromFingerprintHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let Q=await this.db.getAsync(`SELECT * FROM ${XE.TABLE_NAME} WHERE fingerprint_hash = ?`,A);return Q?XE.serialize(Q):null}async queryEntitiesFromFingerprintHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");return(await this.db.allAsync(`SELECT * FROM ${XE.TABLE_NAME} WHERE fingerprint_hash = ?`,A)).map((B)=>XE.serialize(B))}async getFingerprintSourcesAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let B=(await this.db.getAsync(`SELECT json_extract(fingerprint, '$.sources') as sources FROM ${XE.TABLE_NAME} WHERE fingerprint_hash = ?`,A))?.sources;if(!B)return null;return JSON.parse(B)}async getFirstGitHubArtifactAsync(A,Q){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let B=await this.db.getAsync(`SELECT ga.id, ga.artifact_id, ga.artifact_url, ga.artifact_digest, ga.workflow_run_id, ga.platform
FROM ${XE.TABLE_NAME} f
JOIN github_artifacts ga ON f.id = ga.fingerprint_id
WHERE f.fingerprint_hash = ? AND (ga.platform = ? AND (f.platform = ? OR f.platform IS NULL))
ORDER BY f.id ASC, ga.id ASC
LIMIT 1`,A,Q,Q);if(!B)return null;return{id:B.id,artifactId:B.artifact_id,artifactUrl:B.artifact_url,artifactDigest:B.artifact_digest,workflowRunId:B.workflow_run_id,platform:B.platform}}getArtifactsManager(){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");return new WE(this.db)}async closeAsync(){this.db?.closeAsync()}static TABLE_NAME="fingerprint";static SCHEMA=["id INTEGER PRIMARY KEY AUTOINCREMENT","eas_build_id TEXT","git_commit_hash TEXT NOT NULL","fingerprint_hash TEXT NOT NULL","fingerprint TEXT NOT NULL","platform TEXT","created_at TEXT NOT NULL DEFAULT (DATETIME('now', 'utc'))","updated_at TEXT NOT NULL DEFAULT (DATETIME('now', 'utc'))"];static INDEXES=[`CREATE UNIQUE INDEX IF NOT EXISTS idx_git_commit_hash ON ${this.TABLE_NAME} (git_commit_hash)`,`CREATE INDEX IF NOT EXISTS idx_fingerprint_hash ON ${this.TABLE_NAME} (fingerprint_hash)`];static EXTRA_CREATE_DB_STATEMENTS=[`CREATE TRIGGER IF NOT EXISTS update_fingerprint_updated_at AFTER UPDATE ON ${this.TABLE_NAME}
BEGIN
UPDATE ${this.TABLE_NAME} SET updated_at = DATETIME('now', 'utc') WHERE id = NEW.id;
END`];db=null;static serialize(A){return{id:A.id,easBuildId:A.eas_build_id,gitCommitHash:A.git_commit_hash,fingerprintHash:A.fingerprint_hash,fingerprint:JSON.parse(A.fingerprint),platform:A.platform,createdAt:A.created_at,updatedAt:A.updated_at}}}async function IiA(A,Q){await ChA(Q.fingerprintVersion,Q.packager,Q.fingerprintInstallationCache);let B=require("@expo/fingerprint"),E=await B.createFingerprintAsync(Q.workingDirectory),I=null;if(Q.previousGitCommitHash)I=await A.getEntityFromGitCommitHashAsync(Q.previousGitCommitHash);let C=I!=null?await B.diffFingerprints(I.fingerprint,E):await B.diffFingerprints({sources:[],hash:""},E);return{currentFingerprint:E,previousFingerprint:I?.fingerprint??null,diff:C}}async function De(A,Q){await Be(A);let B=await gR();if(await DhA(Q)!=null)PE.info(`Restored fingerprint database from cache - cacheKey[${Q}]`);else PE.info(`Missing fingerprint database from cache - will create a new database - cacheKey[${Q}]`);let I=new XE(B);return await I.initAsync(),I}function CiA(){return{packager:PE.getInput("packager")||"yarn",githubToken:PE.getInput("github-token"),workingDirectory:PE.getInput("working-directory"),fingerprintVersion:PE.getInput("fingerprint-version")||"latest",fingerprintInstallationCache:!PE.getInput("fingerprint-installation-cache")||PE.getBooleanInput("fingerprint-installation-cache"),fingerprintDbCacheKey:PE.getInput("fingerprint-db-cache-key"),previousGitCommitHash:PE.getInput("previous-git-commit")||(e1.context.eventName==="pull_request"?e1.context.payload.pull_request?.base?.sha:e1.context.payload.before),currentGitCommitHash:PE.getInput("current-git-commit")||(e1.context.eventName==="pull_request"?e1.context.payload.pull_request?.head?.sha:e1.context.sha),savingDbBranch:PE.getInput("saving-db-branch")||void 0}}async function ChA(A,Q,B=!0){let I=await J7("@expo/fingerprint",A),C=B?`Installing @expo/fingerprint (${I}) from cache or with ${Q}`:`Installing @expo/fingerprint (${I}) with ${Q}`;return await PE.group(C,async()=>{let D=await G7({name:"@expo/fingerprint",version:I,packageManager:Q,packageCache:B});return Jh(D),g4(ON.default.join(D,"node_modules")),D})}async function DhA(A){return F7(ON.default.dirname(await gR()),A)}async function DiA(A){return PE.info(`Saving fingerprint database to cache: ${A}`),Y7(ON.default.dirname(await gR()),A)}async function gR(){Ie.default(process.env.RUNNER_TOOL_CACHE,"Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined");let A=ON.default.join(process.env.RUNNER_TOOL_CACHE,"fingerprint-storage","fingerprint.db"),Q=ON.default.dirname(A);if(!await Ce.default.promises.stat(Q).catch(()=>null))await Ee.mkdirP(Q);return A}Yh(FhA);async function FhA(){let A=PD.getInput("current-git-commit",{required:!0}),Q=PD.getInput("current-fingerprint",{required:!0}),B=PD.getInput("platform",{required:!0}),E=PD.getInput("artifact-id",{required:!0}),I=PD.getInput("artifact-url",{required:!0}),C=PD.getInput("artifact-digest",{required:!0}),D=PD.getInput("packager"),F=PD.getInput("fingerprint-db-cache-key"),Y=await De(D,F);await YhA({dbManager:Y,fingerprintDbCacheKey:F,gitCommitHash:A,fingerprint:Q,platform:B,githubArtifact:{artifactId:E,artifactUrl:I,artifactDigest:C,workflowRunId:String(Fe.context.runId),platform:B}})}async function YhA(A){let Q=JSON.parse(A.fingerprint);await A.dbManager.upsertFingerprintByGitCommitHashAsync(A.gitCommitHash,{fingerprint:Q});let B=await A.dbManager.getEntityFromGitCommitHashAsync(A.gitCommitHash);Ye.default(B,"Fingerprint entity should exist after upsert"),await A.dbManager.getArtifactsManager().insertArtifactAsync({fingerprintId:B.id,artifactId:A.githubArtifact.artifactId,artifactUrl:A.githubArtifact.artifactUrl,artifactDigest:A.githubArtifact.artifactDigest,workflowRunId:A.githubArtifact.workflowRunId,platform:A.githubArtifact.platform})}
+226
View File
@@ -0,0 +1,226 @@
var Ge=Object.create;var{getPrototypeOf:Ne,defineProperty:PN,getOwnPropertyNames:qR,getOwnPropertyDescriptor:Ue}=Object,jR=Object.prototype.hasOwnProperty;var tQ=(A,Q,B)=>{B=A!=null?Ge(Ne(A)):{};let E=Q||!A||!A.__esModule?PN(B,"default",{value:A,enumerable:!0}):B;for(let I of qR(A))if(!jR.call(E,I))PN(E,I,{get:()=>A[I],enumerable:!0});return E},OR=new WeakMap,Ze=(A)=>{var Q=OR.get(A),B;if(Q)return Q;if(Q=PN({},"__esModule",{value:!0}),A&&typeof A==="object"||typeof A==="function")qR(A).map((E)=>!jR.call(Q,E)&&PN(Q,E,{get:()=>A[E],enumerable:!(B=Ue(A,E))||B.enumerable}));return OR.set(A,Q),Q},K=(A,Q)=>()=>(Q||A((Q={exports:{}}).exports,Q),Q.exports);var We=(A,Q)=>{for(var B in Q)PN(A,B,{get:Q[B],enumerable:!0,configurable:!0,set:(E)=>Q[B]=()=>E})};var hU=K((e1)=>{Object.defineProperty(e1,"__esModule",{value:!0});e1.toCommandProperties=e1.toCommandValue=void 0;function Xe(A){if(A===null||A===void 0)return"";else if(typeof A==="string"||A instanceof String)return A;return JSON.stringify(A)}e1.toCommandValue=Xe;function $e(A){if(!Object.keys(A).length)return{};return{title:A.title,file:A.file,line:A.startLine,endLine:A.endLine,col:A.startColumn,endColumn:A.endColumn}}e1.toCommandProperties=$e});var hR=K((YC)=>{var Ke=YC&&YC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),Le=YC&&YC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),Ve=YC&&YC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))Ke(Q,A,B)}return Le(Q,A),Q};Object.defineProperty(YC,"__esModule",{value:!0});YC.issue=YC.issueCommand=void 0;var ze=Ve(require("os")),kR=hU();function fR(A,Q,B){let E=new xR(A,Q,B);process.stdout.write(E.toString()+ze.EOL)}YC.issueCommand=fR;function He(A,Q=""){fR(A,{},Q)}YC.issue=He;var PR="::";class xR{constructor(A,Q,B){if(!A)A="missing.command";this.command=A,this.properties=Q,this.message=B}toString(){let A=PR+this.command;if(this.properties&&Object.keys(this.properties).length>0){A+=" ";let Q=!0;for(let B in this.properties)if(this.properties.hasOwnProperty(B)){let E=this.properties[B];if(E){if(Q)Q=!1;else A+=",";A+=`${B}=${Me(E)}`}}}return A+=`${PR}${we(this.message)}`,A}}function we(A){return(0,kR.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function Me(A){return(0,kR.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});var _R=K((JC)=>{var Re=JC&&JC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),ge=JC&&JC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),U7=JC&&JC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))Re(Q,A,B)}return ge(Q,A),Q};Object.defineProperty(JC,"__esModule",{value:!0});JC.prepareKeyValueMessage=JC.issueFileCommand=void 0;var Te=U7(require("crypto")),SR=U7(require("fs")),N7=U7(require("os")),yR=hU();function Oe(A,Q){let B=process.env[`GITHUB_${A}`];if(!B)throw Error(`Unable to find environment variable for file command ${A}`);if(!SR.existsSync(B))throw Error(`Missing file at path: ${B}`);SR.appendFileSync(B,`${(0,yR.toCommandValue)(Q)}${N7.EOL}`,{encoding:"utf8"})}JC.issueFileCommand=Oe;function qe(A,Q){let B=`ghadelimiter_${Te.randomUUID()}`,E=(0,yR.toCommandValue)(Q);if(A.includes(B))throw Error(`Unexpected input: name should not contain the delimiter "${B}"`);if(E.includes(B))throw Error(`Unexpected input: value should not contain the delimiter "${B}"`);return`${A}<<${B}${N7.EOL}${E}${N7.EOL}${B}`}JC.prepareKeyValueMessage=qe});var bR=K((AY)=>{Object.defineProperty(AY,"__esModule",{value:!0});AY.checkBypass=AY.getProxyUrl=void 0;function je(A){let Q=A.protocol==="https:";if(vR(A))return;let B=(()=>{if(Q)return process.env.https_proxy||process.env.HTTPS_PROXY;else return process.env.http_proxy||process.env.HTTP_PROXY})();if(B)try{return new Z7(B)}catch(E){if(!B.startsWith("http://")&&!B.startsWith("https://"))return new Z7(`http://${B}`)}else return}AY.getProxyUrl=je;function vR(A){if(!A.hostname)return!1;let Q=A.hostname;if(Pe(Q))return!0;let B=process.env.no_proxy||process.env.NO_PROXY||"";if(!B)return!1;let E;if(A.port)E=Number(A.port);else if(A.protocol==="http:")E=80;else if(A.protocol==="https:")E=443;let I=[A.hostname.toUpperCase()Line truncated
`,N.message,N.stack);var U=Error("tunneling socket could not be established, cause="+N.message);U.code="ECONNRESET",Q.request.emit("error",U),E.removeSocket(I)}};s0.prototype.removeSocket=function(Q){var B=this.sockets.indexOf(Q);if(B===-1)return;this.sockets.splice(B,1);var E=this.requests.shift();if(E)this.createSocket(E,function(I){E.request.onSocket(I)})};function mR(A,Q){var B=this;s0.prototype.createSocket.call(B,A,function(E){var I=A.request.getHeader("host"),C=X7({},B.options,{socket:E,servername:I?I.replace(/:.*$/,""):A.host}),D=ke.connect(0,C);B.sockets[B.sockets.indexOf(E)]=D,Q(D)})}function dR(A,Q,B){if(typeof A==="string")return{host:A,port:Q,localAddress:B};return A}function X7(A){for(var Q=1,B=arguments.length;Q<B;++Q){var E=arguments[Q];if(typeof E==="object"){var I=Object.keys(E);for(var C=0,D=I.length;C<D;++C){var F=I[C];if(E[F]!==void 0)A[F]=E[F]}}}return A}var PD;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG))PD=function(){var A=Array.prototype.slice.call(arguments);if(typeof A[0]==="string")A[0]="TUNNEL: "+A[0];else A.unshift("TUNNEL:");console.error.apply(console,A)};else PD=function(){};QY.debug=PD});var pR=K((VhA,lR)=>{lR.exports=cR()});var UB=K((zhA,iR)=>{iR.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"),kHeadersList:Symbol("headers list"),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"),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"),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"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}});var eQ=K((HhA,aR)=>{class rB extends Error{constructor(A){super(A);this.name="UndiciError",this.code="UND_ERR"}}class $7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,$7),this.name="ConnectTimeoutError",this.message=A||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}}class K7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,K7),this.name="HeadersTimeoutError",this.message=A||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}}class L7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,L7),this.name="HeadersOverflowError",this.message=A||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}}class V7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,V7),this.name="BodyTimeoutError",this.message=A||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}}class z7 extends rB{constructor(A,Q,B,E){super(A);Error.captureStackTrace(this,z7),this.name="ResponseStatusCodeError",this.message=A||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=E,this.status=Q,this.statusCode=Q,this.headers=B}}class H7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,H7),this.name="InvalidArgumentError",this.message=A||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}}class w7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,w7),this.name="InvalidReturnValueError",this.message=A||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}}class M7 extends rB{constructor(A){super(A);Error.captureStackTrace(this,M7),this.name="AbortError",this.me Line truncated
\r
`),MAA=/\r\n/g,RAA=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function EY(A){Kg.call(this),A=A||{};let Q=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=$g(A,"maxHeaderPairs",2000),this.maxHeaderSize=$g(A,"maxHeaderSize",81920),this.buffer="",this.header={},this.finished=!1,this.ss=new HAA(wAA),this.ss.on("info",function(B,E,I,C){if(E&&!Q.maxed){if(Q.nread+C-I>=Q.maxHeaderSize)C=Q.maxHeaderSize-Q.nread+I,Q.nread=Q.maxHeaderSize,Q.maxed=!0;else Q.nread+=C-I;Q.buffer+=E.toString("binary",I,C)}if(B)Q._finish()})}zAA(EY,Kg);EY.prototype.push=function(A){let Q=this.ss.push(A);if(this.finished)return Q};EY.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};EY.prototype._finish=function(){if(this.buffer)this._parseHeader();this.ss.matches=this.ss.maxMatches;let A=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",A)};EY.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let A=this.buffer.split(MAA),Q=A.length,B,E;for(var I=0;I<Q;++I){if(A[I].length===0)continue;if(A[I][0]==="\t"||A[I][0]===" "){if(E){this.header[E][this.header[E].length-1]+=A[I];continue}}let C=A[I].indexOf(":");if(C===-1||C===0)return;if(B=RAA.exec(A[I]),E=B[1].toLowerCase(),this.header[E]=this.header[E]||[],this.header[E].push(B[2]||""),++this.npairs===this.maxHeaderPairs)break}};Lg.exports=EY});var d7=K((jhA,Hg)=>{var m7=require("node:stream").Writable,gAA=require("node:util").inherits,TAA=b7(),zg=Wg(),OAA=Vg(),qAA=Buffer.from("-"),jAA=Buffer.from(`\r
`),PAA=function(){};function lC(A){if(!(this instanceof lC))return new lC(A);if(m7.call(this,A),!A||!A.headerFirst&&typeof A.boundary!=="string")throw TypeError("Boundary required");if(typeof A.boundary==="string")this.setBoundary(A.boundary);else this._bparser=void 0;this._headerFirst=A.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:A.partHwm},this._pause=!1;let Q=this;this._hparser=new OAA(A),this._hparser.on("header",function(B){Q._inHeader=!1,Q._part.emit("header",B)})}gAA(lC,m7);lC.prototype.emit=function(A){if(A==="finish"&&!this._realFinish){if(!this._finished){let Q=this;process.nextTick(function(){if(Q.emit("error",Error("Unexpected end of multipart data")),Q._part&&!Q._ignoreData){let B=Q._isPreamble?"Preamble":"Part";Q._part.emit("error",Error(B+" terminated early due to unexpected end of multipart data")),Q._part.push(null),process.nextTick(function(){Q._realFinish=!0,Q.emit("finish"),Q._realFinish=!1});return}Q._realFinish=!0,Q.emit("finish"),Q._realFinish=!1})}}else m7.prototype.emit.apply(this,arguments)};lC.prototype._write=function(A,Q,B){if(!this._hparser&&!this._bparser)return B();if(this._headerFirst&&this._isPreamble){if(!this._part)if(this._part=new zg(this._partOpts),this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else this._ignore();let E=this._hparser.push(A);if(!this._inHeader&&E!==void 0&&E<A.length)A=A.slice(E);else return B()}if(this._firstWrite)this._bparser.push(jAA),this._firstWrite=!1;if(this._bparser.push(A),this._pause)this._cb=B;else B()};lC.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};lC.prototype.setBoundary=function(A){let Q=this;this._bparser=new TAA(`\r
--`+A),this._bparser.on("info",function(B,E,I,C){Q._oninfo(B,E,I,C)})};lC.prototype._ignore=function(){if(this._part&&!this._ignoreData)this._ignoreData=!0,this._part.on("error",PAA),this._part.resume()};lC.prototype._oninfo=function(A,Q,B,E){let I,C=this,D=0,F,Y=!0;if(!this._part&&this._justMatched&&Q){while(this._dashes<2&&B+D<E)if(Q[B+D]===45)++D,++this._dashes;else{if(this._dashes)I=qAA;this._dashes=0;break}if(this._dashes===2){if(B+D<E&&this.listenerCount("trailer")!==0)this.emit("trailer",Q.slice(B+D,E));if(this.reset(),this._finished=!0,C._parts===0)C._realFinish=!0,C.emit("finish"),C._realFinish=!1}if(this._dashes)return}if(this._justMatched)this._justMatched=!1;if(!this._part){if(this._part=new zg(this._partOpts),this._part._read=function(J){C._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else if(this._isPreamble!==!0&&this.listenerCount("part")!==0)this.emit("part",this._part);else this._ignore();if(!this._isPreamble)this._inHeader=!0}if(Q&&B<E&&!this._ignoreData){if(this._isPreamble||!this._inHeader){if(I)Y=this._part.push(I);if(Y=this._part.push(Q.slice(B,E)),!Y)this._pause=!0}else if(!this._isPreamble&&this._inHeader){if(I)this._hparser.push(I);if(F=this._hparser.push(Q.slice(B,E)),!this._inHeader&&F!==void 0&&F<E)this._oninfo(!1,Q,B+F,E)}}if(A){if(this._hparser.reset(),this._isPreamble)this._isPreamble=!1;else if(B!==E)++this._parts,this._part.on("end",function(){if(--C._parts===0)if(C._finished)C._realFinish=!0,C.emit("finish"),C._realFinish=!1;else C._unpause()});this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0}};lC.prototype._unpause=function(){if(!this._pause)return;if(this._pause=!1,this._cb){let A=this._cb;this._cb=void 0,A()}};Hg.exports=lC});var bU=K((c7,Rg)=>{var wg=new TextDecoder("utf-8"),Mg=new Map([["utf-8",wg],["utf8",wg]]);function kAA(A){let Q;while(!0)switch(A){case"utf-8":case"utf8":return fN.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return fN.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return fN.utf16le;case"base64":return fN.base64;default:if(Q===void 0){Q=!0,A=A.toLowerCase();continue}return fN.other.bind(A)}}var fN={utf8:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.utf8Slice(0,A.length)},latin1:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")return A;return A.latin1Slice(0,A.length)},utf16le:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.ucs2Slice(0,A.length)},base64:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.base64Slice(0,A.length)},other:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);if(Mg.has(c7.toString()))try{return Mg.get(c7).decode(A)}catch{}return typeof A==="string"?A:A.toString()}};function fAA(A,Q,B){if(A)return kAA(B)(A,Q);return A}Rg.exports=fAA});var p7=K((PhA,jg)=>{var uU=bU(),gg=/%[a-fA-F0-9][a-fA-F0-9]/g,xAA={"%00":"\x00","%01":"\x01","%02":"\x02","%03":"\x03","%04":"\x04","%05":"\x05","%06":"\x06","%07":"\x07","%08":"\b","%09":"\t","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"\x0E","%0E":"\x0E","%0f":"\x0F","%0F":"\x0F","%10":"\x10","%11":"\x11","%12":"\x12","%13":"\x13","%14":"\x14","%15":"\x15","%16":"\x16","%17":"\x17","%18":"\x18","%19":"\x19","%1a":"\x1A","%1A":"\x1A","%1b":"\x1B","%1B":"\x1B","%1c":"\x1C","%1C":"\x1C","%1d":"\x1D","%1D":"\x1D","%1e":"\x1E","%1E":"\x1E","%1f":"\x1F","%1F":"\x1F","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"","%B6":"","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%FdLine truncated
`))return!1;return!0}function fQA(A,Q){let{headersList:B}=Q,E=(B.get("referrer-policy")??"").split(","),I="";if(E.length>0)for(let C=E.length;C!==0;C--){let D=E[C-1].trim();if(LQA.has(D)){I=D;break}}if(I!=="")A.referrerPolicy=I}function xQA(){return"allowed"}function hQA(){return"success"}function SQA(){return"success"}function yQA(A){let Q=null;Q=A.mode,A.headersList.set("sec-fetch-mode",Q)}function _QA(A){let Q=A.origin;if(A.responseTainting==="cors"||A.mode==="websocket"){if(Q)A.headersList.append("origin",Q)}else if(A.method!=="GET"&&A.method!=="HEAD"){switch(A.referrerPolicy){case"no-referrer":Q=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(A.origin&&e7(A.origin)&&!e7(SN(A)))Q=null;break;case"same-origin":if(!pU(A,SN(A)))Q=null;break;default:}if(Q)A.headersList.append("origin",Q)}}function vQA(A){return HQA.now()}function bQA(A){return{startTime:A.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:A.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function uQA(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function mQA(A){return{referrerPolicy:A.referrerPolicy}}function dQA(A){let Q=A.referrerPolicy;YY(Q);let B=null;if(A.referrer==="client"){let F=zQA();if(!F||F.origin==="null")return"no-referrer";B=new URL(F)}else if(A.referrer instanceof URL)B=A.referrer;let E=r7(B),I=r7(B,!0);if(E.toString().length>4096)E=I;let C=pU(A,E),D=hN(E)&&!hN(A.url);switch(Q){case"origin":return I!=null?I:r7(B,!0);case"unsafe-url":return E;case"same-origin":return C?I:"no-referrer";case"origin-when-cross-origin":return C?E:I;case"strict-origin-when-cross-origin":{let F=SN(A);if(pU(E,F))return E;if(hN(E)&&!hN(F))return"no-referrer";return I}case"strict-origin":case"no-referrer-when-downgrade":default:return D?"no-referrer":I}}function r7(A,Q){if(YY(A instanceof URL),A.protocol==="file:"||A.protocol==="about:"||A.protocol==="blank:")return"no-referrer";if(A.username="",A.password="",A.hash="",Q)A.pathname="",A.search="";return A}function hN(A){if(!(A instanceof URL))return!1;if(A.href==="about:blank"||A.href==="about:srcdoc")return!0;if(A.protocol==="data:")return!0;if(A.protocol==="file:")return!0;return Q(A.origin);function Q(B){if(B==null||B==="null")return!1;let E=new URL(B);if(E.protocol==="https:"||E.protocol==="wss:")return!0;if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(E.hostname)||(E.hostname==="localhost"||E.hostname.includes("localhost."))||E.hostname.endsWith(".localhost"))return!0;return!1}}function cQA(A,Q){if(lU===void 0)return!0;let B=BT(Q);if(B==="no metadata")return!0;if(B.length===0)return!0;let E=pQA(B),I=iQA(B,E);for(let C of I){let{algo:D,hash:F}=C,Y=lU.createHash(D).update(A).digest("base64");if(Y[Y.length-1]==="=")if(Y[Y.length-2]==="=")Y=Y.slice(0,-2);else Y=Y.slice(0,-1);if(nQA(Y,F))return!0}return!1}var lQA=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function BT(A){let Q=[],B=!0;for(let E of A.split(" ")){B=!1;let I=lQA.exec(E);if(I===null||I.groups===void 0||I.groups.algo===void 0)continue;let C=I.groups.algo.toLowerCase();if(tg.includes(C))Q.push(I.groups)}if(B===!0)return"no metadata";return Q}function pQA(A){let Q=A[0].algo;if(Q[3]==="5")return Q;for(let B=1;B<A.length;++B){let E=A[B];if(E.algo[3]==="5"){Q="sha512";break}else if(Q[3]==="3")continue;else if(E.algo[3]==="3")Q="sha384"}return Q}function iQA(A,Q){if(A.length===1)return A;let B=0;for(let E=0;E<A.length;++E)if(A[E].algo===Q)A[B++]=A[E];return A.length=B,A}function nQA(A,Q){if(A.length!==Q.length)return!1;for(let B=0;B<A.length;++B)if(A[B]!==Q[B]){if(A[B]==="+"&&Q[B]==="-"||A[B]==="/"&&Q[B]==="_")continue;return!1}return!0}function aQA(A){}function pU(A,Q){if(A.origin===Q.origin&&A.origin==="null")return!0;if(A.protocol===Q.protocol&&A.hostname===Q.hostname&&A.port===Q.port)return!0;return!1}function sQA(){let A,Q;return{promise:new Promise((E,I)=>{A=E,Q=I}),resolve:A,reject:Q}}function oQA(A){return A.controller.state==="aborted"}function rQA(A){return A.controller.state==="aborted"||A.controller.state==="terminated"}var A3={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(A3,null);function tQA(A){return A3[A.toLowerCase()]??A}function eQA(A){let Q=JSON.stringify(A);if(Q===void 0)throw TypeError("Value is not JSON serializable");return YY(typeof Q==="string"),Q}var ABA=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function QBA(A,Q,B){let E={index:0,kind:B,target:A},I={next(){if(Object.getPrototypeOf(this)!==I)throw TypeError(`'next' called on an object that does not implement interface ${Q} Iterator.`);let{index:C,kind:D,target:F}=E,Y=F(),J=Y.length;if(C>=J)return{value:void 0,done:!0};let Line truncated
`||A==="\t"||A===" "}function Q3(A,Q=!0,B=!0){let E=0,I=A.length-1;if(Q)for(;E<A.length&&JT(A[E]);E++);if(B)for(;I>0&&JT(A[I]);I--);return A.slice(E,I+1)}function GT(A){return A==="\r"||A===`
`||A==="\t"||A==="\f"||A===" "}function HBA(A,Q=!0,B=!0){let E=0,I=A.length-1;if(Q)for(;E<A.length&&GT(A[E]);E++);if(B)for(;I>0&&GT(A[I]);I--);return A.slice(E,I+1)}WT.exports={dataURLProcessor:KBA,URLSerializer:NT,collectASequenceOfCodePoints:aU,collectASequenceOfCodePointsFast:JY,stringPercentDecode:UT,parseMIMEType:B3,collectAnHTTPQuotedString:ZT,serializeAMimeType:zBA}});var sU=K((dhA,VT)=>{var{Blob:KT,File:XT}=require("buffer"),{types:E3}=require("util"),{kState:cI}=r0(),{isBlobLike:LT}=GC(),{webidl:yQ}=QI(),{parseMIMEType:wBA,serializeAMimeType:MBA}=pC(),{kEnumerableProperty:$T}=TQ(),RBA=new TextEncoder;class uF extends KT{constructor(A,Q,B={}){yQ.argumentLengthCheck(arguments,2,{header:"File constructor"}),A=yQ.converters["sequence<BlobPart>"](A),Q=yQ.converters.USVString(Q),B=yQ.converters.FilePropertyBag(B);let E=Q,I=B.type,C;A:{if(I){if(I=wBA(I),I==="failure"){I="";break A}I=MBA(I).toLowerCase()}C=B.lastModified}super(gBA(A,B),{type:I});this[cI]={name:E,lastModified:C,type:I}}get name(){return yQ.brandCheck(this,uF),this[cI].name}get lastModified(){return yQ.brandCheck(this,uF),this[cI].lastModified}get type(){return yQ.brandCheck(this,uF),this[cI].type}}class N0{constructor(A,Q,B={}){let E=Q,I=B.type,C=B.lastModified??Date.now();this[cI]={blobLike:A,name:E,type:I,lastModified:C}}stream(...A){return yQ.brandCheck(this,N0),this[cI].blobLike.stream(...A)}arrayBuffer(...A){return yQ.brandCheck(this,N0),this[cI].blobLike.arrayBuffer(...A)}slice(...A){return yQ.brandCheck(this,N0),this[cI].blobLike.slice(...A)}text(...A){return yQ.brandCheck(this,N0),this[cI].blobLike.text(...A)}get size(){return yQ.brandCheck(this,N0),this[cI].blobLike.size}get type(){return yQ.brandCheck(this,N0),this[cI].blobLike.type}get name(){return yQ.brandCheck(this,N0),this[cI].name}get lastModified(){return yQ.brandCheck(this,N0),this[cI].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(uF.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:$T,lastModified:$T});yQ.converters.Blob=yQ.interfaceConverter(KT);yQ.converters.BlobPart=function(A,Q){if(yQ.util.Type(A)==="Object"){if(LT(A))return yQ.converters.Blob(A,{strict:!1});if(ArrayBuffer.isView(A)||E3.isAnyArrayBuffer(A))return yQ.converters.BufferSource(A,Q)}return yQ.converters.USVString(A,Q)};yQ.converters["sequence<BlobPart>"]=yQ.sequenceConverter(yQ.converters.BlobPart);yQ.converters.FilePropertyBag=yQ.dictionaryConverter([{key:"lastModified",converter:yQ.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:yQ.converters.DOMString,defaultValue:""},{key:"endings",converter:(A)=>{if(A=yQ.converters.DOMString(A),A=A.toLowerCase(),A!=="native")A="transparent";return A},defaultValue:"transparent"}]);function gBA(A,Q){let B=[];for(let E of A)if(typeof E==="string"){let I=E;if(Q.endings==="native")I=TBA(I);B.push(RBA.encode(I))}else if(E3.isAnyArrayBuffer(E)||E3.isTypedArray(E))if(!E.buffer)B.push(new Uint8Array(E));else B.push(new Uint8Array(E.buffer,E.byteOffset,E.byteLength));else if(LT(E))B.push(E);return B}function TBA(A){let Q=`
`;if(process.platform==="win32")Q=`\r
`;return A.replace(/\r?\n/g,Q)}function OBA(A){return XT&&A instanceof XT||A instanceof uF||A&&(typeof A.stream==="function"||typeof A.arrayBuffer==="function")&&A[Symbol.toStringTag]==="File"}VT.exports={File:uF,FileLike:N0,isFileLike:OBA}});var rU=K((chA,RT)=>{var{isBlobLike:oU,toUSVString:qBA,makeIterator:I3}=GC(),{kState:vE}=r0(),{File:MT,FileLike:zT,isFileLike:jBA}=sU(),{webidl:lQ}=QI(),{Blob:PBA,File:C3}=require("buffer"),HT=C3??MT;class BI{constructor(A){if(A!==void 0)throw lQ.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[vE]=[]}append(A,Q,B=void 0){if(lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!oU(Q))throw TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");A=lQ.converters.USVString(A),Q=oU(Q)?lQ.converters.Blob(Q,{strict:!1}):lQ.converters.USVString(Q),B=arguments.length===3?lQ.converters.USVString(B):void 0;let E=wT(A,Q,B);this[vE].push(E)}delete(A){lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),A=lQ.converters.USVString(A),this[vE]=this[vE].filter((Q)=>Q.name!==A)}get(A){lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.get"}),A=lQ.converters.USVString(A);let Q=this[vE].findIndex((B)=>B.name===A);if(Q===-1)return null;return this[vE][Q].value}getAll(A){return lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),A=lQ.converters.USVString(A),this[vE].filter((Q)=>Q.name===A).map((Q)=>Q.value)}has(A){return lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.has"}),A=lQ.converters.USVString(A),this[vE].findIndex((Q)=>Q.name===A)!==-1}set(A,Q,B=void 0){if(lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!oU(Q))throw TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");A=lQ.converters.USVString(A),Q=oU(Q)?lQ.converters.Blob(Q,{strict:!1}):lQ.converters.USVString(Q),B=arguments.length===3?qBA(B):void 0;let E=wT(A,Q,B),I=this[vE].findIndex((C)=>C.name===A);if(I!==-1)this[vE]=[...this[vE].slice(0,I),E,...this[vE].slice(I+1).filter((C)=>C.name!==A)];else this[vE].push(E)}entries(){return lQ.brandCheck(this,BI),I3(()=>this[vE].map((A)=>[A.name,A.value]),"FormData","key+value")}keys(){return lQ.brandCheck(this,BI),I3(()=>this[vE].map((A)=>[A.name,A.value]),"FormData","key")}values(){return lQ.brandCheck(this,BI),I3(()=>this[vE].map((A)=>[A.name,A.value]),"FormData","value")}forEach(A,Q=globalThis){if(lQ.brandCheck(this,BI),lQ.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof A!=="function")throw TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[B,E]of this)A.apply(Q,[E,B,this])}}BI.prototype[Symbol.iterator]=BI.prototype.entries;Object.defineProperties(BI.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function wT(A,Q,B){if(A=Buffer.from(A).toString("utf8"),typeof Q==="string")Q=Buffer.from(Q).toString("utf8");else{if(!jBA(Q))Q=Q instanceof PBA?new HT([Q],"blob",{type:Q.type}):new zT(Q,"blob",{type:Q.type});if(B!==void 0){let E={type:Q.type,lastModified:Q.lastModified};Q=C3&&Q instanceof C3||Q instanceof MT?new HT([Q],B,E):new zT(Q,B,E)}}return{name:A,value:Q}}RT.exports={FormData:BI}});var yN=K((lhA,xT)=>{var kBA=dg(),GY=TQ(),{ReadableStreamFrom:fBA,isBlobLike:gT,isReadableStreamLike:xBA,readableStreamClose:hBA,createDeferredPromise:SBA,fullyReadBody:yBA}=GC(),{FormData:TT}=rU(),{kState:e0}=r0(),{webidl:D3}=QI(),{DOMException:jT,structuredClone:_BA}=xD(),{Blob:vBA,File:bBA}=require("buffer"),{kBodyUsed:uBA}=UB(),F3=require("assert"),{isErrored:mBA}=TQ(),{isUint8Array:PT,isArrayBuffer:dBA}=require("util/types"),{File:cBA}=sU(),{parseMIMEType:lBA,serializeAMimeType:pBA}=pC(),Y3;try{let A=require("node:crypto");Y3=(Q)=>A.randomInt(0,Q)}catch{Y3=(A)=>Math.floor(Math.random(A))}var t0=globalThis.ReadableStream,OT=bBA??cBA,tU=new TextEncoder,iBA=new TextDecoder;function kT(A,Q=!1){if(!t0)t0=require("stream/web").ReadableStream;let B=null;if(A instanceof t0)B=A;else if(gT(A))B=A.stream();else B=new t0({async pull(Y){Y.enqueue(typeof I==="string"?tU.encode(I):I),queueMicrotask(()=>hBA(Y))},start(){},type:void 0});F3(xBA(B));let E=null,I=null,C=null,D=null;if(typeof A==="string")I=A,D="text/plain;charset=UTF-8";else if(A instanceof URLSearchParams)I=A.toString(),D="application/x-www-form-urlencoded;charset=UTF-8";else if(dBA(A))I=new Uint8Array(A.slice());else if(ArrayBuffer.isView(A))I=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength));else if(GY.isFormDataLike(A)){let Y=`----formdata-undici-0${`${Y3(100000000000)}`.padStart(11,"0")}`,J=`--${Y}\r
Content-Disposition: form-data`;/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */let G=(V)=>V.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),N=(V)=>V.replace(/\r?\n|\r/g,`\r
`),U=[],Z=new Uint8Array([13,10]);C=0;let X=!1;for(let[V,w]of A)if(typeof w==="string"){let g=tU.encode(J+`; name="${G(N(V))}"\r
\r
${N(w)}\r
`);U.push(g),C+=g.byteLength}else{let g=tU.encode(`${J}; name="${G(N(V))}"`+(w.name?`; filename="${G(w.name)}"`:"")+`\r
Content-Type: ${w.type||"application/octet-stream"}\r
\r
`);if(U.push(g,w,Z),typeof w.size==="number")C+=g.byteLength+w.size+Z.byteLength;else X=!0}let $=tU.encode(`--${Y}--`);if(U.push($),C+=$.byteLength,X)C=null;I=A,E=async function*(){for(let V of U)if(V.stream)yield*V.stream();else yield V},D="multipart/form-data; boundary="+Y}else if(gT(A)){if(I=A,C=A.size,A.type)D=A.type}else if(typeof A[Symbol.asyncIterator]==="function"){if(Q)throw TypeError("keepalive");if(GY.isDisturbed(A)||A.locked)throw TypeError("Response body object should not be disturbed or locked");B=A instanceof t0?A:fBA(A)}if(typeof I==="string"||GY.isBuffer(I))C=Buffer.byteLength(I);if(E!=null){let Y;B=new t0({async start(){Y=E(A)[Symbol.asyncIterator]()},async pull(J){let{value:G,done:N}=await Y.next();if(N)queueMicrotask(()=>{J.close()});else if(!mBA(B))J.enqueue(new Uint8Array(G));return J.desiredSize>0},async cancel(J){await Y.return()},type:void 0})}return[{stream:B,source:I,length:C},D]}function nBA(A,Q=!1){if(!t0)t0=require("stream/web").ReadableStream;if(A instanceof t0)F3(!GY.isDisturbed(A),"The body has already been consumed."),F3(!A.locked,"The stream is locked.");return kT(A,Q)}function aBA(A){let[Q,B]=A.stream.tee(),E=_BA(B,{transfer:[B]}),[,I]=E.tee();return A.stream=Q,{stream:I,length:A.length,source:A.source}}async function*qT(A){if(A)if(PT(A))yield A;else{let Q=A.stream;if(GY.isDisturbed(Q))throw TypeError("The body has already been consumed.");if(Q.locked)throw TypeError("The stream is locked.");Q[uBA]=!0,yield*Q}}function J3(A){if(A.aborted)throw new jT("The operation was aborted.","AbortError")}function sBA(A){return{blob(){return eU(this,(B)=>{let E=eBA(this);if(E==="failure")E="";else if(E)E=pBA(E);return new vBA([B],{type:E})},A)},arrayBuffer(){return eU(this,(B)=>{return new Uint8Array(B).buffer},A)},text(){return eU(this,fT,A)},json(){return eU(this,tBA,A)},async formData(){D3.brandCheck(this,A),J3(this[e0]);let B=this.headers.get("Content-Type");if(/multipart\/form-data/.test(B)){let E={};for(let[F,Y]of this.headers)E[F.toLowerCase()]=Y;let I=new TT,C;try{C=new kBA({headers:E,preservePath:!0})}catch(F){throw new jT(`${F}`,"AbortError")}C.on("field",(F,Y)=>{I.append(F,Y)}),C.on("file",(F,Y,J,G,N)=>{let U=[];if(G==="base64"||G.toLowerCase()==="base64"){let Z="";Y.on("data",(X)=>{Z+=X.toString().replace(/[\r\n]/gm,"");let $=Z.length-Z.length%4;U.push(Buffer.from(Z.slice(0,$),"base64")),Z=Z.slice($)}),Y.on("end",()=>{U.push(Buffer.from(Z,"base64")),I.append(F,new OT(U,J,{type:N}))})}else Y.on("data",(Z)=>{U.push(Z)}),Y.on("end",()=>{I.append(F,new OT(U,J,{type:N}))})});let D=new Promise((F,Y)=>{C.on("finish",F),C.on("error",(J)=>Y(TypeError(J)))});if(this.body!==null)for await(let F of qT(this[e0].body))C.write(F);return C.end(),await D,I}else if(/application\/x-www-form-urlencoded/.test(B)){let E;try{let C="",D=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let F of qT(this[e0].body)){if(!PT(F))throw TypeError("Expected Uint8Array chunk");C+=D.decode(F,{stream:!0})}C+=D.decode(),E=new URLSearchParams(C)}catch(C){throw Object.assign(TypeError(),{cause:C})}let I=new TT;for(let[C,D]of E)I.append(C,D);return I}else throw await Promise.resolve(),J3(this[e0]),D3.errors.exception({header:`${A.name}.formData`,message:"Could not parse content as FormData."})}}}function oBA(A){Object.assign(A.prototype,sBA(A))}async function eU(A,Q,B){if(D3.brandCheck(A,B),J3(A[e0]),rBA(A[e0].body))throw TypeError("Body is unusable");let E=SBA(),I=(D)=>E.reject(D),C=(D)=>{try{E.resolve(Q(D))}catch(F){I(F)}};if(A[e0].body==null)return C(new Uint8Array),E.promise;return await yBA(A[e0].body,C,I),E.promise}function rBA(A){return A!=null&&(A.stream.locked||GY.isDisturbed(A.stream))}function fT(A){if(A.length===0)return"";if(A[0]===239&&A[1]===187&&A[2]===191)A=A.subarray(3);return iBA.decode(A)}function tBA(A){return JSON.parse(fT(A))}function eBA(A){let{headersList:Q}=A[e0],B=Q.get("content-type");if(B===null)return"failure";return lBA(B)}xT.exports={extractBody:kT,safelyExtractBody:nBA,cloneBody:aBA,mixinBody:oBA}});var _T=K((phA,yT)=>{var{InvalidArgumentError:CB,NotSupportedError:AEA}=eQ(),AD=require("assert"),{kHTTP2BuildRequest:QEA,kHTTP2CopyHeaders:BEA,kHTTP1BuildRequest:EEA}=UB(),VI=TQ(),hT=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,ST=/[^\t\x20-\x7e\x80-\xff]/,IEA=/[^\u0021-\u00ff]/,iC=Symbol("handler"),tB={},G3;try{let A=require("diagnostics_channel");tB.create=A.channel("undici:request:create"),tB.bodySent=A.channel("undici:request:bodySent"),tB.headers=A.channel("undici:request:headers"),tB.trailers=A.channel("undici:request:trailers"),tB.error=A.channel("undici:request:error")}catch{tB.create={hasSubscribers:!1},tB.bodySent={hasSubscribers:!1},tB.headers={hasSubscribers:!1},tB.trailers={hasSubscribers:!1},tB.error={hasSubscribers:!1}}class A8{constructor(A,{path:Q,method:B,body:E,headers:I,query:C,idempotent:D,blocking:F,upgrade:Y,headersTimeout:J,bodyTimeout:G,reset:N,throwOnError:U,expectContinue:Z},X){if(typeof Q!=="string")throw new CB("path must be a string");else if(Q[0]!=="/"&&!(Q.startsLine truncated
`;this.body=$.stream,this.contentLength=$.length}else if(VI.isBlobLike(E)&&this.contentType==null&&E.type)this.contentType=E.type,this.headers+=`content-type: ${E.type}\r
`;if(VI.validateHandler(X,B,Y),this.servername=VI.getServerName(this.host),this[iC]=X,tB.create.hasSubscribers)tB.create.publish({request:this})}onBodySent(A){if(this[iC].onBodySent)try{return this[iC].onBodySent(A)}catch(Q){this.abort(Q)}}onRequestSent(){if(tB.bodySent.hasSubscribers)tB.bodySent.publish({request:this});if(this[iC].onRequestSent)try{return this[iC].onRequestSent()}catch(A){this.abort(A)}}onConnect(A){if(AD(!this.aborted),AD(!this.completed),this.error)A(this.error);else return this.abort=A,this[iC].onConnect(A)}onHeaders(A,Q,B,E){if(AD(!this.aborted),AD(!this.completed),tB.headers.hasSubscribers)tB.headers.publish({request:this,response:{statusCode:A,headers:Q,statusText:E}});try{return this[iC].onHeaders(A,Q,B,E)}catch(I){this.abort(I)}}onData(A){AD(!this.aborted),AD(!this.completed);try{return this[iC].onData(A)}catch(Q){return this.abort(Q),!1}}onUpgrade(A,Q,B){return AD(!this.aborted),AD(!this.completed),this[iC].onUpgrade(A,Q,B)}onComplete(A){if(this.onFinally(),AD(!this.aborted),this.completed=!0,tB.trailers.hasSubscribers)tB.trailers.publish({request:this,trailers:A});try{return this[iC].onComplete(A)}catch(Q){this.onError(Q)}}onError(A){if(this.onFinally(),tB.error.hasSubscribers)tB.error.publish({request:this,error:A});if(this.aborted)return;return this.aborted=!0,this[iC].onError(A)}onFinally(){if(this.errorHandler)this.body.off("error",this.errorHandler),this.errorHandler=null;if(this.endHandler)this.body.off("end",this.endHandler),this.endHandler=null}addHeader(A,Q){return _N(this,A,Q),this}static[EEA](A,Q,B){return new A8(A,Q,B)}static[QEA](A,Q,B){let E=Q.headers;Q={...Q,headers:null};let I=new A8(A,Q,B);if(I.headers={},Array.isArray(E)){if(E.length%2!==0)throw new CB("headers array must be even");for(let C=0;C<E.length;C+=2)_N(I,E[C],E[C+1],!0)}else if(E&&typeof E==="object"){let C=Object.keys(E);for(let D=0;D<C.length;D++){let F=C[D];_N(I,F,E[F],!0)}}else if(E!=null)throw new CB("headers must be an object or an array");return I}static[BEA](A){let Q=A.split(`\r
`),B={};for(let E of Q){let[I,C]=E.split(": ");if(C==null||C.length===0)continue;if(B[I])B[I]+=`,${C}`;else B[I]=C}return B}}function mF(A,Q,B){if(Q&&typeof Q==="object")throw new CB(`invalid ${A} header`);if(Q=Q!=null?`${Q}`:"",ST.exec(Q)!==null)throw new CB(`invalid ${A} header`);return B?Q:`${A}: ${Q}\r
`}function _N(A,Q,B,E=!1){if(B&&(typeof B==="object"&&!Array.isArray(B)))throw new CB(`invalid ${Q} header`);else if(B===void 0)return;if(A.host===null&&Q.length===4&&Q.toLowerCase()==="host"){if(ST.exec(B)!==null)throw new CB(`invalid ${Q} header`);A.host=B}else if(A.contentLength===null&&Q.length===14&&Q.toLowerCase()==="content-length"){if(A.contentLength=parseInt(B,10),!Number.isFinite(A.contentLength))throw new CB("invalid content-length header")}else if(A.contentType===null&&Q.length===12&&Q.toLowerCase()==="content-type")if(A.contentType=B,E)A.headers[Q]=mF(Q,B,E);else A.headers+=mF(Q,B);else if(Q.length===17&&Q.toLowerCase()==="transfer-encoding")throw new CB("invalid transfer-encoding header");else if(Q.length===10&&Q.toLowerCase()==="connection"){let I=typeof B==="string"?B.toLowerCase():null;if(I!=="close"&&I!=="keep-alive")throw new CB("invalid connection header");else if(I==="close")A.reset=!0}else if(Q.length===10&&Q.toLowerCase()==="keep-alive")throw new CB("invalid keep-alive header");else if(Q.length===7&&Q.toLowerCase()==="upgrade")throw new CB("invalid upgrade header");else if(Q.length===6&&Q.toLowerCase()==="expect")throw new AEA("expect header not supported");else if(hT.exec(Q)===null)throw new CB("invalid header key");else if(Array.isArray(B))for(let I=0;I<B.length;I++)if(E)if(A.headers[Q])A.headers[Q]+=`,${mF(Q,B[I],E)}`;else A.headers[Q]=mF(Q,B[I],E);else A.headers+=mF(Q,B[I]);else if(E)A.headers[Q]=mF(Q,B,E);else A.headers+=mF(Q,B)}yT.exports=A8});var Q8=K((ihA,bT)=>{var CEA=require("events");class vT extends CEA{dispatch(){throw Error("not implemented")}close(){throw Error("not implemented")}destroy(){throw Error("not implemented")}}bT.exports=vT});var bN=K((nhA,mT)=>{var DEA=Q8(),{ClientDestroyedError:N3,ClientClosedError:FEA,InvalidArgumentError:NY}=eQ(),{kDestroy:YEA,kClose:JEA,kDispatch:U3,kInterceptors:dF}=UB(),UY=Symbol("destroyed"),vN=Symbol("closed"),QD=Symbol("onDestroyed"),ZY=Symbol("onClosed"),B8=Symbol("Intercepted Dispatch");class uT extends DEA{constructor(){super();this[UY]=!1,this[QD]=null,this[vN]=!1,this[ZY]=[]}get destroyed(){return this[UY]}get closed(){return this[vN]}get interceptors(){return this[dF]}set interceptors(A){if(A){for(let Q=A.length-1;Q>=0;Q--)if(typeof this[dF][Q]!=="function")throw new NY("interceptor must be an function")}this[dF]=A}close(A){if(A===void 0)return new Promise((B,E)=>{this.close((I,C)=>{return I?E(I):B(C)})});if(typeof A!=="function")throw new NY("invalid callback");if(this[UY]){queueMicrotask(()=>A(new N3,null));return}if(this[vN]){if(this[ZY])this[ZY].push(A);else queueMicrotask(()=>A(null,null));return}this[vN]=!0,this[ZY].push(A);let Q=()=>{let B=this[ZY];this[ZY]=null;for(let E=0;E<B.length;E++)B[E](null,null)};this[JEA]().then(()=>this.destroy()).then(()=>{queueMicrotask(Q)})}destroy(A,Q){if(typeof A==="function")Q=A,A=null;if(Q===void 0)return new Promise((E,I)=>{this.destroy(A,(C,D)=>{return C?I(C):E(D)})});if(typeof Q!=="function")throw new NY("invalid callback");if(this[UY]){if(this[QD])this[QD].push(Q);else queueMicrotask(()=>Q(null,null));return}if(!A)A=new N3;this[UY]=!0,this[QD]=this[QD]||[],this[QD].push(Q);let B=()=>{let E=this[QD];this[QD]=null;for(let I=0;I<E.length;I++)E[I](null,null)};this[YEA](A).then(()=>{queueMicrotask(B)})}[B8](A,Q){if(!this[dF]||this[dF].length===0)return this[B8]=this[U3],this[U3](A,Q);let B=this[U3].bind(this);for(let E=this[dF].length-1;E>=0;E--)B=this[dF][E](B);return this[B8]=B,B(A,Q)}dispatch(A,Q){if(!Q||typeof Q!=="object")throw new NY("handler must be an object");try{if(!A||typeof A!=="object")throw new NY("opts must be an object.");if(this[UY]||this[QD])throw new N3;if(this[vN])throw new FEA;return this[B8](A,Q)}catch(B){if(typeof Q.onError!=="function")throw new NY("invalid onError method");return Q.onError(B),!1}}}mT.exports=uT});var uN=K((ahA,lT)=>{var GEA=require("net"),dT=require("assert"),cT=TQ(),{InvalidArgumentError:NEA,ConnectTimeoutError:UEA}=eQ(),Z3,W3;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE)W3=class{constructor(Q){this._maxCachedSessions=Q,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry((B)=>{if(this._sessionCache.size<this._maxCachedSessions)return;let E=this._sessionCache.get(B);if(E!==void 0&&E.deref()===void 0)this._sessionCache.delete(B)})}get(Q){let B=this._sessionCache.get(Q);return B?B.deref():null}set(Q,B){if(this._maxCachedSessions===0)return;this._sessionCache.set(Q,new WeakRef(B)),this._sessionRegistry.register(B,Q)}};else W3=class{constructor(Q){this._maxCachedSessions=Q,this._sessionCache=new Map}get(Q){return this._sessionCache.get(Q)}set(Q,B){if(this._maxCachedSessions===0)return;if(this._sessionCache.size>=this._maxCachedSessions){let{value:E}=this._sessionCache.keys().next();this._sessionCache.delete(E)}this._sessionCache.set(Q,B)}};function ZEA({allowH2:A,maxCachedSessions:Q,socketPath:B,timeout:E,...I}){if(Q!=null&&(!Number.isInteger(Q)||Q<0))throw new NEA("maxCachedSessions must be a positive Line truncated
`,this[YO]=F!=null?F:300000,this[FO]=E!=null?E:300000,this[iN]=w==null?!0:w,this[cEA]=M,this[nN]=d,this[SD]=null,this[GO]=m>-1?m:-1,this[K0]="h1",this[pI]=null,this[J8]=!x?null:{openStreams:0,maxConcurrentStreams:l!=null?l:100},this[NO]=`${this[fE].hostname}${this[fE].port?`:${this[fE].port}`:""}`,this[ZB]=[],this[WB]=0,this[lI]=0}get pipelining(){return this[_D]}set pipelining(A){this[_D]=A,iI(this,!0)}get[pF](){return this[ZB].length-this[lI]}get[PB](){return this[lI]-this[WB]}get[lF](){return this[ZB].length-this[WB]}get[dEA](){return!!this[SB]&&!this[XY]&&!this[SB].destroyed}get[w3](){let A=this[SB];return A&&(A[EI]||A[ID]||A[KY])||this[lF]>=(this[_D]||1)||this[pF]>0}[mEA](A){KO(this),this.once("connect",A)}[iEA](A,Q){let B=A.origin||this[fE].origin,E=this[K0]==="h2"?H3[aEA](B,A,Q):H3[oEA](B,A,Q);if(this[ZB].push(E),this[cF]);else if(lA.bodyLength(E.body)==null&&lA.isIterable(E.body))this[cF]=1,process.nextTick(iI,this);else iI(this,!0);if(this[cF]&&this[yD]!==2&&this[w3])this[yD]=2;return this[yD]<2}async[lEA](){return new Promise((A)=>{if(!this[lF])A(null);else this[SD]=A})}async[pEA](A){return new Promise((Q)=>{let B=this[ZB].splice(this[lI]);for(let I=0;I<B.length;I++){let C=B[I];II(this,C,A)}let E=()=>{if(this[SD])this[SD](),this[SD]=null;Q()};if(this[pI]!=null)lA.destroy(this[pI],A),this[pI]=null,this[J8]=null;if(!this[SB])queueMicrotask(E);else lA.destroy(this[SB].on("close",E),A);iI(this)})}}function IIA(A){qA(A.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[SB][xE]=A,U8(this[$0],A)}function CIA(A,Q,B){let E=new X0(`HTTP/2: "frameError" received - type ${A}, code ${Q}`);if(B===0)this[SB][xE]=E,U8(this[$0],E)}function DIA(){lA.destroy(this,new $Y("other side closed")),lA.destroy(this[SB],new $Y("other side closed"))}function FIA(A){let Q=this[$0],B=new X0(`HTTP/2: "GOAWAY" frame received with code ${A}`);if(Q[SB]=null,Q[pI]=null,Q.destroyed){qA(this[pF]===0);let E=Q[ZB].splice(Q[WB]);for(let I=0;I<E.length;I++){let C=E[I];II(this,C,B)}}else if(Q[PB]>0){let E=Q[ZB][Q[WB]];Q[ZB][Q[WB]++]=null,II(Q,E,B)}Q[lI]=Q[WB],qA(Q[PB]===0),Q.emit("disconnect",Q[fE],[Q],B),iI(Q)}var U0=iT(),YIA=I8(),JIA=Buffer.alloc(0);async function GIA(){let A=process.env.JEST_WORKER_ID?L3():void 0,Q;try{Q=await WebAssembly.compile(Buffer.from(AO(),"base64"))}catch(B){Q=await WebAssembly.compile(Buffer.from(A||L3(),"base64"))}return await WebAssembly.instantiate(Q,{env:{wasm_on_url:(B,E,I)=>{return 0},wasm_on_status:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-W0+Z0.byteOffset;return JE.onStatus(new C8(Z0.buffer,C,I))||0},wasm_on_message_begin:(B)=>{return qA.strictEqual(JE.ptr,B),JE.onMessageBegin()||0},wasm_on_header_field:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-W0+Z0.byteOffset;return JE.onHeaderField(new C8(Z0.buffer,C,I))||0},wasm_on_header_value:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-W0+Z0.byteOffset;return JE.onHeaderValue(new C8(Z0.buffer,C,I))||0},wasm_on_headers_complete:(B,E,I,C)=>{return qA.strictEqual(JE.ptr,B),JE.onHeadersComplete(E,Boolean(I),Boolean(C))||0},wasm_on_body:(B,E,I)=>{qA.strictEqual(JE.ptr,B);let C=E-W0+Z0.byteOffset;return JE.onBody(new C8(Z0.buffer,C,I))||0},wasm_on_message_complete:(B)=>{return qA.strictEqual(JE.ptr,B),JE.onMessageComplete()||0}}})}var z3=null,R3=GIA();R3.catch();var JE=null,Z0=null,D8=0,W0=null,LY=1,Y8=2,g3=3;class ZO{constructor(A,Q,{exports:B}){qA(Number.isFinite(A[F8])&&A[F8]>0),this.llhttp=B,this.ptr=this.llhttp.llhttp_alloc(U0.TYPE.RESPONSE),this.client=A,this.socket=Q,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=A[F8],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=A[GO]}setTimeout(A,Q){if(this.timeoutType=Q,A!==this.timeoutValue){if(V3.clearTimeout(this.timeout),A){if(this.timeout=V3.setTimeout(NIA,A,this),this.timeout.unref)this.timeout.unref()}else this.timeout=null;this.timeoutValue=A}else if(this.timeout){if(this.timeout.refresh)this.timeout.refresh()}}resume(){if(this.socket.destroyed||!this.paused)return;if(qA(this.ptr!=null),qA(JE==null),this.llhttp.llhttp_resume(this.ptr),qA(this.timeoutType===Y8),this.timeout){if(this.timeout.refresh)this.timeout.refresh()}this.paused=!1,this.execute(this.socket.read()||JIA),this.readMore()}readMore(){while(!this.paused&&this.ptr){let A=this.socket.read();if(A===null)break;this.execute(A)}}execute(A){qA(this.ptr!=null),qA(JE==null),qA(!this.paused);let{socket:Q,llhttp:B}=this;if(A.length>D8){if(W0)B.free(W0);D8=Math.ceil(A.length/4096)*4096,W0=B.malloc(D8)}new Uint8Array(B.memory.buffer,W0,D8).set(A);try{let E;try{Z0=A,JE=this,E=B.llhttp_execute(this.ptr,W0,A.length)}catch(C){throw C}finally{JE=null,Z0=null}let I=B.llhttp_get_error_pos(this.ptr)-W0;if(E===U0.ERROR.PAUSED_UPGRADE)this.onUpgrade(A.slice(I));else if(E===U0.ERROR.PAUSED)this.paused=!0,Q.unshift(A.slice(I));else if(E Line truncated
`;if(typeof C==="string")X+=`host: ${C}\r
`;else X+=A[IO];if(D)X+=`connection: upgrade\r
upgrade: ${D}\r
`;else if(A[_D]&&!Z[EI])X+=`connection: keep-alive\r
`;else X+=`connection: close\r
`;if(F)X+=F;if(bE.sendHeaders.hasSubscribers)bE.sendHeaders.publish({request:Q,headers:X,socket:Z});if(!B||N===0){if(U===0)Z.write(`${X}content-length: 0\r
\r
`,"latin1");else qA(U===null,"no body must not have content length"),Z.write(`${X}\r
`,"latin1");Q.onRequestSent()}else if(lA.isBuffer(B)){if(qA(U===B.byteLength,"buffer body must have content length"),Z.cork(),Z.write(`${X}content-length: ${U}\r
\r
`,"latin1"),Z.write(B),Z.uncork(),Q.onBodySent(B),Q.onRequestSent(),!G)Z[EI]=!0}else if(lA.isBlobLike(B))if(typeof B.stream==="function")N8({body:B.stream(),client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else zO({body:B,client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else if(lA.isStream(B))VO({body:B,client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else if(lA.isIterable(B))N8({body:B,client:A,request:Q,socket:Z,contentLength:U,header:X,expectsPayload:G});else qA(!1);return!0}function WIA(A,Q,B){let{body:E,method:I,path:C,host:D,upgrade:F,expectContinue:Y,signal:J,headers:G}=B,N;if(typeof G==="string")N=H3[sEA](G.trim());else N=G;if(F)return II(A,B,Error("Upgrade not supported for H2")),!1;try{B.onConnect((g)=>{if(B.aborted||B.completed)return;II(A,B,g||new O3)})}catch(g){II(A,B,g)}if(B.aborted)return!1;let U,Z=A[J8];if(N[rEA]=D||A[NO],N[tEA]=I,I==="CONNECT"){if(Q.ref(),U=Q.request(N,{endStream:!1,signal:J}),U.id&&!U.pending)B.onUpgrade(null,null,U),++Z.openStreams;else U.once("ready",()=>{B.onUpgrade(null,null,U),++Z.openStreams});return U.once("close",()=>{if(Z.openStreams-=1,Z.openStreams===0)Q.unref()}),!0}N[eEA]=C,N[AIA]="https";let X=I==="PUT"||I==="POST"||I==="PATCH";if(E&&typeof E.read==="function")E.read(0);let $=lA.bodyLength(E);if($==null)$=B.contentLength;if($===0||!X)$=null;if(LO(I)&&$>0&&B.contentLength!=null&&B.contentLength!==$){if(A[iN])return II(A,B,new ED),!1;process.emitWarning(new ED)}if($!=null)qA(E,"no body must not have content length"),N[QIA]=`${$}`;Q.ref();let V=I==="GET"||I==="HEAD";if(Y)N[BIA]="100-continue",U=Q.request(N,{endStream:V,signal:J}),U.once("continue",w);else U=Q.request(N,{endStream:V,signal:J}),w();return++Z.openStreams,U.once("response",(g)=>{let{[EIA]:M,...k}=g;if(B.onHeaders(Number(M),k,U.resume.bind(U),"")===!1)U.pause()}),U.once("end",()=>{B.onComplete([])}),U.on("data",(g)=>{if(B.onData(g)===!1)U.pause()}),U.once("close",()=>{if(Z.openStreams-=1,Z.openStreams===0)Q.unref()}),U.once("error",function(g){if(A[pI]&&!A[pI].destroyed&&!this.closed&&!this.destroyed)Z.streams-=1,lA.destroy(U,g)}),U.once("frameError",(g,M)=>{let k=new X0(`HTTP/2: "frameError" received - type ${g}, code ${M}`);if(II(A,B,k),A[pI]&&!A[pI].destroyed&&!this.closed&&!this.destroyed)Z.streams-=1,lA.destroy(U,k)}),!0;function w(){if(!E)B.onRequestSent();else if(lA.isBuffer(E))qA($===E.byteLength,"buffer body must have content length"),U.cork(),U.write(E),U.uncork(),U.end(),B.onBodySent(E),B.onRequestSent();else if(lA.isBlobLike(E))if(typeof E.stream==="function")N8({client:A,request:B,contentLength:$,h2stream:U,expectsPayload:X,body:E.stream(),socket:A[SB],header:""});else zO({body:E,client:A,request:B,contentLength:$,expectsPayload:X,h2stream:U,header:"",socket:A[SB]});else if(lA.isStream(E))VO({body:E,client:A,request:B,contentLength:$,expectsPayload:X,socket:A[SB],h2stream:U,header:""});else if(lA.isIterable(E))N8({body:E,client:A,request:B,contentLength:$,expectsPayload:X,header:"",h2stream:U,socket:A[SB]});else qA(!1)}}function VO({h2stream:A,body:Q,client:B,request:E,socket:I,contentLength:C,header:D,expectsPayload:F}){if(qA(C!==0||B[PB]===0,"stream body cannot be pipelined"),B[K0]==="h2"){let $=function(V){E.onBodySent(V)},X=kEA(Q,A,(V)=>{if(V)lA.destroy(Q,V),lA.destroy(A,V);else E.onRequestSent()});X.on("data",$),X.once("end",()=>{X.removeListener("data",$),lA.destroy(X)});return}let Y=!1,J=new q3({socket:I,request:E,contentLength:C,client:B,expectsPayload:F,header:D}),G=function(X){if(Y)return;try{if(!J.write(X)&&this.pause)this.pause()}catch($){lA.destroy(this,$)}},N=function(){if(Y)return;if(Q.resume)Q.resume()},U=function(){if(Y)return;let X=new O3;queueMicrotask(()=>Z(X))},Z=function(X){if(Y)return;if(Y=!0,qA(I.destroyed||I[ID]&&B[PB]<=1),I.off("drain",N).off("error",Z),Q.removeListener("data",G).removeListener("end",Z).removeListener("error",Z).removeListener("close",U),!X)try{J.end()}catch($){X=$}if(J.destroy(X),X&&(X.code!=="UND_ERR_INFO"||X.message!=="reset"))lA.destroy(Q,X);else lA.destroy(Q)};if(Q.on("data",G).on("end",Z).on("error",Z).on("close",U),Q.resume)Q.resume();I.on("drain",N).on("error",Z)}async function zO({h2stream:A,body:Q,client:B,request:E,socket:I,contentLength:C,header:D,expectsPayload:F}){qA(C===Q.size,"blob body must have content length");let Y=B[K0]==="h2";try{if(C!=null&&C!==Q.size)throw new ED;let J=Buffer.from(await Q.arrayBuffer());if(Y)A.cork(),A.write(J),A.uncork();else I.cork(),I.write(`${D}content-length: ${C}\r
\r
`,"latin1"),I.write(J),I.uncork();if(E.onBodySent(J),E.onRequestSent(),!F)I[EI]=!0;iI(B)}catch(J){lA.destroy(Y?A:I,J)}}async function N8({h2stream:A,body:Q,client:B,request:E,socket:I,contentLength:C,header:D,expectsPayload:F}){qA(C!==0||B[PB]===0,"iterator body cannot be pipelined");let Y=null;function J(){if(Y){let U=Y;Y=null,U()}}let G=()=>new Promise((U,Z)=>{if(qA(Y===null),I[xE])Z(I[xE]);else Y=U});if(B[K0]==="h2"){A.on("close",J).on("drain",J);try{for await(let U of Q){if(I[xE])throw I[xE];let Z=A.write(U);if(E.onBodySent(U),!Z)await G()}}catch(U){A.destroy(U)}finally{E.onRequestSent(),A.end(),A.off("close",J).off("drain",J)}return}I.on("close",J).on("drain",J);let N=new q3({socket:I,request:E,contentLength:C,client:B,expectsPayload:F,header:D});try{for await(let U of Q){if(I[xE])throw I[xE];if(!N.write(U))await G()}N.end()}catch(U){N.destroy(U)}finally{I.off("close",J).off("drain",J)}}class q3{constructor({socket:A,request:Q,contentLength:B,client:E,expectsPayload:I,header:C}){this.socket=A,this.request=Q,this.contentLength=B,this.client=E,this.bytesWritten=0,this.expectsPayload=I,this.header=C,A[ID]=!0}write(A){let{socket:Q,request:B,contentLength:E,client:I,bytesWritten:C,expectsPayload:D,header:F}=this;if(Q[xE])throw Q[xE];if(Q.destroyed)return!1;let Y=Buffer.byteLength(A);if(!Y)return!0;if(E!==null&&C+Y>E){if(I[iN])throw new ED;process.emitWarning(new ED)}if(Q.cork(),C===0){if(!D)Q[EI]=!0;if(E===null)Q.write(`${F}transfer-encoding: chunked\r
`,"latin1");else Q.write(`${F}content-length: ${E}\r
\r
`,"latin1")}if(E===null)Q.write(`\r
${Y.toString(16)}\r
`,"latin1");this.bytesWritten+=Y;let J=Q.write(A);if(Q.uncork(),B.onBodySent(A),!J){if(Q[hB].timeout&&Q[hB].timeoutType===LY){if(Q[hB].timeout.refresh)Q[hB].timeout.refresh()}}return J}end(){let{socket:A,contentLength:Q,client:B,bytesWritten:E,expectsPayload:I,header:C,request:D}=this;if(D.onRequestSent(),A[ID]=!1,A[xE])throw A[xE];if(A.destroyed)return;if(E===0)if(I)A.write(`${C}content-length: 0\r
\r
`,"latin1");else A.write(`${C}\r
`,"latin1");else if(Q===null)A.write(`\r
0\r
\r
`,"latin1");if(Q!==null&&E!==Q)if(B[iN])throw new ED;else process.emitWarning(new ED);if(A[hB].timeout&&A[hB].timeoutType===LY){if(A[hB].timeout.refresh)A[hB].timeout.refresh()}iI(B)}destroy(A){let{socket:Q,client:B}=this;if(Q[ID]=!1,A)qA(B[PB]<=1,"pipeline should only contain this request"),lA.destroy(Q,A)}}function II(A,Q,B){try{Q.onError(B),qA(Q.aborted)}catch(E){A.emit("error",E)}}HO.exports=UO});var MO=K((BSA,wO)=>{class j3{constructor(){this.bottom=0,this.top=0,this.list=Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(A){this.list[this.top]=A,this.top=this.top+1&2047}shift(){let A=this.list[this.bottom];if(A===void 0)return null;return this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,A}}wO.exports=class{constructor(){this.head=this.tail=new j3}isEmpty(){return this.head.isEmpty()}push(Q){if(this.head.isFull())this.head=this.head.next=new j3;this.head.push(Q)}shift(){let Q=this.tail,B=Q.shift();if(Q.isEmpty()&&Q.next!==null)this.tail=Q.next;return B}}});var TO=K((ESA,gO)=>{var{kFree:XIA,kConnected:$IA,kPending:KIA,kQueued:LIA,kRunning:VIA,kSize:zIA}=UB(),iF=Symbol("pool");class RO{constructor(A){this[iF]=A}get connected(){return this[iF][$IA]}get free(){return this[iF][XIA]}get pending(){return this[iF][KIA]}get queued(){return this[iF][LIA]}get running(){return this[iF][VIA]}get size(){return this[iF][zIA]}}gO.exports=RO});var h3=K((ISA,_O)=>{var HIA=bN(),wIA=MO(),{kConnected:P3,kSize:OO,kRunning:qO,kPending:jO,kQueued:sN,kBusy:MIA,kFree:RIA,kUrl:gIA,kClose:TIA,kDestroy:OIA,kDispatch:qIA}=UB(),jIA=TO(),zI=Symbol("clients"),CI=Symbol("needDrain"),oN=Symbol("queue"),k3=Symbol("closed resolve"),f3=Symbol("onDrain"),PO=Symbol("onConnect"),kO=Symbol("onDisconnect"),fO=Symbol("onConnectionError"),x3=Symbol("get dispatcher"),hO=Symbol("add client"),SO=Symbol("remove client"),xO=Symbol("stats");class yO extends HIA{constructor(){super();this[oN]=new wIA,this[zI]=[],this[sN]=0;let A=this;this[f3]=function(B,E){let I=A[oN],C=!1;while(!C){let D=I.shift();if(!D)break;A[sN]--,C=!this.dispatch(D.opts,D.handler)}if(this[CI]=C,!this[CI]&&A[CI])A[CI]=!1,A.emit("drain",B,[A,...E]);if(A[k3]&&I.isEmpty())Promise.all(A[zI].map((D)=>D.close())).then(A[k3])},this[PO]=(Q,B)=>{A.emit("connect",Q,[A,...B])},this[kO]=(Q,B,E)=>{A.emit("disconnect",Q,[A,...B],E)},this[fO]=(Q,B,E)=>{A.emit("connectionError",Q,[A,...B],E)},this[xO]=new jIA(this)}get[MIA](){return this[CI]}get[P3](){return this[zI].filter((A)=>A[P3]).length}get[RIA](){return this[zI].filter((A)=>A[P3]&&!A[CI]).length}get[jO](){let A=this[sN];for(let{[jO]:Q}of this[zI])A+=Q;return A}get[qO](){let A=0;for(let{[qO]:Q}of this[zI])A+=Q;return A}get[OO](){let A=this[sN];for(let{[OO]:Q}of this[zI])A+=Q;return A}get stats(){return this[xO]}async[TIA](){if(this[oN].isEmpty())return Promise.all(this[zI].map((A)=>A.close()));else return new Promise((A)=>{this[k3]=A})}async[OIA](A){while(!0){let Q=this[oN].shift();if(!Q)break;Q.handler.onError(A)}return Promise.all(this[zI].map((Q)=>Q.destroy(A)))}[qIA](A,Q){let B=this[x3]();if(!B)this[CI]=!0,this[oN].push({opts:A,handler:Q}),this[sN]++;else if(!B.dispatch(A,Q))B[CI]=!0,this[CI]=!this[x3]();return!this[CI]}[hO](A){if(A.on("drain",this[f3]).on("connect",this[PO]).on("disconnect",this[kO]).on("connectionError",this[fO]),this[zI].push(A),this[CI])process.nextTick(()=>{if(this[CI])this[f3](A[gIA],[this,A])});return this}[SO](A){A.close(()=>{let Q=this[zI].indexOf(A);if(Q!==-1)this[zI].splice(Q,1)}),this[CI]=this[zI].some((Q)=>!Q[CI]&&Q.closed!==!0&&Q.destroyed!==!0)}}_O.exports={PoolBase:yO,kClients:zI,kNeedDrain:CI,kAddClient:hO,kRemoveClient:SO,kGetDispatcher:x3}});var VY=K((CSA,mO)=>{var{PoolBase:PIA,kClients:Z8,kNeedDrain:kIA,kAddClient:fIA,kGetDispatcher:xIA}=h3(),hIA=aN(),{InvalidArgumentError:S3}=eQ(),y3=TQ(),{kUrl:vO,kInterceptors:SIA}=UB(),yIA=uN(),_3=Symbol("options"),v3=Symbol("connections"),bO=Symbol("factory");function _IA(A,Q){return new hIA(A,Q)}class uO extends PIA{constructor(A,{connections:Q,factory:B=_IA,connect:E,connectTimeout:I,tls:C,maxCachedSessions:D,socketPath:F,autoSelectFamily:Y,autoSelectFamilyAttemptTimeout:J,allowH2:G,...N}={}){super();if(Q!=null&&(!Number.isFinite(Q)||Q<0))throw new S3("invalid connections");if(typeof B!=="function")throw new S3("factory must be a function.");if(E!=null&&typeof E!=="function"&&typeof E!=="object")throw new S3("connect must be a function or an object");if(typeof E!=="function")E=yIA({...C,maxCachedSessions:D,allowH2:G,socketPath:F,timeout:I,...y3.nodeHasAutoSelectFamily&&Y?{autoSelectFamily:Y,autoSelectFamilyAttemptTimeout:J}:void 0,...E});this[SIA]=N.interceptors&&N.interceptors.Pool&&Array.isArray(N.interceptors.Pool)?N.interceptors.Pool:[],this[v3]=Q||null,this[vO]=y3.parseOrigin(A),this[_3]={...y3.deepClone(N),connect:E,allowH2:G},this[_3].interceptors=N.interceptors?{...N.interceptors}:void 0,this[bO]=B,this.on("connectionError",(U,Z,X)=>{for(let $ of Z){let V=this[Z8].indexOf($); Line truncated
${B.count} ${B.noun} ${B.is} pending:
${A.format(Q)}
`.trim())}}fj.exports=kj});var uj=K((OSA,bj)=>{var{kProxy:v0A,kClose:b0A,kDestroy:u0A,kInterceptors:m0A}=UB(),{URL:hj}=require("url"),Sj=tN(),d0A=VY(),c0A=bN(),{InvalidArgumentError:I9,RequestAbortedError:l0A}=eQ(),yj=uN(),B9=Symbol("proxy agent"),k8=Symbol("proxy client"),E9=Symbol("proxy headers"),Z$=Symbol("request tls settings"),p0A=Symbol("proxy tls settings"),_j=Symbol("connect endpoint function");function i0A(A){return A==="https:"?443:80}function n0A(A){if(typeof A==="string")A={uri:A};if(!A||!A.uri)throw new I9("Proxy opts.uri is mandatory");return{uri:A.uri,protocol:A.protocol||"https"}}function a0A(A,Q){return new d0A(A,Q)}class vj extends c0A{constructor(A){super(A);if(this[v0A]=n0A(A),this[B9]=new Sj(A),this[m0A]=A.interceptors&&A.interceptors.ProxyAgent&&Array.isArray(A.interceptors.ProxyAgent)?A.interceptors.ProxyAgent:[],typeof A==="string")A={uri:A};if(!A||!A.uri)throw new I9("Proxy opts.uri is mandatory");let{clientFactory:Q=a0A}=A;if(typeof Q!=="function")throw new I9("Proxy opts.clientFactory must be a function.");this[Z$]=A.requestTls,this[p0A]=A.proxyTls,this[E9]=A.headers||{};let B=new hj(A.uri),{origin:E,port:I,host:C,username:D,password:F}=B;if(A.auth&&A.token)throw new I9("opts.auth cannot be used in combination with opts.token");else if(A.auth)this[E9]["proxy-authorization"]=`Basic ${A.auth}`;else if(A.token)this[E9]["proxy-authorization"]=A.token;else if(D&&F)this[E9]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(D)}:${decodeURIComponent(F)}`).toString("base64")}`;let Y=yj({...A.proxyTls});this[_j]=yj({...A.requestTls}),this[k8]=Q(B,{connect:Y}),this[B9]=new Sj({...A,connect:async(J,G)=>{let N=J.host;if(!J.port)N+=`:${i0A(J.protocol)}`;try{let{socket:U,statusCode:Z}=await this[k8].connect({origin:E,port:I,path:N,signal:J.signal,headers:{...this[E9],host:C}});if(Z!==200)U.on("error",()=>{}).destroy(),G(new l0A(`Proxy response (${Z}) !== 200 when HTTP Tunneling`));if(J.protocol!=="https:"){G(null,U);return}let X;if(this[Z$])X=this[Z$].servername;else X=J.servername;this[_j]({...J,servername:X,httpSocket:U},G)}catch(U){G(U)}}})}dispatch(A,Q){let{host:B}=new hj(A.origin),E=s0A(A.headers);return o0A(E),this[B9].dispatch({...A,headers:{...E,host:B}},Q)}async[b0A](){await this[B9].close(),await this[k8].close()}async[u0A](){await this[B9].destroy(),await this[k8].destroy()}}function s0A(A){if(Array.isArray(A)){let Q={};for(let B=0;B<A.length;B+=2)Q[A[B]]=A[B+1];return Q}return A}function o0A(A){if(A&&Object.keys(A).find((B)=>B.toLowerCase()==="proxy-authorization"))throw new I9("Proxy-Authorization should be sent in ProxyAgent constructor")}bj.exports=vj});var pj=K((qSA,lj)=>{var tF=require("assert"),{kRetryHandlerDefaultRetry:mj}=UB(),{RequestRetryError:f8}=eQ(),{isDisturbed:dj,parseHeaders:r0A,parseRangeHeader:cj}=TQ();function t0A(A){let Q=Date.now();return new Date(A).getTime()-Q}class W${constructor(A,Q){let{retryOptions:B,...E}=A,{retry:I,maxRetries:C,maxTimeout:D,minTimeout:F,timeoutFactor:Y,methods:J,errorCodes:G,retryAfter:N,statusCodes:U}=B??{};this.dispatch=Q.dispatch,this.handler=Q.handler,this.opts=E,this.abort=null,this.aborted=!1,this.retryOpts={retry:I??W$[mj],retryAfter:N??!0,maxTimeout:D??30000,timeout:F??500,timeoutFactor:Y??2,maxRetries:C??5,methods:J??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:U??[500,502,503,504,429],errorCodes:G??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect((Z)=>{if(this.aborted=!0,this.abort)this.abort(Z);else this.reason=Z})}onRequestSent(){if(this.handler.onRequestSent)this.handler.onRequestSent()}onUpgrade(A,Q,B){if(this.handler.onUpgrade)this.handler.onUpgrade(A,Q,B)}onConnect(A){if(this.aborted)A(this.reason);else this.abort=A}onBodySent(A){if(this.handler.onBodySent)return this.handler.onBodySent(A)}static[mj](A,{state:Q,opts:B},E){let{statusCode:I,code:C,headers:D}=A,{method:F,retryOptions:Y}=B,{maxRetries:J,timeout:G,maxTimeout:N,timeoutFactor:U,statusCodes:Z,errorCodes:X,methods:$}=Y,{counter:V,currentTimeout:w}=Q;if(w=w!=null&&w>0?w:G,C&&C!=="UND_ERR_REQ_RETRY"&&C!=="UND_ERR_SOCKET"&&!X.includes(C)){E(A);return}if(Array.isArray($)&&!$.includes(F)){E(A);return}if(I!=null&&Array.isArray(Z)&&!Z.includes(I)){E(A);return}if(V>J){E(A);return}let g=D!=null&&D["retry-after"];if(g)g=Number(g),g=isNaN(g)?t0A(g):g*1000;let M=g>0?Math.min(g,N):Math.min(w*U**V,N);Q.currentTimeout=M,setTimeout(()=>E(null),M)}onHeaders(A,Q,B,E){let I=r0A(Q);if(this.retryCount+=1,A>=300)return this.abort(new f8("Request failed",A,{headers:I,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,A!==206)return!0;let D=cj(I["content-range"]);if(!D)return this.abort(new f8("Content-Range mismatch",A,{headers:I,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==I.etag)return this.abort(new f8("ETag mismatch",A,{headers:I,count:this.retryCount})),!1;let{star Line truncated
Error Code : ${C.statusCode}
Error Message: ${C.message}`)})).result)===null||Q===void 0?void 0:Q.value;if(!I)throw Error("Response json body do not have ID Token field");return I})}static getIDToken(A){return Cf(this,void 0,void 0,function*(){try{let Q=dY.getIDTokenUrl();if(A){let E=encodeURIComponent(A);Q=`${Q}&audience=${E}`}(0,Df.debug)(`ID token url is ${Q}`);let B=yield dY.getCall(Q);return(0,Df.setSecret)(B),B}catch(Q){throw Error(`Error message: ${Q.message}`)}})}}cY.OidcClient=dY});var QK=K((gI)=>{var e$=gI&&gI.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(gI,"__esModule",{value:!0});gI.summary=gI.markdownSummary=gI.SUMMARY_DOCS_URL=gI.SUMMARY_ENV_VAR=void 0;var uYA=require("os"),AK=require("fs"),{access:mYA,appendFile:dYA,writeFile:cYA}=AK.promises;gI.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";gI.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Yf{constructor(){this._buffer=""}filePath(){return e$(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let A=process.env[gI.SUMMARY_ENV_VAR];if(!A)throw Error(`Unable to find environment variable for $${gI.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield mYA(A,AK.constants.R_OK|AK.constants.W_OK)}catch(Q){throw Error(`Unable to access summary file: '${A}'. Check if the file has correct read/write permissions.`)}return this._filePath=A,this._filePath})}wrap(A,Q,B={}){let E=Object.entries(B).map(([I,C])=>` ${I}="${C}"`).join("");if(!Q)return`<${A}${E}>`;return`<${A}${E}>${Q}</${A}>`}write(A){return e$(this,void 0,void 0,function*(){let Q=!!(A===null||A===void 0?void 0:A.overwrite),B=yield this.filePath();return yield(Q?cYA:dYA)(B,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return e$(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(A,Q=!1){return this._buffer+=A,Q?this.addEOL():this}addEOL(){return this.addRaw(uYA.EOL)}addCodeBlock(A,Q){let B=Object.assign({},Q&&{lang:Q}),E=this.wrap("pre",this.wrap("code",A),B);return this.addRaw(E).addEOL()}addList(A,Q=!1){let B=Q?"ol":"ul",E=A.map((C)=>this.wrap("li",C)).join(""),I=this.wrap(B,E);return this.addRaw(I).addEOL()}addTable(A){let Q=A.map((E)=>{let I=E.map((C)=>{if(typeof C==="string")return this.wrap("td",C);let{header:D,data:F,colspan:Y,rowspan:J}=C,G=D?"th":"td",N=Object.assign(Object.assign({},Y&&{colspan:Y}),J&&{rowspan:J});return this.wrap(G,F,N)}).join("");return this.wrap("tr",I)}).join(""),B=this.wrap("table",Q);return this.addRaw(B).addEOL()}addDetails(A,Q){let B=this.wrap("details",this.wrap("summary",A)+Q);return this.addRaw(B).addEOL()}addImage(A,Q,B){let{width:E,height:I}=B||{},C=Object.assign(Object.assign({},E&&{width:E}),I&&{height:I}),D=this.wrap("img",null,Object.assign({src:A,alt:Q},C));return this.addRaw(D).addEOL()}addHeading(A,Q){let B=`h${Q}`,E=["h1","h2","h3","h4","h5","h6"].includes(B)?B:"h1",I=this.wrap(E,A);return this.addRaw(I).addEOL()}addSeparator(){let A=this.wrap("hr",null);return this.addRaw(A).addEOL()}addBreak(){let A=this.wrap("br",null);return this.addRaw(A).addEOL()}addQuote(A,Q){let B=Object.assign({},Q&&{cite:Q}),E=this.wrap("blockquote",A,B);return this.addRaw(E).addEOL()}addLink(A,Q){let B=this.wrap("a",A,{href:Q});return this.addRaw(B).addEOL()}}var Jf=new Yf;gI.markdownSummary=Jf;gI.summary=Jf});var Gf=K((TI)=>{var lYA=TI&&TI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),pYA=TI&&TI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),iYA=TI&&TI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))lYA(Q,A,B)}return pYA(Q,A),Q};Object.defineProperty(TI,"__esModule",{value:!0});TI.toPlatformPath=TI.toWin32Path=TI.toPosixPath=void 0;var nYA=iYA(require("path"));function aYA(A){return A.replace(/[\\]/g,"/")}TI.toPosixPath=aYA;function sYA(A){return A.replace(/[/]/g,"\\")}TI.toWin32Path=sYA;function oYA(A){return A.replace(/[/\\]/g,nYA.sep)}TI.toPlatformPath=oYA});var EK=K((fA)=>{var rYA=fA&&fA.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;Object.defineProperty(A,E,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),Line truncated
`);return{name:Q,version:B}});OQ.platform=jf.default.platform();OQ.arch=jf.default.arch();OQ.isWindows=OQ.platform==="win32";OQ.isMacOS=OQ.platform==="darwin";OQ.isLinux=OQ.platform==="linux";function jJA(){return V4(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield OQ.isWindows?TJA():OQ.isMacOS?OJA():qJA()),{platform:OQ.platform,arch:OQ.arch,isWindows:OQ.isWindows,isMacOS:OQ.isMacOS,isLinux:OQ.isLinux})})}OQ.getDetails=jJA});var yB=K((jA)=>{var PJA=jA&&jA.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),kJA=jA&&jA.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),FK=jA&&jA.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))PJA(Q,A,B)}return kJA(Q,A),Q},kf=jA&&jA.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(jA,"__esModule",{value:!0});jA.platform=jA.toPlatformPath=jA.toWin32Path=jA.toPosixPath=jA.markdownSummary=jA.summary=jA.getIDToken=jA.getState=jA.saveState=jA.group=jA.endGroup=jA.startGroup=jA.info=jA.notice=jA.warning=jA.error=jA.debug=jA.isDebug=jA.setFailed=jA.setCommandEcho=jA.setOutput=jA.getBooleanInput=jA.getMultilineInput=jA.getInput=jA.addPath=jA.setSecret=jA.exportVariable=jA.ExitCode=void 0;var KC=hR(),I1=_R(),nY=hU(),ff=FK(require("os")),fJA=FK(require("path")),xJA=Ff(),DK;(function(A){A[A.Success=0]="Success",A[A.Failure=1]="Failure"})(DK||(jA.ExitCode=DK={}));function hJA(A,Q){let B=(0,nY.toCommandValue)(Q);if(process.env[A]=B,process.env.GITHUB_ENV||"")return(0,I1.issueFileCommand)("ENV",(0,I1.prepareKeyValueMessage)(A,Q));(0,KC.issueCommand)("set-env",{name:A},B)}jA.exportVariable=hJA;function SJA(A){(0,KC.issueCommand)("add-mask",{},A)}jA.setSecret=SJA;function yJA(A){if(process.env.GITHUB_PATH||"")(0,I1.issueFileCommand)("PATH",A);else(0,KC.issueCommand)("add-path",{},A);process.env.PATH=`${A}${fJA.delimiter}${process.env.PATH}`}jA.addPath=yJA;function YK(A,Q){let B=process.env[`INPUT_${A.replace(/ /g,"_").toUpperCase()}`]||"";if(Q&&Q.required&&!B)throw Error(`Input required and not supplied: ${A}`);if(Q&&Q.trimWhitespace===!1)return B;return B.trim()}jA.getInput=YK;function _JA(A,Q){let B=YK(A,Q).split(`
`).filter((E)=>E!=="");if(Q&&Q.trimWhitespace===!1)return B;return B.map((E)=>E.trim())}jA.getMultilineInput=_JA;function vJA(A,Q){let B=["true","True","TRUE"],E=["false","False","FALSE"],I=YK(A,Q);if(B.includes(I))return!0;if(E.includes(I))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${A}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}jA.getBooleanInput=vJA;function bJA(A,Q){if(process.env.GITHUB_OUTPUT||"")return(0,I1.issueFileCommand)("OUTPUT",(0,I1.prepareKeyValueMessage)(A,Q));process.stdout.write(ff.EOL),(0,KC.issueCommand)("set-output",{name:A},(0,nY.toCommandValue)(Q))}jA.setOutput=bJA;function uJA(A){(0,KC.issue)("echo",A?"on":"off")}jA.setCommandEcho=uJA;function mJA(A){process.exitCode=DK.Failure,xf(A)}jA.setFailed=mJA;function dJA(){return process.env.RUNNER_DEBUG==="1"}jA.isDebug=dJA;function cJA(A){(0,KC.issueCommand)("debug",{},A)}jA.debug=cJA;function xf(A,Q={}){(0,KC.issueCommand)("error",(0,nY.toCommandProperties)(Q),A instanceof Error?A.toString():A)}jA.error=xf;function lJA(A,Q={}){(0,KC.issueCommand)("warning",(0,nY.toCommandProperties)(Q),A instanceof Error?A.toString():A)}jA.warning=lJA;function pJA(A,Q={}){(0,KC.issueCommand)("notice",(0,nY.toCommandProperties)(Q),A instanceof Error?A.toString():A)}jA.notice=pJA;function iJA(A){process.stdout.write(A+ff.EOL)}jA.info=iJA;function hf(A){(0,KC.issue)("group",A)}jA.startGroup=hf;function Sf(){(0,KC.issue)("endgroup")}jA.endGroup=Sf;function nJA(A,Q){return kf(this,void 0,void 0,function*(){hf(A);let B;try{B=yield Q()}finally{Sf()}return B})}jA.group=nJA;function aJA(A,Q){if(process.env.GITHUB_STATE||"")return(0,I1.issueFileCommand)("STATE",(0,I1.prepareKeyValueMessage)(A,Q));(0,KC.issueCommand)("save-state",{name:A},(0,nY.toCommandValue)(Q))}jA.saveState=aJA;function sJA(A){return process.env[`STATE_${A}`]||""}jA.getState=sJA;function oJA(A){return kf(this,void 0,void 0,function*(){return yield xJA.OidcClient.getIDToken(A)})}jA.getIDToken=oJA;var rJA=QK();Object.defineProperty(jA,"summary",{enumerable:!0,get:function(){return rJA.summary}});var tJA=QK();Object.defineProperty(jA,"markdownSummary",{enumerable:!0,get:function(){return tJA.markdownSummary}});var JK=Gf();Object.defineProperty(jA,"toPosixPath",{enumerable:!0,get:function(){return JK.toPosixPath}});Object.defineProperty(jA,"toWin32Path",{enumerable:!0,get:function(){return JK.toWin32Path}});Object.defineProperty(jA,"toPlatformPath",{enumerable:!0,get:function(){return JK.toPlatformPath}});jA.platform=FK(Pf())});var UK=K((H4)=>{Object.defineProperty(H4,"__esModule",{value:!0});H4.Context=void 0;var uf=require("fs"),eJA=require("os");class mf{constructor(){var A,Q,B;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,uf.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,uf.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let E=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${E} does not exist${eJA.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(A=process.env.GITHUB_API_URL)!==null&&A!==void 0?A:"https://api.github.com",this.serverUrl=(Q=process.env.GITHUB_SERVER_URL)!==null&&Q!==void 0?Q:"https://github.com",this.graphqlUrl=(B=process.env.GITHUB_GRAPHQL_URL)!==null&&B!==void 0?B:"https://api.github.com/graphql"}get issue(){let A=this.payload;return Object.assign(Object.assign({},this.repo),{number:(A.issue||A.pull_request||A).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[A,Q]=process.env.GITHUB_REPOSITORY.split("/");return{owner:A,repo:Q}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}H4.Context=mf});var lf=K((AE)=>{var AGA=AE&&AE.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),QGA=AE&&AE.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),BGA=AE&&AE.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))AGA(Q,A,B)}return QGA(Q,A),Q},EGA=AE&&AE.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(AE,"__esModule",{value:!0});AE.getApiBaseUrl=AE.getProxyFetch=AE.getProxyAgentDispatcher=AE.getProxyAgent=AE.getAuthStringLine truncated
`+A.errors.map((Q)=>` - ${Q.message}`).join(`
`)}var hx=class extends Error{constructor(A,Q,B){super(XNA(B));if(this.request=A,this.headers=Q,this.response=B,this.name="GraphqlResponseError",this.errors=B.errors,this.data=B.data,Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}},$NA=["method","baseUrl","url","headers","request","query","mediaType"],KNA=["query","method","url"],fx=/\/api\/v3\/?$/;function LNA(A,Q,B){if(B){if(typeof Q==="string"&&"query"in B)return Promise.reject(Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let D in B){if(!KNA.includes(D))continue;return Promise.reject(Error(`[@octokit/graphql] "${D}" cannot be used as variable name`))}}let E=typeof Q==="string"?Object.assign({query:Q},B):Q,I=Object.keys(E).reduce((D,F)=>{if($NA.includes(F))return D[F]=E[F],D;if(!D.variables)D.variables={};return D.variables[F]=E[F],D},{}),C=E.baseUrl||A.endpoint.DEFAULTS.baseUrl;if(fx.test(C))I.url=C.replace(fx,"/api/graphql");return A(I).then((D)=>{if(D.data.errors){let F={};for(let Y of Object.keys(D.headers))F[Y]=D.headers[Y];throw new hx(I,F,D.data)}return D.data.data})}function MK(A,Q){let B=A.defaults(Q);return Object.assign((I,C)=>{return LNA(B,I,C)},{defaults:MK.bind(null,B),endpoint:B.endpoint})}var VNA=MK(UNA.request,{headers:{"user-agent":`octokit-graphql.js/${WNA} ${(0,ZNA.getUserAgent)()}`},method:"POST",url:"/graphql"});function zNA(A){return MK(A,{method:"POST",url:"/graphql"})}});var bx=K((xyA,vx)=>{var{defineProperty:RK,getOwnPropertyDescriptor:HNA,getOwnPropertyNames:wNA}=Object,MNA=Object.prototype.hasOwnProperty,RNA=(A,Q)=>{for(var B in Q)RK(A,B,{get:Q[B],enumerable:!0})},gNA=(A,Q,B,E)=>{if(Q&&typeof Q==="object"||typeof Q==="function"){for(let I of wNA(Q))if(!MNA.call(A,I)&&I!==B)RK(A,I,{get:()=>Q[I],enumerable:!(E=HNA(Q,I))||E.enumerable})}return A},TNA=(A)=>gNA(RK({},"__esModule",{value:!0}),A),_x={};RNA(_x,{createTokenAuth:()=>xNA});vx.exports=TNA(_x);var ONA=/^v1\./,qNA=/^ghs_/,jNA=/^ghu_/;async function PNA(A){let Q=A.split(/\./).length===3,B=ONA.test(A)||qNA.test(A),E=jNA.test(A);return{type:"token",token:A,tokenType:Q?"app":B?"installation":E?"user-to-server":"oauth"}}function kNA(A){if(A.split(/\./).length===3)return`bearer ${A}`;return`token ${A}`}async function fNA(A,Q,B,E){let I=Q.endpoint.merge(B,E);return I.headers.authorization=kNA(A),Q(I)}var xNA=function(Q){if(!Q)throw Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof Q!=="string")throw Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return Q=Q.replace(/^(token|bearer) +/i,""),Object.assign(PNA.bind(null,Q),{hook:fNA.bind(null,Q)})}});var ix=K((hyA,px)=>{var{defineProperty:gK,getOwnPropertyDescriptor:hNA,getOwnPropertyNames:SNA}=Object,yNA=Object.prototype.hasOwnProperty,_NA=(A,Q)=>{for(var B in Q)gK(A,B,{get:Q[B],enumerable:!0})},vNA=(A,Q,B,E)=>{if(Q&&typeof Q==="object"||typeof Q==="function"){for(let I of SNA(Q))if(!yNA.call(A,I)&&I!==B)gK(A,I,{get:()=>Q[I],enumerable:!(E=hNA(Q,I))||E.enumerable})}return A},bNA=(A)=>vNA(gK({},"__esModule",{value:!0}),A),cx={};_NA(cx,{Octokit:()=>nNA});px.exports=bNA(cx);var uNA=V9(),mNA=Cx(),ux=M9(),dNA=yx(),cNA=bx(),lx="5.2.2",mx=()=>{},lNA=console.warn.bind(console),pNA=console.error.bind(console);function iNA(A={}){if(typeof A.debug!=="function")A.debug=mx;if(typeof A.info!=="function")A.info=mx;if(typeof A.warn!=="function")A.warn=lNA;if(typeof A.error!=="function")A.error=pNA;return A}var dx=`octokit-core.js/${lx} ${(0,uNA.getUserAgent)()}`,nNA=class{static{this.VERSION=lx}static defaults(A){return class extends this{constructor(...B){let E=B[0]||{};if(typeof A==="function"){super(A(E));return}super(Object.assign({},A,E,E.userAgent&&A.userAgent?{userAgent:`${E.userAgent} ${A.userAgent}`}:null))}}}static{this.plugins=[]}static plugin(...A){let Q=this.plugins;return class extends this{static{this.plugins=Q.concat(A.filter((E)=>!Q.includes(E)))}}}constructor(A={}){let Q=new mNA.Collection,B={baseUrl:ux.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},A.request,{hook:Q.bind(null,"request")}),mediaType:{previews:[],format:""}};if(B.headers["user-agent"]=A.userAgent?`${A.userAgent} ${dx}`:dx,A.baseUrl)B.baseUrl=A.baseUrl;if(A.previews)B.mediaType.previews=A.previews;if(A.timeZone)B.headers["time-zone"]=A.timeZone;if(this.request=ux.request.defaults(B),this.graphql=(0,dNA.withCustomRequest)(this.request).defaults(B),this.log=iNA(A.log),this.hook=Q,!A.authStrategy)if(!A.auth)this.auth=async()=>({type:"unauthenticated"});else{let I=(0,cNA.createTokenAuth)(A.auth);Q.wrap("request",I.hook),this.auth=I}else{let{authStrategy:I,...C}=A,D=I(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:C},A.auth));Q.wrap("request",D.hook),this.auth=D}let E=this.constructor;for(let I=0;I<E.plugins.length;++I)Object.assign(this,E.plugins[I](this,A))}}});var ex=K((vyA,tx)=>{var{defineProperty:TK,getOwnPropertyDescriptor:aNA,getOwnPropertyNames:sNA}=Object,oNA=Object.prototype.hasOwnProperty,rNA=(A,Q)=>{ Line truncated
`);for(let I of E){let C=I.split("=");if(C.length===2&&(C[0].trim()==="VERSION_ID"||C[0].trim()==="DISTRIB_RELEASE")){Q=C[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return Q}cE._getOsVersion=X5A;function $5A(){let B="";if(P4.existsSync("/etc/lsb-release"))B=P4.readFileSync("/etc/lsb-release").toString();else if(P4.existsSync("/etc/os-release"))B=P4.readFileSync("/etc/os-release").toString();return B}cE._readLinuxVersionFile=$5A});var Hh=K((zC)=>{var K5A=zC&&zC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),L5A=zC&&zC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),V5A=zC&&zC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))K5A(Q,A,B)}return L5A(Q,A),Q},Lh=zC&&zC.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(zC,"__esModule",{value:!0});zC.RetryHelper=void 0;var Vh=V5A(yB());class zh{constructor(A,Q,B){if(A<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=A,this.minSeconds=Math.floor(Q),this.maxSeconds=Math.floor(B),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds")}execute(A,Q){return Lh(this,void 0,void 0,function*(){let B=1;while(B<this.maxAttempts){try{return yield A()}catch(I){if(Q&&!Q(I))throw I;Vh.info(I.message)}let E=this.getSleepAmount();Vh.info(`Waiting ${E} seconds before trying again`),yield this.sleep(E),B++}return yield A()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(A){return Lh(this,void 0,void 0,function*(){return new Promise((Q)=>setTimeout(Q,A*1000))})}}zC.RetryHelper=zh});var jh=K(($Q)=>{var __dirname="/Users/kudo/01_Work/Repos/expo/actions/node_modules/@actions/tool-cache/lib",z5A=$Q&&$Q.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),H5A=$Q&&$Q.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),rC=$Q&&$Q.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))z5A(Q,A,B)}return H5A(Q,A),Q},GI=$Q&&$Q.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty($Q,"__esModule",{value:!0});$Q.evaluateVersions=$Q.isExplicitVersion=$Q.findFromManifest=$Q.getManifestFromRepo=$Q.findAllVersions=$Q.find=$Q.cacheFile=$Q.cacheDir=$Q.extractZip=$Q.extractXar=$Q.extractTar=$Q.extract7z=$Q.downloadTool=$Q.HTTPError=void 0;var PQ=rC(yB()),tI=rC(lY()),wh=rC(require("crypto")),HC=rC(require("fs")),w5A=rC(Kh()),O9=rC(require("os")),oC=rC(require("path")),Mh=rC(JD()),ND=rC(_K()),M5A=rC(require("stream")),R5A=rC(require("util")),QJ=require("assert"),nD=iY(),g5A=Hh();class k4 extends Error{constructor(A){super(`Unexpected HTTP response: ${A}`);this.httpStatusCode=A,Object.setPrototypeOf(this,new.target.prototype)}}$Q.HTTPError=k4;var mK=process.platform==="win32",T5A=process.platform==="darwin",O5A="actions/tool-cache";function q5A(A,Q,B,E){return GI(this,void 0,void 0,function*(){Q=Q||oC.join(qh(),wh.randomUUID()),yield tI.mkdirP(oC.dirname(Q)),PQ.debug(`Downloading ${A}`),PQ.debug(`Destination ${Q}`);let I=3,C=uK("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),D=uK("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new g5A.RetryHelper(I,C,D).execute(()=>GI(this,void 0,void 0,function*(){return yield j5A(A,Q||"",B,E)}),(Y)=>{if(Y instanceof k4&&Y.httpStatusCode){if(Y.httpStatusCode<500&&Y.httpStatusCode!==408&&Y.httpStatusCode!==429)return!1}return!0})})}$Q.downloadTool=q5A;function j5A(A,Q,B,E){return GI(this,void 0,void 0,function*(){if(HC.existsSync(Q))throw Error(`Destination file path ${Q} already exists`);let I=new Mh.HttpClient(O5A,[],{allowRetries:!1});if(B){if(PQ.debug("set auth"),E===void 0)E={};E.authorization=B}let C=yield I.get(A Line truncated
${I}`;Object.assign(M,w),Y(M)}else F(w)},X=($)=>{if(J)C.removeListener("exit",Z);else C.removeListener("close",Z);Object.assign($,{pid:C.pid,output:[N,U],stdout:N,stderr:U,status:null,signal:null}),Y($)};if(J)C.once("exit",Z);else C.once("close",Z);C.once("error",X)});return D.child=C,D}zS.exports=$UA});var wS=K((C_A,HS)=>{HS.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var eK=K((D_A,RS)=>{var q9=wS(),MS={};for(let A of Object.keys(q9))MS[q9[A]]=A;var xA={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};RS.exports=xA;for(let A of Object.keys(xA)){if(!("channels"in xA[A]))throw Error("missing channels property: "+A);if(!("labels"in xA[A]))throw Error("missing channel labels property: "+A);if(xA[A].labels.length!==xA[A].channels)throw Error("channel and label counts mismatch: "+A);let{channels:Q,labels:B}=xA[A];delete xA[A].channels,delete xA[A].labels,Object.defineProperty(xA[A],"channels",{value:Q}),Object.defineProperty(xA[A],"labels",{value:B})}xA.rgb.hsl=function(A){let Q=A[0]/255,B=A[1]/255,E=A[2]/255,I=Math.min(Q,B,E),C=Math.max(Q,B,E),D=C-I,F,Y;if(C===I)F=0;else if(Q===C)F=(B-E)/D;else if(B===C)F=2+(E-Q)/D;else if(E===C)F=4+(Q-B)/D;if(F=Math.min(F*60,3 Line truncated
`:`
`)+B,I=E+1,E=A.indexOf(`
`,I)}while(E!==-1);return C+=A.substr(I),C};bS.exports={stringReplaceAll:jUA,stringEncaseCRLFWithFirstIndex:PUA}});var pS=K((Z_A,lS)=>{var kUA=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,mS=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,fUA=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,xUA=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,hUA=new Map([["n",`
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function cS(A){let Q=A[0]==="u",B=A[1]==="{";if(Q&&!B&&A.length===5||A[0]==="x"&&A.length===3)return String.fromCharCode(parseInt(A.slice(1),16));if(Q&&B)return String.fromCodePoint(parseInt(A.slice(2,-1),16));return hUA.get(A)||A}function SUA(A,Q){let B=[],E=Q.trim().split(/\s*,\s*/g),I;for(let C of E){let D=Number(C);if(!Number.isNaN(D))B.push(D);else if(I=C.match(fUA))B.push(I[2].replace(xUA,(F,Y,J)=>Y?cS(Y):J));else throw Error(`Invalid Chalk template style argument: ${C} (in style '${A}')`)}return B}function yUA(A){mS.lastIndex=0;let Q=[],B;while((B=mS.exec(A))!==null){let E=B[1];if(B[2]){let I=SUA(E,B[2]);Q.push([E].concat(I))}else Q.push([E])}return Q}function dS(A,Q){let B={};for(let I of Q)for(let C of I.styles)B[C[0]]=I.inverse?null:C.slice(1);let E=A;for(let[I,C]of Object.entries(B)){if(!Array.isArray(C))continue;if(!(I in E))throw Error(`Unknown Chalk style: ${I}`);E=C.length>0?E[I](...C):E[I]}return E}lS.exports=(A,Q)=>{let B=[],E=[],I=[];if(Q.replace(kUA,(C,D,F,Y,J,G)=>{if(D)I.push(cS(D));else if(Y){let N=I.join("");I=[],E.push(B.length===0?N:dS(A,B)(N)),B.push({inverse:F,styles:yUA(Y)})}else if(J){if(B.length===0)throw Error("Found extraneous } in Chalk template literal");E.push(dS(A,B)(I.join(""))),I=[],B.pop()}else I.push(G)}),E.push(I.join("")),B.length>0){let C=`Chalk template literal is missing ${B.length} closing bracket${B.length===1?"":"s"} (\`}\`)`;throw Error(C)}return E.join("")}});var eS=K((W_A,tS)=>{var j9=hS(),{stdout:DL,stderr:FL}=IL(),{stringReplaceAll:_UA,stringEncaseCRLFWithFirstIndex:vUA}=uS(),{isArray:v4}=Array,nS=["ansi","ansi","ansi256","ansi16m"],FJ=Object.create(null),bUA=(A,Q={})=>{if(Q.level&&!(Number.isInteger(Q.level)&&Q.level>=0&&Q.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let B=DL?DL.level:0;A.level=Q.level===void 0?B:Q.level};class aS{constructor(A){return sS(A)}}var sS=(A)=>{let Q={};return bUA(Q,A),Q.template=(...B)=>rS(Q.template,...B),Object.setPrototypeOf(Q,b4.prototype),Object.setPrototypeOf(Q.template,Q),Q.template.constructor=()=>{throw Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},Q.template.Instance=aS,Q.template};function b4(A){return sS(A)}for(let[A,Q]of Object.entries(j9))FJ[A]={get(){let B=u4(this,YL(Q.open,Q.close,this._styler),this._isEmpty);return Object.defineProperty(this,A,{value:B}),B}};FJ.visible={get(){let A=u4(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:A}),A}};var oS=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let A of oS)FJ[A]={get(){let{level:Q}=this;return function(...B){let E=YL(j9.color[nS[Q]][A](...B),j9.color.close,this._styler);return u4(this,E,this._isEmpty)}}};for(let A of oS){let Q="bg"+A[0].toUpperCase()+A.slice(1);FJ[Q]={get(){let{level:B}=this;return function(...E){let I=YL(j9.bgColor[nS[B]][A](...E),j9.bgColor.close,this._styler);return u4(this,I,this._isEmpty)}}}}var uUA=Object.defineProperties(()=>{},{...FJ,level:{enumerable:!0,get(){return this._generator.level},set(A){this._generator.level=A}}}),YL=(A,Q,B)=>{let E,I;if(B===void 0)E=A,I=Q;else E=B.openAll+A,I=Q+B.closeAll;return{open:A,close:Q,openAll:E,closeAll:I,parent:B}},u4=(A,Q,B)=>{let E=(...I)=>{if(v4(I[0])&&v4(I[0].raw))return iS(E,rS(E,...I));return iS(E,I.length===1?""+I[0]:I.join(" "))};return Object.setPrototypeOf(E,uUA),E._generator=A,E._styler=Q,E._isEmpty=B,E},iS=(A,Q)=>{if(A.level<=0||!Q)return A._isEmpty?"":Q;let B=A._styler;if(B===void 0)return Q;let{openAll:E,closeAll:I}=B;if(Q.indexOf("\x1B")!==-1)while(B!==void 0)Q=_UA(Q,B.close,B.open),B=B.parent;let C=Q.indexOf(`
`);if(C!==-1)Q=vUA(Q,I,E,C);return E+Q+I},CL,rS=(A,...Q)=>{let[B]=Q;if(!v4(B)||!v4(B.raw))return Q.join(" ");let E=Q.slice(1),I=[B.raw[0]];for(let C=1;C<B.length;C++)I.push(String(E[C-1]).replace(/[{}\\]/g,"\\$&"),String(B.raw[C]));if(CL===void 0)CL=pS();return CL(A,I.join(""))};Object.defineProperties(b4.prototype,FJ);var m4=b4();m4.supportsColor=DL;m4.stderr=b4({level:FL?FL.level:0});m4.stderr.supportsColor=FL;tS.exports=m4});var By=K((MC)=>{var d4=MC&&MC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(MC,"__esModule",{value:!0});MC.CocoaPodsPackageManager=MC.CocoaPodsError=void 0;MC.extractMissingDependencyError=GL;MC.getPodUpdateMessage=NL;MC.getPodRepoUpdateMessage=Ay;MC.getImprovedPodInstallError=Qy;var Y1=d4(S4()),tC=d4(eS()),mUA=require("fs"),P9=d4(require("os")),JL=d4(require("path"));class UD extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=!0;constructor(A,Q,B){super(B?`${A}
└─ Cause: ${B.message}`:A);this.code=Q,this.cause=B}}MC.CocoaPodsError=UD;function GL(A){let Q=A.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(Q)return[Q[1],Q[2]];return null}class eI{options;silent;static getPodProjectRoot(A){if(eI.isUsingPods(A))return A;let Q=JL.default.join(A,"ios");if(eI.isUsingPods(Q))return Q;let B=JL.default.join(A,"macos");if(eI.isUsingPods(B))return B;return null}static isUsingPods(A){return(0,mUA.existsSync)(JL.default.join(A,"Podfile"))}static async gemInstallCLIAsync(A=!1,Q={stdio:"inherit"}){let B=["install","cocoapods","--no-document"];try{await(0,Y1.default)("gem",B,Q)}catch(E){if(A)throw new UD("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",E);console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation"),await(0,Y1.default)("sudo",["gem",...B],Q)}}static async brewLinkCLIAsync(A={stdio:"inherit"}){await(0,Y1.default)("brew",["link","cocoapods"],A)}static async brewInstallCLIAsync(A={stdio:"inherit"}){await(0,Y1.default)("brew",["install","cocoapods"],A)}static async installCLIAsync({nonInteractive:A=!1,spawnOptions:Q={stdio:"inherit"}}){if(!Q)Q={stdio:"inherit"};let B=!!Q.ignoreStdio;try{return!B&&console.log("› Attempting to install CocoaPods CLI with Gem"),await eI.gemInstallCLIAsync(A,Q),!B&&console.log("› Successfully installed CocoaPods CLI with Gem"),!0}catch(E){if(!B)console.log(tC.default.yellow("› Failed to install CocoaPods CLI with Gem")),console.log(tC.default.red(E.stderr??E.message)),console.log("› Attempting to install CocoaPods CLI with Homebrew");try{if(await eI.brewInstallCLIAsync(Q),!await eI.isCLIInstalledAsync(Q))try{if(await eI.brewLinkCLIAsync(Q),!await eI.isCLIInstalledAsync(Q))throw new UD("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",E)}catch(I){throw new UD("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",I)}return!B&&console.log("› Successfully installed CocoaPods CLI with Homebrew"),!0}catch(I){throw!B&&console.warn(tC.default.yellow("› Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/")),new UD("Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/","NO_CLI",I)}}}static isAvailable(A,Q){if(process.platform!=="darwin")return!Q&&console.log(tC.default.red("CocoaPods is only supported on macOS machines")),!1;if(!eI.isUsingPods(A))return!Q&&console.log(tC.default.yellow("CocoaPods is not supported in this project")),!1;return!0}static async isCLIInstalledAsync(A={stdio:"inherit"}){try{return await(0,Y1.default)("pod",["--version"],A),!0}catch{return!1}}constructor({cwd:A,silent:Q}){this.silent=!!Q,this.options={cwd:A,stdio:"pipe"}}get name(){return"CocoaPods"}async installAsync({spinner:A}={}){await this._installAsync({spinner:A})}isCLIInstalledAsync(){return eI.isCLIInstalledAsync(this.options)}installCLIAsync(){return eI.installCLIAsync({nonInteractive:!0,spawnOptions:this.options})}async handleInstallErrorAsync({error:A,shouldUpdate:Q=!0,updatedPackages:B=[],spinner:E}){if(!A.output)throw A;if(!Q)throw Qy(A,{cwd:this.options.cwd});let I=A.output.join(P9.default.EOL).trim(),{updatePackage:C,shouldUpdateRepo:D}=NL(I);if(!C||B.includes(C))return await this._installAsync({spinner:E,shouldRepoUpdate:!0,shouldUpdate:!1,updatedPackages:B});return B.push(C),await this.runInstallTypeCommandAsync(["update",C,D?"":"--no-repo-update"].filter(Boolean),{formatWarning(){return`Failed to update ${tC.default.bold(C)}. Attempting to update the repo instead.`},spinner:E,updatedPackages:B})}async _installAsync({shouldRepoUpdate:A,...Q}={}){return await this.runInstallTypeCommandAsync(["install",A?"--repo-update":""].filter(Boolean),{formatWarning(B){return Ay(B.output.join(P9.default.EOL).trim()).message},...Q})}async runInstallTypeCommandAsync(A,{formatWarning:Q,...B}={}){try{return await this._runAsync(A)}catch(E){if(Q){let I=Q(E);if(B.spinner)B.spinner.text=tC.default.bold(I);if(!this.silent)console.warn(tC.default.yellow(I))}return await this.handleInstallErrorAsync({error:E,...B})}}async addWithParametersAsync(A,Q){throw Error("Unimplemented")}addAsync(A=[]){throw Error("Unimplemented")}addDevAsync(A=[]){throw Error("Unimplemented")}addGlobalAsync(A=[]){throw Error("Unimplemented")}removeAsync(A=[]){throw Error("Unimplemented")}removeDevAsync(A=[]){throw Error("Unimplemented")}removeGlobalAsync(A=[]){throw Error("Unimplemented")}async versionAsync(){let{stdout:A}=await(0,Y1.default)("pod",["--version"],this.options);return A.trim()}async configAsync(A){throw Error("Unimplemented")}async removeLockfileAsync(){throw Error("Unimplemented")}async uninstallAsync(){throw Error("Unimplemented")}async podRepoUpdateAsync(){try{await this._runAsync(["r Line truncated
${tC.default.gray(Y)}`}}return new UD("Command `pod install --repo-update` failed.","COMMAND_FAILED",A)}else{let E=A.stderr.trim(),I=A.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(I){if(A.message?.match(/pod exited with non-zero code: 1/))A.message="";E=null}A.message=[I,A.message,E].filter(Boolean).join(`
`)}return new UD("Command `pod install` failed.","COMMAND_FAILED",A)}});var Ey=K((c4)=>{Object.defineProperty(c4,"__esModule",{value:!0});c4.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;c4.matchToToken=function(A){var Q={type:"invalid",value:A[0],closed:void 0};if(A[1])Q.type="string",Q.closed=!!(A[3]||A[4]);else if(A[5])Q.type="comment";else if(A[6])Q.type="comment",Q.closed=!!A[7];else if(A[8])Q.type="regex";else if(A[9])Q.type="number";else if(A[10])Q.type="name";else if(A[11])Q.type="punctuator";else if(A[12])Q.type="whitespace";return Q}});var Yy=K((k9)=>{Object.defineProperty(k9,"__esModule",{value:!0});k9.isIdentifierChar=Fy;k9.isIdentifierName=iUA;k9.isIdentifierStart=Dy;var ZL="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Iy="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",cUA=new RegExp("["+ZL+"]"),lUA=new RegExp("["+ZL+Iy+"]");ZL=Iy=null;var Cy=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5Line truncated
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Sy(A){if(A[0]==="u"&&A.length===5||A[0]==="x"&&A.length===3)return String.fromCharCode(parseInt(A.slice(1),16));return L8A.get(A)||A}function V8A(A,Q){let B=[],E=Q.trim().split(/\s*,\s*/g),I;for(let C of E)if(!isNaN(C))B.push(Number(C));else if(I=C.match($8A))B.push(I[2].replace(K8A,(D,F,Y)=>F?Sy(F):Y));else throw Error(`Invalid Chalk template style argument: ${C} (in style '${A}')`);return B}function z8A(A){xy.lastIndex=0;let Q=[],B;while((B=xy.exec(A))!==null){let E=B[1];if(B[2]){let I=V8A(E,B[2]);Q.push([E].concat(I))}else Q.push([E])}return Q}function hy(A,Q){let B={};for(let I of Q)for(let C of I.styles)B[C[0]]=I.inverse?null:C.slice(1);let E=A;for(let I of Object.keys(B))if(Array.isArray(B[I])){if(!(I in E))throw Error(`Unknown Chalk style: ${I}`);if(B[I].length>0)E=E[I].apply(E,B[I]);else E=E[I]}return E}yy.exports=(A,Q)=>{let B=[],E=[],I=[];if(Q.replace(X8A,(C,D,F,Y,J,G)=>{if(D)I.push(Sy(D));else if(Y){let N=I.join("");I=[],E.push(B.length===0?N:hy(A,B)(N)),B.push({inverse:F,styles:z8A(Y)})}else if(J){if(B.length===0)throw Error("Found extraneous } in Chalk template literal");E.push(hy(A,B)(I.join(""))),I=[],B.pop()}else I.push(G)}),E.push(I.join("")),B.length>0){let C=`Chalk template literal is missing ${B.length} closing bracket${B.length===1?"":"s"} (\`}\`)`;throw Error(C)}return E.join("")}});var dy=K((P_A,S9)=>{var ML=Ly(),QE=qy(),wL=fy().stdout,H8A=_y(),by=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),uy=["ansi","ansi","ansi256","ansi16m"],my=new Set(["gray"]),NJ=Object.create(null);function vy(A,Q){Q=Q||{};let B=wL?wL.level:0;A.level=Q.level===void 0?B:Q.level,A.enabled="enabled"in Q?Q.enabled:A.level>0}function h9(A){if(!this||!(this instanceof h9)||this.template){let Q={};return vy(Q,A),Q.template=function(){let B=[].slice.call(arguments);return R8A.apply(null,[Q.template].concat(B))},Object.setPrototypeOf(Q,h9.prototype),Object.setPrototypeOf(Q.template,Q),Q.template.constructor=h9,Q.template}vy(this,A)}if(by)QE.blue.open="\x1B[94m";for(let A of Object.keys(QE))QE[A].closeRe=new RegExp(ML(QE[A].close),"g"),NJ[A]={get(){let Q=QE[A];return o4.call(this,this._styles?this._styles.concat(Q):[Q],this._empty,A)}};NJ.visible={get(){return o4.call(this,this._styles||[],!0,"visible")}};QE.color.closeRe=new RegExp(ML(QE.color.close),"g");for(let A of Object.keys(QE.color.ansi)){if(my.has(A))continue;NJ[A]={get(){let Q=this.level;return function(){let E={open:QE.color[uy[Q]][A].apply(null,arguments),close:QE.color.close,closeRe:QE.color.closeRe};return o4.call(this,this._styles?this._styles.concat(E):[E],this._empty,A)}}}}QE.bgColor.closeRe=new RegExp(ML(QE.bgColor.close),"g");for(let A of Object.keys(QE.bgColor.ansi)){if(my.has(A))continue;let Q="bg"+A[0].toUpperCase()+A.slice(1);NJ[Q]={get(){let B=this.level;return function(){let I={open:QE.bgColor[uy[B]][A].apply(null,arguments),close:QE.bgColor.close,closeRe:QE.bgColor.closeRe};return o4.call(this,this._styles?this._styles.concat(I):[I],this._empty,A)}}}}var w8A=Object.defineProperties(()=>{},NJ);function o4(A,Q,B){let E=function(){return M8A.apply(E,arguments)};E._styles=A,E._empty=Q;let I=this;return Object.defineProperty(E,"level",{enumerable:!0,get(){return I.level},set(C){I.level=C}}),Object.defineProperty(E,"enabled",{enumerable:!0,get(){return I.enabled},set(C){I.enabled=C}}),E.hasGrey=this.hasGrey||B==="gray"||B==="grey",E.__proto__=w8A,E}function M8A(){let A=arguments,Q=A.length,B=String(arguments[0]);if(Q===0)return"";if(Q>1)for(let I=1;I<Q;I++)B+=" "+A[I];if(!this.enabled||this.level<=0||!B)return this._empty?"":B;let E=QE.dim.open;if(by&&this.hasGrey)QE.dim.open="";for(let I of this._styles.slice().reverse())B=I.open+B.replace(I.closeRe,I.open)+I.close,B=B.replace(/\r?\n/g,`${I.close}$&${I.open}`);return QE.dim.open=E,B}function R8A(A,Q){if(!Array.isArray(Q))return[].slice.call(arguments,1).join(" ");let B=[].slice.call(arguments,2),E=[Q.raw[0]];for(let I=1;I<Q.length;I++)E.push(String(B[I-1]).replace(/[{}\\]/g,"\\$&")),E.push(String(Q.raw[I]));return H8A(A,E.join(""))}Object.defineProperties(h9.prototype,NJ);S9.exports=h9();S9.exports.supportsColor=wL;S9.exports.default=S9.exports});var oy=K((y9)=>{Object.defineProperty(y9,"__esModule",{value:!0});y9.default=f8A;y9.shouldHighlight=sy;var cy=Ey(),ly=Zy(),gL=g8A($y(),!0);function iy(A){if(typeof WeakMap!="function")return null;var Q=new WeakMap,B=new WeakMap;return(iy=function(E){return E?B:Q})(A)}function g8A(A,Q){if(!Q&&A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var B=iy(Q);if(B&&B.has(A))return B.get(A);var E={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in A)if(C!=="default"&&{}.hasOwnProperty.call(A,C)){var D=I?Object.getOwnPropertyDescriptor(A,C):null;D&&(D.get||D.set)?Object.defineProperty(E,C,D):E[C]=A[C]}return E.default=A,B&&B.sLine truncated
`);else B+=I}return B}function sy(A){return ny.isColorSupported||A.forceColor}var RL=void 0;function k8A(A){if(A){var Q;return(Q=RL)!=null||(RL=(0,gL.createColors)(!0)),RL}return ny}function f8A(A,Q={}){if(A!==""&&sy(Q)){let B=O8A(k8A(Q.forceColor));return P8A(B,A)}else return A}{let A,Q;y9.getChalk=({forceColor:B})=>{var E;if((E=A)!=null||(A=dy()),B){var I;return(I=Q)!=null||(Q=new A.constructor({enabled:!0,level:1})),Q}return A}}});var Q_=K((r4)=>{Object.defineProperty(r4,"__esModule",{value:!0});r4.codeFrameColumns=A_;r4.default=y8A;var TL=x8A(oy());function ey(){if(typeof WeakMap!=="function")return null;var A=new WeakMap;return ey=function(){return A},A}function x8A(A){if(A&&A.__esModule)return A;if(A===null||typeof A!=="object"&&typeof A!=="function")return{default:A};var Q=ey();if(Q&&Q.has(A))return Q.get(A);var B={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in A)if(Object.prototype.hasOwnProperty.call(A,I)){var C=E?Object.getOwnPropertyDescriptor(A,I):null;if(C&&(C.get||C.set))Object.defineProperty(B,I,C);else B[I]=A[I]}if(B.default=A,Q)Q.set(A,B);return B}var ry=!1;function h8A(A){return{gutter:A.grey,marker:A.red.bold,message:A.red.bold}}var ty=/\r\n|[\n\r\u2028\u2029]/;function S8A(A,Q,B){let E=Object.assign({column:0,line:-1},A.start),I=Object.assign({},E,A.end),{linesAbove:C=2,linesBelow:D=3}=B||{},F=E.line,Y=E.column,J=I.line,G=I.column,N=Math.max(F-(C+1),0),U=Math.min(Q.length,J+D);if(F===-1)N=0;if(J===-1)U=Q.length;let Z=J-F,X={};if(Z)for(let $=0;$<=Z;$++){let V=$+F;if(!Y)X[V]=!0;else if($===0){let w=Q[V-1].length;X[V]=[Y,w-Y+1]}else if($===Z)X[V]=[0,G];else{let w=Q[V-$].length;X[V]=[0,w]}}else if(Y===G)if(Y)X[F]=[Y,0];else X[F]=!0;else X[F]=[Y,G-Y];return{start:N,end:U,markerLines:X}}function A_(A,Q,B={}){let E=(B.highlightCode||B.forceColor)&&(0,TL.shouldHighlight)(B),I=(0,TL.getChalk)(B),C=h8A(I),D=($,V)=>{return E?$(V):V},F=A.split(ty),{start:Y,end:J,markerLines:G}=S8A(Q,F,B),N=Q.start&&typeof Q.start.column==="number",U=String(J).length,X=(E?(0,TL.default)(A,B):A).split(ty).slice(Y,J).map(($,V)=>{let w=Y+1+V,M=` ${` ${w}`.slice(-U)} | `,k=G[w],d=!G[w+1];if(k){let t="";if(Array.isArray(k)){let m=$.slice(0,Math.max(k[0]-1,0)).replace(/[^\t]/g," "),n=k[1]||1;if(t=[`
`,D(C.gutter,M.replace(/\d/g," ")),m,D(C.marker,"^").repeat(n)].join(""),d&&B.message)t+=" "+D(C.message,B.message)}return[D(C.marker,">"),D(C.gutter,M),$,t].join("")}else return` ${D(C.gutter,M)}${$}`}).join(`
`);if(B.message&&!N)X=`${" ".repeat(U+1)}${B.message}
${X}`;if(E)return I.reset(X);else return X}function y8A(A,Q,B,E={}){if(!ry){ry=!0;let C="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(C,"DeprecationWarning");else{let D=Error(C);D.name="DeprecationWarning",console.warn(Error(C))}}return B=Math.max(B,0),A_(A,{start:{column:B,line:Q}},E)}});var B_=K((x_A,t4)=>{t4.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;t4.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uLine truncated
`)sD++,A0=0;else if(A)A0+=A.length;else A0++;if(A)A2+=A.length;return A}var C_={default(){switch(HQ){case"\t":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
`:case"\r":case"\u2028":case"\u2029":DA();return;case"/":DA(),NQ="comment";return;case void 0:return DA(),$B("eof")}if(LE.isSpaceSeparator(HQ)){DA();return}return C_[NI]()},comment(){switch(HQ){case"*":DA(),NQ="multiLineComment";return;case"/":DA(),NQ="singleLineComment";return}throw KB(DA())},multiLineComment(){switch(HQ){case"*":DA(),NQ="multiLineCommentAsterisk";return;case void 0:throw KB(DA())}DA()},multiLineCommentAsterisk(){switch(HQ){case"*":DA();return;case"/":DA(),NQ="default";return;case void 0:throw KB(DA())}DA(),NQ="multiLineComment"},singleLineComment(){switch(HQ){case`
`:case"\r":case"\u2028":case"\u2029":DA(),NQ="default";return;case void 0:return DA(),$B("eof")}DA()},value(){switch(HQ){case"{":case"[":return $B("punctuator",DA());case"n":return DA(),N1("ull"),$B("null",null);case"t":return DA(),N1("rue"),$B("boolean",!0);case"f":return DA(),N1("alse"),$B("boolean",!1);case"-":case"+":if(DA()==="-")ZD=-1;NQ="sign";return;case".":IQ=DA(),NQ="decimalPointLeading";return;case"0":IQ=DA(),NQ="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":IQ=DA(),NQ="decimalInteger";return;case"I":return DA(),N1("nfinity"),$B("numeric",1/0);case"N":return DA(),N1("aN"),$B("numeric",NaN);case'"':case"'":_9=DA()==='"',IQ="",NQ="string";return}throw KB(DA())},identifierNameStartEscape(){if(HQ!=="u")throw KB(DA());DA();let A=fL();switch(A){case"$":case"_":break;default:if(!LE.isIdStartChar(A))throw I_();break}IQ+=A,NQ="identifierName"},identifierName(){switch(HQ){case"$":case"_":case"‌":case"‍":IQ+=DA();return;case"\\":DA(),NQ="identifierNameEscape";return}if(LE.isIdContinueChar(HQ)){IQ+=DA();return}return $B("identifier",IQ)},identifierNameEscape(){if(HQ!=="u")throw KB(DA());DA();let A=fL();switch(A){case"$":case"_":case"‌":case"‍":break;default:if(!LE.isIdContinueChar(A))throw I_();break}IQ+=A,NQ="identifierName"},sign(){switch(HQ){case".":IQ=DA(),NQ="decimalPointLeading";return;case"0":IQ=DA(),NQ="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":IQ=DA(),NQ="decimalInteger";return;case"I":return DA(),N1("nfinity"),$B("numeric",ZD*(1/0));case"N":return DA(),N1("aN"),$B("numeric",NaN)}throw KB(DA())},zero(){switch(HQ){case".":IQ+=DA(),NQ="decimalPoint";return;case"e":case"E":IQ+=DA(),NQ="decimalExponent";return;case"x":case"X":IQ+=DA(),NQ="hexadecimal";return}return $B("numeric",ZD*0)},decimalInteger(){switch(HQ){case".":IQ+=DA(),NQ="decimalPoint";return;case"e":case"E":IQ+=DA(),NQ="decimalExponent";return}if(LE.isDigit(HQ)){IQ+=DA();return}return $B("numeric",ZD*Number(IQ))},decimalPointLeading(){if(LE.isDigit(HQ)){IQ+=DA(),NQ="decimalFraction";return}throw KB(DA())},decimalPoint(){switch(HQ){case"e":case"E":IQ+=DA(),NQ="decimalExponent";return}if(LE.isDigit(HQ)){IQ+=DA(),NQ="decimalFraction";return}return $B("numeric",ZD*Number(IQ))},decimalFraction(){switch(HQ){case"e":case"E":IQ+=DA(),NQ="decimalExponent";return}if(LE.isDigit(HQ)){IQ+=DA();return}return $B("numeric",ZD*Number(IQ))},decimalExponent(){switch(HQ){case"+":case"-":IQ+=DA(),NQ="decimalExponentSign";return}if(LE.isDigit(HQ)){IQ+=DA(),NQ="decimalExponentInteger";return}throw KB(DA())},decimalExponentSign(){if(LE.isDigit(HQ)){IQ+=DA(),NQ="decimalExponentInteger";return}throw KB(DA())},decimalExponentInteger(){if(LE.isDigit(HQ)){IQ+=DA();return}return $B("numeric",ZD*Number(IQ))},hexadecimal(){if(LE.isHexDigit(HQ)){IQ+=DA(),NQ="hexadecimalInteger";return}throw KB(DA())},hexadecimalInteger(){if(LE.isHexDigit(HQ)){IQ+=DA();return}return $B("numeric",ZD*Number(IQ))},string(){switch(HQ){case"\\":DA(),IQ+=v8A();return;case'"':if(_9)return DA(),$B("string",IQ);IQ+=DA();return;case"'":if(!_9)return DA(),$B("string",IQ);IQ+=DA();return;case`
`:case"\r":throw KB(DA());case"\u2028":case"\u2029":m8A(HQ);break;case void 0:throw KB(DA())}IQ+=DA()},start(){switch(HQ){case"{":case"[":return $B("punctuator",DA())}NQ="value"},beforePropertyName(){switch(HQ){case"$":case"_":IQ=DA(),NQ="identifierName";return;case"\\":DA(),NQ="identifierNameStartEscape";return;case"}":return $B("punctuator",DA());case'"':case"'":_9=DA()==='"',NQ="string";return}if(LE.isIdStartChar(HQ)){IQ+=DA(),NQ="identifierName";return}throw KB(DA())},afterPropertyName(){if(HQ===":")return $B("punctuator",DA());throw KB(DA())},beforePropertyValue(){NQ="value"},afterPropertyValue(){switch(HQ){case",":case"}":return $B("punctuator",DA())}throw KB(DA())},beforeArrayValue(){if(HQ==="]")return $B("punctuator",DA());NQ="value"},afterArrayValue(){switch(HQ){case",":case"]":return $B("punctuator",DA())}throw KB(DA())},end(){throw KB(DA())}};function $B(A,Q){return{type:A,value:Q,line:sD,column:A0}}function N1(A){for(let Q of A){if(XD()!==Q)throw KB(DA());DA()}}function v8A(){switch(XD()){case"b":return DA(),"\b";case"f":return DA(),"\f";case"n":return DA(),`
`;case"r":return DA(),"\r";case"t":return DA(),"\t";case"v":return DA(),"\v";case"0":if(DA(),LE.isDigit(XD()))throw KB(DA());return"\x00";case"x":return DA(),b8A();case"u":return DA(),fL();case`
`:case"\u2028":case"\u2029":return DA(),"";case"\r":if(DA(),XD()===`
`)DA();return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw KB(DA());case void 0:throw KB(DA())}return DA()}function b8A(){let A="",Q=XD();if(!LE.isHexDigit(Q))throw KB(DA());if(A+=DA(),Q=XD(),!LE.isHexDigit(Q))throw KB(DA());return A+=DA(),String.fromCodePoint(parseInt(A,16))}function fL(){let A="",Q=4;while(Q-- >0){let B=XD();if(!LE.isHexDigit(B))throw KB(DA());A+=DA()}return String.fromCodePoint(parseInt(A,16))}var u8A={start(){if(VE.type==="eof")throw U1();jL()},beforePropertyName(){switch(VE.type){case"identifier":case"string":xL=VE.value,NI="afterPropertyName";return;case"punctuator":e4();return;case"eof":throw U1()}},afterPropertyName(){if(VE.type==="eof")throw U1();NI="beforePropertyValue"},beforePropertyValue(){if(VE.type==="eof")throw U1();jL()},beforeArrayValue(){if(VE.type==="eof")throw U1();if(VE.type==="punctuator"&&VE.value==="]"){e4();return}jL()},afterPropertyValue(){if(VE.type==="eof")throw U1();switch(VE.value){case",":NI="beforePropertyName";return;case"}":e4()}},afterArrayValue(){if(VE.type==="eof")throw U1();switch(VE.value){case",":NI="beforeArrayValue";return;case"]":e4()}},end(){}};function jL(){let A;switch(VE.type){case"punctuator":switch(VE.value){case"{":A={};break;case"[":A=[];break}break;case"null":case"boolean":case"numeric":case"string":A=VE.value;break}if(v9===void 0)v9=A;else{let Q=WD[WD.length-1];if(Array.isArray(Q))Q.push(A);else Object.defineProperty(Q,xL,{value:A,writable:!0,enumerable:!0,configurable:!0})}if(A!==null&&typeof A==="object")if(WD.push(A),Array.isArray(A))NI="beforeArrayValue";else NI="beforePropertyName";else{let Q=WD[WD.length-1];if(Q==null)NI="end";else if(Array.isArray(Q))NI="afterArrayValue";else NI="afterPropertyValue"}}function e4(){WD.pop();let A=WD[WD.length-1];if(A==null)NI="end";else if(Array.isArray(A))NI="afterArrayValue";else NI="afterPropertyValue"}function KB(A){if(A===void 0)return Q2(`JSON5: invalid end of input at ${sD}:${A0}`);return Q2(`JSON5: invalid character '${D_(A)}' at ${sD}:${A0}`)}function U1(){return Q2(`JSON5: invalid end of input at ${sD}:${A0}`)}function I_(){return A0-=5,Q2(`JSON5: invalid identifier character at ${sD}:${A0}`)}function m8A(A){console.warn(`JSON5: '${D_(A)}' in strings is not valid ECMAScript; consider escaping`)}function D_(A){let Q={"'":"\\'",'"':"\\\"","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(Q[A])return Q[A];if(A<" "){let B=A.charCodeAt(0).toString(16);return"\\x"+("00"+B).substring(B.length)}return A}function Q2(A){let Q=SyntaxError(A);return Q.lineNumber=sD,Q.columnNumber=A0,Q}});var G_=K((y_A,J_)=>{var hL=qL();J_.exports=function(Q,B,E){let I=[],C="",D,F,Y="",J;if(B!=null&&typeof B==="object"&&!Array.isArray(B))E=B.space,J=B.quote,B=B.replacer;if(typeof B==="function")F=B;else if(Array.isArray(B)){D=[];for(let $ of B){let V;if(typeof $==="string")V=$;else if(typeof $==="number"||$ instanceof String||$ instanceof Number)V=String($);if(V!==void 0&&D.indexOf(V)<0)D.push(V)}}if(E instanceof Number)E=Number(E);else if(E instanceof String)E=String(E);if(typeof E==="number"){if(E>0)E=Math.min(10,Math.floor(E)),Y=" ".substr(0,E)}else if(typeof E==="string")Y=E.substr(0,10);return G("",{"":Q});function G($,V){let w=V[$];if(w!=null){if(typeof w.toJSON5==="function")w=w.toJSON5($);else if(typeof w.toJSON==="function")w=w.toJSON($)}if(F)w=F.call(V,$,w);if(w instanceof Number)w=Number(w);else if(w instanceof String)w=String(w);else if(w instanceof Boolean)w=w.valueOf();switch(w){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof w==="string")return N(w,!1);if(typeof w==="number")return String(w);if(typeof w==="object")return Array.isArray(w)?X(w):U(w);return}function N($){let V={"'":0.1,'"':0.2},w={"'":"\\'",'"':"\\\"","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},g="";for(let k=0;k<$.length;k++){let d=$[k];switch(d){case"'":case'"':V[d]++,g+=d;continue;case"\x00":if(hL.isDigit($[k+1])){g+="\\x00";continue}}if(w[d]){g+=w[d];continue}if(d<" "){let t=d.charCodeAt(0).toString(16);g+="\\x"+("00"+t).substring(t.length);continue}g+=d}let M=J||Object.keys(V).reduce((k,d)=>V[k]<V[d]?k:d);return g=g.replace(new RegExp(M,"g"),w[M]),M+g+M}function U($){if(I.indexOf($)>=0)throw TypeError("Converting circular structure to JSON5");I.push($);let V=C;C=C+Y;let w=D||Object.keys($),g=[];for(let k of w){let d=G(k,$);if(d!==void 0){let t=Z(k)+":";if(Y!=="")t+=" ";t+=d,g.push(t)}}let M;if(g.length===0)M="{}";else{let k;if(Y==="")k=g.join(","),M="{"+k+"}";else{let d=`,
`+C;k=g.join(d),M=`{
`+C+k+`,
`+V+"}"}}return I.pop(),C=V,M}function Z($){if($.length===0)return N($,!0);let V=String.fromCodePoint($.codePointAt(0));if(!hL.isIdStartChar(V))return N($,!0);for(let w=V.length;w<$.length;w++)if(!hL.isIdContinueChar(String.fromCodePoint($.codePointAt(w))))return N($,!0);return $}function X($){if(I.indexOf($)>=0)throw TypeError("Converting circular structure to JSON5");I.push($);let V=C;C=C+Y;let w=[];for(let M=0;M<$.length;M++){let k=G(String(M),$);w.push(k!==void 0?k:"null")}let g;if(w.length===0)g="[]";else if(Y==="")g="["+w.join(",")+"]";else{let M=`,
`+C,k=w.join(M);g=`[
`+C+k+`,
`+V+"]"}return I.pop(),C=V,g}}});var U_=K((__A,N_)=>{var d8A=Y_(),c8A=G_(),l8A={parse:d8A,stringify:c8A};N_.exports=l8A});var W_=K((b9)=>{Object.defineProperty(b9,"__esModule",{value:!0});b9.EmptyJsonFileError=void 0;class SL extends Error{cause;code;fileName;isJsonFileError;constructor(A,Q,B,E){let I=A;if(E)I+=`
${Q?"├":"└"}─ File: ${E}`;if(Q)I+=`
└─ Cause: ${Q.name}: ${Q.message}`;super(I);this.name=this.constructor.name,this.cause=Q,this.code=B,this.fileName=E,this.isJsonFileError=!0}}b9.default=SL;class Z_ extends SL{constructor(A){super("Cannot parse an empty JSON string",void 0,"EJSONEMPTY",A)}}b9.EmptyJsonFileError=Z_});var $_=K((q0)=>{var p8A=q0&&q0.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),i8A=q0&&q0.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),n8A=q0&&q0.__importStar||function(){var A=function(Q){return A=Object.getOwnPropertyNames||function(B){var E=[];for(var I in B)if(Object.prototype.hasOwnProperty.call(B,I))E[E.length]=I;return E},A(Q)};return function(Q){if(Q&&Q.__esModule)return Q;var B={};if(Q!=null){for(var E=A(Q),I=0;I<E.length;I++)if(E[I]!=="default")p8A(B,Q,E[I])}return i8A(B,Q),B}}();Object.defineProperty(q0,"__esModule",{value:!0});q0.writeFileAtomicSync=s8A;q0.writeFileAtomic=o8A;var a8A=require("node:crypto"),B2=n8A(require("node:fs"));function X_(A,Q){let B=(0,a8A.createHash)("sha256").update(Q).digest("base64url");return`${A}.${B}`}function s8A(A,Q){let B=X_(A,Q);B2.writeFileSync(B,Q),B2.renameSync(B,A)}async function o8A(A,Q){let B=X_(A,Q);await B2.promises.writeFile(B,Q),await B2.promises.rename(B,A)}});var k_=K((Q0)=>{var r8A=Q0&&Q0.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),t8A=Q0&&Q0.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),e8A=Q0&&Q0.__importStar||function(){var A=function(Q){return A=Object.getOwnPropertyNames||function(B){var E=[];for(var I in B)if(Object.prototype.hasOwnProperty.call(B,I))E[E.length]=I;return E},A(Q)};return function(Q){if(Q&&Q.__esModule)return Q;var B={};if(Q!=null){for(var E=A(Q),I=0;I<E.length;I++)if(E[I]!=="default")r8A(B,Q,E[I])}return t8A(B,Q),B}}(),vL=Q0&&Q0.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(Q0,"__esModule",{value:!0});var A4A=Q_(),bL=vL(U_()),I2=vL(require("node:fs")),O_=vL(require("node:path")),oD=e8A(W_()),q_=$_(),Q4A={badJsonDefault:void 0,jsonParseErrorDefault:void 0,cantReadFileDefault:void 0,ensureDir:!1,default:void 0,json5:!1,space:2,addNewLineAtEOF:!0};class j_{file;options;static read=W1;static readAsync=X1;static parseJsonString=E2;static write=UJ;static writeAsync=ZJ;static get=K_;static getAsync=L_;static set=V_;static setAsync=z_;static merge=w_;static mergeAsync=H_;static deleteKey=R_;static deleteKeyAsync=M_;static deleteKeys=_L;static deleteKeysAsync=yL;static rewrite=T_;static rewriteAsync=g_;constructor(A,Q={}){this.file=A,this.options=Q}read(A){return W1(this.file,this._getOptions(A))}async readAsync(A){return X1(this.file,this._getOptions(A))}write(A,Q){return UJ(this.file,A,this._getOptions(Q))}async writeAsync(A,Q){return ZJ(this.file,A,this._getOptions(Q))}parseJsonString(A,Q){return E2(A,Q)}get(A,Q,B){return K_(this.file,A,Q,this._getOptions(B))}async getAsync(A,Q,B){return L_(this.file,A,Q,this._getOptions(B))}set(A,Q,B){return V_(this.file,A,Q,this._getOptions(B))}async setAsync(A,Q,B){return z_(this.file,A,Q,this._getOptions(B))}async merge(A,Q){return w_(this.file,A,this._getOptions(Q))}async mergeAsync(A,Q){return H_(this.file,A,this._getOptions(Q))}deleteKey(A,Q){return R_(this.file,A,this._getOptions(Q))}async deleteKeyAsync(A,Q){return M_(this.file,A,this._getOptions(Q))}deleteKeys(A,Q){return _L(this.file,A,this._getOptions(Q))}async deleteKeysAsync(A,Q){return yL(this.file,A,this._getOptions(Q))}rewrite(A){return T_(this.file,this._getOptions(A))}async rewriteAsync(A){return g_(this.file,this._getOptions(A))}_getOptions(A){return{...this.options,...A}}}Q0.default=j_;function W1(A,Q){let B;try{B=I2.default.readFileSync(A,"utf8")}catch(E){uL(B,A);let I=P_(Q);if(I===void 0)throw new oD.default(`Can't read JSON file: ${A}`,E,E.code,A);else return I}return E2(B,Q,A)}async function X1(A,Q){let B;try{B=await I2.default.promises.readFile(A,"utf8")}catch(E){uL(B,A);let I=P_(Q);if(I===void 0)throw new oD.default(`Can't read JSON file: ${A}`,E,E.code);else return I}return E2(B,Q)}function E2(A,Q,B){uL(A,B);try{if(Z1(Q,"json5"))return bL.default.parse(A);else return JSON.parse(A)}catch(E){let I=B4A(Q);if(I===void 0){let C=E4A(E,A);if(C){let D=(0,A4A.codeFrameColumns)(A,{start:C});E.codeFrame=D,E.message+=`
${D}`}throw new oD.default(`Error parsing JSON: ${A}`,E,"EJSONPARSE",B)}else return I}}function K_(A,Q,B,E){let I=W1(A,E);if(Q in I)return I[Q];if(B===void 0)throw new oD.default(`No value at key path "${String(Q)}" in JSON object from: ${A}`);return B}async function L_(A,Q,B,E){let I=await X1(A,E);if(Q in I)return I[Q];if(B===void 0)throw new oD.default(`No value at key path "${String(Q)}" in JSON object from: ${A}`);return B}function UJ(A,Q,B){if(B?.ensureDir)I2.default.mkdirSync(O_.default.dirname(A),{recursive:!0});let E=Z1(B,"space"),I=Z1(B,"json5"),C=Z1(B,"addNewLineAtEOF"),D;try{if(I)D=bL.default.stringify(Q,null,E);else D=JSON.stringify(Q,null,E)}catch(Y){throw new oD.default(`Couldn't JSON.stringify object for file: ${A}`,Y)}let F=C?`${D}
`:D;return(0,q_.writeFileAtomicSync)(A,F),Q}async function ZJ(A,Q,B){if(B?.ensureDir)await I2.default.promises.mkdir(O_.default.dirname(A),{recursive:!0});let E=Z1(B,"space"),I=Z1(B,"json5"),C=Z1(B,"addNewLineAtEOF"),D;try{if(I)D=bL.default.stringify(Q,null,E);else D=JSON.stringify(Q,null,E)}catch(Y){throw new oD.default(`Couldn't JSON.stringify object for file: ${A}`,Y)}let F=C?`${D}
`:D;return await(0,q_.writeFileAtomic)(A,F),Q}function V_(A,Q,B,E){let I=W1(A,E);return UJ(A,{...I,[Q]:B},E)}async function z_(A,Q,B,E){let I=await X1(A,E);return ZJ(A,{...I,[Q]:B},E)}async function H_(A,Q,B){let E=await X1(A,B);if(Array.isArray(Q))Object.assign(E,...Q);else Object.assign(E,Q);return ZJ(A,E,B)}function w_(A,Q,B){let E=W1(A,B);if(Array.isArray(Q))Object.assign(E,...Q);else Object.assign(E,Q);return UJ(A,E,B)}async function M_(A,Q,B){return yL(A,[Q],B)}function R_(A,Q,B){return _L(A,[Q],B)}async function yL(A,Q,B){let E=await X1(A,B),I=!1;for(let C=0;C<Q.length;C++){let D=Q[C];if(E.hasOwnProperty(D))delete E[D],I=!0}if(I)return ZJ(A,E,B);return E}function _L(A,Q,B){let E=W1(A,B),I=!1;for(let C=0;C<Q.length;C++){let D=Q[C];if(E.hasOwnProperty(D))delete E[D],I=!0}if(I)return UJ(A,E,B);return E}async function g_(A,Q){let B=await X1(A,Q);return ZJ(A,B,Q)}function T_(A,Q){return UJ(A,W1(A,Q),Q)}function B4A(A={}){if(A.jsonParseErrorDefault===void 0)return A.default;else return A.jsonParseErrorDefault}function P_(A={}){if(A.cantReadFileDefault===void 0)return A.default;else return A.cantReadFileDefault}function Z1(A,Q){if(A){if(A[Q]!==void 0)return A[Q]}return Q4A[Q]}function E4A(A,Q){if("lineNumber"in A&&"columnNumber"in A)return{line:A.lineNumber,column:A.columnNumber};let B=/at position (\d+)/.exec(A.message);if(B){let E=parseInt(B[1],10),I=Q.slice(0,E+1).split(`
`);return{line:I.length,column:I[I.length-1].length}}return null}function uL(A,Q){if(A?.trim()==="")throw new oD.EmptyJsonFileError(Q)}});var y_=K((D2)=>{Object.defineProperty(D2,"__esModule",{value:!0});D2.LRUCache=void 0;var WJ=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,x_=new Set,mL=typeof process==="object"&&!!process?process:{},h_=(A,Q,B,E)=>{typeof mL.emitWarning==="function"?mL.emitWarning(A,Q,B,E):console.error(`[${B}] ${Q}: ${A}`)},C2=globalThis.AbortController,f_=globalThis.AbortSignal;if(typeof C2>"u"){f_=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(E,I){this._onabort.push(I)}},C2=class{constructor(){Q()}signal=new f_;abort(E){if(this.signal.aborted)return;this.signal.reason=E,this.signal.aborted=!0;for(let I of this.signal._onabort)I(E);this.signal.onabort?.(E)}};let A=mL.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",Q=()=>{if(!A)return;A=!1,h_("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",Q)}}var I4A=(A)=>!x_.has(A),m_A=Symbol("type"),rD=(A)=>A&&A===Math.floor(A)&&A>0&&isFinite(A),S_=(A)=>!rD(A)?null:A<=Math.pow(2,8)?Uint8Array:A<=Math.pow(2,16)?Uint16Array:A<=Math.pow(2,32)?Uint32Array:A<=Number.MAX_SAFE_INTEGER?u9:null;class u9 extends Array{constructor(A){super(A);this.fill(0)}}class XJ{heap;length;static#A=!1;static create(A){let Q=S_(A);if(!Q)return[];XJ.#A=!0;let B=new XJ(A,Q);return XJ.#A=!1,B}constructor(A,Q){if(!XJ.#A)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new Q(A),this.length=0}push(A){this.heap[this.length++]=A}pop(){return this.heap[--this.length]}}class dL{#A;#I;#Q;#B;#K;#k;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#Y;#L;#F;#D;#E;#U;#W;#N;#J;#V;#G;#z;#H;#X;#w;#O;#Z;static unsafeExposeInternals(A){return{starts:A.#H,ttls:A.#X,sizes:A.#z,keyMap:A.#F,keyList:A.#D,valList:A.#E,next:A.#U,prev:A.#W,get head(){return A.#N},get tail(){return A.#J},free:A.#V,isBackgroundFetch:(Q)=>A.#C(Q),backgroundFetch:(Q,B,E,I)=>A.#h(Q,B,E,I),moveToTail:(Q)=>A.#P(Q),indexes:(Q)=>A.#M(Q),rindexes:(Q)=>A.#R(Q),isStale:(Q)=>A.#$(Q)}}get max(){return this.#A}get maxSize(){return this.#I}get calculatedSize(){return this.#L}get size(){return this.#Y}get fetchMethod(){return this.#K}get memoMethod(){return this.#k}get dispose(){return this.#Q}get disposeAfter(){return this.#B}constructor(A){let{max:Q=0,ttl:B,ttlResolution:E=1,ttlAutopurge:I,updateAgeOnGet:C,updateAgeOnHas:D,allowStale:F,dispose:Y,disposeAfter:J,noDisposeOnSet:G,noUpdateTTL:N,maxSize:U=0,maxEntrySize:Z=0,sizeCalculation:X,fetchMethod:$,memoMethod:V,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:g,allowStaleOnFetchRejection:M,allowStaleOnFetchAbort:k,ignoreFetchAbort:d}=A;if(Q!==0&&!rD(Q))throw TypeError("max option must be a nonnegative integer");let t=Q?S_(Q):Array;if(!t)throw Error("invalid max value: "+Q);if(this.#A=Q,this.#I=U,this.maxEntrySize=Z||this.#I,this.sizeCalculation=X,this.sizeCalculation){if(!this.#I&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!=="function")throw TypeError("sizeCalculation set to non-function")}if(V!==void 0&&typeof V!=="function")throw TypeError("memoMethod must be a function if defined");if(this.#k=V,$!==void 0&&typeof $!=="function")throw TypeError("fetchMethod must be a function if specified");if(this.#K=$,this.#O=!!$,this.#F=new Map,this.#D=Array(Q).fill(void 0),this.#E=Array(Q).fill(void 0),this.#U=new t(Q),this.#W=new t(Q),this.#N=0,this.#J=0,this.#V=XJ.create(Q),this.#Y=0,this.#L=0,typeof Y==="function")this.#Q=Y;if(typeof J==="function")this.#B=J,this.#G=[];else this.#B=void 0,this.#G=void 0;if(this.#w=!!this.#Q,this.#Z=!!this.#B,this.noDisposeOnSet=!!G,this.noUpdateTTL=!!N,this.noDeleteOnFetchRejection=!!w,this.allowStaleOnFetchRejection=!!M,this.allowStaleOnFetchAbort=!!k,this.ignoreFetchAbort=!!d,this.maxEntrySize!==0){if(this.#I!==0){if(!rD(this.#I))throw TypeError("maxSize must be a positive integer if specified")}if(!rD(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#m()}if(this.allowStale=!!F,this.noDeleteOnStaleGet=!!g,this.updateAgeOnGet=!!C,this.updateAgeOnHas=!!D,this.ttlResolution=rD(E)||E===0?E:1,this.ttlAutopurge=!!I,this.ttl=B||0,this.ttl){if(!rD(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#S()}if(this.#A===0&&this.ttl===0&&this.#I===0)t Line truncated
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},5873:(I,C,D)=>{let F=D(6330),Y=D(8750),J=D(5207),G=(U="",Z="",X=!1)=>{let $=[];if(U=[].concat(U),Z=[].concat(Z),!Z.length)return U;if(!U.length)return X?J.flatten(Z).map((V)=>`{${V}}`):Z;for(let V of U)if(Array.isArray(V))for(let w of V)$.push(G(w,Z,X));else for(let w of Z){if(X===!0&&typeof w==="string")w=`{${w}}`;$.push(Array.isArray(w)?G(V,w,X):V+w)}return J.flatten($)},N=(U,Z={})=>{let X=Z.rangeLimit===void 0?1000:Z.rangeLimit,$=(V,w={})=>{V.queue=[];let g=w,M=w.queue;while(g.type!=="brace"&&g.type!=="root"&&g.parent)g=g.parent,M=g.queue;if(V.invalid||V.dollar){M.push(G(M.pop(),Y(V,Z)));return}if(V.type==="brace"&&V.invalid!==!0&&V.nodes.length===2){M.push(G(M.pop(),["{}"]));return}if(V.nodes&&V.ranges>0){let m=J.reduce(V.nodes);if(J.exceedsLimit(...m,Z.step,X))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let n=F(...m,Z);if(n.length===0)n=Y(V,Z);M.push(G(M.pop(),n)),V.nodes=[];return}let k=J.encloseBrace(V),d=V.queue,t=V;while(t.type!=="brace"&&t.type!=="root"&&t.parent)t=t.parent,d=t.queue;for(let m=0;m<V.nodes.length;m++){let n=V.nodes[m];if(n.type==="comma"&&V.type==="brace"){if(m===1)d.push("");d.push("");continue}if(n.type==="close"){M.push(G(M.pop(),d,k));continue}if(n.value&&n.type!=="open"){d.push(G(d.pop(),n.value));continue}if(n.nodes)$(n,V)}return d};return J.flatten($(U))};I.exports=N},6477:(I,C,D)=>{let F=D(8750),{MAX_LENGTH:Y,CHAR_BACKSLASH:J,CHAR_BACKTICK:G,CHAR_COMMA:N,CHAR_DOT:U,CHAR_LEFT_PARENTHESES:Z,CHAR_RIGHT_PARENTHESES:X,CHAR_LEFT_CURLY_BRACE:$,CHAR_RIGHT_CURLY_BRACE:V,CHAR_LEFT_SQUARE_BRACKET:w,CHAR_RIGHT_SQUARE_BRACKET:g,CHAR_DOUBLE_QUOTE:M,CHAR_SINGLE_QUOTE:k,CHAR_NO_BREAK_SPACE:d,CHAR_ZERO_WIDTH_NOBREAK_SPACE:t}=D(8774),m=(n,QA={})=>{if(typeof n!=="string")throw TypeError("Expected a string");let x=QA||{},l=typeof x.maxLength==="number"?Math.min(Y,x.maxLength):Y;if(n.length>l)throw SyntaxError(`Input length (${n.length}), exceeds max characters (${l})`);let u={type:"root",input:n,nodes:[]},CA=[u],i=u,KA=u,HA=0,uA=n.length,cA=0,yA=0,JA,PA=()=>n[cA++],dA=(IA)=>{if(IA.type==="text"&&KA.type==="dot")KA.type="text";if(KA&&KA.type==="text"&&IA.type==="text"){KA.value+=IA.value;return}return i.nodes.push(IA),IA.parent=i,IA.prev=KA,KA=IA,IA};dA({type:"bos"});while(cA<uA){if(i=CA[CA.length-1],JA=PA(),JA===t||JA===d)continue;if(JA===J){dA({type:"text",value:(QA.keepEscaping?JA:"")+PA()});continue}if(JA===g){dA({type:"text",value:"\\"+JA});continue}if(JA===w){HA++;let IA;while(cA<uA&&(IA=PA())){if(JA+=IA,IA===w){HA++;continue}if(IA===J){JA+=PA();continue}if(IA===g){if(HA--,HA===0)break}}dA({type:"text",value:JA});continue}if(JA===Z){i=dA({type:"paren",nodes:[]}),CA.push(i),dA({type:"text",value:JA});continue}if(JA===X){if(i.type!=="paren"){dA({type:"text",value:JA});continue}i=CA.pop(),dA({type:"text",value:JA}),i=CA[CA.length-1];continue}if(JA===M||JA===k||JA===G){let IA=JA,kA;if(QA.keepQuotes!==!0)JA="";while(cA<uA&&(kA=PA())){if(kA===J){JA+=kA+PA();continue}if(kA===IA){if(QA.keepQuotes===!0)JA+=kA;break}JA+=kA}dA({type:"text",value:JA});continue}if(JA===$){yA++;let kA={type:"brace",open:!0,close:!1,dollar:KA.value&&KA.value.slice(-1)==="$"||i.dollar===!0,depth:yA,commas:0,ranges:0,nodes:[]};i=dA(kA),CA.push(i),dA({type:"open",value:JA});continue}if(JA===V){if(i.type!=="brace"){dA({type:"text",value:JA});continue}let IA="close";i=CA.pop(),i.close=!0,dA({type:IA,value:JA}),yA--,i=CA[CA.length-1];continue}if(JA===N&&yA>0){if(i.ranges>0){i.ranges=0;let IA=i.nodes.shift();i.nodes=[IA,{type:"text",value:F(i)}]}dA({type:"comma",value:JA}),i.commas++;continue}if(JA===U&&yA>0&&i.commas===0){let IA=i.nodes;if(yA===0||IA.length===0){dA({type:"text",value:JA});continue}if(KA.type==="dot"){if(i.range=[],KA.value+=JA,KA.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,KA.type="text";continue}i.ranges++,i.args=[];continue}if(KA.type==="range"){IA.pop();let kA=IA[IA.length-1];kA.value+=KA.value+JA,KA=kA,i.ranges--;continue}dA({type:"dot",value:JA});continue}dA({type:"text",value:JA})}do if(i=CA.pop(),i.type!=="root"){i.nodes.forEach((DQ)=>{if(!DQ.nodes){if(DQ.type==="open")DQ.isOpen=!0;if(DQ.type==="close")DQ.isClose=!0;if(!DQ.nodes)DQ.type="text";DQ.invalid=!0}});let IA=CA[CA.length-1],kA=IA.nodes.indexOf(i);IA.nodes.splice(kA,1,...i.nodes)}while(CA.length>0);return dA({type:"eos"}),u};I.exports=m},8750:(I,C,D)=>{let F=D(5207);I.exports=(Y,J={})=>{let G=(N,U={})=>{let Z=J.escapeInvalid&&F.isInvalidBrace(U),X=N.invalid===!0&&J.escapeInvalid===!0,$="";if(N.value){if((Z||X)&&F.isOpenOrClose(N))return"\\"+N.value;return N.value}if(N.value)return N.value;if(N.nodes)for(let V of N.nodes)$Line truncated
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*/let F=D(3837),Y=D(1861),J=(x)=>x!==null&&typeof x==="object"&&!Array.isArray(x),G=(x)=>(l)=>x===!0?Number(l):String(l),N=(x)=>typeof x==="number"||typeof x==="string"&&x!=="",U=(x)=>Number.isInteger(+x),Z=(x)=>{let l=`${x}`,u=-1;if(l[0]==="-")l=l.slice(1);if(l==="0")return!1;while(l[++u]==="0");return u>0},X=(x,l,u)=>{if(typeof x==="string"||typeof l==="string")return!0;return u.stringify===!0},$=(x,l,u)=>{if(l>0){let CA=x[0]==="-"?"-":"";if(CA)x=x.slice(1);x=CA+x.padStart(CA?l-1:l,"0")}if(u===!1)return String(x);return x},V=(x,l)=>{let u=x[0]==="-"?"-":"";if(u)x=x.slice(1),l--;while(x.length<l)x="0"+x;return u?"-"+x:x},w=(x,l,u)=>{x.negatives.sort((uA,cA)=>uA<cA?-1:uA>cA?1:0),x.positives.sort((uA,cA)=>uA<cA?-1:uA>cA?1:0);let CA=l.capture?"":"?:",i="",KA="",HA;if(x.positives.length)i=x.positives.map((uA)=>V(String(uA),u)).join("|");if(x.negatives.length)KA=`-(${CA}${x.negatives.map((uA)=>V(String(uA),u)).join("|")})`;if(i&&KA)HA=`${i}|${KA}`;else HA=i||KA;if(l.wrap)return`(${CA}${HA})`;return HA},g=(x,l,u,CA)=>{if(u)return Y(x,l,{wrap:!1,...CA});let i=String.fromCharCode(x);if(x===l)return i;let KA=String.fromCharCode(l);return`[${i}-${KA}]`},M=(x,l,u)=>{if(Array.isArray(x)){let CA=u.wrap===!0,i=u.capture?"":"?:";return CA?`(${i}${x.join("|")})`:x.join("|")}return Y(x,l,u)},k=(...x)=>RangeError("Invalid range arguments: "+F.inspect(...x)),d=(x,l,u)=>{if(u.strictRanges===!0)throw k([x,l]);return[]},t=(x,l)=>{if(l.strictRanges===!0)throw TypeError(`Expected step "${x}" to be a number`);return[]},m=(x,l,u=1,CA={})=>{let i=Number(x),KA=Number(l);if(!Number.isInteger(i)||!Number.isInteger(KA)){if(CA.strictRanges===!0)throw k([x,l]);return[]}if(i===0)i=0;if(KA===0)KA=0;let HA=i>KA,uA=String(x),cA=String(l),yA=String(u);u=Math.max(Math.abs(u),1);let JA=Z(uA)||Z(cA)||Z(yA),PA=JA?Math.max(uA.length,cA.length,yA.length):0,dA=JA===!1&&X(x,l,CA)===!1,IA=CA.transform||G(dA);if(CA.toRegex&&u===1)return g(V(x,PA),V(l,PA),!0,CA);let kA={negatives:[],positives:[]},DQ=(BA)=>kA[BA<0?"negatives":"positives"].push(Math.abs(BA)),oQ=[],jQ=0;while(HA?i>=KA:i<=KA){if(CA.toRegex===!0&&u>1)DQ(i);else oQ.push($(IA(i,jQ),PA,dA));i=HA?i-u:i+u,jQ++}if(CA.toRegex===!0)return u>1?w(kA,CA,PA):M(oQ,null,{wrap:!1,...CA});return oQ},n=(x,l,u=1,CA={})=>{if(!U(x)&&x.length>1||!U(l)&&l.length>1)return d(x,l,CA);let i=CA.transform||((dA)=>String.fromCharCode(dA)),KA=`${x}`.charCodeAt(0),HA=`${l}`.charCodeAt(0),uA=KA>HA,cA=Math.min(KA,HA),yA=Math.max(KA,HA);if(CA.toRegex&&u===1)return g(cA,yA,!1,CA);let JA=[],PA=0;while(uA?KA>=HA:KA<=HA)JA.push(i(KA,PA)),KA=uA?KA-u:KA+u,PA++;if(CA.toRegex===!0)return M(JA,null,{wrap:!1,options:CA});return JA},QA=(x,l,u,CA={})=>{if(l==null&&N(x))return[x];if(!N(x)||!N(l))return d(x,l,CA);if(typeof u==="function")return QA(x,l,1,{transform:u});if(J(u))return QA(x,l,0,u);let i={...CA};if(i.capture===!0)i.wrap=!0;if(u=u||i.step||1,!U(u)){if(u!=null&&!J(u))return t(u,i);return QA(x,l,1,u)}if(U(x)&&U(l))return m(x,l,u,i);return n(x,l,Math.max(Math.abs(u),1),i)};I.exports=QA},5680:(I)=>{/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/I.exports=function(C){if(typeof C==="number")return C-C===0;if(typeof C==="string"&&C.trim()!=="")return Number.isFinite?Number.isFinite(+C):isFinite(+C);return!1}},1917:(I,C,D)=>{var F=D(1161),Y=D(8866);function J(G,N){return function(){throw Error("Function yaml."+G+" is removed in js-yaml 4. Use yaml."+N+" instead, which is now safe by default.")}}I.exports.Type=D(6073),I.exports.Schema=D(1082),I.exports.FAILSAFE_SCHEMA=D(8562),I.exports.JSON_SCHEMA=D(1035),I.exports.CORE_SCHEMA=D(2011),I.exports.DEFAULT_SCHEMA=D(8759),I.exports.load=F.load,I.exports.loadAll=F.loadAll,I.exports.dump=Y.dump,I.exports.YAMLException=D(8179),I.exports.types={binary:D(7900),float:D(2705),map:D(6150),null:D(721),pairs:D(6860),set:D(9548),timestamp:D(9212),bool:D(4993),int:D(1615),merge:D(6104),omap:D(9046),seq:D(7283),str:D(3619)},I.exports.safeLoad=J("safeLoad","load"),I.exports.safeLoadAll=J("safeLoadAll","loadAll"),I.exports.safeDump=J("safeDump","dump")},6829:(I)=>{function C(N){return typeof N>"u"||N===null}function D(N){return typeof N==="object"&&N!==null}function F(N){if(Array.isArray(N))return N;else if(C(N))return[];return[N]}function Y(N,U){var Z,X,$,V;if(U){V=Object.keys(U);for(Z=0,X=V.length;Z<X;Z+=1)$=V[Z],N[$]=U[$]}return N}function J(N,U){var Z="",X;for(X=0;X<U;X+=1)Z+=N;return Z}function G(N){return N===0&&Number.NEGATIVE_INFINITY===1/N}I.exports.isNothing=C,I.exports.isObject=D,I.exports.toArray=F,I.exports.repeat=J,I.exports.isNegativeZero=G,I.exports.extend=Y},8866:(I,C,D)=>{var F=D(6829),Y=D(8179),J=D(8759),G=Object.prototype.toString,N=Object.prototype.hasOwnProperty,U=65279,Z=9,X=10,$=13,V=32,w=33,g=34,M=35,k=37,d=38,t=39,m=42,n=44,QA=45,x=58,l=61,u=62,CA=63,i=64,KA=91,HA=93,uA=96,cA=123,yA=124,JA=125,PA={};PA[0]="\\0",PA[7]="\\a",PA[8]="\\b",PA[9]="\\t",PA[10]="\\n",PA[11]="\\v",PA[12]="\\f",PA[13]="\\r",PA[27]="\\e",PA[34]="\\\"",PA[92]="\\\\",PA[133]="\\N",PA[160]="\\_",PA[8232]="\\L",PA[8233]="\\P";var dA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],IA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function kA(z,q){var f,v,a,r,$A,ZA,VA;if(q===null)return{};f={},v=Object.keys(q);for(a=0,r=v.length;a<r;a+=1){if($A=v[a],ZA=String(q[$A]),$A.slice(0,2)==="!!")$A="tag:yaml.org,2002:"+$A.slice(2);if(VA=z.compiledTypeMap.fallback[$A],VA&&N.call(VA.styleAliases,ZA))ZA=VA.styleAliases[ZA];f[$A]=ZA}return f}function DQ(z){var q,f,v;if(q=z.toString(16).toUpperCase(),z<=255)f="x",v=2;else if(z<=65535)f="u",v=4;else if(z<=4294967295)f="U",v=8;else throw new Y("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+f+F.repeat("0",v-q.length)+q}var oQ=1,jQ=2;function BA(z){this.schema=z.schema||J,this.indent=Math.max(1,z.indent||2),this.noArrayIndent=z.noArrayIndent||!1,this.skipInvalid=z.skipInvalid||!1,this.flowLevel=F.isNothing(z.flowLevel)?-1:z.flowLevel,this.styleMap=kA(this.schema,z.styles||null),this.sortKeys=z.sortKeys||!1,this.lineWidth=z.lineWidth||80,this.noRefs=z.noRefs||!1,this.noCompatMode=z.noCompatMode||!1,this.condenseFlow=z.condenseFlow||!1,this.quotingType=z.quotingType==='"'?jQ:oQ,this.forceQuotes=z.forceQuotes||!1,this.replacer=typeof z.replacer==="function"?z.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function HB(z,q){var f=F.repeat(" ",q),v=0,a=-1,r="",$A,ZA=z.length;while(v<ZA){if(a=z.indexOf(`
`,v),a===-1)$A=z.slice(v),v=ZA;else $A=z.slice(v,a+1),v=a+1;if($A.length&&$A!==`
`)r+=f;r+=$A}return r}function WQ(z,q){return`
`+F.repeat(" ",z.indent*q)}function NB(z,q){var f,v,a;for(f=0,v=z.implicitTypes.length;f<v;f+=1)if(a=z.implicitTypes[f],a.resolve(q))return!0;return!1}function e(z){return z===V||z===Z}function EA(z){return 32<=z&&z<=126||161<=z&&z<=55295&&z!==8232&&z!==8233||57344<=z&&z<=65533&&z!==U||65536<=z&&z<=1114111}function BQ(z){return EA(z)&&z!==U&&z!==$&&z!==X}function tA(z,q,f){var v=BQ(z),a=v&&!e(z);return(f?v:v&&z!==n&&z!==KA&&z!==HA&&z!==cA&&z!==JA)&&z!==M&&!(q===x&&!a)||BQ(q)&&!e(q)&&z===M||q===x&&a}function iB(z){return EA(z)&&z!==U&&!e(z)&&z!==QA&&z!==CA&&z!==x&&z!==n&&z!==KA&&z!==HA&&z!==cA&&z!==JA&&z!==M&&z!==d&&z!==m&&z!==w&&z!==yA&&z!==l&&z!==u&&z!==t&&z!==g&&z!==k&&z!==i&&z!==uA}function AI(z){return!e(z)&&z!==x}function qQ(z,q){var f=z.charCodeAt(q),v;if(f>=55296&&f<=56319&&q+1<z.length){if(v=z.charCodeAt(q+1),v>=56320&&v<=57343)return(f-55296)*1024+v-56320+65536}return f}function aQ(z){var q=/^\n* /;return q.test(z)}var FC=1,YE=2,jB=3,_A=4,xQ=5;function J0(z,q,f,v,a,r,$A,ZA){var VA,SA=0,hQ=null,rQ=!1,IB=!1,TR=v!==-1,qN=-1,jN=iB(qQ(z,0))&&AI(qQ(z,z.length-1));if(q||$A)for(VA=0;VA<z.length;SA>=65536?VA+=2:VA++){if(SA=qQ(z,VA),!EA(SA))return xQ;jN=jN&&tA(SA,hQ,ZA),hQ=SA}else{for(VA=0;VA<z.length;SA>=65536?VA+=2:VA++){if(SA=qQ(z,VA),SA===X){if(rQ=!0,TR)IB=IB||VA-qN-1>v&&z[qN+1]!==" ",qN=VA}else if(!EA(SA))return xQ;jN=jN&&tA(SA,hQ,ZA),hQ=SA}IB=IB||TR&&(VA-qN-1>v&&z[qN+1]!==" ")}if(!rQ&&!IB){if(jN&&!$A&&!a(z))return FC;return r===jQ?xQ:YE}if(f>9&&aQ(z))return xQ;if(!$A)return IB?_A:jB;return r===jQ?xQ:YE}function wA(z,q,f,v,a){z.dump=function(){if(q.length===0)return z.quotingType===jQ?'""':"''";if(!z.noCompatMode){if(dA.indexOf(q)!==-1||IA.test(q))return z.quotingType===jQ?'"'+q+'"':"'"+q+"'"}var r=z.indent*Math.max(1,f),$A=z.lineWidth===-1?-1:Math.max(Math.min(z.lineWidth,40),z.lineWidth-r),ZA=v||z.flowLevel>-1&&f>=z.flowLevel;function VA(SA){return NB(z,SA)}switch(J0(q,ZA,z.indent,$A,VA,z.quotingType,z.forceQuotes&&!v,a)){case FC:return q;case YE:return"'"+q.replace(/'/g,"''")+"'";case jB:return"|"+VQ(q,z.indent)+W(HB(q,r));case _A:return">"+VQ(q,z.indent)+W(HB(b(q,$A),r));case xQ:return'"'+NA(q,$A)+'"';default:throw new Y("impossible error: invalid scalar style")}}()}function VQ(z,q){var f=aQ(z)?String(q):"",v=z[z.length-1]===`
`,a=v&&(z[z.length-2]===`
`||z===`
`),r=a?"+":v?"":"-";return f+r+`
`}function W(z){return z[z.length-1]===`
`?z.slice(0,-1):z}function b(z,q){var f=/(\n+)([^\n]*)/g,v=function(){var SA=z.indexOf(`
`);return SA=SA!==-1?SA:z.length,f.lastIndex=SA,p(z.slice(0,SA),q)}(),a=z[0]===`
`||z[0]===" ",r,$A;while($A=f.exec(z)){var ZA=$A[1],VA=$A[2];r=VA[0]===" ",v+=ZA+(!a&&!r&&VA!==""?`
`:"")+p(VA,q),a=r}return v}function p(z,q){if(z===""||z[0]===" ")return z;var f=/ [^ ]/g,v,a=0,r,$A=0,ZA=0,VA="";while(v=f.exec(z)){if(ZA=v.index,ZA-a>q)r=$A>a?$A:ZA,VA+=`
`+z.slice(a,r),a=r+1;$A=ZA}if(VA+=`
`,z.length-a>q&&$A>a)VA+=z.slice(a,$A)+`
`+z.slice($A+1);else VA+=z.slice(a);return VA.slice(1)}function NA(z){var q="",f=0,v;for(var a=0;a<z.length;f>=65536?a+=2:a++)if(f=qQ(z,a),v=PA[f],!v&&EA(f)){if(q+=z[a],f>=65536)q+=z[a+1]}else q+=v||DQ(f);return q}function AA(z,q,f){var v="",a=z.tag,r,$A,ZA;for(r=0,$A=f.length;r<$A;r+=1){if(ZA=f[r],z.replacer)ZA=z.replacer.call(f,String(r),ZA);if(j(z,q,ZA,!1,!1)||typeof ZA>"u"&&j(z,q,null,!1,!1)){if(v!=="")v+=","+(!z.condenseFlow?" ":"");v+=z.dump}}z.tag=a,z.dump="["+v+"]"}function LA(z,q,f,v){var a="",r=z.tag,$A,ZA,VA;for($A=0,ZA=f.length;$A<ZA;$A+=1){if(VA=f[$A],z.replacer)VA=z.replacer.call(f,String($A),VA);if(j(z,q+1,VA,!0,!0,!1,!0)||typeof VA>"u"&&j(z,q+1,null,!0,!0,!1,!0)){if(!v||a!=="")a+=WQ(z,q);if(z.dump&&X===z.dump.charCodeAt(0))a+="-";else a+="- ";a+=z.dump}}z.tag=r,z.dump=a||"[]"}function UA(z,q,f){var v="",a=z.tag,r=Object.keys(f),$A,ZA,VA,SA,hQ;for($A=0,ZA=r.length;$A<ZA;$A+=1){if(hQ="",v!=="")hQ+=", ";if(z.condenseFlow)hQ+='"';if(VA=r[$A],SA=f[VA],z.replacer)SA=z.replacer.call(f,VA,SA);if(!j(z,q,VA,!1,!1))continue;if(z.dump.length>1024)hQ+="? ";if(hQ+=z.dump+(z.condenseFlow?'"':"")+":"+(z.condenseFlow?"":" "),!j(z,q,SA,!1,!1))continue;hQ+=z.dump,v+=hQ}z.tag=a,z.dump="{"+v+"}"}function L(z,q,f,v){var a="",r=z.tag,$A=Object.keys(f),ZA,VA,SA,hQ,rQ,IB;if(z.sortKeys===!0)$A.sort();else if(typeof z.sortKeys==="function")$A.sort(z.sortKeys);else if(z.sortKeys)throw new Y("sortKeys must be a boolean or a function");for(ZA=0,VA=$A.length;ZA<VA;ZA+=1){if(IB="",!v||a!=="")IB+=WQ(z,q);if(SA=$A[ZA],hQ=f[SA],z.replacer)hQ=z.replacer.call(f,SA,hQ);if(!j(z,q+1,SA,!0,!0,!0))continue;if(rQ=z.tag!==null&&z.tag!=="?"||z.dump&&z.dump.length>1024,rQ)if(z.dump&&X===z.dump.charCodeAt(0))IB+="?";else IB+="? ";if(IB+=z.dump,rQ)IB+=WQ(z,q);if(!j(z,q+1,hQ,!0,rQ))continue;if(z.dump&&X===z.dump.charCodeAt(0))IB+=":";else IB+=": ";IB+=z.dump,a+=IB}z.tag=r,z.dump=a||"{}"}function H(z,q,f){var v,a,r,$A,ZA,VA;a=f?z.explicitTypes:z.implicitTypes;for(r=0,$A=a.length;r<$A;r+=1)if(ZA=a[r],(ZA.instanceOf||ZA.predicate)&&(!ZA.instanceOf||typeof q==="object"&&q instanceof ZA.instanceOf)&&(!ZA.predicate||ZA.predicate(q))){if(f)if(ZA.multi&&ZA.representName)z.tag=ZA.representName(q);else z.tag=ZA.tag;else z.tag="?";if(ZA.represent){if(VA=z.styleMap[ZA.tag]||ZA.defaultStyle,G.call(ZA.represent)==="[object Function]")v=ZA.represent(q,VA);else if(N.call(ZA.represent,VA))v=ZA.represent[VA](q,VA);else throw new Y("!<"+ZA.tag+'> tag resolver accepts not "'+VA+'" style');z.dump=v}return!0}return!1}function j(z,q,f,v,a,r,$A){if(z.tag=null,z.dump=f,!H(z,f,!1))H(z,f,!0);var ZA=G.call(z.dump),VA=v,SA;if(v)v=z.flowLevel<0||z.flowLevel>q;var hQ=ZA==="[object Object]"||ZA==="[object Array]",rQ,IB;if(hQ)rQ=z.duplicates.indexOf(f),IB=rQ!==-1;if(z.tag!==null&&z.tag!=="?"||IB||z.indent!==2&&q>0)a=!1;if(IB&&z.usedDuplicates[rQ])z.dump="*ref_"+rQ;else{if(hQ&&IB&&!z.usedDuplicates[rQ])z.usedDuplicates[rQ]=!0;if(ZA==="[object Object]"){if(v&&Object.keys(z.dump).length!==0){if(L(z,q,z.dump,a),IB)z.dump="&ref_"+rQ+z.dump}else if(UA(z,q,z.dump),IB)z.dump="&ref_"+rQ+" "+z.dump}else if(ZA==="[object Array]"){if(v&&z.dump.length!==0){if(z.noArrayIndent&&!$A&&q>0)LA(z,q-1,z.dump,a);else LA(z,q,z.dump,a);if(IB)z.dump="&ref_"+rQ+z.dump}else if(AA(z,q,z.dump),IB)z.dump="&ref_"+rQ+" "+z.dump}else if(ZA==="[object String]"){if(z.tag!=="?")wA(z,z.dump,q,r,VA)}else if(ZA==="[object Undefined]")return!1;else{if(z.skipInvalid)return!1;throw new Y("unacceptable kind of an object to dump "+ZA)}if(z.tag!==null&&z.tag!=="?"){if(SA=encodeURI(z.tag[0]==="!"?z.tag.slice(1):z.tag).replace(/!/g,"%21"),z.tag[0]==="!")SA="!"+SA;else if(SA.slice(0,18)==="tag:yaml.org,2002:")SA="!!"+SA.slice(18);else SA="!<"+SA+">";z.dump=SA+" "+z.dump}}return!0}function h(z,q){var f=[],v=[],a,r;P(z,f,v);for(a=0,r=v.length;a<r;a+=1)q.duplicates.push(f[v[a]]);q.usedDuplicates=Array(r)}function P(z,q,f){var v,a,r;if(z!==null&&typeof z==="object")if(a=q.indexOf(z),a!==-1){if(f.indexOf(a)===-1)f.push(a)}else if(q.push(z),Array.isArray(z))for(a=0,r=z.length;a<r;a+=1)P(z[a],q,f);else{v=Object.keys(z);for(a=0,r=v.length;a<r;a+=1)P(z[v[a]],q,f)}}function S(z,q){q=q||{};var f=new BA(q);if(!f.noRefs)h(z,f);var v=z;if(f.replacer)v=f.replacer.call({"":v},"",v);if(j(f,0,v,!0,!0))return f.dump+`
`;return""}I.exports.dump=S},8179:(I)=>{function C(F,Y){var J="",G=F.reason||"(unknown reason)";if(!F.mark)return G;if(F.mark.name)J+='in "'+F.mark.name+'" ';if(J+="("+(F.mark.line+1)+":"+(F.mark.column+1)+")",!Y&&F.mark.snippet)J+=`
`+F.mark.snippet;return G+" "+J}function D(F,Y){if(Error.call(this),this.name="YAMLException",this.reason=F,this.mark=Y,this.message=C(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D.prototype.toString=function(Y){return this.name+": "+C(this,Y)},I.exports=D},1161:(I,C,D)=>{var F=D(6829),Y=D(8179),J=D(6975),G=D(8759),N=Object.prototype.hasOwnProperty,U=1,Z=2,X=3,$=4,V=1,w=2,g=3,M=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,k=/[\x85\u2028\u2029]/,d=/[,\[\]\{\}]/,t=/^(?:!|!!|![a-z\-]+!)$/i,m=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function n(W){return Object.prototype.toString.call(W)}function QA(W){return W===10||W===13}function x(W){return W===9||W===32}function l(W){return W===9||W===32||W===10||W===13}function u(W){return W===44||W===91||W===93||W===123||W===125}function CA(W){var b;if(48<=W&&W<=57)return W-48;if(b=W|32,97<=b&&b<=102)return b-97+10;return-1}function i(W){if(W===120)return 2;if(W===117)return 4;if(W===85)return 8;return 0}function KA(W){if(48<=W&&W<=57)return W-48;return-1}function HA(W){return W===48?"\x00":W===97?"\x07":W===98?"\b":W===116?"\t":W===9?"\t":W===110?`
`:W===118?"\v":W===102?"\f":W===114?"\r":W===101?"\x1B":W===32?" ":W===34?'"':W===47?"/":W===92?"\\":W===78?"…":W===95?" ":W===76?"\u2028":W===80?"\u2029":""}function uA(W){if(W<=65535)return String.fromCharCode(W);return String.fromCharCode((W-65536>>10)+55296,(W-65536&1023)+56320)}var cA=Array(256),yA=Array(256);for(var JA=0;JA<256;JA++)cA[JA]=HA(JA)?1:0,yA[JA]=HA(JA);function PA(W,b){this.input=W,this.filename=b.filename||null,this.schema=b.schema||G,this.onWarning=b.onWarning||null,this.legacy=b.legacy||!1,this.json=b.json||!1,this.listener=b.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=W.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function dA(W,b){var p={name:W.filename,buffer:W.input.slice(0,-1),position:W.position,line:W.line,column:W.position-W.lineStart};return p.snippet=J(p),new Y(b,p)}function IA(W,b){throw dA(W,b)}function kA(W,b){if(W.onWarning)W.onWarning.call(null,dA(W,b))}var DQ={YAML:function(b,p,NA){var AA,LA,UA;if(b.version!==null)IA(b,"duplication of %YAML directive");if(NA.length!==1)IA(b,"YAML directive accepts exactly one argument");if(AA=/^([0-9]+)\.([0-9]+)$/.exec(NA[0]),AA===null)IA(b,"ill-formed argument of the YAML directive");if(LA=parseInt(AA[1],10),UA=parseInt(AA[2],10),LA!==1)IA(b,"unacceptable YAML version of the document");if(b.version=NA[0],b.checkLineBreaks=UA<2,UA!==1&&UA!==2)kA(b,"unsupported YAML version of the document")},TAG:function(b,p,NA){var AA,LA;if(NA.length!==2)IA(b,"TAG directive accepts exactly two arguments");if(AA=NA[0],LA=NA[1],!t.test(AA))IA(b,"ill-formed tag handle (first argument) of the TAG directive");if(N.call(b.tagMap,AA))IA(b,'there is a previously declared suffix for "'+AA+'" tag handle');if(!m.test(LA))IA(b,"ill-formed tag prefix (second argument) of the TAG directive");try{LA=decodeURIComponent(LA)}catch(UA){IA(b,"tag prefix is malformed: "+LA)}b.tagMap[AA]=LA}};function oQ(W,b,p,NA){var AA,LA,UA,L;if(b<p){if(L=W.input.slice(b,p),NA){for(AA=0,LA=L.length;AA<LA;AA+=1)if(UA=L.charCodeAt(AA),!(UA===9||32<=UA&&UA<=1114111))IA(W,"expected valid JSON character")}else if(M.test(L))IA(W,"the stream contains non-printable characters");W.result+=L}}function jQ(W,b,p,NA){var AA,LA,UA,L;if(!F.isObject(p))IA(W,"cannot merge mappings; the provided source object is unacceptable");AA=Object.keys(p);for(UA=0,L=AA.length;UA<L;UA+=1)if(LA=AA[UA],!N.call(b,LA))b[LA]=p[LA],NA[LA]=!0}function BA(W,b,p,NA,AA,LA,UA,L,H){var j,h;if(Array.isArray(AA)){AA=Array.prototype.slice.call(AA);for(j=0,h=AA.length;j<h;j+=1){if(Array.isArray(AA[j]))IA(W,"nested arrays are not supported inside keys");if(typeof AA==="object"&&n(AA[j])==="[object Object]")AA[j]="[object Object]"}}if(typeof AA==="object"&&n(AA)==="[object Object]")AA="[object Object]";if(AA=String(AA),b===null)b={};if(NA==="tag:yaml.org,2002:merge")if(Array.isArray(LA))for(j=0,h=LA.length;j<h;j+=1)jQ(W,b,LA[j],p);else jQ(W,b,LA,p);else{if(!W.json&&!N.call(p,AA)&&N.call(b,AA))W.line=UA||W.line,W.lineStart=L||W.lineStart,W.position=H||W.position,IA(W,"duplicated mapping key");if(AA==="__proto__")Object.defineProperty(b,AA,{configurable:!0,enumerable:!0,writable:!0,value:LA});else b[AA]=LA;delete p[AA]}return b}function HB(W){var b=W.input.charCodeAt(W.position);if(b===10)W.position++;else if(b===13){if(W.position++,W.input.charCodeAt(W.position)===10)W.position++}else IA(W,"a line break is expected");W.line+=1,W.lineStart=W.position,W.firstTabInLine=-1}function WQ(W,b,p){var NA=0,AA=W.input.charCodeAt(W.position);while(AA!==0){while(x(AA)){if(AA===9&&W.firstTabInLine===-1)W.firstTabInLine=W.position;AA=W.input.charCodeAt(++W.position)}if(b&&AA===35)do AA=W.input.charCodeAt(++W.position);while(AA!==10&&AA!==13&&AA!==0);if(QA(AA)){HB(W),AA=W.input.charCodeAt(W.position),NA++,W.lineIndent=0;while(AA===32)W.lineIndent++,AA=W.input.charCodeAt(++W.position)}else break}if(p!==-1&&NA!==0&&W.lineIndent<p)kA(W,"deficient indentation");return NA}function NB(W){var b=W.position,p;if(p=W.input.charCodeAt(b),(p===45||p===46)&&p===W.input.charCodeAt(b+1)&&p===W.input.charCodeAt(b+2)){if(b+=3,p=W.input.charCodeAt(b),p===0||l(p))return!0}return!1}function e(W,b){if(b===1)W.result+=" ";else if(b>1)W.result+=F.repeat(`
`,b-1)}function EA(W,b,p){var NA,AA,LA,UA,L,H,j,h,P=W.kind,S=W.result,z;if(z=W.input.charCodeAt(W.position),l(z)||u(z)||z===35||z===38||z===42||z===33||z===124||z===62||z===39||z===34||z===37||z===64||z===96)return!1;if(z===63||z===45){if(AA=W.input.charCodeAt(W.position+1),l(AA)||p&&u(AA))return!1}W.kind="scalar",W.result="",LA=UA=W.position,L=!1;while(z!==0){if(z===58){if(AA=W.input.charCodeAt(W.position+1),l(AA)||p&&u(AA))break}else if(z===35){if(NA=W.input.charCodeAt(W.position-1),l(NA))break}else if(W.position===W.lineStart&&NB(W)||p&&u(z))break;else if(QA(z))if(H=W.line,j=W.lineStart,h=W.lineIndent,WQ(W,!1,-1),W.lineIndent>=b){L=!0,z=W.input.charCodeAt(W.position);continue}else{W.position=UA,W.line=H,W.lineStart=j,W.lineIndent=h;break}if(L)oQ(W,LA,UA,!1),e(W,W.line-H),LA=UA=W.position,L=!1;if(!x(z))UA=W.position+1;z=W.input.charCodeAt(++W.position)}if(oQ(W,LA,UA,!1),W.result)return!0;return W.kind=P,W.result=S,!1}function BQ(W,b){var p,NA,AA;if(p=W.input.charCodeAt(W.position),p!==39)return!1;W.kind="scalar",W.result="",W.position++,NA=AA=W.position;while((p=W.input.charCodeAt(W.position))!==0)if(p===39)if(oQ(W,NA,W.position,!0),p=W.input.charCodeAt(++W.position),p===39)NA=W.position,W.position++,AA=W.position;else return!0;else if(QA(p))oQ(W,NA,AA,!0),e(W,WQ(W,!1,b)),NA=AA=W.position;else if(W.position===W.lineStart&&NB(W))IA(W,"unexpected end of the document within a single quoted scalar");else W.position++,AA=W.position;IA(W,"unexpected end of the stream within a single quoted scalar")}function tA(W,b){var p,NA,AA,LA,UA,L;if(L=W.input.charCodeAt(W.position),L!==34)return!1;W.kind="scalar",W.result="",W.position++,p=NA=W.position;while((L=W.input.charCodeAt(W.position))!==0)if(L===34)return oQ(W,p,W.position,!0),W.position++,!0;else if(L===92){if(oQ(W,p,W.position,!0),L=W.input.charCodeAt(++W.position),QA(L))WQ(W,!1,b);else if(L<256&&cA[L])W.result+=yA[L],W.position++;else if((UA=i(L))>0){AA=UA,LA=0;for(;AA>0;AA--)if(L=W.input.charCodeAt(++W.position),(UA=CA(L))>=0)LA=(LA<<4)+UA;else IA(W,"expected hexadecimal character");W.result+=uA(LA),W.position++}else IA(W,"unknown escape sequence");p=NA=W.position}else if(QA(L))oQ(W,p,NA,!0),e(W,WQ(W,!1,b)),p=NA=W.position;else if(W.position===W.lineStart&&NB(W))IA(W,"unexpected end of the document within a double quoted scalar");else W.position++,NA=W.position;IA(W,"unexpected end of the stream within a double quoted scalar")}function iB(W,b){var p=!0,NA,AA,LA,UA=W.tag,L,H=W.anchor,j,h,P,S,z,q=Object.create(null),f,v,a,r;if(r=W.input.charCodeAt(W.position),r===91)h=93,z=!1,L=[];else if(r===123)h=125,z=!0,L={};else return!1;if(W.anchor!==null)W.anchorMap[W.anchor]=L;r=W.input.charCodeAt(++W.position);while(r!==0){if(WQ(W,!0,b),r=W.input.charCodeAt(W.position),r===h)return W.position++,W.tag=UA,W.anchor=H,W.kind=z?"mapping":"sequence",W.result=L,!0;else if(!p)IA(W,"missed comma between flow collection entries");else if(r===44)IA(W,"expected the node content, but found ','");if(v=f=a=null,P=S=!1,r===63){if(j=W.input.charCodeAt(W.position+1),l(j))P=S=!0,W.position++,WQ(W,!0,b)}if(NA=W.line,AA=W.lineStart,LA=W.position,_A(W,b,U,!1,!0),v=W.tag,f=W.result,WQ(W,!0,b),r=W.input.charCodeAt(W.position),(S||W.line===NA)&&r===58)P=!0,r=W.input.charCodeAt(++W.position),WQ(W,!0,b),_A(W,b,U,!1,!0),a=W.result;if(z)BA(W,L,q,v,f,a,NA,AA,LA);else if(P)L.push(BA(W,null,q,v,f,a,NA,AA,LA));else L.push(f);if(WQ(W,!0,b),r=W.input.charCodeAt(W.position),r===44)p=!0,r=W.input.charCodeAt(++W.position);else p=!1}IA(W,"unexpected end of the stream within a flow collection")}function AI(W,b){var p,NA,AA=V,LA=!1,UA=!1,L=b,H=0,j=!1,h,P;if(P=W.input.charCodeAt(W.position),P===124)NA=!1;else if(P===62)NA=!0;else return!1;W.kind="scalar",W.result="";while(P!==0)if(P=W.input.charCodeAt(++W.position),P===43||P===45)if(V===AA)AA=P===43?g:w;else IA(W,"repeat of a chomping mode identifier");else if((h=KA(P))>=0)if(h===0)IA(W,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!UA)L=b+h-1,UA=!0;else IA(W,"repeat of an indentation width identifier");else break;if(x(P)){do P=W.input.charCodeAt(++W.position);while(x(P));if(P===35)do P=W.input.charCodeAt(++W.position);while(!QA(P)&&P!==0)}while(P!==0){HB(W),W.lineIndent=0,P=W.input.charCodeAt(W.position);while((!UA||W.lineIndent<L)&&P===32)W.lineIndent++,P=W.input.charCodeAt(++W.position);if(!UA&&W.lineIndent>L)L=W.lineIndent;if(QA(P)){H++;continue}if(W.lineIndent<L){if(AA===g)W.result+=F.repeat(`
`,LA?1+H:H);else if(AA===V){if(LA)W.result+=`
`}break}if(NA)if(x(P))j=!0,W.result+=F.repeat(`
`,LA?1+H:H);else if(j)j=!1,W.result+=F.repeat(`
`,H+1);else if(H===0){if(LA)W.result+=" "}else W.result+=F.repeat(`
`,H);else W.result+=F.repeat(`
`,LA?1+H:H);LA=!0,UA=!0,H=0,p=W.position;while(!QA(P)&&P!==0)P=W.input.charCodeAt(++W.position);oQ(W,p,W.position,!1)}return!0}function qQ(W,b){var p,NA=W.tag,AA=W.anchor,LA=[],UA,L=!1,H;if(W.firstTabInLine!==-1)return!1;if(W.anchor!==null)W.anchorMap[W.anchor]=LA;H=W.input.charCodeAt(W.position);while(H!==0){if(W.firstTabInLine!==-1)W.position=W.firstTabInLine,IA(W,"tab characters must not be used in indentation");if(H!==45)break;if(UA=W.input.charCodeAt(W.position+1),!l(UA))break;if(L=!0,W.position++,WQ(W,!0,-1)){if(W.lineIndent<=b){LA.push(null),H=W.input.charCodeAt(W.position);continue}}if(p=W.line,_A(W,b,X,!1,!0),LA.push(W.result),WQ(W,!0,-1),H=W.input.charCodeAt(W.position),(W.line===p||W.lineIndent>b)&&H!==0)IA(W,"bad indentation of a sequence entry");else if(W.lineIndent<b)break}if(L)return W.tag=NA,W.anchor=AA,W.kind="sequence",W.result=LA,!0;return!1}function aQ(W,b,p){var NA,AA,LA,UA,L,H,j=W.tag,h=W.anchor,P={},S=Object.create(null),z=null,q=null,f=null,v=!1,a=!1,r;if(W.firstTabInLine!==-1)return!1;if(W.anchor!==null)W.anchorMap[W.anchor]=P;r=W.input.charCodeAt(W.position);while(r!==0){if(!v&&W.firstTabInLine!==-1)W.position=W.firstTabInLine,IA(W,"tab characters must not be used in indentation");if(NA=W.input.charCodeAt(W.position+1),LA=W.line,(r===63||r===58)&&l(NA)){if(r===63){if(v)BA(W,P,S,z,q,null,UA,L,H),z=q=f=null;a=!0,v=!0,AA=!0}else if(v)v=!1,AA=!0;else IA(W,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");W.position+=1,r=NA}else{if(UA=W.line,L=W.lineStart,H=W.position,!_A(W,p,Z,!1,!0))break;if(W.line===LA){r=W.input.charCodeAt(W.position);while(x(r))r=W.input.charCodeAt(++W.position);if(r===58){if(r=W.input.charCodeAt(++W.position),!l(r))IA(W,"a whitespace character is expected after the key-value separator within a block mapping");if(v)BA(W,P,S,z,q,null,UA,L,H),z=q=f=null;a=!0,v=!1,AA=!1,z=W.tag,q=W.result}else if(a)IA(W,"can not read an implicit mapping pair; a colon is missed");else return W.tag=j,W.anchor=h,!0}else if(a)IA(W,"can not read a block mapping entry; a multiline key may not be an implicit key");else return W.tag=j,W.anchor=h,!0}if(W.line===LA||W.lineIndent>b){if(v)UA=W.line,L=W.lineStart,H=W.position;if(_A(W,b,$,!0,AA))if(v)q=W.result;else f=W.result;if(!v)BA(W,P,S,z,q,f,UA,L,H),z=q=f=null;WQ(W,!0,-1),r=W.input.charCodeAt(W.position)}if((W.line===LA||W.lineIndent>b)&&r!==0)IA(W,"bad indentation of a mapping entry");else if(W.lineIndent<b)break}if(v)BA(W,P,S,z,q,null,UA,L,H);if(a)W.tag=j,W.anchor=h,W.kind="mapping",W.result=P;return a}function FC(W){var b,p=!1,NA=!1,AA,LA,UA;if(UA=W.input.charCodeAt(W.position),UA!==33)return!1;if(W.tag!==null)IA(W,"duplication of a tag property");if(UA=W.input.charCodeAt(++W.position),UA===60)p=!0,UA=W.input.charCodeAt(++W.position);else if(UA===33)NA=!0,AA="!!",UA=W.input.charCodeAt(++W.position);else AA="!";if(b=W.position,p){do UA=W.input.charCodeAt(++W.position);while(UA!==0&&UA!==62);if(W.position<W.length)LA=W.input.slice(b,W.position),UA=W.input.charCodeAt(++W.position);else IA(W,"unexpected end of the stream within a verbatim tag")}else{while(UA!==0&&!l(UA)){if(UA===33)if(!NA){if(AA=W.input.slice(b-1,W.position+1),!t.test(AA))IA(W,"named tag handle cannot contain such characters");NA=!0,b=W.position+1}else IA(W,"tag suffix cannot contain exclamation marks");UA=W.input.charCodeAt(++W.position)}if(LA=W.input.slice(b,W.position),d.test(LA))IA(W,"tag suffix cannot contain flow indicator characters")}if(LA&&!m.test(LA))IA(W,"tag name cannot contain such characters: "+LA);try{LA=decodeURIComponent(LA)}catch(L){IA(W,"tag name is malformed: "+LA)}if(p)W.tag=LA;else if(N.call(W.tagMap,AA))W.tag=W.tagMap[AA]+LA;else if(AA==="!")W.tag="!"+LA;else if(AA==="!!")W.tag="tag:yaml.org,2002:"+LA;else IA(W,'undeclared tag handle "'+AA+'"');return!0}function YE(W){var b,p;if(p=W.input.charCodeAt(W.position),p!==38)return!1;if(W.anchor!==null)IA(W,"duplication of an anchor property");p=W.input.charCodeAt(++W.position),b=W.position;while(p!==0&&!l(p)&&!u(p))p=W.input.charCodeAt(++W.position);if(W.position===b)IA(W,"name of an anchor node must contain at least one character");return W.anchor=W.input.slice(b,W.position),!0}function jB(W){var b,p,NA;if(NA=W.input.charCodeAt(W.position),NA!==42)return!1;NA=W.input.charCodeAt(++W.position),b=W.position;while(NA!==0&&!l(NA)&&!u(NA))NA=W.input.charCodeAt(++W.position);if(W.position===b)IA(W,"name of an alias node must contain at least one character");if(p=W.input.slice(b,W.position),!N.call(W.anchorMap,p))IA(W,'unidentified alias "'+p+'"');return W.result=W.anchorMap[p],WQ(W,!0,-1),!0}function _A(W,b,p,NA,AA){var LA,UA,L,H=1,j=!1,h=!1,P,S,z,q,f,v;if(W.listener!==null)W.listener("open",W);if(W.tag=null,W.anchor=null,W.kind=null,W.result=null,LA=UA=L=$===p||X===p,NA){if(WQ(W,!0,-1)){if(j=!0,W.lineIndent>b)H=1;else if(W.lineIndent===b)H=0;else if(W.lineIndent<b)H=-1}}if(H===1)while(FC(W)||YE(W))if(WQ(W,!0,-1)){if(j=!0,L=LA,W.lineIndent>b)H=1;else if(W.lineInden Line truncated
`;if(W.charCodeAt(0)===65279)W=W.slice(1)}var p=new PA(W,b),NA=W.indexOf("\x00");if(NA!==-1)p.position=NA,IA(p,"null byte is not allowed in input");p.input+="\x00";while(p.input.charCodeAt(p.position)===32)p.lineIndent+=1,p.position+=1;while(p.position<p.length-1)xQ(p);return p.documents}function wA(W,b,p){if(b!==null&&typeof b==="object"&&typeof p>"u")p=b,b=null;var NA=J0(W,p);if(typeof b!=="function")return NA;for(var AA=0,LA=NA.length;AA<LA;AA+=1)b(NA[AA])}function VQ(W,b){var p=J0(W,b);if(p.length===0)return;else if(p.length===1)return p[0];throw new Y("expected a single document in the stream, but found more")}I.exports.loadAll=wA,I.exports.load=VQ},1082:(I,C,D)=>{var F=D(8179),Y=D(6073);function J(U,Z){var X=[];return U[Z].forEach(function($){var V=X.length;X.forEach(function(w,g){if(w.tag===$.tag&&w.kind===$.kind&&w.multi===$.multi)V=g}),X[V]=$}),X}function G(){var U={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},Z,X;function $(V){if(V.multi)U.multi[V.kind].push(V),U.multi.fallback.push(V);else U[V.kind][V.tag]=U.fallback[V.tag]=V}for(Z=0,X=arguments.length;Z<X;Z+=1)arguments[Z].forEach($);return U}function N(U){return this.extend(U)}N.prototype.extend=function(Z){var X=[],$=[];if(Z instanceof Y)$.push(Z);else if(Array.isArray(Z))$=$.concat(Z);else if(Z&&(Array.isArray(Z.implicit)||Array.isArray(Z.explicit))){if(Z.implicit)X=X.concat(Z.implicit);if(Z.explicit)$=$.concat(Z.explicit)}else throw new F("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");X.forEach(function(w){if(!(w instanceof Y))throw new F("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(w.loadKind&&w.loadKind!=="scalar")throw new F("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(w.multi)throw new F("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),$.forEach(function(w){if(!(w instanceof Y))throw new F("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var V=Object.create(N.prototype);return V.implicit=(this.implicit||[]).concat(X),V.explicit=(this.explicit||[]).concat($),V.compiledImplicit=J(V,"implicit"),V.compiledExplicit=J(V,"explicit"),V.compiledTypeMap=G(V.compiledImplicit,V.compiledExplicit),V},I.exports=N},2011:(I,C,D)=>{I.exports=D(1035)},8759:(I,C,D)=>{I.exports=D(2011).extend({implicit:[D(9212),D(6104)],explicit:[D(7900),D(9046),D(6860),D(9548)]})},8562:(I,C,D)=>{var F=D(1082);I.exports=new F({explicit:[D(3619),D(7283),D(6150)]})},1035:(I,C,D)=>{I.exports=D(8562).extend({implicit:[D(721),D(4993),D(1615),D(2705)]})},6975:(I,C,D)=>{var F=D(6829);function Y(N,U,Z,X,$){var V="",w="",g=Math.floor($/2)-1;if(X-U>g)V=" ... ",U=X-g+V.length;if(Z-X>g)w=" ...",Z=X+g-w.length;return{str:V+N.slice(U,Z).replace(/\t/g,"→")+w,pos:X-U+V.length}}function J(N,U){return F.repeat(" ",U-N.length)+N}function G(N,U){if(U=Object.create(U||null),!N.buffer)return null;if(!U.maxLength)U.maxLength=79;if(typeof U.indent!=="number")U.indent=1;if(typeof U.linesBefore!=="number")U.linesBefore=3;if(typeof U.linesAfter!=="number")U.linesAfter=2;var Z=/\r?\n|\r|\0/g,X=[0],$=[],V,w=-1;while(V=Z.exec(N.buffer))if($.push(V.index),X.push(V.index+V[0].length),N.position<=V.index&&w<0)w=X.length-2;if(w<0)w=X.length-1;var g="",M,k,d=Math.min(N.line+U.linesAfter,$.length).toString().length,t=U.maxLength-(U.indent+d+3);for(M=1;M<=U.linesBefore;M++){if(w-M<0)break;k=Y(N.buffer,X[w-M],$[w-M],N.position-(X[w]-X[w-M]),t),g=F.repeat(" ",U.indent)+J((N.line-M+1).toString(),d)+" | "+k.str+`
`+g}k=Y(N.buffer,X[w],$[w],N.position,t),g+=F.repeat(" ",U.indent)+J((N.line+1).toString(),d)+" | "+k.str+`
`,g+=F.repeat("-",U.indent+d+3+k.pos)+`^
`;for(M=1;M<=U.linesAfter;M++){if(w+M>=$.length)break;k=Y(N.buffer,X[w+M],$[w+M],N.position-(X[w]-X[w+M]),t),g+=F.repeat(" ",U.indent)+J((N.line+M+1).toString(),d)+" | "+k.str+`
`}return g.replace(/\n$/,"")}I.exports=G},6073:(I,C,D)=>{var F=D(8179),Y=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],J=["scalar","sequence","mapping"];function G(U){var Z={};if(U!==null)Object.keys(U).forEach(function(X){U[X].forEach(function($){Z[String($)]=X})});return Z}function N(U,Z){if(Z=Z||{},Object.keys(Z).forEach(function(X){if(Y.indexOf(X)===-1)throw new F('Unknown option "'+X+'" is met in definition of "'+U+'" YAML type.')}),this.options=Z,this.tag=U,this.kind=Z.kind||null,this.resolve=Z.resolve||function(){return!0},this.construct=Z.construct||function(X){return X},this.instanceOf=Z.instanceOf||null,this.predicate=Z.predicate||null,this.represent=Z.represent||null,this.representName=Z.representName||null,this.defaultStyle=Z.defaultStyle||null,this.multi=Z.multi||!1,this.styleAliases=G(Z.styleAliases||null),J.indexOf(this.kind)===-1)throw new F('Unknown kind "'+this.kind+'" is specified for "'+U+'" YAML type.')}I.exports=N},7900:(I,C,D)=>{var F=D(6073),Y=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function J(Z){if(Z===null)return!1;var X,$,V=0,w=Z.length,g=Y;for($=0;$<w;$++){if(X=g.indexOf(Z.charAt($)),X>64)continue;if(X<0)return!1;V+=6}return V%8===0}function G(Z){var X,$,V=Z.replace(/[\r\n=]/g,""),w=V.length,g=Y,M=0,k=[];for(X=0;X<w;X++){if(X%4===0&&X)k.push(M>>16&255),k.push(M>>8&255),k.push(M&255);M=M<<6|g.indexOf(V.charAt(X))}if($=w%4*6,$===0)k.push(M>>16&255),k.push(M>>8&255),k.push(M&255);else if($===18)k.push(M>>10&255),k.push(M>>2&255);else if($===12)k.push(M>>4&255);return new Uint8Array(k)}function N(Z){var X="",$=0,V,w,g=Z.length,M=Y;for(V=0;V<g;V++){if(V%3===0&&V)X+=M[$>>18&63],X+=M[$>>12&63],X+=M[$>>6&63],X+=M[$&63];$=($<<8)+Z[V]}if(w=g%3,w===0)X+=M[$>>18&63],X+=M[$>>12&63],X+=M[$>>6&63],X+=M[$&63];else if(w===2)X+=M[$>>10&63],X+=M[$>>4&63],X+=M[$<<2&63],X+=M[64];else if(w===1)X+=M[$>>2&63],X+=M[$<<4&63],X+=M[64],X+=M[64];return X}function U(Z){return Object.prototype.toString.call(Z)==="[object Uint8Array]"}I.exports=new F("tag:yaml.org,2002:binary",{kind:"scalar",resolve:J,construct:G,predicate:U,represent:N})},4993:(I,C,D)=>{var F=D(6073);function Y(N){if(N===null)return!1;var U=N.length;return U===4&&(N==="true"||N==="True"||N==="TRUE")||U===5&&(N==="false"||N==="False"||N==="FALSE")}function J(N){return N==="true"||N==="True"||N==="TRUE"}function G(N){return Object.prototype.toString.call(N)==="[object Boolean]"}I.exports=new F("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Y,construct:J,predicate:G,represent:{lowercase:function(N){return N?"true":"false"},uppercase:function(N){return N?"TRUE":"FALSE"},camelcase:function(N){return N?"True":"False"}},defaultStyle:"lowercase"})},2705:(I,C,D)=>{var F=D(6829),Y=D(6073),J=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function G($){if($===null)return!1;if(!J.test($)||$[$.length-1]==="_")return!1;return!0}function N($){var V,w;if(V=$.replace(/_/g,"").toLowerCase(),w=V[0]==="-"?-1:1,"+-".indexOf(V[0])>=0)V=V.slice(1);if(V===".inf")return w===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(V===".nan")return NaN;return w*parseFloat(V,10)}var U=/^[-+]?[0-9]+e/;function Z($,V){var w;if(isNaN($))switch(V){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(V){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(V){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(F.isNegativeZero($))return"-0.0";return w=$.toString(10),U.test(w)?w.replace("e",".e"):w}function X($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||F.isNegativeZero($))}I.exports=new Y("tag:yaml.org,2002:float",{kind:"scalar",resolve:G,construct:N,predicate:X,represent:Z,defaultStyle:"lowercase"})},1615:(I,C,D)=>{var F=D(6829),Y=D(6073);function J($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function G($){return 48<=$&&$<=55}function N($){return 48<=$&&$<=57}function U($){if($===null)return!1;var V=$.length,w=0,g=!1,M;if(!V)return!1;if(M=$[w],M==="-"||M==="+")M=$[++w];if(M==="0"){if(w+1===V)return!0;if(M=$[++w],M==="b"){w++;for(;w<V;w++){if(M=$[w],M==="_")continue;if(M!=="0"&&M!=="1")return!1;g=!0}return g&&M!=="_"}if(M==="x"){w++;for(;w<V;w++){if(M=$[w],M==="_")continue;if(!J($.charCodeAt(w)))return!1;g=!0}return g&&M!=="_"}if(M==="o"){w++;for(;w<V;w++){if(M=$[w],M==="_")continue;if(!G($.charCodeAt(w)))return!1;g=!0}return g&&M!=="_"}}if(M==="_")return!1;for(;w<V;w++){if(M=$[w],M==="_")continue;if(!N($.charCodeAt(w)))return!1;g=!0}if(!g||M==="_")return!1;return!0}function Z($){var V=$,w=1,g;if(V.indexOf("_")!==-1)V=V.replace(/_/g,"");if(g=V[0],g==="-"||g==="+"){if(g==="-")w=-1;V=V.slice(1),g=V[0]}if(V==="0")return 0;if(g==="0"){if(V[1]==="b")return w*parseInt(V.slice(2),2);if(V[1]==="x")return w*parseInt(V.slice(2),16);if(V[1]==="o")return w*parseInt(V.slice(2),8)}return w*parseInt(V,10)}function X($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!F.isNegativeZero($))}I.exports=new Y("tag:yaml.org,2002:int",{kind:"scalar",resolve:U,construct:Z,predicate:X,represent:{binary:function($){return $>=0?"0b"+$.toString(2):"-0b"+$.toString(2).slice(1)},octal:function($){return $>=0?"0o"+$.toString(8):"-0o"+$.toString(8).slice(1)},decimal:function($){return $.toString(10)},hexadecimal:function($){return $>=0?"0x"+$.toString(16).toUpperCase():"-0x"+$.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(I,C,D)=>{var F=D(6073);I.exports=new F("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Y){return Y!==null?Y:{}}})},6104:(I,C,D)=>{var F=D(6073);function Y(J){return J==="<<"||J===null}I.exports=new F("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Y})},721:(I,C,D)=>{var F=D(6073);function Y(N){if(N= Line truncated
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*/let F=D(5680),Y=(m,n,QA)=>{if(F(m)===!1)throw TypeError("toRegexRange: expected the first argument to be a number");if(n===void 0||m===n)return String(m);if(F(n)===!1)throw TypeError("toRegexRange: expected the second argument to be a number.");let x={relaxZeros:!0,...QA};if(typeof x.strictZeros==="boolean")x.relaxZeros=x.strictZeros===!1;let l=String(x.relaxZeros),u=String(x.shorthand),CA=String(x.capture),i=String(x.wrap),KA=m+":"+n+"="+l+u+CA+i;if(Y.cache.hasOwnProperty(KA))return Y.cache[KA].result;let HA=Math.min(m,n),uA=Math.max(m,n);if(Math.abs(HA-uA)===1){let dA=m+"|"+n;if(x.capture)return`(${dA})`;if(x.wrap===!1)return dA;return`(?:${dA})`}let cA=d(m)||d(n),yA={min:m,max:n,a:HA,b:uA},JA=[],PA=[];if(cA)yA.isPadded=cA,yA.maxLen=String(yA.max).length;if(HA<0){let dA=uA<0?Math.abs(uA):1;PA=U(dA,Math.abs(HA),yA,x),HA=yA.a=0}if(uA>=0)JA=U(HA,uA,yA,x);if(yA.negatives=PA,yA.positives=JA,yA.result=J(PA,JA,x),x.capture===!0)yA.result=`(${yA.result})`;else if(x.wrap!==!1&&JA.length+PA.length>1)yA.result=`(?:${yA.result})`;return Y.cache[KA]=yA,yA.result};function J(m,n,QA){let x=Z(m,n,"-",!1,QA)||[],l=Z(n,m,"",!1,QA)||[],u=Z(m,n,"-?",!0,QA)||[];return x.concat(u).concat(l).join("|")}function G(m,n){let QA=1,x=1,l=w(m,QA),u=new Set([n]);while(m<=l&&l<=n)u.add(l),QA+=1,l=w(m,QA);l=g(n+1,x)-1;while(m<l&&l<=n)u.add(l),x+=1,l=g(n+1,x)-1;return u=[...u],u.sort($),u}function N(m,n,QA){if(m===n)return{pattern:m,count:[],digits:0};let x=X(m,n),l=x.length,u="",CA=0;for(let i=0;i<l;i++){let[KA,HA]=x[i];if(KA===HA)u+=KA;else if(KA!=="0"||HA!=="9")u+=k(KA,HA,QA);else CA++}if(CA)u+=QA.shorthand===!0?"\\d":"[0-9]";return{pattern:u,count:[CA],digits:l}}function U(m,n,QA,x){let l=G(m,n),u=[],CA=m,i;for(let KA=0;KA<l.length;KA++){let HA=l[KA],uA=N(String(CA),String(HA),x),cA="";if(!QA.isPadded&&i&&i.pattern===uA.pattern){if(i.count.length>1)i.count.pop();i.count.push(uA.count[0]),i.string=i.pattern+M(i.count),CA=HA+1;continue}if(QA.isPadded)cA=t(HA,QA,x);uA.string=cA+uA.pattern+M(uA.count),u.push(uA),CA=HA+1,i=uA}return u}function Z(m,n,QA,x,l){let u=[];for(let CA of m){let{string:i}=CA;if(!x&&!V(n,"string",i))u.push(QA+i);if(x&&V(n,"string",i))u.push(QA+i)}return u}function X(m,n){let QA=[];for(let x=0;x<m.length;x++)QA.push([m[x],n[x]]);return QA}function $(m,n){return m>n?1:n>m?-1:0}function V(m,n,QA){return m.some((x)=>x[n]===QA)}function w(m,n){return Number(String(m).slice(0,-n)+"9".repeat(n))}function g(m,n){return m-m%Math.pow(10,n)}function M(m){let[n=0,QA=""]=m;if(QA||n>1)return`{${n+(QA?","+QA:"")}}`;return""}function k(m,n,QA){return`[${m}${n-m===1?"":"-"}${n}]`}function d(m){return/^-?(0+)\d/.test(m)}function t(m,n,QA){if(!n.isPadded)return m;let x=Math.abs(n.maxLen-String(m).length),l=QA.relaxZeros!==!1;switch(x){case 0:return"";case 1:return l?"0?":"0";case 2:return l?"0{0,2}":"00";default:return l?`0{0,${x}}`:`0{${x}}`}}Y.cache={},Y.clearCache=()=>Y.cache={},I.exports=Y},6144:function(I,C,D){var F=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(C,"__esModule",{value:!0}),C.resolveWorkspaceRoot=Z,C.resolveWorkspaceRootAsync=X,C.getWorkspaceGlobs=$,C.getWorkspaceGlobsAsync=V;let Y=F(D(9411)),J=F(D(7742)),G=D(2737),N=D(6455),U=D(4679);function Z(w=J.default.cwd(),g={}){return(0,G.searchParentDirs)(w,(M,k)=>{let d=null;if(g.packageWorkspaces!==!1){d=(0,N.tryReadFile)(Y.default.join(M,"package.json"));let t=d&&(0,U.workspaceGlobsFromPackage)(d);if(t&&(0,U.pathMatchesWorkspaceGlobs)(t,k))return M}if(g.pnpmWorkspaces!==!1&&d){let t=(0,N.tryReadFile)(Y.default.join(M,"pnpm-workspace.yaml")),m=t&&(0,U.workspaceGlobsFromPnpm)(t);if(m&&(0,U.pathMatchesWorkspaceGlobs)(m,k))return M}})}function X(w=J.default.cwd(),g={}){return(0,G.searchParentDirsAsync)(w,async(M,k)=>{let d=null;if(g.packageWorkspaces!==!1){d=await(0,N.tryReadFileAsync)(Y.default.join(M,"package.json"));let t=d&&(0,U.workspaceGlobsFromPackage)(d);if(t&&(0,U.pathMatchesWorkspaceGlobs)(t,k))return M}if(g.pnpmWorkspaces!==!1&&d){let t=await(0,N.tryReadFileAsync)(Y.default.join(M,"pnpm-workspace.yaml")),m=t&&(0,U.workspaceGlobsFromPnpm)(t);if(m&&(0,U.pathMatchesWorkspaceGlobs)(m,k))return M}})}function $(w=J.default.cwd(),g={}){if(g.packageWorkspaces!==!1){let M=(0,N.tryReadFile)(Y.default.join(w,"package.json")),k=M&&(0,U.workspaceGlobsFromPackage)(M);if(k)return k}if(g.pnpmWorkspaces!==!1){let M=(0,N.tryReadFile)(Y.default.join(w,"pnpm-workspace.yaml")),k=M&&(0,U.workspaceGlobsFromPnpm)(M);if(k)return k}return null}async function V(w=J.default.cwd(),g={}){if(g.packageWorkspaces!==!1){let M=await(0,N.tryReadFileAsync)(Y.default.join(w,"package.json")),k=M&&(0,U.workspaceGlobsFromPackage)(M);if(k)return k}if(g.pnpmWorkspaces!==!1){let M=await(0,N.tryReadFileAsync)(Y.default.join(w,"pnpm-workspace.yaml")),k=M&&(0,U.workspaceGlobsFromPnpm)(M);if(k)return k}return null}},2737:function(I,C,D){var F=this&&this.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(C,"__esModuleLine truncated
%s`,d,d,g,E);var t=g.type==="*"?jV:g.type==="?"?qV:"\\"+g.type;I=!0,E=E.slice(0,g.reStart)+t+"\\("+d}if(X(),C)E+="\\\\";var m=!1;switch(E.charAt(0)){case"[":case".":case"(":m=!0}for(var n=F.length-1;n>-1;n--){var QA=F[n],x=E.slice(0,QA.reStart),l=E.slice(QA.reStart,QA.reEnd-8),u=E.slice(QA.reEnd-8,QA.reEnd),CA=E.slice(QA.reEnd);u+=CA;var i=x.split("(").length-1,KA=CA;for($=0;$<i;$++)KA=KA.replace(/\)[+*?]?/,"");CA=KA;var HA="";if(CA===""&&Q!==q2)HA="$";var uA=x+l+CA+HA+u;E=uA}if(E!==""&&I)E="(?=.)"+E;if(m)E=U+E;if(Q===q2)return[E,I];if(!I)return kXA(A);var cA=B.nocase?"i":"";try{var yA=new RegExp("^"+E+"$",cA)}catch(JA){return new RegExp("$.")}return yA._glob=A,yA._src=E,yA}AC.makeRe=function(A,Q){return new yE(A,Q||{}).makeRe()};yE.prototype.makeRe=PXA;function PXA(){if(this.regexp||this.regexp===!1)return this.regexp;var A=this.set;if(!A.length)return this.regexp=!1,this.regexp;var Q=this.options,B=Q.noglobstar?jV:Q.dot?wXA:MXA,E=Q.nocase?"i":"",I=A.map(function(C){return C.map(function(D){return D===PV?B:typeof D==="string"?fXA(D):D._src}).join("\\/")}).join("|");if(I="^(?:"+I+")$",this.negate)I="^(?!"+I+").*$";try{this.regexp=new RegExp(I,E)}catch(C){this.regexp=!1}return this.regexp}AC.match=function(A,Q,B){B=B||{};var E=new yE(Q,B);if(A=A.filter(function(I){return E.match(I)}),E.options.nonull&&!A.length)A.push(Q);return A};yE.prototype.match=function(Q,B){if(typeof B>"u")B=this.partial;if(this.debug("match",Q,this.pattern),this.comment)return!1;if(this.empty)return Q==="";if(Q==="/"&&B)return!0;var E=this.options;if(Q5.sep!=="/")Q=Q.split(Q5.sep).join("/");Q=Q.split(bu),this.debug(this.pattern,"split",Q);var I=this.set;this.debug(this.pattern,"set",I);var C,D;for(D=Q.length-1;D>=0;D--)if(C=Q[D],C)break;for(D=0;D<I.length;D++){var F=I[D],Y=Q;if(E.matchBase&&F.length===1)Y=[C];var J=this.matchOne(Y,F,B);if(J){if(E.flipNegate)return!0;return!this.negate}}if(E.flipNegate)return!1;return this.negate};yE.prototype.matchOne=function(A,Q,B){var E=this.options;this.debug("matchOne",{this:this,file:A,pattern:Q}),this.debug("matchOne",A.length,Q.length);for(var I=0,C=0,D=A.length,F=Q.length;I<D&&C<F;I++,C++){this.debug("matchOne loop");var Y=Q[C],J=A[I];if(this.debug(Q,Y,J),Y===!1)return!1;if(Y===PV){this.debug("GLOBSTAR",[Q,Y,J]);var G=I,N=C+1;if(N===F){this.debug("** at the end");for(;I<D;I++)if(A[I]==="."||A[I]===".."||!E.dot&&A[I].charAt(0)===".")return!1;return!0}while(G<D){var U=A[G];if(this.debug(`
globstar while`,A,G,Q,N,U),this.matchOne(A.slice(G),Q.slice(N),B))return this.debug("globstar found match!",G,D,U),!0;else{if(U==="."||U===".."||!E.dot&&U.charAt(0)==="."){this.debug("dot detected!",A,G,Q,N);break}this.debug("globstar swallow a segment, and continue"),G++}}if(B){if(this.debug(`
>>> no match, partial?`,A,G,Q,N),G===D)return!0}return!1}var Z;if(typeof Y==="string")Z=J===Y,this.debug("string match",Y,J,Z);else Z=J.match(Y),this.debug("pattern match",Y,J,Z);if(!Z)return!1}if(I===D&&C===F)return!0;else if(I===D)return B;else if(C===F)return I===D-1&&A[I]==="";throw Error("wtf?")};function kXA(A){return A.replace(/\\(.)/g,"$1")}function fXA(A){return A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var pu=K((TC)=>{var xXA=TC&&TC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;Object.defineProperty(A,E,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),hXA=TC&&TC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),cu=TC&&TC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.hasOwnProperty.call(A,B))xXA(Q,A,B)}return hXA(Q,A),Q},SXA=TC&&TC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(TC,"__esModule",{value:!0});TC.Path=void 0;var B5=cu(require("path")),BF=cu(T2()),E5=SXA(require("assert")),yXA=process.platform==="win32";class lu{constructor(A){if(this.segments=[],typeof A==="string")if(E5.default(A,"Parameter 'itemPath' must not be empty"),A=BF.safeTrimTrailingSeparator(A),!BF.hasRoot(A))this.segments=A.split(B5.sep);else{let Q=A,B=BF.dirname(Q);while(B!==Q){let E=B5.basename(Q);this.segments.unshift(E),Q=B,B=BF.dirname(Q)}this.segments.unshift(Q)}else{E5.default(A.length>0,"Parameter 'itemPath' must not be an empty array");for(let Q=0;Q<A.length;Q++){let B=A[Q];if(E5.default(B,"Parameter 'itemPath' must not contain any empty segments"),B=BF.normalizeSeparators(A[Q]),Q===0&&BF.hasRoot(B))B=BF.safeTrimTrailingSeparator(B),E5.default(B===BF.dirname(B),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(B);else E5.default(!B.includes(B5.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(B)}}}toString(){let A=this.segments[0],Q=A.endsWith(B5.sep)||yXA&&/^[A-Z]:$/i.test(A);for(let B=1;B<this.segments.length;B++){if(Q)Q=!1;else A+=B5.sep;A+=this.segments[B]}return A}}TC.Path=lu});var iu=K((qC)=>{var _XA=qC&&qC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;Object.defineProperty(A,E,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),vXA=qC&&qC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),fV=qC&&qC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.hasOwnProperty.call(A,B))_XA(Q,A,B)}return vXA(Q,A),Q},bXA=qC&&qC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(qC,"__esModule",{value:!0});qC.Pattern=void 0;var uXA=fV(require("os")),I5=fV(require("path")),fI=fV(T2()),z1=bXA(require("assert")),mXA=du(),kV=O2(),P2=pu(),$D=process.platform==="win32";class OC{constructor(A,Q=!1,B,E){this.negate=!1;let I;if(typeof A==="string")I=A.trim();else{B=B||[],z1.default(B.length,"Parameter 'segments' must not empty");let Y=OC.getLiteral(B[0]);if(z1.default(Y&&fI.hasAbsoluteRoot(Y),"Parameter 'segments' first element must be a root path"),I=new P2.Path(B).toString().trim(),A)I=`!${I}`}while(I.startsWith("!"))this.negate=!this.negate,I=I.substr(1).trim();I=OC.fixupPattern(I,E),this.segments=new P2.Path(I).segments,this.trailingSeparator=fI.normalizeSeparators(I).endsWith(I5.sep),I=fI.safeTrimTrailingSeparator(I);let C=!1,D=this.segments.map((Y)=>OC.getLiteral(Y)).filter((Y)=>!C&&!(C=Y===""));this.searchPath=new P2.Path(D).toString(),this.rootRegExp=new RegExp(OC.regExpEscape(D[0]),$D?"i":""),this.isImplicitPattern=Q;let F={dot:!0,nobrace:!0,nocase:$D,nocomment:!0,noext:!0,nonegate:!0};I=$D?I.replace(/\\/g,"/"):I,this.minimatch=new mXA.Minimatch(I,F)}match(A){if(this.segments[this.segments.length-1]==="**"){if(A=fI.normalizeSeparators(A),!A.endsWith(I5.sep)&&this.isImplicitPattern===!1)A=`${A}${I5.sep}`}else A=fI.safeTrimTrailingSeparator(A);if(this.minimatch.match(A))return this.trailingSeparator?kV.MatchKind.Directory:kV.MatchKind.All;return kV.MatchKind.None}partialMatch(A){if(A=fI.safeTrimTrailingSeparator(A),fI.dirname(A)===A)return this.rootRegExp.test(A);return this.minimatch.matchOne(A.split($D?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(A){return($D?A:A.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(A,Q){z1.default(A,"pattern cannot be empty");let B=new P2.Path(A).segments.map((E)=>OC.getLiteral(E));if(z1.default(B.every((E,I)=>(E!=="."||I===0)&&E!==".."),`Invalid pattern '${A}'. Relative pathing '.' and '..' is not allowed.`),z1.default(!fI.hasRoot(A)||B[0],`Invalid pattern '${A}'. Root segment must not contain globs.`),A=fI.normalizeSe Line truncated
`),A=A.replace(/\r/g,`
`);let E=A.split(`
`).map((I)=>I.trim());for(let I of E)if(!I||I.startsWith("#"))continue;else B.patterns.push(new ru.Pattern(I));return B.searchPaths.push(...f2.getSearchPaths(B.patterns)),B})}static stat(A,Q,B){return xV(this,void 0,void 0,function*(){let E;if(Q.followSymbolicLinks)try{E=yield C5.promises.stat(A.path)}catch(I){if(I.code==="ENOENT"){if(Q.omitBrokenSymbolicLinks){hV.debug(`Broken symlink '${A.path}'`);return}throw Error(`No information found for the path '${A.path}'. This may indicate a broken symbolic link.`)}throw I}else E=yield C5.promises.lstat(A.path);if(E.isDirectory()&&Q.followSymbolicLinks){let I=yield C5.promises.realpath(A.path);while(B.length>=A.level)B.pop();if(B.some((C)=>C===I)){hV.debug(`Symlink cycle detected for path '${A.path}' and realpath '${I}'`);return}B.push(I)}return E})}}zE.DefaultGlobber=x2});var Am=K((gJ)=>{var aXA=gJ&&gJ.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(gJ,"__esModule",{value:!0});gJ.create=void 0;var sXA=eu();function oXA(A,Q){return aXA(this,void 0,void 0,function*(){return yield sXA.DefaultGlobber.create(A,Q)})}gJ.create=oXA});var Dm=K((QQ,Cm)=>{QQ=Cm.exports=UQ;var mQ;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG))mQ=function(){var A=Array.prototype.slice.call(arguments,0);A.unshift("SEMVER"),console.log.apply(console,A)};else mQ=function(){};QQ.SEMVER_SPEC_VERSION="2.0.0";var F5=256,h2=Number.MAX_SAFE_INTEGER||9007199254740991,SV=16,rXA=F5-6,TJ=QQ.re=[],uQ=QQ.safeRe=[],YA=QQ.src=[],o=QQ.tokens={},Em=0;function KQ(A){o[A]=Em++}var _V="[a-zA-Z0-9-]",yV=[["\\s",1],["\\d",F5],[_V,rXA]];function J5(A){for(var Q=0;Q<yV.length;Q++){var B=yV[Q][0],E=yV[Q][1];A=A.split(B+"*").join(B+"{0,"+E+"}").split(B+"+").join(B+"{1,"+E+"}")}return A}KQ("NUMERICIDENTIFIER");YA[o.NUMERICIDENTIFIER]="0|[1-9]\\d*";KQ("NUMERICIDENTIFIERLOOSE");YA[o.NUMERICIDENTIFIERLOOSE]="\\d+";KQ("NONNUMERICIDENTIFIER");YA[o.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+_V+"*";KQ("MAINVERSION");YA[o.MAINVERSION]="("+YA[o.NUMERICIDENTIFIER]+")\\.("+YA[o.NUMERICIDENTIFIER]+")\\.("+YA[o.NUMERICIDENTIFIER]+")";KQ("MAINVERSIONLOOSE");YA[o.MAINVERSIONLOOSE]="("+YA[o.NUMERICIDENTIFIERLOOSE]+")\\.("+YA[o.NUMERICIDENTIFIERLOOSE]+")\\.("+YA[o.NUMERICIDENTIFIERLOOSE]+")";KQ("PRERELEASEIDENTIFIER");YA[o.PRERELEASEIDENTIFIER]="(?:"+YA[o.NUMERICIDENTIFIER]+"|"+YA[o.NONNUMERICIDENTIFIER]+")";KQ("PRERELEASEIDENTIFIERLOOSE");YA[o.PRERELEASEIDENTIFIERLOOSE]="(?:"+YA[o.NUMERICIDENTIFIERLOOSE]+"|"+YA[o.NONNUMERICIDENTIFIER]+")";KQ("PRERELEASE");YA[o.PRERELEASE]="(?:-("+YA[o.PRERELEASEIDENTIFIER]+"(?:\\."+YA[o.PRERELEASEIDENTIFIER]+")*))";KQ("PRERELEASELOOSE");YA[o.PRERELEASELOOSE]="(?:-?("+YA[o.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+YA[o.PRERELEASEIDENTIFIERLOOSE]+")*))";KQ("BUILDIDENTIFIER");YA[o.BUILDIDENTIFIER]=_V+"+";KQ("BUILD");YA[o.BUILD]="(?:\\+("+YA[o.BUILDIDENTIFIER]+"(?:\\."+YA[o.BUILDIDENTIFIER]+")*))";KQ("FULL");KQ("FULLPLAIN");YA[o.FULLPLAIN]="v?"+YA[o.MAINVERSION]+YA[o.PRERELEASE]+"?"+YA[o.BUILD]+"?";YA[o.FULL]="^"+YA[o.FULLPLAIN]+"$";KQ("LOOSEPLAIN");YA[o.LOOSEPLAIN]="[v=\\s]*"+YA[o.MAINVERSIONLOOSE]+YA[o.PRERELEASELOOSE]+"?"+YA[o.BUILD]+"?";KQ("LOOSE");YA[o.LOOSE]="^"+YA[o.LOOSEPLAIN]+"$";KQ("GTLT");YA[o.GTLT]="((?:<|>)?=?)";KQ("XRANGEIDENTIFIERLOOSE");YA[o.XRANGEIDENTIFIERLOOSE]=YA[o.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";KQ("XRANGEIDENTIFIER");YA[o.XRANGEIDENTIFIER]=YA[o.NUMERICIDENTIFIER]+"|x|X|\\*";KQ("XRANGEPLAIN");YA[o.XRANGEPLAIN]="[v=\\s]*("+YA[o.XRANGEIDENTIFIER]+")(?:\\.("+YA[o.XRANGEIDENTIFIER]+")(?:\\.("+YA[o.XRANGEIDENTIFIER]+")(?:"+YA[o.PRERELEASE]+")?"+YA[o.BUILD]+"?)?)?";KQ("XRANGEPLAINLOOSE");YA[o.XRANGEPLAINLOOSE]="[v=\\s]*("+YA[o.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+YA[o.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+YA[o.XRANGEIDENTIFIERLOOSE]+")(?:"+YA[o.PRERELEASELOOSE]+")?"+YA[o.BUILD]+"?)?)?";KQ("XRANGE");YA[o.XRANGE]="^"+YA[o.GTLT]+"\\s*"+YA[o.XRANGEPLAIN]+"$";KQ("XRANGELOOSE");YA[o.XRANGELOOSE]="^"+YA[o.GTLT]+"\\s*"+YA[o.XRANGEPLAINLOOSE]+"$";KQ("COERCE");YA[o.COERCE]="(^|[^\\d])(\\d{1,"+SV+"})(?:\\.(\\d{1,"+SV+"}))?(?:\\.(\\d{1,"+SV+"}))?(?:$|[^\\d])";KQ("COERCERTL");TJ[o.COERCERTL]=new RegExp(YA[o.COERCE],"g");uQ[o.COERCERTL]=new RegExp(J5(YA[o.COERCE]),"g");KQ("LONETILDE");YA[o.LONETILDE]="(?:~>?)";KQ("TILDETRIM");YA[o.TILDETRIM]="(\\s*)"+YA[o.LONETILDE]+"\\s+";TJ[o.TILDETRIM]=new RegExp(YA[o.TILDETRIM],"g");uQ[o.TILDETRIM]=new RegExp(J5(YA[o.TILDETRIM]),"g");var tXA="$1~";KQ("TILDE");YA[o.TILDE]="^"+YA[o.LONETILDE]+YA[o.XRANGEPLAIN]+"$";KQ("TILDELOOSE");YA[o.TILDELOOSE]="^"+YA[o.LONETILDE]+YA[o.XRANGEPLAINLOOSE]+"$";KQ("LONECARET");YA[o.LONECARET]="(?:\\^)";KQ("CARETTRIM");YA[o.CARETTRIM]="(\\s*)"+YA[o.LONECARET]+"\\s+";TJ[o.CARETTRIM]=new RegExp(YA[o.CARETTRIM]," Line truncated
`),{implicitDescendants:!1});try{for(var J=!0,G=y6A(Y.globGenerator()),N;N=yield G.next(),Q=N.done,!Q;J=!0){I=N.value,J=!1;let U=I,Z=v2.relative(F,U).replace(new RegExp(`\\${v2.sep}`,"g"),"/");if(N5.debug(`Matched: ${Z}`),Z==="")D.push(".");else D.push(`${Z}`)}}catch(U){B={error:U}}finally{try{if(!J&&!Q&&(E=G.return))yield E.call(G)}finally{if(B)throw B.error}}return D})}fQ.resolvePaths=l6A;function p6A(A){return qJ(this,void 0,void 0,function*(){return u6A.promisify(dV.unlink)(A)})}fQ.unlinkFile=p6A;function Um(A,Q=[]){return qJ(this,void 0,void 0,function*(){let B="";Q.push("--version"),N5.debug(`Checking ${A} ${Q.join(" ")}`);try{yield _6A.exec(`${A}`,Q,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:(E)=>B+=E.toString(),stderr:(E)=>B+=E.toString()}})}catch(E){N5.debug(E.message)}return B=B.trim(),N5.debug(B),B})}function i6A(){return qJ(this,void 0,void 0,function*(){let A=yield Um("zstd",["--quiet"]),Q=b6A.clean(A);if(N5.debug(`zstd version: ${Q}`),A==="")return M1.CompressionMethod.Gzip;else return M1.CompressionMethod.ZstdWithoutLong})}fQ.getCompressionMethod=i6A;function n6A(A){return A===M1.CompressionMethod.Gzip?M1.CacheFilename.Gzip:M1.CacheFilename.Zstd}fQ.getCacheFileName=n6A;function a6A(){return qJ(this,void 0,void 0,function*(){if(dV.existsSync(M1.GnuTarPathOnWindows))return M1.GnuTarPathOnWindows;return(yield Um("tar")).toLowerCase().includes("gnu tar")?Gm.which("tar"):""})}fQ.getGnuTarPathOnWindows=a6A;function s6A(A,Q){if(Q===void 0)throw Error(`Expected ${A} but value was undefiend`);return Q}fQ.assertDefined=s6A;function o6A(A,Q,B=!1){let E=A.slice();if(Q)E.push(Q);if(process.platform==="win32"&&!B)E.push("windows-only");return E.push(m6A),Nm.createHash("sha256").update(E.join("|")).digest("hex")}fQ.getCacheVersion=o6A;function r6A(){let A=process.env.ACTIONS_RUNTIME_TOKEN;if(!A)throw Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return A}fQ.getRuntimeToken=r6A});var RB=K((UbA,m2)=>{var Zm,Wm,Xm,$m,Km,Lm,Vm,zm,Hm,wm,Mm,Rm,gm,b2,cV,Tm,Om,qm,PJ,jm,Pm,km,fm,xm,hm,Sm,ym,_m,u2,vm,bm,um;(function(A){var Q=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(E){A(B(Q,B(E)))});else if(typeof m2==="object"&&typeof m2.exports==="object")A(B(Q,B(m2.exports)));else A(B(Q));function B(E,I){if(E!==Q)if(typeof Object.create==="function")Object.defineProperty(E,"__esModule",{value:!0});else E.__esModule=!0;return function(C,D){return E[C]=I?I(C,D):D}}})(function(A){var Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,D){C.__proto__=D}||function(C,D){for(var F in D)if(Object.prototype.hasOwnProperty.call(D,F))C[F]=D[F]};Zm=function(C,D){if(typeof D!=="function"&&D!==null)throw TypeError("Class extends value "+String(D)+" is not a constructor or null");Q(C,D);function F(){this.constructor=C}C.prototype=D===null?Object.create(D):(F.prototype=D.prototype,new F)},Wm=Object.assign||function(C){for(var D,F=1,Y=arguments.length;F<Y;F++){D=arguments[F];for(var J in D)if(Object.prototype.hasOwnProperty.call(D,J))C[J]=D[J]}return C},Xm=function(C,D){var F={};for(var Y in C)if(Object.prototype.hasOwnProperty.call(C,Y)&&D.indexOf(Y)<0)F[Y]=C[Y];if(C!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var J=0,Y=Object.getOwnPropertySymbols(C);J<Y.length;J++)if(D.indexOf(Y[J])<0&&Object.prototype.propertyIsEnumerable.call(C,Y[J]))F[Y[J]]=C[Y[J]]}return F},$m=function(C,D,F,Y){var J=arguments.length,G=J<3?D:Y===null?Y=Object.getOwnPropertyDescriptor(D,F):Y,N;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")G=Reflect.decorate(C,D,F,Y);else for(var U=C.length-1;U>=0;U--)if(N=C[U])G=(J<3?N(G):J>3?N(D,F,G):N(D,F))||G;return J>3&&G&&Object.defineProperty(D,F,G),G},Km=function(C,D){return function(F,Y){D(F,Y,C)}},Lm=function(C,D,F,Y,J,G){function N(t){if(t!==void 0&&typeof t!=="function")throw TypeError("Function expected");return t}var U=Y.kind,Z=U==="getter"?"get":U==="setter"?"set":"value",X=!D&&C?Y.static?C:C.prototype:null,$=D||(X?Object.getOwnPropertyDescriptor(X,Y.name):{}),V,w=!1;for(var g=F.length-1;g>=0;g--){var M={};for(var k in Y)M[k]=k==="access"?{}:Y[k];for(var k in Y.access)M.access[k]=Y.access[k];M.addInitializer=function(t){if(w)throw TypeError("Cannot add initializers after decoration has completed");G.push(N(t||null))};var d=(0,F[g])(U==="accessor"?{get:$.get,set:$.set}:$[Z],M);if(U==="accessor"){if(d===void 0)continue;if(d===null||typeof d!=="object")throw TypeError("Object expected");if(V=N(d.get))$.get=V;if(V=N(d.set))$.set=V;if(V=N(d.init))J.unshift(V)}else if(V=N(d))if(U==="field")J.unshift(V);else $[Z]=V}if(X)Object.defineProperty(X,Y.name,$);w=!0},Vm=function(C,D,F){var Y=arguments.length>2;for(var J=0;J<D.length;J++)F=Y?D[J].call(C,F):D[J].call(C);return Y?F:void 0},zm=function(C){return typeof C==="symbol"?C:"".concat(C)},Hm=function(C,D,F){if(typeof D==="symbol")D=D.description?"[".concat(D.description,"]"):"";return O Line truncated
${j7A.sanitize({...this,request:{...this.request,agent:B},response:this.response})}`},enumerable:!1}),Object.setPrototypeOf(this,r2.prototype)}}$5.RestError=r2;function P7A(A){if(A instanceof r2)return!0;return(0,T7A.isError)(A)&&A.name==="RestError"}});var R1=K((t2)=>{Object.defineProperty(t2,"__esModule",{value:!0});t2.uint8ArrayToString=k7A;t2.stringToUint8Array=f7A;function k7A(A,Q){return Buffer.from(A).toString(Q)}function f7A(A,Q){return Buffer.from(A,Q)}});var K5=K((e2)=>{Object.defineProperty(e2,"__esModule",{value:!0});e2.logger=void 0;var x7A=W5();e2.logger=(0,x7A.createClientLogger)("ts-http-runtime")});var Xd=K((AZ)=>{Object.defineProperty(AZ,"__esModule",{value:!0});AZ.getBodyLength=Wd;AZ.createNodeHttpClient=m7A;var Gz=RB(),Fz=Gz.__importDefault(require("node:http")),Yz=Gz.__importDefault(require("node:https")),Jd=Gz.__importDefault(require("node:zlib")),h7A=require("node:stream"),Gd=U5(),S7A=CF(),V5=kJ(),fJ=K5(),y7A=X5(),_7A={};function L5(A){return A&&typeof A.pipe==="function"}function Nd(A){if(A.readable===!1)return Promise.resolve();return new Promise((Q)=>{let B=()=>{Q(),A.removeListener("close",B),A.removeListener("end",B),A.removeListener("error",B)};A.on("close",B),A.on("end",B),A.on("error",B)})}function Ud(A){return A&&typeof A.byteLength==="number"}class Jz extends h7A.Transform{loadedBytes=0;progressCallback;_transform(A,Q,B){this.push(A),this.loadedBytes+=A.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),B()}catch(E){B(E)}}constructor(A){super();this.progressCallback=A}}class Zd{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(A){let Q=new AbortController,B;if(A.abortSignal){if(A.abortSignal.aborted)throw new Gd.AbortError("The operation was aborted. Request has already been canceled.");B=(Y)=>{if(Y.type==="abort")Q.abort()},A.abortSignal.addEventListener("abort",B)}let E;if(A.timeout>0)E=setTimeout(()=>{let Y=new y7A.Sanitizer;fJ.logger.info(`request to '${Y.sanitizeUrl(A.url)}' timed out. canceling...`),Q.abort()},A.timeout);let I=A.headers.get("Accept-Encoding"),C=I?.includes("gzip")||I?.includes("deflate"),D=typeof A.body==="function"?A.body():A.body;if(D&&!A.headers.has("Content-Length")){let Y=Wd(D);if(Y!==null)A.headers.set("Content-Length",Y)}let F;try{if(D&&A.onUploadProgress){let Z=A.onUploadProgress,X=new Jz(Z);if(X.on("error",($)=>{fJ.logger.error("Error in upload progress",$)}),L5(D))D.pipe(X);else X.end(D);D=X}let Y=await this.makeRequest(A,Q,D);if(E!==void 0)clearTimeout(E);let J=v7A(Y),N={status:Y.statusCode??0,headers:J,request:A};if(A.method==="HEAD")return Y.resume(),N;F=C?b7A(Y,J):Y;let U=A.onDownloadProgress;if(U){let Z=new Jz(U);Z.on("error",(X)=>{fJ.logger.error("Error in download progress",X)}),F.pipe(Z),F=Z}if(A.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||A.streamResponseStatusCodes?.has(N.status))N.readableStreamBody=F;else N.bodyAsText=await u7A(F);return N}finally{if(A.abortSignal&&B){let Y=Promise.resolve();if(L5(D))Y=Nd(D);let J=Promise.resolve();if(L5(F))J=Nd(F);Promise.all([Y,J]).then(()=>{if(B)A.abortSignal?.removeEventListener("abort",B)}).catch((G)=>{fJ.logger.warning("Error when cleaning up abortListener on httpRequest",G)})}}}makeRequest(A,Q,B){let E=new URL(A.url),I=E.protocol!=="https:";if(I&&!A.allowInsecureConnection)throw Error(`Cannot connect to ${A.url} while allowInsecureConnection is false.`);let D={agent:A.agent??this.getOrCreateAgent(A,I),hostname:E.hostname,path:`${E.pathname}${E.search}`,port:E.port,method:A.method,headers:A.headers.toJSON({preserveCase:!0}),...A.requestOverrides};return new Promise((F,Y)=>{let J=I?Fz.default.request(D,F):Yz.default.request(D,F);if(J.once("error",(G)=>{Y(new V5.RestError(G.message,{code:G.code??V5.RestError.REQUEST_SEND_ERROR,request:A}))}),Q.signal.addEventListener("abort",()=>{let G=new Gd.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");J.destroy(G),Y(G)}),B&&L5(B))B.pipe(J);else if(B)if(typeof B==="string"||Buffer.isBuffer(B))J.end(B);else if(Ud(B))J.end(ArrayBuffer.isView(B)?Buffer.from(B.buffer):Buffer.from(B));else fJ.logger.error("Unrecognized body type",B),Y(new V5.RestError("Unrecognized body type"));else J.end()})}getOrCreateAgent(A,Q){let B=A.disableKeepAlive;if(Q){if(B)return Fz.default.globalAgent;if(!this.cachedHttpAgent)this.cachedHttpAgent=new Fz.default.Agent({keepAlive:!0});return this.cachedHttpAgent}else{if(B&&!A.tlsSettings)return Yz.default.globalAgent;let E=A.tlsSettings??_7A,I=this.cachedHttpsAgents.get(E);if(I&&I.options.keepAlive===!B)return I;return fJ.logger.info("No cached TLS Agent exist, creating a new Agent"),I=new Yz.default.Agent({keepAlive:!B,...E}),this.cachedHttpsAgents.set(E,I),I}}}function v7A(A){let Q=(0,S7A.createHttpHeaders)();for(let B of Object.keys(A.headers)){let E=A.headers[B];if(Array.isArray(E)){if(E.length>0)Q.set(B,E[0])}else if(E)Q.set(B,E)}return Q}function b7A(A,Q){let B=Q.get("Content-Encoding");if(B==="gzip"){let E=Jd.default.createGunzip();re Line truncated
`).join(`
`+C),A.push(I+"m+"+GZ.exports.humanize(this.diff)+"\x1B[0m")}else A[0]=o3A()+Q+" "+A[0]}function o3A(){if(HE.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function r3A(...A){return process.stderr.write(JZ.formatWithOptions(HE.inspectOpts,...A)+`
`)}function t3A(A){if(A)process.env.DEBUG=A;else delete process.env.DEBUG}function e3A(){return process.env.DEBUG}function A$A(A){A.inspectOpts={};let Q=Object.keys(HE.inspectOpts);for(let B=0;B<Q.length;B++)A.inspectOpts[Q[B]]=HE.inspectOpts[Q[B]]}GZ.exports=qz()(HE);var{formatters:xd}=GZ.exports;xd.o=function(A){return this.inspectOpts.colors=this.useColors,JZ.inspect(A,this.inspectOpts).split(`
`).map((Q)=>Q.trim()).join(" ")};xd.O=function(A){return this.inspectOpts.colors=this.useColors,JZ.inspect(A,this.inspectOpts)}});var NZ=K((obA,jz)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)jz.exports=fd();else jz.exports=hd()});var _d=K((hI)=>{var Q$A=hI&&hI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),B$A=hI&&hI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),Sd=hI&&hI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))Q$A(Q,A,B)}return B$A(Q,A),Q};Object.defineProperty(hI,"__esModule",{value:!0});hI.req=hI.json=hI.toBuffer=void 0;var E$A=Sd(require("http")),I$A=Sd(require("https"));async function yd(A){let Q=0,B=[];for await(let E of A)Q+=E.length,B.push(E);return Buffer.concat(B,Q)}hI.toBuffer=yd;async function C$A(A){let B=(await yd(A)).toString("utf8");try{return JSON.parse(B)}catch(E){let I=E;throw I.message+=` (input: ${B})`,I}}hI.json=C$A;function D$A(A,Q={}){let E=((typeof A==="string"?A:A.href).startsWith("https:")?I$A:E$A).request(A,Q),I=new Promise((C,D)=>{E.once("response",C).once("error",D).end()});return E.then=I.then.bind(I),E}hI.req=D$A});var dd=K((QC)=>{var bd=QC&&QC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),F$A=QC&&QC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),ud=QC&&QC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))bd(Q,A,B)}return F$A(Q,A),Q},Y$A=QC&&QC.__exportStar||function(A,Q){for(var B in A)if(B!=="default"&&!Object.prototype.hasOwnProperty.call(Q,B))bd(Q,A,B)};Object.defineProperty(QC,"__esModule",{value:!0});QC.Agent=void 0;var J$A=ud(require("net")),vd=ud(require("http")),G$A=require("https");Y$A(_d(),QC);var k0=Symbol("AgentBaseInternalState");class md extends vd.Agent{constructor(A){super(A);this[k0]={}}isSecureEndpoint(A){if(A){if(typeof A.secureEndpoint==="boolean")return A.secureEndpoint;if(typeof A.protocol==="string")return A.protocol==="https:"}let{stack:Q}=Error();if(typeof Q!=="string")return!1;return Q.split(`
`).some((B)=>B.indexOf("(https.js:")!==-1||B.indexOf("node:https:")!==-1)}incrementSockets(A){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[A])this.sockets[A]=[];let Q=new J$A.Socket({writable:!1});return this.sockets[A].push(Q),this.totalSocketCount++,Q}decrementSockets(A,Q){if(!this.sockets[A]||Q===null)return;let B=this.sockets[A],E=B.indexOf(Q);if(E!==-1){if(B.splice(E,1),this.totalSocketCount--,B.length===0)delete this.sockets[A]}}getName(A){if(this.isSecureEndpoint(A))return G$A.Agent.prototype.getName.call(this,A);return super.getName(A)}createSocket(A,Q,B){let E={...Q,secureEndpoint:this.isSecureEndpoint(Q)},I=this.getName(E),C=this.incrementSockets(I);Promise.resolve().then(()=>this.connect(A,E)).then((D)=>{if(this.decrementSockets(I,C),D instanceof vd.Agent)try{return D.addRequest(A,E)}catch(F){return B(F)}this[k0].currentSocket=D,super.createSocket(A,Q,B)},(D)=>{this.decrementSockets(I,C),B(D)})}createConnection(){let A=this[k0].currentSocket;if(this[k0].currentSocket=void 0,!A)throw Error("No socket was returned in the `connect()` function");return A}get defaultPort(){return this[k0].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(A){if(this[k0])this[k0].defaultPort=A}get protocol(){return this[k0].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(A){if(this[k0])this[k0].protocol=A}}QC.Agent=md});var cd=K((lJ)=>{var N$A=lJ&&lJ.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(lJ,"__esModule",{value:!0});lJ.parseProxyResponse=void 0;var U$A=N$A(NZ()),UZ=(0,U$A.default)("https-proxy-agent:parse-proxy-response");function Z$A(A){return new Promise((Q,B)=>{let E=0,I=[];function C(){let G=A.read();if(G)J(G);else A.once("readable",C)}function D(){A.removeListener("end",F),A.removeListener("error",Y),A.removeListener("readable",C)}function F(){D(),UZ("onend"),B(Error("Proxy connection ended before receiving CONNECT response"))}function Y(G){D(),UZ("onerror %o",G),B(G)}function J(G){I.push(G),E+=G.length;let N=Buffer.concat(I,E),U=N.indexOf(`\r
\r
`);if(U===-1){UZ("have not received end of HTTP headers yet..."),C();return}let Z=N.slice(0,U).toString("ascii").split(`\r
`),X=Z.shift();if(!X)return A.destroy(),B(Error("No header received from proxy CONNECT response"));let $=X.split(" "),V=+$[1],w=$.slice(2).join(" "),g={};for(let M of Z){if(!M)continue;let k=M.indexOf(":");if(k===-1)return A.destroy(),B(Error(`Invalid header from proxy CONNECT response: "${M}"`));let d=M.slice(0,k).toLowerCase(),t=M.slice(k+1).trimStart(),m=g[d];if(typeof m==="string")g[d]=[m,t];else if(Array.isArray(m))m.push(t);else g[d]=t}UZ("got proxy server response: %o %o",X,g),D(),Q({connect:{statusCode:V,statusText:w,headers:g},buffered:N})}A.on("error",Y),A.on("end",F),C()})}lJ.parseProxyResponse=Z$A});var sd=K((PC)=>{var W$A=PC&&PC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),X$A=PC&&PC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),nd=PC&&PC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))W$A(Q,A,B)}return X$A(Q,A),Q},ad=PC&&PC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(PC,"__esModule",{value:!0});PC.HttpsProxyAgent=void 0;var ZZ=nd(require("net")),ld=nd(require("tls")),$$A=ad(require("assert")),K$A=ad(NZ()),L$A=dd(),V$A=require("url"),z$A=cd(),w5=(0,K$A.default)("https-proxy-agent"),pd=(A)=>{if(A.servername===void 0&&A.host&&!ZZ.isIP(A.host))return{...A,servername:A.host};return A};class Pz extends L$A.Agent{constructor(A,Q){super(Q);this.options={path:void 0},this.proxy=typeof A==="string"?new V$A.URL(A):A,this.proxyHeaders=Q?.headers??{},w5("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let B=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),E=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...Q?id(Q,"headers"):null,host:B,port:E}}async connect(A,Q){let{proxy:B}=this;if(!Q.host)throw TypeError('No "host" provided');let E;if(B.protocol==="https:")w5("Creating `tls.Socket`: %o",this.connectOpts),E=ld.connect(pd(this.connectOpts));else w5("Creating `net.Socket`: %o",this.connectOpts),E=ZZ.connect(this.connectOpts);let I=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},C=ZZ.isIPv6(Q.host)?`[${Q.host}]`:Q.host,D=`CONNECT ${C}:${Q.port} HTTP/1.1\r
`;if(B.username||B.password){let N=`${decodeURIComponent(B.username)}:${decodeURIComponent(B.password)}`;I["Proxy-Authorization"]=`Basic ${Buffer.from(N).toString("base64")}`}if(I.Host=`${C}:${Q.port}`,!I["Proxy-Connection"])I["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let N of Object.keys(I))D+=`${N}: ${I[N]}\r
`;let F=(0,z$A.parseProxyResponse)(E);E.write(`${D}\r
`);let{connect:Y,buffered:J}=await F;if(A.emit("proxyConnect",Y),this.emit("proxyConnect",Y,A),Y.statusCode===200){if(A.once("socket",H$A),Q.secureEndpoint)return w5("Upgrading socket connection to TLS"),ld.connect({...id(pd(Q),"host","path","port"),socket:E});return E}E.destroy();let G=new ZZ.Socket({writable:!1});return G.readable=!0,A.once("socket",(N)=>{w5("Replaying proxy buffer for failed request"),(0,$$A.default)(N.listenerCount("data")>0),N.push(J),N.push(null)}),G}}Pz.protocols=["http","https"];PC.HttpsProxyAgent=Pz;function H$A(A){A.resume()}function id(A,...Q){let B={},E;for(E in A)if(!Q.includes(E))B[E]=A[E];return B}});var td=K((SI)=>{var w$A=SI&&SI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),M$A=SI&&SI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),od=SI&&SI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))w$A(Q,A,B)}return M$A(Q,A),Q};Object.defineProperty(SI,"__esModule",{value:!0});SI.req=SI.json=SI.toBuffer=void 0;var R$A=od(require("http")),g$A=od(require("https"));async function rd(A){let Q=0,B=[];for await(let E of A)Q+=E.length,B.push(E);return Buffer.concat(B,Q)}SI.toBuffer=rd;async function T$A(A){let B=(await rd(A)).toString("utf8");try{return JSON.parse(B)}catch(E){let I=E;throw I.message+=` (input: ${B})`,I}}SI.json=T$A;function O$A(A,Q={}){let E=((typeof A==="string"?A:A.href).startsWith("https:")?g$A:R$A).request(A,Q),I=new Promise((C,D)=>{E.once("response",C).once("error",D).end()});return E.then=I.then.bind(I),E}SI.req=O$A});var Ec=K((BC)=>{var Ac=BC&&BC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),q$A=BC&&BC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),Qc=BC&&BC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))Ac(Q,A,B)}return q$A(Q,A),Q},j$A=BC&&BC.__exportStar||function(A,Q){for(var B in A)if(B!=="default"&&!Object.prototype.hasOwnProperty.call(Q,B))Ac(Q,A,B)};Object.defineProperty(BC,"__esModule",{value:!0});BC.Agent=void 0;var P$A=Qc(require("net")),ed=Qc(require("http")),k$A=require("https");j$A(td(),BC);var f0=Symbol("AgentBaseInternalState");class Bc extends ed.Agent{constructor(A){super(A);this[f0]={}}isSecureEndpoint(A){if(A){if(typeof A.secureEndpoint==="boolean")return A.secureEndpoint;if(typeof A.protocol==="string")return A.protocol==="https:"}let{stack:Q}=Error();if(typeof Q!=="string")return!1;return Q.split(`
`).some((B)=>B.indexOf("(https.js:")!==-1||B.indexOf("node:https:")!==-1)}incrementSockets(A){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[A])this.sockets[A]=[];let Q=new P$A.Socket({writable:!1});return this.sockets[A].push(Q),this.totalSocketCount++,Q}decrementSockets(A,Q){if(!this.sockets[A]||Q===null)return;let B=this.sockets[A],E=B.indexOf(Q);if(E!==-1){if(B.splice(E,1),this.totalSocketCount--,B.length===0)delete this.sockets[A]}}getName(A){if(this.isSecureEndpoint(A))return k$A.Agent.prototype.getName.call(this,A);return super.getName(A)}createSocket(A,Q,B){let E={...Q,secureEndpoint:this.isSecureEndpoint(Q)},I=this.getName(E),C=this.incrementSockets(I);Promise.resolve().then(()=>this.connect(A,E)).then((D)=>{if(this.decrementSockets(I,C),D instanceof ed.Agent)try{return D.addRequest(A,E)}catch(F){return B(F)}this[f0].currentSocket=D,super.createSocket(A,Q,B)},(D)=>{this.decrementSockets(I,C),B(D)})}createConnection(){let A=this[f0].currentSocket;if(this[f0].currentSocket=void 0,!A)throw Error("No socket was returned in the `connect()` function");return A}get defaultPort(){return this[f0].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(A){if(this[f0])this[f0].defaultPort=A}get protocol(){return this[f0].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(A){if(this[f0])this[f0].protocol=A}}BC.Agent=Bc});var Dc=K((kC)=>{var f$A=kC&&kC.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),x$A=kC&&kC.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),Cc=kC&&kC.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))f$A(Q,A,B)}return x$A(Q,A),Q},h$A=kC&&kC.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(kC,"__esModule",{value:!0});kC.HttpProxyAgent=void 0;var S$A=Cc(require("net")),y$A=Cc(require("tls")),_$A=h$A(NZ()),v$A=require("events"),b$A=Ec(),Ic=require("url"),pJ=(0,_$A.default)("http-proxy-agent");class kz extends b$A.Agent{constructor(A,Q){super(Q);this.proxy=typeof A==="string"?new Ic.URL(A):A,this.proxyHeaders=Q?.headers??{},pJ("Creating new HttpProxyAgent instance: %o",this.proxy.href);let B=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),E=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...Q?u$A(Q,"headers"):null,host:B,port:E}}addRequest(A,Q){A._header=null,this.setRequestProps(A,Q),super.addRequest(A,Q)}setRequestProps(A,Q){let{proxy:B}=this,E=Q.secureEndpoint?"https:":"http:",I=A.getHeader("host")||"localhost",C=`${E}//${I}`,D=new Ic.URL(A.path,C);if(Q.port!==80)D.port=String(Q.port);A.path=String(D);let F=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(B.username||B.password){let Y=`${decodeURIComponent(B.username)}:${decodeURIComponent(B.password)}`;F["Proxy-Authorization"]=`Basic ${Buffer.from(Y).toString("base64")}`}if(!F["Proxy-Connection"])F["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let Y of Object.keys(F)){let J=F[Y];if(J)A.setHeader(Y,J)}}async connect(A,Q){if(A._header=null,!A.path.includes("://"))this.setRequestProps(A,Q);let B,E;if(pJ("Regenerating stored HTTP header string for request"),A._implicitHeader(),A.outputData&&A.outputData.length>0)pJ("Patching connection write() output buffer with updated header"),B=A.outputData[0].data,E=B.indexOf(`\r
\r
`)+4,A.outputData[0].data=A._header+B.substring(E),pJ("Output buffer: %o",A.outputData[0].data);let I;if(this.proxy.protocol==="https:")pJ("Creating `tls.Socket`: %o",this.connectOpts),I=y$A.connect(this.connectOpts);else pJ("Creating `net.Socket`: %o",this.connectOpts),I=S$A.connect(this.connectOpts);return await(0,v$A.once)(I,"connect"),I}}kz.protocols=["http","https"];kC.HttpProxyAgent=kz;function u$A(A,...Q){let B={},E;for(E in A)if(!Q.includes(E))B[E]=A[E];return B}});var fz=K((fC)=>{Object.defineProperty(fC,"__esModule",{value:!0});fC.globalNoProxyList=fC.proxyPolicyName=void 0;fC.loadNoProxy=Nc;fC.getDefaultProxySettings=o$A;fC.proxyPolicy=t$A;var m$A=sd(),d$A=Dc(),c$A=K5(),l$A="HTTPS_PROXY",p$A="HTTP_PROXY",i$A="ALL_PROXY",n$A="NO_PROXY";fC.proxyPolicyName="proxyPolicy";fC.globalNoProxyList=[];var Jc=!1,a$A=new Map;function WZ(A){if(process.env[A])return process.env[A];else if(process.env[A.toLowerCase()])return process.env[A.toLowerCase()];return}function Gc(){if(!process)return;let A=WZ(l$A),Q=WZ(i$A),B=WZ(p$A);return A||Q||B}function s$A(A,Q,B){if(Q.length===0)return!1;let E=new URL(A).hostname;if(B?.has(E))return B.get(E);let I=!1;for(let C of Q)if(C[0]==="."){if(E.endsWith(C))I=!0;else if(E.length===C.length-1&&E===C.slice(1))I=!0}else if(E===C)I=!0;return B?.set(E,I),I}function Nc(){let A=WZ(n$A);if(Jc=!0,A)return A.split(",").map((Q)=>Q.trim()).filter((Q)=>Q.length);return[]}function o$A(A){if(!A){if(A=Gc(),!A)return}let Q=new URL(A);return{host:(Q.protocol?Q.protocol+"//":"")+Q.hostname,port:Number.parseInt(Q.port||"80"),username:Q.username,password:Q.password}}function r$A(){let A=Gc();return A?new URL(A):void 0}function Fc(A){let Q;try{Q=new URL(A.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${A.host}".`)}if(Q.port=String(A.port),A.username)Q.username=A.username;if(A.password)Q.password=A.password;return Q}function Yc(A,Q,B){if(A.agent)return;let I=new URL(A.url).protocol!=="https:";if(A.tlsSettings)c$A.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let C=A.headers.toJSON();if(I){if(!Q.httpProxyAgent)Q.httpProxyAgent=new d$A.HttpProxyAgent(B,{headers:C});A.agent=Q.httpProxyAgent}else{if(!Q.httpsProxyAgent)Q.httpsProxyAgent=new m$A.HttpsProxyAgent(B,{headers:C});A.agent=Q.httpsProxyAgent}}function t$A(A,Q){if(!Jc)fC.globalNoProxyList.push(...Nc());let B=A?Fc(A):r$A(),E={};return{name:fC.proxyPolicyName,async sendRequest(I,C){if(!I.proxySettings&&B&&!s$A(I.url,Q?.customNoProxyList??fC.globalNoProxyList,Q?.customNoProxyList?void 0:a$A))Yc(I,E,B);else if(I.proxySettings)Yc(I,E,Fc(I.proxySettings));return C(I)}}}});var xz=K((iJ)=>{Object.defineProperty(iJ,"__esModule",{value:!0});iJ.agentPolicyName=void 0;iJ.agentPolicy=e$A;iJ.agentPolicyName="agentPolicy";function e$A(A){return{name:iJ.agentPolicyName,sendRequest:async(Q,B)=>{if(!Q.agent)Q.agent=A;return B(Q)}}}});var hz=K((nJ)=>{Object.defineProperty(nJ,"__esModule",{value:!0});nJ.tlsPolicyName=void 0;nJ.tlsPolicy=AKA;nJ.tlsPolicyName="tlsPolicy";function AKA(A){return{name:nJ.tlsPolicyName,sendRequest:async(Q,B)=>{if(!Q.tlsSettings)Q.tlsSettings=A;return B(Q)}}}});var M5=K((O1)=>{Object.defineProperty(O1,"__esModule",{value:!0});O1.isNodeReadableStream=Uc;O1.isWebReadableStream=Zc;O1.isBinaryBody=QKA;O1.isReadableStream=Wc;O1.isBlob=BKA;function Uc(A){return Boolean(A&&typeof A.pipe==="function")}function Zc(A){return Boolean(A&&typeof A.getReader==="function"&&typeof A.tee==="function")}function QKA(A){return A!==void 0&&(A instanceof Uint8Array||Wc(A)||typeof A==="function"||A instanceof Blob)}function Wc(A){return Uc(A)||Zc(A)}function BKA(A){return typeof A.stream==="function"}});var Kc=K((yz)=>{Object.defineProperty(yz,"__esModule",{value:!0});yz.concat=DKA;var Sz=require("stream"),EKA=M5();async function*Xc(){let A=this.getReader();try{while(!0){let{done:Q,value:B}=await A.read();if(Q)return;yield B}}finally{A.releaseLock()}}function IKA(A){if(!A[Symbol.asyncIterator])A[Symbol.asyncIterator]=Xc.bind(A);if(!A.values)A.values=Xc.bind(A)}function $c(A){if(A instanceof ReadableStream)return IKA(A),Sz.Readable.fromWeb(A);else return A}function CKA(A){if(A instanceof Uint8Array)return Sz.Readable.from(Buffer.from(A));else if((0,EKA.isBlob)(A))return $c(A.stream());else return $c(A)}async function DKA(A){return function(){let Q=A.map((B)=>typeof B==="function"?B():B).map(CKA);return Sz.Readable.from(async function*(){for(let B of Q)for await(let E of B)yield E}())}}});var _z=K((sJ)=>{Object.defineProperty(sJ,"__esModule",{value:!0});sJ.multipartPolicyName=void 0;sJ.multipartPolicy=LKA;var aJ=R1(),FKA=M5(),YKA=i2(),JKA=Kc();function GKA(){return`----AzSDKFormBoundary${(0,YKA.randomUUID)()}`}function NKA(A){let Q="";for(let[B,E]of A)Q+=`${B}: ${E}\r
`;return Q}function UKA(A){if(A instanceof Uint8Array)return A.byteLength;else if((0,FKA.isBlob)(A))return A.size===-1?void 0:A.size;else return}function ZKA(A){let Q=0;for(let B of A){let E=UKA(B);if(E===void 0)return;else Q+=E}return Q}async function WKA(A,Q,B){let E=[(0,aJ.stringToUint8Array)(`--${B}`,"utf-8"),...Q.flatMap((C)=>[(0,aJ.stringToUint8Array)(`\r
`,"utf-8"),(0,aJ.stringToUint8Array)(NKA(C.headers),"utf-8"),(0,aJ.stringToUint8Array)(`\r
`,"utf-8"),C.body,(0,aJ.stringToUint8Array)(`\r
--${B}`,"utf-8")]),(0,aJ.stringToUint8Array)(`--\r
\r
`,"utf-8")],I=ZKA(E);if(I)A.headers.set("Content-Length",I);A.body=await(0,JKA.concat)(E)}sJ.multipartPolicyName="multipartPolicy";var XKA=70,$KA=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function KKA(A){if(A.length>XKA)throw Error(`Multipart boundary "${A}" exceeds maximum length of 70 characters`);if(Array.from(A).some((Q)=>!$KA.has(Q)))throw Error(`Multipart boundary "${A}" contains invalid characters`)}function LKA(){return{name:sJ.multipartPolicyName,async sendRequest(A,Q){if(!A.multipartBody)return Q(A);if(A.body)throw Error("multipartBody and regular body cannot be set at the same time");let B=A.multipartBody.boundary,E=A.headers.get("Content-Type")??"multipart/mixed",I=E.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!I)throw Error(`Got multipart request body, but content-type header was not multipart: ${E}`);let[,C,D]=I;if(D&&B&&D!==B)throw Error(`Multipart boundary was specified as ${D} in the header, but got ${B} in the request body`);if(B??=D,B)KKA(B);else B=GKA();return A.headers.set("Content-Type",`${C}; boundary=${B}`),await WKA(A,A.multipartBody.parts,B),A.multipartBody=void 0,Q(A)}}}});var zc=K((vz)=>{Object.defineProperty(vz,"__esModule",{value:!0});vz.createPipelineFromOptions=jKA;var VKA=Zz(),zKA=Bz(),HKA=Wz(),wKA=Kz(),MKA=Lz(),RKA=Tz(),gKA=Oz(),Lc=H5(),TKA=fz(),OKA=xz(),qKA=hz(),Vc=_z();function jKA(A){let Q=(0,zKA.createEmptyPipeline)();if(Lc.isNodeLike){if(A.agent)Q.addPolicy((0,OKA.agentPolicy)(A.agent));if(A.tlsOptions)Q.addPolicy((0,qKA.tlsPolicy)(A.tlsOptions));Q.addPolicy((0,TKA.proxyPolicy)(A.proxyOptions)),Q.addPolicy((0,MKA.decompressResponsePolicy)())}if(Q.addPolicy((0,gKA.formDataPolicy)(),{beforePolicies:[Vc.multipartPolicyName]}),Q.addPolicy((0,wKA.userAgentPolicy)(A.userAgentOptions)),Q.addPolicy((0,Vc.multipartPolicy)(),{afterPhase:"Deserialize"}),Q.addPolicy((0,RKA.defaultRetryPolicy)(A.retryOptions),{phase:"Retry"}),Lc.isNodeLike)Q.addPolicy((0,HKA.redirectPolicy)(A.redirectOptions),{afterPhase:"Retry"});return Q.addPolicy((0,VKA.logPolicy)(A.loggingOptions),{afterPhase:"Sign"}),Q}});var Hc=K((oJ)=>{Object.defineProperty(oJ,"__esModule",{value:!0});oJ.apiVersionPolicyName=void 0;oJ.apiVersionPolicy=PKA;oJ.apiVersionPolicyName="ApiVersionPolicy";function PKA(A){return{name:oJ.apiVersionPolicyName,sendRequest:(Q,B)=>{let E=new URL(Q.url);if(!E.searchParams.get("api-version")&&A.apiVersion)Q.url=`${Q.url}${Array.from(E.searchParams.keys()).length>0?"&":"?"}api-version=${A.apiVersion}`;return B(Q)}}}});var wc=K((rJ)=>{Object.defineProperty(rJ,"__esModule",{value:!0});rJ.isOAuth2TokenCredential=kKA;rJ.isBearerTokenCredential=fKA;rJ.isBasicCredential=xKA;rJ.isApiKeyCredential=hKA;function kKA(A){return"getOAuth2Token"in A}function fKA(A){return"getBearerToken"in A}function xKA(A){return"username"in A&&"password"in A}function hKA(A){return"key"in A}});var R5=K((bz)=>{Object.defineProperty(bz,"__esModule",{value:!0});bz.ensureSecureConnection=vKA;var SKA=K5(),Mc=!1;function yKA(A,Q){if(Q.allowInsecureConnection&&A.allowInsecureConnection){let B=new URL(A.url);if(B.hostname==="localhost"||B.hostname==="127.0.0.1")return!0}return!1}function _KA(){if(SKA.logger.warning("Sending token over insecure transport. Assume any token issued is compromised."),typeof process?.emitWarning==="function"&&!Mc)Mc=!0,process.emitWarning("Sending token over insecure transport. Assume any token issued is compromised.")}function vKA(A,Q){if(!A.url.toLowerCase().startsWith("https://"))if(yKA(A,Q))_KA();else throw Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var Rc=K((tJ)=>{Object.defineProperty(tJ,"__esModule",{value:!0});tJ.apiKeyAuthenticationPolicyName=void 0;tJ.apiKeyAuthenticationPolicy=uKA;var bKA=R5();tJ.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function uKA(A){return{name:tJ.apiKeyAuthenticationPolicyName,async sendRequest(Q,B){(0,bKA.ensureSecureConnection)(Q,A);let E=(Q.authSchemes??A.authSchemes)?.find((I)=>I.kind==="apiKey");if(!E)return B(Q);if(E.apiKeyLocation!=="header")throw Error(`Unsupported API key location: ${E.apiKeyLocation}`);return Q.headers.set(E.name,A.credential.key),B(Q)}}}});var Tc=K((eJ)=>{Object.defineProperty(eJ,"__esModule",{value:!0});eJ.basicAuthenticationPolicyName=void 0;eJ.basicAuthenticationPolicy=dKA;var gc=R1(),mKA=R5();eJ.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function dKA(A){return{name:eJ.basicAuthenticationPolicyName,async sendRequest(Q,B){if((0,mKA.ensureSecureConnection)(Q,A),!(Q.authSchemes??A.authSchemes)?.find((F)=>F.kind==="http"&&F.scheme==="basic"))return B(Q);let{username:I,password:C}=A.credential,D=(0,gc.uint8ArrayToString)((0,gc.stringToUint8Array)(`${I}:${C}`,"utf-8"),"base64");return Q.headers.set("Authorization",`Basic ${D}`),B(Q)}}}});var Oc=K((AG)=>{Object.defineProperty(AG,"__esModule",{value:!0});AG.bearerAuthenticationPolicyName=void 0;AG.bearerAuthenticationPolicy=lKA;var Line truncated
`).join("")}return Q(A)}}}});var Jp=K((f1)=>{Object.defineProperty(f1,"__esModule",{value:!0});f1.auxiliaryAuthenticationHeaderPolicyName=void 0;f1.auxiliaryAuthenticationHeaderPolicy=VHA;var $HA=xH(),KHA=T5();f1.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var Yp="x-ms-authorization-auxiliary";async function LHA(A){let{scopes:Q,getAccessToken:B,request:E}=A,I={abortSignal:E.abortSignal,tracingOptions:E.tracingOptions};return(await B(Q,I))?.token??""}function VHA(A){let{credentials:Q,scopes:B}=A,E=A.logger||KHA.logger,I=new WeakMap;return{name:f1.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(C,D){if(!C.url.toLowerCase().startsWith("https://"))throw Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!Q||Q.length===0)return E.info(`${f1.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),D(C);let F=[];for(let J of Q){let G=I.get(J);if(!G)G=(0,$HA.createTokenCycler)(J),I.set(J,G);F.push(LHA({scopes:Array.isArray(B)?B:[B],request:C,getAccessToken:G,logger:E}))}let Y=(await Promise.all(F)).filter((J)=>Boolean(J));if(Y.length===0)return E.warning(`None of the auxiliary tokens are valid. ${Yp} header will not be set.`),D(C);return C.headers.set(Yp,Y.map((J)=>`Bearer ${J}`).join(", ")),D(C)}}}});var EE=K((WA)=>{Object.defineProperty(WA,"__esModule",{value:!0});WA.createFileFromStream=WA.createFile=WA.agentPolicyName=WA.agentPolicy=WA.auxiliaryAuthenticationHeaderPolicyName=WA.auxiliaryAuthenticationHeaderPolicy=WA.ndJsonPolicyName=WA.ndJsonPolicy=WA.bearerTokenAuthenticationPolicyName=WA.bearerTokenAuthenticationPolicy=WA.formDataPolicyName=WA.formDataPolicy=WA.tlsPolicyName=WA.tlsPolicy=WA.userAgentPolicyName=WA.userAgentPolicy=WA.defaultRetryPolicy=WA.tracingPolicyName=WA.tracingPolicy=WA.retryPolicy=WA.throttlingRetryPolicyName=WA.throttlingRetryPolicy=WA.systemErrorRetryPolicyName=WA.systemErrorRetryPolicy=WA.redirectPolicyName=WA.redirectPolicy=WA.getDefaultProxySettings=WA.proxyPolicyName=WA.proxyPolicy=WA.multipartPolicyName=WA.multipartPolicy=WA.logPolicyName=WA.logPolicy=WA.setClientRequestIdPolicyName=WA.setClientRequestIdPolicy=WA.exponentialRetryPolicyName=WA.exponentialRetryPolicy=WA.decompressResponsePolicyName=WA.decompressResponsePolicy=WA.isRestError=WA.RestError=WA.createPipelineRequest=WA.createHttpHeaders=WA.createDefaultHttpClient=WA.createPipelineFromOptions=WA.createEmptyPipeline=void 0;var zHA=oz();Object.defineProperty(WA,"createEmptyPipeline",{enumerable:!0,get:function(){return zHA.createEmptyPipeline}});var HHA=pl();Object.defineProperty(WA,"createPipelineFromOptions",{enumerable:!0,get:function(){return HHA.createPipelineFromOptions}});var wHA=il();Object.defineProperty(WA,"createDefaultHttpClient",{enumerable:!0,get:function(){return wHA.createDefaultHttpClient}});var MHA=nl();Object.defineProperty(WA,"createHttpHeaders",{enumerable:!0,get:function(){return MHA.createHttpHeaders}});var RHA=al();Object.defineProperty(WA,"createPipelineRequest",{enumerable:!0,get:function(){return RHA.createPipelineRequest}});var Gp=xZ();Object.defineProperty(WA,"RestError",{enumerable:!0,get:function(){return Gp.RestError}});Object.defineProperty(WA,"isRestError",{enumerable:!0,get:function(){return Gp.isRestError}});var Np=UH();Object.defineProperty(WA,"decompressResponsePolicy",{enumerable:!0,get:function(){return Np.decompressResponsePolicy}});Object.defineProperty(WA,"decompressResponsePolicyName",{enumerable:!0,get:function(){return Np.decompressResponsePolicyName}});var Up=ol();Object.defineProperty(WA,"exponentialRetryPolicy",{enumerable:!0,get:function(){return Up.exponentialRetryPolicy}});Object.defineProperty(WA,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return Up.exponentialRetryPolicyName}});var Zp=KH();Object.defineProperty(WA,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return Zp.setClientRequestIdPolicy}});Object.defineProperty(WA,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return Zp.setClientRequestIdPolicyName}});var Wp=tz();Object.defineProperty(WA,"logPolicy",{enumerable:!0,get:function(){return Wp.logPolicy}});Object.defineProperty(WA,"logPolicyName",{enumerable:!0,get:function(){return Wp.logPolicyName}});var Xp=NH();Object.defineProperty(WA,"multipartPolicy",{enumerable:!0,get:function(){return Xp.multipartPolicy}});Object.defineProperty(WA,"multipartPolicyName",{enumerable:!0,get:function(){return Xp.multipartPolicyName}});var hH=$H();Object.defineProperty(WA,"proxyPolicy",{enumerable:!0,get:function(){return hH.proxyPolicy}});Object.defineProperty(WA,"proxyPolicyName",{enumerable:!0,get:function(){return hH.proxyPolicyName}});Object.defineProperty(WA,"getDefaultProxySettings",{enumerable:!0,get:function(){return hH.getDefaultProxySettings}});var $p=ez();Object.defineProperty(WA,"redirectPolicy",{enumerable:!0,get:function(){return $p.redirectPolicy}});Object.defineProperty(WA,"redirect Line truncated
`&&L[S]!=="\r";S++)f+=L[S];if(f=f.trim(),f[f.length-1]==="/"&&(f=f.substring(0,f.length-1),S--),!C(f)){let r;return r=f.trim().length===0?"Invalid space after '<'.":"Tag '"+f+"' is an invalid name.",w("InvalidTag",r,M(L,S))}let v=Z(L,S);if(v===!1)return w("InvalidAttr","Attributes for '"+f+"' have open quote.",M(L,S));let a=v.value;if(S=v.index,a[a.length-1]==="/"){let r=S-a.length;a=a.substring(0,a.length-1);let $A=$(a,H);if($A!==!0)return w($A.err.code,$A.err.msg,M(L,r+$A.err.line));h=!0}else if(q){if(!v.tagClosed)return w("InvalidTag","Closing tag '"+f+"' doesn't have proper closing.",M(L,S));if(a.trim().length>0)return w("InvalidTag","Closing tag '"+f+"' can't have attributes or invalid starting.",M(L,z));if(j.length===0)return w("InvalidTag","Closing tag '"+f+"' has not been opened.",M(L,z));{let r=j.pop();if(f!==r.tagName){let $A=M(L,r.tagStartPos);return w("InvalidTag","Expected closing tag '"+r.tagName+"' (opened in line "+$A.line+", col "+$A.col+") instead of closing tag '"+f+"'.",M(L,z))}j.length==0&&(P=!0)}}else{let r=$(a,H);if(r!==!0)return w(r.err.code,r.err.msg,M(L,S-a.length+r.err.line));if(P===!0)return w("InvalidXml","Multiple possible root nodes found.",M(L,S));H.unpairedTags.indexOf(f)!==-1||j.push({tagName:f,tagStartPos:z}),h=!0}for(S++;S<L.length;S++)if(L[S]==="<"){if(L[S+1]==="!"){S++,S=G(L,S);continue}if(L[S+1]!=="?")break;if(S=J(L,++S),S.err)return S}else if(L[S]==="&"){let r=V(L,S);if(r==-1)return w("InvalidChar","char '&' is not expected.",M(L,S));S=r}else if(P===!0&&!Y(L[S]))return w("InvalidXml","Extra text at the end",M(L,S));L[S]==="<"&&S--}}}return h?j.length==1?w("InvalidTag","Unclosed tag '"+j[0].tagName+"'.",M(L,j[0].tagStartPos)):!(j.length>0)||w("InvalidXml","Invalid '"+JSON.stringify(j.map((S)=>S.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):w("InvalidXml","Start tag expected.",1)}function Y(L){return L===" "||L==="\t"||L===`
`||L==="\r"}function J(L,H){let j=H;for(;H<L.length;H++)if(L[H]!="?"&&L[H]!=" ");else{let h=L.substr(j,H-j);if(H>5&&h==="xml")return w("InvalidXml","XML declaration allowed only at the start of the document.",M(L,H));if(L[H]=="?"&&L[H+1]==">"){H++;break}}return H}function G(L,H){if(L.length>H+5&&L[H+1]==="-"&&L[H+2]==="-"){for(H+=3;H<L.length;H++)if(L[H]==="-"&&L[H+1]==="-"&&L[H+2]===">"){H+=2;break}}else if(L.length>H+8&&L[H+1]==="D"&&L[H+2]==="O"&&L[H+3]==="C"&&L[H+4]==="T"&&L[H+5]==="Y"&&L[H+6]==="P"&&L[H+7]==="E"){let j=1;for(H+=8;H<L.length;H++)if(L[H]==="<")j++;else if(L[H]===">"&&(j--,j===0))break}else if(L.length>H+9&&L[H+1]==="["&&L[H+2]==="C"&&L[H+3]==="D"&&L[H+4]==="A"&&L[H+5]==="T"&&L[H+6]==="A"&&L[H+7]==="["){for(H+=8;H<L.length;H++)if(L[H]==="]"&&L[H+1]==="]"&&L[H+2]===">"){H+=2;break}}return H}let N='"',U="'";function Z(L,H){let j="",h="",P=!1;for(;H<L.length;H++){if(L[H]===N||L[H]===U)h===""?h=L[H]:h!==L[H]||(h="");else if(L[H]===">"&&h===""){P=!0;break}j+=L[H]}return h===""&&{value:j,index:H,tagClosed:P}}let X=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function $(L,H){let j=I(L,X),h={};for(let P=0;P<j.length;P++){if(j[P][1].length===0)return w("InvalidAttr","Attribute '"+j[P][2]+"' has no space in starting.",k(j[P]));if(j[P][3]!==void 0&&j[P][4]===void 0)return w("InvalidAttr","Attribute '"+j[P][2]+"' is without value.",k(j[P]));if(j[P][3]===void 0&&!H.allowBooleanAttributes)return w("InvalidAttr","boolean attribute '"+j[P][2]+"' is not allowed.",k(j[P]));let S=j[P][2];if(!g(S))return w("InvalidAttr","Attribute '"+S+"' is an invalid name.",k(j[P]));if(h.hasOwnProperty(S))return w("InvalidAttr","Attribute '"+S+"' is repeated.",k(j[P]));h[S]=1}return!0}function V(L,H){if(L[++H]===";")return-1;if(L[H]==="#")return function(h,P){let S=/\d/;for(h[P]==="x"&&(P++,S=/[\da-fA-F]/);P<h.length;P++){if(h[P]===";")return P;if(!h[P].match(S))break}return-1}(L,++H);let j=0;for(;H<L.length;H++,j++)if(!(L[H].match(/\w/)&&j<20)){if(L[H]===";")break;return-1}return H}function w(L,H,j){return{err:{code:L,msg:H,line:j.line||j,col:j.col}}}function g(L){return C(L)}function M(L,H){let j=L.substring(0,H).split(/\r?\n/);return{line:j.length,col:j[j.length-1].length+1}}function k(L){return L.startIndex+L[1].length}let d={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(L,H){return H},attributeValueProcessor:function(L,H){return H},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(L,H,j){return L},captureMetaData:!1},t;t=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class m{constructor(L){this.tagname=L,this.child=[],this[":@"]={}}add(L,H){L==="__proto__"&&(L="#__proto__"),this.child.push({[L]:H})}addChild(L,H){L.tagname==="__proto__"&&(L.tagname="#__proto__"),L[":@"]&&Object.keys(L[":@"]).length>0?this.child.push({[L.tagname]:L.child,":@":L[":@"]}):this.child.push({[L.tagname]:L.child}),H!==void 0&&(this.child[this.child.length-1][t]={startIndex:H})}static getMetaDataSymbol(){return t}}function n(L,H){let j={};if(L[H+3]!=="O"||L[H+4]!=="C"||L[H+5]!=="T"||L[H+6]!=="Y"||L[H+7]!=="P"||L[H+8]!=="E")throw Error("Invalid Tag instead of DOCTYPE");{H+=9;let h=1,P=!1,S=!1,z="";for(;H<L.length;H++)if(L[H]!=="<"||S)if(L[H]===">"){if(S?L[H-1]==="-"&&L[H-2]==="-"&&(S=!1,h--):h--,h===0)break}else L[H]==="["?P=!0:z+=L[H];else{if(P&&i(L,"!ENTITY",H)){let q,f;H+=7,[q,f,H]=x(L,H+1),f.indexOf("&")===-1&&(j[q]={regx:RegExp(`&${q};`,"g"),val:f})}else if(P&&i(L,"!ELEMENT",H)){H+=8;let{index:q}=CA(L,H+1);H=q}else if(P&&i(L,"!ATTLIST",H))H+=8;else if(P&&i(L,"!NOTATION",H)){H+=9;let{index:q}=l(L,H+1);H=q}else{if(!i(L,"!--",H))throw Error("Invalid DOCTYPE");S=!0}h++,z=""}if(h!==0)throw Error("Unclosed DOCTYPE")}return{entities:j,i:H}}let QA=(L,H)=>{for(;H<L.length&&/\s/.test(L[H]);)H++;return H};function x(L,H){H=QA(L,H);let j="";for(;H<L.length&&!/\s/.test(L[H])&&L[H]!=='"'&&L[H]!=="'";)j+=L[H],H++;if(KA(j),H=QA(L,H),L.substring(H,H+6).toUpperCase()==="SYSTEM")throw Error("External entities are not supported");if(L[H]==="%")throw Error("Parameter entities are not supported");let h="";return[H,h]=u(L,H,"entity"),[j,h,--H]}function l(L,H){H=QA(L,H);let j="";for(;H<L.length&&!/\s/.test(L[H]);)j+=L[H],H++;KA(j),H=QA(L,H);let h=L.substring(H,H+6).toUpperCase();if(h!=="SYSTEM"&&h!=="PUBLIC")throw Error(`Expected SYSTEM or PUBLIC, found "${h}"`);H+=h.length,H=QA(L,H);let P=null,S=null;if(h==="PUBLIC")[H,P]=u(L,H,"publicIdentifier"),L[H=QA(L,H)]!=='"'&&L[H]!=="'"||([H,S]=u(L,H,"systemIdentifier"));else if(h==="SYSTEM"&&([H,S]=u(L,H,"systemIdentifier"),!S))throw Error("MissLine truncated
`);let H=new m("!xml"),j=H,h="",P="";for(let S=0;S<L.length;S++)if(L[S]==="<")if(L[S+1]==="/"){let z=e(L,">",S,"Closing Tag is not closed."),q=L.substring(S+2,z).trim();if(this.options.removeNSPrefix){let a=q.indexOf(":");a!==-1&&(q=q.substr(a+1))}this.options.transformTagName&&(q=this.options.transformTagName(q)),j&&(h=this.saveTextToParentTag(h,j,P));let f=P.substring(P.lastIndexOf(".")+1);if(q&&this.options.unpairedTags.indexOf(q)!==-1)throw Error(`Unpaired tag can not be used as closing tag: </${q}>`);let v=0;f&&this.options.unpairedTags.indexOf(f)!==-1?(v=P.lastIndexOf(".",P.lastIndexOf(".")-1),this.tagsNodeStack.pop()):v=P.lastIndexOf("."),P=P.substring(0,v),j=this.tagsNodeStack.pop(),h="",S=z}else if(L[S+1]==="?"){let z=EA(L,S,!1,"?>");if(!z)throw Error("Pi Tag is not closed.");if(h=this.saveTextToParentTag(h,j,P),this.options.ignoreDeclaration&&z.tagName==="?xml"||this.options.ignorePiTags);else{let q=new m(z.tagName);q.add(this.options.textNodeName,""),z.tagName!==z.tagExp&&z.attrExpPresent&&(q[":@"]=this.buildAttributesMap(z.tagExp,P,z.tagName)),this.addChild(j,q,P,S)}S=z.closeIndex+1}else if(L.substr(S+1,3)==="!--"){let z=e(L,"-->",S+4,"Comment is not closed.");if(this.options.commentPropName){let q=L.substring(S+4,z-2);h=this.saveTextToParentTag(h,j,P),j.add(this.options.commentPropName,[{[this.options.textNodeName]:q}])}S=z}else if(L.substr(S+1,2)==="!D"){let z=n(L,S);this.docTypeEntities=z.entities,S=z.i}else if(L.substr(S+1,2)==="!["){let z=e(L,"]]>",S,"CDATA is not closed.")-2,q=L.substring(S+9,z);h=this.saveTextToParentTag(h,j,P);let f=this.parseTextData(q,j.tagname,P,!0,!1,!0,!0);f==null&&(f=""),this.options.cdataPropName?j.add(this.options.cdataPropName,[{[this.options.textNodeName]:q}]):j.add(this.options.textNodeName,f),S=z+2}else{let z=EA(L,S,this.options.removeNSPrefix),q=z.tagName,f=z.rawTagName,v=z.tagExp,a=z.attrExpPresent,r=z.closeIndex;this.options.transformTagName&&(q=this.options.transformTagName(q)),j&&h&&j.tagname!=="!xml"&&(h=this.saveTextToParentTag(h,j,P,!1));let $A=j;$A&&this.options.unpairedTags.indexOf($A.tagname)!==-1&&(j=this.tagsNodeStack.pop(),P=P.substring(0,P.lastIndexOf("."))),q!==H.tagname&&(P+=P?"."+q:q);let ZA=S;if(this.isItStopNode(this.options.stopNodes,P,q)){let VA="";if(v.length>0&&v.lastIndexOf("/")===v.length-1)q[q.length-1]==="/"?(q=q.substr(0,q.length-1),P=P.substr(0,P.length-1),v=q):v=v.substr(0,v.length-1),S=z.closeIndex;else if(this.options.unpairedTags.indexOf(q)!==-1)S=z.closeIndex;else{let hQ=this.readStopNodeData(L,f,r+1);if(!hQ)throw Error(`Unexpected end of ${f}`);S=hQ.i,VA=hQ.tagContent}let SA=new m(q);q!==v&&a&&(SA[":@"]=this.buildAttributesMap(v,P,q)),VA&&(VA=this.parseTextData(VA,q,P,!0,a,!0,!0)),P=P.substr(0,P.lastIndexOf(".")),SA.add(this.options.textNodeName,VA),this.addChild(j,SA,P,ZA)}else{if(v.length>0&&v.lastIndexOf("/")===v.length-1){q[q.length-1]==="/"?(q=q.substr(0,q.length-1),P=P.substr(0,P.length-1),v=q):v=v.substr(0,v.length-1),this.options.transformTagName&&(q=this.options.transformTagName(q));let VA=new m(q);q!==v&&a&&(VA[":@"]=this.buildAttributesMap(v,P,q)),this.addChild(j,VA,P,ZA),P=P.substr(0,P.lastIndexOf("."))}else{let VA=new m(q);this.tagsNodeStack.push(j),q!==v&&a&&(VA[":@"]=this.buildAttributesMap(v,P,q)),this.addChild(j,VA,P,ZA),j=VA}h="",S=r}}else h+=L[S];return H.child};function BA(L,H,j,h){this.options.captureMetaData||(h=void 0);let P=this.options.updateTag(H.tagname,j,H[":@"]);P===!1||(typeof P=="string"?(H.tagname=P,L.addChild(H,h)):L.addChild(H,h))}let HB=function(L){if(this.options.processEntities){for(let H in this.docTypeEntities){let j=this.docTypeEntities[H];L=L.replace(j.regx,j.val)}for(let H in this.lastEntities){let j=this.lastEntities[H];L=L.replace(j.regex,j.val)}if(this.options.htmlEntities)for(let H in this.htmlEntities){let j=this.htmlEntities[H];L=L.replace(j.regex,j.val)}L=L.replace(this.ampEntity.regex,this.ampEntity.val)}return L};function WQ(L,H,j,h){return L&&(h===void 0&&(h=H.child.length===0),(L=this.parseTextData(L,H.tagname,j,!1,!!H[":@"]&&Object.keys(H[":@"]).length!==0,h))!==void 0&&L!==""&&H.add(this.options.textNodeName,L),L=""),L}function NB(L,H,j){let h="*."+j;for(let P in L){let S=L[P];if(h===S||H===S)return!0}return!1}function e(L,H,j,h){let P=L.indexOf(H,j);if(P===-1)throw Error(h);return P+H.length-1}function EA(L,H,j,h=">"){let P=function(r,$A,ZA=">"){let VA,SA="";for(let hQ=$A;hQ<r.length;hQ++){let rQ=r[hQ];if(VA)rQ===VA&&(VA="");else if(rQ==='"'||rQ==="'")VA=rQ;else if(rQ===ZA[0]){if(!ZA[1])return{data:SA,index:hQ};if(r[hQ+1]===ZA[1])return{data:SA,index:hQ}}else rQ==="\t"&&(rQ=" ");SA+=rQ}}(L,H+1,h);if(!P)return;let{data:S,index:z}=P,q=S.search(/\s/),f=S,v=!0;q!==-1&&(f=S.substring(0,q),S=S.substring(q+1).trimStart());let a=f;if(j){let r=f.indexOf(":");r!==-1&&(f=f.substr(r+1),v=f!==P.data.substr(r+1))}return{tagName:f,tagExp:S,closeIndex:z,attrExpPresent:v,rawTagName:a}}function BQ(L,H,j){let h=j,P=1;for(;j<L.length;j++)if(L[j]==="<")if(L[j+1]==="/"){let S=e(L,">",j,`${Line truncated
`),xQ(L,H,"",j)}function xQ(L,H,j,h){let P="",S=!1;for(let z=0;z<L.length;z++){let q=L[z],f=J0(q);if(f===void 0)continue;let v="";if(v=j.length===0?f:`${j}.${f}`,f===H.textNodeName){let ZA=q[f];VQ(v,H)||(ZA=H.tagValueProcessor(f,ZA),ZA=W(ZA,H)),S&&(P+=h),P+=ZA,S=!1;continue}if(f===H.cdataPropName){S&&(P+=h),P+=`<![CDATA[${q[f][0][H.textNodeName]}]]>`,S=!1;continue}if(f===H.commentPropName){P+=h+`<!--${q[f][0][H.textNodeName]}-->`,S=!0;continue}if(f[0]==="?"){let ZA=wA(q[":@"],H),VA=f==="?xml"?"":h,SA=q[f][0][H.textNodeName];SA=SA.length!==0?" "+SA:"",P+=VA+`<${f}${SA}${ZA}?>`,S=!0;continue}let a=h;a!==""&&(a+=H.indentBy);let r=h+`<${f}${wA(q[":@"],H)}`,$A=xQ(q[f],H,v,a);H.unpairedTags.indexOf(f)!==-1?H.suppressUnpairedNode?P+=r+">":P+=r+"/>":$A&&$A.length!==0||!H.suppressEmptyNode?$A&&$A.endsWith(">")?P+=r+`>${$A}${h}</${f}>`:(P+=r+">",$A&&h!==""&&($A.includes("/>")||$A.includes("</"))?P+=h+H.indentBy+$A+h:P+=$A,P+=`</${f}>`):P+=r+"/>",S=!0}return P}function J0(L){let H=Object.keys(L);for(let j=0;j<H.length;j++){let h=H[j];if(L.hasOwnProperty(h)&&h!==":@")return h}}function wA(L,H){let j="";if(L&&!H.ignoreAttributes)for(let h in L){if(!L.hasOwnProperty(h))continue;let P=H.attributeValueProcessor(h,L[h]);P=W(P,H),P===!0&&H.suppressBooleanAttributes?j+=` ${h.substr(H.attributeNamePrefix.length)}`:j+=` ${h.substr(H.attributeNamePrefix.length)}="${P}"`}return j}function VQ(L,H){let j=(L=L.substr(0,L.length-H.textNodeName.length-1)).substr(L.lastIndexOf(".")+1);for(let h in H.stopNodes)if(H.stopNodes[h]===L||H.stopNodes[h]==="*."+j)return!0;return!1}function W(L,H){if(L&&L.length>0&&H.processEntities)for(let j=0;j<H.entities.length;j++){let h=H.entities[j];L=L.replace(h.regex,h.val)}return L}let b={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(L,H){return H},attributeValueProcessor:function(L,H){return H},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function p(L){this.options=Object.assign({},b,L),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=JA(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=LA),this.processTextOrObjNode=NA,this.options.format?(this.indentate=AA,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function NA(L,H,j,h){let P=this.j2x(L,j+1,h.concat(H));return L[this.options.textNodeName]!==void 0&&Object.keys(L).length===1?this.buildTextValNode(L[this.options.textNodeName],H,P.attrStr,j):this.buildObjectNode(P.val,H,P.attrStr,j)}function AA(L){return this.options.indentBy.repeat(L)}function LA(L){return!(!L.startsWith(this.options.attributeNamePrefix)||L===this.options.textNodeName)&&L.substr(this.attrPrefixLen)}p.prototype.build=function(L){return this.options.preserveOrder?_A(L,this.options):(Array.isArray(L)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(L={[this.options.arrayNodeName]:L}),this.j2x(L,0,[]).val)},p.prototype.j2x=function(L,H,j){let h="",P="",S=j.join(".");for(let z in L)if(Object.prototype.hasOwnProperty.call(L,z))if(L[z]===void 0)this.isAttribute(z)&&(P+="");else if(L[z]===null)this.isAttribute(z)||z===this.options.cdataPropName?P+="":z[0]==="?"?P+=this.indentate(H)+"<"+z+"?"+this.tagEndChar:P+=this.indentate(H)+"<"+z+"/"+this.tagEndChar;else if(L[z]instanceof Date)P+=this.buildTextValNode(L[z],z,"",H);else if(typeof L[z]!="object"){let q=this.isAttribute(z);if(q&&!this.ignoreAttributesFn(q,S))h+=this.buildAttrPairStr(q,""+L[z]);else if(!q)if(z===this.options.textNodeName){let f=this.options.tagValueProcessor(z,""+L[z]);P+=this.replaceEntitiesValue(f)}else P+=this.buildTextValNode(L[z],z,"",H)}else if(Array.isArray(L[z])){let q=L[z].length,f="",v="";for(let a=0;a<q;a++){let r=L[z][a];if(r===void 0);else if(r===null)z[0]==="?"?P+=this.indentate(H)+"<"+z+"?"+this.tagEndChar:P+=this.indentate(H)+"<"+z+"/"+this.tagEndChar;else if(typeof r=="object")if(this.options.oneListGroup){let $A=this.j2x(r,H+1,j.concat(z));f+=$A.val,this.options.attributesGroupName&&r.hasOwnProperty(this.options.attributesGroupName)&&(v+=$A.attrStr)}else f+=this.processTextOrObjNode(r,z,H,j);else if(this.options.oneListGroup){let $A=this.options.tagValueProcessor(z,r);$A=this.replaceEntitiesValue($A),f+=$A}else f+=this.buildTextValNode(r,z,"",H)}this.options.oneListGroup&&(f=this.buildObjectNode(f,z,v,H)),P+=f}else if(this.options.attributesGroupName&&z===this.options.attributesGroupName){let q=Object.keys(L[z]),f=q.length;for(let v=0;v<f;v++)h+=this.buildAttrPairStr(q[v],""+L[z][q[v]])}else P+=this.processTextOrObjNode(L[z],z,H,j);return{attrStr:h,val:P}},p.prototype.buildAttrPairStr=function(L,H){return H=this.options.attributeValueProcessor(L,""+H),H=this.replaceEntitiesValue(H),this.options.suppressBooleanAttributes&&H==="true"?" "+L:" "+L+'="'+H+'"'},p.prototype.buildObjectNode=function(L,H,j,h){if(L==="")return H[0]==="?"?this.indentate(h)+"<"+H+j+"?"+this.tagEndChar:this.indentate(h)+"<"+H+j+this.closeTag(H)+this.tagEndChar;{let P="</"+H+this.tagEndChar,S="";return H[0]==="?"&&(S="?",P=""),!j&&j!==""||L.indexOf("<")!==-1?this.options.commentPropName!==!1&&H===this.options.commentPropName&&S.length===0?this.indentate(h)+`<!--${L}-->`+this.newLine:this.indentate(h)+"<"+H+j+S+this.tagEndChar+L+this.indentate(h)+P:this.indentate(h)+"<"+H+j+S+">"+L+P}},p.prototype.closeTag=function(L){let H="";return this.options.unpairedTags.indexOf(L)!==-1?this.options.suppressUnpairedNode||(H="/"):H=this.options.suppressEmptyNode?"/":`></${L}`,H},p.prototype.buildTextValNode=function(L,H,j,h){if(this.options.cdataPropName!==!1&&H===this.options.cdataPropName)return this.indentate(h)+`<![CDATA[${L}]]>`+this.newLine;if(this.options.commentPropName!==!1&&H===this.options.commentPropName)return this.indentate(h)+`<!--${L}-->`+this.newLine;if(H[0]==="?")return this.indentate(h)+"<"+H+j+"?"+this.tagEndChar;{let P=this.options.tagValueProcessor(H,L);return P=this.replaceEntitiesValue(P),P===""?this.indentate(h)+"<"+H+j+this.closeTag(H)+this.tagEndChar:this.indentate(h)+"<"+H+j+">"+P+"</"+H+this.tagEndChar}},p.prototype.replaceEntitiesValue=function(L){if(L&&L.length>0&&this.options.processEntities)for(let H=0;H<this.options.entities.length;H++){let j=this.options.entities[H];L=L.replace(j.regex,j.val)}return L};let UA={validate:F};fi.exports=Q})()});var Aw=K((MG)=>{Object.defineProperty(MG,"__esModule",{value:!0});MG.XML_CHARKEY=MG.XML_ATTRKEY=void 0;MG.XML_ATTRKEY="$";MG.XML_CHARKEY="_"});var yi=K((QW)=>{Object.defineProperty(QW,"__esModule",{value:!0});QW.stringifyXML=SMA;QW.parseXML=yMA;var Qw=xi(),hi=Aw();function Si(A){var Q;return{attributesGroupName:hi.XML_ATTRKEY,textNodeName:(Q=A.xmlCharKey)!==null&&Q!==void 0?Q:hi.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function xMA(A={}){var Q,B;return Object.assign(Object.assign({},Si(A)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(Q=A.rootName)!==null&&Q!==void 0?Q:"root",cdataPropName:(B=A.cdataPropName)!==null&&B!==void 0?B:"__cdata"})}function hMA(A={}){return Object.assign(Object.assign({},Si(A)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:A.stopNodes,processEntities:!0,trimValues:!1})}function SLine truncated
`;mA.HTTP_VERSION_1_1="HTTP/1.1";mA.EncryptionAlgorithmAES25="AES256";mA.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";mA.StorageBlobLoggingAllowedHeaderNames=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"];mA.StorageBlobLoggingAllowedQueryParameters=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];mA.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";mA.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";mA.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var ME=K((LQ)=>{Object.defineProperty(LQ,"__esModule",{value:!0});LQ.escapeURLPath=uMA;LQ.getValueInConnString=GF;LQ.extractConnectionStringParts=dMA;LQ.appendToURLPath=lMA;LQ.setURLParameter=ci;LQ.getURLParameter=li;LQ.setURLHost=pMA;LQ.getURLPath=iMA;LQ.getURLScheme=nMA;LQ.getURLPathAndQuery=aMA;LQ.getURLQueries=sMA;LQ.appendToURLQuery=oMA;LQ.truncatedISO8061Date=rMA;LQ.base64encode=pi;LQ.base64decode=tMA;LQ.generateBlockID=eMA;LQ.delay=ARA;LQ.padStart=ii;LQ.sanitizeURL=ni;LQ.sanitizeHeaders=QRA;LQ.iEqual=BRA;LQ.getAccountNameFromUrl=ai;LQ.isIpEndpointStyle=si;LQ.toBlobTagsString=ERA;LQ.toBlobTags=IRA;LQ.toTags=CRA;LQ.toQuerySerialization=DRA;LQ.parseObjectReplicationRecord=FRA;LQ.attachCredential=YRA;LQ.httpAuthorizationToString=JRA;LQ.BlobNameToString=DW;LQ.ConvertInternalResponseOfListBlobFlat=GRA;LQ.ConvertInternalResponseOfListBlobHierarchy=NRA;LQ.ExtractPageRangeInfoItems=URA;LQ.EscapePath=ZRA;LQ.assertResponse=WRA;var bMA=EE(),di=BB(),gG=IE();function uMA(A){let Q=new URL(A),B=Q.pathname;return B=B||"/",B=cMA(B),Q.pathname=B,Q.toString()}function mMA(A){let Q="";if(A.search("DevelopmentStorageProxyUri=")!==-1){let B=A.split(";");for(let E of B)if(E.trim().startsWith("DevelopmentStorageProxyUri="))Q=E.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}return Q}function GF(A,Q){let B=A.split(";");for(let E of B)if(E.trim().startsWith(Q))return E.trim().match(Q+"=(.*)")[1];return""}function dMA(A){let Q="";if(A.startsWith("UseDevelopmentStorage=true"))Q=mMA(A),A=gG.DevelopmentConnectionString;let B=GF(A,"BlobEndpoint");if(B=B.endsWith("/")?B.slice(0,-1):B,A.search("DefaultEndpointsProtocol=")!==-1&&A.search("AccountKey=")!==-1){let E="",I="",C=Buffer.from("accountKey","base64"),D="";if(I=GF(A,"AccountName"),C=Buffer.from(GF(A,"AccountKey"),"base64"),!B){E=GF(A,"DefaultEndpointsProtocol");let F=E Line truncated
`)+`
`+this.getCanonicalizedHeadersString(A)+this.getCanonicalizedResourceString(A),B=this.factory.computeHMACSHA256(Q);return A.headers.set(sE.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${B}`),A}getHeaderValueToSign(A,Q){let B=A.headers.get(Q);if(!B)return"";if(Q===sE.HeaderConstants.CONTENT_LENGTH&&B==="0")return"";return B}getCanonicalizedHeadersString(A){let Q=A.headers.headersArray().filter((E)=>{return E.name.toLowerCase().startsWith(sE.HeaderConstants.PREFIX_FOR_STORAGE)});Q.sort((E,I)=>{return(0,qRA.compareHeader)(E.name.toLowerCase(),I.name.toLowerCase())}),Q=Q.filter((E,I,C)=>{if(I>0&&E.name.toLowerCase()===C[I-1].name.toLowerCase())return!1;return!0});let B="";return Q.forEach((E)=>{B+=`${E.name.toLowerCase().trimRight()}:${E.value.trimLeft()}
`}),B}getCanonicalizedResourceString(A){let Q=(0,Qn.getURLPath)(A.url)||"/",B="";B+=`/${this.factory.accountName}${Q}`;let E=(0,Qn.getURLQueries)(A.url),I={};if(E){let C=[];for(let D in E)if(Object.prototype.hasOwnProperty.call(E,D)){let F=D.toLowerCase();I[F]=E[D],C.push(F)}C.sort();for(let D of C)B+=`
${D}:${decodeURIComponent(I[D])}`}return B}}GW.StorageSharedKeyCredentialPolicy=Bn});var UW=K((NW)=>{Object.defineProperty(NW,"__esModule",{value:!0});NW.Credential=void 0;class En{create(A,Q){throw Error("Method should be implemented in children classes.")}}NW.Credential=En});var WF=K((ZW)=>{Object.defineProperty(ZW,"__esModule",{value:!0});ZW.StorageSharedKeyCredential=void 0;var jRA=require("node:crypto"),PRA=Jw(),kRA=UW();class In extends kRA.Credential{accountName;accountKey;constructor(A,Q){super();this.accountName=A,this.accountKey=Buffer.from(Q,"base64")}create(A,Q){return new PRA.StorageSharedKeyCredentialPolicy(A,Q,this)}computeHMACSHA256(A){return(0,jRA.createHmac)("sha256",this.accountKey).update(A,"utf8").digest("base64")}}ZW.StorageSharedKeyCredential=In});var Gw=K((WW)=>{Object.defineProperty(WW,"__esModule",{value:!0});WW.AnonymousCredentialPolicy=void 0;var fRA=JW();class Cn extends fRA.CredentialPolicy{constructor(A,Q){super(A,Q)}}WW.AnonymousCredentialPolicy=Cn});var XF=K((XW)=>{Object.defineProperty(XW,"__esModule",{value:!0});XW.AnonymousCredential=void 0;var xRA=Gw(),hRA=UW();class Dn extends hRA.Credential{create(A,Q){return new xRA.AnonymousCredentialPolicy(A,Q)}}XW.AnonymousCredential=Dn});var Yn=K(($W)=>{Object.defineProperty($W,"__esModule",{value:!0});$W.BuffersStream=void 0;var SRA=require("node:stream");class Fn extends SRA.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(A,Q,B){super(B);this.buffers=A,this.byteLength=Q,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let E=0;for(let I of this.buffers)E+=I.byteLength;if(E<this.byteLength)throw Error("Data size shouldn't be larger than the total length of buffers.")}_read(A){if(this.pushedBytesLength>=this.byteLength)this.push(null);if(!A)A=this.readableHighWaterMark;let Q=[],B=0;while(B<A&&this.pushedBytesLength<this.byteLength){let E=this.byteLength-this.pushedBytesLength,I=this.buffers[this.bufferIndex].byteLength-this.byteOffsetInCurrentBuffer,C=Math.min(I,E);if(C>A-B){let D=this.byteOffsetInCurrentBuffer+A-B;Q.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,D)),this.pushedBytesLength+=A-B,this.byteOffsetInCurrentBuffer=D,B=A;break}else{let D=this.byteOffsetInCurrentBuffer+C;if(Q.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,D)),C===I)this.byteOffsetInCurrentBuffer=0,this.bufferIndex++;else this.byteOffsetInCurrentBuffer=D;this.pushedBytesLength+=C,B+=C}}if(Q.length>1)this.push(Buffer.concat(Q));else if(Q.length===1)this.push(Q[0])}}$W.BuffersStream=Fn});var Gn=K((LW)=>{Object.defineProperty(LW,"__esModule",{value:!0});LW.PooledBuffer=void 0;var yRA=RB(),_RA=Yn(),vRA=yRA.__importDefault(require("node:buffer")),KW=vRA.default.constants.MAX_LENGTH;class Jn{buffers=[];capacity;_size;get size(){return this._size}constructor(A,Q,B){this.capacity=A,this._size=0;let E=Math.ceil(A/KW);for(let I=0;I<E;I++){let C=I===E-1?A%KW:KW;if(C===0)C=KW;this.buffers.push(Buffer.allocUnsafe(C))}if(Q)this.fill(Q,B)}fill(A,Q){this._size=Math.min(this.capacity,Q);let B=0,E=0,I=0,C=0,D=0;while(D<this._size){let F=A[B],Y=this.buffers[E],J=F.copy(Y,I,C);if(D+=J,C+=J,I+=J,C===F.length)B++,C=0;if(I===Y.length)E++,I=0}if(A.splice(0,B),A.length>0)A[0]=A[0].slice(C)}getReadableStream(){return new _RA.BuffersStream(this.buffers,this.size)}}LW.PooledBuffer=Jn});var Un=K((VW)=>{Object.defineProperty(VW,"__esModule",{value:!0});VW.BufferScheduler=void 0;var bRA=require("events"),uRA=Gn();class Nn{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new bRA.EventEmitter;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(A,Q,B,E,I,C){if(Q<=0)throw RangeError(`bufferSize must be larger than 0, current is ${Q}`);if(B<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${B}`);if(I<=0)throw RangeError(`concurrency must be larger than 0, current is ${I}`);this.bufferSize=Q,this.maxBuffers=B,this.readable=A,this.outgoingHandler=E,this.concurrency=I,this.encoding=C}async do(){return new Promise((A,Q)=>{this.readable.on("data",(B)=>{if(B=typeof B==="string"?Buffer.from(B,this.encoding):B,this.appendUnresolvedData(B),!this.resolveData())this.readable.pause()}),this.readable.on("error",(B)=>{this.emitter.emit("error",B)}),this.readable.on("end",()=>{this.isStreamEnd=!0,this.emitter.emit("checkEnd")}),this.emitter.on("error",(B)=>{this.isError=!0,this.readable.pause(),Q(B)}),this.emitter.on("checkEnd",()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLength<this.bufferSize){let B=this.shiftBufferFromUnresolvedDataArray();this.outgoingHandler(()=>B.getReadableStream(),B.size,this.offset).then(A).catch(Q)}else if(this.unresolvedLength>=this.bufferSize)return;else A()})})}appendUnresolvedData(A){t Line truncated
`)+`
`+this.getCanonicalizedHeadersString(A)+this.getCanonicalizedResourceString(A),B=this.factory.computeHMACSHA256(Q);return A.headers.set(oE.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${B}`),A}getHeaderValueToSign(A,Q){let B=A.headers.get(Q);if(!B)return"";if(Q===oE.HeaderConstants.CONTENT_LENGTH&&B==="0")return"";return B}getCanonicalizedHeadersString(A){let Q=A.headers.headersArray().filter((E)=>{return E.name.toLowerCase().startsWith(oE.HeaderConstants.PREFIX_FOR_STORAGE)});Q.sort((E,I)=>{return(0,RgA.compareHeader)(E.name.toLowerCase(),I.name.toLowerCase())}),Q=Q.filter((E,I,C)=>{if(I>0&&E.name.toLowerCase()===C[I-1].name.toLowerCase())return!1;return!0});let B="";return Q.forEach((E)=>{B+=`${E.name.toLowerCase().trimRight()}:${E.value.trimLeft()}
`}),B}getCanonicalizedResourceString(A){let Q=(0,fn.getURLPath)(A.url)||"/",B="";B+=`/${this.factory.accountName}${Q}`;let E=(0,fn.getURLQueries)(A.url),I={};if(E){let C=[];for(let D in E)if(Object.prototype.hasOwnProperty.call(E,D)){let F=D.toLowerCase();I[F]=E[D],C.push(F)}C.sort();for(let D of C)B+=`
${D}:${decodeURIComponent(I[D])}`}return B}}qW.StorageSharedKeyCredentialPolicy=xn});var Sn=K((jW)=>{Object.defineProperty(jW,"__esModule",{value:!0});jW.StorageSharedKeyCredential=void 0;var ggA=require("node:crypto"),TgA=Lw(),OgA=TW();class hn extends OgA.Credential{accountName;accountKey;constructor(A,Q){super();this.accountName=A,this.accountKey=Buffer.from(Q,"base64")}create(A,Q){return new TgA.StorageSharedKeyCredentialPolicy(A,Q,this)}computeHMACSHA256(A){return(0,ggA.createHmac)("sha256",this.accountKey).update(A,"utf8").digest("base64")}}jW.StorageSharedKeyCredential=hn});var _n=K((PW)=>{Object.defineProperty(PW,"__esModule",{value:!0});PW.AbortError=void 0;class yn extends Error{constructor(A){super(A);this.name="AbortError"}}PW.AbortError=yn});var Vw=K((kW)=>{Object.defineProperty(kW,"__esModule",{value:!0});kW.AbortError=void 0;var qgA=_n();Object.defineProperty(kW,"AbortError",{enumerable:!0,get:function(){return qgA.AbortError}})});var zw=K((fW)=>{Object.defineProperty(fW,"__esModule",{value:!0});fW.logger=void 0;var jgA=j1();fW.logger=(0,jgA.createClientLogger)("storage-common")});var hW=K((xW)=>{Object.defineProperty(xW,"__esModule",{value:!0});xW.StorageRetryPolicyType=void 0;var vn;(function(A){A[A.EXPONENTIAL=0]="EXPONENTIAL",A[A.FIXED=1]="FIXED"})(vn||(xW.StorageRetryPolicyType=vn={}))});var Rw=K((EU)=>{Object.defineProperty(EU,"__esModule",{value:!0});EU.StorageRetryPolicy=void 0;EU.NewRetryPolicyFactory=fgA;var PgA=Vw(),kgA=BU(),bn=zD(),Hw=h1(),KF=zw(),ww=hW();function fgA(A){return{create:(Q,B)=>{return new Mw(Q,B,A)}}}var LF={maxRetryDelayInMs:120000,maxTries:4,retryDelayInMs:4000,retryPolicyType:ww.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},xgA=new PgA.AbortError("The operation was aborted.");class Mw extends kgA.BaseRequestPolicy{retryOptions;constructor(A,Q,B=LF){super(A,Q);this.retryOptions={retryPolicyType:B.retryPolicyType?B.retryPolicyType:LF.retryPolicyType,maxTries:B.maxTries&&B.maxTries>=1?Math.floor(B.maxTries):LF.maxTries,tryTimeoutInMs:B.tryTimeoutInMs&&B.tryTimeoutInMs>=0?B.tryTimeoutInMs:LF.tryTimeoutInMs,retryDelayInMs:B.retryDelayInMs&&B.retryDelayInMs>=0?Math.min(B.retryDelayInMs,B.maxRetryDelayInMs?B.maxRetryDelayInMs:LF.maxRetryDelayInMs):LF.retryDelayInMs,maxRetryDelayInMs:B.maxRetryDelayInMs&&B.maxRetryDelayInMs>=0?B.maxRetryDelayInMs:LF.maxRetryDelayInMs,secondaryHost:B.secondaryHost?B.secondaryHost:LF.secondaryHost}}async sendRequest(A){return this.attemptSendRequest(A,!1,1)}async attemptSendRequest(A,Q,B){let E=A.clone(),I=Q||!this.retryOptions.secondaryHost||!(A.method==="GET"||A.method==="HEAD"||A.method==="OPTIONS")||B%2===1;if(!I)E.url=(0,Hw.setURLHost)(E.url,this.retryOptions.secondaryHost);if(this.retryOptions.tryTimeoutInMs)E.url=(0,Hw.setURLParameter)(E.url,bn.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1000).toString());let C;try{if(KF.logger.info(`RetryPolicy: =====> Try=${B} ${I?"Primary":"Secondary"}`),C=await this._nextPolicy.sendRequest(E),!this.shouldRetry(I,B,C))return C;Q=Q||!I&&C.status===404}catch(D){if(KF.logger.error(`RetryPolicy: Caught error, message: ${D.message}, code: ${D.code}`),!this.shouldRetry(I,B,C,D))throw D}return await this.delay(I,B,A.abortSignal),this.attemptSendRequest(A,Q,++B)}shouldRetry(A,Q,B,E){if(Q>=this.retryOptions.maxTries)return KF.logger.info(`RetryPolicy: Attempt(s) ${Q} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let I=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(E){for(let C of I)if(E.name.toUpperCase().includes(C)||E.message.toUpperCase().includes(C)||E.code&&E.code.toString().toUpperCase()===C)return KF.logger.info(`RetryPolicy: Network error ${C} found, will retry.`),!0}if(B||E){let C=B?B.status:E?E.statusCode:0;if(!A&&C===404)return KF.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(C===503||C===500)return KF.logger.info(`RetryPolicy: Will retry for status code ${C}.`),!0}if(B){if(B?.status>=400){let C=B.headers.get(bn.HeaderConstants.X_MS_CopySourceErrorCode);if(C!==void 0)switch(C){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}}if(E?.code==="PARSE_ERROR"&&E?.message.startsWith('Error "Error: Unclosed root tag'))return KF.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0;return!1}async delay(A,Q,B){let E=0;if(A)switch(this.retryOptions.retryPolicyType){case ww.StorageRetryPolicyType.EXPONENTIAL:E=Math.min((Math.pow(2,Q-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ww.StorageRetryPolicyType.FIXED:E=this.retryOptions.retryDelayInMs;break}else E=Math.random()*1000;return KF.logger.info(`RetryPolicy: Delay for ${E}ms`),(0,Hw.delay)(E,B,xgA)}}EU.StorageRetryPolicy=Mw});var SW=K((VF)=>{Object.defineProperty(VF,"__esModule",{value:!0});VF.StorageRetryPolicyFactory=VF.StorageRetryPolicy=VF.StorageRetryPolicyType=void Line truncated
`)+`
`+E(C)+I(C),F=(0,pgA.createHmac)("sha256",A.accountKey).update(D,"utf8").digest("base64");C.headers.set(rE.HeaderConstants.AUTHORIZATION,`SharedKey ${A.accountName}:${F}`)}function B(C,D){let F=C.headers.get(D);if(!F)return"";if(D===rE.HeaderConstants.CONTENT_LENGTH&&F==="0")return"";return F}function E(C){let D=[];for(let[Y,J]of C.headers)if(Y.toLowerCase().startsWith(rE.HeaderConstants.PREFIX_FOR_STORAGE))D.push({name:Y,value:J});D.sort((Y,J)=>{return(0,igA.compareHeader)(Y.name.toLowerCase(),J.name.toLowerCase())}),D=D.filter((Y,J,G)=>{if(J>0&&Y.name.toLowerCase()===G[J-1].name.toLowerCase())return!1;return!0});let F="";return D.forEach((Y)=>{F+=`${Y.name.toLowerCase().trimRight()}:${Y.value.trimLeft()}
`}),F}function I(C){let D=(0,an.getURLPath)(C.url)||"/",F="";F+=`/${A.accountName}${D}`;let Y=(0,an.getURLQueries)(C.url),J={};if(Y){let G=[];for(let N in Y)if(Object.prototype.hasOwnProperty.call(Y,N)){let U=N.toLowerCase();J[U]=Y[N],G.push(U)}G.sort();for(let N of G)F+=`
${N}:${decodeURIComponent(J[N])}`}return F}return{name:fG.storageSharedKeyCredentialPolicyName,async sendRequest(C,D){return Q(C),D(C)}}}});var on=K((xG)=>{Object.defineProperty(xG,"__esModule",{value:!0});xG.storageRequestFailureDetailsParserPolicyName=void 0;xG.storageRequestFailureDetailsParserPolicy=agA;xG.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function agA(){return{name:xG.storageRequestFailureDetailsParserPolicyName,async sendRequest(A,Q){try{return await Q(A)}catch(B){if(typeof B==="object"&&B!==null&&B.response&&B.response.parsedBody){if(B.response.parsedBody.code==="InvalidHeaderValue"&&B.response.parsedBody.HeaderName==="x-ms-version")B.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.
`}throw B}}}}});var qw=K((gB)=>{Object.defineProperty(gB,"__esModule",{value:!0});gB.BaseRequestPolicy=gB.getCachedDefaultHttpClient=void 0;var RE=RB();RE.__exportStar(Un(),gB);var sgA=Zn();Object.defineProperty(gB,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return sgA.getCachedDefaultHttpClient}});RE.__exportStar(Tn(),gB);RE.__exportStar(kn(),gB);RE.__exportStar(TW(),gB);RE.__exportStar(Sn(),gB);RE.__exportStar(SW(),gB);var ogA=BU();Object.defineProperty(gB,"BaseRequestPolicy",{enumerable:!0,get:function(){return ogA.BaseRequestPolicy}});RE.__exportStar(Xw(),gB);RE.__exportStar(MW(),gB);RE.__exportStar(Ww(),gB);RE.__exportStar(dn(),gB);RE.__exportStar(cn(),gB);RE.__exportStar(hW(),gB);RE.__exportStar(Rw(),gB);RE.__exportStar(nn(),gB);RE.__exportStar(Lw(),gB);RE.__exportStar(sn(),gB);RE.__exportStar(SW(),gB);RE.__exportStar(on(),gB)});var rn=K((hG)=>{Object.defineProperty(hG,"__esModule",{value:!0});hG.storageBrowserPolicyName=void 0;hG.storageBrowserPolicy=egA;var rgA=BB(),jw=IE(),tgA=ME();hG.storageBrowserPolicyName="storageBrowserPolicy";function egA(){return{name:hG.storageBrowserPolicyName,async sendRequest(A,Q){if(rgA.isNodeLike)return Q(A);if(A.method==="GET"||A.method==="HEAD")A.url=(0,tgA.setURLParameter)(A.url,jw.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString());return A.headers.delete(jw.HeaderConstants.COOKIE),A.headers.delete(jw.HeaderConstants.CONTENT_LENGTH),Q(A)}}}});var en=K((yG)=>{Object.defineProperty(yG,"__esModule",{value:!0});yG.storageRetryPolicyName=void 0;yG.storageRetryPolicy=CTA;var ATA=t5(),tn=EE(),QTA=BB(),kw=QU(),BTA=IE(),Pw=ME(),wD=RG();yG.storageRetryPolicyName="storageRetryPolicy";var SG={maxRetryDelayInMs:120000,maxTries:4,retryDelayInMs:4000,retryPolicyType:kw.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},ETA=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],ITA=new ATA.AbortError("The operation was aborted.");function CTA(A={}){let Q=A.retryPolicyType??SG.retryPolicyType,B=A.maxTries??SG.maxTries,E=A.retryDelayInMs??SG.retryDelayInMs,I=A.maxRetryDelayInMs??SG.maxRetryDelayInMs,C=A.secondaryHost??SG.secondaryHost,D=A.tryTimeoutInMs??SG.tryTimeoutInMs;function F({isPrimaryRetry:J,attempt:G,response:N,error:U}){if(G>=B)return wD.logger.info(`RetryPolicy: Attempt(s) ${G} >= maxTries ${B}, no further try.`),!1;if(U){for(let Z of ETA)if(U.name.toUpperCase().includes(Z)||U.message.toUpperCase().includes(Z)||U.code&&U.code.toString().toUpperCase()===Z)return wD.logger.info(`RetryPolicy: Network error ${Z} found, will retry.`),!0;if(U?.code==="PARSE_ERROR"&&U?.message.startsWith('Error "Error: Unclosed root tag'))return wD.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(N||U){let Z=N?.status??U?.statusCode??0;if(!J&&Z===404)return wD.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(Z===503||Z===500)return wD.logger.info(`RetryPolicy: Will retry for status code ${Z}.`),!0}return!1}function Y(J,G){let N=0;if(J)switch(Q){case kw.StorageRetryPolicyType.EXPONENTIAL:N=Math.min((Math.pow(2,G-1)-1)*E,I);break;case kw.StorageRetryPolicyType.FIXED:N=E;break}else N=Math.random()*1000;return wD.logger.info(`RetryPolicy: Delay for ${N}ms`),N}return{name:yG.storageRetryPolicyName,async sendRequest(J,G){if(D)J.url=(0,Pw.setURLParameter)(J.url,BTA.URLConstants.Parameters.TIMEOUT,String(Math.floor(D/1000)));let N=J.url,U=C?(0,Pw.setURLHost)(J.url,C):void 0,Z=!1,X=1,$=!0,V,w;while($){let g=Z||!U||!["GET","HEAD","OPTIONS"].includes(J.method)||X%2===1;J.url=g?N:U,V=void 0,w=void 0;try{wD.logger.info(`RetryPolicy: =====> Try=${X} ${g?"Primary":"Secondary"}`),V=await G(J),Z=Z||!g&&V.status===404}catch(M){if((0,tn.isRestError)(M))wD.logger.error(`RetryPolicy: Caught error, message: ${M.message}, code: ${M.code}`),w=M;else throw wD.logger.error(`RetryPolicy: Caught error, message: ${(0,QTA.getErrorMessage)(M)}`),M}if($=F({isPrimaryRetry:g,attempt:X,response:V,error:w}),$)await(0,Pw.delay)(Y(g,X),J.abortSignal,ITA);X++}if(V)return V;throw w??new tn.RestError("RetryPolicy failed without known error.")}}}});var fw=K((_G)=>{Object.defineProperty(_G,"__esModule",{value:!0});_G.storageSharedKeyCredentialPolicyName=void 0;_G.storageSharedKeyCredentialPolicy=YTA;var DTA=require("node:crypto"),tE=IE(),Aa=ME(),FTA=Yw();_G.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function YTA(A){function Q(C){if(C.headers.set(tE.HeaderConstants.X_MS_DATE,new Date().toUTCString()),C.body&&(typeof C.body==="string"||Buffer.isBuffer(C.body))&&C.body.length>0)C.headers.set(tE.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(C.body));let D=[C.method.toUpperCase(),B(C,tE.HeaderConstants.CONTENT_LANGUAGE),B(C,tE.HeaderConstants.CONTENT_ENCODING),B(C,tE.HeaderConstants.CONTENT_LENGTH),B(C,tE.HeaderConstants.CONTENT_MD5),B(C,tE.HeaderConstants.CONTENT_TYPE),B(C,tE.HeaderConstants.DATE),B(C,tE Line truncated
`)+`
`+E(C)+I(C),F=(0,DTA.createHmac)("sha256",A.accountKey).update(D,"utf8").digest("base64");C.headers.set(tE.HeaderConstants.AUTHORIZATION,`SharedKey ${A.accountName}:${F}`)}function B(C,D){let F=C.headers.get(D);if(!F)return"";if(D===tE.HeaderConstants.CONTENT_LENGTH&&F==="0")return"";return F}function E(C){let D=[];for(let[Y,J]of C.headers)if(Y.toLowerCase().startsWith(tE.HeaderConstants.PREFIX_FOR_STORAGE))D.push({name:Y,value:J});D.sort((Y,J)=>{return(0,FTA.compareHeader)(Y.name.toLowerCase(),J.name.toLowerCase())}),D=D.filter((Y,J,G)=>{if(J>0&&Y.name.toLowerCase()===G[J-1].name.toLowerCase())return!1;return!0});let F="";return D.forEach((Y)=>{F+=`${Y.name.toLowerCase().trimRight()}:${Y.value.trimLeft()}
`}),F}function I(C){let D=(0,Aa.getURLPath)(C.url)||"/",F="";F+=`/${A.accountName}${D}`;let Y=(0,Aa.getURLQueries)(C.url),J={};if(Y){let G=[];for(let N in Y)if(Object.prototype.hasOwnProperty.call(Y,N)){let U=N.toLowerCase();J[U]=Y[N],G.push(U)}G.sort();for(let N of G)F+=`
${N}:${decodeURIComponent(J[N])}`}return F}return{name:_G.storageSharedKeyCredentialPolicyName,async sendRequest(C,D){return Q(C),D(C)}}}});var Ba=K((yW)=>{Object.defineProperty(yW,"__esModule",{value:!0});yW.StorageBrowserPolicy=void 0;var JTA=e5(),GTA=BB(),xw=IE(),NTA=ME();class Qa extends JTA.BaseRequestPolicy{constructor(A,Q){super(A,Q)}async sendRequest(A){if(GTA.isNodeLike)return this._nextPolicy.sendRequest(A);if(A.method.toUpperCase()==="GET"||A.method.toUpperCase()==="HEAD")A.url=(0,NTA.setURLParameter)(A.url,xw.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString());return A.headers.remove(xw.HeaderConstants.COOKIE),A.headers.remove(xw.HeaderConstants.CONTENT_LENGTH),this._nextPolicy.sendRequest(A)}}yW.StorageBrowserPolicy=Qa});var hw=K((vG)=>{Object.defineProperty(vG,"__esModule",{value:!0});vG.StorageBrowserPolicyFactory=vG.StorageBrowserPolicy=void 0;var Ea=Ba();Object.defineProperty(vG,"StorageBrowserPolicy",{enumerable:!0,get:function(){return Ea.StorageBrowserPolicy}});class Ia{create(A,Q){return new Ea.StorageBrowserPolicy(A,Q)}}vG.StorageBrowserPolicyFactory=Ia});var Ca=K((bG)=>{Object.defineProperty(bG,"__esModule",{value:!0});bG.storageCorrectContentLengthPolicyName=void 0;bG.storageCorrectContentLengthPolicy=ZTA;var UTA=IE();bG.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function ZTA(){function A(Q){if(Q.body&&(typeof Q.body==="string"||Buffer.isBuffer(Q.body))&&Q.body.length>0)Q.headers.set(UTA.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(Q.body))}return{name:bG.storageCorrectContentLengthPolicyName,async sendRequest(Q,B){return A(Q),B(Q)}}}});var zF=K((S0)=>{Object.defineProperty(S0,"__esModule",{value:!0});S0.Pipeline=S0.StorageOAuthScopes=void 0;S0.isPipelineLike=wTA;S0.newPipeline=MTA;S0.getCoreClientOptions=gTA;S0.getCredentialFromPipeline=Na;var Ja=AW(),Da=EE(),Fa=x0(),Ya=Bw(),Sw=LG(),WTA=RG(),XTA=QU(),Ga=WF(),yw=XF(),IU=IE();Object.defineProperty(S0,"StorageOAuthScopes",{enumerable:!0,get:function(){return IU.StorageOAuthScopes}});var $TA=qw(),KTA=rn(),LTA=en(),VTA=fw(),zTA=hw(),HTA=Ca();function wTA(A){if(!A||typeof A!=="object")return!1;let Q=A;return Array.isArray(Q.factories)&&typeof Q.options==="object"&&typeof Q.toServiceClientOptions==="function"}class _w{factories;options;constructor(A,Q={}){this.factories=A,this.options=Q}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}S0.Pipeline=_w;function MTA(A,Q={}){if(!A)A=new yw.AnonymousCredential;let B=new _w([],Q);return B._credential=A,B}function RTA(A){let Q=[TTA,Ua,OTA,qTA,jTA,PTA,fTA];if(A.factories.length){let B=A.factories.filter((E)=>{return!Q.some((I)=>I(E))});if(B.length){let E=B.some((I)=>kTA(I));return{wrappedPolicies:(0,Ja.createRequestPolicyFactoryPolicy)(B),afterRetry:E}}}return}function gTA(A){let{httpClient:Q,...B}=A.options,E=A._coreHttpClient;if(!E)E=Q?(0,Ja.convertHttpClient)(Q):(0,$TA.getCachedDefaultHttpClient)(),A._coreHttpClient=E;let I=A._corePipeline;if(!I){let C=`azsdk-js-azure-storage-blob/${IU.SDK_VERSION}`,D=B.userAgentOptions&&B.userAgentOptions.userAgentPrefix?`${B.userAgentOptions.userAgentPrefix} ${C}`:`${C}`;I=(0,Fa.createClientPipeline)({...B,loggingOptions:{additionalAllowedHeaderNames:IU.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:IU.StorageBlobLoggingAllowedQueryParameters,logger:WTA.logger.info},userAgentOptions:{userAgentPrefix:D},serializationOptions:{stringifyXML:Ya.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Ya.parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}}),I.removePolicy({phase:"Retry"}),I.removePolicy({name:Da.decompressResponsePolicyName}),I.addPolicy((0,HTA.storageCorrectContentLengthPolicy)()),I.addPolicy((0,LTA.storageRetryPolicy)(B.retryOptions),{phase:"Retry"}),I.addPolicy((0,KTA.storageBrowserPolicy)());let F=RTA(A);if(F)I.addPolicy(F.wrappedPolicies,F.afterRetry?{afterPhase:"Retry"}:void 0);let Y=Na(A);if((0,Sw.isTokenCredential)(Y))I.addPolicy((0,Da.bearerTokenAuthenticationPolicy)({credential:Y,scopes:B.audience??IU.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:Fa.authorizeRequestOnTenantChallenge}}),{phase:"Sign"});else if(Y instanceof Ga.StorageSharedKeyCredential)I.addPolicy((0,VTA.storageSharedKeyCredentialPolicy)({accountName:Y.accountName,accountKey:Y.accountKey}),{phase:"Sign"});A._corePipeline=I}return{...B,allowInsecureConnection:!0,httpClient:E,pipeline:I}}function Na(A){if(A._credential)return A._credential;let Q=new yw.AnonymousCredential;for(let B of A.factories)if((0,Sw.isTokenCredential)(B.credential))Q=B.credential;else if(Ua(B))return B;return Q}function Ua(A){if(A instanceof Ga.StorageSharedKeyCredential)return!0;return A.constructor.name==="StorageSharedKeyCredential"}function TTA(A){if(A instanceof yw.AnonymousCredential)return!0;return A.constructor.name==="AnonymousCredential"}function OTA(A){return(0,Sw.isTokenCredential)(A.credential)}fun Line truncated
`),C=Q.computeHMACSHA256(I);return{sasQueryParameters:new u1.SASQueryParameters(A.version,C,E,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType),stringToSign:I}}function WqA(A,Q){if(A=d1(A),!A.identifier&&!(A.permissions&&A.expiresOn))throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=_1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=v1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",m1(Q.accountName,A.containerName,A.blobName),A.identifier,A.ipRange?(0,b1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.cacheControl?A.cacheControl:"",A.contentDisposition?A.contentDisposition:"",A.contentEncoding?A.contentEncoding:"",A.contentLanguage?A.contentLanguage:"",A.contentType?A.contentType:""].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new u1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType),stringToSign:C}}function XqA(A,Q){if(A=d1(A),!A.identifier&&!(A.permissions&&A.expiresOn))throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=_1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=v1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",m1(Q.accountName,A.containerName,A.blobName),A.identifier,A.ipRange?(0,b1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.encryptionScope,A.cacheControl?A.cacheControl:"",A.contentDisposition?A.contentDisposition:"",A.contentEncoding?A.contentEncoding:"",A.contentLanguage?A.contentLanguage:"",A.contentType?A.contentType:""].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new u1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,void 0,void 0,void 0,A.encryptionScope),stringToSign:C}}function $qA(A,Q){if(A=d1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=_1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=v1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",m1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.ipRange?(0,b1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new u1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey),stringToSign:C}}function KqA(A,Q){if(A=d1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=_1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=v1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",m1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,A.ipRange?(0,b1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new u1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId),stringToSign:C}}function LqA(A,Q){if(A=d1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=_1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=v1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",m1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,A.ipRange?(0,b1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.encryptionScope,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new u1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId,A.encryptionScope),stringToSign:C}}function VqA(A,Q){if(A=d1(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",E=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",E=A.versionId}let I;if(A.permissions)if(A.blobName)I=_1.BlobSASPermissions.parse(A.permissions.toString()).toString();else I=v1.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[I?I:"",A.startsOn?(0,bB.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,bB.truncatedISO8061Date)(A.expiresOn,!1):"",m1(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,bB.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,void 0,void 0,A.ipRange?(0,b1.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,E,A.encryptionScope,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new u1.SASQueryParameters(A.version,D,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId,A.encryptionScope),stringToSign:C}}function m1(A,Q,B){let E=[`/blob/${A}/${Q}`];if(B)E.push(`/${B}`);return E.join("")}function d1(A){let Q=A.version?A.version:Qs.SERVICE_VERSION;if(A.snapshotTime&&Q<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(A.blobName===void 0&&A.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(A.versionId&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(A.blobName===void 0&&A.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(A.permissions&&A.permissions.setImmutabilityPolicy&&Q<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(A.permissions&&A.permissions.deleteVersion&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(A.permissions&&A.permissions.permanentDelete&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(A.permissions&&A.permissions.tag&&Q<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(Q<"2020-02-10"&&A.permissions&&(A.permissions.move||A.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(Q<"2021-04-10"&&A.permissions&&A.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(Q<"2020-02-10"&&(A.preauthorizedAgentObjectId||A.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(A.encryptionScope&&Q<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return A.version=Q,A}});var YX=K((FX)=>{Object.defineProperty(FX,"__esModule",{value:!0});FX.BlobLeaseClient=void 0;var zqA=BB(),_0=IE(),DU=y1(),DX=ME();class Es{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(A,Q){let B=A.storageClientContext;if(this._url=A.url,A.name===void 0)this._isContainer=!0,this._containerOrBlobOperation=B.container;else this._isContainer=!1,this._containerOrBlobOperation=B.blob;if(!Q)Q=(0,zqA.randomUUID)();this._leaseId=Q}async acquireLease(A,Q={}){if(this._isContainer&&(Q.conditions?.ifMatch&&Q.conditions?.ifMatch!==_0.ETagNone||Q.conditions?.ifNoneMatch&&Q.conditions?.ifNoneMatch!==_0.ETagNone||Q.conditions?.tagConditions))throw 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 DU.tracingClient.withSpan("BlobLeaseClient-acquireLease",Q,async(B)=>{return(0,DX.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:Q.abortSignal,duration:A,modifiedAccessConditions:{...Q.conditions,ifTags:Q.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:B.tracingOptions}))})}async changeLease(A,Q={}){if(this._isContainer&&(Q.conditions?.ifMatch&&Q.conditions?.ifMatch!==_0.ETagNone||Q.conditions?.ifNoneMatch&&Q.conditions?.ifNoneMatch!==_0.ETagNone||Q.conditions?.tagConditions))throw 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 DU.tracingClient.withSpan("BlobLeaseClient-changeLease",Q,async(B)=>{let E=(0,DX.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,A,{abortSignal:Q.abortSignal,modifiedAccessConditions:{...Q.conditions,ifTags:Q.conditions?.tagConditions},tracingOptions:B.tracingOptions}));return this._leaseId=A,E})}async releaseLease(A={}){if(this._isContainer&&(A.conditions?.ifMatch&&A.conditions?.ifMatch!==_0.ETagNone||A.conditions?.ifNoneMatch&&A.conditions?.ifNoneMatch!==_0.ETagNone||A.conditions?.tagConditions))throw 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 DU.tracingClient.withSpan("BlobLeaseClient-releaseLease",A,async(Q)=>{return(0,DX.assertResponse)(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:A.abortSignal,modifiedAccessConditions:{...A.conditions,ifTags:A.conditions?.tagConditions},tracingOptions:Q.tracingOptions}))})}async renewLease(A={}){if(this._isContainer&&(A.conditions?.ifMatch&&A.conditions?.ifMatch!==_0.ETagNone||A.conditions?.ifNoneMatch&&A.conditions?.ifNoneMatch!==_0.ETagNon Line truncated
Polling from: ${B.config.operationLocation}
Operation status: ${G}
Polling status: ${hs.terminalStates.includes(G)?"Stopped":"Running"}`),G==="succeeded"){let N=D(J,B);if(N!==void 0)return{response:await Q(N).catch(xs({state:B,stateProxy:E,isOperationError:F})),status:G}}return{response:J,status:G}}async function nqA(A){let{poll:Q,state:B,stateProxy:E,options:I,getOperationStatus:C,getResourceLocation:D,getOperationLocation:F,isOperationError:Y,withOperationLocation:J,getPollingInterval:G,processResult:N,getError:U,updateState:Z,setDelay:X,isDone:$,setErrorAsResult:V}=A,{operationLocation:w}=B.config;if(w!==void 0){let{response:g,status:M}=await iqA({poll:Q,getOperationStatus:C,state:B,stateProxy:E,operationLocation:w,getResourceLocation:D,isOperationError:Y,options:I});if(Ss({status:M,response:g,state:B,stateProxy:E,isDone:$,processResult:N,getError:U,setErrorAsResult:V}),!hs.terminalStates.includes(M)){let k=G===null||G===void 0?void 0:G(g);if(k)X(k);let d=F===null||F===void 0?void 0:F(g,B);if(d!==void 0){let t=w!==d;B.config.operationLocation=d,J===null||J===void 0||J(d,t)}else J===null||J===void 0||J(w,!1)}Z===null||Z===void 0||Z(B,g)}}TF.pollOperation=nqA});var BM=K((uB)=>{Object.defineProperty(uB,"__esModule",{value:!0});uB.pollHttpOperation=uB.isOperationError=uB.getResourceLocation=uB.getOperationStatus=uB.getOperationLocation=uB.initHttpOperation=uB.getStatusFromInitialResponse=uB.getErrorFromResponse=uB.parseRetryAfter=uB.inferLroMode=void 0;var ys=VX(),ew=KX();function _s(A){let{azureAsyncOperation:Q,operationLocation:B}=A;return B!==null&&B!==void 0?B:Q}function vs(A){return A.headers.location}function bs(A){return A.headers["operation-location"]}function us(A){return A.headers["azure-asyncoperation"]}function aqA(A){var Q;let{location:B,requestMethod:E,requestPath:I,resourceLocationConfig:C}=A;switch(E){case"PUT":return I;case"DELETE":return;case"PATCH":return(Q=D())!==null&&Q!==void 0?Q:I;default:return D()}function D(){switch(C){case"azure-async-operation":return;case"original-uri":return I;case"location":default:return B}}}function ms(A){let{rawResponse:Q,requestMethod:B,requestPath:E,resourceLocationConfig:I}=A,C=bs(Q),D=us(Q),F=_s({operationLocation:C,azureAsyncOperation:D}),Y=vs(Q),J=B===null||B===void 0?void 0:B.toLocaleUpperCase();if(F!==void 0)return{mode:"OperationLocation",operationLocation:F,resourceLocation:aqA({requestMethod:J,location:Y,requestPath:E,resourceLocationConfig:I})};else if(Y!==void 0)return{mode:"ResourceLocation",operationLocation:Y};else if(J==="PUT"&&E)return{mode:"Body",operationLocation:E};else return}uB.inferLroMode=ms;function ds(A){let{status:Q,statusCode:B}=A;if(typeof Q!=="string"&&Q!==void 0)throw Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${Q}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(Q===null||Q===void 0?void 0:Q.toLocaleLowerCase()){case void 0:return AM(B);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return ew.logger.verbose(`LRO: unrecognized operation status: ${Q}`),Q}}function sqA(A){var Q;let{status:B}=(Q=A.body)!==null&&Q!==void 0?Q:{};return ds({status:B,statusCode:A.statusCode})}function oqA(A){var Q,B;let{properties:E,provisioningState:I}=(Q=A.body)!==null&&Q!==void 0?Q:{},C=(B=E===null||E===void 0?void 0:E.provisioningState)!==null&&B!==void 0?B:I;return ds({status:C,statusCode:A.statusCode})}function AM(A){if(A===202)return"running";else if(A<300)return"succeeded";else return"failed"}function cs({rawResponse:A}){let Q=A.headers["retry-after"];if(Q!==void 0){let B=parseInt(Q);return isNaN(B)?rqA(new Date(Q)):B*1000}return}uB.parseRetryAfter=cs;function ls(A){let Q=ns(A,"error");if(!Q){ew.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!Q.code||!Q.message){ew.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return Q}uB.getErrorFromResponse=ls;function rqA(A){let Q=Math.floor(new Date().getTime()),B=A.getTime();if(Q<B)return B-Q;return}function ps(A){let{response:Q,state:B,operationLocation:E}=A;function I(){var D;switch((D=B.config.metadata)===null||D===void 0?void 0:D.mode){case void 0:return AM(Q.rawResponse.statusCode);case"Body":return QM(Q,B);default:return"running"}}let C=I();return C==="running"&&E===void 0?"succeeded":C}uB.getStatusFromInitialResponse=ps;async function tqA(A){let{stateProxy:Q,resourceLocationConfig:B,processResult:E,lro:I,setErrorAsResult:C}=A;return(0,ys.initOperation)({init:async()=>{let D=await I.sendInitialRequest(),F=ms({rawResponse:D.rawResponse,requestPath:I.requestPath,requestMethod:I.requestMethod,resourceLocationConfig:B});return Object.assign({response:D,operationLocation:F===null||F===void 0?void 0:FLine truncated
`);else D=[Q.accountName,E,I,C,A.startsOn?(0,B6.truncatedISO8061Date)(A.startsOn,!1):"",(0,B6.truncatedISO8061Date)(A.expiresOn,!1),A.ipRange?(0,xo.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",B,""].join(`
`);let F=Q.computeHMACSHA256(D);return{sasQueryParameters:new DPA.SASQueryParameters(B,F,E.toString(),I,C,A.protocol,A.startsOn,A.expiresOn,A.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,A.encryptionScope),stringToSign:D}}});var bo=K((F6)=>{Object.defineProperty(F6,"__esModule",{value:!0});F6.BlobServiceClient=void 0;var JPA=LG(),GPA=EE(),So=BB(),GU=zF(),NPA=LM(),I6=ME(),C6=WF(),MM=XF(),c0=ME(),l0=y1(),UPA=pX(),ZPA=aW(),yo=tX(),_o=wM(),vo=Q6();class D6 extends ZPA.StorageClient{serviceContext;static fromConnectionString(A,Q){Q=Q||{};let B=(0,I6.extractConnectionStringParts)(A);if(B.kind==="AccountConnString")if(So.isNodeLike){let E=new C6.StorageSharedKeyCredential(B.accountName,B.accountKey);if(!Q.proxyOptions)Q.proxyOptions=(0,GPA.getDefaultProxySettings)(B.proxyUri);let I=(0,GU.newPipeline)(E,Q);return new D6(B.url,I)}else throw Error("Account connection string is only supported in Node.js environment");else if(B.kind==="SASConnString"){let E=(0,GU.newPipeline)(new MM.AnonymousCredential,Q);return new D6(B.url+"?"+B.accountSas,E)}else throw Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(A,Q,B){let E;if((0,GU.isPipelineLike)(Q))E=Q;else if(So.isNodeLike&&Q instanceof C6.StorageSharedKeyCredential||Q instanceof MM.AnonymousCredential||(0,JPA.isTokenCredential)(Q))E=(0,GU.newPipeline)(Q,B);else E=(0,GU.newPipeline)(new MM.AnonymousCredential,B);super(A,E);this.serviceContext=this.storageClientContext.service}getContainerClient(A){return new NPA.ContainerClient((0,I6.appendToURLPath)(this.url,encodeURIComponent(A)),this.pipeline)}async createContainer(A,Q={}){return l0.tracingClient.withSpan("BlobServiceClient-createContainer",Q,async(B)=>{let E=this.getContainerClient(A),I=await E.create(B);return{containerClient:E,containerCreateResponse:I}})}async deleteContainer(A,Q={}){return l0.tracingClient.withSpan("BlobServiceClient-deleteContainer",Q,async(B)=>{return this.getContainerClient(A).delete(B)})}async undeleteContainer(A,Q,B={}){return l0.tracingClient.withSpan("BlobServiceClient-undeleteContainer",B,async(E)=>{let I=this.getContainerClient(B.destinationContainerName||A),C=I.storageClientContext.container,D=(0,c0.assertResponse)(await C.restore({deletedContainerName:A,deletedContainerVersion:Q,tracingOptions:E.tracingOptions}));return{containerClient:I,containerUndeleteResponse:D}})}async getProperties(A={}){return l0.tracingClient.withSpan("BlobServiceClient-getProperties",A,async(Q)=>{return(0,c0.assertResponse)(await this.serviceContext.getProperties({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async setProperties(A,Q={}){return l0.tracingClient.withSpan("BlobServiceClient-setProperties",Q,async(B)=>{return(0,c0.assertResponse)(await this.serviceContext.setProperties(A,{abortSignal:Q.abortSignal,tracingOptions:B.tracingOptions}))})}async getStatistics(A={}){return l0.tracingClient.withSpan("BlobServiceClient-getStatistics",A,async(Q)=>{return(0,c0.assertResponse)(await this.serviceContext.getStatistics({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async getAccountInfo(A={}){return l0.tracingClient.withSpan("BlobServiceClient-getAccountInfo",A,async(Q)=>{return(0,c0.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async listContainersSegment(A,Q={}){return l0.tracingClient.withSpan("BlobServiceClient-listContainersSegment",Q,async(B)=>{return(0,c0.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:Q.abortSignal,marker:A,...Q,include:typeof Q.include==="string"?[Q.include]:Q.include,tracingOptions:B.tracingOptions}))})}async findBlobsByTagsSegment(A,Q,B={}){return l0.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",B,async(E)=>{let I=(0,c0.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:B.abortSignal,where:A,marker:Q,maxPageSize:B.maxPageSize,tracingOptions:E.tracingOptions}));return{...I,_response:I._response,blobs:I.blobs.map((D)=>{let F="";if(D.tags?.blobTagSet.length===1)F=D.tags.blobTagSet[0].value;return{...D,tags:(0,I6.toTags)(D.tags),tagValue:F}})}})}async*findBlobsByTagsSegments(A,Q,B={}){let E;if(!!Q||Q===void 0)do E=await this.findBlobsByTagsSegment(A,Q,B),E.blobs=E.blobs||[],Q=E.continuationToken,yield E;while(Q)}async*findBlobsByTagsItems(A,Q={}){let B;for await(let E of this.findBlobsByTagsSegments(A,B,Q))yield*E.blobs}findBlobsByTags(A,Q={}){let B={...Q},E=this.findBlobsByTagsItems(A,B);return{next(){return E.next()},[Symbol.asyncIterator](){return this},byPage:(I={})=>{return this.findBlobsByTagsSegments(A,I.continuationToken,{maxPageSize:I.maxPageSize,...B})}}}async*listSegments(A,Q={}){let B;if(!!A||A===void 0)do B=await this.listContainersSegment(A,Q),B.containerItems=B.containerItems||[],A=B.continuationToken,yield await B;while(A)}async*listItems(A={}){let Q;for await(let B of this.listSegments(Q,A))yield*B.containerIte 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(Q);this.code=A,this.name="NetworkError"}}vI.NetworkError=gM;gM.isNetworkErrorCode=(A)=>{if(!A)return!1;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(A)};class TM extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`);this.name="UsageError"}}vI.UsageError=TM;TM.isUsageErrorMessage=(A)=>{if(!A)return!1;return A.includes("insufficient usage")}});var so=K((bI)=>{var VPA=bI&&bI.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),zPA=bI&&bI.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),HPA=bI&&bI.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))VPA(Q,A,B)}return zPA(Q,A),Q},wPA=bI&&bI.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(bI,"__esModule",{value:!0});bI.uploadCacheArchiveSDK=bI.UploadProgress=void 0;var qM=HPA(yB()),MPA=RM(),RPA=OM();class jM{constructor(A){this.contentLength=A,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(A){this.sentBytes=A}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let A=this.sentBytes,Q=(100*(A/this.contentLength)).toFixed(1),B=Date.now()-this.startTime,E=(A/1048576/(B/1000)).toFixed(1);if(qM.info(`Sent ${A} of ${this.contentLength} (${Q}%), ${E} MBs/sec`),this.isDone())this.displayedComplete=!0}onProgress(){return(A)=>{this.setSentBytes(A.loadedBytes)}}startDisplayTimer(A=1000){let Q=()=>{if(this.display(),!this.isDone())this.timeoutHandle=setTimeout(Q,A)};this.timeoutHandle=setTimeout(Q,A)}stopDisplayTimer(){if(this.timeoutHandle)clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0;this.display()}}bI.UploadProgress=jM;function gPA(A,Q,B){var E;return wPA(this,void 0,void 0,function*(){let I=new MPA.BlobClient(A),C=I.getBlockBlobClient(),D=new jM((E=B===null||B===void 0?void 0:B.archiveSizeBytes)!==null&&E!==void 0?E:0),F={blockSize:B===null||B===void 0?void 0:B.uploadChunkSize,concurrency:B===null||B===void 0?void 0:B.uploadConcurrency,maxSingleShotSize:134217728,onProgress:D.onProgress()};try{D.startDisplayTimer(),qM.debug(`BlobClient: ${I.name}:${I.accountName}:${I.containerName}`);let Y=yield C.uploadFile(Q,F);if(Y._response.status>=400)throw new RPA.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${Y._response.status}`);return Y}catch(Y){throw qM.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${Y.message}`),Y}finally{D.stopDisplayTimer()}})}bI.uploadCacheArchiveSDK=gPA});var kM=K((mB)=>{var TPA=mB&&mB.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),OPA=mB&&mB.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),qPA=mB&&mB.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))TPA(Q,A,B)}return OPA(Q,A),Q},U6=mB&&mB.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(mB,"__esModule",{value:!0});mB.retryHttpClientResponse=mB.retryTypedResponse=mB.retry=mB.isRetryableStatusCode=mB.isServerErrorStatusCode=mB.isSuccessStatusCode=void 0;var oo=qPA(yB()),N6=JD(),rG=G5();function jPA(A){if(!A)return!1;return A>=200&&A<300}mB.isSuccessStatusCode=jPA;function ro(A){if(!A)return!0;return A>=500}mB.isServerErrorStatusCode=ro;function to(A){if(!A)return!1;return[N6.HttpCodes.BadGateway,N6.HttpCodes.ServiceUnavailable,N6.HttpCodes.GatewayTimeout].includes(A)}mB.isRetryableStatusCode=to;function PPA(A){return U6(this,void 0,void 0,function*(){return new Promise((Q)=>setTimeout(Q,A))})}function PM(A,Q,B,E=rG.DefaultRetryAttempts,I=rG.DefaultRetryDelay,C=void 0){return U6(this,void 0,void 0,function*(){let D="",F=1;while(F<=E){let Y=void 0,J=void 0,G=!1;try{Y=yield Q()}catch(N){if(C)Y=C(N);G=!0,D=N.message}if(Y){if(J=B(Y),!ro(J))ret Line truncated
Other caches with similar key:`);for(let F of(C===null||C===void 0?void 0:C.artifactCaches)||[])CC.debug(`Cache Key: ${F===null||F===void 0?void 0:F.cacheKey}, Cache Version: ${F===null||F===void 0?void 0:F.cacheVersion}, Cache Scope: ${F===null||F===void 0?void 0:F.scope}, Cache Created: ${F===null||F===void 0?void 0:F.creationTime}`)}}})}function ZkA(A,Q,B){return uI(this,void 0,void 0,function*(){let E=new CkA.URL(A),I=(0,yM.getDownloadOptions)(B);if(E.hostname.endsWith(".blob.core.windows.net"))if(I.useAzureSdk)yield(0,K6.downloadCacheStorageSDK)(A,Q,I);else if(I.concurrentBlobDownloads)yield(0,K6.downloadCacheHttpClientConcurrent)(A,Q,I);else yield(0,K6.downloadCacheHttpClient)(A,Q);else yield(0,K6.downloadCacheHttpClient)(A,Q)})}qE.downloadCache=ZkA;function WkA(A,Q,B){return uI(this,void 0,void 0,function*(){let E=_M(),I=AN.getCacheVersion(Q,B===null||B===void 0?void 0:B.compressionMethod,B===null||B===void 0?void 0:B.enableCrossOsArchive),C={key:A,version:I,cacheSize:B===null||B===void 0?void 0:B.cacheSize};return yield(0,PF.retryTypedResponse)("reserveCache",()=>uI(this,void 0,void 0,function*(){return E.postJson(XU("caches"),C)}))})}qE.reserveCache=WkA;function Ur(A,Q){return`bytes ${A}-${Q}/*`}function XkA(A,Q,B,E,I){return uI(this,void 0,void 0,function*(){CC.debug(`Uploading chunk of size ${I-E+1} bytes at offset ${E} with content range: ${Ur(E,I)}`);let C={"Content-Type":"application/octet-stream","Content-Range":Ur(E,I)},D=yield(0,PF.retryHttpClientResponse)(`uploadChunk (start: ${E}, end: ${I})`,()=>uI(this,void 0,void 0,function*(){return A.sendStream("PATCH",Q,B(),C)}));if(!(0,PF.isSuccessStatusCode)(D.message.statusCode))throw Error(`Cache service responded with ${D.message.statusCode} during upload chunk.`)})}function $kA(A,Q,B,E){return uI(this,void 0,void 0,function*(){let I=AN.getArchiveFileSizeInBytes(B),C=XU(`caches/${Q.toString()}`),D=hM.openSync(B,"r"),F=(0,yM.getUploadOptions)(E),Y=AN.assertDefined("uploadConcurrency",F.uploadConcurrency),J=AN.assertDefined("uploadChunkSize",F.uploadChunkSize),G=[...Array(Y).keys()];CC.debug("Awaiting all uploads");let N=0;try{yield Promise.all(G.map(()=>uI(this,void 0,void 0,function*(){while(N<I){let U=Math.min(I-N,J),Z=N,X=N+U-1;N+=J,yield XkA(A,C,()=>hM.createReadStream(B,{fd:D,start:Z,end:X,autoClose:!1}).on("error",($)=>{throw Error(`Cache upload failed because file read failed with ${$.message}`)}),Z,X)}})))}finally{hM.closeSync(D)}return})}function KkA(A,Q,B){return uI(this,void 0,void 0,function*(){let E={size:B};return yield(0,PF.retryTypedResponse)("commitCache",()=>uI(this,void 0,void 0,function*(){return A.postJson(XU(`caches/${Q.toString()}`),E)}))})}function LkA(A,Q,B,E){return uI(this,void 0,void 0,function*(){if((0,yM.getUploadOptions)(E).useAzureSdk){if(!B)throw Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,DkA.uploadCacheArchiveSDK)(B,Q,E)}else{let C=_M();CC.debug("Upload cache"),yield $kA(C,A,Q,E),CC.debug("Commiting cache");let D=AN.getArchiveFileSizeInBytes(Q);CC.info(`Cache Size: ~${Math.round(D/1048576)} MB (${D} B)`);let F=yield KkA(C,A,D);if(!(0,PF.isSuccessStatusCode)(F.statusCode))throw Error(`Cache service responded with ${F.statusCode} during commit cache.`);CC.info("Cache saved successfully")}})}qE.saveCache=LkA});var L6=K((QN)=>{Object.defineProperty(QN,"__esModule",{value:!0});QN.isJsonObject=QN.typeofJsonValue=void 0;function VkA(A){let Q=typeof A;if(Q=="object"){if(Array.isArray(A))return"array";if(A===null)return"null"}return Q}QN.typeofJsonValue=VkA;function zkA(A){return A!==null&&typeof A=="object"&&!Array.isArray(A)}QN.isJsonObject=zkA});var z6=K((BN)=>{Object.defineProperty(BN,"__esModule",{value:!0});BN.base64encode=BN.base64decode=void 0;var gD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),V6=[];for(let A=0;A<gD.length;A++)V6[gD[A].charCodeAt(0)]=A;V6[45]=gD.indexOf("+");V6[95]=gD.indexOf("/");function HkA(A){let Q=A.length*3/4;if(A[A.length-2]=="=")Q-=2;else if(A[A.length-1]=="=")Q-=1;let B=new Uint8Array(Q),E=0,I=0,C,D=0;for(let F=0;F<A.length;F++){if(C=V6[A.charCodeAt(F)],C===void 0)switch(A[F]){case"=":I=0;case`
`:case"\r":case"\t":case" ":continue;default:throw Error("invalid base64 string.")}switch(I){case 0:D=C,I=1;break;case 1:B[E++]=D<<2|(C&48)>>4,D=C,I=2;break;case 2:B[E++]=(D&15)<<4|(C&60)>>2,D=C,I=3;break;case 3:B[E++]=(D&3)<<6|C,I=0;break}}if(I==1)throw Error("invalid base64 string.");return B.subarray(0,E)}BN.base64decode=HkA;function wkA(A){let Q="",B=0,E,I=0;for(let C=0;C<A.length;C++)switch(E=A[C],B){case 0:Q+=gD[E>>2],I=(E&3)<<4,B=1;break;case 1:Q+=gD[I|E>>4],I=(E&15)<<2,B=2;break;case 2:Q+=gD[I|E>>6],Q+=gD[E&63],B=0;break}if(B){if(Q+=gD[I],Q+="=",B==1)Q+="="}return Q}BN.base64encode=wkA});var Wr=K((H6)=>{Object.defineProperty(H6,"__esModule",{value:!0});H6.utf8read=void 0;var vM=(A)=>String.fromCharCode.apply(String,A);function MkA(A){if(A.length<1)return"";let Q=0,B=[],E=[],I=0,C,D=A.length;while(Q<D){if(C=A[Q++],C<128)E[I++]=C;else if(C>191&&C<224)E[I++]=(C&31)<<6|A[Q++]&63;else if(C>239&&C<365)C=((C&7)<<18|(A[Q++]&63)<<12|(A[Q++]&63)<<6|A[Q++]&63)-65536,E[I++]=55296+(C>>10),E[I++]=56320+(C&1023);else E[I++]=(C&15)<<12|(A[Q++]&63)<<6|A[Q++]&63;if(I>8191)B.push(vM(E)),I=0}if(B.length){if(I)B.push(vM(E.slice(0,I)));return B.join("")}return vM(E.slice(0,I))}H6.utf8read=MkA});var $U=K((p0)=>{Object.defineProperty(p0,"__esModule",{value:!0});p0.WireType=p0.mergeBinaryOptions=p0.UnknownFieldHandler=void 0;var RkA;(function(A){A.symbol=Symbol.for("protobuf-ts/unknown"),A.onRead=(B,E,I,C,D)=>{(Q(E)?E[A.symbol]:E[A.symbol]=[]).push({no:I,wireType:C,data:D})},A.onWrite=(B,E,I)=>{for(let{no:C,wireType:D,data:F}of A.list(E))I.tag(C,D).raw(F)},A.list=(B,E)=>{if(Q(B)){let I=B[A.symbol];return E?I.filter((C)=>C.no==E):I}return[]},A.last=(B,E)=>A.list(B,E).slice(-1)[0];let Q=(B)=>B&&Array.isArray(B[A.symbol])})(RkA=p0.UnknownFieldHandler||(p0.UnknownFieldHandler={}));function gkA(A,Q){return Object.assign(Object.assign({},A),Q)}p0.mergeBinaryOptions=gkA;var TkA;(function(A){A[A.Varint=0]="Varint",A[A.Bit64=1]="Bit64",A[A.LengthDelimited=2]="LengthDelimited",A[A.StartGroup=3]="StartGroup",A[A.EndGroup=4]="EndGroup",A[A.Bit32=5]="Bit32"})(TkA=p0.WireType||(p0.WireType={}))});var M6=K((mI)=>{Object.defineProperty(mI,"__esModule",{value:!0});mI.varint32read=mI.varint32write=mI.int64toString=mI.int64fromString=mI.varint64write=mI.varint64read=void 0;function OkA(){let A=0,Q=0;for(let E=0;E<28;E+=7){let I=this.buf[this.pos++];if(A|=(I&127)<<E,(I&128)==0)return this.assertBounds(),[A,Q]}let B=this.buf[this.pos++];if(A|=(B&15)<<28,Q=(B&112)>>4,(B&128)==0)return this.assertBounds(),[A,Q];for(let E=3;E<=31;E+=7){let I=this.buf[this.pos++];if(Q|=(I&127)<<E,(I&128)==0)return this.assertBounds(),[A,Q]}throw Error("invalid varint")}mI.varint64read=OkA;function qkA(A,Q,B){for(let C=0;C<28;C=C+7){let D=A>>>C,F=!(D>>>7==0&&Q==0),Y=(F?D|128:D)&255;if(B.push(Y),!F)return}let E=A>>>28&15|(Q&7)<<4,I=Q>>3!=0;if(B.push((I?E|128:E)&255),!I)return;for(let C=3;C<31;C=C+7){let D=Q>>>C,F=D>>>7!=0,Y=(F?D|128:D)&255;if(B.push(Y),!F)return}B.push(Q>>>31&1)}mI.varint64write=qkA;var w6=4294967296;function jkA(A){let Q=A[0]=="-";if(Q)A=A.slice(1);let B=1e6,E=0,I=0;function C(D,F){let Y=Number(A.slice(D,F));if(I*=B,E=E*B+Y,E>=w6)I=I+(E/w6|0),E=E%w6}return C(-24,-18),C(-18,-12),C(-12,-6),C(-6),[Q,E,I]}mI.int64fromString=jkA;function PkA(A,Q){if(Q>>>0<=2097151)return""+(w6*Q+(A>>>0));let B=A&16777215,E=(A>>>24|Q<<8)>>>0&16777215,I=Q>>16&65535,C=B+E*6777216+I*6710656,D=E+I*8147497,F=I*2,Y=1e7;if(C>=Y)D+=Math.floor(C/Y),C%=Y;if(D>=Y)F+=Math.floor(D/Y),D%=Y;function J(G,N){let U=G?String(G):"";if(N)return"0000000".slice(U.length)+U;return U}return J(F,0)+J(D,F)+J(C,1)}mI.int64toString=PkA;function kkA(A,Q){if(A>=0){while(A>127)Q.push(A&127|128),A=A>>>7;Q.push(A)}else{for(let B=0;B<9;B++)Q.push(A&127|128),A=A>>7;Q.push(1)}}mI.varint32write=kkA;function fkA(){let A=this.buf[this.pos++],Q=A&127;if((A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<7,(A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<14,(A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<21,(A&128)==0)return this.assertBounds(),Q;A=this.buf[this.pos++],Q|=(A&15)<<28;for(let B=5;(A&128)!==0&&B<10;B++)A=this.buf[this.pos++];if((A&128)!=0)throw Error("invalid varint");return this.assertBounds(),Q>>>0}mI.varint32read=fkA});var fF=K((kF)=>{Object.defineProperty(kF,"__esModule",{value:!0});kF.PbLong=kF.PbULong=kF.detectBi=void 0;var KU=M6(),EB;function Xr(){let A=new DataView(new ArrayBuffer(8));EB=globalThis.BigInt!==void 0&&typeof A.getBigInt64==="function"&&typeof A.getBigUint64==="function"&&typeof A.setBigInt64==="function"&&typeof A.setBigUint64==="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:A}:void 0}kF.detectBi=Xr;Xr();function $r(A){if(!A)throw Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Kr=/^-?[0-9]+$/,g6=4294967296,R6=2147483648;class bM{ Line truncated
`)}}n6.RpcError=At});var YR=K((s6)=>{Object.defineProperty(s6,"__esModule",{value:!0});s6.mergeRpcOptions=void 0;var Qt=oB();function AxA(A,Q){if(!Q)return A;let B={};a6(A,B),a6(Q,B);for(let E of Object.keys(Q)){let I=Q[E];switch(E){case"jsonOptions":B.jsonOptions=Qt.mergeJsonOptions(A.jsonOptions,B.jsonOptions);break;case"binaryOptions":B.binaryOptions=Qt.mergeBinaryOptions(A.binaryOptions,B.binaryOptions);break;case"meta":B.meta={},a6(A.meta,B.meta),a6(Q.meta,B.meta);break;case"interceptors":B.interceptors=A.interceptors?A.interceptors.concat(I):I.concat();break}}return B}s6.mergeRpcOptions=AxA;function a6(A,Q){if(!A)return;let B=Q;for(let[E,I]of Object.entries(A))if(I instanceof Date)B[E]=new Date(I.getTime());else if(Array.isArray(I))B[E]=I.concat();else B[E]=I}});var JR=K((s1)=>{Object.defineProperty(s1,"__esModule",{value:!0});s1.Deferred=s1.DeferredState=void 0;var a0;(function(A){A[A.PENDING=0]="PENDING",A[A.REJECTED=1]="REJECTED",A[A.RESOLVED=2]="RESOLVED"})(a0=s1.DeferredState||(s1.DeferredState={}));class Bt{constructor(A=!0){if(this._state=a0.PENDING,this._promise=new Promise((Q,B)=>{this._resolve=Q,this._reject=B}),A)this._promise.catch((Q)=>{})}get state(){return this._state}get promise(){return this._promise}resolve(A){if(this.state!==a0.PENDING)throw Error(`cannot resolve ${a0[this.state].toLowerCase()}`);this._resolve(A),this._state=a0.RESOLVED}reject(A){if(this.state!==a0.PENDING)throw Error(`cannot reject ${a0[this.state].toLowerCase()}`);this._reject(A),this._state=a0.REJECTED}resolvePending(A){if(this._state===a0.PENDING)this.resolve(A)}rejectPending(A){if(this._state===a0.PENDING)this.reject(A)}}s1.Deferred=Bt});var GR=K((o6)=>{Object.defineProperty(o6,"__esModule",{value:!0});o6.RpcOutputStreamController=void 0;var Et=JR(),o1=oB();class It{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(A){return this.addLis(A,this._lis.nxt)}onMessage(A){return this.addLis(A,this._lis.msg)}onError(A){return this.addLis(A,this._lis.err)}onComplete(A){return this.addLis(A,this._lis.cmp)}addLis(A,Q){return Q.push(A),()=>{let B=Q.indexOf(A);if(B>=0)Q.splice(B,1)}}clearLis(){for(let A of Object.values(this._lis))A.splice(0,A.length)}get closed(){return this._closed!==!1}notifyNext(A,Q,B){if(o1.assert((A?1:0)+(Q?1:0)+(B?1:0)<=1,"only one emission at a time"),A)this.notifyMessage(A);if(Q)this.notifyError(Q);if(B)this.notifyComplete()}notifyMessage(A){o1.assert(!this.closed,"stream is closed"),this.pushIt({value:A,done:!1}),this._lis.msg.forEach((Q)=>Q(A)),this._lis.nxt.forEach((Q)=>Q(A,void 0,!1))}notifyError(A){o1.assert(!this.closed,"stream is closed"),this._closed=A,this.pushIt(A),this._lis.err.forEach((Q)=>Q(A)),this._lis.nxt.forEach((Q)=>Q(void 0,A,!1)),this.clearLis()}notifyComplete(){o1.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach((A)=>A()),this._lis.nxt.forEach((A)=>A(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){if(this._closed===!0)this.pushIt({value:null,done:!0});else if(this._closed!==!1)this.pushIt(this._closed);return{next:()=>{let A=this._itState;o1.assert(A,"bad state"),o1.assert(!A.p,"iterator contract broken");let Q=A.q.shift();if(Q)return"value"in Q?Promise.resolve(Q):Promise.reject(Q);return A.p=new Et.Deferred,A.p.promise}}}pushIt(A){let Q=this._itState;if(Q.p){let B=Q.p;o1.assert(B.state==Et.DeferredState.PENDING,"iterator contract broken"),"value"in A?B.resolve(A):B.reject(A),delete Q.p}else Q.q.push(A)}}o6.RpcOutputStreamController=It});var NR=K((JN)=>{var QxA=JN&&JN.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(JN,"__esModule",{value:!0});JN.UnaryCall=void 0;class Ct{constructor(A,Q,B,E,I,C,D){this.method=A,this.requestHeaders=Q,this.request=B,this.headers=E,this.response=I,this.status=C,this.trailers=D}then(A,Q){return this.promiseFinished().then((B)=>A?Promise.resolve(A(B)):B,(B)=>Q?Promise.resolve(Q(B)):Promise.reject(B))}promiseFinished(){return QxA(this,void 0,void 0,function*(){let[A,Q,B,E]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:A,response:Q,status:B,trailers:E}})}}JN.UnaryCall=Ct});var UR=K((GN)=>{var BxA=GN&&GN.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(GN,"__esModule",{value:!0});GN.ServerStreamingCall=void 0;class Dt{constructor(A,Q,B,E,I,C,D){this.me Line truncated
`));let E=yield zR(B,"create");yield HR(E,A)})}eE.createTar=oxA});var dt=K((pB)=>{var rxA=pB&&pB.__createBinding||(Object.create?function(A,Q,B,E){if(E===void 0)E=B;var I=Object.getOwnPropertyDescriptor(Q,B);if(!I||("get"in I?!Q.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,E,I)}:function(A,Q,B,E){if(E===void 0)E=B;A[E]=Q[B]}),txA=pB&&pB.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),kU=pB&&pB.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))rxA(Q,A,B)}return txA(Q,A),Q},MN=pB&&pB.__awaiter||function(A,Q,B,E){function I(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function F(G){try{J(E.next(G))}catch(N){D(N)}}function Y(G){try{J(E.throw(G))}catch(N){D(N)}}function J(G){G.done?C(G.value):I(G.value).then(F,Y)}J((E=E.apply(A,Q||[])).next())})};Object.defineProperty(pB,"__esModule",{value:!0});pB.saveCache=pB.restoreCache=pB.isFeatureAvailable=pB.FinalizeCacheError=pB.ReserveCacheError=pB.ValidationError=void 0;var sA=kU(yB()),I7=kU(require("path")),qB=kU(jJ()),wN=kU(Zr()),ut=kU(yt()),C7=X6(),yF=bt(),D7=JD();class cC extends Error{constructor(A){super(A);this.name="ValidationError",Object.setPrototypeOf(this,cC.prototype)}}pB.ValidationError=cC;class r1 extends Error{constructor(A){super(A);this.name="ReserveCacheError",Object.setPrototypeOf(this,r1.prototype)}}pB.ReserveCacheError=r1;class PU extends Error{constructor(A){super(A);this.name="FinalizeCacheError",Object.setPrototypeOf(this,PU.prototype)}}pB.FinalizeCacheError=PU;function mt(A){if(!A||A.length===0)throw new cC("Path Validation Error: At least one directory or file path is required")}function wR(A){if(A.length>512)throw new cC(`Key Validation Error: ${A} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(A))throw new cC(`Key Validation Error: ${A} cannot contain commas.`)}function exA(){switch((0,C7.getCacheServiceVersion)()){case"v2":return!!process.env.ACTIONS_RESULTS_URL;case"v1":default:return!!process.env.ACTIONS_CACHE_URL}}pB.isFeatureAvailable=exA;function AhA(A,Q,B,E,I=!1){return MN(this,void 0,void 0,function*(){let C=(0,C7.getCacheServiceVersion)();switch(sA.debug(`Cache service version: ${C}`),mt(A),C){case"v2":return yield BhA(A,Q,B,E,I);case"v1":default:return yield QhA(A,Q,B,E,I)}})}pB.restoreCache=AhA;function QhA(A,Q,B,E,I=!1){return MN(this,void 0,void 0,function*(){B=B||[];let C=[Q,...B];if(sA.debug("Resolved Keys:"),sA.debug(JSON.stringify(C)),C.length>10)throw new cC("Key Validation Error: Keys are limited to a maximum of 10.");for(let Y of C)wR(Y);let D=yield qB.getCompressionMethod(),F="";try{let Y=yield wN.getCacheEntry(C,A,{compressionMethod:D,enableCrossOsArchive:I});if(!(Y===null||Y===void 0?void 0:Y.archiveLocation))return;if(E===null||E===void 0?void 0:E.lookupOnly)return sA.info("Lookup only - skipping download"),Y.cacheKey;if(F=I7.join(yield qB.createTempDirectory(),qB.getCacheFileName(D)),sA.debug(`Archive Path: ${F}`),yield wN.downloadCache(Y.archiveLocation,F,E),sA.isDebug())yield(0,yF.listTar)(F,D);let J=qB.getArchiveFileSizeInBytes(F);return sA.info(`Cache Size: ~${Math.round(J/1048576)} MB (${J} B)`),yield(0,yF.extractTar)(F,D),sA.info("Cache restored successfully"),Y.cacheKey}catch(Y){let J=Y;if(J.name===cC.name)throw Y;else if(J instanceof D7.HttpClientError&&typeof J.statusCode==="number"&&J.statusCode>=500)sA.error(`Failed to restore: ${Y.message}`);else sA.warning(`Failed to restore: ${Y.message}`)}finally{try{yield qB.unlinkFile(F)}catch(Y){sA.debug(`Failed to delete archive: ${Y}`)}}return})}function BhA(A,Q,B,E,I=!1){return MN(this,void 0,void 0,function*(){E=Object.assign(Object.assign({},E),{useAzureSdk:!0}),B=B||[];let C=[Q,...B];if(sA.debug("Resolved Keys:"),sA.debug(JSON.stringify(C)),C.length>10)throw new cC("Key Validation Error: Keys are limited to a maximum of 10.");for(let F of C)wR(F);let D="";try{let F=ut.internalCacheTwirpClient(),Y=yield qB.getCompressionMethod(),J={key:Q,restoreKeys:B,version:qB.getCacheVersion(A,Y,I)},G=yield F.GetCacheEntryDownloadURL(J);if(!G.ok){sA.debug(`Cache not found for version ${J.version} of keys: ${C.join(", ")}`);return}if(J.key!==G.matchedKey)sA.info(`Cache hit for restore-key: ${G.matchedKey}`);else sA.info(`Cache hit for: ${G.matchedKey}`);if(E===null||E===void 0?void 0:E.lookupOnly)return sA.info("Lookup only - skipping download"),G.matchedKey;D=I7.join(yield qB.createTempDirectory(),qB.getCacheFileName(Y)),sA.debug(`Archive path: ${D}`),sA.debug(`Starting download of archive to: ${D}`),yield wN.downloadCache(G.signedDownloadUrl,D,E);let U=qB.getArchiveFileSizeInBytes(D);if(sA.info(`Cache Size: ~${Math.round(U/1048576)} MB (${U} B)`),sA.isDebug())yield(0,yF.listTar)(D,Y);return yield(0,yF.extractTar)(D,Y),sA.info("Cache restored successfully"),G.matche Line truncated
WHERE eas_build_id IS NOT NULL AND eas_build_id != "" AND fingerprint_hash = ?
ORDER BY updated_at DESC LIMIT 1`,A);return Q?XE.serialize(Q):null}async getEntityFromGitCommitHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let Q=await this.db.getAsync(`SELECT * FROM ${XE.TABLE_NAME} WHERE git_commit_hash = ?`,A);return Q?XE.serialize(Q):null}async getFirstEntityFromFingerprintHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let Q=await this.db.getAsync(`SELECT * FROM ${XE.TABLE_NAME} WHERE fingerprint_hash = ?`,A);return Q?XE.serialize(Q):null}async queryEntitiesFromFingerprintHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");return(await this.db.allAsync(`SELECT * FROM ${XE.TABLE_NAME} WHERE fingerprint_hash = ?`,A)).map((B)=>XE.serialize(B))}async getFingerprintSourcesAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let B=(await this.db.getAsync(`SELECT json_extract(fingerprint, '$.sources') as sources FROM ${XE.TABLE_NAME} WHERE fingerprint_hash = ?`,A))?.sources;if(!B)return null;return JSON.parse(B)}async getFirstGitHubArtifactAsync(A,Q){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let B=await this.db.getAsync(`SELECT ga.id, ga.artifact_id, ga.artifact_url, ga.artifact_digest, ga.workflow_run_id, ga.platform
FROM ${XE.TABLE_NAME} f
JOIN github_artifacts ga ON f.id = ga.fingerprint_id
WHERE f.fingerprint_hash = ? AND (ga.platform = ? AND (f.platform = ? OR f.platform IS NULL))
ORDER BY f.id ASC, ga.id ASC
LIMIT 1`,A,Q,Q);if(!B)return null;return{id:B.id,artifactId:B.artifact_id,artifactUrl:B.artifact_url,artifactDigest:B.artifact_digest,workflowRunId:B.workflow_run_id,platform:B.platform}}getArtifactsManager(){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");return new WE(this.db)}async closeAsync(){this.db?.closeAsync()}static TABLE_NAME="fingerprint";static SCHEMA=["id INTEGER PRIMARY KEY AUTOINCREMENT","eas_build_id TEXT","git_commit_hash TEXT NOT NULL","fingerprint_hash TEXT NOT NULL","fingerprint TEXT NOT NULL","platform TEXT","created_at TEXT NOT NULL DEFAULT (DATETIME('now', 'utc'))","updated_at TEXT NOT NULL DEFAULT (DATETIME('now', 'utc'))"];static INDEXES=[`CREATE UNIQUE INDEX IF NOT EXISTS idx_git_commit_hash ON ${this.TABLE_NAME} (git_commit_hash)`,`CREATE INDEX IF NOT EXISTS idx_fingerprint_hash ON ${this.TABLE_NAME} (fingerprint_hash)`];static EXTRA_CREATE_DB_STATEMENTS=[`CREATE TRIGGER IF NOT EXISTS update_fingerprint_updated_at AFTER UPDATE ON ${this.TABLE_NAME}
BEGIN
UPDATE ${this.TABLE_NAME} SET updated_at = DATETIME('now', 'utc') WHERE id = NEW.id;
END`];db=null;static serialize(A){return{id:A.id,easBuildId:A.eas_build_id,gitCommitHash:A.git_commit_hash,fingerprintHash:A.fingerprint_hash,fingerprint:JSON.parse(A.fingerprint),platform:A.platform,createdAt:A.created_at,updatedAt:A.updated_at}}}async function De(A,Q){await YhA(Q.fingerprintVersion,Q.packager,Q.fingerprintInstallationCache);let B=require("@expo/fingerprint"),E=await B.createFingerprintAsync(Q.workingDirectory),I=null;if(Q.previousGitCommitHash)I=await A.getEntityFromGitCommitHashAsync(Q.previousGitCommitHash);let C=I!=null?await B.diffFingerprints(I.fingerprint,E):await B.diffFingerprints({sources:[],hash:""},E);return{currentFingerprint:E,previousFingerprint:I?.fingerprint??null,diff:C}}async function Fe(A,Q){await Be(A);let B=await gR();if(await JhA(Q)!=null)PE.info(`Restored fingerprint database from cache - cacheKey[${Q}]`);else PE.info(`Missing fingerprint database from cache - will create a new database - cacheKey[${Q}]`);let I=new XE(B);return await I.initAsync(),I}function Ye(){return{packager:PE.getInput("packager")||"yarn",githubToken:PE.getInput("github-token"),workingDirectory:PE.getInput("working-directory"),fingerprintVersion:PE.getInput("fingerprint-version")||"latest",fingerprintInstallationCache:!PE.getInput("fingerprint-installation-cache")||PE.getBooleanInput("fingerprint-installation-cache"),fingerprintDbCacheKey:PE.getInput("fingerprint-db-cache-key"),previousGitCommitHash:PE.getInput("previous-git-commit")||(t1.context.eventName==="pull_request"?t1.context.payload.pull_request?.base?.sha:t1.context.payload.before),currentGitCommitHash:PE.getInput("current-git-commit")||(t1.context.eventName==="pull_request"?t1.context.payload.pull_request?.head?.sha:t1.context.sha),savingDbBranch:PE.getInput("saving-db-branch")||void 0}}async function YhA(A,Q,B=!0){let I=await J7("@expo/fingerprint",A),C=B?`Installing @expo/fingerprint (${I}) from cache or with ${Q}`:`Installing @expo/fingerprint (${I}) with ${Q}`;return await PE.group(C,async()=>{let D=await G7({name:"@expo/fingerprint",version:I,packageManager:Q,packageCache:B});return bf(D),z4(TN.default.join(D,"node_modules")),D})}async function JhA(A){return F7(TN.default.dirname(await gR()),A)}async function IiA(A){return PE.info(`Saving fingerprint database to cache: ${A}`),Y7(TN.default.dirname(await gR()),A)}async function gR(){Ie.default(process.env.RUNNER_TOOL_CACHE,"Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined");let A=TN.default.join(process.env.RUNNER_TOOL_CACHE,"fingerprint-storage","fingerprint.db"),Q=TN.default.dirname(A);if(!await Ce.default.promises.stat(Q).catch(()=>null))await Ee.mkdirP(Q);return A}vf(Je);async function Je(A=Ye()){let Q=await Fe(A.packager,A.fingerprintDbCacheKey),{currentFingerprint:B,previousFingerprint:E,diff:I}=await De(Q,A);await Q.upsertFingerprintByGitCommitHashAsync(A.currentGitCommitHash,{fingerprint:B}),ON.setOutput("previous-fingerprint",E),ON.setOutput("current-fingerprint",B),ON.setOutput("previous-git-commit",A.previousGitCommitHash),ON.setOutput("current-git-commit",A.currentGitCommitHash),ON.setOutput("fingerprint-diff",I)}
-91627
View File
File diff suppressed because it is too large. Load diff
-1598
View File
File diff suppressed because it is too large. Load diff
-92241
View File
File diff suppressed because it is too large. Load diff
-1598
View File
File diff suppressed because it is too large. Load diff
-41176
View File
File diff suppressed because it is too large. Load diff
-797
View File
@@ -1,797 +0,0 @@
@actions/core
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/exec
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/github
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/http-client
MIT
Actions Http Client for Node.js
Copyright (c) GitHub, Inc.
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/io
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/tool-cache
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@fastify/busboy
MIT
Copyright Brian White. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
@octokit/auth-token
MIT
The MIT License
Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/core
MIT
The MIT License
Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/endpoint
MIT
The MIT License
Copyright (c) 2018 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/graphql
MIT
The MIT License
Copyright (c) 2018 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/plugin-paginate-rest
MIT
MIT License Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@octokit/plugin-rest-endpoint-methods
MIT
MIT License Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@octokit/request
MIT
The MIT License
Copyright (c) 2018 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/request-error
MIT
The MIT License
Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
before-after-hook
Apache-2.0
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2018 Gregor Martynus and other contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
deprecation
ISC
The ISC License
Copyright (c) Gregor Martynus and contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
encoding
MIT
Copyright (c) 2012-2014 Andris Reinman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
iconv-lite
MIT
Copyright (c) 2011 Alexander Shtuchkin
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
is-plain-object
MIT
The MIT License (MIT)
Copyright (c) 2014-2017, Jon Schlinkert.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
node-fetch
MIT
The MIT License (MIT)
Copyright (c) 2016 David Frank
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
once
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
safer-buffer
MIT
MIT License
Copyright (c) 2018 Nikita Skovoroda <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
semver
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
tr46
MIT
tunnel
MIT
The MIT License (MIT)
Copyright (c) 2012 Koichi Kobayashi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
undici
MIT
MIT License
Copyright (c) Matteo Collina and Undici contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
universal-user-agent
ISC
# [ISC License](https://spdx.org/licenses/ISC)
Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m)
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
uuid
MIT
The MIT License (MIT)
Copyright (c) 2010-2020 Robert Kieffer and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
webidl-conversions
BSD-2-Clause
# The BSD 2-Clause License
Copyright (c) 2014, Domenic Denicola
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
whatwg-url
MIT
The MIT License (MIT)
Copyright (c) 2015–2016 Sebastian Mayr
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
wrappy
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-44723
View File
File diff suppressed because it is too large. Load diff
-835
View File
@@ -1,835 +0,0 @@
@actions/core
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/exec
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/github
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/http-client
MIT
Actions Http Client for Node.js
Copyright (c) GitHub, Inc.
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/io
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/tool-cache
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@fastify/busboy
MIT
Copyright Brian White. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
@octokit/auth-token
MIT
The MIT License
Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/core
MIT
The MIT License
Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/endpoint
MIT
The MIT License
Copyright (c) 2018 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/graphql
MIT
The MIT License
Copyright (c) 2018 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/plugin-paginate-rest
MIT
MIT License Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@octokit/plugin-rest-endpoint-methods
MIT
MIT License Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@octokit/request
MIT
The MIT License
Copyright (c) 2018 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/request-error
MIT
The MIT License
Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
before-after-hook
Apache-2.0
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2018 Gregor Martynus and other contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
deprecation
ISC
The ISC License
Copyright (c) Gregor Martynus and contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
encoding
MIT
Copyright (c) 2012-2014 Andris Reinman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
iconv-lite
MIT
Copyright (c) 2011 Alexander Shtuchkin
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
is-plain-object
MIT
The MIT License (MIT)
Copyright (c) 2014-2017, Jon Schlinkert.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
lru-cache
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
node-fetch
MIT
The MIT License (MIT)
Copyright (c) 2016 David Frank
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
once
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
safer-buffer
MIT
MIT License
Copyright (c) 2018 Nikita Skovoroda <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
semver
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
tr46
MIT
tunnel
MIT
The MIT License (MIT)
Copyright (c) 2012 Koichi Kobayashi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
undici
MIT
MIT License
Copyright (c) Matteo Collina and Undici contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
universal-user-agent
ISC
# [ISC License](https://spdx.org/licenses/ISC)
Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m)
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
uuid
MIT
The MIT License (MIT)
Copyright (c) 2010-2020 Robert Kieffer and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
webidl-conversions
BSD-2-Clause
# The BSD 2-Clause License
Copyright (c) 2014, Domenic Denicola
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
whatwg-url
MIT
The MIT License (MIT)
Copyright (c) 2015–2016 Sebastian Mayr
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
wrappy
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
yallist
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+294
View File
@@ -0,0 +1,294 @@
var KRA=Object.create;var{getPrototypeOf:$RA,defineProperty:rF,getOwnPropertyNames:Mu,getOwnPropertyDescriptor:HRA}=Object,Ru=Object.prototype.hasOwnProperty;var Z0=(A,Q,B)=>{B=A!=null?KRA($RA(A)):{};let I=Q||!A||!A.__esModule?rF(B,"default",{value:A,enumerable:!0}):B;for(let E of Mu(A))if(!Ru.call(I,E))rF(I,E,{get:()=>A[E],enumerable:!0});return I},Lu=new WeakMap,tP1=(A)=>{var Q=Lu.get(A),B;if(Q)return Q;if(Q=rF({},"__esModule",{value:!0}),A&&typeof A==="object"||typeof A==="function")Mu(A).map((I)=>!Ru.call(Q,I)&&rF(Q,I,{get:()=>A[I],enumerable:!(B=HRA(A,I))||B.enumerable}));return Lu.set(A,Q),Q},V=(A,Q)=>()=>(Q||A((Q={exports:{}}).exports,Q),Q.exports);var eP1=(A,Q)=>{for(var B in Q)rF(A,B,{get:Q[B],enumerable:!0,configurable:!0,set:(I)=>Q[B]=()=>I})};var HW=V((AC)=>{Object.defineProperty(AC,"__esModule",{value:!0});AC.toCommandProperties=AC.toCommandValue=void 0;function wRA(A){if(A===null||A===void 0)return"";else if(typeof A==="string"||A instanceof String)return A;return JSON.stringify(A)}AC.toCommandValue=wRA;function zRA(A){if(!Object.keys(A).length)return{};return{title:A.title,file:A.file,line:A.startLine,endLine:A.endLine,col:A.startColumn,endColumn:A.endColumn}}AC.toCommandProperties=zRA});var Pu=V(($8)=>{var LRA=$8&&$8.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),MRA=$8&&$8.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),RRA=$8&&$8.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))LRA(Q,A,B)}return MRA(Q,A),Q};Object.defineProperty($8,"__esModule",{value:!0});$8.issue=$8.issueCommand=void 0;var qRA=RRA(require("os")),Tu=HW();function Ou(A,Q,B){let I=new ju(A,Q,B);process.stdout.write(I.toString()+qRA.EOL)}$8.issueCommand=Ou;function TRA(A,Q=""){Ou(A,{},Q)}$8.issue=TRA;var qu="::";class ju{constructor(A,Q,B){if(!A)A="missing.command";this.command=A,this.properties=Q,this.message=B}toString(){let A=qu+this.command;if(this.properties&&Object.keys(this.properties).length>0){A+=" ";let Q=!0;for(let B in this.properties)if(this.properties.hasOwnProperty(B)){let I=this.properties[B];if(I){if(Q)Q=!1;else A+=",";A+=`${B}=${jRA(I)}`}}}return A+=`${qu}${ORA(this.message)}`,A}}function ORA(A){return(0,Tu.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function jRA(A){return(0,Tu.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});var vu=V((H8)=>{var PRA=H8&&H8.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),gRA=H8&&H8.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),tq=H8&&H8.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))PRA(Q,A,B)}return gRA(Q,A),Q};Object.defineProperty(H8,"__esModule",{value:!0});H8.prepareKeyValueMessage=H8.issueFileCommand=void 0;var _RA=tq(require("crypto")),gu=tq(require("fs")),rq=tq(require("os")),_u=HW();function vRA(A,Q){let B=process.env[`GITHUB_${A}`];if(!B)throw Error(`Unable to find environment variable for file command ${A}`);if(!gu.existsSync(B))throw Error(`Missing file at path: ${B}`);gu.appendFileSync(B,`${(0,_u.toCommandValue)(Q)}${rq.EOL}`,{encoding:"utf8"})}H8.issueFileCommand=vRA;function SRA(A,Q){let B=`ghadelimiter_${_RA.randomUUID()}`,I=(0,_u.toCommandValue)(Q);if(A.includes(B))throw Error(`Unexpected input: name should not contain the delimiter "${B}"`);if(I.includes(B))throw Error(`Unexpected input: value should not contain the delimiter "${B}"`);return`${A}<<${B}${rq.EOL}${I}${rq.EOL}${B}`}H8.prepareKeyValueMessage=SRA});var xu=V((QC)=>{Object.defineProperty(QC,"__esModule",{value:!0});QC.checkBypass=QC.getProxyUrl=void 0;function xRA(A){let Q=A.protocol==="https:";if(Su(A))return;let B=(()=>{if(Q)return process.env.https_proxy||process.env.HTTPS_PROXY;else return process.env.http_proxy||process.env.HTTP_PROXY})();if(B)try{return new eq(B)}catch(I){if(!B.startsWith("http://")&&!B.startsWith("https://"))return new eq(`http://${B}`)}else return}QC.getProxyUrl=xRA;function Su(A){if(!A.hostname)return!1;let Q=A.hostname;if(kRA(Q))return!0;let B=process.env.no_proxy||process.env.NO_PROXY||"";if(!B)return!1;let I;if(A.port)I=Number(A.port);else if(A.protocol==="http:")I=80;else if(A.protocol==="https:Line truncated
`,Z.message,Z.stack);var N=Error("tunneling socket could not be established, cause="+Z.message);N.code="ECONNRESET",Q.request.emit("error",N),I.removeSocket(E)}};Z3.prototype.removeSocket=function(Q){var B=this.sockets.indexOf(Q);if(B===-1)return;this.sockets.splice(B,1);var I=this.requests.shift();if(I)this.createSocket(I,function(E){I.request.onSocket(E)})};function hu(A,Q){var B=this;Z3.prototype.createSocket.call(B,A,function(I){var E=A.request.getHeader("host"),C=QT({},B.options,{socket:I,servername:E?E.replace(/:.*$/,""):A.host}),D=hRA.connect(0,C);B.sockets[B.sockets.indexOf(I)]=D,Q(D)})}function yu(A,Q,B){if(typeof A==="string")return{host:A,port:Q,localAddress:B};return A}function QT(A){for(var Q=1,B=arguments.length;Q<B;++Q){var I=arguments[Q];if(typeof I==="object"){var E=Object.keys(I);for(var C=0,D=E.length;C<D;++C){var Y=E[C];if(I[Y]!==void 0)A[Y]=I[Y]}}}return A}var W7;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG))W7=function(){var A=Array.prototype.slice.call(arguments);if(typeof A[0]==="string")A[0]="TUNNEL: "+A[0];else A.unshift("TUNNEL:");console.error.apply(console,A)};else W7=function(){};BC.debug=W7});var du=V((Jg1,bu)=>{bu.exports=fu()});var I2=V((Fg1,mu)=>{mu.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"),kHeadersList:Symbol("headers list"),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"),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"),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"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}});var c0=V((Gg1,pu)=>{class A4 extends Error{constructor(A){super(A);this.name="UndiciError",this.code="UND_ERR"}}class BT extends A4{constructor(A){super(A);Error.captureStackTrace(this,BT),this.name="ConnectTimeoutError",this.message=A||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}}class IT extends A4{constructor(A){super(A);Error.captureStackTrace(this,IT),this.name="HeadersTimeoutError",this.message=A||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}}class ET extends A4{constructor(A){super(A);Error.captureStackTrace(this,ET),this.name="HeadersOverflowError",this.message=A||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}}class CT extends A4{constructor(A){super(A);Error.captureStackTrace(this,CT),this.name="BodyTimeoutError",this.message=A||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}}class DT extends A4{constructor(A,Q,B,I){super(A);Error.captureStackTrace(this,DT),this.name="ResponseStatusCodeError",this.message=A||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=I,this.status=Q,this.statusCode=Q,this.headers=B}}class YT extends A4{constructor(A){super(A);Error.captureStackTrace(this,YT),this.name="InvalidArgumentError",this.message=A||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}}class JT extends A4{constructor(A){super(A);Error.captureStackTrace(this,JT),this.name="InvalidReturnValueError",this.message=A||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}}class FT extends A4{constructor(A){super(A);Error.captureStackTrace(this,FT),this.name="AbortError",this.m Line truncated
\r
`),jqA=/\r\n/g,PqA=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function EC(A){Np.call(this),A=A||{};let Q=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=Zp(A,"maxHeaderPairs",2000),this.maxHeaderSize=Zp(A,"maxHeaderSize",81920),this.buffer="",this.header={},this.finished=!1,this.ss=new TqA(OqA),this.ss.on("info",function(B,I,E,C){if(I&&!Q.maxed){if(Q.nread+C-E>=Q.maxHeaderSize)C=Q.maxHeaderSize-Q.nread+E,Q.nread=Q.maxHeaderSize,Q.maxed=!0;else Q.nread+=C-E;Q.buffer+=I.toString("binary",E,C)}if(B)Q._finish()})}qqA(EC,Np);EC.prototype.push=function(A){let Q=this.ss.push(A);if(this.finished)return Q};EC.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};EC.prototype._finish=function(){if(this.buffer)this._parseHeader();this.ss.matches=this.ss.maxMatches;let A=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",A)};EC.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let A=this.buffer.split(jqA),Q=A.length,B,I;for(var E=0;E<Q;++E){if(A[E].length===0)continue;if(A[E][0]==="\t"||A[E][0]===" "){if(I){this.header[I][this.header[I].length-1]+=A[E];continue}}let C=A[E].indexOf(":");if(C===-1||C===0)return;if(B=PqA.exec(A[E]),I=B[1].toLowerCase(),this.header[I]=this.header[I]||[],this.header[I].push(B[2]||""),++this.npairs===this.maxHeaderPairs)break}};Xp.exports=EC});var jT=V(($g1,Vp)=>{var OT=require("node:stream").Writable,gqA=require("node:util").inherits,_qA=qT(),Wp=Fp(),vqA=Up(),SqA=Buffer.from("-"),xqA=Buffer.from(`\r
`),kqA=function(){};function L5(A){if(!(this instanceof L5))return new L5(A);if(OT.call(this,A),!A||!A.headerFirst&&typeof A.boundary!=="string")throw TypeError("Boundary required");if(typeof A.boundary==="string")this.setBoundary(A.boundary);else this._bparser=void 0;this._headerFirst=A.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:A.partHwm},this._pause=!1;let Q=this;this._hparser=new vqA(A),this._hparser.on("header",function(B){Q._inHeader=!1,Q._part.emit("header",B)})}gqA(L5,OT);L5.prototype.emit=function(A){if(A==="finish"&&!this._realFinish){if(!this._finished){let Q=this;process.nextTick(function(){if(Q.emit("error",Error("Unexpected end of multipart data")),Q._part&&!Q._ignoreData){let B=Q._isPreamble?"Preamble":"Part";Q._part.emit("error",Error(B+" terminated early due to unexpected end of multipart data")),Q._part.push(null),process.nextTick(function(){Q._realFinish=!0,Q.emit("finish"),Q._realFinish=!1});return}Q._realFinish=!0,Q.emit("finish"),Q._realFinish=!1})}}else OT.prototype.emit.apply(this,arguments)};L5.prototype._write=function(A,Q,B){if(!this._hparser&&!this._bparser)return B();if(this._headerFirst&&this._isPreamble){if(!this._part)if(this._part=new Wp(this._partOpts),this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else this._ignore();let I=this._hparser.push(A);if(!this._inHeader&&I!==void 0&&I<A.length)A=A.slice(I);else return B()}if(this._firstWrite)this._bparser.push(xqA),this._firstWrite=!1;if(this._bparser.push(A),this._pause)this._cb=B;else B()};L5.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};L5.prototype.setBoundary=function(A){let Q=this;this._bparser=new _qA(`\r
--`+A),this._bparser.on("info",function(B,I,E,C){Q._oninfo(B,I,E,C)})};L5.prototype._ignore=function(){if(this._part&&!this._ignoreData)this._ignoreData=!0,this._part.on("error",kqA),this._part.resume()};L5.prototype._oninfo=function(A,Q,B,I){let E,C=this,D=0,Y,J=!0;if(!this._part&&this._justMatched&&Q){while(this._dashes<2&&B+D<I)if(Q[B+D]===45)++D,++this._dashes;else{if(this._dashes)E=SqA;this._dashes=0;break}if(this._dashes===2){if(B+D<I&&this.listenerCount("trailer")!==0)this.emit("trailer",Q.slice(B+D,I));if(this.reset(),this._finished=!0,C._parts===0)C._realFinish=!0,C.emit("finish"),C._realFinish=!1}if(this._dashes)return}if(this._justMatched)this._justMatched=!1;if(!this._part){if(this._part=new Wp(this._partOpts),this._part._read=function(G){C._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else if(this._isPreamble!==!0&&this.listenerCount("part")!==0)this.emit("part",this._part);else this._ignore();if(!this._isPreamble)this._inHeader=!0}if(Q&&B<I&&!this._ignoreData){if(this._isPreamble||!this._inHeader){if(E)J=this._part.push(E);if(J=this._part.push(Q.slice(B,I)),!J)this._pause=!0}else if(!this._isPreamble&&this._inHeader){if(E)this._hparser.push(E);if(Y=this._hparser.push(Q.slice(B,I)),!this._inHeader&&Y!==void 0&&Y<I)this._oninfo(!1,Q,B+Y,I)}}if(A){if(this._hparser.reset(),this._isPreamble)this._isPreamble=!1;else if(B!==I)++this._parts,this._part.on("end",function(){if(--C._parts===0)if(C._finished)C._realFinish=!0,C.emit("finish"),C._realFinish=!1;else C._unpause()});this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0}};L5.prototype._unpause=function(){if(!this._pause)return;if(this._pause=!1,this._cb){let A=this._cb;this._cb=void 0,A()}};Vp.exports=L5});var RW=V((PT,Hp)=>{var Kp=new TextDecoder("utf-8"),$p=new Map([["utf-8",Kp],["utf8",Kp]]);function hqA(A){let Q;while(!0)switch(A){case"utf-8":case"utf8":return eF.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return eF.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return eF.utf16le;case"base64":return eF.base64;default:if(Q===void 0){Q=!0,A=A.toLowerCase();continue}return eF.other.bind(A)}}var eF={utf8:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.utf8Slice(0,A.length)},latin1:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")return A;return A.latin1Slice(0,A.length)},utf16le:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.ucs2Slice(0,A.length)},base64:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.base64Slice(0,A.length)},other:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);if($p.has(PT.toString()))try{return $p.get(PT).decode(A)}catch{}return typeof A==="string"?A:A.toString()}};function yqA(A,Q,B){if(A)return hqA(B)(A,Q);return A}Hp.exports=yqA});var _T=V((Hg1,Rp)=>{var qW=RW(),wp=/%[a-fA-F0-9][a-fA-F0-9]/g,fqA={"%00":"\x00","%01":"\x01","%02":"\x02","%03":"\x03","%04":"\x04","%05":"\x05","%06":"\x06","%07":"\x07","%08":"\b","%09":"\t","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"\x0E","%0E":"\x0E","%0f":"\x0F","%0F":"\x0F","%10":"\x10","%11":"\x11","%12":"\x12","%13":"\x13","%14":"\x14","%15":"\x15","%16":"\x16","%17":"\x17","%18":"\x18","%19":"\x19","%1a":"\x1A","%1A":"\x1A","%1b":"\x1B","%1B":"\x1B","%1c":"\x1C","%1C":"\x1C","%1d":"\x1D","%1D":"\x1D","%1e":"\x1E","%1E":"\x1E","%1f":"\x1F","%1F":"\x1F","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"","%B6":"","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%FdLine truncated
`))return!1;return!0}function yTA(A,Q){let{headersList:B}=Q,I=(B.get("referrer-policy")??"").split(","),E="";if(I.length>0)for(let C=I.length;C!==0;C--){let D=I[C-1].trim();if(MTA.has(D)){E=D;break}}if(E!=="")A.referrerPolicy=E}function fTA(){return"allowed"}function bTA(){return"success"}function dTA(){return"success"}function mTA(A){let Q=null;Q=A.mode,A.headersList.set("sec-fetch-mode",Q)}function uTA(A){let Q=A.origin;if(A.responseTainting==="cors"||A.mode==="websocket"){if(Q)A.headersList.append("origin",Q)}else if(A.method!=="GET"&&A.method!=="HEAD"){switch(A.referrerPolicy){case"no-referrer":Q=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(A.origin&&bT(A.origin)&&!bT(BG(A)))Q=null;break;case"same-origin":if(!gW(A,BG(A)))Q=null;break;default:}if(Q)A.headersList.append("origin",Q)}}function pTA(A){return TTA.now()}function cTA(A){return{startTime:A.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:A.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function lTA(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function iTA(A){return{referrerPolicy:A.referrerPolicy}}function nTA(A){let Q=A.referrerPolicy;FC(Q);let B=null;if(A.referrer==="client"){let Y=qTA();if(!Y||Y.origin==="null")return"no-referrer";B=new URL(Y)}else if(A.referrer instanceof URL)B=A.referrer;let I=yT(B),E=yT(B,!0);if(I.toString().length>4096)I=E;let C=gW(A,I),D=QG(I)&&!QG(A.url);switch(Q){case"origin":return E!=null?E:yT(B,!0);case"unsafe-url":return I;case"same-origin":return C?E:"no-referrer";case"origin-when-cross-origin":return C?I:E;case"strict-origin-when-cross-origin":{let Y=BG(A);if(gW(I,Y))return I;if(QG(I)&&!QG(Y))return"no-referrer";return E}case"strict-origin":case"no-referrer-when-downgrade":default:return D?"no-referrer":E}}function yT(A,Q){if(FC(A instanceof URL),A.protocol==="file:"||A.protocol==="about:"||A.protocol==="blank:")return"no-referrer";if(A.username="",A.password="",A.hash="",Q)A.pathname="",A.search="";return A}function QG(A){if(!(A instanceof URL))return!1;if(A.href==="about:blank"||A.href==="about:srcdoc")return!0;if(A.protocol==="data:")return!0;if(A.protocol==="file:")return!0;return Q(A.origin);function Q(B){if(B==null||B==="null")return!1;let I=new URL(B);if(I.protocol==="https:"||I.protocol==="wss:")return!0;if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(I.hostname)||(I.hostname==="localhost"||I.hostname.includes("localhost."))||I.hostname.endsWith(".localhost"))return!0;return!1}}function aTA(A,Q){if(PW===void 0)return!0;let B=rp(Q);if(B==="no metadata")return!0;if(B.length===0)return!0;let I=sTA(B),E=rTA(B,I);for(let C of E){let{algo:D,hash:Y}=C,J=PW.createHash(D).update(A).digest("base64");if(J[J.length-1]==="=")if(J[J.length-2]==="=")J=J.slice(0,-2);else J=J.slice(0,-1);if(tTA(J,Y))return!0}return!1}var oTA=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function rp(A){let Q=[],B=!0;for(let I of A.split(" ")){B=!1;let E=oTA.exec(I);if(E===null||E.groups===void 0||E.groups.algo===void 0)continue;let C=E.groups.algo.toLowerCase();if(np.includes(C))Q.push(E.groups)}if(B===!0)return"no metadata";return Q}function sTA(A){let Q=A[0].algo;if(Q[3]==="5")return Q;for(let B=1;B<A.length;++B){let I=A[B];if(I.algo[3]==="5"){Q="sha512";break}else if(Q[3]==="3")continue;else if(I.algo[3]==="3")Q="sha384"}return Q}function rTA(A,Q){if(A.length===1)return A;let B=0;for(let I=0;I<A.length;++I)if(A[I].algo===Q)A[B++]=A[I];return A.length=B,A}function tTA(A,Q){if(A.length!==Q.length)return!1;for(let B=0;B<A.length;++B)if(A[B]!==Q[B]){if(A[B]==="+"&&Q[B]==="-"||A[B]==="/"&&Q[B]==="_")continue;return!1}return!0}function eTA(A){}function gW(A,Q){if(A.origin===Q.origin&&A.origin==="null")return!0;if(A.protocol===Q.protocol&&A.hostname===Q.hostname&&A.port===Q.port)return!0;return!1}function AOA(){let A,Q;return{promise:new Promise((I,E)=>{A=I,Q=E}),resolve:A,reject:Q}}function QOA(A){return A.controller.state==="aborted"}function BOA(A){return A.controller.state==="aborted"||A.controller.state==="terminated"}var dT={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(dT,null);function IOA(A){return dT[A.toLowerCase()]??A}function EOA(A){let Q=JSON.stringify(A);if(Q===void 0)throw TypeError("Value is not JSON serializable");return FC(typeof Q==="string"),Q}var COA=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function DOA(A,Q,B){let I={index:0,kind:B,target:A},E={next(){if(Object.getPrototypeOf(this)!==E)throw TypeError(`'next' called on an object that does not implement interface ${Q} Iterator.`);let{index:C,kind:D,target:Y}=I,J=Y(),G=J.length;if(C>=G)return{value:void 0,done:!0};let Line truncated
`||A==="\t"||A===" "}function mT(A,Q=!0,B=!0){let I=0,E=A.length-1;if(Q)for(;I<A.length&&Ec(A[I]);I++);if(B)for(;E>0&&Ec(A[E]);E--);return A.slice(I,E+1)}function Cc(A){return A==="\r"||A===`
`||A==="\t"||A==="\f"||A===" "}function TOA(A,Q=!0,B=!0){let I=0,E=A.length-1;if(Q)for(;I<A.length&&Cc(A[I]);I++);if(B)for(;E>0&&Cc(A[E]);E--);return A.slice(I,E+1)}Fc.exports={dataURLProcessor:LOA,URLSerializer:Dc,collectASequenceOfCodePoints:SW,collectASequenceOfCodePointsFast:GC,stringPercentDecode:Yc,parseMIMEType:uT,collectAnHTTPQuotedString:Jc,serializeAMimeType:qOA}});var xW=V((_g1,Uc)=>{var{Blob:Nc,File:Gc}=require("buffer"),{types:pT}=require("util"),{kState:i9}=X3(),{isBlobLike:Xc}=w8(),{webidl:q0}=u6(),{parseMIMEType:OOA,serializeAMimeType:jOA}=M5(),{kEnumerableProperty:Zc}=N0(),POA=new TextEncoder;class II extends Nc{constructor(A,Q,B={}){q0.argumentLengthCheck(arguments,2,{header:"File constructor"}),A=q0.converters["sequence<BlobPart>"](A),Q=q0.converters.USVString(Q),B=q0.converters.FilePropertyBag(B);let I=Q,E=B.type,C;A:{if(E){if(E=OOA(E),E==="failure"){E="";break A}E=jOA(E).toLowerCase()}C=B.lastModified}super(gOA(A,B),{type:E});this[i9]={name:I,lastModified:C,type:E}}get name(){return q0.brandCheck(this,II),this[i9].name}get lastModified(){return q0.brandCheck(this,II),this[i9].lastModified}get type(){return q0.brandCheck(this,II),this[i9].type}}class IQ{constructor(A,Q,B={}){let I=Q,E=B.type,C=B.lastModified??Date.now();this[i9]={blobLike:A,name:I,type:E,lastModified:C}}stream(...A){return q0.brandCheck(this,IQ),this[i9].blobLike.stream(...A)}arrayBuffer(...A){return q0.brandCheck(this,IQ),this[i9].blobLike.arrayBuffer(...A)}slice(...A){return q0.brandCheck(this,IQ),this[i9].blobLike.slice(...A)}text(...A){return q0.brandCheck(this,IQ),this[i9].blobLike.text(...A)}get size(){return q0.brandCheck(this,IQ),this[i9].blobLike.size}get type(){return q0.brandCheck(this,IQ),this[i9].blobLike.type}get name(){return q0.brandCheck(this,IQ),this[i9].name}get lastModified(){return q0.brandCheck(this,IQ),this[i9].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(II.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:Zc,lastModified:Zc});q0.converters.Blob=q0.interfaceConverter(Nc);q0.converters.BlobPart=function(A,Q){if(q0.util.Type(A)==="Object"){if(Xc(A))return q0.converters.Blob(A,{strict:!1});if(ArrayBuffer.isView(A)||pT.isAnyArrayBuffer(A))return q0.converters.BufferSource(A,Q)}return q0.converters.USVString(A,Q)};q0.converters["sequence<BlobPart>"]=q0.sequenceConverter(q0.converters.BlobPart);q0.converters.FilePropertyBag=q0.dictionaryConverter([{key:"lastModified",converter:q0.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:q0.converters.DOMString,defaultValue:""},{key:"endings",converter:(A)=>{if(A=q0.converters.DOMString(A),A=A.toLowerCase(),A!=="native")A="transparent";return A},defaultValue:"transparent"}]);function gOA(A,Q){let B=[];for(let I of A)if(typeof I==="string"){let E=I;if(Q.endings==="native")E=_OA(E);B.push(POA.encode(E))}else if(pT.isAnyArrayBuffer(I)||pT.isTypedArray(I))if(!I.buffer)B.push(new Uint8Array(I));else B.push(new Uint8Array(I.buffer,I.byteOffset,I.byteLength));else if(Xc(I))B.push(I);return B}function _OA(A){let Q=`
`;if(process.platform==="win32")Q=`\r
`;return A.replace(/\r?\n/g,Q)}function vOA(A){return Gc&&A instanceof Gc||A instanceof II||A&&(typeof A.stream==="function"||typeof A.arrayBuffer==="function")&&A[Symbol.toStringTag]==="File"}Uc.exports={File:II,FileLike:IQ,isFileLike:vOA}});var hW=V((vg1,Hc)=>{var{isBlobLike:kW,toUSVString:SOA,makeIterator:cT}=w8(),{kState:$6}=X3(),{File:$c,FileLike:Wc,isFileLike:xOA}=xW(),{webidl:y0}=u6(),{Blob:kOA,File:lT}=require("buffer"),Vc=lT??$c;class p6{constructor(A){if(A!==void 0)throw y0.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[$6]=[]}append(A,Q,B=void 0){if(y0.brandCheck(this,p6),y0.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!kW(Q))throw TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");A=y0.converters.USVString(A),Q=kW(Q)?y0.converters.Blob(Q,{strict:!1}):y0.converters.USVString(Q),B=arguments.length===3?y0.converters.USVString(B):void 0;let I=Kc(A,Q,B);this[$6].push(I)}delete(A){y0.brandCheck(this,p6),y0.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),A=y0.converters.USVString(A),this[$6]=this[$6].filter((Q)=>Q.name!==A)}get(A){y0.brandCheck(this,p6),y0.argumentLengthCheck(arguments,1,{header:"FormData.get"}),A=y0.converters.USVString(A);let Q=this[$6].findIndex((B)=>B.name===A);if(Q===-1)return null;return this[$6][Q].value}getAll(A){return y0.brandCheck(this,p6),y0.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),A=y0.converters.USVString(A),this[$6].filter((Q)=>Q.name===A).map((Q)=>Q.value)}has(A){return y0.brandCheck(this,p6),y0.argumentLengthCheck(arguments,1,{header:"FormData.has"}),A=y0.converters.USVString(A),this[$6].findIndex((Q)=>Q.name===A)!==-1}set(A,Q,B=void 0){if(y0.brandCheck(this,p6),y0.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!kW(Q))throw TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");A=y0.converters.USVString(A),Q=kW(Q)?y0.converters.Blob(Q,{strict:!1}):y0.converters.USVString(Q),B=arguments.length===3?SOA(B):void 0;let I=Kc(A,Q,B),E=this[$6].findIndex((C)=>C.name===A);if(E!==-1)this[$6]=[...this[$6].slice(0,E),I,...this[$6].slice(E+1).filter((C)=>C.name!==A)];else this[$6].push(I)}entries(){return y0.brandCheck(this,p6),cT(()=>this[$6].map((A)=>[A.name,A.value]),"FormData","key+value")}keys(){return y0.brandCheck(this,p6),cT(()=>this[$6].map((A)=>[A.name,A.value]),"FormData","key")}values(){return y0.brandCheck(this,p6),cT(()=>this[$6].map((A)=>[A.name,A.value]),"FormData","value")}forEach(A,Q=globalThis){if(y0.brandCheck(this,p6),y0.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof A!=="function")throw TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[B,I]of this)A.apply(Q,[I,B,this])}}p6.prototype[Symbol.iterator]=p6.prototype.entries;Object.defineProperties(p6.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function Kc(A,Q,B){if(A=Buffer.from(A).toString("utf8"),typeof Q==="string")Q=Buffer.from(Q).toString("utf8");else{if(!xOA(Q))Q=Q instanceof kOA?new Vc([Q],"blob",{type:Q.type}):new Wc(Q,"blob",{type:Q.type});if(B!==void 0){let I={type:Q.type,lastModified:Q.lastModified};Q=lT&&Q instanceof lT||Q instanceof $c?new Vc([Q],B,I):new Wc(Q,B,I)}}return{name:A,value:Q}}Hc.exports={FormData:p6}});var IG=V((Sg1,jc)=>{var hOA=yp(),ZC=N0(),{ReadableStreamFrom:yOA,isBlobLike:wc,isReadableStreamLike:fOA,readableStreamClose:bOA,createDeferredPromise:dOA,fullyReadBody:mOA}=w8(),{FormData:zc}=hW(),{kState:W3}=X3(),{webidl:iT}=u6(),{DOMException:Rc,structuredClone:uOA}=$7(),{Blob:pOA,File:cOA}=require("buffer"),{kBodyUsed:lOA}=I2(),nT=require("assert"),{isErrored:iOA}=N0(),{isUint8Array:qc,isArrayBuffer:nOA}=require("util/types"),{File:aOA}=xW(),{parseMIMEType:oOA,serializeAMimeType:sOA}=M5(),aT;try{let A=require("node:crypto");aT=(Q)=>A.randomInt(0,Q)}catch{aT=(A)=>Math.floor(Math.random(A))}var U3=globalThis.ReadableStream,Lc=cOA??aOA,yW=new TextEncoder,rOA=new TextDecoder;function Tc(A,Q=!1){if(!U3)U3=require("stream/web").ReadableStream;let B=null;if(A instanceof U3)B=A;else if(wc(A))B=A.stream();else B=new U3({async pull(J){J.enqueue(typeof E==="string"?yW.encode(E):E),queueMicrotask(()=>bOA(J))},start(){},type:void 0});nT(fOA(B));let I=null,E=null,C=null,D=null;if(typeof A==="string")E=A,D="text/plain;charset=UTF-8";else if(A instanceof URLSearchParams)E=A.toString(),D="application/x-www-form-urlencoded;charset=UTF-8";else if(nOA(A))E=new Uint8Array(A.slice());else if(ArrayBuffer.isView(A))E=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength));else if(ZC.isFormDataLike(A)){let J=`----formdata-undici-0${`${aT(100000000000)}`.padStart(11,"0")}`,G=`--${J}\r
Content-Disposition: form-data`;/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */let F=($)=>$.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),Z=($)=>$.replace(/\r?\n|\r/g,`\r
`),N=[],X=new Uint8Array([13,10]);C=0;let U=!1;for(let[$,H]of A)if(typeof H==="string"){let L=yW.encode(G+`; name="${F(Z($))}"\r
\r
${Z(H)}\r
`);N.push(L),C+=L.byteLength}else{let L=yW.encode(`${G}; name="${F(Z($))}"`+(H.name?`; filename="${F(H.name)}"`:"")+`\r
Content-Type: ${H.type||"application/octet-stream"}\r
\r
`);if(N.push(L,H,X),typeof H.size==="number")C+=L.byteLength+H.size+X.byteLength;else U=!0}let W=yW.encode(`--${J}--`);if(N.push(W),C+=W.byteLength,U)C=null;E=A,I=async function*(){for(let $ of N)if($.stream)yield*$.stream();else yield $},D="multipart/form-data; boundary="+J}else if(wc(A)){if(E=A,C=A.size,A.type)D=A.type}else if(typeof A[Symbol.asyncIterator]==="function"){if(Q)throw TypeError("keepalive");if(ZC.isDisturbed(A)||A.locked)throw TypeError("Response body object should not be disturbed or locked");B=A instanceof U3?A:yOA(A)}if(typeof E==="string"||ZC.isBuffer(E))C=Buffer.byteLength(E);if(I!=null){let J;B=new U3({async start(){J=I(A)[Symbol.asyncIterator]()},async pull(G){let{value:F,done:Z}=await J.next();if(Z)queueMicrotask(()=>{G.close()});else if(!iOA(B))G.enqueue(new Uint8Array(F));return G.desiredSize>0},async cancel(G){await J.return()},type:void 0})}return[{stream:B,source:E,length:C},D]}function tOA(A,Q=!1){if(!U3)U3=require("stream/web").ReadableStream;if(A instanceof U3)nT(!ZC.isDisturbed(A),"The body has already been consumed."),nT(!A.locked,"The stream is locked.");return Tc(A,Q)}function eOA(A){let[Q,B]=A.stream.tee(),I=uOA(B,{transfer:[B]}),[,E]=I.tee();return A.stream=Q,{stream:E,length:A.length,source:A.source}}async function*Mc(A){if(A)if(qc(A))yield A;else{let Q=A.stream;if(ZC.isDisturbed(Q))throw TypeError("The body has already been consumed.");if(Q.locked)throw TypeError("The stream is locked.");Q[lOA]=!0,yield*Q}}function oT(A){if(A.aborted)throw new Rc("The operation was aborted.","AbortError")}function AjA(A){return{blob(){return fW(this,(B)=>{let I=EjA(this);if(I==="failure")I="";else if(I)I=sOA(I);return new pOA([B],{type:I})},A)},arrayBuffer(){return fW(this,(B)=>{return new Uint8Array(B).buffer},A)},text(){return fW(this,Oc,A)},json(){return fW(this,IjA,A)},async formData(){iT.brandCheck(this,A),oT(this[W3]);let B=this.headers.get("Content-Type");if(/multipart\/form-data/.test(B)){let I={};for(let[Y,J]of this.headers)I[Y.toLowerCase()]=J;let E=new zc,C;try{C=new hOA({headers:I,preservePath:!0})}catch(Y){throw new Rc(`${Y}`,"AbortError")}C.on("field",(Y,J)=>{E.append(Y,J)}),C.on("file",(Y,J,G,F,Z)=>{let N=[];if(F==="base64"||F.toLowerCase()==="base64"){let X="";J.on("data",(U)=>{X+=U.toString().replace(/[\r\n]/gm,"");let W=X.length-X.length%4;N.push(Buffer.from(X.slice(0,W),"base64")),X=X.slice(W)}),J.on("end",()=>{N.push(Buffer.from(X,"base64")),E.append(Y,new Lc(N,G,{type:Z}))})}else J.on("data",(X)=>{N.push(X)}),J.on("end",()=>{E.append(Y,new Lc(N,G,{type:Z}))})});let D=new Promise((Y,J)=>{C.on("finish",Y),C.on("error",(G)=>J(TypeError(G)))});if(this.body!==null)for await(let Y of Mc(this[W3].body))C.write(Y);return C.end(),await D,E}else if(/application\/x-www-form-urlencoded/.test(B)){let I;try{let C="",D=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let Y of Mc(this[W3].body)){if(!qc(Y))throw TypeError("Expected Uint8Array chunk");C+=D.decode(Y,{stream:!0})}C+=D.decode(),I=new URLSearchParams(C)}catch(C){throw Object.assign(TypeError(),{cause:C})}let E=new zc;for(let[C,D]of I)E.append(C,D);return E}else throw await Promise.resolve(),oT(this[W3]),iT.errors.exception({header:`${A.name}.formData`,message:"Could not parse content as FormData."})}}}function QjA(A){Object.assign(A.prototype,AjA(A))}async function fW(A,Q,B){if(iT.brandCheck(A,B),oT(A[W3]),BjA(A[W3].body))throw TypeError("Body is unusable");let I=dOA(),E=(D)=>I.reject(D),C=(D)=>{try{I.resolve(Q(D))}catch(Y){E(Y)}};if(A[W3].body==null)return C(new Uint8Array),I.promise;return await mOA(A[W3].body,C,E),I.promise}function BjA(A){return A!=null&&(A.stream.locked||ZC.isDisturbed(A.stream))}function Oc(A){if(A.length===0)return"";if(A[0]===239&&A[1]===187&&A[2]===191)A=A.subarray(3);return rOA.decode(A)}function IjA(A){return JSON.parse(Oc(A))}function EjA(A){let{headersList:Q}=A[W3],B=Q.get("content-type");if(B===null)return"failure";return oOA(B)}jc.exports={extractBody:Tc,safelyExtractBody:tOA,cloneBody:eOA,mixinBody:QjA}});var vc=V((xg1,_c)=>{var{InvalidArgumentError:r0,NotSupportedError:CjA}=c0(),V3=require("assert"),{kHTTP2BuildRequest:DjA,kHTTP2CopyHeaders:YjA,kHTTP1BuildRequest:JjA}=I2(),$9=N0(),Pc=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,gc=/[^\t\x20-\x7e\x80-\xff]/,FjA=/[^\u0021-\u00ff]/,R5=Symbol("handler"),Q4={},sT;try{let A=require("diagnostics_channel");Q4.create=A.channel("undici:request:create"),Q4.bodySent=A.channel("undici:request:bodySent"),Q4.headers=A.channel("undici:request:headers"),Q4.trailers=A.channel("undici:request:trailers"),Q4.error=A.channel("undici:request:error")}catch{Q4.create={hasSubscribers:!1},Q4.bodySent={hasSubscribers:!1},Q4.headers={hasSubscribers:!1},Q4.trailers={hasSubscribers:!1},Q4.error={hasSubscribers:!1}}class bW{constructor(A,{path:Q,method:B,body:I,headers:E,query:C,idempotent:D,blocking:Y,upgrade:J,headersTimeout:G,bodyTimeout:F,reset:Z,throwOnError:N,expectContinue:X},U){if(typeof Q!=="string")throw new r0("path must be a string");else if(Q[0]!=="/"&&!(Q.startsLine truncated
`;this.body=W.stream,this.contentLength=W.length}else if($9.isBlobLike(I)&&this.contentType==null&&I.type)this.contentType=I.type,this.headers+=`content-type: ${I.type}\r
`;if($9.validateHandler(U,B,J),this.servername=$9.getServerName(this.host),this[R5]=U,Q4.create.hasSubscribers)Q4.create.publish({request:this})}onBodySent(A){if(this[R5].onBodySent)try{return this[R5].onBodySent(A)}catch(Q){this.abort(Q)}}onRequestSent(){if(Q4.bodySent.hasSubscribers)Q4.bodySent.publish({request:this});if(this[R5].onRequestSent)try{return this[R5].onRequestSent()}catch(A){this.abort(A)}}onConnect(A){if(V3(!this.aborted),V3(!this.completed),this.error)A(this.error);else return this.abort=A,this[R5].onConnect(A)}onHeaders(A,Q,B,I){if(V3(!this.aborted),V3(!this.completed),Q4.headers.hasSubscribers)Q4.headers.publish({request:this,response:{statusCode:A,headers:Q,statusText:I}});try{return this[R5].onHeaders(A,Q,B,I)}catch(E){this.abort(E)}}onData(A){V3(!this.aborted),V3(!this.completed);try{return this[R5].onData(A)}catch(Q){return this.abort(Q),!1}}onUpgrade(A,Q,B){return V3(!this.aborted),V3(!this.completed),this[R5].onUpgrade(A,Q,B)}onComplete(A){if(this.onFinally(),V3(!this.aborted),this.completed=!0,Q4.trailers.hasSubscribers)Q4.trailers.publish({request:this,trailers:A});try{return this[R5].onComplete(A)}catch(Q){this.onError(Q)}}onError(A){if(this.onFinally(),Q4.error.hasSubscribers)Q4.error.publish({request:this,error:A});if(this.aborted)return;return this.aborted=!0,this[R5].onError(A)}onFinally(){if(this.errorHandler)this.body.off("error",this.errorHandler),this.errorHandler=null;if(this.endHandler)this.body.off("end",this.endHandler),this.endHandler=null}addHeader(A,Q){return EG(this,A,Q),this}static[JjA](A,Q,B){return new bW(A,Q,B)}static[DjA](A,Q,B){let I=Q.headers;Q={...Q,headers:null};let E=new bW(A,Q,B);if(E.headers={},Array.isArray(I)){if(I.length%2!==0)throw new r0("headers array must be even");for(let C=0;C<I.length;C+=2)EG(E,I[C],I[C+1],!0)}else if(I&&typeof I==="object"){let C=Object.keys(I);for(let D=0;D<C.length;D++){let Y=C[D];EG(E,Y,I[Y],!0)}}else if(I!=null)throw new r0("headers must be an object or an array");return E}static[YjA](A){let Q=A.split(`\r
`),B={};for(let I of Q){let[E,C]=I.split(": ");if(C==null||C.length===0)continue;if(B[E])B[E]+=`,${C}`;else B[E]=C}return B}}function EI(A,Q,B){if(Q&&typeof Q==="object")throw new r0(`invalid ${A} header`);if(Q=Q!=null?`${Q}`:"",gc.exec(Q)!==null)throw new r0(`invalid ${A} header`);return B?Q:`${A}: ${Q}\r
`}function EG(A,Q,B,I=!1){if(B&&(typeof B==="object"&&!Array.isArray(B)))throw new r0(`invalid ${Q} header`);else if(B===void 0)return;if(A.host===null&&Q.length===4&&Q.toLowerCase()==="host"){if(gc.exec(B)!==null)throw new r0(`invalid ${Q} header`);A.host=B}else if(A.contentLength===null&&Q.length===14&&Q.toLowerCase()==="content-length"){if(A.contentLength=parseInt(B,10),!Number.isFinite(A.contentLength))throw new r0("invalid content-length header")}else if(A.contentType===null&&Q.length===12&&Q.toLowerCase()==="content-type")if(A.contentType=B,I)A.headers[Q]=EI(Q,B,I);else A.headers+=EI(Q,B);else if(Q.length===17&&Q.toLowerCase()==="transfer-encoding")throw new r0("invalid transfer-encoding header");else if(Q.length===10&&Q.toLowerCase()==="connection"){let E=typeof B==="string"?B.toLowerCase():null;if(E!=="close"&&E!=="keep-alive")throw new r0("invalid connection header");else if(E==="close")A.reset=!0}else if(Q.length===10&&Q.toLowerCase()==="keep-alive")throw new r0("invalid keep-alive header");else if(Q.length===7&&Q.toLowerCase()==="upgrade")throw new r0("invalid upgrade header");else if(Q.length===6&&Q.toLowerCase()==="expect")throw new CjA("expect header not supported");else if(Pc.exec(Q)===null)throw new r0("invalid header key");else if(Array.isArray(B))for(let E=0;E<B.length;E++)if(I)if(A.headers[Q])A.headers[Q]+=`,${EI(Q,B[E],I)}`;else A.headers[Q]=EI(Q,B[E],I);else A.headers+=EI(Q,B[E]);else if(I)A.headers[Q]=EI(Q,B,I);else A.headers+=EI(Q,B)}_c.exports=bW});var dW=V((kg1,xc)=>{var GjA=require("events");class Sc extends GjA{dispatch(){throw Error("not implemented")}close(){throw Error("not implemented")}destroy(){throw Error("not implemented")}}xc.exports=Sc});var DG=V((hg1,hc)=>{var ZjA=dW(),{ClientDestroyedError:rT,ClientClosedError:NjA,InvalidArgumentError:NC}=c0(),{kDestroy:XjA,kClose:UjA,kDispatch:tT,kInterceptors:CI}=I2(),XC=Symbol("destroyed"),CG=Symbol("closed"),K3=Symbol("onDestroyed"),UC=Symbol("onClosed"),mW=Symbol("Intercepted Dispatch");class kc extends ZjA{constructor(){super();this[XC]=!1,this[K3]=null,this[CG]=!1,this[UC]=[]}get destroyed(){return this[XC]}get closed(){return this[CG]}get interceptors(){return this[CI]}set interceptors(A){if(A){for(let Q=A.length-1;Q>=0;Q--)if(typeof this[CI][Q]!=="function")throw new NC("interceptor must be an function")}this[CI]=A}close(A){if(A===void 0)return new Promise((B,I)=>{this.close((E,C)=>{return E?I(E):B(C)})});if(typeof A!=="function")throw new NC("invalid callback");if(this[XC]){queueMicrotask(()=>A(new rT,null));return}if(this[CG]){if(this[UC])this[UC].push(A);else queueMicrotask(()=>A(null,null));return}this[CG]=!0,this[UC].push(A);let Q=()=>{let B=this[UC];this[UC]=null;for(let I=0;I<B.length;I++)B[I](null,null)};this[UjA]().then(()=>this.destroy()).then(()=>{queueMicrotask(Q)})}destroy(A,Q){if(typeof A==="function")Q=A,A=null;if(Q===void 0)return new Promise((I,E)=>{this.destroy(A,(C,D)=>{return C?E(C):I(D)})});if(typeof Q!=="function")throw new NC("invalid callback");if(this[XC]){if(this[K3])this[K3].push(Q);else queueMicrotask(()=>Q(null,null));return}if(!A)A=new rT;this[XC]=!0,this[K3]=this[K3]||[],this[K3].push(Q);let B=()=>{let I=this[K3];this[K3]=null;for(let E=0;E<I.length;E++)I[E](null,null)};this[XjA](A).then(()=>{queueMicrotask(B)})}[mW](A,Q){if(!this[CI]||this[CI].length===0)return this[mW]=this[tT],this[tT](A,Q);let B=this[tT].bind(this);for(let I=this[CI].length-1;I>=0;I--)B=this[CI][I](B);return this[mW]=B,B(A,Q)}dispatch(A,Q){if(!Q||typeof Q!=="object")throw new NC("handler must be an object");try{if(!A||typeof A!=="object")throw new NC("opts must be an object.");if(this[XC]||this[K3])throw new rT;if(this[CG])throw new NjA;return this[mW](A,Q)}catch(B){if(typeof Q.onError!=="function")throw new NC("invalid onError method");return Q.onError(B),!1}}}hc.exports=kc});var YG=V((yg1,bc)=>{var WjA=require("net"),yc=require("assert"),fc=N0(),{InvalidArgumentError:VjA,ConnectTimeoutError:KjA}=c0(),eT,AO;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE)AO=class{constructor(Q){this._maxCachedSessions=Q,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry((B)=>{if(this._sessionCache.size<this._maxCachedSessions)return;let I=this._sessionCache.get(B);if(I!==void 0&&I.deref()===void 0)this._sessionCache.delete(B)})}get(Q){let B=this._sessionCache.get(Q);return B?B.deref():null}set(Q,B){if(this._maxCachedSessions===0)return;this._sessionCache.set(Q,new WeakRef(B)),this._sessionRegistry.register(B,Q)}};else AO=class{constructor(Q){this._maxCachedSessions=Q,this._sessionCache=new Map}get(Q){return this._sessionCache.get(Q)}set(Q,B){if(this._maxCachedSessions===0)return;if(this._sessionCache.size>=this._maxCachedSessions){let{value:I}=this._sessionCache.keys().next();this._sessionCache.delete(I)}this._sessionCache.set(Q,B)}};function $jA({allowH2:A,maxCachedSessions:Q,socketPath:B,timeout:I,...E}){if(Q!=null&&(!Number.isInteger(Q)||Q<0))throw new VjA("maxCachedSessions must be a positive Line truncated
`,this[Il]=Y!=null?Y:300000,this[Bl]=I!=null?I:300000,this[XG]=H==null?!0:H,this[ajA]=w,this[UG]=c,this[w7]=null,this[Cl]=S>-1?S:-1,this[FQ]="h1",this[a9]=null,this[aW]=!k?null:{openStreams:0,maxConcurrentStreams:i!=null?i:100},this[Dl]=`${this[e4].hostname}${this[e4].port?`:${this[e4].port}`:""}`,this[E2]=[],this[C2]=0,this[n9]=0}get pipelining(){return this[L7]}set pipelining(A){this[L7]=A,o9(this,!0)}get[JI](){return this[E2].length-this[n9]}get[q2](){return this[n9]-this[C2]}get[YI](){return this[E2].length-this[C2]}get[njA](){return!!this[S2]&&!this[VC]&&!this[S2].destroyed}get[JO](){let A=this[S2];return A&&(A[c6]||A[w3]||A[$C])||this[YI]>=(this[L7]||1)||this[JI]>0}[ijA](A){Nl(this),this.once("connect",A)}[rjA](A,Q){let B=A.origin||this[e4].origin,I=this[FQ]==="h2"?YO[ejA](B,A,Q):YO[QPA](B,A,Q);if(this[E2].push(I),this[DI]);else if(C1.bodyLength(I.body)==null&&C1.isIterable(I.body))this[DI]=1,process.nextTick(o9,this);else o9(this,!0);if(this[DI]&&this[z7]!==2&&this[JO])this[z7]=2;return this[z7]<2}async[ojA](){return new Promise((A)=>{if(!this[YI])A(null);else this[w7]=A})}async[sjA](A){return new Promise((Q)=>{let B=this[E2].splice(this[n9]);for(let E=0;E<B.length;E++){let C=B[E];l6(this,C,A)}let I=()=>{if(this[w7])this[w7](),this[w7]=null;Q()};if(this[a9]!=null)C1.destroy(this[a9],A),this[a9]=null,this[aW]=null;if(!this[S2])queueMicrotask(I);else C1.destroy(this[S2].on("close",I),A);o9(this)})}}function FPA(A){cA(A.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[S2][A6]=A,rW(this[JQ],A)}function GPA(A,Q,B){let I=new YQ(`HTTP/2: "frameError" received - type ${A}, code ${Q}`);if(B===0)this[S2][A6]=I,rW(this[JQ],I)}function ZPA(){C1.destroy(this,new KC("other side closed")),C1.destroy(this[S2],new KC("other side closed"))}function NPA(A){let Q=this[JQ],B=new YQ(`HTTP/2: "GOAWAY" frame received with code ${A}`);if(Q[S2]=null,Q[a9]=null,Q.destroyed){cA(this[JI]===0);let I=Q[E2].splice(Q[C2]);for(let E=0;E<I.length;E++){let C=I[E];l6(this,C,B)}}else if(Q[q2]>0){let I=Q[E2][Q[C2]];Q[E2][Q[C2]++]=null,l6(Q,I,B)}Q[n9]=Q[C2],cA(Q[q2]===0),Q.emit("disconnect",Q[e4],[Q],B),o9(Q)}var EQ=mc(),XPA=pW(),UPA=Buffer.alloc(0);async function WPA(){let A=process.env.JEST_WORKER_ID?EO():void 0,Q;try{Q=await WebAssembly.compile(Buffer.from(oc(),"base64"))}catch(B){Q=await WebAssembly.compile(Buffer.from(A||EO(),"base64"))}return await WebAssembly.instantiate(Q,{env:{wasm_on_url:(B,I,E)=>{return 0},wasm_on_status:(B,I,E)=>{cA.strictEqual(W4.ptr,B);let C=I-DQ+CQ.byteOffset;return W4.onStatus(new cW(CQ.buffer,C,E))||0},wasm_on_message_begin:(B)=>{return cA.strictEqual(W4.ptr,B),W4.onMessageBegin()||0},wasm_on_header_field:(B,I,E)=>{cA.strictEqual(W4.ptr,B);let C=I-DQ+CQ.byteOffset;return W4.onHeaderField(new cW(CQ.buffer,C,E))||0},wasm_on_header_value:(B,I,E)=>{cA.strictEqual(W4.ptr,B);let C=I-DQ+CQ.byteOffset;return W4.onHeaderValue(new cW(CQ.buffer,C,E))||0},wasm_on_headers_complete:(B,I,E,C)=>{return cA.strictEqual(W4.ptr,B),W4.onHeadersComplete(I,Boolean(E),Boolean(C))||0},wasm_on_body:(B,I,E)=>{cA.strictEqual(W4.ptr,B);let C=I-DQ+CQ.byteOffset;return W4.onBody(new cW(CQ.buffer,C,E))||0},wasm_on_message_complete:(B)=>{return cA.strictEqual(W4.ptr,B),W4.onMessageComplete()||0}}})}var DO=null,GO=WPA();GO.catch();var W4=null,CQ=null,lW=0,DQ=null,HC=1,nW=2,ZO=3;class Jl{constructor(A,Q,{exports:B}){cA(Number.isFinite(A[iW])&&A[iW]>0),this.llhttp=B,this.ptr=this.llhttp.llhttp_alloc(EQ.TYPE.RESPONSE),this.client=A,this.socket=Q,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=A[iW],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=A[Cl]}setTimeout(A,Q){if(this.timeoutType=Q,A!==this.timeoutValue){if(CO.clearTimeout(this.timeout),A){if(this.timeout=CO.setTimeout(VPA,A,this),this.timeout.unref)this.timeout.unref()}else this.timeout=null;this.timeoutValue=A}else if(this.timeout){if(this.timeout.refresh)this.timeout.refresh()}}resume(){if(this.socket.destroyed||!this.paused)return;if(cA(this.ptr!=null),cA(W4==null),this.llhttp.llhttp_resume(this.ptr),cA(this.timeoutType===nW),this.timeout){if(this.timeout.refresh)this.timeout.refresh()}this.paused=!1,this.execute(this.socket.read()||UPA),this.readMore()}readMore(){while(!this.paused&&this.ptr){let A=this.socket.read();if(A===null)break;this.execute(A)}}execute(A){cA(this.ptr!=null),cA(W4==null),cA(!this.paused);let{socket:Q,llhttp:B}=this;if(A.length>lW){if(DQ)B.free(DQ);lW=Math.ceil(A.length/4096)*4096,DQ=B.malloc(lW)}new Uint8Array(B.memory.buffer,DQ,lW).set(A);try{let I;try{CQ=A,W4=this,I=B.llhttp_execute(this.ptr,DQ,A.length)}catch(C){throw C}finally{W4=null,CQ=null}let E=B.llhttp_get_error_pos(this.ptr)-DQ;if(I===EQ.ERROR.PAUSED_UPGRADE)this.onUpgrade(A.slice(E));else if(I===EQ.ERROR.PAUSED)this.paused=!0,Q.unshift(A.slice(E));else if(I Line truncated
`;if(typeof C==="string")U+=`host: ${C}\r
`;else U+=A[ec];if(D)U+=`connection: upgrade\r
upgrade: ${D}\r
`;else if(A[L7]&&!X[c6])U+=`connection: keep-alive\r
`;else U+=`connection: close\r
`;if(Y)U+=Y;if(H6.sendHeaders.hasSubscribers)H6.sendHeaders.publish({request:Q,headers:U,socket:X});if(!B||Z===0){if(N===0)X.write(`${U}content-length: 0\r
\r
`,"latin1");else cA(N===null,"no body must not have content length"),X.write(`${U}\r
`,"latin1");Q.onRequestSent()}else if(C1.isBuffer(B)){if(cA(N===B.byteLength,"buffer body must have content length"),X.cork(),X.write(`${U}content-length: ${N}\r
\r
`,"latin1"),X.write(B),X.uncork(),Q.onBodySent(B),Q.onRequestSent(),!F)X[c6]=!0}else if(C1.isBlobLike(B))if(typeof B.stream==="function")sW({body:B.stream(),client:A,request:Q,socket:X,contentLength:N,header:U,expectsPayload:F});else Wl({body:B,client:A,request:Q,socket:X,contentLength:N,header:U,expectsPayload:F});else if(C1.isStream(B))Ul({body:B,client:A,request:Q,socket:X,contentLength:N,header:U,expectsPayload:F});else if(C1.isIterable(B))sW({body:B,client:A,request:Q,socket:X,contentLength:N,header:U,expectsPayload:F});else cA(!1);return!0}function HPA(A,Q,B){let{body:I,method:E,path:C,host:D,upgrade:Y,expectContinue:J,signal:G,headers:F}=B,Z;if(typeof F==="string")Z=YO[APA](F.trim());else Z=F;if(Y)return l6(A,B,Error("Upgrade not supported for H2")),!1;try{B.onConnect((L)=>{if(B.aborted||B.completed)return;l6(A,B,L||new XO)})}catch(L){l6(A,B,L)}if(B.aborted)return!1;let N,X=A[aW];if(Z[BPA]=D||A[Dl],Z[IPA]=E,E==="CONNECT"){if(Q.ref(),N=Q.request(Z,{endStream:!1,signal:G}),N.id&&!N.pending)B.onUpgrade(null,null,N),++X.openStreams;else N.once("ready",()=>{B.onUpgrade(null,null,N),++X.openStreams});return N.once("close",()=>{if(X.openStreams-=1,X.openStreams===0)Q.unref()}),!0}Z[EPA]=C,Z[CPA]="https";let U=E==="PUT"||E==="POST"||E==="PATCH";if(I&&typeof I.read==="function")I.read(0);let W=C1.bodyLength(I);if(W==null)W=B.contentLength;if(W===0||!U)W=null;if(Xl(E)&&W>0&&B.contentLength!=null&&B.contentLength!==W){if(A[XG])return l6(A,B,new H3),!1;process.emitWarning(new H3)}if(W!=null)cA(I,"no body must not have content length"),Z[DPA]=`${W}`;Q.ref();let $=E==="GET"||E==="HEAD";if(J)Z[YPA]="100-continue",N=Q.request(Z,{endStream:$,signal:G}),N.once("continue",H);else N=Q.request(Z,{endStream:$,signal:G}),H();return++X.openStreams,N.once("response",(L)=>{let{[JPA]:w,...P}=L;if(B.onHeaders(Number(w),P,N.resume.bind(N),"")===!1)N.pause()}),N.once("end",()=>{B.onComplete([])}),N.on("data",(L)=>{if(B.onData(L)===!1)N.pause()}),N.once("close",()=>{if(X.openStreams-=1,X.openStreams===0)Q.unref()}),N.once("error",function(L){if(A[a9]&&!A[a9].destroyed&&!this.closed&&!this.destroyed)X.streams-=1,C1.destroy(N,L)}),N.once("frameError",(L,w)=>{let P=new YQ(`HTTP/2: "frameError" received - type ${L}, code ${w}`);if(l6(A,B,P),A[a9]&&!A[a9].destroyed&&!this.closed&&!this.destroyed)X.streams-=1,C1.destroy(N,P)}),!0;function H(){if(!I)B.onRequestSent();else if(C1.isBuffer(I))cA(W===I.byteLength,"buffer body must have content length"),N.cork(),N.write(I),N.uncork(),N.end(),B.onBodySent(I),B.onRequestSent();else if(C1.isBlobLike(I))if(typeof I.stream==="function")sW({client:A,request:B,contentLength:W,h2stream:N,expectsPayload:U,body:I.stream(),socket:A[S2],header:""});else Wl({body:I,client:A,request:B,contentLength:W,expectsPayload:U,h2stream:N,header:"",socket:A[S2]});else if(C1.isStream(I))Ul({body:I,client:A,request:B,contentLength:W,expectsPayload:U,socket:A[S2],h2stream:N,header:""});else if(C1.isIterable(I))sW({body:I,client:A,request:B,contentLength:W,expectsPayload:U,header:"",h2stream:N,socket:A[S2]});else cA(!1)}}function Ul({h2stream:A,body:Q,client:B,request:I,socket:E,contentLength:C,header:D,expectsPayload:Y}){if(cA(C!==0||B[q2]===0,"stream body cannot be pipelined"),B[FQ]==="h2"){let W=function($){I.onBodySent($)},U=hjA(Q,A,($)=>{if($)C1.destroy(Q,$),C1.destroy(A,$);else I.onRequestSent()});U.on("data",W),U.once("end",()=>{U.removeListener("data",W),C1.destroy(U)});return}let J=!1,G=new UO({socket:E,request:I,contentLength:C,client:B,expectsPayload:Y,header:D}),F=function(U){if(J)return;try{if(!G.write(U)&&this.pause)this.pause()}catch(W){C1.destroy(this,W)}},Z=function(){if(J)return;if(Q.resume)Q.resume()},N=function(){if(J)return;let U=new XO;queueMicrotask(()=>X(U))},X=function(U){if(J)return;if(J=!0,cA(E.destroyed||E[w3]&&B[q2]<=1),E.off("drain",Z).off("error",X),Q.removeListener("data",F).removeListener("end",X).removeListener("error",X).removeListener("close",N),!U)try{G.end()}catch(W){U=W}if(G.destroy(U),U&&(U.code!=="UND_ERR_INFO"||U.message!=="reset"))C1.destroy(Q,U);else C1.destroy(Q)};if(Q.on("data",F).on("end",X).on("error",X).on("close",N),Q.resume)Q.resume();E.on("drain",Z).on("error",X)}async function Wl({h2stream:A,body:Q,client:B,request:I,socket:E,contentLength:C,header:D,expectsPayload:Y}){cA(C===Q.size,"blob body must have content length");let J=B[FQ]==="h2";try{if(C!=null&&C!==Q.size)throw new H3;let G=Buffer.from(await Q.arrayBuffer());if(J)A.cork(),A.write(G),A.uncork();else E.cork(),E.write(`${D}content-length: ${C}\r
\r
`,"latin1"),E.write(G),E.uncork();if(I.onBodySent(G),I.onRequestSent(),!Y)E[c6]=!0;o9(B)}catch(G){C1.destroy(J?A:E,G)}}async function sW({h2stream:A,body:Q,client:B,request:I,socket:E,contentLength:C,header:D,expectsPayload:Y}){cA(C!==0||B[q2]===0,"iterator body cannot be pipelined");let J=null;function G(){if(J){let N=J;J=null,N()}}let F=()=>new Promise((N,X)=>{if(cA(J===null),E[A6])X(E[A6]);else J=N});if(B[FQ]==="h2"){A.on("close",G).on("drain",G);try{for await(let N of Q){if(E[A6])throw E[A6];let X=A.write(N);if(I.onBodySent(N),!X)await F()}}catch(N){A.destroy(N)}finally{I.onRequestSent(),A.end(),A.off("close",G).off("drain",G)}return}E.on("close",G).on("drain",G);let Z=new UO({socket:E,request:I,contentLength:C,client:B,expectsPayload:Y,header:D});try{for await(let N of Q){if(E[A6])throw E[A6];if(!Z.write(N))await F()}Z.end()}catch(N){Z.destroy(N)}finally{E.off("close",G).off("drain",G)}}class UO{constructor({socket:A,request:Q,contentLength:B,client:I,expectsPayload:E,header:C}){this.socket=A,this.request=Q,this.contentLength=B,this.client=I,this.bytesWritten=0,this.expectsPayload=E,this.header=C,A[w3]=!0}write(A){let{socket:Q,request:B,contentLength:I,client:E,bytesWritten:C,expectsPayload:D,header:Y}=this;if(Q[A6])throw Q[A6];if(Q.destroyed)return!1;let J=Buffer.byteLength(A);if(!J)return!0;if(I!==null&&C+J>I){if(E[XG])throw new H3;process.emitWarning(new H3)}if(Q.cork(),C===0){if(!D)Q[c6]=!0;if(I===null)Q.write(`${Y}transfer-encoding: chunked\r
`,"latin1");else Q.write(`${Y}content-length: ${I}\r
\r
`,"latin1")}if(I===null)Q.write(`\r
${J.toString(16)}\r
`,"latin1");this.bytesWritten+=J;let G=Q.write(A);if(Q.uncork(),B.onBodySent(A),!G){if(Q[v2].timeout&&Q[v2].timeoutType===HC){if(Q[v2].timeout.refresh)Q[v2].timeout.refresh()}}return G}end(){let{socket:A,contentLength:Q,client:B,bytesWritten:I,expectsPayload:E,header:C,request:D}=this;if(D.onRequestSent(),A[w3]=!1,A[A6])throw A[A6];if(A.destroyed)return;if(I===0)if(E)A.write(`${C}content-length: 0\r
\r
`,"latin1");else A.write(`${C}\r
`,"latin1");else if(Q===null)A.write(`\r
0\r
\r
`,"latin1");if(Q!==null&&I!==Q)if(B[XG])throw new H3;else process.emitWarning(new H3);if(A[v2].timeout&&A[v2].timeoutType===HC){if(A[v2].timeout.refresh)A[v2].timeout.refresh()}o9(B)}destroy(A){let{socket:Q,client:B}=this;if(Q[w3]=!1,A)cA(B[q2]<=1,"pipeline should only contain this request"),C1.destroy(Q,A)}}function l6(A,Q,B){try{Q.onError(B),cA(Q.aborted)}catch(I){A.emit("error",I)}}Vl.exports=Yl});var $l=V((lg1,Kl)=>{class WO{constructor(){this.bottom=0,this.top=0,this.list=Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(A){this.list[this.top]=A,this.top=this.top+1&2047}shift(){let A=this.list[this.bottom];if(A===void 0)return null;return this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,A}}Kl.exports=class{constructor(){this.head=this.tail=new WO}isEmpty(){return this.head.isEmpty()}push(Q){if(this.head.isFull())this.head=this.head.next=new WO;this.head.push(Q)}shift(){let Q=this.tail,B=Q.shift();if(Q.isEmpty()&&Q.next!==null)this.tail=Q.next;return B}}});var zl=V((ig1,wl)=>{var{kFree:wPA,kConnected:zPA,kPending:LPA,kQueued:MPA,kRunning:RPA,kSize:qPA}=I2(),FI=Symbol("pool");class Hl{constructor(A){this[FI]=A}get connected(){return this[FI][zPA]}get free(){return this[FI][wPA]}get pending(){return this[FI][LPA]}get queued(){return this[FI][MPA]}get running(){return this[FI][RPA]}get size(){return this[FI][qPA]}}wl.exports=Hl});var wO=V((ng1,vl)=>{var TPA=DG(),OPA=$l(),{kConnected:VO,kSize:Ll,kRunning:Ml,kPending:Rl,kQueued:VG,kBusy:jPA,kFree:PPA,kUrl:gPA,kClose:_PA,kDestroy:vPA,kDispatch:SPA}=I2(),xPA=zl(),H9=Symbol("clients"),i6=Symbol("needDrain"),KG=Symbol("queue"),KO=Symbol("closed resolve"),$O=Symbol("onDrain"),ql=Symbol("onConnect"),Tl=Symbol("onDisconnect"),Ol=Symbol("onConnectionError"),HO=Symbol("get dispatcher"),Pl=Symbol("add client"),gl=Symbol("remove client"),jl=Symbol("stats");class _l extends TPA{constructor(){super();this[KG]=new OPA,this[H9]=[],this[VG]=0;let A=this;this[$O]=function(B,I){let E=A[KG],C=!1;while(!C){let D=E.shift();if(!D)break;A[VG]--,C=!this.dispatch(D.opts,D.handler)}if(this[i6]=C,!this[i6]&&A[i6])A[i6]=!1,A.emit("drain",B,[A,...I]);if(A[KO]&&E.isEmpty())Promise.all(A[H9].map((D)=>D.close())).then(A[KO])},this[ql]=(Q,B)=>{A.emit("connect",Q,[A,...B])},this[Tl]=(Q,B,I)=>{A.emit("disconnect",Q,[A,...B],I)},this[Ol]=(Q,B,I)=>{A.emit("connectionError",Q,[A,...B],I)},this[jl]=new xPA(this)}get[jPA](){return this[i6]}get[VO](){return this[H9].filter((A)=>A[VO]).length}get[PPA](){return this[H9].filter((A)=>A[VO]&&!A[i6]).length}get[Rl](){let A=this[VG];for(let{[Rl]:Q}of this[H9])A+=Q;return A}get[Ml](){let A=0;for(let{[Ml]:Q}of this[H9])A+=Q;return A}get[Ll](){let A=this[VG];for(let{[Ll]:Q}of this[H9])A+=Q;return A}get stats(){return this[jl]}async[_PA](){if(this[KG].isEmpty())return Promise.all(this[H9].map((A)=>A.close()));else return new Promise((A)=>{this[KO]=A})}async[vPA](A){while(!0){let Q=this[KG].shift();if(!Q)break;Q.handler.onError(A)}return Promise.all(this[H9].map((Q)=>Q.destroy(A)))}[SPA](A,Q){let B=this[HO]();if(!B)this[i6]=!0,this[KG].push({opts:A,handler:Q}),this[VG]++;else if(!B.dispatch(A,Q))B[i6]=!0,this[i6]=!this[HO]();return!this[i6]}[Pl](A){if(A.on("drain",this[$O]).on("connect",this[ql]).on("disconnect",this[Tl]).on("connectionError",this[Ol]),this[H9].push(A),this[i6])process.nextTick(()=>{if(this[i6])this[$O](A[gPA],[this,A])});return this}[gl](A){A.close(()=>{let Q=this[H9].indexOf(A);if(Q!==-1)this[H9].splice(Q,1)}),this[i6]=this[H9].some((Q)=>!Q[i6]&&Q.closed!==!0&&Q.destroyed!==!0)}}vl.exports={PoolBase:_l,kClients:H9,kNeedDrain:i6,kAddClient:Pl,kRemoveClient:gl,kGetDispatcher:HO}});var wC=V((ag1,hl)=>{var{PoolBase:kPA,kClients:tW,kNeedDrain:hPA,kAddClient:yPA,kGetDispatcher:fPA}=wO(),bPA=WG(),{InvalidArgumentError:zO}=c0(),LO=N0(),{kUrl:Sl,kInterceptors:dPA}=I2(),mPA=YG(),MO=Symbol("options"),RO=Symbol("connections"),xl=Symbol("factory");function uPA(A,Q){return new bPA(A,Q)}class kl extends kPA{constructor(A,{connections:Q,factory:B=uPA,connect:I,connectTimeout:E,tls:C,maxCachedSessions:D,socketPath:Y,autoSelectFamily:J,autoSelectFamilyAttemptTimeout:G,allowH2:F,...Z}={}){super();if(Q!=null&&(!Number.isFinite(Q)||Q<0))throw new zO("invalid connections");if(typeof B!=="function")throw new zO("factory must be a function.");if(I!=null&&typeof I!=="function"&&typeof I!=="object")throw new zO("connect must be a function or an object");if(typeof I!=="function")I=mPA({...C,maxCachedSessions:D,allowH2:F,socketPath:Y,timeout:E,...LO.nodeHasAutoSelectFamily&&J?{autoSelectFamily:J,autoSelectFamilyAttemptTimeout:G}:void 0,...I});this[dPA]=Z.interceptors&&Z.interceptors.Pool&&Array.isArray(Z.interceptors.Pool)?Z.interceptors.Pool:[],this[RO]=Q||null,this[Sl]=LO.parseOrigin(A),this[MO]={...LO.deepClone(Z),connect:I,allowH2:F},this[MO].interceptors=Z.interceptors?{...Z.interceptors}:void 0,this[xl]=B,this.on("connectionError",(N,X,U)=>{for(let W of X){let $=this[tW].indexOf(W); Line truncated
${B.count} ${B.noun} ${B.is} pending:
${A.format(Q)}
`.trim())}}On.exports=Tn});var kn=V((V_1,xn)=>{var{kProxy:p_A,kClose:c_A,kDestroy:l_A,kInterceptors:i_A}=I2(),{URL:Pn}=require("url"),gn=HG(),n_A=wC(),a_A=DG(),{InvalidArgumentError:qG,RequestAbortedError:o_A}=c0(),_n=YG(),MG=Symbol("proxy agent"),VV=Symbol("proxy client"),RG=Symbol("proxy headers"),eO=Symbol("request tls settings"),s_A=Symbol("proxy tls settings"),vn=Symbol("connect endpoint function");function r_A(A){return A==="https:"?443:80}function t_A(A){if(typeof A==="string")A={uri:A};if(!A||!A.uri)throw new qG("Proxy opts.uri is mandatory");return{uri:A.uri,protocol:A.protocol||"https"}}function e_A(A,Q){return new n_A(A,Q)}class Sn extends a_A{constructor(A){super(A);if(this[p_A]=t_A(A),this[MG]=new gn(A),this[i_A]=A.interceptors&&A.interceptors.ProxyAgent&&Array.isArray(A.interceptors.ProxyAgent)?A.interceptors.ProxyAgent:[],typeof A==="string")A={uri:A};if(!A||!A.uri)throw new qG("Proxy opts.uri is mandatory");let{clientFactory:Q=e_A}=A;if(typeof Q!=="function")throw new qG("Proxy opts.clientFactory must be a function.");this[eO]=A.requestTls,this[s_A]=A.proxyTls,this[RG]=A.headers||{};let B=new Pn(A.uri),{origin:I,port:E,host:C,username:D,password:Y}=B;if(A.auth&&A.token)throw new qG("opts.auth cannot be used in combination with opts.token");else if(A.auth)this[RG]["proxy-authorization"]=`Basic ${A.auth}`;else if(A.token)this[RG]["proxy-authorization"]=A.token;else if(D&&Y)this[RG]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(D)}:${decodeURIComponent(Y)}`).toString("base64")}`;let J=_n({...A.proxyTls});this[vn]=_n({...A.requestTls}),this[VV]=Q(B,{connect:J}),this[MG]=new gn({...A,connect:async(G,F)=>{let Z=G.host;if(!G.port)Z+=`:${r_A(G.protocol)}`;try{let{socket:N,statusCode:X}=await this[VV].connect({origin:I,port:E,path:Z,signal:G.signal,headers:{...this[RG],host:C}});if(X!==200)N.on("error",()=>{}).destroy(),F(new o_A(`Proxy response (${X}) !== 200 when HTTP Tunneling`));if(G.protocol!=="https:"){F(null,N);return}let U;if(this[eO])U=this[eO].servername;else U=G.servername;this[vn]({...G,servername:U,httpSocket:N},F)}catch(N){F(N)}}})}dispatch(A,Q){let{host:B}=new Pn(A.origin),I=AvA(A.headers);return QvA(I),this[MG].dispatch({...A,headers:{...I,host:B}},Q)}async[c_A](){await this[MG].close(),await this[VV].close()}async[l_A](){await this[MG].destroy(),await this[VV].destroy()}}function AvA(A){if(Array.isArray(A)){let Q={};for(let B=0;B<A.length;B+=2)Q[A[B]]=A[B+1];return Q}return A}function QvA(A){if(A&&Object.keys(A).find((B)=>B.toLowerCase()==="proxy-authorization"))throw new qG("Proxy-Authorization should be sent in ProxyAgent constructor")}xn.exports=Sn});var dn=V((K_1,bn)=>{var WI=require("assert"),{kRetryHandlerDefaultRetry:hn}=I2(),{RequestRetryError:KV}=c0(),{isDisturbed:yn,parseHeaders:BvA,parseRangeHeader:fn}=N0();function IvA(A){let Q=Date.now();return new Date(A).getTime()-Q}class Aj{constructor(A,Q){let{retryOptions:B,...I}=A,{retry:E,maxRetries:C,maxTimeout:D,minTimeout:Y,timeoutFactor:J,methods:G,errorCodes:F,retryAfter:Z,statusCodes:N}=B??{};this.dispatch=Q.dispatch,this.handler=Q.handler,this.opts=I,this.abort=null,this.aborted=!1,this.retryOpts={retry:E??Aj[hn],retryAfter:Z??!0,maxTimeout:D??30000,timeout:Y??500,timeoutFactor:J??2,maxRetries:C??5,methods:G??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:N??[500,502,503,504,429],errorCodes:F??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect((X)=>{if(this.aborted=!0,this.abort)this.abort(X);else this.reason=X})}onRequestSent(){if(this.handler.onRequestSent)this.handler.onRequestSent()}onUpgrade(A,Q,B){if(this.handler.onUpgrade)this.handler.onUpgrade(A,Q,B)}onConnect(A){if(this.aborted)A(this.reason);else this.abort=A}onBodySent(A){if(this.handler.onBodySent)return this.handler.onBodySent(A)}static[hn](A,{state:Q,opts:B},I){let{statusCode:E,code:C,headers:D}=A,{method:Y,retryOptions:J}=B,{maxRetries:G,timeout:F,maxTimeout:Z,timeoutFactor:N,statusCodes:X,errorCodes:U,methods:W}=J,{counter:$,currentTimeout:H}=Q;if(H=H!=null&&H>0?H:F,C&&C!=="UND_ERR_REQ_RETRY"&&C!=="UND_ERR_SOCKET"&&!U.includes(C)){I(A);return}if(Array.isArray(W)&&!W.includes(Y)){I(A);return}if(E!=null&&Array.isArray(X)&&!X.includes(E)){I(A);return}if($>G){I(A);return}let L=D!=null&&D["retry-after"];if(L)L=Number(L),L=isNaN(L)?IvA(L):L*1000;let w=L>0?Math.min(L,Z):Math.min(H*N**$,Z);Q.currentTimeout=w,setTimeout(()=>I(null),w)}onHeaders(A,Q,B,I){let E=BvA(Q);if(this.retryCount+=1,A>=300)return this.abort(new KV("Request failed",A,{headers:E,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,A!==206)return!0;let D=fn(E["content-range"]);if(!D)return this.abort(new KV("Content-Range mismatch",A,{headers:E,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==E.etag)return this.abort(new KV("ETag mismatch",A,{headers:E,count:this.retryCount})),!1;let{star Line truncated
Error Code : ${C.statusCode}
Error Message: ${C.message}`)})).result)===null||Q===void 0?void 0:Q.value;if(!E)throw Error("Response json body do not have ID Token field");return E})}static getIDToken(A){return Bs(this,void 0,void 0,function*(){try{let Q=pC.getIDTokenUrl();if(A){let I=encodeURIComponent(A);Q=`${Q}&audience=${I}`}(0,Is.debug)(`ID token url is ${Q}`);let B=yield pC.getCall(Q);return(0,Is.setSecret)(B),B}catch(Q){throw Error(`Error message: ${Q.message}`)}})}}cC.OidcClient=pC});var mj=V((R9)=>{var bj=R9&&R9.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function Y(F){try{G(I.next(F))}catch(Z){D(Z)}}function J(F){try{G(I.throw(F))}catch(Z){D(Z)}}function G(F){F.done?C(F.value):E(F.value).then(Y,J)}G((I=I.apply(A,Q||[])).next())})};Object.defineProperty(R9,"__esModule",{value:!0});R9.summary=R9.markdownSummary=R9.SUMMARY_DOCS_URL=R9.SUMMARY_ENV_VAR=void 0;var lkA=require("os"),dj=require("fs"),{access:ikA,appendFile:nkA,writeFile:akA}=dj.promises;R9.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";R9.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Cs{constructor(){this._buffer=""}filePath(){return bj(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let A=process.env[R9.SUMMARY_ENV_VAR];if(!A)throw Error(`Unable to find environment variable for $${R9.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield ikA(A,dj.constants.R_OK|dj.constants.W_OK)}catch(Q){throw Error(`Unable to access summary file: '${A}'. Check if the file has correct read/write permissions.`)}return this._filePath=A,this._filePath})}wrap(A,Q,B={}){let I=Object.entries(B).map(([E,C])=>` ${E}="${C}"`).join("");if(!Q)return`<${A}${I}>`;return`<${A}${I}>${Q}</${A}>`}write(A){return bj(this,void 0,void 0,function*(){let Q=!!(A===null||A===void 0?void 0:A.overwrite),B=yield this.filePath();return yield(Q?akA:nkA)(B,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return bj(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(A,Q=!1){return this._buffer+=A,Q?this.addEOL():this}addEOL(){return this.addRaw(lkA.EOL)}addCodeBlock(A,Q){let B=Object.assign({},Q&&{lang:Q}),I=this.wrap("pre",this.wrap("code",A),B);return this.addRaw(I).addEOL()}addList(A,Q=!1){let B=Q?"ol":"ul",I=A.map((C)=>this.wrap("li",C)).join(""),E=this.wrap(B,I);return this.addRaw(E).addEOL()}addTable(A){let Q=A.map((I)=>{let E=I.map((C)=>{if(typeof C==="string")return this.wrap("td",C);let{header:D,data:Y,colspan:J,rowspan:G}=C,F=D?"th":"td",Z=Object.assign(Object.assign({},J&&{colspan:J}),G&&{rowspan:G});return this.wrap(F,Y,Z)}).join("");return this.wrap("tr",E)}).join(""),B=this.wrap("table",Q);return this.addRaw(B).addEOL()}addDetails(A,Q){let B=this.wrap("details",this.wrap("summary",A)+Q);return this.addRaw(B).addEOL()}addImage(A,Q,B){let{width:I,height:E}=B||{},C=Object.assign(Object.assign({},I&&{width:I}),E&&{height:E}),D=this.wrap("img",null,Object.assign({src:A,alt:Q},C));return this.addRaw(D).addEOL()}addHeading(A,Q){let B=`h${Q}`,I=["h1","h2","h3","h4","h5","h6"].includes(B)?B:"h1",E=this.wrap(I,A);return this.addRaw(E).addEOL()}addSeparator(){let A=this.wrap("hr",null);return this.addRaw(A).addEOL()}addBreak(){let A=this.wrap("br",null);return this.addRaw(A).addEOL()}addQuote(A,Q){let B=Object.assign({},Q&&{cite:Q}),I=this.wrap("blockquote",A,B);return this.addRaw(I).addEOL()}addLink(A,Q){let B=this.wrap("a",A,{href:Q});return this.addRaw(B).addEOL()}}var Ds=new Cs;R9.markdownSummary=Ds;R9.summary=Ds});var Ys=V((q9)=>{var okA=q9&&q9.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),skA=q9&&q9.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),rkA=q9&&q9.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))okA(Q,A,B)}return skA(Q,A),Q};Object.defineProperty(q9,"__esModule",{value:!0});q9.toPlatformPath=q9.toWin32Path=q9.toPosixPath=void 0;var tkA=rkA(require("path"));function ekA(A){return A.replace(/[\\]/g,"/")}q9.toPosixPath=ekA;function AhA(A){return A.replace(/[/]/g,"\\")}q9.toWin32Path=AhA;function QhA(A){return A.replace(/[/\\]/g,tkA.sep)}q9.toPlatformPath=QhA});var pj=V((aA)=>{var BhA=aA&&aA.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;Object.defineProperty(A,I,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),Line truncated
`);return{name:Q,version:B}});X0.platform=Ts.default.platform();X0.arch=Ts.default.arch();X0.isWindows=X0.platform==="win32";X0.isMacOS=X0.platform==="darwin";X0.isLinux=X0.platform==="linux";function xhA(){return IK(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield X0.isWindows?_hA():X0.isMacOS?vhA():ShA()),{platform:X0.platform,arch:X0.arch,isWindows:X0.isWindows,isMacOS:X0.isMacOS,isLinux:X0.isLinux})})}X0.getDetails=xhA});var m1=V((lA)=>{var khA=lA&&lA.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),hhA=lA&&lA.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),nj=lA&&lA.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))khA(Q,A,B)}return hhA(Q,A),Q},js=lA&&lA.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function Y(F){try{G(I.next(F))}catch(Z){D(Z)}}function J(F){try{G(I.throw(F))}catch(Z){D(Z)}}function G(F){F.done?C(F.value):E(F.value).then(Y,J)}G((I=I.apply(A,Q||[])).next())})};Object.defineProperty(lA,"__esModule",{value:!0});lA.platform=lA.toPlatformPath=lA.toWin32Path=lA.toPosixPath=lA.markdownSummary=lA.summary=lA.getIDToken=lA.getState=lA.saveState=lA.group=lA.endGroup=lA.startGroup=lA.info=lA.notice=lA.warning=lA.error=lA.debug=lA.isDebug=lA.setFailed=lA.setCommandEcho=lA.setOutput=lA.getBooleanInput=lA.getMultilineInput=lA.getInput=lA.addPath=lA.setSecret=lA.exportVariable=lA.ExitCode=void 0;var j8=Pu(),zI=vu(),aC=HW(),Ps=nj(require("os")),yhA=nj(require("path")),fhA=Es(),ij;(function(A){A[A.Success=0]="Success",A[A.Failure=1]="Failure"})(ij||(lA.ExitCode=ij={}));function bhA(A,Q){let B=(0,aC.toCommandValue)(Q);if(process.env[A]=B,process.env.GITHUB_ENV||"")return(0,zI.issueFileCommand)("ENV",(0,zI.prepareKeyValueMessage)(A,Q));(0,j8.issueCommand)("set-env",{name:A},B)}lA.exportVariable=bhA;function dhA(A){(0,j8.issueCommand)("add-mask",{},A)}lA.setSecret=dhA;function mhA(A){if(process.env.GITHUB_PATH||"")(0,zI.issueFileCommand)("PATH",A);else(0,j8.issueCommand)("add-path",{},A);process.env.PATH=`${A}${yhA.delimiter}${process.env.PATH}`}lA.addPath=mhA;function aj(A,Q){let B=process.env[`INPUT_${A.replace(/ /g,"_").toUpperCase()}`]||"";if(Q&&Q.required&&!B)throw Error(`Input required and not supplied: ${A}`);if(Q&&Q.trimWhitespace===!1)return B;return B.trim()}lA.getInput=aj;function uhA(A,Q){let B=aj(A,Q).split(`
`).filter((I)=>I!=="");if(Q&&Q.trimWhitespace===!1)return B;return B.map((I)=>I.trim())}lA.getMultilineInput=uhA;function phA(A,Q){let B=["true","True","TRUE"],I=["false","False","FALSE"],E=aj(A,Q);if(B.includes(E))return!0;if(I.includes(E))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${A}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}lA.getBooleanInput=phA;function chA(A,Q){if(process.env.GITHUB_OUTPUT||"")return(0,zI.issueFileCommand)("OUTPUT",(0,zI.prepareKeyValueMessage)(A,Q));process.stdout.write(Ps.EOL),(0,j8.issueCommand)("set-output",{name:A},(0,aC.toCommandValue)(Q))}lA.setOutput=chA;function lhA(A){(0,j8.issue)("echo",A?"on":"off")}lA.setCommandEcho=lhA;function ihA(A){process.exitCode=ij.Failure,gs(A)}lA.setFailed=ihA;function nhA(){return process.env.RUNNER_DEBUG==="1"}lA.isDebug=nhA;function ahA(A){(0,j8.issueCommand)("debug",{},A)}lA.debug=ahA;function gs(A,Q={}){(0,j8.issueCommand)("error",(0,aC.toCommandProperties)(Q),A instanceof Error?A.toString():A)}lA.error=gs;function ohA(A,Q={}){(0,j8.issueCommand)("warning",(0,aC.toCommandProperties)(Q),A instanceof Error?A.toString():A)}lA.warning=ohA;function shA(A,Q={}){(0,j8.issueCommand)("notice",(0,aC.toCommandProperties)(Q),A instanceof Error?A.toString():A)}lA.notice=shA;function rhA(A){process.stdout.write(A+Ps.EOL)}lA.info=rhA;function _s(A){(0,j8.issue)("group",A)}lA.startGroup=_s;function vs(){(0,j8.issue)("endgroup")}lA.endGroup=vs;function thA(A,Q){return js(this,void 0,void 0,function*(){_s(A);let B;try{B=yield Q()}finally{vs()}return B})}lA.group=thA;function ehA(A,Q){if(process.env.GITHUB_STATE||"")return(0,zI.issueFileCommand)("STATE",(0,zI.prepareKeyValueMessage)(A,Q));(0,j8.issueCommand)("save-state",{name:A},(0,aC.toCommandValue)(Q))}lA.saveState=ehA;function AyA(A){return process.env[`STATE_${A}`]||""}lA.getState=AyA;function QyA(A){return js(this,void 0,void 0,function*(){return yield fhA.OidcClient.getIDToken(A)})}lA.getIDToken=QyA;var ByA=mj();Object.defineProperty(lA,"summary",{enumerable:!0,get:function(){return ByA.summary}});var IyA=mj();Object.defineProperty(lA,"markdownSummary",{enumerable:!0,get:function(){return IyA.markdownSummary}});var oj=Ys();Object.defineProperty(lA,"toPosixPath",{enumerable:!0,get:function(){return oj.toPosixPath}});Object.defineProperty(lA,"toWin32Path",{enumerable:!0,get:function(){return oj.toWin32Path}});Object.defineProperty(lA,"toPlatformPath",{enumerable:!0,get:function(){return oj.toPlatformPath}});lA.platform=nj(Os())});var LI=V((T4)=>{var EyA=T4&&T4.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(T4,"__esModule",{value:!0});T4.getUploadChunkTimeout=T4.getConcurrency=T4.getGitHubWorkspaceDir=T4.isGhes=T4.getResultsServiceUrl=T4.getRuntimeToken=T4.getUploadChunkSize=void 0;var CyA=EyA(require("os")),Ss=m1();function DyA(){return 8388608}T4.getUploadChunkSize=DyA;function YyA(){let A=process.env.ACTIONS_RUNTIME_TOKEN;if(!A)throw Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return A}T4.getRuntimeToken=YyA;function JyA(){let A=process.env.ACTIONS_RESULTS_URL;if(!A)throw Error("Unable to get the ACTIONS_RESULTS_URL env variable");return new URL(A).origin}T4.getResultsServiceUrl=JyA;function FyA(){let Q=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),B=Q==="GITHUB.COM",I=Q.endsWith(".GHE.COM"),E=Q.endsWith(".LOCALHOST");return!B&&!I&&!E}T4.isGhes=FyA;function GyA(){let A=process.env.GITHUB_WORKSPACE;if(!A)throw Error("Unable to get the GITHUB_WORKSPACE env variable");return A}T4.getGitHubWorkspaceDir=GyA;function ZyA(){let A=CyA.default.cpus().length,Q=32;if(A>4){let I=16*A;Q=I>300?300:I}let B=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(B){let I=parseInt(B);if(isNaN(I)||I<1)throw Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable");if(I<Q)return(0,Ss.info)("Set concurrency based on the value set in ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY."),I;return(0,Ss.info)(`ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY is higher than the cap of ${Q} based on the number of cpus. Set it to the maximum value allowed.`),Q}return 5}T4.getConcurrency=ZyA;function NyA(){let A=process.env.ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS;if(!A)return 300000;let Q=parseInt(A);if(isNaN(Q))throw Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS env variable");return Q}T4.getUploadChunkTimeout=NyA});var EK=V((oC)=>{Object.defineProperty(oC,"__esModule",{value:!0});oC.isJsonObject=oC.typeofJsonValue=void 0;function XyA(A){let Q=typeof A;if(Q=="object"){if(Array.isArray(A))return"array";if(A===null)return"null"}return Q}oC.typeofJsonValue=XyA;function UyA(A){return A!==null&&typeof A=="object"&&!Array.isArray(A)}oC.isJsonObject=UyA});var DK=V((sC)=>{Object.defineProperty(sC,"__esModule",{value:!0});sC.base64encode=sC.base64decode=void 0;var q3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),CK=[];for(let A=0;A<q3.length;A++)CK[q3[A].charCodeAt(0)]=A;CK[45]=q3.indexOf("+");CK[95]=q3.indexOf("/");function WyA(A){let Q=A.length*3/4;if(A[A.length-2]=="=")Q-=2;else if(A[A.length-1]=="=")Q-=1;let B=new Uint8Array(Q),I=0,E=0,C,D=0;for(let Y=0;Y<A.length;Y++){if(C=CK[A.charCodeAt(Y)],C===void 0)switch(A[Y]){case"=":E=0;case`
`:case"\r":case"\t":case" ":continue;default:throw Error("invalid base64 string.")}switch(E){case 0:D=C,E=1;break;case 1:B[I++]=D<<2|(C&48)>>4,D=C,E=2;break;case 2:B[I++]=(D&15)<<4|(C&60)>>2,D=C,E=3;break;case 3:B[I++]=(D&3)<<6|C,E=0;break}}if(E==1)throw Error("invalid base64 string.");return B.subarray(0,I)}sC.base64decode=WyA;function VyA(A){let Q="",B=0,I,E=0;for(let C=0;C<A.length;C++)switch(I=A[C],B){case 0:Q+=q3[I>>2],E=(I&3)<<4,B=1;break;case 1:Q+=q3[E|I>>4],E=(I&15)<<2,B=2;break;case 2:Q+=q3[E|I>>6],Q+=q3[I&63],B=0;break}if(B){if(Q+=q3[E],Q+="=",B==1)Q+="="}return Q}sC.base64encode=VyA});var xs=V((YK)=>{Object.defineProperty(YK,"__esModule",{value:!0});YK.utf8read=void 0;var sj=(A)=>String.fromCharCode.apply(String,A);function KyA(A){if(A.length<1)return"";let Q=0,B=[],I=[],E=0,C,D=A.length;while(Q<D){if(C=A[Q++],C<128)I[E++]=C;else if(C>191&&C<224)I[E++]=(C&31)<<6|A[Q++]&63;else if(C>239&&C<365)C=((C&7)<<18|(A[Q++]&63)<<12|(A[Q++]&63)<<6|A[Q++]&63)-65536,I[E++]=55296+(C>>10),I[E++]=56320+(C&1023);else I[E++]=(C&15)<<12|(A[Q++]&63)<<6|A[Q++]&63;if(E>8191)B.push(sj(I)),E=0}if(B.length){if(E)B.push(sj(I.slice(0,E)));return B.join("")}return sj(I.slice(0,E))}YK.utf8read=KyA});var mG=V((HQ)=>{Object.defineProperty(HQ,"__esModule",{value:!0});HQ.WireType=HQ.mergeBinaryOptions=HQ.UnknownFieldHandler=void 0;var $yA;(function(A){A.symbol=Symbol.for("protobuf-ts/unknown"),A.onRead=(B,I,E,C,D)=>{(Q(I)?I[A.symbol]:I[A.symbol]=[]).push({no:E,wireType:C,data:D})},A.onWrite=(B,I,E)=>{for(let{no:C,wireType:D,data:Y}of A.list(I))E.tag(C,D).raw(Y)},A.list=(B,I)=>{if(Q(B)){let E=B[A.symbol];return I?E.filter((C)=>C.no==I):E}return[]},A.last=(B,I)=>A.list(B,I).slice(-1)[0];let Q=(B)=>B&&Array.isArray(B[A.symbol])})($yA=HQ.UnknownFieldHandler||(HQ.UnknownFieldHandler={}));function HyA(A,Q){return Object.assign(Object.assign({},A),Q)}HQ.mergeBinaryOptions=HyA;var wyA;(function(A){A[A.Varint=0]="Varint",A[A.Bit64=1]="Bit64",A[A.LengthDelimited=2]="LengthDelimited",A[A.StartGroup=3]="StartGroup",A[A.EndGroup=4]="EndGroup",A[A.Bit32=5]="Bit32"})(wyA=HQ.WireType||(HQ.WireType={}))});var FK=V((P9)=>{Object.defineProperty(P9,"__esModule",{value:!0});P9.varint32read=P9.varint32write=P9.int64toString=P9.int64fromString=P9.varint64write=P9.varint64read=void 0;function zyA(){let A=0,Q=0;for(let I=0;I<28;I+=7){let E=this.buf[this.pos++];if(A|=(E&127)<<I,(E&128)==0)return this.assertBounds(),[A,Q]}let B=this.buf[this.pos++];if(A|=(B&15)<<28,Q=(B&112)>>4,(B&128)==0)return this.assertBounds(),[A,Q];for(let I=3;I<=31;I+=7){let E=this.buf[this.pos++];if(Q|=(E&127)<<I,(E&128)==0)return this.assertBounds(),[A,Q]}throw Error("invalid varint")}P9.varint64read=zyA;function LyA(A,Q,B){for(let C=0;C<28;C=C+7){let D=A>>>C,Y=!(D>>>7==0&&Q==0),J=(Y?D|128:D)&255;if(B.push(J),!Y)return}let I=A>>>28&15|(Q&7)<<4,E=Q>>3!=0;if(B.push((E?I|128:I)&255),!E)return;for(let C=3;C<31;C=C+7){let D=Q>>>C,Y=D>>>7!=0,J=(Y?D|128:D)&255;if(B.push(J),!Y)return}B.push(Q>>>31&1)}P9.varint64write=LyA;var JK=4294967296;function MyA(A){let Q=A[0]=="-";if(Q)A=A.slice(1);let B=1e6,I=0,E=0;function C(D,Y){let J=Number(A.slice(D,Y));if(E*=B,I=I*B+J,I>=JK)E=E+(I/JK|0),I=I%JK}return C(-24,-18),C(-18,-12),C(-12,-6),C(-6),[Q,I,E]}P9.int64fromString=MyA;function RyA(A,Q){if(Q>>>0<=2097151)return""+(JK*Q+(A>>>0));let B=A&16777215,I=(A>>>24|Q<<8)>>>0&16777215,E=Q>>16&65535,C=B+I*6777216+E*6710656,D=I+E*8147497,Y=E*2,J=1e7;if(C>=J)D+=Math.floor(C/J),C%=J;if(D>=J)Y+=Math.floor(D/J),D%=J;function G(F,Z){let N=F?String(F):"";if(Z)return"0000000".slice(N.length)+N;return N}return G(Y,0)+G(D,Y)+G(C,1)}P9.int64toString=RyA;function qyA(A,Q){if(A>=0){while(A>127)Q.push(A&127|128),A=A>>>7;Q.push(A)}else{for(let B=0;B<9;B++)Q.push(A&127|128),A=A>>7;Q.push(1)}}P9.varint32write=qyA;function TyA(){let A=this.buf[this.pos++],Q=A&127;if((A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<7,(A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<14,(A&128)==0)return this.assertBounds(),Q;if(A=this.buf[this.pos++],Q|=(A&127)<<21,(A&128)==0)return this.assertBounds(),Q;A=this.buf[this.pos++],Q|=(A&15)<<28;for(let B=5;(A&128)!==0&&B<10;B++)A=this.buf[this.pos++];if((A&128)!=0)throw Error("invalid varint");return this.assertBounds(),Q>>>0}P9.varint32read=TyA});var S7=V((v7)=>{Object.defineProperty(v7,"__esModule",{value:!0});v7.PbLong=v7.PbULong=v7.detectBi=void 0;var uG=FK(),n0;function ks(){let A=new DataView(new ArrayBuffer(8));n0=globalThis.BigInt!==void 0&&typeof A.getBigInt64==="function"&&typeof A.getBigUint64==="function"&&typeof A.setBigInt64==="function"&&typeof A.setBigUint64==="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:A}:void 0}v7.detectBi=ks;ks();function hs(A){if(!A)throw Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var ys=/^-?[0-9]+$/,ZK=4294967296,GK=2147483648;class rj{ Line truncated
`)}}hK.RpcError=Sr});var zP=V((fK)=>{Object.defineProperty(fK,"__esModule",{value:!0});fK.mergeRpcOptions=void 0;var xr=x1();function tfA(A,Q){if(!Q)return A;let B={};yK(A,B),yK(Q,B);for(let I of Object.keys(Q)){let E=Q[I];switch(I){case"jsonOptions":B.jsonOptions=xr.mergeJsonOptions(A.jsonOptions,B.jsonOptions);break;case"binaryOptions":B.binaryOptions=xr.mergeBinaryOptions(A.binaryOptions,B.binaryOptions);break;case"meta":B.meta={},yK(A.meta,B.meta),yK(Q.meta,B.meta);break;case"interceptors":B.interceptors=A.interceptors?A.interceptors.concat(E):E.concat();break}}return B}fK.mergeRpcOptions=tfA;function yK(A,Q){if(!A)return;let B=Q;for(let[I,E]of Object.entries(A))if(E instanceof Date)B[I]=new Date(E.getTime());else if(Array.isArray(E))B[I]=E.concat();else B[I]=E}});var LP=V((TI)=>{Object.defineProperty(TI,"__esModule",{value:!0});TI.Deferred=TI.DeferredState=void 0;var LQ;(function(A){A[A.PENDING=0]="PENDING",A[A.REJECTED=1]="REJECTED",A[A.RESOLVED=2]="RESOLVED"})(LQ=TI.DeferredState||(TI.DeferredState={}));class kr{constructor(A=!0){if(this._state=LQ.PENDING,this._promise=new Promise((Q,B)=>{this._resolve=Q,this._reject=B}),A)this._promise.catch((Q)=>{})}get state(){return this._state}get promise(){return this._promise}resolve(A){if(this.state!==LQ.PENDING)throw Error(`cannot resolve ${LQ[this.state].toLowerCase()}`);this._resolve(A),this._state=LQ.RESOLVED}reject(A){if(this.state!==LQ.PENDING)throw Error(`cannot reject ${LQ[this.state].toLowerCase()}`);this._reject(A),this._state=LQ.REJECTED}resolvePending(A){if(this._state===LQ.PENDING)this.resolve(A)}rejectPending(A){if(this._state===LQ.PENDING)this.reject(A)}}TI.Deferred=kr});var MP=V((bK)=>{Object.defineProperty(bK,"__esModule",{value:!0});bK.RpcOutputStreamController=void 0;var hr=LP(),OI=x1();class yr{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(A){return this.addLis(A,this._lis.nxt)}onMessage(A){return this.addLis(A,this._lis.msg)}onError(A){return this.addLis(A,this._lis.err)}onComplete(A){return this.addLis(A,this._lis.cmp)}addLis(A,Q){return Q.push(A),()=>{let B=Q.indexOf(A);if(B>=0)Q.splice(B,1)}}clearLis(){for(let A of Object.values(this._lis))A.splice(0,A.length)}get closed(){return this._closed!==!1}notifyNext(A,Q,B){if(OI.assert((A?1:0)+(Q?1:0)+(B?1:0)<=1,"only one emission at a time"),A)this.notifyMessage(A);if(Q)this.notifyError(Q);if(B)this.notifyComplete()}notifyMessage(A){OI.assert(!this.closed,"stream is closed"),this.pushIt({value:A,done:!1}),this._lis.msg.forEach((Q)=>Q(A)),this._lis.nxt.forEach((Q)=>Q(A,void 0,!1))}notifyError(A){OI.assert(!this.closed,"stream is closed"),this._closed=A,this.pushIt(A),this._lis.err.forEach((Q)=>Q(A)),this._lis.nxt.forEach((Q)=>Q(void 0,A,!1)),this.clearLis()}notifyComplete(){OI.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach((A)=>A()),this._lis.nxt.forEach((A)=>A(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){if(this._closed===!0)this.pushIt({value:null,done:!0});else if(this._closed!==!1)this.pushIt(this._closed);return{next:()=>{let A=this._itState;OI.assert(A,"bad state"),OI.assert(!A.p,"iterator contract broken");let Q=A.q.shift();if(Q)return"value"in Q?Promise.resolve(Q):Promise.reject(Q);return A.p=new hr.Deferred,A.p.promise}}}pushIt(A){let Q=this._itState;if(Q.p){let B=Q.p;OI.assert(B.state==hr.DeferredState.PENDING,"iterator contract broken"),"value"in A?B.resolve(A):B.reject(A),delete Q.p}else Q.q.push(A)}}bK.RpcOutputStreamController=yr});var RP=V((ID)=>{var efA=ID&&ID.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function Y(F){try{G(I.next(F))}catch(Z){D(Z)}}function J(F){try{G(I.throw(F))}catch(Z){D(Z)}}function G(F){F.done?C(F.value):E(F.value).then(Y,J)}G((I=I.apply(A,Q||[])).next())})};Object.defineProperty(ID,"__esModule",{value:!0});ID.UnaryCall=void 0;class fr{constructor(A,Q,B,I,E,C,D){this.method=A,this.requestHeaders=Q,this.request=B,this.headers=I,this.response=E,this.status=C,this.trailers=D}then(A,Q){return this.promiseFinished().then((B)=>A?Promise.resolve(A(B)):B,(B)=>Q?Promise.resolve(Q(B)):Promise.reject(B))}promiseFinished(){return efA(this,void 0,void 0,function*(){let[A,Q,B,I]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:A,response:Q,status:B,trailers:I}})}}ID.UnaryCall=fr});var qP=V((ED)=>{var AbA=ED&&ED.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function Y(F){try{G(I.next(F))}catch(Z){D(Z)}}function J(F){try{G(I.throw(F))}catch(Z){D(Z)}}function G(F){F.done?C(F.value):E(F.value).then(Y,J)}G((I=I.apply(A,Q||[])).next())})};Object.defineProperty(ED,"__esModule",{value:!0});ED.ServerStreamingCall=void 0;class br{constructor(A,Q,B,I,E,C,D){this.me Line truncated
`," Line feed \\n"]]),Xt=new Map([...vP,["\\"," Backslash \\"],["/"," Forward slash /"]]);function xbA(A){if(!A)throw Error("Provided artifact name input during validation is empty");for(let[Q,B]of Xt)if(A.includes(Q))throw Error(`The artifact name is not valid: ${A}. Contains the following character: ${B}
Invalid characters include: ${Array.from(Xt.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.`);(0,SbA.info)("Artifact name is valid!")}FD.validateArtifactName=xbA;function kbA(A){if(!A)throw Error("Provided file path input during validation is empty");for(let[Q,B]of vP)if(A.includes(Q))throw Error(`The path for one of the files in artifact is not valid: ${A}. Contains the following character: ${B}
Invalid characters include: ${Array.from(vP.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.
`)}FD.validateFilePath=kbA});var Ut=V((ev1,hbA)=>{hbA.exports={name:"@actions/artifact",version:"2.3.2",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",main:"lib/artifact.js",types:"lib/artifact.d.ts",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 && npm audit --json --audit-level=moderate > audit.json",test:"cd ../../ && npm run test ./packages/artifact",bootstrap:"cd ../../ && npm run bootstrap","tsc-run":"tsc",tsc:"npm run bootstrap && npm run tsc-run","gen:docs":"typedoc --plugin typedoc-plugin-markdown --out docs/generated src/artifact.ts --githubPages false --readme none"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^1.10.0","@actions/github":"^5.1.1","@actions/http-client":"^2.1.0","@azure/storage-blob":"^12.15.0","@octokit/core":"^3.5.1","@octokit/plugin-request-log":"^1.0.4","@octokit/plugin-retry":"^3.0.9","@octokit/request-error":"^5.0.0","@protobuf-ts/plugin":"^2.2.3-alpha.1",archiver:"^7.0.1","jwt-decode":"^3.1.2","unzip-stream":"^0.3.1"},devDependencies:{"@types/archiver":"^5.3.2","@types/unzip-stream":"^0.3.4",typedoc:"^0.25.4","typedoc-plugin-markdown":"^3.17.1",typescript:"^5.2.2"}}});var GD=V((pK)=>{Object.defineProperty(pK,"__esModule",{value:!0});pK.getUserAgentString=void 0;var ybA=Ut();function fbA(){return`@actions/artifact-${ybA.version}`}pK.getUserAgentString=fbA});var S3=V((_9)=>{Object.defineProperty(_9,"__esModule",{value:!0});_9.UsageError=_9.NetworkError=_9.GHESNotSupportedError=_9.ArtifactNotFoundError=_9.InvalidResponseError=_9.FilesNotFoundError=void 0;class Wt extends Error{constructor(A=[]){let Q="No files were found to upload";if(A.length>0)Q+=`: ${A.join(", ")}`;super(Q);this.files=A,this.name="FilesNotFoundError"}}_9.FilesNotFoundError=Wt;class Vt extends Error{constructor(A){super(A);this.name="InvalidResponseError"}}_9.InvalidResponseError=Vt;class Kt extends Error{constructor(A="Artifact not found"){super(A);this.name="ArtifactNotFoundError"}}_9.ArtifactNotFoundError=Kt;class $t extends Error{constructor(A="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(A);this.name="GHESNotSupportedError"}}_9.GHESNotSupportedError=$t;class xP extends Error{constructor(A){let Q=`Unable to make request: ${A}
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(Q);this.code=A,this.name="NetworkError"}}_9.NetworkError=xP;xP.isNetworkErrorCode=(A)=>{if(!A)return!1;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(A)};class kP extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`);this.name="UsageError"}}_9.UsageError=kP;kP.isUsageErrorMessage=(A)=>{if(!A)return!1;return A.includes("insufficient usage")}});var Lt=V((BS1,zt)=>{function yP(A){this.message=A}yP.prototype=Error(),yP.prototype.name="InvalidCharacterError";var Ht=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(A){var Q=String(A).replace(/=+$/,"");if(Q.length%4==1)throw new yP("'atob' failed: The string to be decoded is not correctly encoded.");for(var B,I,E=0,C=0,D="";I=Q.charAt(C++);~I&&(B=E%4?64*B+I:I,E++%4)?D+=String.fromCharCode(255&B>>(-2*E&6)):0)I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I);return D};function bbA(A){var Q=A.replace(/-/g,"+").replace(/_/g,"/");switch(Q.length%4){case 0:break;case 2:Q+="==";break;case 3:Q+="=";break;default:throw"Illegal base64url string!"}try{return function(B){return decodeURIComponent(Ht(B).replace(/(.)/g,function(I,E){var C=E.charCodeAt(0).toString(16).toUpperCase();return C.length<2&&(C="0"+C),"%"+C}))}(Q)}catch(B){return Ht(Q)}}function QZ(A){this.message=A}function wt(A,Q){if(typeof A!="string")throw new QZ("Invalid token specified");var B=(Q=Q||{}).header===!0?0:1;try{return JSON.parse(bbA(A.split(".")[B]))}catch(I){throw new QZ("Invalid token specified: "+I.message)}}QZ.prototype=Error(),QZ.prototype.name="InvalidTokenError";var hP=wt;hP.default=wt,hP.InvalidTokenError=QZ,zt.exports=hP});var jI=V((M6)=>{var dbA=M6&&M6.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),mbA=M6&&M6.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),ubA=M6&&M6.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))dbA(Q,A,B)}return mbA(Q,A),Q},pbA=M6&&M6.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(M6,"__esModule",{value:!0});M6.maskSecretUrls=M6.maskSigUrl=M6.getBackendIdsFromToken=void 0;var Mt=ubA(m1()),cbA=LI(),lbA=pbA(Lt()),lK=m1(),cK=Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function ibA(){let A=(0,cbA.getRuntimeToken)(),Q=(0,lbA.default)(A);if(!Q.scp)throw cK;let B=Q.scp.split(" ");if(B.length===0)throw cK;for(let I of B){let E=I.split(":");if((E===null||E===void 0?void 0:E[0])!=="Actions.Results")continue;if(E.length!==3)throw cK;let C={workflowRunBackendId:E[1],workflowJobRunBackendId:E[2]};return Mt.debug(`Workflow Run Backend ID: ${C.workflowRunBackendId}`),Mt.debug(`Workflow Job Run Backend ID: ${C.workflowJobRunBackendId}`),C}throw cK}M6.getBackendIdsFromToken=ibA;function fP(A){if(!A)return;try{let B=new URL(A).searchParams.get("sig");if(B)(0,lK.setSecret)(B),(0,lK.setSecret)(encodeURIComponent(B))}catch(Q){(0,lK.debug)(`Failed to parse URL: ${A} ${Q instanceof Error?Q.message:String(Q)}`)}}M6.maskSigUrl=fP;function nbA(A){if(typeof A!=="object"||A===null){(0,lK.debug)("body is not an object or is null");return}if("signed_upload_url"in A&&typeof A.signed_upload_url==="string")fP(A.signed_upload_url);if("signed_url"in A&&typeof A.signed_url==="string")fP(A.signed_url)}M6.maskSecretUrls=nbA});var UD=V((XD)=>{var iK=XD&&XD.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function Y(F){try{G(I.next(F))}catch(Z){D(Z)}}function J(F){try{G(I.throw(F))}catch(Z){D(Z)}}function G(F){F.done?C(F.value):E(F.value).then(Y,J)}G((I=I.apply(A,Q||[])).next())})};Object.defineProperty(XD,"__esModule",{value:!0});XD.internalArtifactTwirpClient=void 0;var ZD=O8(),abA=dG(),ND=m1(),obA=h7(),Rt=LI(),sbA=GD(),BZ=S3(),rbA=jI();class qt{constructor(A,Q,B,I){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3000,this.retryMultiplier=1.5;let E=(0,Rt.getRuntimeToken)();if(this.baseUrl=(0,Rt.getResultsServiceUrl)(),Q)this.maxAttempts=Q;if(B)this.baseRetryIntervalMilliseconds=B;if(I)this.retryMultiplier=I;this.httpClient=new ZD.HttpClient(A,[new abA.BearerCredentialHandler(E)])}request(A,Q,B,I){return iK(this,void 0,void 0,function*(){let E=new URL(`/twirp/${A}/${Q}`,this.baseUrl).href;(0,ND.debug)(`[Request] ${Q} ${E}`);let C={"Content-Type":B};try{let{body:D}=yield this.retryableRequest(()=>iK(this,void 0,void 0,function*(){return this.httpClient.post(E,JSON.stringify(I),C)}));return D}catch(D){throw Error(`Failed to ${Q}: ${D.message}`)}})}retryableRequest(A){return iK(this,void 0,void 0,function*(){let Q=0,B="",I="";while(Q<this.maxAttempts){let E=!1;try{let D=yield A(),Y=D.message.statusCo Line truncated
${hdA.sanitize({...this,request:{...this.request,agent:B},response:this.response})}`},enumerable:!1}),Object.setPrototypeOf(this,D$.prototype)}}YZ.RestError=D$;function ydA(A){if(A instanceof D$)return!0;return(0,SdA.isError)(A)&&A.name==="RestError"}});var PI=V((Y$)=>{Object.defineProperty(Y$,"__esModule",{value:!0});Y$.uint8ArrayToString=fdA;Y$.stringToUint8Array=bdA;function fdA(A,Q){return Buffer.from(A).toString(Q)}function bdA(A,Q){return Buffer.from(A,Q)}});var JZ=V((J$)=>{Object.defineProperty(J$,"__esModule",{value:!0});J$.logger=void 0;var ddA=CZ();J$.logger=(0,ddA.createClientLogger)("ts-http-runtime")});var ge=V((F$)=>{Object.defineProperty(F$,"__esModule",{value:!0});F$.getBodyLength=Pe;F$.createNodeHttpClient=adA;var Yg=H2(),Eg=Yg.__importDefault(require("node:http")),Cg=Yg.__importDefault(require("node:https")),Re=Yg.__importDefault(require("node:zlib")),mdA=require("node:stream"),qe=IZ(),udA=f7(),GZ=VD(),KD=JZ(),pdA=DZ(),cdA={};function FZ(A){return A&&typeof A.pipe==="function"}function Te(A){if(A.readable===!1)return Promise.resolve();return new Promise((Q)=>{let B=()=>{Q(),A.removeListener("close",B),A.removeListener("end",B),A.removeListener("error",B)};A.on("close",B),A.on("end",B),A.on("error",B)})}function Oe(A){return A&&typeof A.byteLength==="number"}class Dg extends mdA.Transform{loadedBytes=0;progressCallback;_transform(A,Q,B){this.push(A),this.loadedBytes+=A.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),B()}catch(I){B(I)}}constructor(A){super();this.progressCallback=A}}class je{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(A){let Q=new AbortController,B;if(A.abortSignal){if(A.abortSignal.aborted)throw new qe.AbortError("The operation was aborted. Request has already been canceled.");B=(J)=>{if(J.type==="abort")Q.abort()},A.abortSignal.addEventListener("abort",B)}let I;if(A.timeout>0)I=setTimeout(()=>{let J=new pdA.Sanitizer;KD.logger.info(`request to '${J.sanitizeUrl(A.url)}' timed out. canceling...`),Q.abort()},A.timeout);let E=A.headers.get("Accept-Encoding"),C=E?.includes("gzip")||E?.includes("deflate"),D=typeof A.body==="function"?A.body():A.body;if(D&&!A.headers.has("Content-Length")){let J=Pe(D);if(J!==null)A.headers.set("Content-Length",J)}let Y;try{if(D&&A.onUploadProgress){let X=A.onUploadProgress,U=new Dg(X);if(U.on("error",(W)=>{KD.logger.error("Error in upload progress",W)}),FZ(D))D.pipe(U);else U.end(D);D=U}let J=await this.makeRequest(A,Q,D);if(I!==void 0)clearTimeout(I);let G=ldA(J),Z={status:J.statusCode??0,headers:G,request:A};if(A.method==="HEAD")return J.resume(),Z;Y=C?idA(J,G):J;let N=A.onDownloadProgress;if(N){let X=new Dg(N);X.on("error",(U)=>{KD.logger.error("Error in download progress",U)}),Y.pipe(X),Y=X}if(A.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||A.streamResponseStatusCodes?.has(Z.status))Z.readableStreamBody=Y;else Z.bodyAsText=await ndA(Y);return Z}finally{if(A.abortSignal&&B){let J=Promise.resolve();if(FZ(D))J=Te(D);let G=Promise.resolve();if(FZ(Y))G=Te(Y);Promise.all([J,G]).then(()=>{if(B)A.abortSignal?.removeEventListener("abort",B)}).catch((F)=>{KD.logger.warning("Error when cleaning up abortListener on httpRequest",F)})}}}makeRequest(A,Q,B){let I=new URL(A.url),E=I.protocol!=="https:";if(E&&!A.allowInsecureConnection)throw Error(`Cannot connect to ${A.url} while allowInsecureConnection is false.`);let D={agent:A.agent??this.getOrCreateAgent(A,E),hostname:I.hostname,path:`${I.pathname}${I.search}`,port:I.port,method:A.method,headers:A.headers.toJSON({preserveCase:!0}),...A.requestOverrides};return new Promise((Y,J)=>{let G=E?Eg.default.request(D,Y):Cg.default.request(D,Y);if(G.once("error",(F)=>{J(new GZ.RestError(F.message,{code:F.code??GZ.RestError.REQUEST_SEND_ERROR,request:A}))}),Q.signal.addEventListener("abort",()=>{let F=new qe.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");G.destroy(F),J(F)}),B&&FZ(B))B.pipe(G);else if(B)if(typeof B==="string"||Buffer.isBuffer(B))G.end(B);else if(Oe(B))G.end(ArrayBuffer.isView(B)?Buffer.from(B.buffer):Buffer.from(B));else KD.logger.error("Unrecognized body type",B),J(new GZ.RestError("Unrecognized body type"));else G.end()})}getOrCreateAgent(A,Q){let B=A.disableKeepAlive;if(Q){if(B)return Eg.default.globalAgent;if(!this.cachedHttpAgent)this.cachedHttpAgent=new Eg.default.Agent({keepAlive:!0});return this.cachedHttpAgent}else{if(B&&!A.tlsSettings)return Cg.default.globalAgent;let I=A.tlsSettings??cdA,E=this.cachedHttpsAgents.get(I);if(E&&E.options.keepAlive===!B)return E;return KD.logger.info("No cached TLS Agent exist, creating a new Agent"),E=new Cg.default.Agent({keepAlive:!B,...I}),this.cachedHttpsAgents.set(I,E),E}}}function ldA(A){let Q=(0,udA.createHttpHeaders)();for(let B of Object.keys(A.headers)){let I=A.headers[B];if(Array.isArray(I)){if(I.length>0)Q.set(B,I[0])}else if(I)Q.set(B,I)}return Q}function idA(A,Q){let B=Q.get("Content-Encoding");if(B==="gzip"){let I=Re.default.createGunzip();re Line truncated
`).join(`
`+C),A.push(E+"m+"+H$.exports.humanize(this.diff)+"\x1B[0m")}else A[0]=CuA()+Q+" "+A[0]}function CuA(){if(g4.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function DuA(...A){return process.stderr.write($$.formatWithOptions(g4.inspectOpts,...A)+`
`)}function YuA(A){if(A)process.env.DEBUG=A;else delete process.env.DEBUG}function JuA(){return process.env.DEBUG}function FuA(A){A.inspectOpts={};let Q=Object.keys(g4.inspectOpts);for(let B=0;B<Q.length;B++)A.inspectOpts[Q[B]]=g4.inspectOpts[Q[B]]}H$.exports=qg()(g4);var{formatters:te}=H$.exports;te.o=function(A){return this.inspectOpts.colors=this.useColors,$$.inspect(A,this.inspectOpts).split(`
`).map((Q)=>Q.trim()).join(" ")};te.O=function(A){return this.inspectOpts.colors=this.useColors,$$.inspect(A,this.inspectOpts)}});var w$=V((iS1,Pg)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)Pg.exports=ne();else Pg.exports=ee()});var BAA=V((S9)=>{var GuA=S9&&S9.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),ZuA=S9&&S9.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),AAA=S9&&S9.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))GuA(Q,A,B)}return ZuA(Q,A),Q};Object.defineProperty(S9,"__esModule",{value:!0});S9.req=S9.json=S9.toBuffer=void 0;var NuA=AAA(require("http")),XuA=AAA(require("https"));async function QAA(A){let Q=0,B=[];for await(let I of A)Q+=I.length,B.push(I);return Buffer.concat(B,Q)}S9.toBuffer=QAA;async function UuA(A){let B=(await QAA(A)).toString("utf8");try{return JSON.parse(B)}catch(I){let E=I;throw E.message+=` (input: ${B})`,E}}S9.json=UuA;function WuA(A,Q={}){let I=((typeof A==="string"?A:A.href).startsWith("https:")?XuA:NuA).request(A,Q),E=new Promise((C,D)=>{I.once("response",C).once("error",D).end()});return I.then=E.then.bind(E),I}S9.req=WuA});var YAA=V((B8)=>{var EAA=B8&&B8.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),VuA=B8&&B8.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),CAA=B8&&B8.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))EAA(Q,A,B)}return VuA(Q,A),Q},KuA=B8&&B8.__exportStar||function(A,Q){for(var B in A)if(B!=="default"&&!Object.prototype.hasOwnProperty.call(Q,B))EAA(Q,A,B)};Object.defineProperty(B8,"__esModule",{value:!0});B8.Agent=void 0;var $uA=CAA(require("net")),IAA=CAA(require("http")),HuA=require("https");KuA(BAA(),B8);var qQ=Symbol("AgentBaseInternalState");class DAA extends IAA.Agent{constructor(A){super(A);this[qQ]={}}isSecureEndpoint(A){if(A){if(typeof A.secureEndpoint==="boolean")return A.secureEndpoint;if(typeof A.protocol==="string")return A.protocol==="https:"}let{stack:Q}=Error();if(typeof Q!=="string")return!1;return Q.split(`
`).some((B)=>B.indexOf("(https.js:")!==-1||B.indexOf("node:https:")!==-1)}incrementSockets(A){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[A])this.sockets[A]=[];let Q=new $uA.Socket({writable:!1});return this.sockets[A].push(Q),this.totalSocketCount++,Q}decrementSockets(A,Q){if(!this.sockets[A]||Q===null)return;let B=this.sockets[A],I=B.indexOf(Q);if(I!==-1){if(B.splice(I,1),this.totalSocketCount--,B.length===0)delete this.sockets[A]}}getName(A){if(this.isSecureEndpoint(A))return HuA.Agent.prototype.getName.call(this,A);return super.getName(A)}createSocket(A,Q,B){let I={...Q,secureEndpoint:this.isSecureEndpoint(Q)},E=this.getName(I),C=this.incrementSockets(E);Promise.resolve().then(()=>this.connect(A,I)).then((D)=>{if(this.decrementSockets(E,C),D instanceof IAA.Agent)try{return D.addRequest(A,I)}catch(Y){return B(Y)}this[qQ].currentSocket=D,super.createSocket(A,Q,B)},(D)=>{this.decrementSockets(E,C),B(D)})}createConnection(){let A=this[qQ].currentSocket;if(this[qQ].currentSocket=void 0,!A)throw Error("No socket was returned in the `connect()` function");return A}get defaultPort(){return this[qQ].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(A){if(this[qQ])this[qQ].defaultPort=A}get protocol(){return this[qQ].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(A){if(this[qQ])this[qQ].protocol=A}}B8.Agent=DAA});var JAA=V((PD)=>{var wuA=PD&&PD.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(PD,"__esModule",{value:!0});PD.parseProxyResponse=void 0;var zuA=wuA(w$()),z$=(0,zuA.default)("https-proxy-agent:parse-proxy-response");function LuA(A){return new Promise((Q,B)=>{let I=0,E=[];function C(){let F=A.read();if(F)G(F);else A.once("readable",C)}function D(){A.removeListener("end",Y),A.removeListener("error",J),A.removeListener("readable",C)}function Y(){D(),z$("onend"),B(Error("Proxy connection ended before receiving CONNECT response"))}function J(F){D(),z$("onerror %o",F),B(F)}function G(F){E.push(F),I+=F.length;let Z=Buffer.concat(E,I),N=Z.indexOf(`\r
\r
`);if(N===-1){z$("have not received end of HTTP headers yet..."),C();return}let X=Z.slice(0,N).toString("ascii").split(`\r
`),U=X.shift();if(!U)return A.destroy(),B(Error("No header received from proxy CONNECT response"));let W=U.split(" "),$=+W[1],H=W.slice(2).join(" "),L={};for(let w of X){if(!w)continue;let P=w.indexOf(":");if(P===-1)return A.destroy(),B(Error(`Invalid header from proxy CONNECT response: "${w}"`));let c=w.slice(0,P).toLowerCase(),p=w.slice(P+1).trimStart(),S=L[c];if(typeof S==="string")L[c]=[S,p];else if(Array.isArray(S))S.push(p);else L[c]=p}z$("got proxy server response: %o %o",U,L),D(),Q({connect:{statusCode:$,statusText:H,headers:L},buffered:Z})}A.on("error",J),A.on("end",Y),C()})}PD.parseProxyResponse=LuA});var UAA=V((x8)=>{var MuA=x8&&x8.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),RuA=x8&&x8.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),NAA=x8&&x8.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))MuA(Q,A,B)}return RuA(Q,A),Q},XAA=x8&&x8.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(x8,"__esModule",{value:!0});x8.HttpsProxyAgent=void 0;var L$=NAA(require("net")),FAA=NAA(require("tls")),quA=XAA(require("assert")),TuA=XAA(w$()),OuA=YAA(),juA=require("url"),PuA=JAA(),XZ=(0,TuA.default)("https-proxy-agent"),GAA=(A)=>{if(A.servername===void 0&&A.host&&!L$.isIP(A.host))return{...A,servername:A.host};return A};class gg extends OuA.Agent{constructor(A,Q){super(Q);this.options={path:void 0},this.proxy=typeof A==="string"?new juA.URL(A):A,this.proxyHeaders=Q?.headers??{},XZ("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let B=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),I=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...Q?ZAA(Q,"headers"):null,host:B,port:I}}async connect(A,Q){let{proxy:B}=this;if(!Q.host)throw TypeError('No "host" provided');let I;if(B.protocol==="https:")XZ("Creating `tls.Socket`: %o",this.connectOpts),I=FAA.connect(GAA(this.connectOpts));else XZ("Creating `net.Socket`: %o",this.connectOpts),I=L$.connect(this.connectOpts);let E=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},C=L$.isIPv6(Q.host)?`[${Q.host}]`:Q.host,D=`CONNECT ${C}:${Q.port} HTTP/1.1\r
`;if(B.username||B.password){let Z=`${decodeURIComponent(B.username)}:${decodeURIComponent(B.password)}`;E["Proxy-Authorization"]=`Basic ${Buffer.from(Z).toString("base64")}`}if(E.Host=`${C}:${Q.port}`,!E["Proxy-Connection"])E["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let Z of Object.keys(E))D+=`${Z}: ${E[Z]}\r
`;let Y=(0,PuA.parseProxyResponse)(I);I.write(`${D}\r
`);let{connect:J,buffered:G}=await Y;if(A.emit("proxyConnect",J),this.emit("proxyConnect",J,A),J.statusCode===200){if(A.once("socket",guA),Q.secureEndpoint)return XZ("Upgrading socket connection to TLS"),FAA.connect({...ZAA(GAA(Q),"host","path","port"),socket:I});return I}I.destroy();let F=new L$.Socket({writable:!1});return F.readable=!0,A.once("socket",(Z)=>{XZ("Replaying proxy buffer for failed request"),(0,quA.default)(Z.listenerCount("data")>0),Z.push(G),Z.push(null)}),F}}gg.protocols=["http","https"];x8.HttpsProxyAgent=gg;function guA(A){A.resume()}function ZAA(A,...Q){let B={},I;for(I in A)if(!Q.includes(I))B[I]=A[I];return B}});var KAA=V((x9)=>{var _uA=x9&&x9.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),vuA=x9&&x9.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),WAA=x9&&x9.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))_uA(Q,A,B)}return vuA(Q,A),Q};Object.defineProperty(x9,"__esModule",{value:!0});x9.req=x9.json=x9.toBuffer=void 0;var SuA=WAA(require("http")),xuA=WAA(require("https"));async function VAA(A){let Q=0,B=[];for await(let I of A)Q+=I.length,B.push(I);return Buffer.concat(B,Q)}x9.toBuffer=VAA;async function kuA(A){let B=(await VAA(A)).toString("utf8");try{return JSON.parse(B)}catch(I){let E=I;throw E.message+=` (input: ${B})`,E}}x9.json=kuA;function huA(A,Q={}){let I=((typeof A==="string"?A:A.href).startsWith("https:")?xuA:SuA).request(A,Q),E=new Promise((C,D)=>{I.once("response",C).once("error",D).end()});return I.then=E.then.bind(E),I}x9.req=huA});var LAA=V((I8)=>{var HAA=I8&&I8.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),yuA=I8&&I8.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),wAA=I8&&I8.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))HAA(Q,A,B)}return yuA(Q,A),Q},fuA=I8&&I8.__exportStar||function(A,Q){for(var B in A)if(B!=="default"&&!Object.prototype.hasOwnProperty.call(Q,B))HAA(Q,A,B)};Object.defineProperty(I8,"__esModule",{value:!0});I8.Agent=void 0;var buA=wAA(require("net")),$AA=wAA(require("http")),duA=require("https");fuA(KAA(),I8);var TQ=Symbol("AgentBaseInternalState");class zAA extends $AA.Agent{constructor(A){super(A);this[TQ]={}}isSecureEndpoint(A){if(A){if(typeof A.secureEndpoint==="boolean")return A.secureEndpoint;if(typeof A.protocol==="string")return A.protocol==="https:"}let{stack:Q}=Error();if(typeof Q!=="string")return!1;return Q.split(`
`).some((B)=>B.indexOf("(https.js:")!==-1||B.indexOf("node:https:")!==-1)}incrementSockets(A){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[A])this.sockets[A]=[];let Q=new buA.Socket({writable:!1});return this.sockets[A].push(Q),this.totalSocketCount++,Q}decrementSockets(A,Q){if(!this.sockets[A]||Q===null)return;let B=this.sockets[A],I=B.indexOf(Q);if(I!==-1){if(B.splice(I,1),this.totalSocketCount--,B.length===0)delete this.sockets[A]}}getName(A){if(this.isSecureEndpoint(A))return duA.Agent.prototype.getName.call(this,A);return super.getName(A)}createSocket(A,Q,B){let I={...Q,secureEndpoint:this.isSecureEndpoint(Q)},E=this.getName(I),C=this.incrementSockets(E);Promise.resolve().then(()=>this.connect(A,I)).then((D)=>{if(this.decrementSockets(E,C),D instanceof $AA.Agent)try{return D.addRequest(A,I)}catch(Y){return B(Y)}this[TQ].currentSocket=D,super.createSocket(A,Q,B)},(D)=>{this.decrementSockets(E,C),B(D)})}createConnection(){let A=this[TQ].currentSocket;if(this[TQ].currentSocket=void 0,!A)throw Error("No socket was returned in the `connect()` function");return A}get defaultPort(){return this[TQ].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(A){if(this[TQ])this[TQ].defaultPort=A}get protocol(){return this[TQ].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(A){if(this[TQ])this[TQ].protocol=A}}I8.Agent=zAA});var qAA=V((k8)=>{var muA=k8&&k8.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),uuA=k8&&k8.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),RAA=k8&&k8.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))muA(Q,A,B)}return uuA(Q,A),Q},puA=k8&&k8.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(k8,"__esModule",{value:!0});k8.HttpProxyAgent=void 0;var cuA=RAA(require("net")),luA=RAA(require("tls")),iuA=puA(w$()),nuA=require("events"),auA=LAA(),MAA=require("url"),gD=(0,iuA.default)("http-proxy-agent");class _g extends auA.Agent{constructor(A,Q){super(Q);this.proxy=typeof A==="string"?new MAA.URL(A):A,this.proxyHeaders=Q?.headers??{},gD("Creating new HttpProxyAgent instance: %o",this.proxy.href);let B=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),I=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...Q?ouA(Q,"headers"):null,host:B,port:I}}addRequest(A,Q){A._header=null,this.setRequestProps(A,Q),super.addRequest(A,Q)}setRequestProps(A,Q){let{proxy:B}=this,I=Q.secureEndpoint?"https:":"http:",E=A.getHeader("host")||"localhost",C=`${I}//${E}`,D=new MAA.URL(A.path,C);if(Q.port!==80)D.port=String(Q.port);A.path=String(D);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(B.username||B.password){let J=`${decodeURIComponent(B.username)}:${decodeURIComponent(B.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(J).toString("base64")}`}if(!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let J of Object.keys(Y)){let G=Y[J];if(G)A.setHeader(J,G)}}async connect(A,Q){if(A._header=null,!A.path.includes("://"))this.setRequestProps(A,Q);let B,I;if(gD("Regenerating stored HTTP header string for request"),A._implicitHeader(),A.outputData&&A.outputData.length>0)gD("Patching connection write() output buffer with updated header"),B=A.outputData[0].data,I=B.indexOf(`\r
\r
`)+4,A.outputData[0].data=A._header+B.substring(I),gD("Output buffer: %o",A.outputData[0].data);let E;if(this.proxy.protocol==="https:")gD("Creating `tls.Socket`: %o",this.connectOpts),E=luA.connect(this.connectOpts);else gD("Creating `net.Socket`: %o",this.connectOpts),E=cuA.connect(this.connectOpts);return await(0,nuA.once)(E,"connect"),E}}_g.protocols=["http","https"];k8.HttpProxyAgent=_g;function ouA(A,...Q){let B={},I;for(I in A)if(!Q.includes(I))B[I]=A[I];return B}});var vg=V((h8)=>{Object.defineProperty(h8,"__esModule",{value:!0});h8.globalNoProxyList=h8.proxyPolicyName=void 0;h8.loadNoProxy=gAA;h8.getDefaultProxySettings=CpA;h8.proxyPolicy=YpA;var suA=UAA(),ruA=qAA(),tuA=JZ(),euA="HTTPS_PROXY",ApA="HTTP_PROXY",QpA="ALL_PROXY",BpA="NO_PROXY";h8.proxyPolicyName="proxyPolicy";h8.globalNoProxyList=[];var jAA=!1,IpA=new Map;function M$(A){if(process.env[A])return process.env[A];else if(process.env[A.toLowerCase()])return process.env[A.toLowerCase()];return}function PAA(){if(!process)return;let A=M$(euA),Q=M$(QpA),B=M$(ApA);return A||Q||B}function EpA(A,Q,B){if(Q.length===0)return!1;let I=new URL(A).hostname;if(B?.has(I))return B.get(I);let E=!1;for(let C of Q)if(C[0]==="."){if(I.endsWith(C))E=!0;else if(I.length===C.length-1&&I===C.slice(1))E=!0}else if(I===C)E=!0;return B?.set(I,E),E}function gAA(){let A=M$(BpA);if(jAA=!0,A)return A.split(",").map((Q)=>Q.trim()).filter((Q)=>Q.length);return[]}function CpA(A){if(!A){if(A=PAA(),!A)return}let Q=new URL(A);return{host:(Q.protocol?Q.protocol+"//":"")+Q.hostname,port:Number.parseInt(Q.port||"80"),username:Q.username,password:Q.password}}function DpA(){let A=PAA();return A?new URL(A):void 0}function TAA(A){let Q;try{Q=new URL(A.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${A.host}".`)}if(Q.port=String(A.port),A.username)Q.username=A.username;if(A.password)Q.password=A.password;return Q}function OAA(A,Q,B){if(A.agent)return;let E=new URL(A.url).protocol!=="https:";if(A.tlsSettings)tuA.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let C=A.headers.toJSON();if(E){if(!Q.httpProxyAgent)Q.httpProxyAgent=new ruA.HttpProxyAgent(B,{headers:C});A.agent=Q.httpProxyAgent}else{if(!Q.httpsProxyAgent)Q.httpsProxyAgent=new suA.HttpsProxyAgent(B,{headers:C});A.agent=Q.httpsProxyAgent}}function YpA(A,Q){if(!jAA)h8.globalNoProxyList.push(...gAA());let B=A?TAA(A):DpA(),I={};return{name:h8.proxyPolicyName,async sendRequest(E,C){if(!E.proxySettings&&B&&!EpA(E.url,Q?.customNoProxyList??h8.globalNoProxyList,Q?.customNoProxyList?void 0:IpA))OAA(E,I,B);else if(E.proxySettings)OAA(E,I,TAA(E.proxySettings));return C(E)}}}});var Sg=V((_D)=>{Object.defineProperty(_D,"__esModule",{value:!0});_D.agentPolicyName=void 0;_D.agentPolicy=JpA;_D.agentPolicyName="agentPolicy";function JpA(A){return{name:_D.agentPolicyName,sendRequest:async(Q,B)=>{if(!Q.agent)Q.agent=A;return B(Q)}}}});var xg=V((vD)=>{Object.defineProperty(vD,"__esModule",{value:!0});vD.tlsPolicyName=void 0;vD.tlsPolicy=FpA;vD.tlsPolicyName="tlsPolicy";function FpA(A){return{name:vD.tlsPolicyName,sendRequest:async(Q,B)=>{if(!Q.tlsSettings)Q.tlsSettings=A;return B(Q)}}}});var UZ=V((vI)=>{Object.defineProperty(vI,"__esModule",{value:!0});vI.isNodeReadableStream=_AA;vI.isWebReadableStream=vAA;vI.isBinaryBody=GpA;vI.isReadableStream=SAA;vI.isBlob=ZpA;function _AA(A){return Boolean(A&&typeof A.pipe==="function")}function vAA(A){return Boolean(A&&typeof A.getReader==="function"&&typeof A.tee==="function")}function GpA(A){return A!==void 0&&(A instanceof Uint8Array||SAA(A)||typeof A==="function"||A instanceof Blob)}function SAA(A){return _AA(A)||vAA(A)}function ZpA(A){return typeof A.stream==="function"}});var hAA=V((hg)=>{Object.defineProperty(hg,"__esModule",{value:!0});hg.concat=WpA;var kg=require("stream"),NpA=UZ();async function*xAA(){let A=this.getReader();try{while(!0){let{done:Q,value:B}=await A.read();if(Q)return;yield B}}finally{A.releaseLock()}}function XpA(A){if(!A[Symbol.asyncIterator])A[Symbol.asyncIterator]=xAA.bind(A);if(!A.values)A.values=xAA.bind(A)}function kAA(A){if(A instanceof ReadableStream)return XpA(A),kg.Readable.fromWeb(A);else return A}function UpA(A){if(A instanceof Uint8Array)return kg.Readable.from(Buffer.from(A));else if((0,NpA.isBlob)(A))return kAA(A.stream());else return kAA(A)}async function WpA(A){return function(){let Q=A.map((B)=>typeof B==="function"?B():B).map(UpA);return kg.Readable.from(async function*(){for(let B of Q)for await(let I of B)yield I}())}}});var yg=V((xD)=>{Object.defineProperty(xD,"__esModule",{value:!0});xD.multipartPolicyName=void 0;xD.multipartPolicy=OpA;var SD=PI(),VpA=UZ(),KpA=Q$(),$pA=hAA();function HpA(){return`----AzSDKFormBoundary${(0,KpA.randomUUID)()}`}function wpA(A){let Q="";for(let[B,I]of A)Q+=`${B}: ${I}\r
`;return Q}function zpA(A){if(A instanceof Uint8Array)return A.byteLength;else if((0,VpA.isBlob)(A))return A.size===-1?void 0:A.size;else return}function LpA(A){let Q=0;for(let B of A){let I=zpA(B);if(I===void 0)return;else Q+=I}return Q}async function MpA(A,Q,B){let I=[(0,SD.stringToUint8Array)(`--${B}`,"utf-8"),...Q.flatMap((C)=>[(0,SD.stringToUint8Array)(`\r
`,"utf-8"),(0,SD.stringToUint8Array)(wpA(C.headers),"utf-8"),(0,SD.stringToUint8Array)(`\r
`,"utf-8"),C.body,(0,SD.stringToUint8Array)(`\r
--${B}`,"utf-8")]),(0,SD.stringToUint8Array)(`--\r
\r
`,"utf-8")],E=LpA(I);if(E)A.headers.set("Content-Length",E);A.body=await(0,$pA.concat)(I)}xD.multipartPolicyName="multipartPolicy";var RpA=70,qpA=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function TpA(A){if(A.length>RpA)throw Error(`Multipart boundary "${A}" exceeds maximum length of 70 characters`);if(Array.from(A).some((Q)=>!qpA.has(Q)))throw Error(`Multipart boundary "${A}" contains invalid characters`)}function OpA(){return{name:xD.multipartPolicyName,async sendRequest(A,Q){if(!A.multipartBody)return Q(A);if(A.body)throw Error("multipartBody and regular body cannot be set at the same time");let B=A.multipartBody.boundary,I=A.headers.get("Content-Type")??"multipart/mixed",E=I.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!E)throw Error(`Got multipart request body, but content-type header was not multipart: ${I}`);let[,C,D]=E;if(D&&B&&D!==B)throw Error(`Multipart boundary was specified as ${D} in the header, but got ${B} in the request body`);if(B??=D,B)TpA(B);else B=HpA();return A.headers.set("Content-Type",`${C}; boundary=${B}`),await MpA(A,A.multipartBody.parts,B),A.multipartBody=void 0,Q(A)}}}});var bAA=V((fg)=>{Object.defineProperty(fg,"__esModule",{value:!0});fg.createPipelineFromOptions=fpA;var jpA=Gg(),PpA=eP(),gpA=Zg(),_pA=Ug(),vpA=Wg(),SpA=Mg(),xpA=Rg(),yAA=NZ(),kpA=vg(),hpA=Sg(),ypA=xg(),fAA=yg();function fpA(A){let Q=(0,PpA.createEmptyPipeline)();if(yAA.isNodeLike){if(A.agent)Q.addPolicy((0,hpA.agentPolicy)(A.agent));if(A.tlsOptions)Q.addPolicy((0,ypA.tlsPolicy)(A.tlsOptions));Q.addPolicy((0,kpA.proxyPolicy)(A.proxyOptions)),Q.addPolicy((0,vpA.decompressResponsePolicy)())}if(Q.addPolicy((0,xpA.formDataPolicy)(),{beforePolicies:[fAA.multipartPolicyName]}),Q.addPolicy((0,_pA.userAgentPolicy)(A.userAgentOptions)),Q.addPolicy((0,fAA.multipartPolicy)(),{afterPhase:"Deserialize"}),Q.addPolicy((0,SpA.defaultRetryPolicy)(A.retryOptions),{phase:"Retry"}),yAA.isNodeLike)Q.addPolicy((0,gpA.redirectPolicy)(A.redirectOptions),{afterPhase:"Retry"});return Q.addPolicy((0,jpA.logPolicy)(A.loggingOptions),{afterPhase:"Sign"}),Q}});var dAA=V((kD)=>{Object.defineProperty(kD,"__esModule",{value:!0});kD.apiVersionPolicyName=void 0;kD.apiVersionPolicy=bpA;kD.apiVersionPolicyName="ApiVersionPolicy";function bpA(A){return{name:kD.apiVersionPolicyName,sendRequest:(Q,B)=>{let I=new URL(Q.url);if(!I.searchParams.get("api-version")&&A.apiVersion)Q.url=`${Q.url}${Array.from(I.searchParams.keys()).length>0?"&":"?"}api-version=${A.apiVersion}`;return B(Q)}}}});var mAA=V((hD)=>{Object.defineProperty(hD,"__esModule",{value:!0});hD.isOAuth2TokenCredential=dpA;hD.isBearerTokenCredential=mpA;hD.isBasicCredential=upA;hD.isApiKeyCredential=ppA;function dpA(A){return"getOAuth2Token"in A}function mpA(A){return"getBearerToken"in A}function upA(A){return"username"in A&&"password"in A}function ppA(A){return"key"in A}});var WZ=V((bg)=>{Object.defineProperty(bg,"__esModule",{value:!0});bg.ensureSecureConnection=npA;var cpA=JZ(),uAA=!1;function lpA(A,Q){if(Q.allowInsecureConnection&&A.allowInsecureConnection){let B=new URL(A.url);if(B.hostname==="localhost"||B.hostname==="127.0.0.1")return!0}return!1}function ipA(){if(cpA.logger.warning("Sending token over insecure transport. Assume any token issued is compromised."),typeof process?.emitWarning==="function"&&!uAA)uAA=!0,process.emitWarning("Sending token over insecure transport. Assume any token issued is compromised.")}function npA(A,Q){if(!A.url.toLowerCase().startsWith("https://"))if(lpA(A,Q))ipA();else throw Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var pAA=V((yD)=>{Object.defineProperty(yD,"__esModule",{value:!0});yD.apiKeyAuthenticationPolicyName=void 0;yD.apiKeyAuthenticationPolicy=opA;var apA=WZ();yD.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function opA(A){return{name:yD.apiKeyAuthenticationPolicyName,async sendRequest(Q,B){(0,apA.ensureSecureConnection)(Q,A);let I=(Q.authSchemes??A.authSchemes)?.find((E)=>E.kind==="apiKey");if(!I)return B(Q);if(I.apiKeyLocation!=="header")throw Error(`Unsupported API key location: ${I.apiKeyLocation}`);return Q.headers.set(I.name,A.credential.key),B(Q)}}}});var lAA=V((fD)=>{Object.defineProperty(fD,"__esModule",{value:!0});fD.basicAuthenticationPolicyName=void 0;fD.basicAuthenticationPolicy=rpA;var cAA=PI(),spA=WZ();fD.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function rpA(A){return{name:fD.basicAuthenticationPolicyName,async sendRequest(Q,B){if((0,spA.ensureSecureConnection)(Q,A),!(Q.authSchemes??A.authSchemes)?.find((Y)=>Y.kind==="http"&&Y.scheme==="basic"))return B(Q);let{username:E,password:C}=A.credential,D=(0,cAA.uint8ArrayToString)((0,cAA.stringToUint8Array)(`${E}:${C}`,"utf-8"),"base64");return Q.headers.set("Authorization",`Basic ${D}`),B(Q)}}}});var iAA=V((bD)=>{Object.defineProperty(bD,"__esModule",{value:!0});bD.bearerAuthenticationPolicyName=void 0;bD.bearerAuthentica Line truncated
`).join("")}return Q(A)}}}});var j0A=V((yI)=>{Object.defineProperty(yI,"__esModule",{value:!0});yI.auxiliaryAuthenticationHeaderPolicyName=void 0;yI.auxiliaryAuthenticationHeaderPolicy=jnA;var qnA=S_(),TnA=KZ();yI.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var O0A="x-ms-authorization-auxiliary";async function OnA(A){let{scopes:Q,getAccessToken:B,request:I}=A,E={abortSignal:I.abortSignal,tracingOptions:I.tracingOptions};return(await B(Q,E))?.token??""}function jnA(A){let{credentials:Q,scopes:B}=A,I=A.logger||TnA.logger,E=new WeakMap;return{name:yI.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(C,D){if(!C.url.toLowerCase().startsWith("https://"))throw Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!Q||Q.length===0)return I.info(`${yI.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),D(C);let Y=[];for(let G of Q){let F=E.get(G);if(!F)F=(0,qnA.createTokenCycler)(G),E.set(G,F);Y.push(OnA({scopes:Array.isArray(B)?B:[B],request:C,getAccessToken:F,logger:I}))}let J=(await Promise.all(Y)).filter((G)=>Boolean(G));if(J.length===0)return I.warning(`None of the auxiliary tokens are valid. ${O0A} header will not be set.`),D(C);return C.headers.set(O0A,J.map((G)=>`Bearer ${G}`).join(", ")),D(C)}}}});var C4=V((jA)=>{Object.defineProperty(jA,"__esModule",{value:!0});jA.createFileFromStream=jA.createFile=jA.agentPolicyName=jA.agentPolicy=jA.auxiliaryAuthenticationHeaderPolicyName=jA.auxiliaryAuthenticationHeaderPolicy=jA.ndJsonPolicyName=jA.ndJsonPolicy=jA.bearerTokenAuthenticationPolicyName=jA.bearerTokenAuthenticationPolicy=jA.formDataPolicyName=jA.formDataPolicy=jA.tlsPolicyName=jA.tlsPolicy=jA.userAgentPolicyName=jA.userAgentPolicy=jA.defaultRetryPolicy=jA.tracingPolicyName=jA.tracingPolicy=jA.retryPolicy=jA.throttlingRetryPolicyName=jA.throttlingRetryPolicy=jA.systemErrorRetryPolicyName=jA.systemErrorRetryPolicy=jA.redirectPolicyName=jA.redirectPolicy=jA.getDefaultProxySettings=jA.proxyPolicyName=jA.proxyPolicy=jA.multipartPolicyName=jA.multipartPolicy=jA.logPolicyName=jA.logPolicy=jA.setClientRequestIdPolicyName=jA.setClientRequestIdPolicy=jA.exponentialRetryPolicyName=jA.exponentialRetryPolicy=jA.decompressResponsePolicyName=jA.decompressResponsePolicy=jA.isRestError=jA.RestError=jA.createPipelineRequest=jA.createHttpHeaders=jA.createDefaultHttpClient=jA.createPipelineFromOptions=jA.createEmptyPipeline=void 0;var PnA=sg();Object.defineProperty(jA,"createEmptyPipeline",{enumerable:!0,get:function(){return PnA.createEmptyPipeline}});var gnA=G0A();Object.defineProperty(jA,"createPipelineFromOptions",{enumerable:!0,get:function(){return gnA.createPipelineFromOptions}});var _nA=Z0A();Object.defineProperty(jA,"createDefaultHttpClient",{enumerable:!0,get:function(){return _nA.createDefaultHttpClient}});var vnA=N0A();Object.defineProperty(jA,"createHttpHeaders",{enumerable:!0,get:function(){return vnA.createHttpHeaders}});var SnA=X0A();Object.defineProperty(jA,"createPipelineRequest",{enumerable:!0,get:function(){return SnA.createPipelineRequest}});var P0A=u$();Object.defineProperty(jA,"RestError",{enumerable:!0,get:function(){return P0A.RestError}});Object.defineProperty(jA,"isRestError",{enumerable:!0,get:function(){return P0A.isRestError}});var g0A=N_();Object.defineProperty(jA,"decompressResponsePolicy",{enumerable:!0,get:function(){return g0A.decompressResponsePolicy}});Object.defineProperty(jA,"decompressResponsePolicyName",{enumerable:!0,get:function(){return g0A.decompressResponsePolicyName}});var _0A=W0A();Object.defineProperty(jA,"exponentialRetryPolicy",{enumerable:!0,get:function(){return _0A.exponentialRetryPolicy}});Object.defineProperty(jA,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return _0A.exponentialRetryPolicyName}});var v0A=K_();Object.defineProperty(jA,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return v0A.setClientRequestIdPolicy}});Object.defineProperty(jA,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return v0A.setClientRequestIdPolicyName}});var S0A=tg();Object.defineProperty(jA,"logPolicy",{enumerable:!0,get:function(){return S0A.logPolicy}});Object.defineProperty(jA,"logPolicyName",{enumerable:!0,get:function(){return S0A.logPolicyName}});var x0A=Z_();Object.defineProperty(jA,"multipartPolicy",{enumerable:!0,get:function(){return x0A.multipartPolicy}});Object.defineProperty(jA,"multipartPolicyName",{enumerable:!0,get:function(){return x0A.multipartPolicyName}});var x_=V_();Object.defineProperty(jA,"proxyPolicy",{enumerable:!0,get:function(){return x_.proxyPolicy}});Object.defineProperty(jA,"proxyPolicyName",{enumerable:!0,get:function(){return x_.proxyPolicyName}});Object.defineProperty(jA,"getDefaultProxySettings",{enumerable:!0,get:function(){return x_.getDefaultProxySettings}});var k0A=eg();Object.defineProperty(jA,"redirectPolicy",{enumerable:!0,get:function(){return k0A.redirectPolicy}});Objec Line truncated
`&&z[r]!=="\r";r++)n+=z[r];if(n=n.trim(),n[n.length-1]==="/"&&(n=n.substring(0,n.length-1),r--),!C(n)){let FA;return FA=n.trim().length===0?"Invalid space after '<'.":"Tag '"+n+"' is an invalid name.",H("InvalidTag",FA,w(z,r))}let AA=X(z,r);if(AA===!1)return H("InvalidAttr","Attributes for '"+n+"' have open quote.",w(z,r));let JA=AA.value;if(r=AA.index,JA[JA.length-1]==="/"){let FA=r-JA.length;JA=JA.substring(0,JA.length-1);let TA=W(JA,M);if(TA!==!0)return H(TA.err.code,TA.err.msg,w(z,FA+TA.err.line));s=!0}else if(b){if(!AA.tagClosed)return H("InvalidTag","Closing tag '"+n+"' doesn't have proper closing.",w(z,r));if(JA.trim().length>0)return H("InvalidTag","Closing tag '"+n+"' can't have attributes or invalid starting.",w(z,R));if(h.length===0)return H("InvalidTag","Closing tag '"+n+"' has not been opened.",w(z,R));{let FA=h.pop();if(n!==FA.tagName){let TA=w(z,FA.tagStartPos);return H("InvalidTag","Expected closing tag '"+FA.tagName+"' (opened in line "+TA.line+", col "+TA.col+") instead of closing tag '"+n+"'.",w(z,R))}h.length==0&&(d=!0)}}else{let FA=W(JA,M);if(FA!==!0)return H(FA.err.code,FA.err.msg,w(z,r-JA.length+FA.err.line));if(d===!0)return H("InvalidXml","Multiple possible root nodes found.",w(z,r));M.unpairedTags.indexOf(n)!==-1||h.push({tagName:n,tagStartPos:R}),s=!0}for(r++;r<z.length;r++)if(z[r]==="<"){if(z[r+1]==="!"){r++,r=F(z,r);continue}if(z[r+1]!=="?")break;if(r=G(z,++r),r.err)return r}else if(z[r]==="&"){let FA=$(z,r);if(FA==-1)return H("InvalidChar","char '&' is not expected.",w(z,r));r=FA}else if(d===!0&&!J(z[r]))return H("InvalidXml","Extra text at the end",w(z,r));z[r]==="<"&&r--}}}return s?h.length==1?H("InvalidTag","Unclosed tag '"+h[0].tagName+"'.",w(z,h[0].tagStartPos)):!(h.length>0)||H("InvalidXml","Invalid '"+JSON.stringify(h.map((r)=>r.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):H("InvalidXml","Start tag expected.",1)}function J(z){return z===" "||z==="\t"||z===`
`||z==="\r"}function G(z,M){let h=M;for(;M<z.length;M++)if(z[M]!="?"&&z[M]!=" ");else{let s=z.substr(h,M-h);if(M>5&&s==="xml")return H("InvalidXml","XML declaration allowed only at the start of the document.",w(z,M));if(z[M]=="?"&&z[M+1]==">"){M++;break}}return M}function F(z,M){if(z.length>M+5&&z[M+1]==="-"&&z[M+2]==="-"){for(M+=3;M<z.length;M++)if(z[M]==="-"&&z[M+1]==="-"&&z[M+2]===">"){M+=2;break}}else if(z.length>M+8&&z[M+1]==="D"&&z[M+2]==="O"&&z[M+3]==="C"&&z[M+4]==="T"&&z[M+5]==="Y"&&z[M+6]==="P"&&z[M+7]==="E"){let h=1;for(M+=8;M<z.length;M++)if(z[M]==="<")h++;else if(z[M]===">"&&(h--,h===0))break}else if(z.length>M+9&&z[M+1]==="["&&z[M+2]==="C"&&z[M+3]==="D"&&z[M+4]==="A"&&z[M+5]==="T"&&z[M+6]==="A"&&z[M+7]==="["){for(M+=8;M<z.length;M++)if(z[M]==="]"&&z[M+1]==="]"&&z[M+2]===">"){M+=2;break}}return M}let Z='"',N="'";function X(z,M){let h="",s="",d=!1;for(;M<z.length;M++){if(z[M]===Z||z[M]===N)s===""?s=z[M]:s!==z[M]||(s="");else if(z[M]===">"&&s===""){d=!0;break}h+=z[M]}return s===""&&{value:h,index:M,tagClosed:d}}let U=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function W(z,M){let h=E(z,U),s={};for(let d=0;d<h.length;d++){if(h[d][1].length===0)return H("InvalidAttr","Attribute '"+h[d][2]+"' has no space in starting.",P(h[d]));if(h[d][3]!==void 0&&h[d][4]===void 0)return H("InvalidAttr","Attribute '"+h[d][2]+"' is without value.",P(h[d]));if(h[d][3]===void 0&&!M.allowBooleanAttributes)return H("InvalidAttr","boolean attribute '"+h[d][2]+"' is not allowed.",P(h[d]));let r=h[d][2];if(!L(r))return H("InvalidAttr","Attribute '"+r+"' is an invalid name.",P(h[d]));if(s.hasOwnProperty(r))return H("InvalidAttr","Attribute '"+r+"' is repeated.",P(h[d]));s[r]=1}return!0}function $(z,M){if(z[++M]===";")return-1;if(z[M]==="#")return function(s,d){let r=/\d/;for(s[d]==="x"&&(d++,r=/[\da-fA-F]/);d<s.length;d++){if(s[d]===";")return d;if(!s[d].match(r))break}return-1}(z,++M);let h=0;for(;M<z.length;M++,h++)if(!(z[M].match(/\w/)&&h<20)){if(z[M]===";")break;return-1}return M}function H(z,M,h){return{err:{code:z,msg:M,line:h.line||h,col:h.col}}}function L(z){return C(z)}function w(z,M){let h=z.substring(0,M).split(/\r?\n/);return{line:h.length,col:h[h.length-1].length+1}}function P(z){return z.startIndex+z[1].length}let c={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(z,M){return M},attributeValueProcessor:function(z,M){return M},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(z,M,h){return z},captureMetaData:!1},p;p=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class S{constructor(z){this.tagname=z,this.child=[],this[":@"]={}}add(z,M){z==="__proto__"&&(z="#__proto__"),this.child.push({[z]:M})}addChild(z,M){z.tagname==="__proto__"&&(z.tagname="#__proto__"),z[":@"]&&Object.keys(z[":@"]).length>0?this.child.push({[z.tagname]:z.child,":@":z[":@"]}):this.child.push({[z.tagname]:z.child}),M!==void 0&&(this.child[this.child.length-1][p]={startIndex:M})}static getMetaDataSymbol(){return p}}function o(z,M){let h={};if(z[M+3]!=="O"||z[M+4]!=="C"||z[M+5]!=="T"||z[M+6]!=="Y"||z[M+7]!=="P"||z[M+8]!=="E")throw Error("Invalid Tag instead of DOCTYPE");{M+=9;let s=1,d=!1,r=!1,R="";for(;M<z.length;M++)if(z[M]!=="<"||r)if(z[M]===">"){if(r?z[M-1]==="-"&&z[M-2]==="-"&&(r=!1,s--):s--,s===0)break}else z[M]==="["?d=!0:R+=z[M];else{if(d&&BA(z,"!ENTITY",M)){let b,n;M+=7,[b,n,M]=k(z,M+1),n.indexOf("&")===-1&&(h[b]={regx:RegExp(`&${b};`,"g"),val:n})}else if(d&&BA(z,"!ELEMENT",M)){M+=8;let{index:b}=EA(z,M+1);M=b}else if(d&&BA(z,"!ATTLIST",M))M+=8;else if(d&&BA(z,"!NOTATION",M)){M+=9;let{index:b}=i(z,M+1);M=b}else{if(!BA(z,"!--",M))throw Error("Invalid DOCTYPE");r=!0}s++,R=""}if(s!==0)throw Error("Unclosed DOCTYPE")}return{entities:h,i:M}}let f=(z,M)=>{for(;M<z.length&&/\s/.test(z[M]);)M++;return M};function k(z,M){M=f(z,M);let h="";for(;M<z.length&&!/\s/.test(z[M])&&z[M]!=='"'&&z[M]!=="'";)h+=z[M],M++;if(wA(h),M=f(z,M),z.substring(M,M+6).toUpperCase()==="SYSTEM")throw Error("External entities are not supported");if(z[M]==="%")throw Error("Parameter entities are not supported");let s="";return[M,s]=l(z,M,"entity"),[h,s,--M]}function i(z,M){M=f(z,M);let h="";for(;M<z.length&&!/\s/.test(z[M]);)h+=z[M],M++;wA(h),M=f(z,M);let s=z.substring(M,M+6).toUpperCase();if(s!=="SYSTEM"&&s!=="PUBLIC")throw Error(`Expected SYSTEM or PUBLIC, found "${s}"`);M+=s.length,M=f(z,M);let d=null,r=null;if(s==="PUBLIC")[M,d]=l(z,M,"publicIdentifier"),z[M=f(z,M)]!=='"'&&z[M]!=="'"||([M,r]=l(z,M,"systemIdentifier"));else if(s==="SYSTEM"&&([M,r]=l(z,M,"systemIdentifier"),!r))throw Error("MissinLine truncated
`);let M=new S("!xml"),h=M,s="",d="";for(let r=0;r<z.length;r++)if(z[r]==="<")if(z[r+1]==="/"){let R=NA(z,">",r,"Closing Tag is not closed."),b=z.substring(r+2,R).trim();if(this.options.removeNSPrefix){let JA=b.indexOf(":");JA!==-1&&(b=b.substr(JA+1))}this.options.transformTagName&&(b=this.options.transformTagName(b)),h&&(s=this.saveTextToParentTag(s,h,d));let n=d.substring(d.lastIndexOf(".")+1);if(b&&this.options.unpairedTags.indexOf(b)!==-1)throw Error(`Unpaired tag can not be used as closing tag: </${b}>`);let AA=0;n&&this.options.unpairedTags.indexOf(n)!==-1?(AA=d.lastIndexOf(".",d.lastIndexOf(".")-1),this.tagsNodeStack.pop()):AA=d.lastIndexOf("."),d=d.substring(0,AA),h=this.tagsNodeStack.pop(),s="",r=R}else if(z[r+1]==="?"){let R=WA(z,r,!1,"?>");if(!R)throw Error("Pi Tag is not closed.");if(s=this.saveTextToParentTag(s,h,d),this.options.ignoreDeclaration&&R.tagName==="?xml"||this.options.ignorePiTags);else{let b=new S(R.tagName);b.add(this.options.textNodeName,""),R.tagName!==R.tagExp&&R.attrExpPresent&&(b[":@"]=this.buildAttributesMap(R.tagExp,d,R.tagName)),this.addChild(h,b,d,r)}r=R.closeIndex+1}else if(z.substr(r+1,3)==="!--"){let R=NA(z,"-->",r+4,"Comment is not closed.");if(this.options.commentPropName){let b=z.substring(r+4,R-2);s=this.saveTextToParentTag(s,h,d),h.add(this.options.commentPropName,[{[this.options.textNodeName]:b}])}r=R}else if(z.substr(r+1,2)==="!D"){let R=o(z,r);this.docTypeEntities=R.entities,r=R.i}else if(z.substr(r+1,2)==="!["){let R=NA(z,"]]>",r,"CDATA is not closed.")-2,b=z.substring(r+9,R);s=this.saveTextToParentTag(s,h,d);let n=this.parseTextData(b,h.tagname,d,!0,!1,!0,!0);n==null&&(n=""),this.options.cdataPropName?h.add(this.options.cdataPropName,[{[this.options.textNodeName]:b}]):h.add(this.options.textNodeName,n),r=R+2}else{let R=WA(z,r,this.options.removeNSPrefix),b=R.tagName,n=R.rawTagName,AA=R.tagExp,JA=R.attrExpPresent,FA=R.closeIndex;this.options.transformTagName&&(b=this.options.transformTagName(b)),h&&s&&h.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,h,d,!1));let TA=h;TA&&this.options.unpairedTags.indexOf(TA.tagname)!==-1&&(h=this.tagsNodeStack.pop(),d=d.substring(0,d.lastIndexOf("."))),b!==M.tagname&&(d+=d?"."+b:b);let qA=r;if(this.isItStopNode(this.options.stopNodes,d,b)){let gA="";if(AA.length>0&&AA.lastIndexOf("/")===AA.length-1)b[b.length-1]==="/"?(b=b.substr(0,b.length-1),d=d.substr(0,d.length-1),AA=b):AA=AA.substr(0,AA.length-1),r=R.closeIndex;else if(this.options.unpairedTags.indexOf(b)!==-1)r=R.closeIndex;else{let s1=this.readStopNodeData(z,n,FA+1);if(!s1)throw Error(`Unexpected end of ${n}`);r=s1.i,gA=s1.tagContent}let nA=new S(b);b!==AA&&JA&&(nA[":@"]=this.buildAttributesMap(AA,d,b)),gA&&(gA=this.parseTextData(gA,b,d,!0,JA,!0,!0)),d=d.substr(0,d.lastIndexOf(".")),nA.add(this.options.textNodeName,gA),this.addChild(h,nA,d,qA)}else{if(AA.length>0&&AA.lastIndexOf("/")===AA.length-1){b[b.length-1]==="/"?(b=b.substr(0,b.length-1),d=d.substr(0,d.length-1),AA=b):AA=AA.substr(0,AA.length-1),this.options.transformTagName&&(b=this.options.transformTagName(b));let gA=new S(b);b!==AA&&JA&&(gA[":@"]=this.buildAttributesMap(AA,d,b)),this.addChild(h,gA,d,qA),d=d.substr(0,d.lastIndexOf("."))}else{let gA=new S(b);this.tagsNodeStack.push(h),b!==AA&&JA&&(gA[":@"]=this.buildAttributesMap(AA,d,b)),this.addChild(h,gA,d,qA),h=gA}s="",r=FA}}else s+=z[r];return M.child};function UA(z,M,h,s){this.options.captureMetaData||(s=void 0);let d=this.options.updateTag(M.tagname,h,M[":@"]);d===!1||(typeof d=="string"?(M.tagname=d,z.addChild(M,s)):z.addChild(M,s))}let J0=function(z){if(this.options.processEntities){for(let M in this.docTypeEntities){let h=this.docTypeEntities[M];z=z.replace(h.regx,h.val)}for(let M in this.lastEntities){let h=this.lastEntities[M];z=z.replace(h.regex,h.val)}if(this.options.htmlEntities)for(let M in this.htmlEntities){let h=this.htmlEntities[M];z=z.replace(h.regex,h.val)}z=z.replace(this.ampEntity.regex,this.ampEntity.val)}return z};function H1(z,M,h,s){return z&&(s===void 0&&(s=M.child.length===0),(z=this.parseTextData(z,M.tagname,h,!1,!!M[":@"]&&Object.keys(M[":@"]).length!==0,s))!==void 0&&z!==""&&M.add(this.options.textNodeName,z),z=""),z}function L0(z,M,h){let s="*."+h;for(let d in z){let r=z[d];if(s===r||M===r)return!0}return!1}function NA(z,M,h,s){let d=z.indexOf(M,h);if(d===-1)throw Error(s);return d+M.length-1}function WA(z,M,h,s=">"){let d=function(FA,TA,qA=">"){let gA,nA="";for(let s1=TA;s1<FA.length;s1++){let h0=FA[s1];if(gA)h0===gA&&(gA="");else if(h0==='"'||h0==="'")gA=h0;else if(h0===qA[0]){if(!qA[1])return{data:nA,index:s1};if(FA[s1+1]===qA[1])return{data:nA,index:s1}}else h0==="\t"&&(h0=" ");nA+=h0}}(z,M+1,s);if(!d)return;let{data:r,index:R}=d,b=r.search(/\s/),n=r,AA=!0;b!==-1&&(n=r.substring(0,b),r=r.substring(b+1).trimStart());let JA=n;if(h){let FA=n.indexOf(":");FA!==-1&&(n=n.substr(FA+1),AA=n!==d.data.substr(FA+1))}return{tagName:n,tagExp:r,closeIndex:R,attrExpPresent:AA,rawTagName:JA}}function Z1(z,M,h){let s=h,d=1;for(;h<z.length;hLine truncated
`),q1(z,M,"",h)}function q1(z,M,h,s){let d="",r=!1;for(let R=0;R<z.length;R++){let b=z[R],n=_2(b);if(n===void 0)continue;let AA="";if(AA=h.length===0?n:`${h}.${n}`,n===M.textNodeName){let qA=b[n];P1(AA,M)||(qA=M.tagValueProcessor(n,qA),qA=K(qA,M)),r&&(d+=s),d+=qA,r=!1;continue}if(n===M.cdataPropName){r&&(d+=s),d+=`<![CDATA[${b[n][0][M.textNodeName]}]]>`,r=!1;continue}if(n===M.commentPropName){d+=s+`<!--${b[n][0][M.textNodeName]}-->`,r=!0;continue}if(n[0]==="?"){let qA=xA(b[":@"],M),gA=n==="?xml"?"":s,nA=b[n][0][M.textNodeName];nA=nA.length!==0?" "+nA:"",d+=gA+`<${n}${nA}${qA}?>`,r=!0;continue}let JA=s;JA!==""&&(JA+=M.indentBy);let FA=s+`<${n}${xA(b[":@"],M)}`,TA=q1(b[n],M,AA,JA);M.unpairedTags.indexOf(n)!==-1?M.suppressUnpairedNode?d+=FA+">":d+=FA+"/>":TA&&TA.length!==0||!M.suppressEmptyNode?TA&&TA.endsWith(">")?d+=FA+`>${TA}${s}</${n}>`:(d+=FA+">",TA&&s!==""&&(TA.includes("/>")||TA.includes("</"))?d+=s+M.indentBy+TA+s:d+=TA,d+=`</${n}>`):d+=FA+"/>",r=!0}return d}function _2(z){let M=Object.keys(z);for(let h=0;h<M.length;h++){let s=M[h];if(z.hasOwnProperty(s)&&s!==":@")return s}}function xA(z,M){let h="";if(z&&!M.ignoreAttributes)for(let s in z){if(!z.hasOwnProperty(s))continue;let d=M.attributeValueProcessor(s,z[s]);d=K(d,M),d===!0&&M.suppressBooleanAttributes?h+=` ${s.substr(M.attributeNamePrefix.length)}`:h+=` ${s.substr(M.attributeNamePrefix.length)}="${d}"`}return h}function P1(z,M){let h=(z=z.substr(0,z.length-M.textNodeName.length-1)).substr(z.lastIndexOf(".")+1);for(let s in M.stopNodes)if(M.stopNodes[s]===z||M.stopNodes[s]==="*."+h)return!0;return!1}function K(z,M){if(z&&z.length>0&&M.processEntities)for(let h=0;h<M.entities.length;h++){let s=M.entities[h];z=z.replace(s.regex,s.val)}return z}let q={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(z,M){return M},attributeValueProcessor:function(z,M){return M},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function j(z){this.options=Object.assign({},q,z),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=$A(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=a),this.processTextOrObjNode=u,this.options.format?(this.indentate=m,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function u(z,M,h,s){let d=this.j2x(z,h+1,s.concat(M));return z[this.options.textNodeName]!==void 0&&Object.keys(z).length===1?this.buildTextValNode(z[this.options.textNodeName],M,d.attrStr,h):this.buildObjectNode(d.val,M,d.attrStr,h)}function m(z){return this.options.indentBy.repeat(z)}function a(z){return!(!z.startsWith(this.options.attributeNamePrefix)||z===this.options.textNodeName)&&z.substr(this.attrPrefixLen)}j.prototype.build=function(z){return this.options.preserveOrder?pA(z,this.options):(Array.isArray(z)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(z={[this.options.arrayNodeName]:z}),this.j2x(z,0,[]).val)},j.prototype.j2x=function(z,M,h){let s="",d="",r=h.join(".");for(let R in z)if(Object.prototype.hasOwnProperty.call(z,R))if(z[R]===void 0)this.isAttribute(R)&&(d+="");else if(z[R]===null)this.isAttribute(R)||R===this.options.cdataPropName?d+="":R[0]==="?"?d+=this.indentate(M)+"<"+R+"?"+this.tagEndChar:d+=this.indentate(M)+"<"+R+"/"+this.tagEndChar;else if(z[R]instanceof Date)d+=this.buildTextValNode(z[R],R,"",M);else if(typeof z[R]!="object"){let b=this.isAttribute(R);if(b&&!this.ignoreAttributesFn(b,r))s+=this.buildAttrPairStr(b,""+z[R]);else if(!b)if(R===this.options.textNodeName){let n=this.options.tagValueProcessor(R,""+z[R]);d+=this.replaceEntitiesValue(n)}else d+=this.buildTextValNode(z[R],R,"",M)}else if(Array.isArray(z[R])){let b=z[R].length,n="",AA="";for(let JA=0;JA<b;JA++){let FA=z[R][JA];if(FA===void 0);else if(FA===null)R[0]==="?"?d+=this.indentate(M)+"<"+R+"?"+this.tagEndChar:d+=this.indentate(M)+"<"+R+"/"+this.tagEndChar;else if(typeof FA=="object")if(this.options.oneListGroup){let TA=this.j2x(FA,M+1,h.concat(R));n+=TA.val,this.options.attributesGroupName&&FA.hasOwnProperty(this.options.attributesGroupName)&&(AA+=TA.attrStr)}else n+=this.processTextOrObjNode(FA,R,M,h);else if(this.options.oneListGroup){let TA=this.options.tagValueProcessor(R,FA);TA=this.replaceEntitiesValue(TA),n+=TA}else n+=this.buildTextValNode(FA,R,"",M)}this.options.oneListGroup&&(n=this.buildObjectNode(n,R,AA,M)),d+=n}else if(this.options.attributesGroupName&&R===this.options.attributesGroupName){let b=Object.keys(z[R]),n=b.length;for(let AA=0;AA<n;AA++)s+=this.buildAttrPairStr(b[AA],""+z[R][b[AA]])}else d+=this.processTextOrObjNode(z[R],R,M,h);return{attrStr:s,val:d}},j.prototype.buildAttrPairStr=function(z,M){return M=this.options.attributeValueProcessor(z,""+M),M=this.replaceEntitiesValue(M),this.options.suppressBooleanAttributes&&M==="true"?" "+z:" "+z+'="'+M+'"'},j.prototype.buildObjectNode=function(z,M,h,s){if(z==="")return M[0]==="?"?this.indentate(s)+"<"+M+h+"?"+this.tagEndChar:this.indentate(s)+"<"+M+h+this.closeTag(M)+this.tagEndChar;{let d="</"+M+this.tagEndChar,r="";return M[0]==="?"&&(r="?",d=""),!h&&h!==""||z.indexOf("<")!==-1?this.options.commentPropName!==!1&&M===this.options.commentPropName&&r.length===0?this.indentate(s)+`<!--${z}-->`+this.newLine:this.indentate(s)+"<"+M+h+r+this.tagEndChar+z+this.indentate(s)+d:this.indentate(s)+"<"+M+h+r+">"+z+d}},j.prototype.closeTag=function(z){let M="";return this.options.unpairedTags.indexOf(z)!==-1?this.options.suppressUnpairedNode||(M="/"):M=this.options.suppressEmptyNode?"/":`></${z}`,M},j.prototype.buildTextValNode=function(z,M,h,s){if(this.options.cdataPropName!==!1&&M===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${z}]]>`+this.newLine;if(this.options.commentPropName!==!1&&M===this.options.commentPropName)return this.indentate(s)+`<!--${z}-->`+this.newLine;if(M[0]==="?")return this.indentate(s)+"<"+M+h+"?"+this.tagEndChar;{let d=this.options.tagValueProcessor(M,z);return d=this.replaceEntitiesValue(d),d===""?this.indentate(s)+"<"+M+h+this.closeTag(M)+this.tagEndChar:this.indentate(s)+"<"+M+h+">"+d+"</"+M+this.tagEndChar}},j.prototype.replaceEntitiesValue=function(z){if(z&&z.length>0&&this.options.processEntities)for(let M=0;M<this.options.entities.length;M++){let h=this.options.entities[M];z=z.replace(h.regex,h.val)}return z};let IA={validate:Y};r2A.exports=Q})()});var Av=V((JY)=>{Object.defineProperty(JY,"__esModule",{value:!0});JY.XML_CHARKEY=JY.XML_ATTRKEY=void 0;JY.XML_ATTRKEY="$";JY.XML_CHARKEY="_"});var Q4A=V((GH)=>{Object.defineProperty(GH,"__esModule",{value:!0});GH.stringifyXML=coA;GH.parseXML=loA;var Qv=t2A(),e2A=Av();function A4A(A){var Q;return{attributesGroupName:e2A.XML_ATTRKEY,textNodeName:(Q=A.xmlCharKey)!==null&&Q!==void 0?Q:e2A.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function uoA(A={}){var Q,B;return Object.assign(Object.assign({},A4A(A)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(Q=A.rootName)!==null&&Q!==void 0?Q:"root",cdataPropName:(B=A.cdataPropName)!==null&&B!==void 0?B:"__cdata"})}function poA(A={}){return Object.assign(Object.assign({},A4A(A)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:A.stopNodes,processEntities:!0Line truncated
`;B1.HTTP_VERSION_1_1="HTTP/1.1";B1.EncryptionAlgorithmAES25="AES256";B1.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";B1.StorageBlobLoggingAllowedHeaderNames=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"];B1.StorageBlobLoggingAllowedQueryParameters=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];B1.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";B1.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";B1.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var v4=V((p1)=>{Object.defineProperty(p1,"__esModule",{value:!0});p1.escapeURLPath=ooA;p1.getValueInConnString=c7;p1.extractConnectionStringParts=roA;p1.appendToURLPath=eoA;p1.setURLParameter=J4A;p1.getURLParameter=F4A;p1.setURLHost=AsA;p1.getURLPath=QsA;p1.getURLScheme=BsA;p1.getURLPathAndQuery=IsA;p1.getURLQueries=EsA;p1.appendToURLQuery=CsA;p1.truncatedISO8061Date=DsA;p1.base64encode=G4A;p1.base64decode=YsA;p1.generateBlockID=JsA;p1.delay=FsA;p1.padStart=Z4A;p1.sanitizeURL=N4A;p1.sanitizeHeaders=GsA;p1.iEqual=ZsA;p1.getAccountNameFromUrl=X4A;p1.isIpEndpointStyle=U4A;p1.toBlobTagsString=NsA;p1.toBlobTags=XsA;p1.toTags=UsA;p1.toQuerySerialization=WsA;p1.parseObjectReplicationRecord=VsA;p1.attachCredential=KsA;p1.httpAuthorizationToString=$sA;p1.BlobNameToString=WH;p1.ConvertInternalResponseOfListBlobFlat=HsA;p1.ConvertInternalResponseOfListBlobHierarchy=wsA;p1.ExtractPageRangeInfoItems=zsA;p1.EscapePath=LsA;p1.assertResponse=MsA;var aoA=C4(),Y4A=a0(),GY=D4();function ooA(A){let Q=new URL(A),B=Q.pathname;return B=B||"/",B=toA(B),Q.pathname=B,Q.toString()}function soA(A){let Q="";if(A.search("DevelopmentStorageProxyUri=")!==-1){let B=A.split(";");for(let I of B)if(I.trim().startsWith("DevelopmentStorageProxyUri="))Q=I.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}return Q}function c7(A,Q){let B=A.split(";");for(let I of B)if(I.trim().startsWith(Q))return I.trim().match(Q+"=(.*)")[1];return""}function roA(A){let Q="";if(A.startsWith("UseDevelopmentStorage=true"))Q=soA(A),A=GY.DevelopmentConnectionString;let B=c7(A,"BlobEndpoint");if(B=B.endsWith("/")?B.slice(0,-1):B,A.search("DefaultEndpointsProtocol=")!==-1&&A.search("AccountKey=")!==-1){let I="",E="",C=Buffer.from("accountKey","base64"),D="";if(E=c7(A,"AccountName"),C=Buffer.from(c7(A,"AccountKey"),"base64"),!B){I=c7(A,"DefaultEndpointsProtocol") Line truncated
`)+`
`+this.getCanonicalizedHeadersString(A)+this.getCanonicalizedResourceString(A),B=this.factory.computeHMACSHA256(Q);return A.headers.set(T6.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${B}`),A}getHeaderValueToSign(A,Q){let B=A.headers.get(Q);if(!B)return"";if(Q===T6.HeaderConstants.CONTENT_LENGTH&&B==="0")return"";return B}getCanonicalizedHeadersString(A){let Q=A.headers.headersArray().filter((I)=>{return I.name.toLowerCase().startsWith(T6.HeaderConstants.PREFIX_FOR_STORAGE)});Q.sort((I,E)=>{return(0,ysA.compareHeader)(I.name.toLowerCase(),E.name.toLowerCase())}),Q=Q.filter((I,E,C)=>{if(E>0&&I.name.toLowerCase()===C[E-1].name.toLowerCase())return!1;return!0});let B="";return Q.forEach((I)=>{B+=`${I.name.toLowerCase().trimRight()}:${I.value.trimLeft()}
`}),B}getCanonicalizedResourceString(A){let Q=(0,w4A.getURLPath)(A.url)||"/",B="";B+=`/${this.factory.accountName}${Q}`;let I=(0,w4A.getURLQueries)(A.url),E={};if(I){let C=[];for(let D in I)if(Object.prototype.hasOwnProperty.call(I,D)){let Y=D.toLowerCase();E[Y]=I[D],C.push(Y)}C.sort();for(let D of C)B+=`
${D}:${decodeURIComponent(E[D])}`}return B}}HH.StorageSharedKeyCredentialPolicy=z4A});var zH=V((wH)=>{Object.defineProperty(wH,"__esModule",{value:!0});wH.Credential=void 0;class L4A{create(A,Q){throw Error("Method should be implemented in children classes.")}}wH.Credential=L4A});var a7=V((LH)=>{Object.defineProperty(LH,"__esModule",{value:!0});LH.StorageSharedKeyCredential=void 0;var fsA=require("node:crypto"),bsA=Fv(),dsA=zH();class M4A extends dsA.Credential{accountName;accountKey;constructor(A,Q){super();this.accountName=A,this.accountKey=Buffer.from(Q,"base64")}create(A,Q){return new bsA.StorageSharedKeyCredentialPolicy(A,Q,this)}computeHMACSHA256(A){return(0,fsA.createHmac)("sha256",this.accountKey).update(A,"utf8").digest("base64")}}LH.StorageSharedKeyCredential=M4A});var Gv=V((MH)=>{Object.defineProperty(MH,"__esModule",{value:!0});MH.AnonymousCredentialPolicy=void 0;var msA=$H();class R4A extends msA.CredentialPolicy{constructor(A,Q){super(A,Q)}}MH.AnonymousCredentialPolicy=R4A});var o7=V((RH)=>{Object.defineProperty(RH,"__esModule",{value:!0});RH.AnonymousCredential=void 0;var usA=Gv(),psA=zH();class q4A extends psA.Credential{create(A,Q){return new usA.AnonymousCredentialPolicy(A,Q)}}RH.AnonymousCredential=q4A});var O4A=V((qH)=>{Object.defineProperty(qH,"__esModule",{value:!0});qH.BuffersStream=void 0;var csA=require("node:stream");class T4A extends csA.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(A,Q,B){super(B);this.buffers=A,this.byteLength=Q,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let I=0;for(let E of this.buffers)I+=E.byteLength;if(I<this.byteLength)throw Error("Data size shouldn't be larger than the total length of buffers.")}_read(A){if(this.pushedBytesLength>=this.byteLength)this.push(null);if(!A)A=this.readableHighWaterMark;let Q=[],B=0;while(B<A&&this.pushedBytesLength<this.byteLength){let I=this.byteLength-this.pushedBytesLength,E=this.buffers[this.bufferIndex].byteLength-this.byteOffsetInCurrentBuffer,C=Math.min(E,I);if(C>A-B){let D=this.byteOffsetInCurrentBuffer+A-B;Q.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,D)),this.pushedBytesLength+=A-B,this.byteOffsetInCurrentBuffer=D,B=A;break}else{let D=this.byteOffsetInCurrentBuffer+C;if(Q.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,D)),C===E)this.byteOffsetInCurrentBuffer=0,this.bufferIndex++;else this.byteOffsetInCurrentBuffer=D;this.pushedBytesLength+=C,B+=C}}if(Q.length>1)this.push(Buffer.concat(Q));else if(Q.length===1)this.push(Q[0])}}qH.BuffersStream=T4A});var P4A=V((OH)=>{Object.defineProperty(OH,"__esModule",{value:!0});OH.PooledBuffer=void 0;var lsA=H2(),isA=O4A(),nsA=lsA.__importDefault(require("node:buffer")),TH=nsA.default.constants.MAX_LENGTH;class j4A{buffers=[];capacity;_size;get size(){return this._size}constructor(A,Q,B){this.capacity=A,this._size=0;let I=Math.ceil(A/TH);for(let E=0;E<I;E++){let C=E===I-1?A%TH:TH;if(C===0)C=TH;this.buffers.push(Buffer.allocUnsafe(C))}if(Q)this.fill(Q,B)}fill(A,Q){this._size=Math.min(this.capacity,Q);let B=0,I=0,E=0,C=0,D=0;while(D<this._size){let Y=A[B],J=this.buffers[I],G=Y.copy(J,E,C);if(D+=G,C+=G,E+=G,C===Y.length)B++,C=0;if(E===J.length)I++,E=0}if(A.splice(0,B),A.length>0)A[0]=A[0].slice(C)}getReadableStream(){return new isA.BuffersStream(this.buffers,this.size)}}OH.PooledBuffer=j4A});var _4A=V((jH)=>{Object.defineProperty(jH,"__esModule",{value:!0});jH.BufferScheduler=void 0;var asA=require("events"),osA=P4A();class g4A{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new asA.EventEmitter;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(A,Q,B,I,E,C){if(Q<=0)throw RangeError(`bufferSize must be larger than 0, current is ${Q}`);if(B<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${B}`);if(E<=0)throw RangeError(`concurrency must be larger than 0, current is ${E}`);this.bufferSize=Q,this.maxBuffers=B,this.readable=A,this.outgoingHandler=I,this.concurrency=E,this.encoding=C}async do(){return new Promise((A,Q)=>{this.readable.on("data",(B)=>{if(B=typeof B==="string"?Buffer.from(B,this.encoding):B,this.appendUnresolvedData(B),!this.resolveData())this.readable.pause()}),this.readable.on("error",(B)=>{this.emitter.emit("error",B)}),this.readable.on("end",()=>{this.isStreamEnd=!0,this.emitter.emit("checkEnd")}),this.emitter.on("error",(B)=>{this.isError=!0,this.readable.pause(),Q(B)}),this.emitter.on("checkEnd",()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLength<this.bufferSize){let B=this.shiftBufferFromUnresolvedDataArray();this.outgoingHandler(()=>B.getReadableStream(),B.size,this.offset).then(A).catch(Q)}else if(this.unresolvedLength>=this.bufferSize)return;else A()})})}append Line truncated
`)+`
`+this.getCanonicalizedHeadersString(A)+this.getCanonicalizedResourceString(A),B=this.factory.computeHMACSHA256(Q);return A.headers.set(O6.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${B}`),A}getHeaderValueToSign(A,Q){let B=A.headers.get(Q);if(!B)return"";if(Q===O6.HeaderConstants.CONTENT_LENGTH&&B==="0")return"";return B}getCanonicalizedHeadersString(A){let Q=A.headers.headersArray().filter((I)=>{return I.name.toLowerCase().startsWith(O6.HeaderConstants.PREFIX_FOR_STORAGE)});Q.sort((I,E)=>{return(0,SrA.compareHeader)(I.name.toLowerCase(),E.name.toLowerCase())}),Q=Q.filter((I,E,C)=>{if(E>0&&I.name.toLowerCase()===C[E-1].name.toLowerCase())return!1;return!0});let B="";return Q.forEach((I)=>{B+=`${I.name.toLowerCase().trimRight()}:${I.value.trimLeft()}
`}),B}getCanonicalizedResourceString(A){let Q=(0,r4A.getURLPath)(A.url)||"/",B="";B+=`/${this.factory.accountName}${Q}`;let I=(0,r4A.getURLQueries)(A.url),E={};if(I){let C=[];for(let D in I)if(Object.prototype.hasOwnProperty.call(I,D)){let Y=D.toLowerCase();E[Y]=I[D],C.push(Y)}C.sort();for(let D of C)B+=`
${D}:${decodeURIComponent(E[D])}`}return B}}yH.StorageSharedKeyCredentialPolicy=t4A});var A6A=V((fH)=>{Object.defineProperty(fH,"__esModule",{value:!0});fH.StorageSharedKeyCredential=void 0;var xrA=require("node:crypto"),krA=$v(),hrA=kH();class e4A extends hrA.Credential{accountName;accountKey;constructor(A,Q){super();this.accountName=A,this.accountKey=Buffer.from(Q,"base64")}create(A,Q){return new krA.StorageSharedKeyCredentialPolicy(A,Q,this)}computeHMACSHA256(A){return(0,xrA.createHmac)("sha256",this.accountKey).update(A,"utf8").digest("base64")}}fH.StorageSharedKeyCredential=e4A});var B6A=V((bH)=>{Object.defineProperty(bH,"__esModule",{value:!0});bH.AbortError=void 0;class Q6A extends Error{constructor(A){super(A);this.name="AbortError"}}bH.AbortError=Q6A});var Hv=V((dH)=>{Object.defineProperty(dH,"__esModule",{value:!0});dH.AbortError=void 0;var yrA=B6A();Object.defineProperty(dH,"AbortError",{enumerable:!0,get:function(){return yrA.AbortError}})});var wv=V((mH)=>{Object.defineProperty(mH,"__esModule",{value:!0});mH.logger=void 0;var frA=xI();mH.logger=(0,frA.createClientLogger)("storage-common")});var pH=V((uH)=>{Object.defineProperty(uH,"__esModule",{value:!0});uH.StorageRetryPolicyType=void 0;var I6A;(function(A){A[A.EXPONENTIAL=0]="EXPONENTIAL",A[A.FIXED=1]="FIXED"})(I6A||(uH.StorageRetryPolicyType=I6A={}))});var Rv=V((aZ)=>{Object.defineProperty(aZ,"__esModule",{value:!0});aZ.StorageRetryPolicy=void 0;aZ.NewRetryPolicyFactory=mrA;var brA=Hv(),drA=nZ(),E6A=k3(),zv=bI(),r7=wv(),Lv=pH();function mrA(A){return{create:(Q,B)=>{return new Mv(Q,B,A)}}}var t7={maxRetryDelayInMs:120000,maxTries:4,retryDelayInMs:4000,retryPolicyType:Lv.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},urA=new brA.AbortError("The operation was aborted.");class Mv extends drA.BaseRequestPolicy{retryOptions;constructor(A,Q,B=t7){super(A,Q);this.retryOptions={retryPolicyType:B.retryPolicyType?B.retryPolicyType:t7.retryPolicyType,maxTries:B.maxTries&&B.maxTries>=1?Math.floor(B.maxTries):t7.maxTries,tryTimeoutInMs:B.tryTimeoutInMs&&B.tryTimeoutInMs>=0?B.tryTimeoutInMs:t7.tryTimeoutInMs,retryDelayInMs:B.retryDelayInMs&&B.retryDelayInMs>=0?Math.min(B.retryDelayInMs,B.maxRetryDelayInMs?B.maxRetryDelayInMs:t7.maxRetryDelayInMs):t7.retryDelayInMs,maxRetryDelayInMs:B.maxRetryDelayInMs&&B.maxRetryDelayInMs>=0?B.maxRetryDelayInMs:t7.maxRetryDelayInMs,secondaryHost:B.secondaryHost?B.secondaryHost:t7.secondaryHost}}async sendRequest(A){return this.attemptSendRequest(A,!1,1)}async attemptSendRequest(A,Q,B){let I=A.clone(),E=Q||!this.retryOptions.secondaryHost||!(A.method==="GET"||A.method==="HEAD"||A.method==="OPTIONS")||B%2===1;if(!E)I.url=(0,zv.setURLHost)(I.url,this.retryOptions.secondaryHost);if(this.retryOptions.tryTimeoutInMs)I.url=(0,zv.setURLParameter)(I.url,E6A.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1000).toString());let C;try{if(r7.logger.info(`RetryPolicy: =====> Try=${B} ${E?"Primary":"Secondary"}`),C=await this._nextPolicy.sendRequest(I),!this.shouldRetry(E,B,C))return C;Q=Q||!E&&C.status===404}catch(D){if(r7.logger.error(`RetryPolicy: Caught error, message: ${D.message}, code: ${D.code}`),!this.shouldRetry(E,B,C,D))throw D}return await this.delay(E,B,A.abortSignal),this.attemptSendRequest(A,Q,++B)}shouldRetry(A,Q,B,I){if(Q>=this.retryOptions.maxTries)return r7.logger.info(`RetryPolicy: Attempt(s) ${Q} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let E=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(I){for(let C of E)if(I.name.toUpperCase().includes(C)||I.message.toUpperCase().includes(C)||I.code&&I.code.toString().toUpperCase()===C)return r7.logger.info(`RetryPolicy: Network error ${C} found, will retry.`),!0}if(B||I){let C=B?B.status:I?I.statusCode:0;if(!A&&C===404)return r7.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(C===503||C===500)return r7.logger.info(`RetryPolicy: Will retry for status code ${C}.`),!0}if(B){if(B?.status>=400){let C=B.headers.get(E6A.HeaderConstants.X_MS_CopySourceErrorCode);if(C!==void 0)switch(C){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}}if(I?.code==="PARSE_ERROR"&&I?.message.startsWith('Error "Error: Unclosed root tag'))return r7.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0;return!1}async delay(A,Q,B){let I=0;if(A)switch(this.retryOptions.retryPolicyType){case Lv.StorageRetryPolicyType.EXPONENTIAL:I=Math.min((Math.pow(2,Q-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Lv.StorageRetryPolicyType.FIXED:I=this.retryOptions.retryDelayInMs;break}else I=Math.random()*1000;return r7.logger.info(`RetryPolicy: Delay for ${I}ms`),(0,zv.delay)(I,B,urA)}}aZ.StorageRetryPolicy=Mv});var cH=V((e7)=>{Object.defineProperty(e7,"__esModule",{value:!0});e7.StorageRetryPolicyFactory=e7.StorageRetryPolicy=e7.StorageRetryP Line truncated
`)+`
`+I(C)+E(C),Y=(0,AtA.createHmac)("sha256",A.accountKey).update(D,"utf8").digest("base64");C.headers.set(j6.HeaderConstants.AUTHORIZATION,`SharedKey ${A.accountName}:${Y}`)}function B(C,D){let Y=C.headers.get(D);if(!Y)return"";if(D===j6.HeaderConstants.CONTENT_LENGTH&&Y==="0")return"";return Y}function I(C){let D=[];for(let[J,G]of C.headers)if(J.toLowerCase().startsWith(j6.HeaderConstants.PREFIX_FOR_STORAGE))D.push({name:J,value:G});D.sort((J,G)=>{return(0,QtA.compareHeader)(J.name.toLowerCase(),G.name.toLowerCase())}),D=D.filter((J,G,F)=>{if(G>0&&J.name.toLowerCase()===F[G-1].name.toLowerCase())return!1;return!0});let Y="";return D.forEach((J)=>{Y+=`${J.name.toLowerCase().trimRight()}:${J.value.trimLeft()}
`}),Y}function E(C){let D=(0,N6A.getURLPath)(C.url)||"/",Y="";Y+=`/${A.accountName}${D}`;let J=(0,N6A.getURLQueries)(C.url),G={};if(J){let F=[];for(let Z in J)if(Object.prototype.hasOwnProperty.call(J,Z)){let N=Z.toLowerCase();G[N]=J[Z],F.push(N)}F.sort();for(let Z of F)Y+=`
${Z}:${decodeURIComponent(G[Z])}`}return Y}return{name:KY.storageSharedKeyCredentialPolicyName,async sendRequest(C,D){return Q(C),D(C)}}}});var U6A=V(($Y)=>{Object.defineProperty($Y,"__esModule",{value:!0});$Y.storageRequestFailureDetailsParserPolicyName=void 0;$Y.storageRequestFailureDetailsParserPolicy=ItA;$Y.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function ItA(){return{name:$Y.storageRequestFailureDetailsParserPolicyName,async sendRequest(A,Q){try{return await Q(A)}catch(B){if(typeof B==="object"&&B!==null&&B.response&&B.response.parsedBody){if(B.response.parsedBody.code==="InvalidHeaderValue"&&B.response.parsedBody.HeaderName==="x-ms-version")B.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.
`}throw B}}}}});var jv=V((w2)=>{Object.defineProperty(w2,"__esModule",{value:!0});w2.BaseRequestPolicy=w2.getCachedDefaultHttpClient=void 0;var S4=H2();S4.__exportStar(_4A(),w2);var EtA=v4A();Object.defineProperty(w2,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return EtA.getCachedDefaultHttpClient}});S4.__exportStar(l4A(),w2);S4.__exportStar(s4A(),w2);S4.__exportStar(kH(),w2);S4.__exportStar(A6A(),w2);S4.__exportStar(cH(),w2);var CtA=nZ();Object.defineProperty(w2,"BaseRequestPolicy",{enumerable:!0,get:function(){return CtA.BaseRequestPolicy}});S4.__exportStar(Wv(),w2);S4.__exportStar(vH(),w2);S4.__exportStar(Uv(),w2);S4.__exportStar(Y6A(),w2);S4.__exportStar(J6A(),w2);S4.__exportStar(pH(),w2);S4.__exportStar(Rv(),w2);S4.__exportStar(Z6A(),w2);S4.__exportStar($v(),w2);S4.__exportStar(X6A(),w2);S4.__exportStar(cH(),w2);S4.__exportStar(U6A(),w2)});var W6A=V((HY)=>{Object.defineProperty(HY,"__esModule",{value:!0});HY.storageBrowserPolicyName=void 0;HY.storageBrowserPolicy=JtA;var DtA=a0(),Pv=D4(),YtA=v4();HY.storageBrowserPolicyName="storageBrowserPolicy";function JtA(){return{name:HY.storageBrowserPolicyName,async sendRequest(A,Q){if(DtA.isNodeLike)return Q(A);if(A.method==="GET"||A.method==="HEAD")A.url=(0,YtA.setURLParameter)(A.url,Pv.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString());return A.headers.delete(Pv.HeaderConstants.COOKIE),A.headers.delete(Pv.HeaderConstants.CONTENT_LENGTH),Q(A)}}}});var K6A=V((zY)=>{Object.defineProperty(zY,"__esModule",{value:!0});zY.storageRetryPolicyName=void 0;zY.storageRetryPolicy=UtA;var FtA=pZ(),V6A=C4(),GtA=a0(),_v=iZ(),ZtA=D4(),gv=v4(),y3=FY();zY.storageRetryPolicyName="storageRetryPolicy";var wY={maxRetryDelayInMs:120000,maxTries:4,retryDelayInMs:4000,retryPolicyType:_v.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},NtA=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],XtA=new FtA.AbortError("The operation was aborted.");function UtA(A={}){let Q=A.retryPolicyType??wY.retryPolicyType,B=A.maxTries??wY.maxTries,I=A.retryDelayInMs??wY.retryDelayInMs,E=A.maxRetryDelayInMs??wY.maxRetryDelayInMs,C=A.secondaryHost??wY.secondaryHost,D=A.tryTimeoutInMs??wY.tryTimeoutInMs;function Y({isPrimaryRetry:G,attempt:F,response:Z,error:N}){if(F>=B)return y3.logger.info(`RetryPolicy: Attempt(s) ${F} >= maxTries ${B}, no further try.`),!1;if(N){for(let X of NtA)if(N.name.toUpperCase().includes(X)||N.message.toUpperCase().includes(X)||N.code&&N.code.toString().toUpperCase()===X)return y3.logger.info(`RetryPolicy: Network error ${X} found, will retry.`),!0;if(N?.code==="PARSE_ERROR"&&N?.message.startsWith('Error "Error: Unclosed root tag'))return y3.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(Z||N){let X=Z?.status??N?.statusCode??0;if(!G&&X===404)return y3.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(X===503||X===500)return y3.logger.info(`RetryPolicy: Will retry for status code ${X}.`),!0}return!1}function J(G,F){let Z=0;if(G)switch(Q){case _v.StorageRetryPolicyType.EXPONENTIAL:Z=Math.min((Math.pow(2,F-1)-1)*I,E);break;case _v.StorageRetryPolicyType.FIXED:Z=I;break}else Z=Math.random()*1000;return y3.logger.info(`RetryPolicy: Delay for ${Z}ms`),Z}return{name:zY.storageRetryPolicyName,async sendRequest(G,F){if(D)G.url=(0,gv.setURLParameter)(G.url,ZtA.URLConstants.Parameters.TIMEOUT,String(Math.floor(D/1000)));let Z=G.url,N=C?(0,gv.setURLHost)(G.url,C):void 0,X=!1,U=1,W=!0,$,H;while(W){let L=X||!N||!["GET","HEAD","OPTIONS"].includes(G.method)||U%2===1;G.url=L?Z:N,$=void 0,H=void 0;try{y3.logger.info(`RetryPolicy: =====> Try=${U} ${L?"Primary":"Secondary"}`),$=await F(G),X=X||!L&&$.status===404}catch(w){if((0,V6A.isRestError)(w))y3.logger.error(`RetryPolicy: Caught error, message: ${w.message}, code: ${w.code}`),H=w;else throw y3.logger.error(`RetryPolicy: Caught error, message: ${(0,GtA.getErrorMessage)(w)}`),w}if(W=Y({isPrimaryRetry:L,attempt:U,response:$,error:H}),W)await(0,gv.delay)(J(L,U),G.abortSignal,XtA);U++}if($)return $;throw H??new V6A.RestError("RetryPolicy failed without known error.")}}}});var vv=V((LY)=>{Object.defineProperty(LY,"__esModule",{value:!0});LY.storageSharedKeyCredentialPolicyName=void 0;LY.storageSharedKeyCredentialPolicy=KtA;var WtA=require("node:crypto"),P6=D4(),$6A=v4(),VtA=Jv();LY.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function KtA(A){function Q(C){if(C.headers.set(P6.HeaderConstants.X_MS_DATE,new Date().toUTCString()),C.body&&(typeof C.body==="string"||Buffer.isBuffer(C.body))&&C.body.length>0)C.headers.set(P6.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(C.body));let D=[C.method.toUpperCase(),B(C,P6.HeaderConstants.CONTENT_LANGUAGE),B(C,P6.HeaderConstants.CONTENT_ENCODING),B(C,P6.HeaderConstants.CONTENT_LENGTH),B(C,P6.HeaderConstants.CONTENT_MD5),B(C,P6.HeaderConstants.CONTENT_TYPE),B(C,P6.HeaderConsta Line truncated
`)+`
`+I(C)+E(C),Y=(0,WtA.createHmac)("sha256",A.accountKey).update(D,"utf8").digest("base64");C.headers.set(P6.HeaderConstants.AUTHORIZATION,`SharedKey ${A.accountName}:${Y}`)}function B(C,D){let Y=C.headers.get(D);if(!Y)return"";if(D===P6.HeaderConstants.CONTENT_LENGTH&&Y==="0")return"";return Y}function I(C){let D=[];for(let[J,G]of C.headers)if(J.toLowerCase().startsWith(P6.HeaderConstants.PREFIX_FOR_STORAGE))D.push({name:J,value:G});D.sort((J,G)=>{return(0,VtA.compareHeader)(J.name.toLowerCase(),G.name.toLowerCase())}),D=D.filter((J,G,F)=>{if(G>0&&J.name.toLowerCase()===F[G-1].name.toLowerCase())return!1;return!0});let Y="";return D.forEach((J)=>{Y+=`${J.name.toLowerCase().trimRight()}:${J.value.trimLeft()}
`}),Y}function E(C){let D=(0,$6A.getURLPath)(C.url)||"/",Y="";Y+=`/${A.accountName}${D}`;let J=(0,$6A.getURLQueries)(C.url),G={};if(J){let F=[];for(let Z in J)if(Object.prototype.hasOwnProperty.call(J,Z)){let N=Z.toLowerCase();G[N]=J[Z],F.push(N)}F.sort();for(let Z of F)Y+=`
${Z}:${decodeURIComponent(G[Z])}`}return Y}return{name:LY.storageSharedKeyCredentialPolicyName,async sendRequest(C,D){return Q(C),D(C)}}}});var w6A=V((lH)=>{Object.defineProperty(lH,"__esModule",{value:!0});lH.StorageBrowserPolicy=void 0;var $tA=cZ(),HtA=a0(),Sv=D4(),wtA=v4();class H6A extends $tA.BaseRequestPolicy{constructor(A,Q){super(A,Q)}async sendRequest(A){if(HtA.isNodeLike)return this._nextPolicy.sendRequest(A);if(A.method.toUpperCase()==="GET"||A.method.toUpperCase()==="HEAD")A.url=(0,wtA.setURLParameter)(A.url,Sv.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString());return A.headers.remove(Sv.HeaderConstants.COOKIE),A.headers.remove(Sv.HeaderConstants.CONTENT_LENGTH),this._nextPolicy.sendRequest(A)}}lH.StorageBrowserPolicy=H6A});var xv=V((MY)=>{Object.defineProperty(MY,"__esModule",{value:!0});MY.StorageBrowserPolicyFactory=MY.StorageBrowserPolicy=void 0;var z6A=w6A();Object.defineProperty(MY,"StorageBrowserPolicy",{enumerable:!0,get:function(){return z6A.StorageBrowserPolicy}});class L6A{create(A,Q){return new z6A.StorageBrowserPolicy(A,Q)}}MY.StorageBrowserPolicyFactory=L6A});var M6A=V((RY)=>{Object.defineProperty(RY,"__esModule",{value:!0});RY.storageCorrectContentLengthPolicyName=void 0;RY.storageCorrectContentLengthPolicy=LtA;var ztA=D4();RY.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function LtA(){function A(Q){if(Q.body&&(typeof Q.body==="string"||Buffer.isBuffer(Q.body))&&Q.body.length>0)Q.headers.set(ztA.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(Q.body))}return{name:RY.storageCorrectContentLengthPolicyName,async sendRequest(Q,B){return A(Q),B(Q)}}}});var AB=V((PQ)=>{Object.defineProperty(PQ,"__esModule",{value:!0});PQ.Pipeline=PQ.StorageOAuthScopes=void 0;PQ.isPipelineLike=_tA;PQ.newPipeline=vtA;PQ.getCoreClientOptions=xtA;PQ.getCredentialFromPipeline=P6A;var O6A=FH(),R6A=C4(),q6A=OQ(),T6A=Bv(),kv=IY(),MtA=FY(),RtA=iZ(),j6A=a7(),hv=o7(),oZ=D4();Object.defineProperty(PQ,"StorageOAuthScopes",{enumerable:!0,get:function(){return oZ.StorageOAuthScopes}});var qtA=jv(),TtA=W6A(),OtA=K6A(),jtA=vv(),PtA=xv(),gtA=M6A();function _tA(A){if(!A||typeof A!=="object")return!1;let Q=A;return Array.isArray(Q.factories)&&typeof Q.options==="object"&&typeof Q.toServiceClientOptions==="function"}class yv{factories;options;constructor(A,Q={}){this.factories=A,this.options=Q}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}PQ.Pipeline=yv;function vtA(A,Q={}){if(!A)A=new hv.AnonymousCredential;let B=new yv([],Q);return B._credential=A,B}function StA(A){let Q=[ktA,g6A,htA,ytA,ftA,btA,mtA];if(A.factories.length){let B=A.factories.filter((I)=>{return!Q.some((E)=>E(I))});if(B.length){let I=B.some((E)=>dtA(E));return{wrappedPolicies:(0,O6A.createRequestPolicyFactoryPolicy)(B),afterRetry:I}}}return}function xtA(A){let{httpClient:Q,...B}=A.options,I=A._coreHttpClient;if(!I)I=Q?(0,O6A.convertHttpClient)(Q):(0,qtA.getCachedDefaultHttpClient)(),A._coreHttpClient=I;let E=A._corePipeline;if(!E){let C=`azsdk-js-azure-storage-blob/${oZ.SDK_VERSION}`,D=B.userAgentOptions&&B.userAgentOptions.userAgentPrefix?`${B.userAgentOptions.userAgentPrefix} ${C}`:`${C}`;E=(0,q6A.createClientPipeline)({...B,loggingOptions:{additionalAllowedHeaderNames:oZ.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:oZ.StorageBlobLoggingAllowedQueryParameters,logger:MtA.logger.info},userAgentOptions:{userAgentPrefix:D},serializationOptions:{stringifyXML:T6A.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:T6A.parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}}),E.removePolicy({phase:"Retry"}),E.removePolicy({name:R6A.decompressResponsePolicyName}),E.addPolicy((0,gtA.storageCorrectContentLengthPolicy)()),E.addPolicy((0,OtA.storageRetryPolicy)(B.retryOptions),{phase:"Retry"}),E.addPolicy((0,TtA.storageBrowserPolicy)());let Y=StA(A);if(Y)E.addPolicy(Y.wrappedPolicies,Y.afterRetry?{afterPhase:"Retry"}:void 0);let J=P6A(A);if((0,kv.isTokenCredential)(J))E.addPolicy((0,R6A.bearerTokenAuthenticationPolicy)({credential:J,scopes:B.audience??oZ.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:q6A.authorizeRequestOnTenantChallenge}}),{phase:"Sign"});else if(J instanceof j6A.StorageSharedKeyCredential)E.addPolicy((0,jtA.storageSharedKeyCredentialPolicy)({accountName:J.accountName,accountKey:J.accountKey}),{phase:"Sign"});A._corePipeline=E}return{...B,allowInsecureConnection:!0,httpClient:I,pipeline:E}}function P6A(A){if(A._credential)return A._credential;let Q=new hv.AnonymousCredential;for(let B of A.factories)if((0,kv.isTokenCredential)(B.credential))Q=B.credential;else if(g6A(B))return B;return Q}function g6A(A){if(A instanceof j6A.StorageSharedKeyCredential)return!0;return A.constructor.name==="StorageSharedKeyCredential"}function ktA(A){if(A instanceof hv.AnonymousCredential)return!0;return A.constructor.name==="AnonymousCredential"}function htA(A){return(0,kv.is Line truncated
`),C=Q.computeHMACSHA256(E);return{sasQueryParameters:new lI.SASQueryParameters(A.version,C,I,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType),stringToSign:E}}function MA1(A,Q){if(A=nI(A),!A.identifier&&!(A.permissions&&A.expiresOn))throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let B="c",I=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",I=A.versionId}let E;if(A.permissions)if(A.blobName)E=uI.BlobSASPermissions.parse(A.permissions.toString()).toString();else E=pI.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[E?E:"",A.startsOn?(0,y2.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,y2.truncatedISO8061Date)(A.expiresOn,!1):"",iI(Q.accountName,A.containerName,A.blobName),A.identifier,A.ipRange?(0,cI.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,I,A.cacheControl?A.cacheControl:"",A.contentDisposition?A.contentDisposition:"",A.contentEncoding?A.contentEncoding:"",A.contentLanguage?A.contentLanguage:"",A.contentType?A.contentType:""].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new lI.SASQueryParameters(A.version,D,E,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType),stringToSign:C}}function RA1(A,Q){if(A=nI(A),!A.identifier&&!(A.permissions&&A.expiresOn))throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let B="c",I=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",I=A.versionId}let E;if(A.permissions)if(A.blobName)E=uI.BlobSASPermissions.parse(A.permissions.toString()).toString();else E=pI.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[E?E:"",A.startsOn?(0,y2.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,y2.truncatedISO8061Date)(A.expiresOn,!1):"",iI(Q.accountName,A.containerName,A.blobName),A.identifier,A.ipRange?(0,cI.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,I,A.encryptionScope,A.cacheControl?A.cacheControl:"",A.contentDisposition?A.contentDisposition:"",A.contentEncoding?A.contentEncoding:"",A.contentLanguage?A.contentLanguage:"",A.contentType?A.contentType:""].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new lI.SASQueryParameters(A.version,D,E,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,void 0,void 0,void 0,A.encryptionScope),stringToSign:C}}function qA1(A,Q){if(A=nI(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",I=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",I=A.versionId}let E;if(A.permissions)if(A.blobName)E=uI.BlobSASPermissions.parse(A.permissions.toString()).toString();else E=pI.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[E?E:"",A.startsOn?(0,y2.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,y2.truncatedISO8061Date)(A.expiresOn,!1):"",iI(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,y2.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,y2.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.ipRange?(0,cI.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,I,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new lI.SASQueryParameters(A.version,D,E,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey),stringToSign:C}}function TA1(A,Q){if(A=nI(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",I=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",I=A.versionId}let E;if(A.permissions)if(A.blobName)E=uI.BlobSASPermissions.parse(A.permissions.toString()).toString();else E=pI.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[E?E:"",A.startsOn?(0,y2.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,y2.truncatedISO8061Date)(A.expiresOn,!1):"",iI(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,y2.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,y2.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,A.ipRange?(0,cI.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,I,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new lI.SASQueryParameters(A.version,D,E,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId),stringToSign:C}}function OA1(A,Q){if(A=nI(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",I=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",I=A.versionId}let E;if(A.permissions)if(A.blobName)E=uI.BlobSASPermissions.parse(A.permissions.toString()).toString();else E=pI.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[E?E:"",A.startsOn?(0,y2.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,y2.truncatedISO8061Date)(A.expiresOn,!1):"",iI(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,y2.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,y2.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,A.ipRange?(0,cI.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,I,A.encryptionScope,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new lI.SASQueryParameters(A.version,D,E,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId,A.encryptionScope),stringToSign:C}}function jA1(A,Q){if(A=nI(A),!A.permissions||!A.expiresOn)throw RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let B="c",I=A.snapshotTime;if(A.blobName){if(B="b",A.snapshotTime)B="bs";else if(A.versionId)B="bv",I=A.versionId}let E;if(A.permissions)if(A.blobName)E=uI.BlobSASPermissions.parse(A.permissions.toString()).toString();else E=pI.ContainerSASPermissions.parse(A.permissions.toString()).toString();let C=[E?E:"",A.startsOn?(0,y2.truncatedISO8061Date)(A.startsOn,!1):"",A.expiresOn?(0,y2.truncatedISO8061Date)(A.expiresOn,!1):"",iI(Q.accountName,A.containerName,A.blobName),Q.userDelegationKey.signedObjectId,Q.userDelegationKey.signedTenantId,Q.userDelegationKey.signedStartsOn?(0,y2.truncatedISO8061Date)(Q.userDelegationKey.signedStartsOn,!1):"",Q.userDelegationKey.signedExpiresOn?(0,y2.truncatedISO8061Date)(Q.userDelegationKey.signedExpiresOn,!1):"",Q.userDelegationKey.signedService,Q.userDelegationKey.signedVersion,A.preauthorizedAgentObjectId,void 0,A.correlationId,void 0,void 0,A.ipRange?(0,cI.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",A.version,B,I,A.encryptionScope,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType].join(`
`),D=Q.computeHMACSHA256(C);return{sasQueryParameters:new lI.SASQueryParameters(A.version,D,E,void 0,void 0,A.protocol,A.startsOn,A.expiresOn,A.ipRange,A.identifier,B,A.cacheControl,A.contentDisposition,A.contentEncoding,A.contentLanguage,A.contentType,Q.userDelegationKey,A.preauthorizedAgentObjectId,A.correlationId,A.encryptionScope),stringToSign:C}}function iI(A,Q,B){let I=[`/blob/${A}/${Q}`];if(B)I.push(`/${B}`);return I.join("")}function nI(A){let Q=A.version?A.version:H9A.SERVICE_VERSION;if(A.snapshotTime&&Q<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(A.blobName===void 0&&A.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(A.versionId&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(A.blobName===void 0&&A.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(A.permissions&&A.permissions.setImmutabilityPolicy&&Q<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(A.permissions&&A.permissions.deleteVersion&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(A.permissions&&A.permissions.permanentDelete&&Q<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(A.permissions&&A.permissions.tag&&Q<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(Q<"2020-02-10"&&A.permissions&&(A.permissions.move||A.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(Q<"2021-04-10"&&A.permissions&&A.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(Q<"2020-02-10"&&(A.preauthorizedAgentObjectId||A.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(A.encryptionScope&&Q<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return A.version=Q,A}});var Kw=V((Vw)=>{Object.defineProperty(Vw,"__esModule",{value:!0});Vw.BlobLeaseClient=void 0;var PA1=a0(),_Q=D4(),rZ=mI(),Ww=v4();class z9A{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(A,Q){let B=A.storageClientContext;if(this._url=A.url,A.name===void 0)this._isContainer=!0,this._containerOrBlobOperation=B.container;else this._isContainer=!1,this._containerOrBlobOperation=B.blob;if(!Q)Q=(0,PA1.randomUUID)();this._leaseId=Q}async acquireLease(A,Q={}){if(this._isContainer&&(Q.conditions?.ifMatch&&Q.conditions?.ifMatch!==_Q.ETagNone||Q.conditions?.ifNoneMatch&&Q.conditions?.ifNoneMatch!==_Q.ETagNone||Q.conditions?.tagConditions))throw 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 rZ.tracingClient.withSpan("BlobLeaseClient-acquireLease",Q,async(B)=>{return(0,Ww.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:Q.abortSignal,duration:A,modifiedAccessConditions:{...Q.conditions,ifTags:Q.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:B.tracingOptions}))})}async changeLease(A,Q={}){if(this._isContainer&&(Q.conditions?.ifMatch&&Q.conditions?.ifMatch!==_Q.ETagNone||Q.conditions?.ifNoneMatch&&Q.conditions?.ifNoneMatch!==_Q.ETagNone||Q.conditions?.tagConditions))throw 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 rZ.tracingClient.withSpan("BlobLeaseClient-changeLease",Q,async(B)=>{let I=(0,Ww.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,A,{abortSignal:Q.abortSignal,modifiedAccessConditions:{...Q.conditions,ifTags:Q.conditions?.tagConditions},tracingOptions:B.tracingOptions}));return this._leaseId=A,I})}async releaseLease(A={}){if(this._isContainer&&(A.conditions?.ifMatch&&A.conditions?.ifMatch!==_Q.ETagNone||A.conditions?.ifNoneMatch&&A.conditions?.ifNoneMatch!==_Q.ETagNone||A.conditions?.tagConditions))throw 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 rZ.tracingClient.withSpan("BlobLeaseClient-releaseLease",A,async(Q)=>{return(0,Ww.assertResponse)(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:A.abortSignal,modifiedAccessConditions:{...A.conditions,ifTags:A.conditions?.tagConditions},tracingOptions:Q.tracingOptions}))})}async renewLease(A={}){if(this._isContainer&&(A.conditions?.ifMatch&&A.conditions?.ifMatch!==_Q.ETagNone||A.conditions?.ifNoneMatch&&A.conditions?.ifNoneMatch!==_Q.ETagN Line truncated
Polling from: ${B.config.operationLocation}
Operation status: ${F}
Polling status: ${t9A.terminalStates.includes(F)?"Stopped":"Running"}`),F==="succeeded"){let Z=D(G,B);if(Z!==void 0)return{response:await Q(Z).catch(r9A({state:B,stateProxy:I,isOperationError:Y})),status:F}}return{response:G,status:F}}async function B11(A){let{poll:Q,state:B,stateProxy:I,options:E,getOperationStatus:C,getResourceLocation:D,getOperationLocation:Y,isOperationError:J,withOperationLocation:G,getPollingInterval:F,processResult:Z,getError:N,updateState:X,setDelay:U,isDone:W,setErrorAsResult:$}=A,{operationLocation:H}=B.config;if(H!==void 0){let{response:L,status:w}=await Q11({poll:Q,getOperationStatus:C,state:B,stateProxy:I,operationLocation:H,getResourceLocation:D,isOperationError:J,options:E});if(e9A({status:w,response:L,state:B,stateProxy:I,isDone:W,processResult:Z,getError:N,setErrorAsResult:$}),!t9A.terminalStates.includes(w)){let P=F===null||F===void 0?void 0:F(L);if(P)U(P);let c=Y===null||Y===void 0?void 0:Y(L,B);if(c!==void 0){let p=H!==c;B.config.operationLocation=c,G===null||G===void 0||G(c,p)}else G===null||G===void 0||G(H,!1)}X===null||X===void 0||X(B,L)}}DB.pollOperation=B11});var BS=V((f2)=>{Object.defineProperty(f2,"__esModule",{value:!0});f2.pollHttpOperation=f2.isOperationError=f2.getResourceLocation=f2.getOperationStatus=f2.getOperationLocation=f2.initHttpOperation=f2.getStatusFromInitialResponse=f2.getErrorFromResponse=f2.parseRetryAfter=f2.inferLroMode=void 0;var A8A=jw(),ev=Tw();function Q8A(A){let{azureAsyncOperation:Q,operationLocation:B}=A;return B!==null&&B!==void 0?B:Q}function B8A(A){return A.headers.location}function I8A(A){return A.headers["operation-location"]}function E8A(A){return A.headers["azure-asyncoperation"]}function I11(A){var Q;let{location:B,requestMethod:I,requestPath:E,resourceLocationConfig:C}=A;switch(I){case"PUT":return E;case"DELETE":return;case"PATCH":return(Q=D())!==null&&Q!==void 0?Q:E;default:return D()}function D(){switch(C){case"azure-async-operation":return;case"original-uri":return E;case"location":default:return B}}}function C8A(A){let{rawResponse:Q,requestMethod:B,requestPath:I,resourceLocationConfig:E}=A,C=I8A(Q),D=E8A(Q),Y=Q8A({operationLocation:C,azureAsyncOperation:D}),J=B8A(Q),G=B===null||B===void 0?void 0:B.toLocaleUpperCase();if(Y!==void 0)return{mode:"OperationLocation",operationLocation:Y,resourceLocation:I11({requestMethod:G,location:J,requestPath:I,resourceLocationConfig:E})};else if(J!==void 0)return{mode:"ResourceLocation",operationLocation:J};else if(G==="PUT"&&I)return{mode:"Body",operationLocation:I};else return}f2.inferLroMode=C8A;function D8A(A){let{status:Q,statusCode:B}=A;if(typeof Q!=="string"&&Q!==void 0)throw Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${Q}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(Q===null||Q===void 0?void 0:Q.toLocaleLowerCase()){case void 0:return AS(B);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return ev.logger.verbose(`LRO: unrecognized operation status: ${Q}`),Q}}function E11(A){var Q;let{status:B}=(Q=A.body)!==null&&Q!==void 0?Q:{};return D8A({status:B,statusCode:A.statusCode})}function C11(A){var Q,B;let{properties:I,provisioningState:E}=(Q=A.body)!==null&&Q!==void 0?Q:{},C=(B=I===null||I===void 0?void 0:I.provisioningState)!==null&&B!==void 0?B:E;return D8A({status:C,statusCode:A.statusCode})}function AS(A){if(A===202)return"running";else if(A<300)return"succeeded";else return"failed"}function Y8A({rawResponse:A}){let Q=A.headers["retry-after"];if(Q!==void 0){let B=parseInt(Q);return isNaN(B)?D11(new Date(Q)):B*1000}return}f2.parseRetryAfter=Y8A;function J8A(A){let Q=Z8A(A,"error");if(!Q){ev.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!Q.code||!Q.message){ev.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return Q}f2.getErrorFromResponse=J8A;function D11(A){let Q=Math.floor(new Date().getTime()),B=A.getTime();if(Q<B)return B-Q;return}function F8A(A){let{response:Q,state:B,operationLocation:I}=A;function E(){var D;switch((D=B.config.metadata)===null||D===void 0?void 0:D.mode){case void 0:return AS(Q.rawResponse.statusCode);case"Body":return QS(Q,B);default:return"running"}}let C=E();return C==="running"&&I===void 0?"succeeded":C}f2.getStatusFromInitialResponse=F8A;async function Y11(A){let{stateProxy:Q,resourceLocationConfig:B,processResult:I,lro:E,setErrorAsResult:C}=A;return(0,A8A.initOperation)({init:async()=>{let D=await E.sendInitialRequest(),Y=C8A({rawResponse:D.rawResponse,requestPath:E.requestPath,requestMethod:E.requestMethod,resourceLocationConfig:B});return Object.assign({response:D,operationLocation:Y=Line truncated
`);else D=[Q.accountName,I,E,C,A.startsOn?(0,Zz.truncatedISO8061Date)(A.startsOn,!1):"",(0,Zz.truncatedISO8061Date)(A.expiresOn,!1),A.ipRange?(0,r8A.ipRangeToString)(A.ipRange):"",A.protocol?A.protocol:"",B,""].join(`
`);let Y=Q.computeHMACSHA256(D);return{sasQueryParameters:new W01.SASQueryParameters(B,Y,I.toString(),E,C,A.protocol,A.startsOn,A.expiresOn,A.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,A.encryptionScope),stringToSign:D}}});var I5A=V((Vz)=>{Object.defineProperty(Vz,"__esModule",{value:!0});Vz.BlobServiceClient=void 0;var $01=IY(),H01=C4(),e8A=a0(),QN=AB(),w01=$S(),Xz=v4(),Uz=a7(),MS=o7(),yQ=v4(),fQ=mI(),z01=Az(),L01=Iw(),A5A=Yz(),Q5A=LS(),B5A=Gz();class Wz extends L01.StorageClient{serviceContext;static fromConnectionString(A,Q){Q=Q||{};let B=(0,Xz.extractConnectionStringParts)(A);if(B.kind==="AccountConnString")if(e8A.isNodeLike){let I=new Uz.StorageSharedKeyCredential(B.accountName,B.accountKey);if(!Q.proxyOptions)Q.proxyOptions=(0,H01.getDefaultProxySettings)(B.proxyUri);let E=(0,QN.newPipeline)(I,Q);return new Wz(B.url,E)}else throw Error("Account connection string is only supported in Node.js environment");else if(B.kind==="SASConnString"){let I=(0,QN.newPipeline)(new MS.AnonymousCredential,Q);return new Wz(B.url+"?"+B.accountSas,I)}else throw Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(A,Q,B){let I;if((0,QN.isPipelineLike)(Q))I=Q;else if(e8A.isNodeLike&&Q instanceof Uz.StorageSharedKeyCredential||Q instanceof MS.AnonymousCredential||(0,$01.isTokenCredential)(Q))I=(0,QN.newPipeline)(Q,B);else I=(0,QN.newPipeline)(new MS.AnonymousCredential,B);super(A,I);this.serviceContext=this.storageClientContext.service}getContainerClient(A){return new w01.ContainerClient((0,Xz.appendToURLPath)(this.url,encodeURIComponent(A)),this.pipeline)}async createContainer(A,Q={}){return fQ.tracingClient.withSpan("BlobServiceClient-createContainer",Q,async(B)=>{let I=this.getContainerClient(A),E=await I.create(B);return{containerClient:I,containerCreateResponse:E}})}async deleteContainer(A,Q={}){return fQ.tracingClient.withSpan("BlobServiceClient-deleteContainer",Q,async(B)=>{return this.getContainerClient(A).delete(B)})}async undeleteContainer(A,Q,B={}){return fQ.tracingClient.withSpan("BlobServiceClient-undeleteContainer",B,async(I)=>{let E=this.getContainerClient(B.destinationContainerName||A),C=E.storageClientContext.container,D=(0,yQ.assertResponse)(await C.restore({deletedContainerName:A,deletedContainerVersion:Q,tracingOptions:I.tracingOptions}));return{containerClient:E,containerUndeleteResponse:D}})}async getProperties(A={}){return fQ.tracingClient.withSpan("BlobServiceClient-getProperties",A,async(Q)=>{return(0,yQ.assertResponse)(await this.serviceContext.getProperties({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async setProperties(A,Q={}){return fQ.tracingClient.withSpan("BlobServiceClient-setProperties",Q,async(B)=>{return(0,yQ.assertResponse)(await this.serviceContext.setProperties(A,{abortSignal:Q.abortSignal,tracingOptions:B.tracingOptions}))})}async getStatistics(A={}){return fQ.tracingClient.withSpan("BlobServiceClient-getStatistics",A,async(Q)=>{return(0,yQ.assertResponse)(await this.serviceContext.getStatistics({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async getAccountInfo(A={}){return fQ.tracingClient.withSpan("BlobServiceClient-getAccountInfo",A,async(Q)=>{return(0,yQ.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:A.abortSignal,tracingOptions:Q.tracingOptions}))})}async listContainersSegment(A,Q={}){return fQ.tracingClient.withSpan("BlobServiceClient-listContainersSegment",Q,async(B)=>{return(0,yQ.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:Q.abortSignal,marker:A,...Q,include:typeof Q.include==="string"?[Q.include]:Q.include,tracingOptions:B.tracingOptions}))})}async findBlobsByTagsSegment(A,Q,B={}){return fQ.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",B,async(I)=>{let E=(0,yQ.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:B.abortSignal,where:A,marker:Q,maxPageSize:B.maxPageSize,tracingOptions:I.tracingOptions}));return{...E,_response:E._response,blobs:E.blobs.map((D)=>{let Y="";if(D.tags?.blobTagSet.length===1)Y=D.tags.blobTagSet[0].value;return{...D,tags:(0,Xz.toTags)(D.tags),tagValue:Y}})}})}async*findBlobsByTagsSegments(A,Q,B={}){let I;if(!!Q||Q===void 0)do I=await this.findBlobsByTagsSegment(A,Q,B),I.blobs=I.blobs||[],Q=I.continuationToken,yield I;while(Q)}async*findBlobsByTagsItems(A,Q={}){let B;for await(let I of this.findBlobsByTagsSegments(A,B,Q))yield*I.blobs}findBlobsByTags(A,Q={}){let B={...Q},I=this.findBlobsByTagsItems(A,B);return{next(){return I.next()},[Symbol.asyncIterator](){return this},byPage:(E={})=>{return this.findBlobsByTagsSegments(A,E.continuationToken,{maxPageSize:E.maxPageSize,...B})}}}async*listSegments(A,Q={}){let B;if(!!A||A===void 0)do B=await this.listContainersSegment(A,Q),B.containerItems=B.containerItems||[],A=B.continuationToken,yield await B;while(A)}async*listItems(A={}){let Q;for await(let B of this.listSegments(Q,A))yield*B.conta Line truncated
globstar while`,A,F,Q,Z,N),this.matchOne(A.slice(F),Q.slice(Z),B))return this.debug("globstar found match!",F,D,N),!0;else{if(N==="."||N===".."||!I.dot&&N.charAt(0)==="."){this.debug("dot detected!",A,F,Q,Z);break}this.debug("globstar swallow a segment, and continue"),F++}}if(B){if(this.debug(`
>>> no match, partial?`,A,F,Q,Z),F===D)return!0}return!1}var X;if(typeof J==="string")X=G===J,this.debug("string match",J,G,X);else X=G.match(J),this.debug("pattern match",J,G,X);if(!X)return!1}if(E===D&&C===Y)return!0;else if(E===D)return B;else if(C===Y)return E===D-1&&A[E]==="";throw Error("wtf?")}braceExpand(){return j5A(this.pattern,this.options)}parse(A,Q){zz(A);let B=this.options;if(A==="**")if(!B.noglobstar)return g5;else A="*";if(A==="")return"";let I="",E=!1,C=!1,D=[],Y=[],J,G=!1,F=-1,Z=-1,N,X,U,W=A.charAt(0)===".",$=B.dot||W,H=()=>W?"":$?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",L=(p)=>p.charAt(0)==="."?"":B.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=()=>{if(J){switch(J){case"*":I+=gS,E=!0;break;case"?":I+=SS,E=!0;break;default:I+="\\"+J;break}this.debug("clearStateChar %j %j",J,I),J=!1}};for(let p=0,S;p<A.length&&(S=A.charAt(p));p++){if(this.debug("%s %s %s %j",A,p,I,S),C){if(S==="/")return!1;if(q5A[S])I+="\\";I+=S,C=!1;continue}switch(S){case"/":return!1;case"\\":if(G&&A.charAt(p+1)==="-"){I+=S;continue}w(),C=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",A,p,I,S),G){if(this.debug(" in class"),S==="!"&&p===Z+1)S="^";I+=S;continue}if(this.debug("call clearStateChar %j",J),w(),J=S,B.noext)w();continue;case"(":{if(G){I+="(";continue}if(!J){I+="\\(";continue}let o={type:J,start:p-1,reStart:I.length,open:R5A[J].open,close:R5A[J].close};if(this.debug(this.pattern,"\t",o),D.push(o),I+=o.open,o.start===0&&o.type!=="!")W=!0,I+=L(A.slice(p+1));this.debug("plType %j %j",J,I),J=!1;continue}case")":{let o=D[D.length-1];if(G||!o){I+="\\)";continue}if(D.pop(),w(),E=!0,X=o,I+=X.close,X.type==="!")Y.push(Object.assign(X,{reEnd:I.length}));continue}case"|":{let o=D[D.length-1];if(G||!o){I+="\\|";continue}if(w(),I+="|",o.start===0&&o.type!=="!")W=!0,I+=L(A.slice(p+1));continue}case"[":if(w(),G){I+="\\"+S;continue}G=!0,Z=p,F=I.length,I+=S;continue;case"]":if(p===Z+1||!G){I+="\\"+S;continue}N=A.substring(Z+1,p);try{RegExp("["+s01(a01(N))+"]"),I+=S}catch(o){I=I.substring(0,F)+"(?:$.)"}E=!0,G=!1;continue;default:if(w(),q5A[S]&&!(S==="^"&&G))I+="\\";I+=S;break}}if(G)N=A.slice(Z+1),U=this.parse(N,_S),I=I.substring(0,F)+"\\["+U[0],E=E||U[1];for(X=D.pop();X;X=D.pop()){let p;p=I.slice(X.reStart+X.open.length),this.debug("setting tail",I,X),p=p.replace(/((?:\\{2}){0,64})(\\?)\|/g,(o,f,k)=>{if(!k)k="\\";return f+f+k+"|"}),this.debug(`tail=%j
%s`,p,p,X,I);let S=X.type==="*"?gS:X.type==="?"?SS:"\\"+X.type;E=!0,I=I.slice(0,X.reStart)+S+"\\("+p}if(w(),C)I+="\\\\";let P=l01[I.charAt(0)];for(let p=Y.length-1;p>-1;p--){let S=Y[p],o=I.slice(0,S.reStart),f=I.slice(S.reStart,S.reEnd-8),k=I.slice(S.reEnd),i=I.slice(S.reEnd-8,S.reEnd)+k,l=o.split(")").length,EA=o.split("(").length-l,BA=k;for(let HA=0;HA<EA;HA++)BA=BA.replace(/\)[+*?]?/,"");k=BA;let wA=k===""&&Q!==_S?"(?:$|\\/)":"";I=o+f+k+wA+i}if(I!==""&&E)I="(?=.)"+I;if(P)I=H()+I;if(Q===_S)return[I,E];if(B.nocase&&!E)E=A.toUpperCase()!==A.toLowerCase();if(!E)return n01(A);let c=B.nocase?"i":"";try{return Object.assign(new RegExp("^"+I+"$",c),{_glob:A,_src:I})}catch(p){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let A=this.set;if(!A.length)return this.regexp=!1,this.regexp;let Q=this.options,B=Q.noglobstar?gS:Q.dot?p01:c01,I=Q.nocase?"i":"",E=A.map((C)=>{return C=C.map((D)=>typeof D==="string"?o01(D):D===g5?g5:D._src).reduce((D,Y)=>{if(!(D[D.length-1]===g5&&Y===g5))D.push(Y);return D},[]),C.forEach((D,Y)=>{if(D!==g5||C[Y-1]===g5)return;if(Y===0)if(C.length>1)C[Y+1]="(?:\\/|"+B+"\\/)?"+C[Y+1];else C[Y]=B;else if(Y===C.length-1)C[Y-1]+="(?:\\/|"+B+")?";else C[Y-1]+="(?:\\/|\\/"+B+"\\/)"+C[Y+1],C[Y+1]=g5}),C.filter((D)=>D!==g5).join("/")}).join("|");if(E="^(?:"+E+")$",this.negate)E="^(?!"+E+").*$";try{this.regexp=new RegExp(E,I)}catch(C){this.regexp=!1}return this.regexp}match(A,Q=this.partial){if(this.debug("match",A,this.pattern),this.comment)return!1;if(this.empty)return A==="";if(A==="/"&&Q)return!0;let B=this.options;if(vS.sep!=="/")A=A.split(vS.sep).join("/");A=A.split(T5A),this.debug(this.pattern,"split",A);let I=this.set;this.debug(this.pattern,"set",I);let E;for(let C=A.length-1;C>=0;C--)if(E=A[C],E)break;for(let C=0;C<I.length;C++){let D=I[C],Y=A;if(B.matchBase&&D.length===1)Y=[E];if(this.matchOne(Y,D,Q)){if(B.flipNegate)return!0;return!this.negate}}if(B.flipNegate)return!1;return this.negate}static defaults(A){return D8.defaults(A).Minimatch}}D8.Minimatch=IN});var x5A=V((Rf1,S5A)=>{S5A.exports=v5A;var hS=require("fs"),{EventEmitter:r01}=require("events"),{Minimatch:kS}=P5A(),{resolve:t01}=require("path");function e01(A,Q){return new Promise((B,I)=>{hS.readdir(A,{withFileTypes:!0},(E,C)=>{if(E)switch(E.code){case"ENOTDIR":if(Q)I(E);else B([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":B([]);break;case"ELOOP":default:I(E);break}else B(C)})})}function g5A(A,Q){return new Promise((B,I)=>{(Q?hS.stat:hS.lstat)(A,(C,D)=>{if(C)switch(C.code){case"ENOENT":if(Q)B(g5A(A,!1));else B(null);break;default:B(null);break}else B(D)})})}async function*_5A(A,Q,B,I,E,C){let D=await e01(Q+A,C);for(let Y of D){let J=Y.name;if(J===void 0)J=Y,I=!0;let G=A+"/"+J,F=G.slice(1),Z=Q+"/"+F,N=null;if(I||B)N=await g5A(Z,B);if(!N&&Y.name!==void 0)N=Y;if(N===null)N={isDirectory:()=>!1};if(N.isDirectory()){if(!E(F))yield{relative:F,absolute:Z,stats:N},yield*_5A(G,Q,B,I,E,!1)}else yield{relative:F,absolute:Z,stats:N}}}async function*A21(A,Q,B,I){yield*_5A("",A,Q,B,I,!0)}function Q21(A){return{pattern:A.pattern,dot:!!A.dot,noglobstar:!!A.noglobstar,matchBase:!!A.matchBase,nocase:!!A.nocase,ignore:A.ignore,skip:A.skip,follow:!!A.follow,stat:!!A.stat,nodir:!!A.nodir,mark:!!A.mark,silent:!!A.silent,absolute:!!A.absolute}}class yS extends r01{constructor(A,Q,B){super();if(typeof Q==="function")B=Q,Q=null;if(this.options=Q21(Q||{}),this.matchers=[],this.options.pattern){let I=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=I.map((E)=>new kS(E,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let I=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=I.map((E)=>new kS(E,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let I=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=I.map((E)=>new kS(E,{dot:!0}))}if(this.iterator=A21(t01(A||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,B)this._matches=[],this.on("match",(I)=>this._matches.push(this.options.absolute?I.absolute:I.relative)),this.on("error",(I)=>B(I)),this.on("end",()=>B(null,this._matches));setTimeout(()=>this._next(),0)}_shouldSkipDirectory(A){return this.skipMatchers.some((Q)=>Q.match(A))}_fileMatches(A,Q){let B=A+(Q?"/":"");return(this.matchers.length===0||this.matchers.some((I)=>I.match(B)))&&!this.ignoreMatchers.some((I)=>I.match(B))&&(!this.options.nodir||!Q)}_next(){if(!this.paused&&!this.aborted)this.iterator.next().then((A)=>{if(!A.done){let Q=A.value.stats.isDirectory();if(this._fileMatches(A.value.relative,Q)){let B=A.value.relative,I=A.value.absolute;if(this.options.mark&&Q)B+="/",I+="/";if(this.options.stat)this.emit("match",{relative:B,absolute:I,stat:A.value.stats});else this. Line truncated
`,y);y=CA===-1?T.length:CA}else if(t!==-1&&T[y]==="/"&&T[y+1]==="*"){let CA=T.indexOf("*/",y);if(CA!==-1)y=CA+2,t=T.indexOf("*/",y);else v+=T[y],y++}else v+=T[y],y++;return v}function n2(T){let v=p0(T.toString()),y=v.match(NA);if(!y)y=v.match(WA);if(!y)throw Error(`could not parse args in autoInject
Source:
`+v);let[,t]=y;return t.replace(/\s/g,"").split(Z1).map((CA)=>CA.replace(E1,"").trim())}function b1(T,v){var y={};return Object.keys(T).forEach((t)=>{var CA=T[t],YA,XA=X(CA),KA=!XA&&CA.length===1||XA&&CA.length===0;if(Array.isArray(CA))YA=[...CA],CA=YA.pop(),y[t]=YA.concat(YA.length>0?RA:CA);else if(KA)y[t]=CA;else{if(YA=n2(CA),CA.length===0&&!XA&&YA.length===0)throw Error("autoInject task functions require explicit parameters.");if(!XA)YA.pop();y[t]=YA.concat(RA)}function RA(eA,C0){var V0=YA.map((F0)=>eA[F0]);V0.push(C0),$(CA)(...V0)}}),L0(y,v)}class E0{constructor(){this.head=this.tail=null,this.length=0}removeLink(T){if(T.prev)T.prev.next=T.next;else this.head=T.next;if(T.next)T.next.prev=T.prev;else this.tail=T.prev;return T.prev=T.next=null,this.length-=1,T}empty(){while(this.head)this.shift();return this}insertAfter(T,v){if(v.prev=T,v.next=T.next,T.next)T.next.prev=v;else this.tail=v;T.next=v,this.length+=1}insertBefore(T,v){if(v.prev=T.prev,v.next=T,T.prev)T.prev.next=v;else this.head=v;T.prev=v,this.length+=1}unshift(T){if(this.head)this.insertBefore(this.head,T);else M4(this,T)}push(T){if(this.tail)this.insertAfter(this.tail,T);else M4(this,T)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var T=this.head;while(T)yield T.data,T=T.next}remove(T){var v=this.head;while(v){var{next:y}=v;if(T(v))this.removeLink(v);v=y}return this}}function M4(T,v){T.length=1,T.head=T.tail=v}function s0(T,v,y){if(v==null)v=1;else if(v===0)throw RangeError("Concurrency must not be zero");var t=$(T),CA=0,YA=[];let XA={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function KA(N1,sA){XA[N1].push(sA)}function RA(N1,sA){let X1=(...G0)=>{eA(N1,X1),sA(...G0)};XA[N1].push(X1)}function eA(N1,sA){if(!N1)return Object.keys(XA).forEach((X1)=>XA[X1]=[]);if(!sA)return XA[N1]=[];XA[N1]=XA[N1].filter((X1)=>X1!==sA)}function C0(N1,...sA){XA[N1].forEach((X1)=>X1(...sA))}var V0=!1;function F0(N1,sA,X1,G0){if(G0!=null&&typeof G0!=="function")throw Error("task callback must be a function");K0.started=!0;var V2,R4;function K8(AI,...sF){if(AI)return X1?R4(AI):V2();if(sF.length<=1)return V2(sF[0]);V2(sF)}var eE=K0._createTaskItem(N1,X1?K8:G0||K8);if(sA)K0._tasks.unshift(eE);else K0._tasks.push(eE);if(!V0)V0=!0,G(()=>{V0=!1,K0.process()});if(X1||!G0)return new Promise((AI,sF)=>{V2=AI,R4=sF})}function V8(N1){return function(sA,...X1){CA-=1;for(var G0=0,V2=N1.length;G0<V2;G0++){var R4=N1[G0],K8=YA.indexOf(R4);if(K8===0)YA.shift();else if(K8>0)YA.splice(K8,1);if(R4.callback(sA,...X1),sA!=null)C0("error",sA,R4.data)}if(CA<=K0.concurrency-K0.buffer)C0("unsaturated");if(K0.idle())C0("drain");K0.process()}}function tE(N1){if(N1.length===0&&K0.idle())return G(()=>C0("drain")),!0;return!1}let eB=(N1)=>(sA)=>{if(!sA)return new Promise((X1,G0)=>{RA(N1,(V2,R4)=>{if(V2)return G0(V2);X1(R4)})});eA(N1),KA(N1,sA)};var oF=!1,K0={_tasks:new E0,_createTaskItem(N1,sA){return{data:N1,callback:sA}},*[Symbol.iterator](){yield*K0._tasks[Symbol.iterator]()},concurrency:v,payload:y,buffer:v/4,started:!1,paused:!1,push(N1,sA){if(Array.isArray(N1)){if(tE(N1))return;return N1.map((X1)=>F0(X1,!1,!1,sA))}return F0(N1,!1,!1,sA)},pushAsync(N1,sA){if(Array.isArray(N1)){if(tE(N1))return;return N1.map((X1)=>F0(X1,!1,!0,sA))}return F0(N1,!1,!0,sA)},kill(){eA(),K0._tasks.empty()},unshift(N1,sA){if(Array.isArray(N1)){if(tE(N1))return;return N1.map((X1)=>F0(X1,!0,!1,sA))}return F0(N1,!0,!1,sA)},unshiftAsync(N1,sA){if(Array.isArray(N1)){if(tE(N1))return;return N1.map((X1)=>F0(X1,!0,!0,sA))}return F0(N1,!0,!0,sA)},remove(N1){K0._tasks.remove(N1)},process(){if(oF)return;oF=!0;while(!K0.paused&&CA<K0.concurrency&&K0._tasks.length){var N1=[],sA=[],X1=K0._tasks.length;if(K0.payload)X1=Math.min(X1,K0.payload);for(var G0=0;G0<X1;G0++){var V2=K0._tasks.shift();N1.push(V2),YA.push(V2),sA.push(V2.data)}if(CA+=1,K0._tasks.length===0)C0("empty");if(CA===K0.concurrency)C0("saturated");var R4=l(V8(N1));t(sA,R4)}oF=!1},length(){return K0._tasks.length},running(){return CA},workersList(){return YA},idle(){return K0._tasks.length+CA===0},pause(){K0.paused=!0},resume(){if(K0.paused===!1)return;K0.paused=!1,G(K0.process)}};return Object.defineProperties(K0,{saturated:{writable:!1,value:eB("saturated")},unsaturated:{writable:!1,value:eB("unsaturated")},empty:{writable:!1,value:eB("empty")},drain:{writable:!1,value:eB("drain")},error:{writable:!1,value:eB("error")}}),K0}function k0(T,v){return s0(T,1,v)}function pA(T,v,y){return s0(T,v,y)}function q1(T,v,y,t){t=p(t);var CA=$(y);return I1(T,(YA,XA,KA)=>{CA(v,YA,(RA,eA)=>{v=eA,KA(RA)})},(YA)=>t(YA,v))}var _2=H(q1,4);function xA(...T){var v=T.map($);return function(...y){var t=this,CA=y[y.length-1];if(typeof CA=="function")y.pop();else CA=H1();return _2(v,y,(YA,XA,KA)=>{XA.apply(t,YA.concat((RA,...eA)=>{KA(RA,eA)}))},(YA,XA)=>CA(YA,...XA)),CA[J0]}}function P1(...T){return xA(...T.reverse())}function K(T,v,y,t){return w(BA(v),T,y,t)}var q=H(K,4);fu Line truncated
GFS4: `),console.error(A)};if(!O2[I6]){if(fS=global[I6]||[],l5A(O2,fS),O2.close=function(A){function Q(B,I){return A.call(O2,B,function(E){if(!E)c5A();if(typeof I==="function")I.apply(this,arguments)})}return Object.defineProperty(Q,Oz,{value:A}),Q}(O2.close),O2.closeSync=function(A){function Q(B){A.apply(O2,arguments),c5A()}return Object.defineProperty(Q,Oz,{value:A}),Q}(O2.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){rI(O2[I6]),require("assert").equal(O2[I6].length,0)})}var fS;if(!global[I6])l5A(global,O2[I6]);mS.exports=bS(G21(O2));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!O2.__patched)mS.exports=bS(O2),O2.__patched=!0;function bS(A){J21(A),A.gracefulify=bS,A.createReadStream=c,A.createWriteStream=p;var Q=A.readFile;A.readFile=B;function B(f,k,i){if(typeof k==="function")i=k,k=null;return l(f,k,i);function l(EA,BA,wA,HA){return Q(EA,BA,function(vA){if(vA&&(vA.code==="EMFILE"||vA.code==="ENFILE"))yY([l,[EA,BA,wA],vA,HA||Date.now(),Date.now()]);else if(typeof wA==="function")wA.apply(this,arguments)})}}var I=A.writeFile;A.writeFile=E;function E(f,k,i,l){if(typeof i==="function")l=i,i=null;return EA(f,k,i,l);function EA(BA,wA,HA,vA,yA){return I(BA,wA,HA,function(_A){if(_A&&(_A.code==="EMFILE"||_A.code==="ENFILE"))yY([EA,[BA,wA,HA,vA],_A,yA||Date.now(),Date.now()]);else if(typeof vA==="function")vA.apply(this,arguments)})}}var C=A.appendFile;if(C)A.appendFile=D;function D(f,k,i,l){if(typeof i==="function")l=i,i=null;return EA(f,k,i,l);function EA(BA,wA,HA,vA,yA){return C(BA,wA,HA,function(_A){if(_A&&(_A.code==="EMFILE"||_A.code==="ENFILE"))yY([EA,[BA,wA,HA,vA],_A,yA||Date.now(),Date.now()]);else if(typeof vA==="function")vA.apply(this,arguments)})}}var Y=A.copyFile;if(Y)A.copyFile=J;function J(f,k,i,l){if(typeof i==="function")l=i,i=0;return EA(f,k,i,l);function EA(BA,wA,HA,vA,yA){return Y(BA,wA,HA,function(_A){if(_A&&(_A.code==="EMFILE"||_A.code==="ENFILE"))yY([EA,[BA,wA,HA,vA],_A,yA||Date.now(),Date.now()]);else if(typeof vA==="function")vA.apply(this,arguments)})}}var G=A.readdir;A.readdir=Z;var F=/^v[0-5]\./;function Z(f,k,i){if(typeof k==="function")i=k,k=null;var l=F.test(process.version)?function(wA,HA,vA,yA){return G(wA,EA(wA,HA,vA,yA))}:function(wA,HA,vA,yA){return G(wA,HA,EA(wA,HA,vA,yA))};return l(f,k,i);function EA(BA,wA,HA,vA){return function(yA,_A){if(yA&&(yA.code==="EMFILE"||yA.code==="ENFILE"))yY([l,[BA,wA,HA],yA,vA||Date.now(),Date.now()]);else{if(_A&&_A.sort)_A.sort();if(typeof HA==="function")HA.call(this,yA,_A)}}}}if(process.version.substr(0,4)==="v0.8"){var N=F21(A);H=N.ReadStream,w=N.WriteStream}var X=A.ReadStream;if(X)H.prototype=Object.create(X.prototype),H.prototype.open=L;var U=A.WriteStream;if(U)w.prototype=Object.create(U.prototype),w.prototype.open=P;Object.defineProperty(A,"ReadStream",{get:function(){return H},set:function(f){H=f},enumerable:!0,configurable:!0}),Object.defineProperty(A,"WriteStream",{get:function(){return w},set:function(f){w=f},enumerable:!0,configurable:!0});var W=H;Object.defineProperty(A,"FileReadStream",{get:function(){return W},set:function(f){W=f},enumerable:!0,configurable:!0});var $=w;Object.defineProperty(A,"FileWriteStream",{get:function(){return $},set:function(f){$=f},enumerable:!0,configurable:!0});function H(f,k){if(this instanceof H)return X.apply(this,arguments),this;else return H.apply(Object.create(H.prototype),arguments)}function L(){var f=this;o(f.path,f.flags,f.mode,function(k,i){if(k){if(f.autoClose)f.destroy();f.emit("error",k)}else f.fd=i,f.emit("open",i),f.read()})}function w(f,k){if(this instanceof w)return U.apply(this,arguments),this;else return w.apply(Object.create(w.prototype),arguments)}function P(){var f=this;o(f.path,f.flags,f.mode,function(k,i){if(k)f.destroy(),f.emit("error",k);else f.fd=i,f.emit("open",i)})}function c(f,k){return new A.ReadStream(f,k)}function p(f,k){return new A.WriteStream(f,k)}var S=A.open;A.open=o;function o(f,k,i,l){if(typeof i==="function")l=i,i=null;return EA(f,k,i,l);function EA(BA,wA,HA,vA,yA){return S(BA,wA,HA,function(_A,$A){if(_A&&(_A.code==="EMFILE"||_A.code==="ENFILE"))yY([EA,[BA,wA,HA,vA],_A,yA||Date.now(),Date.now()]);else if(typeof vA==="function")vA.apply(this,arguments)})}}return A}function yY(A){rI("ENQUEUE",A[0].name,A[1]),O2[I6].push(A),dS()}var Tz;function c5A(){var A=Date.now();for(var Q=0;Q<O2[I6].length;++Q)if(O2[I6][Q].length>2)O2[I6][Q][3]=A,O2[I6][Q][4]=A;dS()}function dS(){if(clearTimeout(Tz),Tz=void 0,O2[I6].length===0)return;var A=O2[I6].shift(),Q=A[0],B=A[1],I=A[2],E=A[3],C=A[4];if(E===void 0)rI("RETRY",Q.name,B),Q.apply(null,B);else if(Date.now()-E>=60000){rI("TIMEOUT",Q.name,B);var D=B.pop();if(typeof D==="function")D.call(null,I)}else{var Y=Date.now()-C,J=Math.max(C-E,1),G=Math.min(J*1.2,100);if(Y>=G)rI("RETRY",Q.name,B),Q.apply(null,B.concat([E]));else O2[I6].push(A)}if(Tz===void 0)Tz=setTimeout(dS,0)}});var jz=V((Pf1,i5A)=>{var bQ=(A)=>A!==null&&typeof A==="object"&&typeof A.pipe==="function";bQ.writable=(A)=>bQ(A)&&A.writab Line truncated
* normalize-path <https://github.com/jonschlinkert/normalize-path>
*
* Copyright (c) 2014-2018, Jon Schlinkert.
* Released under the MIT License.
*/cQA.exports=function(A,Q){if(typeof A!=="string")throw TypeError("expected path to be a string");if(A==="\\"||A==="/")return"/";var B=A.length;if(B<=1)return A;var I="";if(B>4&&A[3]==="\\"){var E=A[2];if((E==="?"||E===".")&&A.slice(0,2)==="\\\\")A=A.slice(2),I="//"}var C=A.split(/[/\\]+/);if(Q!==!1&&C[C.length-1]==="")C.pop();return I+C.join("/")}});var Zx=V((of1,lQA)=>{function S41(A){return A}lQA.exports=S41});var nQA=V((sf1,iQA)=>{function x41(A,Q,B){switch(B.length){case 0:return A.call(Q);case 1:return A.call(Q,B[0]);case 2:return A.call(Q,B[0],B[1]);case 3:return A.call(Q,B[0],B[1],B[2])}return A.apply(Q,B)}iQA.exports=x41});var sQA=V((rf1,oQA)=>{var k41=nQA(),aQA=Math.max;function h41(A,Q,B){return Q=aQA(Q===void 0?A.length-1:Q,0),function(){var I=arguments,E=-1,C=aQA(I.length-Q,0),D=Array(C);while(++E<C)D[E]=I[Q+E];E=-1;var Y=Array(Q+1);while(++E<Q)Y[E]=I[E];return Y[Q]=B(D),k41(A,this,Y)}}oQA.exports=h41});var tQA=V((tf1,rQA)=>{function y41(A){return function(){return A}}rQA.exports=y41});var Nx=V((ef1,eQA)=>{var f41=typeof global=="object"&&global&&global.Object===Object&&global;eQA.exports=f41});var cY=V((Ab1,A3A)=>{var b41=Nx(),d41=typeof self=="object"&&self&&self.Object===Object&&self,m41=b41||d41||Function("return this")();A3A.exports=m41});var pz=V((Qb1,Q3A)=>{var u41=cY(),p41=u41.Symbol;Q3A.exports=p41});var C3A=V((Bb1,E3A)=>{var B3A=pz(),I3A=Object.prototype,c41=I3A.hasOwnProperty,l41=I3A.toString,WN=B3A?B3A.toStringTag:void 0;function i41(A){var Q=c41.call(A,WN),B=A[WN];try{A[WN]=void 0;var I=!0}catch(C){}var E=l41.call(A);if(I)if(Q)A[WN]=B;else delete A[WN];return E}E3A.exports=i41});var Y3A=V((Ib1,D3A)=>{var n41=Object.prototype,a41=n41.toString;function o41(A){return a41.call(A)}D3A.exports=o41});var VN=V((Eb1,G3A)=>{var J3A=pz(),s41=C3A(),r41=Y3A(),t41="[object Null]",e41="[object Undefined]",F3A=J3A?J3A.toStringTag:void 0;function A61(A){if(A==null)return A===void 0?e41:t41;return F3A&&F3A in Object(A)?s41(A):r41(A)}G3A.exports=A61});var KN=V((Cb1,Z3A)=>{function Q61(A){var Q=typeof A;return A!=null&&(Q=="object"||Q=="function")}Z3A.exports=Q61});var Xx=V((Db1,N3A)=>{var B61=VN(),I61=KN(),E61="[object AsyncFunction]",C61="[object Function]",D61="[object GeneratorFunction]",Y61="[object Proxy]";function J61(A){if(!I61(A))return!1;var Q=B61(A);return Q==C61||Q==D61||Q==E61||Q==Y61}N3A.exports=J61});var U3A=V((Yb1,X3A)=>{var F61=cY(),G61=F61["__core-js_shared__"];X3A.exports=G61});var K3A=V((Jb1,V3A)=>{var Ux=U3A(),W3A=function(){var A=/[^.]+$/.exec(Ux&&Ux.keys&&Ux.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();function Z61(A){return!!W3A&&W3A in A}V3A.exports=Z61});var H3A=V((Fb1,$3A)=>{var N61=Function.prototype,X61=N61.toString;function U61(A){if(A!=null){try{return X61.call(A)}catch(Q){}try{return A+""}catch(Q){}}return""}$3A.exports=U61});var z3A=V((Gb1,w3A)=>{var W61=Xx(),V61=K3A(),K61=KN(),$61=H3A(),H61=/[\\^$.*+?()[\]{}|]/g,w61=/^\[object .+?Constructor\]$/,z61=Function.prototype,L61=Object.prototype,M61=z61.toString,R61=L61.hasOwnProperty,q61=RegExp("^"+M61.call(R61).replace(H61,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function T61(A){if(!K61(A)||V61(A))return!1;var Q=W61(A)?q61:w61;return Q.test($61(A))}w3A.exports=T61});var M3A=V((Zb1,L3A)=>{function O61(A,Q){return A==null?void 0:A[Q]}L3A.exports=O61});var $N=V((Nb1,R3A)=>{var j61=z3A(),P61=M3A();function g61(A,Q){var B=P61(A,Q);return j61(B)?B:void 0}R3A.exports=g61});var T3A=V((Xb1,q3A)=>{var _61=$N(),v61=function(){try{var A=_61(Object,"defineProperty");return A({},"",{}),A}catch(Q){}}();q3A.exports=v61});var P3A=V((Ub1,j3A)=>{var S61=tQA(),O3A=T3A(),x61=Zx(),k61=!O3A?x61:function(A,Q){return O3A(A,"toString",{configurable:!0,enumerable:!1,value:S61(Q),writable:!0})};j3A.exports=k61});var _3A=V((Wb1,g3A)=>{var h61=800,y61=16,f61=Date.now;function b61(A){var Q=0,B=0;return function(){var I=f61(),E=y61-(I-B);if(B=I,E>0){if(++Q>=h61)return arguments[0]}else Q=0;return A.apply(void 0,arguments)}}g3A.exports=b61});var S3A=V((Vb1,v3A)=>{var d61=P3A(),m61=_3A(),u61=m61(d61);v3A.exports=u61});var cz=V((Kb1,x3A)=>{var p61=Zx(),c61=sQA(),l61=S3A();function i61(A,Q){return l61(c61(A,Q,p61),A+"")}x3A.exports=i61});var lz=V(($b1,k3A)=>{function n61(A,Q){return A===Q||A!==A&&Q!==Q}k3A.exports=n61});var Wx=V((Hb1,h3A)=>{var a61=9007199254740991;function o61(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=a61}h3A.exports=o61});var iz=V((wb1,y3A)=>{var s61=Xx(),r61=Wx();function t61(A){return A!=null&&r61(A.length)&&!s61(A)}y3A.exports=t61});var Vx=V((zb1,f3A)=>{var e61=9007199254740991,A91=/^(?:0|[1-9]\d*)$/;function Q91(A,Q){var B=typeof A;return Q=Q==null?e61:Q,!!Q&&(B=="number"||B!="symbol"&&A91.test(A))&&(A>-1&&A%1==0&&A<Q)}f3A.exports=Q91});var d3A=V((Lb1,b3A)=>{var B91=lz(),I91=iz(),E91=Vx(),C91=KN();function D91(A,Q,B){if(!C91(B))return!1;var I=typeof Q;if(I=="number"?I91(B)&&E91(Q,B.length):I=="string"&&(Q in B))return B91(B[Q],A);return!1}b3A.exports=D91});var u3A=V((Mb1,m3A Line truncated
`;super(Q);this.name="AggregateError",this.errors=A}}q7A.exports={AggregateError:R7A,ArrayIsArray(A){return Array.isArray(A)},ArrayPrototypeIncludes(A,Q){return A.includes(Q)},ArrayPrototypeIndexOf(A,Q){return A.indexOf(Q)},ArrayPrototypeJoin(A,Q){return A.join(Q)},ArrayPrototypeMap(A,Q){return A.map(Q)},ArrayPrototypePop(A,Q){return A.pop(Q)},ArrayPrototypePush(A,Q){return A.push(Q)},ArrayPrototypeSlice(A,Q,B){return A.slice(Q,B)},Error,FunctionPrototypeCall(A,Q,...B){return A.call(Q,...B)},FunctionPrototypeSymbolHasInstance(A,Q){return Function.prototype[Symbol.hasInstance].call(A,Q)},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(A,Q){return Object.defineProperties(A,Q)},ObjectDefineProperty(A,Q,B){return Object.defineProperty(A,Q,B)},ObjectGetOwnPropertyDescriptor(A,Q){return Object.getOwnPropertyDescriptor(A,Q)},ObjectKeys(A){return Object.keys(A)},ObjectSetPrototypeOf(A,Q){return Object.setPrototypeOf(A,Q)},Promise,PromisePrototypeCatch(A,Q){return A.catch(Q)},PromisePrototypeThen(A,Q,B){return A.then(Q,B)},PromiseReject(A){return Promise.reject(A)},PromiseResolve(A){return Promise.resolve(A)},ReflectApply:Reflect.apply,RegExpPrototypeTest(A,Q){return A.test(Q)},SafeSet:Set,String,StringPrototypeSlice(A,Q,B){return A.slice(Q,B)},StringPrototypeToLowerCase(A){return A.toLowerCase()},StringPrototypeToUpperCase(A){return A.toUpperCase()},StringPrototypeTrim(A){return A.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(A,Q,B){return A.set(Q,B)},Boolean,Uint8Array}});var zx=V((bb1,T7A)=>{T7A.exports={format(A,...Q){return A.replace(/%([sdifj])/g,function(...[B,I]){let E=Q.shift();if(I==="f")return E.toFixed(6);else if(I==="j")return JSON.stringify(E);else if(I==="s"&&typeof E==="object")return`${E.constructor!==Object?E.constructor.name:""} {}`.trim();else return E.toString()})},inspect(A){switch(typeof A){case"string":if(A.includes("'")){if(!A.includes('"'))return`"${A}"`;else if(!A.includes("`")&&!A.includes("${"))return`\`${A}\``}return`'${A}'`;case"number":if(isNaN(A))return"NaN";else if(Object.is(A,-0))return String(A);return A;case"bigint":return`${String(A)}n`;case"boolean":case"undefined":return String(A);case"object":return"{}"}}}});var _6=V((db1,g7A)=>{var{format:S81,inspect:nz}=zx(),{AggregateError:x81}=L2(),k81=globalThis.AggregateError||x81,h81=Symbol("kIsNodeError"),y81=["string","function","number","object","Function","Object","boolean","bigint","symbol"],f81=/^([A-Z][a-z0-9]*)+$/,az={};function AE(A,Q){if(!A)throw new az.ERR_INTERNAL_ASSERTION(Q)}function O7A(A){let Q="",B=A.length,I=A[0]==="-"?1:0;for(;B>=I+4;B-=3)Q=`_${A.slice(B-3,B)}${Q}`;return`${A.slice(0,B)}${Q}`}function b81(A,Q,B){if(typeof Q==="function")return AE(Q.length<=B.length,`Code: ${A}; The provided arguments length (${B.length}) does not match the required ones (${Q.length}).`),Q(...B);let I=(Q.match(/%[dfijoOs]/g)||[]).length;if(AE(I===B.length,`Code: ${A}; The provided arguments length (${B.length}) does not match the required ones (${I}).`),B.length===0)return Q;return S81(Q,...B)}function C6(A,Q,B){if(!B)B=Error;class I extends B{constructor(...E){super(b81(A,Q,E))}toString(){return`${this.name} [${A}]: ${this.message}`}}Object.defineProperties(I.prototype,{name:{value:B.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${A}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),I.prototype.code=A,I.prototype[h81]=!0,az[A]=I}function j7A(A){let Q="__node_internal_"+A.name;return Object.defineProperty(A,"name",{value:Q}),A}function d81(A,Q){if(A&&Q&&A!==Q){if(Array.isArray(Q.errors))return Q.errors.push(A),Q;let B=new k81([Q,A],Q.message);return B.code=Q.code,B}return A||Q}class P7A extends Error{constructor(A="The operation was aborted",Q=void 0){if(Q!==void 0&&typeof Q!=="object")throw new az.ERR_INVALID_ARG_TYPE("options","Object",Q);super(A,Q);this.code="ABORT_ERR",this.name="AbortError"}}C6("ERR_ASSERTION","%s",Error);C6("ERR_INVALID_ARG_TYPE",(A,Q,B)=>{if(AE(typeof A==="string","'name' must be a string"),!Array.isArray(Q))Q=[Q];let I="The ";if(A.endsWith(" argument"))I+=`${A} `;else I+=`"${A}" ${A.includes(".")?"property":"argument"} `;I+="must be ";let E=[],C=[],D=[];for(let J of Q)if(AE(typeof J==="string","All expected entries have to be of type string"),y81.includes(J))E.push(J.toLowerCase());else if(f81.test(J))C.push(J);else AE(J!=="object",'The value "object" should be written as "Object"'),D.push(J);if(C.length>0){let J=E.indexOf("object");if(J!==-1)E.splice(E,J,1),C.push("Object")}if(E.length>0){switch(E.length){case 1:I+=`of type ${E[Line truncated
globstar while`,A,Z,Q,N,X),this.matchOne(A.slice(Z),Q.slice(N),B))return this.debug("globstar found match!",Z,Y,X),!0;else{if(X==="."||X===".."||!I.dot&&X.charAt(0)==="."){this.debug("dot detected!",A,Z,Q,N);break}this.debug("globstar swallow a segment, and continue"),Z++}}if(B){if(this.debug(`
>>> no match, partial?`,A,Z,Q,N),Z===Y)return!0}return!1}let U;if(typeof G==="string")U=F===G,this.debug("string match",G,F,U);else U=G.test(F),this.debug("pattern match",G,F,U);if(!U)return!1}if(C===Y&&D===J)return!0;else if(C===Y)return B;else if(D===J)return C===Y-1&&A[C]==="";else throw Error("wtf?")}braceExpand(){return(0,oA.braceExpand)(this.pattern,this.options)}parse(A){(0,hL.assertValidPattern)(A);let Q=this.options;if(A==="**")return oA.GLOBSTAR;if(A==="")return"";let B,I=null;if(B=A.match(DD1))I=Q.dot?JD1:YD1;else if(B=A.match(sC1))I=(Q.nocase?Q.dot?AD1:eC1:Q.dot?tC1:rC1)(B[1]);else if(B=A.match(FD1))I=(Q.nocase?Q.dot?ZD1:GD1:Q.dot?ND1:XD1)(B);else if(B=A.match(QD1))I=Q.dot?ID1:BD1;else if(B=A.match(ED1))I=CD1;let E=_DA.AST.fromGlob(A,this.options).toMMPattern();if(I&&typeof E==="object")Reflect.defineProperty(E,"test",{value:I});return E}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let A=this.set;if(!A.length)return this.regexp=!1,this.regexp;let Q=this.options,B=Q.noglobstar?WD1:Q.dot?VD1:KD1,I=new Set(Q.nocase?["i"]:[]),E=A.map((Y)=>{let J=Y.map((G)=>{if(G instanceof RegExp)for(let F of G.flags.split(""))I.add(F);return typeof G==="string"?MD1(G):G===oA.GLOBSTAR?oA.GLOBSTAR:G._src});return J.forEach((G,F)=>{let Z=J[F+1],N=J[F-1];if(G!==oA.GLOBSTAR||N===oA.GLOBSTAR)return;if(N===void 0)if(Z!==void 0&&Z!==oA.GLOBSTAR)J[F+1]="(?:\\/|"+B+"\\/)?"+Z;else J[F]=B;else if(Z===void 0)J[F-1]=N+"(?:\\/|"+B+")?";else if(Z!==oA.GLOBSTAR)J[F-1]=N+"(?:\\/|\\/"+B+"\\/)"+Z,J[F+1]=oA.GLOBSTAR}),J.filter((G)=>G!==oA.GLOBSTAR).join("/")}).join("|"),[C,D]=A.length>1?["(?:",")"]:["",""];if(E="^"+C+E+D+"$",this.negate)E="^(?!"+E+").+$";try{this.regexp=new RegExp(E,[...I].join(""))}catch(Y){this.regexp=!1}return this.regexp}slashSplit(A){if(this.preserveMultipleSlashes)return A.split("/");else if(this.isWindows&&/^\/\/[^\/]+/.test(A))return["",...A.split(/\/+/)];else return A.split(/\/+/)}match(A,Q=this.partial){if(this.debug("match",A,this.pattern),this.comment)return!1;if(this.empty)return A==="";if(A==="/"&&Q)return!0;let B=this.options;if(this.isWindows)A=A.split("\\").join("/");let I=this.slashSplit(A);this.debug(this.pattern,"split",I);let E=this.set;this.debug(this.pattern,"set",E);let C=I[I.length-1];if(!C)for(let D=I.length-2;!C&&D>=0;D--)C=I[D];for(let D=0;D<E.length;D++){let Y=E[D],J=I;if(B.matchBase&&Y.length===1)J=[C];if(this.matchOne(J,Y,Q)){if(B.flipNegate)return!0;return!this.negate}}if(B.flipNegate)return!1;return this.negate}static defaults(A){return oA.minimatch.defaults(A).Minimatch}}oA.Minimatch=ZJ;var RD1=mk();Object.defineProperty(oA,"AST",{enumerable:!0,get:function(){return RD1.AST}});var qD1=uk();Object.defineProperty(oA,"escape",{enumerable:!0,get:function(){return qD1.escape}});var TD1=_L();Object.defineProperty(oA,"unescape",{enumerable:!0,get:function(){return TD1.unescape}});oA.minimatch.AST=_DA.AST;oA.minimatch.Minimatch=ZJ;oA.minimatch.escape=nC1.escape;oA.minimatch.unescape=aC1.unescape});var bDA=V((fL)=>{Object.defineProperty(fL,"__esModule",{value:!0});fL.LRUCache=void 0;var NJ=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,hDA=new Set,pk=typeof process==="object"&&!!process?process:{},yDA=(A,Q,B,I)=>{typeof pk.emitWarning==="function"?pk.emitWarning(A,Q,B,I):console.error(`[${B}] ${Q}: ${A}`)},yL=globalThis.AbortController,kDA=globalThis.AbortSignal;if(typeof yL>"u"){kDA=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(I,E){this._onabort.push(E)}},yL=class{constructor(){Q()}signal=new kDA;abort(I){if(this.signal.aborted)return;this.signal.reason=I,this.signal.aborted=!0;for(let E of this.signal._onabort)E(I);this.signal.onabort?.(I)}};let A=pk.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",Q=()=>{if(!A)return;A=!1,yDA("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",Q)}}var OD1=(A)=>!hDA.has(A),Xm1=Symbol("type"),WB=(A)=>A&&A===Math.floor(A)&&A>0&&isFinite(A),fDA=(A)=>!WB(A)?null:A<=Math.pow(2,8)?Uint8Array:A<=Math.pow(2,16)?Uint16Array:A<=Math.pow(2,32)?Uint32Array:A<=Number.MAX_SAFE_INTEGER?pN:null;class pN extends Array{constructor(A){super(A);this.fill(0)}}class XJ{heap;length;static#A=!1;static create(A){let Q=fDA(A);if(!Q)return[];XJ.#A=!0;let B=new XJ(A,Q);return XJ.#A=!1,B}constructor(A,Q){if(!XJ.#A)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new Q(A),this.length=0}push(A){this.heap[this.length++]=A}pop(){return this.heap[--this.length]}}class ck{#A;#Q;#I;#B;#D;#T;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalcula Line truncated
`);if(Q.linkname)B+=fh(" linkpath="+Q.linkname+`
`);let I=Q.pax;if(I)for(let E in I)B+=fh(" "+E+"="+I[E]+`
`);return U0.from(B)};zJ.decodePax=function(Q){let B={};while(Q.length){let I=0;while(I<Q.length&&Q[I]!==32)I++;let E=parseInt(U0.toString(Q.subarray(0,I)),10);if(!E)return B;let C=U0.toString(Q.subarray(I+1,E-1)),D=C.indexOf("=");if(D===-1)return B;B[C.slice(0,D)]=C.slice(D+1),Q=Q.subarray(E)}return B};zJ.encode=function(Q){let B=U0.alloc(512),I=Q.name,E="";if(Q.typeflag===5&&I[I.length-1]!=="/")I+="/";if(U0.byteLength(I)!==I.length)return null;while(U0.byteLength(I)>100){let C=I.indexOf("/");if(C===-1)return null;E+=E?"/"+I.slice(0,C):I.slice(0,C),I=I.slice(C+1)}if(U0.byteLength(I)>100||U0.byteLength(E)>155)return null;if(Q.linkname&&U0.byteLength(Q.linkname)>100)return null;if(U0.write(B,I),U0.write(B,wB(Q.mode&4095,6),100),U0.write(B,wB(Q.uid,6),108),U0.write(B,wB(Q.gid,6),116),GF1(Q.size,B,124),U0.write(B,wB(Q.mtime.getTime()/1000|0,11),136),B[156]=48+JF1(Q.type),Q.linkname)U0.write(B,Q.linkname,157);if(U0.copy(uJA,B,257),U0.copy(QF1,B,263),Q.uname)U0.write(B,Q.uname,265);if(Q.gname)U0.write(B,Q.gname,297);if(U0.write(B,wB(Q.devmajor||0,6),329),U0.write(B,wB(Q.devminor||0,6),337),E)U0.write(B,E,345);return U0.write(B,wB(cJA(B),6),148),B};zJ.decode=function(Q,B,I){let E=Q[156]===0?0:Q[156]-48,C=wJ(Q,0,100,B),D=HB(Q,100,8),Y=HB(Q,108,8),J=HB(Q,116,8),G=HB(Q,124,12),F=HB(Q,136,12),Z=YF1(E),N=Q[157]===0?null:wJ(Q,157,100,B),X=wJ(Q,265,32),U=wJ(Q,297,32),W=HB(Q,329,8),$=HB(Q,337,8),H=cJA(Q);if(H===256)return null;if(H!==HB(Q,148,8))throw Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(EF1(Q)){if(Q[345])C=wJ(Q,345,155,B)+"/"+C}else if(CF1(Q));else if(!I)throw Error("Invalid tar header: unknown format.");if(E===0&&C&&C[C.length-1]==="/")E=5;return{name:C,mode:D,uid:Y,gid:J,size:G,mtime:new Date(1000*F),type:Z,linkname:N,uname:X,gname:U,devmajor:W,devminor:$,pax:null}};function EF1(A){return U0.equals(uJA,A.subarray(257,263))}function CF1(A){return U0.equals(BF1,A.subarray(257,263))&&U0.equals(IF1,A.subarray(263,265))}function DF1(A,Q,B){if(typeof A!=="number")return B;if(A=~~A,A>=Q)return Q;if(A>=0)return A;if(A+=Q,A>=0)return A;return 0}function YF1(A){switch(A){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 JF1(A){switch(A){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 pJA(A,Q,B,I){for(;B<I;B++)if(A[B]===Q)return B;return I}function cJA(A){let Q=256;for(let B=0;B<148;B++)Q+=A[B];for(let B=156;B<512;B++)Q+=A[B];return Q}function wB(A,Q){if(A=A.toString(8),A.length>Q)return"7777777777777777777".slice(0,Q)+" ";return"0000000000000000000".slice(0,Q-A.length)+A+" "}function FF1(A,Q,B){Q[B]=128;for(let I=11;I>0;I--)Q[B+I]=A&255,A=Math.floor(A/256)}function GF1(A,Q,B){if(A.toString(8).length>11)FF1(A,Q,B);else U0.write(Q,wB(A,11),B)}function ZF1(A){let Q;if(A[0]===128)Q=!0;else if(A[0]===255)Q=!1;else return null;let B=[],I;for(I=A.length-1;I>0;I--){let D=A[I];if(Q)B.push(D);else B.push(255-D)}let E=0,C=B.length;for(I=0;I<C;I++)E+=B[I]*Math.pow(256,I);return Q?E:-1*E}function HB(A,Q,B){if(A=A.subarray(Q,Q+B),Q=0,A[Q]&128)return ZF1(A);else{while(Q<A.length&&A[Q]===32)Q++;let I=DF1(pJA(A,32,Q,A.length),A.length,A.length);while(Q<I&&A[Q]===0)Q++;if(I===Q)return 0;return parseInt(U0.toString(A.subarray(Q,I)),8)}}function wJ(A,Q,B,I){return U0.toString(A.subarray(Q,pJA(A,0,Q,Q+B)),I)}function fh(A){let Q=U0.byteLength(A),B=Math.floor(Math.log(Q)/Math.log(10))+1;if(Q+B>=Math.pow(10,B))B++;return Q+B+A}});var tJA=V((Iu1,rJA)=>{var{Writable:NF1,Readable:XF1,getStreamError:lJA}=yh(),UF1=_h(),iJA=HJ(),LJ=bh(),WF1=iJA.alloc(0);class nJA{constructor(){this.buffered=0,this.shifted=0,this.queue=new UF1,this._offset=0}push(A){this.buffered+=A.byteLength,this.queue.push(A)}shiftFirst(A){return this._buffered===0?null:this._next(A)}shift(A){if(A>this.buffered)return null;if(A===0)return WF1;let Q=this._next(A);if(A===Q.byteLength)return Q;let B=[Q];while((A-=Q.byteLength)>0)Q=this._next(A),B.push(Q);return iJA.concat(B)}_next(A){let Q=this.queue.peek(),B=Q.byteLength-this._offset;if(A>=B){let I=this._offset?Q.subarray(this._offset,Q.byteLength):Q;return this.queue.shift(),this._offset=0,this.buffered-=B,this.shifted+=B,I}return this.buffered-=A,this.shifted+=A,Q.subarray(this._offset,this._offset+=A)}}class aJA extends XF1{constructor(A,Q,B){super();this.header=Q,this.offset=B,this._parent=A}_read(A){if(this.header.size===0)this.push(null);if(this._parent._stream===this)this._parent._update();A(null)}_predestroy(){this._parent.destroy(lJA(this))}_detach(){if(this._parent._stream===this)this._pa Line truncated
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function uFA(A){return Object.prototype.toString.call(A)==="[object Object]"}function XG1(A){var Q,B;if(uFA(A)===!1)return!1;if(Q=A.constructor,Q===void 0)return!0;if(B=Q.prototype,uFA(B)===!1)return!1;if(B.hasOwnProperty("isPrototypeOf")===!1)return!1;return!0}th.isPlainObject=XG1});var oFA=V((Qy)=>{Object.defineProperty(Qy,"__esModule",{value:!0});var UG1=YX(),WG1=y5();function VG1(A){if(!A)return{};return Object.keys(A).reduce((Q,B)=>{return Q[B.toLowerCase()]=A[B],Q},{})}function lFA(A,Q){let B=Object.assign({},A);return Object.keys(Q).forEach((I)=>{if(UG1.isPlainObject(Q[I]))if(!(I in A))Object.assign(B,{[I]:Q[I]});else B[I]=lFA(A[I],Q[I]);else Object.assign(B,{[I]:Q[I]})}),B}function pFA(A){for(let Q in A)if(A[Q]===void 0)delete A[Q];return A}function Ay(A,Q,B){if(typeof Q==="string"){let[E,C]=Q.split(" ");B=Object.assign(C?{method:E,url:C}:{url:E},B)}else B=Object.assign({},Q);B.headers=VG1(B.headers),pFA(B),pFA(B.headers);let I=lFA(A||{},B);if(A&&A.mediaType.previews.length)I.mediaType.previews=A.mediaType.previews.filter((E)=>!I.mediaType.previews.includes(E)).concat(I.mediaType.previews);return I.mediaType.previews=I.mediaType.previews.map((E)=>E.replace(/-preview/,"")),I}function KG1(A,Q){let B=/\?/.test(A)?"&":"?",I=Object.keys(Q);if(I.length===0)return A;return A+B+I.map((E)=>{if(E==="q")return"q="+Q.q.split("+").map(encodeURIComponent).join("+");return`${E}=${encodeURIComponent(Q[E])}`}).join("&")}var $G1=/\{[^}]+\}/g;function HG1(A){return A.replace(/^\W+|\W+$/g,"").split(/,/)}function wG1(A){let Q=A.match($G1);if(!Q)return[];return Q.map(HG1).reduce((B,I)=>B.concat(I),[])}function cFA(A,Q){return Object.keys(A).filter((B)=>!Q.includes(B)).reduce((B,I)=>{return B[I]=A[I],B},{})}function iFA(A){return A.split(/(%[0-9A-Fa-f]{2})/g).map(function(Q){if(!/%[0-9A-Fa-f]/.test(Q))Q=encodeURI(Q).replace(/%5B/g,"[").replace(/%5D/g,"]");return Q}).join("")}function TJ(A){return encodeURIComponent(A).replace(/[!'()*]/g,function(Q){return"%"+Q.charCodeAt(0).toString(16).toUpperCase()})}function JX(A,Q,B){if(Q=A==="+"||A==="#"?iFA(Q):TJ(Q),B)return TJ(B)+"="+Q;else return Q}function qJ(A){return A!==void 0&&A!==null}function eh(A){return A===";"||A==="&"||A==="?"}function zG1(A,Q,B,I){var E=A[B],C=[];if(qJ(E)&&E!=="")if(typeof E==="string"||typeof E==="number"||typeof E==="boolean"){if(E=E.toString(),I&&I!=="*")E=E.substring(0,parseInt(I,10));C.push(JX(Q,E,eh(Q)?B:""))}else if(I==="*")if(Array.isArray(E))E.filter(qJ).forEach(function(D){C.push(JX(Q,D,eh(Q)?B:""))});else Object.keys(E).forEach(function(D){if(qJ(E[D]))C.push(JX(Q,E[D],D))});else{let D=[];if(Array.isArray(E))E.filter(qJ).forEach(function(Y){D.push(JX(Q,Y))});else Object.keys(E).forEach(function(Y){if(qJ(E[Y]))D.push(TJ(Y)),D.push(JX(Q,E[Y].toString()))});if(eh(Q))C.push(TJ(B)+"="+D.join(","));else if(D.length!==0)C.push(D.join(","))}else if(Q===";"){if(qJ(E))C.push(TJ(B))}else if(E===""&&(Q==="&"||Q==="?"))C.push(TJ(B)+"=");else if(E==="")C.push("");return C}function LG1(A){return{expand:MG1.bind(null,A)}}function MG1(A,Q){var B=["+","#",".","/",";","?","&"];return A.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(I,E,C){if(E){let Y="",J=[];if(B.indexOf(E.charAt(0))!==-1)Y=E.charAt(0),E=E.substr(1);if(E.split(/,/g).forEach(function(G){var F=/([^:\*]*)(?::(\d+)|(\*))?/.exec(G);J.push(zG1(Q,Y,F[1],F[2]||F[3]))}),Y&&Y!=="+"){var D=",";if(Y==="?")D="&";else if(Y!=="#")D=Y;return(J.length!==0?Y:"")+J.join(D)}else return J.join(",")}else return iFA(C)})}function nFA(A){let Q=A.method.toUpperCase(),B=(A.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),I=Object.assign({},A.headers),E,C=cFA(A,["method","baseUrl","url","headers","request","mediaType"]),D=wG1(B);if(B=LG1(B).expand(C),!/^http/.test(B))B=A.baseUrl+B;let Y=Object.keys(A).filter((F)=>D.includes(F)).concat("baseUrl"),J=cFA(C,Y);if(!/application\/octet-stream/i.test(I.accept)){if(A.mediaType.format)I.accept=I.accept.split(/,/).map((F)=>F.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${A.mediaType.format}`)).join(",");if(A.mediaType.previews.length){let F=I.accept.match(/[\w-]+(?=-preview)/g)||[];I.accept=F.concat(A.mediaType.previews).map((Z)=>{let N=A.mediaType.format?`.${A.mediaType.format}`:"+json";return`application/vnd.github.${Z}-preview${N}`}).join(",")}}if(["GET","HEAD"].includes(Q))B=KG1(B,J);else if("data"in J)E=J.data;else if(Object.keys(J).length)E=J;else I["content-length"]=0;if(!I["content-type"]&&typeof E<"u")I["content-type"]="application/json; charset=utf-8";if(["PATCH","PUT"].includes(Q)&&typeof E>"u")E="";return Object.assign({method:Q,url:B,headers:I},typeof E<"u"?{body:E}:null,A.request?{request:A.request}:null)}function RG1(A,Q,B){return nFA(Ay(A,Q,B))}function aFA(A,Q){let B=Ay(A,Q),I=RG1.bind(null,B);return Object.assign(I,{DEFAULTS:B,defaults:aFA.bind(null,B),merge:Ay.bind(null,B),parse:nFA})}var qG1="6.0.12",TG1=`octokit-endpoint.js/${qG1} ${WG1.getUserAgent()}`,OG1={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"applicatioLine truncated
\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ "},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1163:"cp1163",csiLine truncated
\v\f\r\x0E\x0F\x10ỨỰỲỶỸÝỴ\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ`},georgianacademy:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},georgianps:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},pt154:{type:"_sbcs",chars:"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},viscii:{type:"_sbcs",chars:`\x00\x01Ẳ\x03\x04ẴẪ\x07\b
\v\f\r\x0E\x0F\x10\x11\x12\x13Ỷ\x15\x16\x17\x18Ỹ\x1A\x1B\x1C\x1DỴ\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ`},iso646cn:{type:"_sbcs",chars:`\x00\x01\x02\x03\x04\x05\x06\x07\b
\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������`},iso646jp:{type:"_sbcs",chars:`\x00\x01\x02\x03\x04\x05\x06\x07\b
\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������`},hproman8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¾—¼½ªº«■»±�"},macintosh:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"}}});var cGA=V((pGA)=>{var yy=o3().Buffer;pGA._dbcs=s3;var J6=-1,uGA=-2,r8=-10,D9=-1000,vJ=Array(256),XX=-1;for(NX=0;NX<256;NX++)vJ[NX]=J6;var NX;function s3(A,Q){if(this.encodingName=A.encodingName,!A)throw Error("DBCS codec is called without the data.");if(!A.table)throw Error("Encoding '"+this.encodingName+"' has no data.");var B=A.table();this.decodeTables=[],this.decodeTables[0]=vJ.slice(0),this.decodeTableSeq=[];for(var I=0;I<B.length;I++)this._addDecodeChunk(B[I]);if(typeof A.gb18030==="function"){this.gb18030=A.gb18030();var E=this.decodeTables.length;this.decodeTables.push(vJ.slice(0));var C=this.decodeTables.length;this.decodeTables.push(vJ.slice(0));var D=this.decodeTables[0];for(var I=129;I<=254;I++){var Y=this.decodeTables[D9-D[I]];for(var J=48;J<=57;J++){if(Y[J]===J6)Y[J]=D9-E;else if(Y[J]>D9)throw Error("gb18030 decode tables conflict at byte 2");var G=this.decodeTables[D9-Y[J]];for(var F=129;F<=254;F++){if(G[F]===J6)G[F]=D9-C;else if(G[F]===D9-C)continue;else if(G[F]>D9)throw Error("gb18030 decode tables conflict at byte 3");var Z=this.decodeTables[D9-G[F]];for(var N=48;N<=57;N++)if(Z[N]===J6)Z[N]=uGA}}}}this.defaultCharUnicode=Q.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var X={};if(A.encodeSkipVals)for(var I=0;I<A.encodeSkipVals.length;I++){var U=A.encodeSkipVals[I];if(typeof U==="number")X[U]=!0;else for(var J=U.from;J<=U.to;J++)X[J]=!0}if(this._fillEncodeTable(0,0,X),A.encodeAdd){for(var W in A.encodeAdd)if(Object.prototype.hasOwnProperty.call(A.encodeAdd,W))this._setEncodeChar(W.charCodeAt(0),A.encodeAdd[W])}if(this.defCharSB=this.encodeTable[0][Q.defaultCharSingleByte.charCodeAt(0)],this.defCharSB===J6)this.defCharSB=this.encodeTable[0]["?"];if(this.defCharSB===J6)this.defCharSB=63}s3.prototype.encoder=OM;s3.prototype.decoder=fy;s3.prototype._getDecodeTrieNode=function(A){var Q=[];for(;A>0;A>>>=8)Q.push(A&255);if(Q.length==0)Q.push(0);var B=this.decodeTables[0];for(var I=Q.length-1;I>0;I--){var E=B[Q[I]];if(E==J6)B[Q[I]]=D9-this.decodeTables.length,this.decodeTables.push(B=vJ.slice(0));else if(E<=D9)B=this.decodeTables[D9-E];else throw Error("Overwrite byte in "+this.encodingName+", addr: "+A.toString(16))}return B};s3.prototype._addDecodeChunk=function(A){var Q=parseInt(A[0],16),B=this._getDecodeTrieNode(Q);Q=Q&255;for(var I=1;I<A.length;I++){var E=A[I];if(typeof E==="string")for(var C=0;C<E.length;){var D=E.charCodeAt(C++);if(55296<=D&&D<56320){var Y=E.charCodeAt(C++);if(56320<=Y&&Y<57344)B[Q++]=65536+(D-55296)*1024+(Y-56320);else throw Error("Incorrect surrogate pair in "+this.encodingName+" at chunk "+A[0])}else if(4080<D&&D<=4095){var J=4095-D+2,G=[];for(var F=0;F<J;F++)G.push(E.charCodeAt(C++));B[Q++]=r8-this.decodeTableSeq.length,this.decodeTableSeq.push(G)}else B[Q++]=D}else if(typeof E==="number"){var Z=B[Q-1]+1;for(var C=0;C<E;C++)B[Q++]=Z++}else throw Error("Incorrect type '"+typeof E+"' given in "+this.encodingName+" at chunk "+A[0])}if(Q>255)throw Error("Incorrect chunk in "+this.encoLine truncated
`+A.errors.map((Q)=>` - ${Q.message}`).join(`
`)}class Zf extends Error{constructor(A,Q,B){super(LN1(B));if(this.request=A,this.headers=Q,this.response=B,this.name="GraphqlResponseError",this.errors=B.errors,this.data=B.data,Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}}var MN1=["method","baseUrl","url","headers","request","query","mediaType"],RN1=["query","method","url"],nZA=/\/api\/v3\/?$/;function qN1(A,Q,B){if(B){if(typeof Q==="string"&&"query"in B)return Promise.reject(Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let D in B){if(!RN1.includes(D))continue;return Promise.reject(Error(`[@octokit/graphql] "${D}" cannot be used as variable name`))}}let I=typeof Q==="string"?Object.assign({query:Q},B):Q,E=Object.keys(I).reduce((D,Y)=>{if(MN1.includes(Y))return D[Y]=I[Y],D;if(!D.variables)D.variables={};return D.variables[Y]=I[Y],D},{}),C=I.baseUrl||A.endpoint.DEFAULTS.baseUrl;if(nZA.test(C))E.url=C.replace(nZA,"/api/graphql");return A(E).then((D)=>{if(D.data.errors){let Y={};for(let J of Object.keys(D.headers))Y[J]=D.headers[J];throw new Zf(E,Y,D.data)}return D.data.data})}function Nf(A,Q){let B=A.defaults(Q);return Object.assign((E,C)=>{return qN1(B,E,C)},{defaults:Nf.bind(null,B),endpoint:aZA.request.endpoint})}var TN1=Nf(aZA.request,{headers:{"user-agent":`octokit-graphql.js/${zN1} ${wN1.getUserAgent()}`},method:"POST",url:"/graphql"});function ON1(A){return Nf(A,{method:"POST",url:"/graphql"})}LX.GraphqlResponseError=Zf;LX.graphql=TN1;LX.withCustomRequest=ON1});var sZA=V((Xf)=>{Object.defineProperty(Xf,"__esModule",{value:!0});var jN1=/^v1\./,PN1=/^ghs_/,gN1=/^ghu_/;async function _N1(A){let Q=A.split(/\./).length===3,B=jN1.test(A)||PN1.test(A),I=gN1.test(A);return{type:"token",token:A,tokenType:Q?"app":B?"installation":I?"user-to-server":"oauth"}}function vN1(A){if(A.split(/\./).length===3)return`bearer ${A}`;return`token ${A}`}async function SN1(A,Q,B,I){let E=Q.endpoint.merge(B,I);return E.headers.authorization=vN1(A),Q(E)}var xN1=function(Q){if(!Q)throw Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof Q!=="string")throw Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return Q=Q.replace(/^(token|bearer) +/i,""),Object.assign(_N1.bind(null,Q),{hook:SN1.bind(null,Q)})};Xf.createTokenAuth=xN1});var eZA=V((Uf)=>{Object.defineProperty(Uf,"__esModule",{value:!0});var kN1=y5(),hN1=rh(),rZA=SZA(),yN1=oZA(),fN1=sZA();function bN1(A,Q){if(A==null)return{};var B={},I=Object.keys(A),E,C;for(C=0;C<I.length;C++){if(E=I[C],Q.indexOf(E)>=0)continue;B[E]=A[E]}return B}function dN1(A,Q){if(A==null)return{};var B=bN1(A,Q),I,E;if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(A);for(E=0;E<C.length;E++){if(I=C[E],Q.indexOf(I)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(A,I))continue;B[I]=A[I]}}return B}var tZA="3.6.0",mN1=["authStrategy"];class hM{constructor(A={}){let Q=new hN1.Collection,B={baseUrl:rZA.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},A.request,{hook:Q.bind(null,"request")}),mediaType:{previews:[],format:""}};if(B.headers["user-agent"]=[A.userAgent,`octokit-core.js/${tZA} ${kN1.getUserAgent()}`].filter(Boolean).join(" "),A.baseUrl)B.baseUrl=A.baseUrl;if(A.previews)B.mediaType.previews=A.previews;if(A.timeZone)B.headers["time-zone"]=A.timeZone;if(this.request=rZA.request.defaults(B),this.graphql=yN1.withCustomRequest(this.request).defaults(B),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},A.log),this.hook=Q,!A.authStrategy)if(!A.auth)this.auth=async()=>({type:"unauthenticated"});else{let E=fN1.createTokenAuth(A.auth);Q.wrap("request",E.hook),this.auth=E}else{let{authStrategy:E}=A,C=dN1(A,mN1),D=E(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:C},A.auth));Q.wrap("request",D.hook),this.auth=D}this.constructor.plugins.forEach((E)=>{Object.assign(this,E(this,A))})}static defaults(A){return class extends this{constructor(...B){let I=B[0]||{};if(typeof A==="function"){super(A(I));return}super(Object.assign({},A,I,I.userAgent&&A.userAgent?{userAgent:`${I.userAgent} ${A.userAgent}`}:null))}}}static plugin(...A){var Q;let B=this.plugins;return Q=class extends this{},Q.plugins=B.concat(A.filter((E)=>!B.includes(E))),Q}}hM.VERSION=tZA;hM.plugins=[];Uf.Octokit=hM});var YNA=V((yM)=>{Object.defineProperty(yM,"__esModule",{value:!0});function ANA(A,Q){var B=Object.keys(A);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(A);if(Q)I=I.filter(function(E){return Object.getOwnPropertyDescriptor(A,E).enumerable});B.push.apply(B,I)}return B}function QNA(A){for(var Q=1;Q<arguments.length;Q++){var B=arguments[Q]!=null?arguments[Q]:{};if(Q%2)ANA(Object(B),!0).forEach(function(I){uN1(A,I,B[I])});else if(Object.getOwnPropertyDescriptors)Object.defineProperties(A,Object.getOwnPropertyDescriptors(B));else ANA(Object(B)).forEach(function(I){Object.defineProperty(A,I,Object.getOwnPropertyDescriptor(B,I) Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);if(J.length>1)N6.warning("Multiple artifacts found, defaulting to first.");let G={workflowRunBackendId:J[0].workflowRunBackendId,workflowJobRunBackendId:J[0].workflowJobRunBackendId,name:J[0].name},{signedUrl:F}=yield I.GetSignedArtifactURL(G);N6.info(`Redirecting to blob download url: ${AXA(F)}`);try{N6.info(`Starting download of artifact to: ${B}`);let Z=yield QXA(F,B);if(N6.info("Artifact download completed successfully."),Q===null||Q===void 0?void 0:Q.expectedHash){if((Q===null||Q===void 0?void 0:Q.expectedHash)!==Z.sha256Digest)E=!0,N6.debug(`Computed digest: ${Z.sha256Digest}`),N6.debug(`Expected digest: ${Q.expectedHash}`)}}catch(Z){throw Error(`Unable to download and extract artifact: ${Z.message}`)}return{downloadPath:B,digestMismatch:E}})}u4.downloadArtifactInternal=aX1;function IXA(A=(0,mX1.getGitHubWorkspaceDir)()){return pJ(this,void 0,void 0,function*(){if(!(yield iX1(A)))N6.debug(`Artifact destination folder does not exist, creating: ${A}`),yield eNA.default.mkdir(A,{recursive:!0});else N6.debug(`Artifact destination folder already exists: ${A}`);return A})}});var bM=V((A3)=>{var oX1=A3&&A3.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),sX1=A3&&A3.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),rX1=A3&&A3.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))oX1(Q,A,B)}return sX1(Q,A),Q};Object.defineProperty(A3,"__esModule",{value:!0});A3.getRetryOptions=void 0;var tX1=rX1(m1()),eX1=5,AU1=[400,401,403,404,422];function QU1(A,Q=eX1,B=AU1){var I;if(Q<=0)return[{enabled:!1},A.request];let E={enabled:!0};if(B.length>0)E.doNotRetry=B;let C=Object.assign(Object.assign({},A.request),{retries:Q});return tX1.debug(`GitHub client configured with: (retries: ${C.retries}, retry-exempt-status-code: ${(I=E.doNotRetry)!==null&&I!==void 0?I:"octokit default: [400, 401, 403, 404, 422]"})`),[E,C]}A3.getRetryOptions=QU1});var dM=V((zf)=>{Object.defineProperty(zf,"__esModule",{value:!0});var BU1="1.0.4";function CXA(A){A.hook.wrap("request",(Q,B)=>{A.log.debug("request",B);let I=Date.now(),E=A.request.endpoint.parse(B),C=E.url.replace(B.baseUrl,"");return Q(B).then((D)=>{return A.log.info(`${E.method} ${C} - ${D.status} in ${Date.now()-I}ms`),D}).catch((D)=>{throw A.log.info(`${E.method} ${C} - ${D.status} in ${Date.now()-I}ms`),D})})}CXA.VERSION=BU1;zf.requestLog=CXA});var DXA=V((Lf,Mf)=>{(function(A,Q){typeof Lf==="object"&&typeof Mf<"u"?Mf.exports=Q():typeof define==="function"&&define.amd?define(Q):A.Bottleneck=Q()})(Lf,function(){var A=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Q(K){return K&&K.default||K}var B=function(K,q,j={}){var u,m,a;for(u in q)a=q[u],j[u]=(m=K[u])!=null?m:a;return j},I=function(K,q,j={}){var u,m;for(u in K)if(m=K[u],q[u]!==void 0)j[u]=m;return j},E={load:B,overwrite:I},C;C=class{constructor(q,j){this.incr=q,this.decr=j,this._first=null,this._last=null,this.length=0}push(q){var j;if(this.length++,typeof this.incr==="function")this.incr();if(j={value:q,prev:this._last,next:null},this._last!=null)this._last.next=j,this._last=j;else this._first=this._last=j;return}shift(){var q;if(this._first==null)return;else if(this.length--,typeof this.decr==="function")this.decr();if(q=this._first.value,(this._first=this._first.next)!=null)this._first.prev=null;else this._last=null;return q}first(){if(this._first!=null)return this._first.value}getArray(){var q,j,u;q=this._first,u=[];while(q!=null)u.push((j=q,q=q.next,j.value));return u}forEachShift(q){var j=this.shift();while(j!=null)q(j),j=this.shift();return}debug(){var q,j,u,m,a;q=this._first,a=[];while(q!=null)a.push((j=q,q=q.next,{value:j.value,prev:(u=j.prev)!=null?u.value:void 0,next:(m=j.next)!=null?m.value:void 0}));return a}};var D=C,Y;Y=class{constructor(q){if(this.instance=q,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw Error("An Emitter already exists for this object");this.instance.on=(j,u)=>{return this._addListener(j,"many",u)},this.instance.once=(j,u)=>{return this._addListener(j,"once",u)},this.instance.removeAllListeners=(j=null)=>{if(j!=null)return delete this._events[j];else return this._events={}}}_addListener(q,j,u){var m;if((m=this._events)[q]==null)m[q]=[];return this._events[q].push({cb:u,status:j}),this.instance}listenerCount(q){if(this._events[q]!=null)return this._events[q].length;else return 0}async trigger(q,...j){var u,m;try{if(q!=="debug")this.trigLine truncated
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 Z=F.data.artifacts[0];if(F.data.artifacts.length>1)Z=F.data.artifacts.sort((N,X)=>X.id-N.id)[0],ZXA.debug(`More than one artifact found for a single name, returning newest (id: ${Z.id})`);return{artifact:{name:Z.name,id:Z.id,size:Z.size_in_bytes,createdAt:Z.created_at?new Date(Z.created_at):void 0,digest:Z.digest}}})}b9.getArtifactPublic=$U1;function HU1(A){var Q;return GXA(this,void 0,void 0,function*(){let B=(0,KU1.internalArtifactTwirpClient)(),{workflowRunBackendId:I,workflowJobRunBackendId:E}=(0,WU1.getBackendIdsFromToken)(),C={workflowRunBackendId:I,workflowJobRunBackendId:E,nameFilter:FXA.StringValue.create({value:A})},D=yield B.ListArtifacts(C);if(D.artifacts.length===0)throw new Rf.ArtifactNotFoundError(`Artifact not found for name: ${A}
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 Y=D.artifacts[0];if(D.artifacts.length>1)Y=D.artifacts.sort((J,G)=>Number(G.databaseId)-Number(J.databaseId))[0],ZXA.debug(`More than one artifact found for a single name, returning newest (id: ${Y.databaseId})`);return{artifact:{name:Y.name,id:Number(Y.databaseId),size:Number(Y.size),createdAt:Y.createdAt?FXA.Timestamp.toDate(Y.createdAt):void 0,digest:(Q=Y.digest)===null||Q===void 0?void 0:Q.value}}})}b9.getArtifactInternal=HU1});var WXA=V((vB)=>{var XXA=vB&&vB.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function Y(F){try{G(I.next(F))}catch(Z){D(Z)}}function J(F){try{G(I.throw(F))}catch(Z){D(Z)}}function G(F){F.done?C(F.value):E(F.value).then(Y,J)}G((I=I.apply(A,Q||[])).next())})};Object.defineProperty(vB,"__esModule",{value:!0});vB.deleteArtifactInternal=vB.deleteArtifactPublic=void 0;var NXA=m1(),wU1=RX(),zU1=GD(),LU1=bM(),MU1=MX(),RU1=dM(),qU1=uM(),TU1=UD(),OU1=jI(),jU1=h7(),PU1=qf(),UXA=S3();function gU1(A,Q,B,I,E){var C;return XXA(this,void 0,void 0,function*(){let[D,Y]=(0,LU1.getRetryOptions)(MU1.defaults),J={log:void 0,userAgent:(0,zU1.getUserAgentString)(),previews:void 0,retry:D,request:Y},G=(0,wU1.getOctokit)(E,J,qU1.retry,RU1.requestLog),F=yield(0,PU1.getArtifactPublic)(A,Q,B,I,E),Z=yield G.rest.actions.deleteArtifact({owner:B,repo:I,artifact_id:F.artifact.id});if(Z.status!==204)throw new UXA.InvalidResponseError(`Invalid response from GitHub API: ${Z.status} (${(C=Z===null||Z===void 0?void 0:Z.headers)===null||C===void 0?void 0:C["x-github-request-id"]})`);return{id:F.artifact.id}})}vB.deleteArtifactPublic=gU1;function _U1(A){return XXA(this,void 0,void 0,function*(){let Q=(0,TU1.internalArtifactTwirpClient)(),{workflowRunBackendId:B,workflowJobRunBackendId:I}=(0,OU1.getBackendIdsFromToken)(),E={workflowRunBackendId:B,workflowJobRunBackendId:I,nameFilter:jU1.StringValue.create({value:A})},C=yield Q.ListArtifacts(E);if(C.artifacts.length===0)throw new UXA.ArtifactNotFoundError(`Artifact not found for name: ${A}`);let D=C.artifacts[0];if(C.artifacts.length>1)D=C.artifacts.sort((G,F)=>Number(F.databaseId)-Number(G.databaseId))[0],(0,NXA.debug)(`More than one artifact found for a single name, returning newest (id: ${D.databaseId})`);let Y={workflowRunBackendId:D.workflowRunBackendId,workflowJobRunBackendId:D.workflowJobRunBackendId,name:D.name},J=yield Q.DeleteArtifact(Y);return(0,NXA.info)(`Artifact '${A}' (ID: ${J.artifactId}) deleted`),{id:Number(J.artifactId)}})}vB.deleteArtifactInternal=_U1});var $XA=V((SB)=>{var VXA=SB&&SB.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function Y(F){try{G(I.next(F))}catch(Z){D(Z)}}function J(F){try{G(I.throw(F))}catch(Z){D(Z)}}function G(F){F.done?C(F.value):E(F.value).then(Y,J)}G((I=I.apply(A,Q||[])).next())})};Object.defineProperty(SB,"__esModule",{value:!0});SB.listArtifactsInternal=SB.listArtifactsPublic=void 0;var gX=m1(),vU1=RX(),SU1=GD(),xU1=bM(),kU1=MX(),hU1=dM(),yU1=uM(),fU1=UD(),bU1=jI(),dU1=h7(),Tf=1000,pM=100,mU1=Tf/pM;function uU1(A,Q,B,I,E=!1){return VXA(this,void 0,void 0,function*(){(0,gX.info)(`Fetching artifact list for workflow run ${A} in repository ${Q}/${B}`);let C=[],[D,Y]=(0,xU1.getRetryOptions)(kU1.defaults),J={log:void 0,userAgent:(0,SU1.getUserAgentString)(),previews:void 0,retry:D,request:Y},G=(0,vU1.getOctokit)(I,J,yU1.retry,hU1.requestLog),F=1,{data:Z}=yield G.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:Q,repo:B,run_id:A,per_page:pM,page:F}),N=Math.ceil(Z.total_count/pM);if(Z.total_count>Tf)(0,gX.warning)(`Workflow run ${A} has more than 1000 artifacts. Results will be incomplete as only the first ${Tf} artifacts will be returned`),N=mU1;for(let U of Z.artifacts)C.push({name:U.name,id:U.id,size:U.size_in_bytes,createdAt:U.created_at?new Date(U.created_at):void 0,digest:U.digest});F++;for(F;F<N;F++){(0,gX.debug)(`Fetching page ${F} of artifact list`);let{data:U}=yield G.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:Q,repo:B,run_id:A,per_page:pM,page:F});for(let W of U.artifacts)C.push({name:W.name,id:W.id,size:W.size_in_bytes,createdAt:W.created_at?new Date(W.created_at):void 0,digest:W.digest})}if(E)C=KXA(C);return(0,gX.info)(`Found ${C.length} artifact(s)`),{artifacts:C}})}SB.listArtifactsPublic=uU1;function pU1(A=!1){return VXA(this,void 0,void 0,function*(){let Q=(0,fU1.internalArtifactTwirpClient)(),{workflowRunBackendId:B,workflowJobRunBackendId:I}=(0,bU1.getBackendIdsFromToken)(),E={workflowRunBackendId:B,workflowJobRunBackendId:I},D=(yield Q.ListArtifacts(E)).artifacts.map((Y)=>{var J;return{name:Y.name,id:Number(Y.databaseId),size:Number(Y.size),createdAt:Y.createdAt?dU1.Timestamp.toDate(Y.createdAt):void 0,digest:(J=Y.digest)===null||J===void 0?voi Line truncated
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).`),E}})}downloadArtifact(A,Q){return _X(this,void 0,void 0,function*(){try{if((0,SX.isGhes)())throw new xX.GHESNotSupportedError;if(Q===null||Q===void 0?void 0:Q.findBy){let{findBy:{repositoryOwner:B,repositoryName:I,token:E}}=Q,C=cU1(Q,["findBy"]);return(0,HXA.downloadArtifactPublic)(A,B,I,E,C)}return(0,HXA.downloadArtifactInternal)(A,Q)}catch(B){throw(0,vX.warning)(`Download Artifact failed with error: ${B}.
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).`),B}})}listArtifacts(A){return _X(this,void 0,void 0,function*(){try{if((0,SX.isGhes)())throw new xX.GHESNotSupportedError;if(A===null||A===void 0?void 0:A.findBy){let{findBy:{workflowRunId:Q,repositoryOwner:B,repositoryName:I,token:E}}=A;return(0,LXA.listArtifactsPublic)(Q,B,I,E,A===null||A===void 0?void 0:A.latest)}return(0,LXA.listArtifactsInternal)(A===null||A===void 0?void 0:A.latest)}catch(Q){throw(0,vX.warning)(`Listing Artifacts failed with error: ${Q}.
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).`),Q}})}getArtifact(A,Q){return _X(this,void 0,void 0,function*(){try{if((0,SX.isGhes)())throw new xX.GHESNotSupportedError;if(Q===null||Q===void 0?void 0:Q.findBy){let{findBy:{workflowRunId:B,repositoryOwner:I,repositoryName:E,token:C}}=Q;return(0,zXA.getArtifactPublic)(A,B,I,E,C)}return(0,zXA.getArtifactInternal)(A)}catch(B){throw(0,vX.warning)(`Get Artifact failed with error: ${B}.
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).`),B}})}deleteArtifact(A,Q){return _X(this,void 0,void 0,function*(){try{if((0,SX.isGhes)())throw new xX.GHESNotSupportedError;if(Q===null||Q===void 0?void 0:Q.findBy){let{findBy:{repositoryOwner:B,repositoryName:I,workflowRunId:E,token:C}}=Q;return(0,wXA.deleteArtifactPublic)(A,E,B,I,C)}return(0,wXA.deleteArtifactInternal)(A)}catch(B){throw(0,vX.warning)(`Delete Artifact failed with error: ${B}.
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).`),B}})}}xB.DefaultArtifactClient=MXA});var qXA=V((RXA)=>{Object.defineProperty(RXA,"__esModule",{value:!0})});var TXA=V((Q3)=>{var iU1=Q3&&Q3.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),jf=Q3&&Q3.__exportStar||function(A,Q){for(var B in A)if(B!=="default"&&!Object.prototype.hasOwnProperty.call(Q,B))iU1(Q,A,B)};Object.defineProperty(Q3,"__esModule",{value:!0});var nU1=Of();jf(qXA(),Q3);jf(S3(),Q3);jf(Of(),Q3);var aU1=new nU1.DefaultArtifactClient;Q3.default=aU1});var Pf=V((cM)=>{Object.defineProperty(cM,"__esModule",{value:!0});cM.Context=void 0;var OXA=require("fs"),oU1=require("os");class jXA{constructor(){var A,Q,B;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,OXA.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,OXA.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let I=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${I} does not exist${oU1.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(A=process.env.GITHUB_API_URL)!==null&&A!==void 0?A:"https://api.github.com",this.serverUrl=(Q=process.env.GITHUB_SERVER_URL)!==null&&Q!==void 0?Q:"https://github.com",this.graphqlUrl=(B=process.env.GITHUB_GRAPHQL_URL)!==null&&B!==void 0?B:"https://api.github.com/graphql"}get issue(){let A=this.payload;return Object.assign(Object.assign({},this.repo),{number:(A.issue||A.pull_request||A).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[A,Q]=process.env.GITHUB_REPOSITORY.split("/");return{owner:A,repo:Q}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}cM.Context=jXA});var _XA=V((G4)=>{var sU1=G4&&G4.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),rU1=G4&&G4.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),tU1=G4&&G4.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))sU1(Q,A,B)}return rU1(Q,A),Q},eU1=G4&&G4.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function Y(F){try{G(I.next(F))}catch(Z){D(Z)}}function J(F){try{G(I.throw(F))}catch(Z){D(Z)}}function G(F){F.done?C(F.value):E(F.value).then(Y,J)}G((I=I.apply(A,Q||[])).next())})};Object.defineProperty(G4,"__esModule",{value:!0});G4.getApiBaseUrl=G4.getProxyFetch=G4.getProxyAgentDispatcher=G4.getProxyAgent=G4.getAuthString=void 0;var PXA=tU1(O8()),AW1=xj();function QW1(A,Q){if(!A&&!Q.auth)throw Error("Parameter token or opts.auth is required");else if(A&&Q.auth)throw Error("Parameters token and opts.auth may not both be specified");return typeof Q.auth==="string"?Q.auth:`token ${A}`}G4.getAuthString=QW1;function BW1(A){return new PXA.HttpClient().getAgent(A)}G4.getProxyAgent=BW1;function gXA(A){return new PXA.HttpClient().getAgentDispatcher(A)}G4.getProxyAgentDispatcher=gXA;function IW1(A){let Q=gXA(A);return(I,E)=>eU1(this,void 0,void 0,function*(){return(0,AW1.fetch)(I,Object.assign(Object.assign({},E),{dispatcher:Q}))})}G4.getProxyFetch=IW1;function EW1(){return process.env.GITHUB_API_URL||"https://api.github.com"}G4.getApiBaseUrl=EW1});var dXA=V((fp1,bXA)=>{var{defineProperty:vf,getOwnPropertyDescriptor:CW1,getOwnPropertyNames:DW1}=Object,YW1=Object.prototype.hasOwnProperty,JW1=(A,Q)=>{for(var B in Q)vf(A,B,{get:Q[B],enumerable:!0})},FW1=(A,Q,B,I)=>{if(Q&&typeof Q==="object"||typeof Q==="function"){for(let E of DW1(Q))if(!YW1.call(A,E)&&E!==B)vf(A,E,{get:()=>Q[E],enumerable:!(I=CW1(Q,E))||I.enumerable})}return A},GW1=(A)=>FW1(vf({},"__esModule",{value:!0}),A),xXA={};JW1(xXA,{endpoint:()=>qW1});bXA.exports=GW1(xXA);var ZW1=y5(),NW1="9.0.6",XW1=`octokit-endpoint.js/${NW1} ${(0,ZW1.getUserAgent)()}`,UW1={method:"GET",baseUrl:"https://api.gith Line truncated
`+A.errors.map((Q)=>` - ${Q.message}`).join(`
`)}var tXA=class extends Error{constructor(A,Q,B){super(CV1(B));if(this.request=A,this.headers=Q,this.response=B,this.name="GraphqlResponseError",this.errors=B.errors,this.data=B.data,Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}},DV1=["method","baseUrl","url","headers","request","query","mediaType"],YV1=["query","method","url"],sXA=/\/api\/v3\/?$/;function JV1(A,Q,B){if(B){if(typeof Q==="string"&&"query"in B)return Promise.reject(Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let D in B){if(!YV1.includes(D))continue;return Promise.reject(Error(`[@octokit/graphql] "${D}" cannot be used as variable name`))}}let I=typeof Q==="string"?Object.assign({query:Q},B):Q,E=Object.keys(I).reduce((D,Y)=>{if(DV1.includes(Y))return D[Y]=I[Y],D;if(!D.variables)D.variables={};return D.variables[Y]=I[Y],D},{}),C=I.baseUrl||A.endpoint.DEFAULTS.baseUrl;if(sXA.test(C))E.url=C.replace(sXA,"/api/graphql");return A(E).then((D)=>{if(D.data.errors){let Y={};for(let J of Object.keys(D.headers))Y[J]=D.headers[J];throw new tXA(E,Y,D.data)}return D.data.data})}function yf(A,Q){let B=A.defaults(Q);return Object.assign((E,C)=>{return JV1(B,E,C)},{defaults:yf.bind(null,B),endpoint:B.endpoint})}var FV1=yf(BV1.request,{headers:{"user-agent":`octokit-graphql.js/${EV1} ${(0,IV1.getUserAgent)()}`},method:"POST",url:"/graphql"});function GV1(A){return yf(A,{method:"POST",url:"/graphql"})}});var IUA=V((ip1,BUA)=>{var{defineProperty:ff,getOwnPropertyDescriptor:ZV1,getOwnPropertyNames:NV1}=Object,XV1=Object.prototype.hasOwnProperty,UV1=(A,Q)=>{for(var B in Q)ff(A,B,{get:Q[B],enumerable:!0})},WV1=(A,Q,B,I)=>{if(Q&&typeof Q==="object"||typeof Q==="function"){for(let E of NV1(Q))if(!XV1.call(A,E)&&E!==B)ff(A,E,{get:()=>Q[E],enumerable:!(I=ZV1(Q,E))||I.enumerable})}return A},VV1=(A)=>WV1(ff({},"__esModule",{value:!0}),A),QUA={};UV1(QUA,{createTokenAuth:()=>MV1});BUA.exports=VV1(QUA);var KV1=/^v1\./,$V1=/^ghs_/,HV1=/^ghu_/;async function wV1(A){let Q=A.split(/\./).length===3,B=KV1.test(A)||$V1.test(A),I=HV1.test(A);return{type:"token",token:A,tokenType:Q?"app":B?"installation":I?"user-to-server":"oauth"}}function zV1(A){if(A.split(/\./).length===3)return`bearer ${A}`;return`token ${A}`}async function LV1(A,Q,B,I){let E=Q.endpoint.merge(B,I);return E.headers.authorization=zV1(A),Q(E)}var MV1=function(Q){if(!Q)throw Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof Q!=="string")throw Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return Q=Q.replace(/^(token|bearer) +/i,""),Object.assign(wV1.bind(null,Q),{hook:LV1.bind(null,Q)})}});var GUA=V((np1,FUA)=>{var{defineProperty:bf,getOwnPropertyDescriptor:RV1,getOwnPropertyNames:qV1}=Object,TV1=Object.prototype.hasOwnProperty,OV1=(A,Q)=>{for(var B in Q)bf(A,B,{get:Q[B],enumerable:!0})},jV1=(A,Q,B,I)=>{if(Q&&typeof Q==="object"||typeof Q==="function"){for(let E of qV1(Q))if(!TV1.call(A,E)&&E!==B)bf(A,E,{get:()=>Q[E],enumerable:!(I=RV1(Q,E))||I.enumerable})}return A},PV1=(A)=>jV1(bf({},"__esModule",{value:!0}),A),YUA={};OV1(YUA,{Octokit:()=>yV1});FUA.exports=PV1(YUA);var gV1=y5(),_V1=rh(),EUA=yX(),vV1=AUA(),SV1=IUA(),JUA="5.2.2",CUA=()=>{},xV1=console.warn.bind(console),kV1=console.error.bind(console);function hV1(A={}){if(typeof A.debug!=="function")A.debug=CUA;if(typeof A.info!=="function")A.info=CUA;if(typeof A.warn!=="function")A.warn=xV1;if(typeof A.error!=="function")A.error=kV1;return A}var DUA=`octokit-core.js/${JUA} ${(0,gV1.getUserAgent)()}`,yV1=class{static{this.VERSION=JUA}static defaults(A){return class extends this{constructor(...B){let I=B[0]||{};if(typeof A==="function"){super(A(I));return}super(Object.assign({},A,I,I.userAgent&&A.userAgent?{userAgent:`${I.userAgent} ${A.userAgent}`}:null))}}}static{this.plugins=[]}static plugin(...A){let Q=this.plugins;return class extends this{static{this.plugins=Q.concat(A.filter((I)=>!Q.includes(I)))}}}constructor(A={}){let Q=new _V1.Collection,B={baseUrl:EUA.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},A.request,{hook:Q.bind(null,"request")}),mediaType:{previews:[],format:""}};if(B.headers["user-agent"]=A.userAgent?`${A.userAgent} ${DUA}`:DUA,A.baseUrl)B.baseUrl=A.baseUrl;if(A.previews)B.mediaType.previews=A.previews;if(A.timeZone)B.headers["time-zone"]=A.timeZone;if(this.request=EUA.request.defaults(B),this.graphql=(0,vV1.withCustomRequest)(this.request).defaults(B),this.log=hV1(A.log),this.hook=Q,!A.authStrategy)if(!A.auth)this.auth=async()=>({type:"unauthenticated"});else{let E=(0,SV1.createTokenAuth)(A.auth);Q.wrap("request",E.hook),this.auth=E}else{let{authStrategy:E,...C}=A,D=E(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:C},A.auth));Q.wrap("request",D.hook),this.auth=D}let I=this.constructor;for(let E=0;E<I.plugins.length;++E)Object.assign(this,I.plugins[E](this,A))}}});var KUA=V((rp1,VUA)=>{var{defineProperty:df,getOwnPropertyDescriptor:fV1,getOwnPropertyNames:bV1}=Object,dV1=Object.prot Line truncated
%s`,c,c,L,I);var p=L.type==="*"?$b:L.type==="?"?Kb:"\\"+L.type;E=!0,I=I.slice(0,L.reStart)+p+"\\("+c}if(U(),C)I+="\\\\";var S=!1;switch(I.charAt(0)){case"[":case".":case"(":S=!0}for(var o=Y.length-1;o>-1;o--){var f=Y[o],k=I.slice(0,f.reStart),i=I.slice(f.reStart,f.reEnd-8),l=I.slice(f.reEnd-8,f.reEnd),EA=I.slice(f.reEnd);l+=EA;var BA=k.split("(").length-1,wA=EA;for(W=0;W<BA;W++)wA=wA.replace(/\)[+*?]?/,"");EA=wA;var HA="";if(EA===""&&Q!==VR)HA="$";var vA=k+i+EA+HA+l;I=vA}if(I!==""&&E)I="(?=.)"+I;if(S)I=N+I;if(Q===VR)return[I,E];if(!E)return qH1(A);var yA=B.nocase?"i":"";try{var _A=new RegExp("^"+I+"$",yA)}catch($A){return new RegExp("$.")}return _A._glob=A,_A._src=I,_A}N8.makeRe=function(A,Q){return new V6(A,Q||{}).makeRe()};V6.prototype.makeRe=RH1;function RH1(){if(this.regexp||this.regexp===!1)return this.regexp;var A=this.set;if(!A.length)return this.regexp=!1,this.regexp;var Q=this.options,B=Q.noglobstar?$b:Q.dot?VH1:KH1,I=Q.nocase?"i":"",E=A.map(function(C){return C.map(function(D){return D===Hb?B:typeof D==="string"?TH1(D):D._src}).join("\\/")}).join("|");if(E="^(?:"+E+")$",this.negate)E="^(?!"+E+").*$";try{this.regexp=new RegExp(E,I)}catch(C){this.regexp=!1}return this.regexp}N8.match=function(A,Q,B){B=B||{};var I=new V6(Q,B);if(A=A.filter(function(E){return I.match(E)}),I.options.nonull&&!A.length)A.push(Q);return A};V6.prototype.match=function(Q,B){if(typeof B>"u")B=this.partial;if(this.debug("match",Q,this.pattern),this.comment)return!1;if(this.empty)return Q==="";if(Q==="/"&&B)return!0;var I=this.options;if(EU.sep!=="/")Q=Q.split(EU.sep).join("/");Q=Q.split(cWA),this.debug(this.pattern,"split",Q);var E=this.set;this.debug(this.pattern,"set",E);var C,D;for(D=Q.length-1;D>=0;D--)if(C=Q[D],C)break;for(D=0;D<E.length;D++){var Y=E[D],J=Q;if(I.matchBase&&Y.length===1)J=[C];var G=this.matchOne(J,Y,B);if(G){if(I.flipNegate)return!0;return!this.negate}}if(I.flipNegate)return!1;return this.negate};V6.prototype.matchOne=function(A,Q,B){var I=this.options;this.debug("matchOne",{this:this,file:A,pattern:Q}),this.debug("matchOne",A.length,Q.length);for(var E=0,C=0,D=A.length,Y=Q.length;E<D&&C<Y;E++,C++){this.debug("matchOne loop");var J=Q[C],G=A[E];if(this.debug(Q,J,G),J===!1)return!1;if(J===Hb){this.debug("GLOBSTAR",[Q,J,G]);var F=E,Z=C+1;if(Z===Y){this.debug("** at the end");for(;E<D;E++)if(A[E]==="."||A[E]===".."||!I.dot&&A[E].charAt(0)===".")return!1;return!0}while(F<D){var N=A[F];if(this.debug(`
globstar while`,A,F,Q,Z,N),this.matchOne(A.slice(F),Q.slice(Z),B))return this.debug("globstar found match!",F,D,N),!0;else{if(N==="."||N===".."||!I.dot&&N.charAt(0)==="."){this.debug("dot detected!",A,F,Q,Z);break}this.debug("globstar swallow a segment, and continue"),F++}}if(B){if(this.debug(`
>>> no match, partial?`,A,F,Q,Z),F===D)return!0}return!1}var X;if(typeof J==="string")X=G===J,this.debug("string match",J,G,X);else X=G.match(J),this.debug("pattern match",J,G,X);if(!X)return!1}if(E===D&&C===Y)return!0;else if(E===D)return B;else if(C===Y)return E===D-1&&A[E]==="";throw Error("wtf?")};function qH1(A){return A.replace(/\\(.)/g,"$1")}function TH1(A){return A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var sWA=V((D5)=>{var OH1=D5&&D5.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;Object.defineProperty(A,I,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),jH1=D5&&D5.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),aWA=D5&&D5.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.hasOwnProperty.call(A,B))OH1(Q,A,B)}return jH1(Q,A),Q},PH1=D5&&D5.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(D5,"__esModule",{value:!0});D5.Path=void 0;var CU=aWA(require("path")),dB=aWA(UR()),DU=PH1(require("assert")),gH1=process.platform==="win32";class oWA{constructor(A){if(this.segments=[],typeof A==="string")if(DU.default(A,"Parameter 'itemPath' must not be empty"),A=dB.safeTrimTrailingSeparator(A),!dB.hasRoot(A))this.segments=A.split(CU.sep);else{let Q=A,B=dB.dirname(Q);while(B!==Q){let I=CU.basename(Q);this.segments.unshift(I),Q=B,B=dB.dirname(Q)}this.segments.unshift(Q)}else{DU.default(A.length>0,"Parameter 'itemPath' must not be an empty array");for(let Q=0;Q<A.length;Q++){let B=A[Q];if(DU.default(B,"Parameter 'itemPath' must not contain any empty segments"),B=dB.normalizeSeparators(A[Q]),Q===0&&dB.hasRoot(B))B=dB.safeTrimTrailingSeparator(B),DU.default(B===dB.dirname(B),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(B);else DU.default(!B.includes(CU.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(B)}}}toString(){let A=this.segments[0],Q=A.endsWith(CU.sep)||gH1&&/^[A-Z]:$/i.test(A);for(let B=1;B<this.segments.length;B++){if(Q)Q=!1;else A+=CU.sep;A+=this.segments[B]}return A}}D5.Path=oWA});var rWA=V((J5)=>{var _H1=J5&&J5.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;Object.defineProperty(A,I,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),vH1=J5&&J5.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),zb=J5&&J5.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.hasOwnProperty.call(A,B))_H1(Q,A,B)}return vH1(Q,A),Q},SH1=J5&&J5.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(J5,"__esModule",{value:!0});J5.Pattern=void 0;var xH1=zb(require("os")),YU=zb(require("path")),m9=zb(UR()),vE=SH1(require("assert")),kH1=nWA(),wb=WR(),$R=sWA(),B7=process.platform==="win32";class Y5{constructor(A,Q=!1,B,I){this.negate=!1;let E;if(typeof A==="string")E=A.trim();else{B=B||[],vE.default(B.length,"Parameter 'segments' must not empty");let J=Y5.getLiteral(B[0]);if(vE.default(J&&m9.hasAbsoluteRoot(J),"Parameter 'segments' first element must be a root path"),E=new $R.Path(B).toString().trim(),A)E=`!${E}`}while(E.startsWith("!"))this.negate=!this.negate,E=E.substr(1).trim();E=Y5.fixupPattern(E,I),this.segments=new $R.Path(E).segments,this.trailingSeparator=m9.normalizeSeparators(E).endsWith(YU.sep),E=m9.safeTrimTrailingSeparator(E);let C=!1,D=this.segments.map((J)=>Y5.getLiteral(J)).filter((J)=>!C&&!(C=J===""));this.searchPath=new $R.Path(D).toString(),this.rootRegExp=new RegExp(Y5.regExpEscape(D[0]),B7?"i":""),this.isImplicitPattern=Q;let Y={dot:!0,nobrace:!0,nocase:B7,nocomment:!0,noext:!0,nonegate:!0};E=B7?E.replace(/\\/g,"/"):E,this.minimatch=new kH1.Minimatch(E,Y)}match(A){if(this.segments[this.segments.length-1]==="**"){if(A=m9.normalizeSeparators(A),!A.endsWith(YU.sep)&&this.isImplicitPattern===!1)A=`${A}${YU.sep}`}else A=m9.safeTrimTrailingSeparator(A);if(this.minimatch.match(A))return this.trailingSeparator?wb.MatchKind.Directory:wb.MatchKind.All;return wb.MatchKind.None}partialMatch(A){if(A=m9.safeTrimTrailingSeparator(A),m9.dirname(A)===A)return this.rootRegExp.test(A);return this.minimatch.matchOne(A.split(B7?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(A){return(B7?A:A.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(A,Q){vE.default(A,"pattern cannot be empty");let B=new $R.Path(A).segments.map((I)=>Y5.getLiteral(I));if(vE.default(B.every((I,E)=>(I!=="."||E===0)&&I!==".."),`Invalid pattern '${A}'. Relative pathing '.' and '..' is not allowed.`),vE.default(!m9.hasRoot(A)||B[0],`Invalid pattern '${A}'. Root segment must not contain globs.`),A=m9.no Line truncated
`),A=A.replace(/\r/g,`
`);let I=A.split(`
`).map((E)=>E.trim());for(let E of I)if(!E||E.startsWith("#"))continue;else B.patterns.push(new BVA.Pattern(E));return B.searchPaths.push(...wR.getSearchPaths(B.patterns)),B})}static stat(A,Q,B){return Lb(this,void 0,void 0,function*(){let I;if(Q.followSymbolicLinks)try{I=yield JU.promises.stat(A.path)}catch(E){if(E.code==="ENOENT"){if(Q.omitBrokenSymbolicLinks){Mb.debug(`Broken symlink '${A.path}'`);return}throw Error(`No information found for the path '${A.path}'. This may indicate a broken symbolic link.`)}throw E}else I=yield JU.promises.lstat(A.path);if(I.isDirectory()&&Q.followSymbolicLinks){let E=yield JU.promises.realpath(A.path);while(B.length>=A.level)B.pop();if(B.some((C)=>C===E)){Mb.debug(`Symlink cycle detected for path '${A.path}' and realpath '${E}'`);return}B.push(E)}return I})}}i4.DefaultGlobber=zR});var CVA=V((QF)=>{var uH1=QF&&QF.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function Y(F){try{G(I.next(F))}catch(Z){D(Z)}}function J(F){try{G(I.throw(F))}catch(Z){D(Z)}}function G(F){F.done?C(F.value):E(F.value).then(Y,J)}G((I=I.apply(A,Q||[])).next())})};Object.defineProperty(QF,"__esModule",{value:!0});QF.create=void 0;var pH1=EVA();function cH1(A,Q){return uH1(this,void 0,void 0,function*(){return yield pH1.DefaultGlobber.create(A,Q)})}QF.create=cH1});var ZVA=V((z1,GVA)=>{z1=GVA.exports=h1;var v0;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG))v0=function(){var A=Array.prototype.slice.call(arguments,0);A.unshift("SEMVER"),console.log.apply(console,A)};else v0=function(){};z1.SEMVER_SPEC_VERSION="2.0.0";var GU=256,LR=Number.MAX_SAFE_INTEGER||9007199254740991,Rb=16,lH1=GU-6,BF=z1.re=[],_0=z1.safeRe=[],LA=z1.src=[],GA=z1.tokens={},JVA=0;function l1(A){GA[A]=JVA++}var Tb="[a-zA-Z0-9-]",qb=[["\\s",1],["\\d",GU],[Tb,lH1]];function NU(A){for(var Q=0;Q<qb.length;Q++){var B=qb[Q][0],I=qb[Q][1];A=A.split(B+"*").join(B+"{0,"+I+"}").split(B+"+").join(B+"{1,"+I+"}")}return A}l1("NUMERICIDENTIFIER");LA[GA.NUMERICIDENTIFIER]="0|[1-9]\\d*";l1("NUMERICIDENTIFIERLOOSE");LA[GA.NUMERICIDENTIFIERLOOSE]="\\d+";l1("NONNUMERICIDENTIFIER");LA[GA.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Tb+"*";l1("MAINVERSION");LA[GA.MAINVERSION]="("+LA[GA.NUMERICIDENTIFIER]+")\\.("+LA[GA.NUMERICIDENTIFIER]+")\\.("+LA[GA.NUMERICIDENTIFIER]+")";l1("MAINVERSIONLOOSE");LA[GA.MAINVERSIONLOOSE]="("+LA[GA.NUMERICIDENTIFIERLOOSE]+")\\.("+LA[GA.NUMERICIDENTIFIERLOOSE]+")\\.("+LA[GA.NUMERICIDENTIFIERLOOSE]+")";l1("PRERELEASEIDENTIFIER");LA[GA.PRERELEASEIDENTIFIER]="(?:"+LA[GA.NUMERICIDENTIFIER]+"|"+LA[GA.NONNUMERICIDENTIFIER]+")";l1("PRERELEASEIDENTIFIERLOOSE");LA[GA.PRERELEASEIDENTIFIERLOOSE]="(?:"+LA[GA.NUMERICIDENTIFIERLOOSE]+"|"+LA[GA.NONNUMERICIDENTIFIER]+")";l1("PRERELEASE");LA[GA.PRERELEASE]="(?:-("+LA[GA.PRERELEASEIDENTIFIER]+"(?:\\."+LA[GA.PRERELEASEIDENTIFIER]+")*))";l1("PRERELEASELOOSE");LA[GA.PRERELEASELOOSE]="(?:-?("+LA[GA.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+LA[GA.PRERELEASEIDENTIFIERLOOSE]+")*))";l1("BUILDIDENTIFIER");LA[GA.BUILDIDENTIFIER]=Tb+"+";l1("BUILD");LA[GA.BUILD]="(?:\\+("+LA[GA.BUILDIDENTIFIER]+"(?:\\."+LA[GA.BUILDIDENTIFIER]+")*))";l1("FULL");l1("FULLPLAIN");LA[GA.FULLPLAIN]="v?"+LA[GA.MAINVERSION]+LA[GA.PRERELEASE]+"?"+LA[GA.BUILD]+"?";LA[GA.FULL]="^"+LA[GA.FULLPLAIN]+"$";l1("LOOSEPLAIN");LA[GA.LOOSEPLAIN]="[v=\\s]*"+LA[GA.MAINVERSIONLOOSE]+LA[GA.PRERELEASELOOSE]+"?"+LA[GA.BUILD]+"?";l1("LOOSE");LA[GA.LOOSE]="^"+LA[GA.LOOSEPLAIN]+"$";l1("GTLT");LA[GA.GTLT]="((?:<|>)?=?)";l1("XRANGEIDENTIFIERLOOSE");LA[GA.XRANGEIDENTIFIERLOOSE]=LA[GA.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";l1("XRANGEIDENTIFIER");LA[GA.XRANGEIDENTIFIER]=LA[GA.NUMERICIDENTIFIER]+"|x|X|\\*";l1("XRANGEPLAIN");LA[GA.XRANGEPLAIN]="[v=\\s]*("+LA[GA.XRANGEIDENTIFIER]+")(?:\\.("+LA[GA.XRANGEIDENTIFIER]+")(?:\\.("+LA[GA.XRANGEIDENTIFIER]+")(?:"+LA[GA.PRERELEASE]+")?"+LA[GA.BUILD]+"?)?)?";l1("XRANGEPLAINLOOSE");LA[GA.XRANGEPLAINLOOSE]="[v=\\s]*("+LA[GA.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+LA[GA.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+LA[GA.XRANGEIDENTIFIERLOOSE]+")(?:"+LA[GA.PRERELEASELOOSE]+")?"+LA[GA.BUILD]+"?)?)?";l1("XRANGE");LA[GA.XRANGE]="^"+LA[GA.GTLT]+"\\s*"+LA[GA.XRANGEPLAIN]+"$";l1("XRANGELOOSE");LA[GA.XRANGELOOSE]="^"+LA[GA.GTLT]+"\\s*"+LA[GA.XRANGEPLAINLOOSE]+"$";l1("COERCE");LA[GA.COERCE]="(^|[^\\d])(\\d{1,"+Rb+"})(?:\\.(\\d{1,"+Rb+"}))?(?:\\.(\\d{1,"+Rb+"}))?(?:$|[^\\d])";l1("COERCERTL");BF[GA.COERCERTL]=new RegExp(LA[GA.COERCE],"g");_0[GA.COERCERTL]=new RegExp(NU(LA[GA.COERCE]),"g");l1("LONETILDE");LA[GA.LONETILDE]="(?:~>?)";l1("TILDETRIM");LA[GA.TILDETRIM]="(\\s*)"+LA[GA.LONETILDE]+"\\s+";BF[GA.TILDETRIM]=new RegExp(LA[GA.TILDETRIM],"g");_0[GA.TILDETRIM]=new RegExp(NU(LA[GA.TILDETRIM]),"g");var iH1="$1~";l1("TILDE");LA[GA.TILDE]="^"+LA[GA.LONETILDE]+LA[GA.XRANGEPLAIN]+"$";l1("TILDELOOSE");LA[GA.TILDELOOSE]="^"+LA[GA.LONETILDE]+LA[GA.XRANGEPLAINLOOSE]+"$";l1("LONECARET");LA[GA.LONECARET]="(?:\\^)";l1("CARETTRIM");L Line truncated
`),{implicitDescendants:!1});try{for(var G=!0,F=gw1(J.globGenerator()),Z;Z=yield F.next(),Q=Z.done,!Q;G=!0){E=Z.value,G=!1;let N=E,X=TR.relative(Y,N).replace(new RegExp(`\\${TR.sep}`,"g"),"/");if(UU.debug(`Matched: ${X}`),X==="")D.push(".");else D.push(`${X}`)}}catch(N){B={error:N}}finally{try{if(!G&&!Q&&(I=F.return))yield I.call(F)}finally{if(B)throw B.error}}return D})}H0.resolvePaths=fw1;function bw1(A){return EF(this,void 0,void 0,function*(){return xw1.promisify(_b.unlink)(A)})}H0.unlinkFile=bw1;function KVA(A,Q=[]){return EF(this,void 0,void 0,function*(){let B="";Q.push("--version"),UU.debug(`Checking ${A} ${Q.join(" ")}`);try{yield _w1.exec(`${A}`,Q,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:(I)=>B+=I.toString(),stderr:(I)=>B+=I.toString()}})}catch(I){UU.debug(I.message)}return B=B.trim(),UU.debug(B),B})}function dw1(){return EF(this,void 0,void 0,function*(){let A=yield KVA("zstd",["--quiet"]),Q=Sw1.clean(A);if(UU.debug(`zstd version: ${Q}`),A==="")return kE.CompressionMethod.Gzip;else return kE.CompressionMethod.ZstdWithoutLong})}H0.getCompressionMethod=dw1;function mw1(A){return A===kE.CompressionMethod.Gzip?kE.CacheFilename.Gzip:kE.CacheFilename.Zstd}H0.getCacheFileName=mw1;function uw1(){return EF(this,void 0,void 0,function*(){if(_b.existsSync(kE.GnuTarPathOnWindows))return kE.GnuTarPathOnWindows;return(yield KVA("tar")).toLowerCase().includes("gnu tar")?WVA.which("tar"):""})}H0.getGnuTarPathOnWindows=uw1;function pw1(A,Q){if(Q===void 0)throw Error(`Expected ${A} but value was undefiend`);return Q}H0.assertDefined=pw1;function cw1(A,Q,B=!1){let I=A.slice();if(Q)I.push(Q);if(process.platform==="win32"&&!B)I.push("windows-only");return I.push(kw1),VVA.createHash("sha256").update(I.join("|")).digest("hex")}H0.getCacheVersion=cw1;function lw1(){let A=process.env.ACTIONS_RUNTIME_TOKEN;if(!A)throw Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return A}H0.getRuntimeToken=lw1});var xb=V((u9)=>{Object.defineProperty(u9,"__esModule",{value:!0});u9.UsageError=u9.NetworkError=u9.GHESNotSupportedError=u9.CacheNotFoundError=u9.InvalidResponseError=u9.FilesNotFoundError=void 0;class $VA extends Error{constructor(A=[]){let Q="No files were found to upload";if(A.length>0)Q+=`: ${A.join(", ")}`;super(Q);this.files=A,this.name="FilesNotFoundError"}}u9.FilesNotFoundError=$VA;class HVA extends Error{constructor(A){super(A);this.name="InvalidResponseError"}}u9.InvalidResponseError=HVA;class wVA extends Error{constructor(A="Cache not found"){super(A);this.name="CacheNotFoundError"}}u9.CacheNotFoundError=wVA;class zVA extends Error{constructor(A="@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES."){super(A);this.name="GHESNotSupportedError"}}u9.GHESNotSupportedError=zVA;class vb extends Error{constructor(A){let Q=`Unable to make request: ${A}
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(Q);this.code=A,this.name="NetworkError"}}u9.NetworkError=vb;vb.isNetworkErrorCode=(A)=>{if(!A)return!1;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(A)};class Sb extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`);this.name="UsageError"}}u9.UsageError=Sb;Sb.isUsageErrorMessage=(A)=>{if(!A)return!1;return A.includes("insufficient usage")}});var LVA=V((p9)=>{var iw1=p9&&p9.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),nw1=p9&&p9.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),aw1=p9&&p9.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))iw1(Q,A,B)}return nw1(Q,A),Q},ow1=p9&&p9.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function Y(F){try{G(I.next(F))}catch(Z){D(Z)}}function J(F){try{G(I.throw(F))}catch(Z){D(Z)}}function G(F){F.done?C(F.value):E(F.value).then(Y,J)}G((I=I.apply(A,Q||[])).next())})};Object.defineProperty(p9,"__esModule",{value:!0});p9.uploadCacheArchiveSDK=p9.UploadProgress=void 0;var kb=aw1(m1()),sw1=wz(),rw1=xb();class hb{constructor(A){this.contentLength=A,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(A){this.sentBytes=A}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let A=this.sentBytes,Q=(100*(A/this.contentLength)).toFixed(1),B=Date.now()-this.startTime,I=(A/1048576/(B/1000)).toFixed(1);if(kb.info(`Sent ${A} of ${this.contentLength} (${Q}%), ${I} MBs/sec`),this.isDone())this.displayedComplete=!0}onProgress(){return(A)=>{this.setSentBytes(A.loadedBytes)}}startDisplayTimer(A=1000){let Q=()=>{if(this.display(),!this.isDone())this.timeoutHandle=setTimeout(Q,A)};this.timeoutHandle=setTimeout(Q,A)}stopDisplayTimer(){if(this.timeoutHandle)clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0;this.display()}}p9.UploadProgress=hb;function tw1(A,Q,B){var I;return ow1(this,void 0,void 0,function*(){let E=new sw1.BlobClient(A),C=E.getBlockBlobClient(),D=new hb((I=B===null||B===void 0?void 0:B.archiveSizeBytes)!==null&&I!==void 0?I:0),Y={blockSize:B===null||B===void 0?void 0:B.uploadChunkSize,concurrency:B===null||B===void 0?void 0:B.uploadConcurrency,maxSingleShotSize:134217728,onProgress:D.onProgress()};try{D.startDisplayTimer(),kb.debug(`BlobClient: ${E.name}:${E.accountName}:${E.containerName}`);let J=yield C.uploadFile(Q,Y);if(J._response.status>=400)throw new rw1.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${J._response.status}`);return J}catch(J){throw kb.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${J.message}`),J}finally{D.stopDisplayTimer()}})}p9.uploadCacheArchiveSDK=tw1});var fb=V((c2)=>{var ew1=c2&&c2.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),Az1=c2&&c2.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),Qz1=c2&&c2.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))ew1(Q,A,B)}return Az1(Q,A),Q},jR=c2&&c2.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function Y(F){try{G(I.next(F))}catch(Z){D(Z)}}function J(F){try{G(I.throw(F))}catch(Z){D(Z)}}function G(F){F.done?C(F.value):E(F.value).then(Y,J)}G((I=I.apply(A,Q||[])).next())})};Object.defineProperty(c2,"__esModule",{value:!0});c2.retryHttpClientResponse=c2.retryTypedResponse=c2.retry=c2.isRetryableStatusCode=c2.isServerErrorStatusCode=c2.isSuccessStatusCode=void 0;var MVA=Qz1(m1()),OR=O8(),DF=XU();function Bz1(A){if(!A)return!1;return A>=200&&A<300}c2.isSuccessStatusCode=Bz1;function RVA(A){if(!A)return!0;return A>=500}c2.isServerErrorStatusCode=RVA;function qVA(A){if(!A)return!1;return[OR.HttpCodes.BadGateway,OR.HttpCodes.ServiceUnavailable,OR.HttpCodes.GatewayTimeout].includes(A)}c2.isRetryableStatusCode=qVA;function Iz1(A){return jR(this,void 0,void 0,function*(){return new Promise((Q)=>setTimeout(Q,A))})}function yb(A,Q,B,I=DF.DefaultRetryAttempts,E=DF.DefaultRetryDelay,C=void 0){return jR(this,void 0,void 0,function*(){let D="",Y=1;while(Y<=I){let J=void 0,G=void 0,F=!1;try{J=yield Q()}catch(Z){if(C)J=C(Z);F=!0,D=Z.message}if(J){if(G=B(J),!RVA Line truncated
Other caches with similar key:`);for(let Y of(C===null||C===void 0?void 0:C.artifactCaches)||[])X8.debug(`Cache Key: ${Y===null||Y===void 0?void 0:Y.cacheKey}, Cache Version: ${Y===null||Y===void 0?void 0:Y.cacheVersion}, Cache Scope: ${Y===null||Y===void 0?void 0:Y.scope}, Cache Created: ${Y===null||Y===void 0?void 0:Y.creationTime}`)}}})}function dz1(A,Q,B){return c9(this,void 0,void 0,function*(){let I=new vz1.URL(A),E=(0,pb.getDownloadOptions)(B);if(I.hostname.endsWith(".blob.core.windows.net"))if(E.useAzureSdk)yield(0,SR.downloadCacheStorageSDK)(A,Q,E);else if(E.concurrentBlobDownloads)yield(0,SR.downloadCacheHttpClientConcurrent)(A,Q,E);else yield(0,SR.downloadCacheHttpClient)(A,Q);else yield(0,SR.downloadCacheHttpClient)(A,Q)})}a4.downloadCache=dz1;function mz1(A,Q,B){return c9(this,void 0,void 0,function*(){let I=cb(),E=FF.getCacheVersion(Q,B===null||B===void 0?void 0:B.compressionMethod,B===null||B===void 0?void 0:B.enableCrossOsArchive),C={key:A,version:E,cacheSize:B===null||B===void 0?void 0:B.cacheSize};return yield(0,pB.retryTypedResponse)("reserveCache",()=>c9(this,void 0,void 0,function*(){return I.postJson(HU("caches"),C)}))})}a4.reserveCache=mz1;function bVA(A,Q){return`bytes ${A}-${Q}/*`}function uz1(A,Q,B,I,E){return c9(this,void 0,void 0,function*(){X8.debug(`Uploading chunk of size ${E-I+1} bytes at offset ${I} with content range: ${bVA(I,E)}`);let C={"Content-Type":"application/octet-stream","Content-Range":bVA(I,E)},D=yield(0,pB.retryHttpClientResponse)(`uploadChunk (start: ${I}, end: ${E})`,()=>c9(this,void 0,void 0,function*(){return A.sendStream("PATCH",Q,B(),C)}));if(!(0,pB.isSuccessStatusCode)(D.message.statusCode))throw Error(`Cache service responded with ${D.message.statusCode} during upload chunk.`)})}function pz1(A,Q,B,I){return c9(this,void 0,void 0,function*(){let E=FF.getArchiveFileSizeInBytes(B),C=HU(`caches/${Q.toString()}`),D=mb.openSync(B,"r"),Y=(0,pb.getUploadOptions)(I),J=FF.assertDefined("uploadConcurrency",Y.uploadConcurrency),G=FF.assertDefined("uploadChunkSize",Y.uploadChunkSize),F=[...Array(J).keys()];X8.debug("Awaiting all uploads");let Z=0;try{yield Promise.all(F.map(()=>c9(this,void 0,void 0,function*(){while(Z<E){let N=Math.min(E-Z,G),X=Z,U=Z+N-1;Z+=G,yield uz1(A,C,()=>mb.createReadStream(B,{fd:D,start:X,end:U,autoClose:!1}).on("error",(W)=>{throw Error(`Cache upload failed because file read failed with ${W.message}`)}),X,U)}})))}finally{mb.closeSync(D)}return})}function cz1(A,Q,B){return c9(this,void 0,void 0,function*(){let I={size:B};return yield(0,pB.retryTypedResponse)("commitCache",()=>c9(this,void 0,void 0,function*(){return A.postJson(HU(`caches/${Q.toString()}`),I)}))})}function lz1(A,Q,B,I){return c9(this,void 0,void 0,function*(){if((0,pb.getUploadOptions)(I).useAzureSdk){if(!B)throw Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,Sz1.uploadCacheArchiveSDK)(B,Q,I)}else{let C=cb();X8.debug("Upload cache"),yield pz1(C,A,Q,I),X8.debug("Commiting cache");let D=FF.getArchiveFileSizeInBytes(Q);X8.info(`Cache Size: ~${Math.round(D/1048576)} MB (${D} B)`);let Y=yield cz1(C,A,D);if(!(0,pB.isSuccessStatusCode)(Y.statusCode))throw Error(`Cache service responded with ${Y.statusCode} during commit cache.`);X8.info("Cache saved successfully")}})}a4.saveCache=lz1});var cVA=V((xR)=>{Object.defineProperty(xR,"__esModule",{value:!0});xR.CacheScope=void 0;var mVA=x1(),uVA=x1(),iz1=x1(),nz1=x1(),az1=x1();class pVA extends az1.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(A){let Q={scope:"",permission:"0"};if(globalThis.Object.defineProperty(Q,nz1.MESSAGE_TYPE,{enumerable:!1,value:this}),A!==void 0)(0,iz1.reflectionMergePartial)(this,Q,A);return Q}internalBinaryRead(A,Q,B,I){let E=I!==null&&I!==void 0?I:this.create(),C=A.pos+Q;while(A.pos<C){let[D,Y]=A.tag();switch(D){case 1:E.scope=A.string();break;case 2:E.permission=A.int64().toString();break;default:let J=B.readUnknownField;if(J==="throw")throw new globalThis.Error(`Unknown field ${D} (wire type ${Y}) for ${this.typeName}`);let G=A.skip(Y);if(J!==!1)(J===!0?uVA.UnknownFieldHandler.onRead:J)(this.typeName,E,D,Y,G)}}return E}internalBinaryWrite(A,Q,B){if(A.scope!=="")Q.tag(1,mVA.WireType.LengthDelimited).string(A.scope);if(A.permission!=="0")Q.tag(2,mVA.WireType.Varint).int64(A.permission);let I=B.writeUnknownFields;if(I!==!1)(I==!0?uVA.UnknownFieldHandler.onWrite:I)(this.typeName,A,Q);return Q}}xR.CacheScope=new pVA});var aVA=V((kR)=>{Object.defineProperty(kR,"__esModule",{value:!0});kR.CacheMetadata=void 0;var lVA=x1(),iVA=x1(),oz1=x1(),sz1=x1(),rz1=x1(),lb=cVA();class nVA extends rz1.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:()=>lb.CacheScope}])}create(A){let Q={repositoryId:"0",scope:[]};if(globalThis.Object.defineProperty( Line truncated
`));let I=yield ob(B,"create");yield sb(I,A)})}y6.createTar=VL1});var XKA=V((i2)=>{var KL1=i2&&i2.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),$L1=i2&&i2.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),LU=i2&&i2.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))KL1(Q,A,B)}return $L1(Q,A),Q},HF=i2&&i2.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function Y(F){try{G(I.next(F))}catch(Z){D(Z)}}function J(F){try{G(I.throw(F))}catch(Z){D(Z)}}function G(F){F.done?C(F.value):E(F.value).then(Y,J)}G((I=I.apply(A,Q||[])).next())})};Object.defineProperty(i2,"__esModule",{value:!0});i2.saveCache=i2.restoreCache=i2.isFeatureAvailable=i2.FinalizeCacheError=i2.ReserveCacheError=i2.ValidationError=void 0;var G1=LU(m1()),bR=LU(require("path")),R2=LU(CF()),$F=LU(dVA()),ZKA=LU(YKA()),dR=_R(),lB=GKA(),mR=O8();class U5 extends Error{constructor(A){super(A);this.name="ValidationError",Object.setPrototypeOf(this,U5.prototype)}}i2.ValidationError=U5;class hE extends Error{constructor(A){super(A);this.name="ReserveCacheError",Object.setPrototypeOf(this,hE.prototype)}}i2.ReserveCacheError=hE;class zU extends Error{constructor(A){super(A);this.name="FinalizeCacheError",Object.setPrototypeOf(this,zU.prototype)}}i2.FinalizeCacheError=zU;function NKA(A){if(!A||A.length===0)throw new U5("Path Validation Error: At least one directory or file path is required")}function rb(A){if(A.length>512)throw new U5(`Key Validation Error: ${A} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(A))throw new U5(`Key Validation Error: ${A} cannot contain commas.`)}function HL1(){switch((0,dR.getCacheServiceVersion)()){case"v2":return!!process.env.ACTIONS_RESULTS_URL;case"v1":default:return!!process.env.ACTIONS_CACHE_URL}}i2.isFeatureAvailable=HL1;function wL1(A,Q,B,I,E=!1){return HF(this,void 0,void 0,function*(){let C=(0,dR.getCacheServiceVersion)();switch(G1.debug(`Cache service version: ${C}`),NKA(A),C){case"v2":return yield LL1(A,Q,B,I,E);case"v1":default:return yield zL1(A,Q,B,I,E)}})}i2.restoreCache=wL1;function zL1(A,Q,B,I,E=!1){return HF(this,void 0,void 0,function*(){B=B||[];let C=[Q,...B];if(G1.debug("Resolved Keys:"),G1.debug(JSON.stringify(C)),C.length>10)throw new U5("Key Validation Error: Keys are limited to a maximum of 10.");for(let J of C)rb(J);let D=yield R2.getCompressionMethod(),Y="";try{let J=yield $F.getCacheEntry(C,A,{compressionMethod:D,enableCrossOsArchive:E});if(!(J===null||J===void 0?void 0:J.archiveLocation))return;if(I===null||I===void 0?void 0:I.lookupOnly)return G1.info("Lookup only - skipping download"),J.cacheKey;if(Y=bR.join(yield R2.createTempDirectory(),R2.getCacheFileName(D)),G1.debug(`Archive Path: ${Y}`),yield $F.downloadCache(J.archiveLocation,Y,I),G1.isDebug())yield(0,lB.listTar)(Y,D);let G=R2.getArchiveFileSizeInBytes(Y);return G1.info(`Cache Size: ~${Math.round(G/1048576)} MB (${G} B)`),yield(0,lB.extractTar)(Y,D),G1.info("Cache restored successfully"),J.cacheKey}catch(J){let G=J;if(G.name===U5.name)throw J;else if(G instanceof mR.HttpClientError&&typeof G.statusCode==="number"&&G.statusCode>=500)G1.error(`Failed to restore: ${J.message}`);else G1.warning(`Failed to restore: ${J.message}`)}finally{try{yield R2.unlinkFile(Y)}catch(J){G1.debug(`Failed to delete archive: ${J}`)}}return})}function LL1(A,Q,B,I,E=!1){return HF(this,void 0,void 0,function*(){I=Object.assign(Object.assign({},I),{useAzureSdk:!0}),B=B||[];let C=[Q,...B];if(G1.debug("Resolved Keys:"),G1.debug(JSON.stringify(C)),C.length>10)throw new U5("Key Validation Error: Keys are limited to a maximum of 10.");for(let Y of C)rb(Y);let D="";try{let Y=ZKA.internalCacheTwirpClient(),J=yield R2.getCompressionMethod(),G={key:Q,restoreKeys:B,version:R2.getCacheVersion(A,J,E)},F=yield Y.GetCacheEntryDownloadURL(G);if(!F.ok){G1.debug(`Cache not found for version ${G.version} of keys: ${C.join(", ")}`);return}if(G.key!==F.matchedKey)G1.info(`Cache hit for restore-key: ${F.matchedKey}`);else G1.info(`Cache hit for: ${F.matchedKey}`);if(I===null||I===void 0?void 0:I.lookupOnly)return G1.info("Lookup only - skipping download"),F.matchedKey;D=bR.join(yield R2.createTempDirectory(),R2.getCacheFileName(J)),G1.debug(`Archive path: ${D}`),G1.debug(`Starting download of archive to: ${D}`),yield $F.downloadCache(F.signedDownloadUrl,D,I);let N=R2.getArchiveFileSizeInBytes(D);if(G1.info(`Cache Size: ~${Math.round(N/1048576)} MB (${N} B)`),G1.isDebug())yield(0,lB.listTar)(D,J);return yield(0,lB.extractTar)(D,J),G1.info("Cache restored successfully"), Line truncated
`);for(let E of I){let C=E.split("=");if(C.length===2&&(C[0].trim()==="VERSION_ID"||C[0].trim()==="DISTRIB_RELEASE")){Q=C[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return Q}f6._getOsVersion=WM1;function VM1(){let B="";if(aR.existsSync("/etc/lsb-release"))B=aR.readFileSync("/etc/lsb-release").toString();else if(aR.existsSync("/etc/os-release"))B=aR.readFileSync("/etc/os-release").toString();return B}f6._readLinuxVersionFile=VM1});var vKA=V((V5)=>{var KM1=V5&&V5.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),$M1=V5&&V5.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),HM1=V5&&V5.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))KM1(Q,A,B)}return $M1(Q,A),Q},PKA=V5&&V5.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function Y(F){try{G(I.next(F))}catch(Z){D(Z)}}function J(F){try{G(I.throw(F))}catch(Z){D(Z)}}function G(F){F.done?C(F.value):E(F.value).then(Y,J)}G((I=I.apply(A,Q||[])).next())})};Object.defineProperty(V5,"__esModule",{value:!0});V5.RetryHelper=void 0;var gKA=HM1(m1());class _KA{constructor(A,Q,B){if(A<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=A,this.minSeconds=Math.floor(Q),this.maxSeconds=Math.floor(B),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds")}execute(A,Q){return PKA(this,void 0,void 0,function*(){let B=1;while(B<this.maxAttempts){try{return yield A()}catch(E){if(Q&&!Q(E))throw E;gKA.info(E.message)}let I=this.getSleepAmount();gKA.info(`Waiting ${I} seconds before trying again`),yield this.sleep(I),B++}return yield A()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(A){return PKA(this,void 0,void 0,function*(){return new Promise((Q)=>setTimeout(Q,A*1000))})}}V5.RetryHelper=_KA});var dKA=V((n1)=>{var __dirname="/Users/kudo/01_Work/Repos/expo/actions/node_modules/@actions/tool-cache/lib",wM1=n1&&n1.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),zM1=n1&&n1.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),a5=n1&&n1.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))wM1(Q,A,B)}return zM1(Q,A),Q},X9=n1&&n1.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(D){D(C)})}return new(B||(B=Promise))(function(C,D){function Y(F){try{G(I.next(F))}catch(Z){D(Z)}}function J(F){try{G(I.throw(F))}catch(Z){D(Z)}}function G(F){F.done?C(F.value):E(F.value).then(Y,J)}G((I=I.apply(A,Q||[])).next())})};Object.defineProperty(n1,"__esModule",{value:!0});n1.evaluateVersions=n1.isExplicitVersion=n1.findFromManifest=n1.getManifestFromRepo=n1.findAllVersions=n1.find=n1.cacheFile=n1.cacheDir=n1.extractZip=n1.extractXar=n1.extractTar=n1.extract7z=n1.downloadTool=n1.HTTPError=void 0;var w0=a5(m1()),U8=a5(lC()),SKA=a5(require("crypto")),K5=a5(require("fs")),LM1=a5(jKA()),OU=a5(require("os")),n5=a5(require("path")),xKA=a5(O8()),G7=a5(Cd()),MM1=a5(require("stream")),RM1=a5(require("util")),MF=require("assert"),iB=nC(),qM1=vKA();class oR extends Error{constructor(A){super(`Unexpected HTTP response: ${A}`);this.httpStatusCode=A,Object.setPrototypeOf(this,new.target.prototype)}}n1.HTTPError=oR;var Fd=process.platform==="win32",TM1=process.platform==="darwin",OM1="actions/tool-cache";function jM1(A,Q,B,I){return X9(this,void 0,void 0,function*(){Q=Q||n5.join(bKA(),SKA.randomUUID()),yield U8.mkdirP(n5.dirname(Q)),w0.debug(`Downloading ${A}`),w0.debug(`Destination ${Q}`);let E=3,C=Jd("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),D=Jd("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new qM1.RetryHelper(E,C,D).execute(()=>X9(this,void 0,void 0,function*(){return yield PM1(A,Q||"",B,I)}),(J)=>{if(J instanceof oR&&J.httpStatusCode){if(J.httpStatusCode<500&&J.httpStatusCode!==408&&J.httpStatusCode!==429)return!1}return!0})})}n1.downloadTool=jM1;function PM1(A,Q,B,I){return X9(this,void 0,void 0,function*(){if(K5.existsSync(Q))throw Error(`Destination file path ${Q} already exists`);let E=new xKA.HttpClient(OM1,[],{allowRetries:!1});if(B){if(w0.debug("set auth"),I===void 0)I={};I.authorization=B}le Line truncated
${E}`;Object.assign(w,H),J(w)}else Y(H)},U=(W)=>{if(G)C.removeListener("exit",X);else C.removeListener("close",X);Object.assign(W,{pid:C.pid,output:[Z,N],stdout:Z,stderr:N,status:null,signal:null}),J(W)};if(G)C.once("exit",X);else C.once("close",X);C.once("error",U)});return D.child=C,D}_$A.exports=VR1});var S$A=V((tl1,v$A)=>{v$A.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var zd=V((el1,k$A)=>{var jU=S$A(),x$A={};for(let A of Object.keys(jU))x$A[jU[A]]=A;var rA={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};k$A.exports=rA;for(let A of Object.keys(rA)){if(!("channels"in rA[A]))throw Error("missing channels property: "+A);if(!("labels"in rA[A]))throw Error("missing channel labels property: "+A);if(rA[A].labels.length!==rA[A].channels)throw Error("channel and label counts mismatch: "+A);let{channels:Q,labels:B}=rA[A];delete rA[A].channels,delete rA[A].labels,Object.defineProperty(rA[A],"channels",{value:Q}),Object.defineProperty(rA[A],"labels",{value:B})}rA.rgb.hsl=function(A){let Q=A[0]/255,B=A[1]/255,I=A[2]/255,E=Math.min(Q,B,I),C=Math.max(Q,B,I),D=C-E,Y,J;if(C===E)Y=0;else if(Q===C)Y=(B-I)/D;else if(B===C)Y=2+(I-Q)/D;else if(I===C)Y=4+(Q-B)/D;if(Y=Math.m Line truncated
`:`
`)+B,E=I+1,I=A.indexOf(`
`,E)}while(I!==-1);return C+=A.substr(E),C};i$A.exports={stringReplaceAll:OR1,stringEncaseCRLFWithFirstIndex:jR1}});var t$A=V((Ei1,r$A)=>{var PR1=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,a$A=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,gR1=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,_R1=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,vR1=new Map([["n",`
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s$A(A){let Q=A[0]==="u",B=A[1]==="{";if(Q&&!B&&A.length===5||A[0]==="x"&&A.length===3)return String.fromCharCode(parseInt(A.slice(1),16));if(Q&&B)return String.fromCodePoint(parseInt(A.slice(2,-1),16));return vR1.get(A)||A}function SR1(A,Q){let B=[],I=Q.trim().split(/\s*,\s*/g),E;for(let C of I){let D=Number(C);if(!Number.isNaN(D))B.push(D);else if(E=C.match(gR1))B.push(E[2].replace(_R1,(Y,J,G)=>J?s$A(J):G));else throw Error(`Invalid Chalk template style argument: ${C} (in style '${A}')`)}return B}function xR1(A){a$A.lastIndex=0;let Q=[],B;while((B=a$A.exec(A))!==null){let I=B[1];if(B[2]){let E=SR1(I,B[2]);Q.push([I].concat(E))}else Q.push([I])}return Q}function o$A(A,Q){let B={};for(let E of Q)for(let C of E.styles)B[C[0]]=E.inverse?null:C.slice(1);let I=A;for(let[E,C]of Object.entries(B)){if(!Array.isArray(C))continue;if(!(E in I))throw Error(`Unknown Chalk style: ${E}`);I=C.length>0?I[E](...C):I[E]}return I}r$A.exports=(A,Q)=>{let B=[],I=[],E=[];if(Q.replace(PR1,(C,D,Y,J,G,F)=>{if(D)E.push(s$A(D));else if(J){let Z=E.join("");E=[],I.push(B.length===0?Z:o$A(A,B)(Z)),B.push({inverse:Y,styles:xR1(J)})}else if(G){if(B.length===0)throw Error("Found extraneous } in Chalk template literal");I.push(o$A(A,B)(E.join(""))),E=[],B.pop()}else E.push(F)}),I.push(E.join("")),B.length>0){let C=`Chalk template literal is missing ${B.length} closing bracket${B.length===1?"":"s"} (\`}\`)`;throw Error(C)}return I.join("")}});var DHA=V((Ci1,CHA)=>{var PU=l$A(),{stdout:qd,stderr:Td}=jg(),{stringReplaceAll:kR1,stringEncaseCRLFWithFirstIndex:hR1}=n$A(),{isArray:Bq}=Array,AHA=["ansi","ansi","ansi256","ansi16m"],PF=Object.create(null),yR1=(A,Q={})=>{if(Q.level&&!(Number.isInteger(Q.level)&&Q.level>=0&&Q.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let B=qd?qd.level:0;A.level=Q.level===void 0?B:Q.level};class QHA{constructor(A){return BHA(A)}}var BHA=(A)=>{let Q={};return yR1(Q,A),Q.template=(...B)=>EHA(Q.template,...B),Object.setPrototypeOf(Q,Iq.prototype),Object.setPrototypeOf(Q.template,Q),Q.template.constructor=()=>{throw Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},Q.template.Instance=QHA,Q.template};function Iq(A){return BHA(A)}for(let[A,Q]of Object.entries(PU))PF[A]={get(){let B=Eq(this,Od(Q.open,Q.close,this._styler),this._isEmpty);return Object.defineProperty(this,A,{value:B}),B}};PF.visible={get(){let A=Eq(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:A}),A}};var IHA=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let A of IHA)PF[A]={get(){let{level:Q}=this;return function(...B){let I=Od(PU.color[AHA[Q]][A](...B),PU.color.close,this._styler);return Eq(this,I,this._isEmpty)}}};for(let A of IHA){let Q="bg"+A[0].toUpperCase()+A.slice(1);PF[Q]={get(){let{level:B}=this;return function(...I){let E=Od(PU.bgColor[AHA[B]][A](...I),PU.bgColor.close,this._styler);return Eq(this,E,this._isEmpty)}}}}var fR1=Object.defineProperties(()=>{},{...PF,level:{enumerable:!0,get(){return this._generator.level},set(A){this._generator.level=A}}}),Od=(A,Q,B)=>{let I,E;if(B===void 0)I=A,E=Q;else I=B.openAll+A,E=Q+B.closeAll;return{open:A,close:Q,openAll:I,closeAll:E,parent:B}},Eq=(A,Q,B)=>{let I=(...E)=>{if(Bq(E[0])&&Bq(E[0].raw))return e$A(I,EHA(I,...E));return e$A(I,E.length===1?""+E[0]:E.join(" "))};return Object.setPrototypeOf(I,fR1),I._generator=A,I._styler=Q,I._isEmpty=B,I},e$A=(A,Q)=>{if(A.level<=0||!Q)return A._isEmpty?"":Q;let B=A._styler;if(B===void 0)return Q;let{openAll:I,closeAll:E}=B;if(Q.indexOf("\x1B")!==-1)while(B!==void 0)Q=kR1(Q,B.close,B.open),B=B.parent;let C=Q.indexOf(`
`);if(C!==-1)Q=hR1(Q,E,I,C);return I+Q+E},Rd,EHA=(A,...Q)=>{let[B]=Q;if(!Bq(B)||!Bq(B.raw))return Q.join(" ");let I=Q.slice(1),E=[B.raw[0]];for(let C=1;C<B.length;C++)E.push(String(I[C-1]).replace(/[{}\\]/g,"\\$&"),String(B.raw[C]));if(Rd===void 0)Rd=t$A();return Rd(A,E.join(""))};Object.defineProperties(Iq.prototype,PF);var Cq=Iq();Cq.supportsColor=qd;Cq.stderr=Iq({level:Td?Td.level:0});Cq.stderr.supportsColor=Td;CHA.exports=Cq});var FHA=V(($5)=>{var Dq=$5&&$5.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty($5,"__esModule",{value:!0});$5.CocoaPodsPackageManager=$5.CocoaPodsError=void 0;$5.extractMissingDependencyError=Pd;$5.getPodUpdateMessage=gd;$5.getPodRepoUpdateMessage=YHA;$5.getImprovedPodInstallError=JHA;var bE=Dq(eR()),o5=Dq(DHA()),bR1=require("fs"),gU=Dq(require("os")),jd=Dq(require("path"));class Z7 extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=!0;constructor(A,Q,B){super(B?`${A}
└─ Cause: ${B.message}`:A);this.code=Q,this.cause=B}}$5.CocoaPodsError=Z7;function Pd(A){let Q=A.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(Q)return[Q[1],Q[2]];return null}class W8{options;silent;static getPodProjectRoot(A){if(W8.isUsingPods(A))return A;let Q=jd.default.join(A,"ios");if(W8.isUsingPods(Q))return Q;let B=jd.default.join(A,"macos");if(W8.isUsingPods(B))return B;return null}static isUsingPods(A){return(0,bR1.existsSync)(jd.default.join(A,"Podfile"))}static async gemInstallCLIAsync(A=!1,Q={stdio:"inherit"}){let B=["install","cocoapods","--no-document"];try{await(0,bE.default)("gem",B,Q)}catch(I){if(A)throw new Z7("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",I);console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation"),await(0,bE.default)("sudo",["gem",...B],Q)}}static async brewLinkCLIAsync(A={stdio:"inherit"}){await(0,bE.default)("brew",["link","cocoapods"],A)}static async brewInstallCLIAsync(A={stdio:"inherit"}){await(0,bE.default)("brew",["install","cocoapods"],A)}static async installCLIAsync({nonInteractive:A=!1,spawnOptions:Q={stdio:"inherit"}}){if(!Q)Q={stdio:"inherit"};let B=!!Q.ignoreStdio;try{return!B&&console.log("› Attempting to install CocoaPods CLI with Gem"),await W8.gemInstallCLIAsync(A,Q),!B&&console.log("› Successfully installed CocoaPods CLI with Gem"),!0}catch(I){if(!B)console.log(o5.default.yellow("› Failed to install CocoaPods CLI with Gem")),console.log(o5.default.red(I.stderr??I.message)),console.log("› Attempting to install CocoaPods CLI with Homebrew");try{if(await W8.brewInstallCLIAsync(Q),!await W8.isCLIInstalledAsync(Q))try{if(await W8.brewLinkCLIAsync(Q),!await W8.isCLIInstalledAsync(Q))throw new Z7("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",I)}catch(E){throw new Z7("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",E)}return!B&&console.log("› Successfully installed CocoaPods CLI with Homebrew"),!0}catch(E){throw!B&&console.warn(o5.default.yellow("› Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/")),new Z7("Failed to install CocoaPods with Homebrew. Install CocoaPods CLI and try again: https://cocoapods.org/","NO_CLI",E)}}}static isAvailable(A,Q){if(process.platform!=="darwin")return!Q&&console.log(o5.default.red("CocoaPods is only supported on macOS machines")),!1;if(!W8.isUsingPods(A))return!Q&&console.log(o5.default.yellow("CocoaPods is not supported in this project")),!1;return!0}static async isCLIInstalledAsync(A={stdio:"inherit"}){try{return await(0,bE.default)("pod",["--version"],A),!0}catch{return!1}}constructor({cwd:A,silent:Q}){this.silent=!!Q,this.options={cwd:A,stdio:"pipe"}}get name(){return"CocoaPods"}async installAsync({spinner:A}={}){await this._installAsync({spinner:A})}isCLIInstalledAsync(){return W8.isCLIInstalledAsync(this.options)}installCLIAsync(){return W8.installCLIAsync({nonInteractive:!0,spawnOptions:this.options})}async handleInstallErrorAsync({error:A,shouldUpdate:Q=!0,updatedPackages:B=[],spinner:I}){if(!A.output)throw A;if(!Q)throw JHA(A,{cwd:this.options.cwd});let E=A.output.join(gU.default.EOL).trim(),{updatePackage:C,shouldUpdateRepo:D}=gd(E);if(!C||B.includes(C))return await this._installAsync({spinner:I,shouldRepoUpdate:!0,shouldUpdate:!1,updatedPackages:B});return B.push(C),await this.runInstallTypeCommandAsync(["update",C,D?"":"--no-repo-update"].filter(Boolean),{formatWarning(){return`Failed to update ${o5.default.bold(C)}. Attempting to update the repo instead.`},spinner:I,updatedPackages:B})}async _installAsync({shouldRepoUpdate:A,...Q}={}){return await this.runInstallTypeCommandAsync(["install",A?"--repo-update":""].filter(Boolean),{formatWarning(B){return YHA(B.output.join(gU.default.EOL).trim()).message},...Q})}async runInstallTypeCommandAsync(A,{formatWarning:Q,...B}={}){try{return await this._runAsync(A)}catch(I){if(Q){let E=Q(I);if(B.spinner)B.spinner.text=o5.default.bold(E);if(!this.silent)console.warn(o5.default.yellow(E))}return await this.handleInstallErrorAsync({error:I,...B})}}async addWithParametersAsync(A,Q){throw Error("Unimplemented")}addAsync(A=[]){throw Error("Unimplemented")}addDevAsync(A=[]){throw Error("Unimplemented")}addGlobalAsync(A=[]){throw Error("Unimplemented")}removeAsync(A=[]){throw Error("Unimplemented")}removeDevAsync(A=[]){throw Error("Unimplemented")}removeGlobalAsync(A=[]){throw Error("Unimplemented")}async versionAsync(){let{stdout:A}=await(0,bE.default)("pod",["--version"],this.options);return A.trim()}async configAsync(A){throw Error("Unimplemented")}async removeLockfileAsync(){throw Error("Unimplemented")}async uninstallAsync(){throw Error("Unimplemented")}async podRepoUpdateAsync(){try{await this._runAsync([ Line truncated
${o5.default.gray(J)}`}}return new Z7("Command `pod install --repo-update` failed.","COMMAND_FAILED",A)}else{let I=A.stderr.trim(),E=A.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(E){if(A.message?.match(/pod exited with non-zero code: 1/))A.message="";I=null}A.message=[E,A.message,I].filter(Boolean).join(`
`)}return new Z7("Command `pod install` failed.","COMMAND_FAILED",A)}});var GHA=V((Yq)=>{Object.defineProperty(Yq,"__esModule",{value:!0});Yq.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;Yq.matchToToken=function(A){var Q={type:"invalid",value:A[0],closed:void 0};if(A[1])Q.type="string",Q.closed=!!(A[3]||A[4]);else if(A[5])Q.type="comment";else if(A[6])Q.type="comment",Q.closed=!!A[7];else if(A[8])Q.type="regex";else if(A[9])Q.type="number";else if(A[10])Q.type="name";else if(A[11])Q.type="punctuator";else if(A[12])Q.type="whitespace";return Q}});var WHA=V((_U)=>{Object.defineProperty(_U,"__esModule",{value:!0});_U.isIdentifierChar=UHA;_U.isIdentifierName=cR1;_U.isIdentifierStart=XHA;var vd="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ZHA="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",mR1=new RegExp("["+vd+"]"),uR1=new RegExp("["+vd+ZHA+"]");vd=ZHA=null;var NHA=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,2Line truncated
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function uHA(A){if(A[0]==="u"&&A.length===5||A[0]==="x"&&A.length===3)return String.fromCharCode(parseInt(A.slice(1),16));return Vq1.get(A)||A}function Kq1(A,Q){let B=[],I=Q.trim().split(/\s*,\s*/g),E;for(let C of I)if(!isNaN(C))B.push(Number(C));else if(E=C.match(Uq1))B.push(E[2].replace(Wq1,(D,Y,J)=>Y?uHA(Y):J));else throw Error(`Invalid Chalk template style argument: ${C} (in style '${A}')`);return B}function $q1(A){dHA.lastIndex=0;let Q=[],B;while((B=dHA.exec(A))!==null){let I=B[1];if(B[2]){let E=Kq1(I,B[2]);Q.push([I].concat(E))}else Q.push([I])}return Q}function mHA(A,Q){let B={};for(let E of Q)for(let C of E.styles)B[C[0]]=E.inverse?null:C.slice(1);let I=A;for(let E of Object.keys(B))if(Array.isArray(B[E])){if(!(E in I))throw Error(`Unknown Chalk style: ${E}`);if(B[E].length>0)I=I[E].apply(I,B[E]);else I=I[E]}return I}pHA.exports=(A,Q)=>{let B=[],I=[],E=[];if(Q.replace(Xq1,(C,D,Y,J,G,F)=>{if(D)E.push(uHA(D));else if(J){let Z=E.join("");E=[],I.push(B.length===0?Z:mHA(A,B)(Z)),B.push({inverse:Y,styles:$q1(J)})}else if(G){if(B.length===0)throw Error("Found extraneous } in Chalk template literal");I.push(mHA(A,B)(E.join(""))),E=[],B.pop()}else E.push(F)}),I.push(E.join("")),B.length>0){let C=`Chalk template literal is missing ${B.length} closing bracket${B.length===1?"":"s"} (\`}\`)`;throw Error(C)}return I.join("")}});var oHA=V((zi1,kU)=>{var ud=qHA(),N4=kHA(),md=bHA().stdout,Hq1=cHA(),iHA=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),nHA=["ansi","ansi","ansi256","ansi16m"],aHA=new Set(["gray"]),SF=Object.create(null);function lHA(A,Q){Q=Q||{};let B=md?md.level:0;A.level=Q.level===void 0?B:Q.level,A.enabled="enabled"in Q?Q.enabled:A.level>0}function xU(A){if(!this||!(this instanceof xU)||this.template){let Q={};return lHA(Q,A),Q.template=function(){let B=[].slice.call(arguments);return Lq1.apply(null,[Q.template].concat(B))},Object.setPrototypeOf(Q,xU.prototype),Object.setPrototypeOf(Q.template,Q),Q.template.constructor=xU,Q.template}lHA(this,A)}if(iHA)N4.blue.open="\x1B[94m";for(let A of Object.keys(N4))N4[A].closeRe=new RegExp(ud(N4[A].close),"g"),SF[A]={get(){let Q=N4[A];return Uq.call(this,this._styles?this._styles.concat(Q):[Q],this._empty,A)}};SF.visible={get(){return Uq.call(this,this._styles||[],!0,"visible")}};N4.color.closeRe=new RegExp(ud(N4.color.close),"g");for(let A of Object.keys(N4.color.ansi)){if(aHA.has(A))continue;SF[A]={get(){let Q=this.level;return function(){let I={open:N4.color[nHA[Q]][A].apply(null,arguments),close:N4.color.close,closeRe:N4.color.closeRe};return Uq.call(this,this._styles?this._styles.concat(I):[I],this._empty,A)}}}}N4.bgColor.closeRe=new RegExp(ud(N4.bgColor.close),"g");for(let A of Object.keys(N4.bgColor.ansi)){if(aHA.has(A))continue;let Q="bg"+A[0].toUpperCase()+A.slice(1);SF[Q]={get(){let B=this.level;return function(){let E={open:N4.bgColor[nHA[B]][A].apply(null,arguments),close:N4.bgColor.close,closeRe:N4.bgColor.closeRe};return Uq.call(this,this._styles?this._styles.concat(E):[E],this._empty,A)}}}}var wq1=Object.defineProperties(()=>{},SF);function Uq(A,Q,B){let I=function(){return zq1.apply(I,arguments)};I._styles=A,I._empty=Q;let E=this;return Object.defineProperty(I,"level",{enumerable:!0,get(){return E.level},set(C){E.level=C}}),Object.defineProperty(I,"enabled",{enumerable:!0,get(){return E.enabled},set(C){E.enabled=C}}),I.hasGrey=this.hasGrey||B==="gray"||B==="grey",I.__proto__=wq1,I}function zq1(){let A=arguments,Q=A.length,B=String(arguments[0]);if(Q===0)return"";if(Q>1)for(let E=1;E<Q;E++)B+=" "+A[E];if(!this.enabled||this.level<=0||!B)return this._empty?"":B;let I=N4.dim.open;if(iHA&&this.hasGrey)N4.dim.open="";for(let E of this._styles.slice().reverse())B=E.open+B.replace(E.closeRe,E.open)+E.close,B=B.replace(/\r?\n/g,`${E.close}$&${E.open}`);return N4.dim.open=I,B}function Lq1(A,Q){if(!Array.isArray(Q))return[].slice.call(arguments,1).join(" ");let B=[].slice.call(arguments,2),I=[Q.raw[0]];for(let E=1;E<Q.length;E++)I.push(String(B[E-1]).replace(/[{}\\]/g,"\\$&")),I.push(String(Q.raw[E]));return Hq1(A,I.join(""))}Object.defineProperties(xU.prototype,SF);kU.exports=xU();kU.exports.supportsColor=md;kU.exports.default=kU.exports});var IwA=V((hU)=>{Object.defineProperty(hU,"__esModule",{value:!0});hU.default=gq1;hU.shouldHighlight=BwA;var sHA=GHA(),rHA=wHA(),cd=Mq1(MHA(),!0);function eHA(A){if(typeof WeakMap!="function")return null;var Q=new WeakMap,B=new WeakMap;return(eHA=function(I){return I?B:Q})(A)}function Mq1(A,Q){if(!Q&&A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var B=eHA(Q);if(B&&B.has(A))return B.get(A);var I={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in A)if(C!=="default"&&{}.hasOwnProperty.call(A,C)){var D=E?Object.getOwnPropertyDescriptor(A,C):null;D&&(D.get||D.set)?Object.defineProperty(I,C,D)Line truncated
`);else B+=E}return B}function BwA(A){return AwA.isColorSupported||A.forceColor}var pd=void 0;function Pq1(A){if(A){var Q;return(Q=pd)!=null||(pd=(0,cd.createColors)(!0)),pd}return AwA}function gq1(A,Q={}){if(A!==""&&BwA(Q)){let B=qq1(Pq1(Q.forceColor));return jq1(B,A)}else return A}{let A,Q;hU.getChalk=({forceColor:B})=>{var I;if((I=A)!=null||(A=oHA()),B){var E;return(E=Q)!=null||(Q=new A.constructor({enabled:!0,level:1})),Q}return A}}});var JwA=V((Wq)=>{Object.defineProperty(Wq,"__esModule",{value:!0});Wq.codeFrameColumns=YwA;Wq.default=xq1;var ld=_q1(IwA());function DwA(){if(typeof WeakMap!=="function")return null;var A=new WeakMap;return DwA=function(){return A},A}function _q1(A){if(A&&A.__esModule)return A;if(A===null||typeof A!=="object"&&typeof A!=="function")return{default:A};var Q=DwA();if(Q&&Q.has(A))return Q.get(A);var B={},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in A)if(Object.prototype.hasOwnProperty.call(A,E)){var C=I?Object.getOwnPropertyDescriptor(A,E):null;if(C&&(C.get||C.set))Object.defineProperty(B,E,C);else B[E]=A[E]}if(B.default=A,Q)Q.set(A,B);return B}var EwA=!1;function vq1(A){return{gutter:A.grey,marker:A.red.bold,message:A.red.bold}}var CwA=/\r\n|[\n\r\u2028\u2029]/;function Sq1(A,Q,B){let I=Object.assign({column:0,line:-1},A.start),E=Object.assign({},I,A.end),{linesAbove:C=2,linesBelow:D=3}=B||{},Y=I.line,J=I.column,G=E.line,F=E.column,Z=Math.max(Y-(C+1),0),N=Math.min(Q.length,G+D);if(Y===-1)Z=0;if(G===-1)N=Q.length;let X=G-Y,U={};if(X)for(let W=0;W<=X;W++){let $=W+Y;if(!J)U[$]=!0;else if(W===0){let H=Q[$-1].length;U[$]=[J,H-J+1]}else if(W===X)U[$]=[0,F];else{let H=Q[$-W].length;U[$]=[0,H]}}else if(J===F)if(J)U[Y]=[J,0];else U[Y]=!0;else U[Y]=[J,F-J];return{start:Z,end:N,markerLines:U}}function YwA(A,Q,B={}){let I=(B.highlightCode||B.forceColor)&&(0,ld.shouldHighlight)(B),E=(0,ld.getChalk)(B),C=vq1(E),D=(W,$)=>{return I?W($):$},Y=A.split(CwA),{start:J,end:G,markerLines:F}=Sq1(Q,Y,B),Z=Q.start&&typeof Q.start.column==="number",N=String(G).length,U=(I?(0,ld.default)(A,B):A).split(CwA).slice(J,G).map((W,$)=>{let H=J+1+$,w=` ${` ${H}`.slice(-N)} | `,P=F[H],c=!F[H+1];if(P){let p="";if(Array.isArray(P)){let S=W.slice(0,Math.max(P[0]-1,0)).replace(/[^\t]/g," "),o=P[1]||1;if(p=[`
`,D(C.gutter,w.replace(/\d/g," ")),S,D(C.marker,"^").repeat(o)].join(""),c&&B.message)p+=" "+D(C.message,B.message)}return[D(C.marker,">"),D(C.gutter,w),W,p].join("")}else return` ${D(C.gutter,w)}${W}`}).join(`
`);if(B.message&&!Z)U=`${" ".repeat(N+1)}${B.message}
${U}`;if(I)return E.reset(U);else return U}function xq1(A,Q,B,I={}){if(!EwA){EwA=!0;let C="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(C,"DeprecationWarning");else{let D=Error(C);D.name="DeprecationWarning",console.warn(Error(C))}}return B=Math.max(B,0),YwA(A,{start:{column:B,line:Q}},I)}});var FwA=V((Ri1,Vq)=>{Vq.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;Vq.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF5 Line truncated
`)nB++,r5=0;else if(A)r5+=A.length;else r5++;if(A)$q+=A.length;return A}var NwA={default(){switch(I0){case"\t":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
`:case"\r":case"\u2028":case"\u2029":zA();return;case"/":zA(),f1="comment";return;case void 0:return zA(),X2("eof")}if(o4.isSpaceSeparator(I0)){zA();return}return NwA[U9]()},comment(){switch(I0){case"*":zA(),f1="multiLineComment";return;case"/":zA(),f1="singleLineComment";return}throw U2(zA())},multiLineComment(){switch(I0){case"*":zA(),f1="multiLineCommentAsterisk";return;case void 0:throw U2(zA())}zA()},multiLineCommentAsterisk(){switch(I0){case"*":zA();return;case"/":zA(),f1="default";return;case void 0:throw U2(zA())}zA(),f1="multiLineComment"},singleLineComment(){switch(I0){case`
`:case"\r":case"\u2028":case"\u2029":zA(),f1="default";return;case void 0:return zA(),X2("eof")}zA()},value(){switch(I0){case"{":case"[":return X2("punctuator",zA());case"n":return zA(),uE("ull"),X2("null",null);case"t":return zA(),uE("rue"),X2("boolean",!0);case"f":return zA(),uE("alse"),X2("boolean",!1);case"-":case"+":if(zA()==="-")N7=-1;f1="sign";return;case".":O1=zA(),f1="decimalPointLeading";return;case"0":O1=zA(),f1="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":O1=zA(),f1="decimalInteger";return;case"I":return zA(),uE("nfinity"),X2("numeric",1/0);case"N":return zA(),uE("aN"),X2("numeric",NaN);case'"':case"'":yU=zA()==='"',O1="",f1="string";return}throw U2(zA())},identifierNameStartEscape(){if(I0!=="u")throw U2(zA());zA();let A=rd();switch(A){case"$":case"_":break;default:if(!o4.isIdStartChar(A))throw ZwA();break}O1+=A,f1="identifierName"},identifierName(){switch(I0){case"$":case"_":case"‌":case"‍":O1+=zA();return;case"\\":zA(),f1="identifierNameEscape";return}if(o4.isIdContinueChar(I0)){O1+=zA();return}return X2("identifier",O1)},identifierNameEscape(){if(I0!=="u")throw U2(zA());zA();let A=rd();switch(A){case"$":case"_":case"‌":case"‍":break;default:if(!o4.isIdContinueChar(A))throw ZwA();break}O1+=A,f1="identifierName"},sign(){switch(I0){case".":O1=zA(),f1="decimalPointLeading";return;case"0":O1=zA(),f1="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":O1=zA(),f1="decimalInteger";return;case"I":return zA(),uE("nfinity"),X2("numeric",N7*(1/0));case"N":return zA(),uE("aN"),X2("numeric",NaN)}throw U2(zA())},zero(){switch(I0){case".":O1+=zA(),f1="decimalPoint";return;case"e":case"E":O1+=zA(),f1="decimalExponent";return;case"x":case"X":O1+=zA(),f1="hexadecimal";return}return X2("numeric",N7*0)},decimalInteger(){switch(I0){case".":O1+=zA(),f1="decimalPoint";return;case"e":case"E":O1+=zA(),f1="decimalExponent";return}if(o4.isDigit(I0)){O1+=zA();return}return X2("numeric",N7*Number(O1))},decimalPointLeading(){if(o4.isDigit(I0)){O1+=zA(),f1="decimalFraction";return}throw U2(zA())},decimalPoint(){switch(I0){case"e":case"E":O1+=zA(),f1="decimalExponent";return}if(o4.isDigit(I0)){O1+=zA(),f1="decimalFraction";return}return X2("numeric",N7*Number(O1))},decimalFraction(){switch(I0){case"e":case"E":O1+=zA(),f1="decimalExponent";return}if(o4.isDigit(I0)){O1+=zA();return}return X2("numeric",N7*Number(O1))},decimalExponent(){switch(I0){case"+":case"-":O1+=zA(),f1="decimalExponentSign";return}if(o4.isDigit(I0)){O1+=zA(),f1="decimalExponentInteger";return}throw U2(zA())},decimalExponentSign(){if(o4.isDigit(I0)){O1+=zA(),f1="decimalExponentInteger";return}throw U2(zA())},decimalExponentInteger(){if(o4.isDigit(I0)){O1+=zA();return}return X2("numeric",N7*Number(O1))},hexadecimal(){if(o4.isHexDigit(I0)){O1+=zA(),f1="hexadecimalInteger";return}throw U2(zA())},hexadecimalInteger(){if(o4.isHexDigit(I0)){O1+=zA();return}return X2("numeric",N7*Number(O1))},string(){switch(I0){case"\\":zA(),O1+=hq1();return;case'"':if(yU)return zA(),X2("string",O1);O1+=zA();return;case"'":if(!yU)return zA(),X2("string",O1);O1+=zA();return;case`
`:case"\r":throw U2(zA());case"\u2028":case"\u2029":bq1(I0);break;case void 0:throw U2(zA())}O1+=zA()},start(){switch(I0){case"{":case"[":return X2("punctuator",zA())}f1="value"},beforePropertyName(){switch(I0){case"$":case"_":O1=zA(),f1="identifierName";return;case"\\":zA(),f1="identifierNameStartEscape";return;case"}":return X2("punctuator",zA());case'"':case"'":yU=zA()==='"',f1="string";return}if(o4.isIdStartChar(I0)){O1+=zA(),f1="identifierName";return}throw U2(zA())},afterPropertyName(){if(I0===":")return X2("punctuator",zA());throw U2(zA())},beforePropertyValue(){f1="value"},afterPropertyValue(){switch(I0){case",":case"}":return X2("punctuator",zA())}throw U2(zA())},beforeArrayValue(){if(I0==="]")return X2("punctuator",zA());f1="value"},afterArrayValue(){switch(I0){case",":case"]":return X2("punctuator",zA())}throw U2(zA())},end(){throw U2(zA())}};function X2(A,Q){return{type:A,value:Q,line:nB,column:r5}}function uE(A){for(let Q of A){if(U7()!==Q)throw U2(zA());zA()}}function hq1(){switch(U7()){case"b":return zA(),"\b";case"f":return zA(),"\f";case"n":return zA(),`
`;case"r":return zA(),"\r";case"t":return zA(),"\t";case"v":return zA(),"\v";case"0":if(zA(),o4.isDigit(U7()))throw U2(zA());return"\x00";case"x":return zA(),yq1();case"u":return zA(),rd();case`
`:case"\u2028":case"\u2029":return zA(),"";case"\r":if(zA(),U7()===`
`)zA();return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw U2(zA());case void 0:throw U2(zA())}return zA()}function yq1(){let A="",Q=U7();if(!o4.isHexDigit(Q))throw U2(zA());if(A+=zA(),Q=U7(),!o4.isHexDigit(Q))throw U2(zA());return A+=zA(),String.fromCodePoint(parseInt(A,16))}function rd(){let A="",Q=4;while(Q-- >0){let B=U7();if(!o4.isHexDigit(B))throw U2(zA());A+=zA()}return String.fromCodePoint(parseInt(A,16))}var fq1={start(){if(s4.type==="eof")throw pE();ad()},beforePropertyName(){switch(s4.type){case"identifier":case"string":td=s4.value,U9="afterPropertyName";return;case"punctuator":Kq();return;case"eof":throw pE()}},afterPropertyName(){if(s4.type==="eof")throw pE();U9="beforePropertyValue"},beforePropertyValue(){if(s4.type==="eof")throw pE();ad()},beforeArrayValue(){if(s4.type==="eof")throw pE();if(s4.type==="punctuator"&&s4.value==="]"){Kq();return}ad()},afterPropertyValue(){if(s4.type==="eof")throw pE();switch(s4.value){case",":U9="beforePropertyName";return;case"}":Kq()}},afterArrayValue(){if(s4.type==="eof")throw pE();switch(s4.value){case",":U9="beforeArrayValue";return;case"]":Kq()}},end(){}};function ad(){let A;switch(s4.type){case"punctuator":switch(s4.value){case"{":A={};break;case"[":A=[];break}break;case"null":case"boolean":case"numeric":case"string":A=s4.value;break}if(fU===void 0)fU=A;else{let Q=X7[X7.length-1];if(Array.isArray(Q))Q.push(A);else Object.defineProperty(Q,td,{value:A,writable:!0,enumerable:!0,configurable:!0})}if(A!==null&&typeof A==="object")if(X7.push(A),Array.isArray(A))U9="beforeArrayValue";else U9="beforePropertyName";else{let Q=X7[X7.length-1];if(Q==null)U9="end";else if(Array.isArray(Q))U9="afterArrayValue";else U9="afterPropertyValue"}}function Kq(){X7.pop();let A=X7[X7.length-1];if(A==null)U9="end";else if(Array.isArray(A))U9="afterArrayValue";else U9="afterPropertyValue"}function U2(A){if(A===void 0)return Hq(`JSON5: invalid end of input at ${nB}:${r5}`);return Hq(`JSON5: invalid character '${XwA(A)}' at ${nB}:${r5}`)}function pE(){return Hq(`JSON5: invalid end of input at ${nB}:${r5}`)}function ZwA(){return r5-=5,Hq(`JSON5: invalid identifier character at ${nB}:${r5}`)}function bq1(A){console.warn(`JSON5: '${XwA(A)}' in strings is not valid ECMAScript; consider escaping`)}function XwA(A){let Q={"'":"\\'",'"':"\\\"","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(Q[A])return Q[A];if(A<" "){let B=A.charCodeAt(0).toString(16);return"\\x"+("00"+B).substring(B.length)}return A}function Hq(A){let Q=SyntaxError(A);return Q.lineNumber=nB,Q.columnNumber=r5,Q}});var KwA=V((Oi1,VwA)=>{var ed=nd();VwA.exports=function(Q,B,I){let E=[],C="",D,Y,J="",G;if(B!=null&&typeof B==="object"&&!Array.isArray(B))I=B.space,G=B.quote,B=B.replacer;if(typeof B==="function")Y=B;else if(Array.isArray(B)){D=[];for(let W of B){let $;if(typeof W==="string")$=W;else if(typeof W==="number"||W instanceof String||W instanceof Number)$=String(W);if($!==void 0&&D.indexOf($)<0)D.push($)}}if(I instanceof Number)I=Number(I);else if(I instanceof String)I=String(I);if(typeof I==="number"){if(I>0)I=Math.min(10,Math.floor(I)),J=" ".substr(0,I)}else if(typeof I==="string")J=I.substr(0,10);return F("",{"":Q});function F(W,$){let H=$[W];if(H!=null){if(typeof H.toJSON5==="function")H=H.toJSON5(W);else if(typeof H.toJSON==="function")H=H.toJSON(W)}if(Y)H=Y.call($,W,H);if(H instanceof Number)H=Number(H);else if(H instanceof String)H=String(H);else if(H instanceof Boolean)H=H.valueOf();switch(H){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof H==="string")return Z(H,!1);if(typeof H==="number")return String(H);if(typeof H==="object")return Array.isArray(H)?U(H):N(H);return}function Z(W){let $={"'":0.1,'"':0.2},H={"'":"\\'",'"':"\\\"","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},L="";for(let P=0;P<W.length;P++){let c=W[P];switch(c){case"'":case'"':$[c]++,L+=c;continue;case"\x00":if(ed.isDigit(W[P+1])){L+="\\x00";continue}}if(H[c]){L+=H[c];continue}if(c<" "){let p=c.charCodeAt(0).toString(16);L+="\\x"+("00"+p).substring(p.length);continue}L+=c}let w=G||Object.keys($).reduce((P,c)=>$[P]<$[c]?P:c);return L=L.replace(new RegExp(w,"g"),H[w]),w+L+w}function N(W){if(E.indexOf(W)>=0)throw TypeError("Converting circular structure to JSON5");E.push(W);let $=C;C=C+J;let H=D||Object.keys(W),L=[];for(let P of H){let c=F(P,W);if(c!==void 0){let p=X(P)+":";if(J!=="")p+=" ";p+=c,L.push(p)}}let w;if(L.length===0)w="{}";else{let P;if(J==="")P=L.join(","),w="{"+P+"}";else{let c=`,
`+C;P=L.join(c),w=`{
`+C+P+`,
`+$+"}"}}return E.pop(),C=$,w}function X(W){if(W.length===0)return Z(W,!0);let $=String.fromCodePoint(W.codePointAt(0));if(!ed.isIdStartChar($))return Z(W,!0);for(let H=$.length;H<W.length;H++)if(!ed.isIdContinueChar(String.fromCodePoint(W.codePointAt(H))))return Z(W,!0);return W}function U(W){if(E.indexOf(W)>=0)throw TypeError("Converting circular structure to JSON5");E.push(W);let $=C;C=C+J;let H=[];for(let w=0;w<W.length;w++){let P=F(String(w),W);H.push(P!==void 0?P:"null")}let L;if(H.length===0)L="[]";else if(J==="")L="["+H.join(",")+"]";else{let w=`,
`+C,P=H.join(w);L=`[
`+C+P+`,
`+$+"]"}return E.pop(),C=$,L}}});var HwA=V((ji1,$wA)=>{var dq1=WwA(),mq1=KwA(),uq1={parse:dq1,stringify:mq1};$wA.exports=uq1});var zwA=V((bU)=>{Object.defineProperty(bU,"__esModule",{value:!0});bU.EmptyJsonFileError=void 0;class Am extends Error{cause;code;fileName;isJsonFileError;constructor(A,Q,B,I){let E=A;if(I)E+=`
${Q?"├":"└"}─ File: ${I}`;if(Q)E+=`
└─ Cause: ${Q.name}: ${Q.message}`;super(E);this.name=this.constructor.name,this.cause=Q,this.code=B,this.fileName=I,this.isJsonFileError=!0}}bU.default=Am;class wwA extends Am{constructor(A){super("Cannot parse an empty JSON string",void 0,"EJSONEMPTY",A)}}bU.EmptyJsonFileError=wwA});var MwA=V((J3)=>{var pq1=J3&&J3.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),cq1=J3&&J3.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),lq1=J3&&J3.__importStar||function(){var A=function(Q){return A=Object.getOwnPropertyNames||function(B){var I=[];for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E))I[I.length]=E;return I},A(Q)};return function(Q){if(Q&&Q.__esModule)return Q;var B={};if(Q!=null){for(var I=A(Q),E=0;E<I.length;E++)if(I[E]!=="default")pq1(B,Q,I[E])}return cq1(B,Q),B}}();Object.defineProperty(J3,"__esModule",{value:!0});J3.writeFileAtomicSync=nq1;J3.writeFileAtomic=aq1;var iq1=require("node:crypto"),wq=lq1(require("node:fs"));function LwA(A,Q){let B=(0,iq1.createHash)("sha256").update(Q).digest("base64url");return`${A}.${B}`}function nq1(A,Q){let B=LwA(A,Q);wq.writeFileSync(B,Q),wq.renameSync(B,A)}async function aq1(A,Q){let B=LwA(A,Q);await wq.promises.writeFile(B,Q),await wq.promises.rename(B,A)}});var fwA=V((t5)=>{var oq1=t5&&t5.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),sq1=t5&&t5.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),rq1=t5&&t5.__importStar||function(){var A=function(Q){return A=Object.getOwnPropertyNames||function(B){var I=[];for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E))I[I.length]=E;return I},A(Q)};return function(Q){if(Q&&Q.__esModule)return Q;var B={};if(Q!=null){for(var I=A(Q),E=0;E<I.length;E++)if(I[E]!=="default")oq1(B,Q,I[E])}return sq1(B,Q),B}}(),Im=t5&&t5.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(t5,"__esModule",{value:!0});var tq1=JwA(),Em=Im(HwA()),Lq=Im(require("node:fs")),xwA=Im(require("node:path")),aB=rq1(zwA()),kwA=MwA(),eq1={badJsonDefault:void 0,jsonParseErrorDefault:void 0,cantReadFileDefault:void 0,ensureDir:!1,default:void 0,json5:!1,space:2,addNewLineAtEOF:!0};class hwA{file;options;static read=lE;static readAsync=iE;static parseJsonString=zq;static write=xF;static writeAsync=kF;static get=RwA;static getAsync=qwA;static set=TwA;static setAsync=OwA;static merge=PwA;static mergeAsync=jwA;static deleteKey=_wA;static deleteKeyAsync=gwA;static deleteKeys=Bm;static deleteKeysAsync=Qm;static rewrite=SwA;static rewriteAsync=vwA;constructor(A,Q={}){this.file=A,this.options=Q}read(A){return lE(this.file,this._getOptions(A))}async readAsync(A){return iE(this.file,this._getOptions(A))}write(A,Q){return xF(this.file,A,this._getOptions(Q))}async writeAsync(A,Q){return kF(this.file,A,this._getOptions(Q))}parseJsonString(A,Q){return zq(A,Q)}get(A,Q,B){return RwA(this.file,A,Q,this._getOptions(B))}async getAsync(A,Q,B){return qwA(this.file,A,Q,this._getOptions(B))}set(A,Q,B){return TwA(this.file,A,Q,this._getOptions(B))}async setAsync(A,Q,B){return OwA(this.file,A,Q,this._getOptions(B))}async merge(A,Q){return PwA(this.file,A,this._getOptions(Q))}async mergeAsync(A,Q){return jwA(this.file,A,this._getOptions(Q))}deleteKey(A,Q){return _wA(this.file,A,this._getOptions(Q))}async deleteKeyAsync(A,Q){return gwA(this.file,A,this._getOptions(Q))}deleteKeys(A,Q){return Bm(this.file,A,this._getOptions(Q))}async deleteKeysAsync(A,Q){return Qm(this.file,A,this._getOptions(Q))}rewrite(A){return SwA(this.file,this._getOptions(A))}async rewriteAsync(A){return vwA(this.file,this._getOptions(A))}_getOptions(A){return{...this.options,...A}}}t5.default=hwA;function lE(A,Q){let B;try{B=Lq.default.readFileSync(A,"utf8")}catch(I){Cm(B,A);let E=ywA(Q);if(E===void 0)throw new aB.default(`Can't read JSON file: ${A}`,I,I.code,A);else return E}return zq(B,Q,A)}async function iE(A,Q){let B;try{B=await Lq.default.promises.readFile(A,"utf8")}catch(I){Cm(B,A);let E=ywA(Q);if(E===void 0)throw new aB.default(`Can't read JSON file: ${A}`,I,I.code);else return E}return zq(B,Q)}function zq(A,Q,B){Cm(A,B);try{if(cE(Q,"json5"))return Em.default.parse(A);else return JSON.parse(A)}catch(I){let E=AT1(Q);if(E===void 0){let C=QT1(I,A);if(C){let D=(0,tq1.codeFrameColumns)(A,{start:C});I.codeFrame=D,I.message+=`
${D}`}throw new aB.default(`Error parsing JSON: ${A}`,I,"EJSONPARSE",B)}else return E}}function RwA(A,Q,B,I){let E=lE(A,I);if(Q in E)return E[Q];if(B===void 0)throw new aB.default(`No value at key path "${String(Q)}" in JSON object from: ${A}`);return B}async function qwA(A,Q,B,I){let E=await iE(A,I);if(Q in E)return E[Q];if(B===void 0)throw new aB.default(`No value at key path "${String(Q)}" in JSON object from: ${A}`);return B}function xF(A,Q,B){if(B?.ensureDir)Lq.default.mkdirSync(xwA.default.dirname(A),{recursive:!0});let I=cE(B,"space"),E=cE(B,"json5"),C=cE(B,"addNewLineAtEOF"),D;try{if(E)D=Em.default.stringify(Q,null,I);else D=JSON.stringify(Q,null,I)}catch(J){throw new aB.default(`Couldn't JSON.stringify object for file: ${A}`,J)}let Y=C?`${D}
`:D;return(0,kwA.writeFileAtomicSync)(A,Y),Q}async function kF(A,Q,B){if(B?.ensureDir)await Lq.default.promises.mkdir(xwA.default.dirname(A),{recursive:!0});let I=cE(B,"space"),E=cE(B,"json5"),C=cE(B,"addNewLineAtEOF"),D;try{if(E)D=Em.default.stringify(Q,null,I);else D=JSON.stringify(Q,null,I)}catch(J){throw new aB.default(`Couldn't JSON.stringify object for file: ${A}`,J)}let Y=C?`${D}
`:D;return await(0,kwA.writeFileAtomic)(A,Y),Q}function TwA(A,Q,B,I){let E=lE(A,I);return xF(A,{...E,[Q]:B},I)}async function OwA(A,Q,B,I){let E=await iE(A,I);return kF(A,{...E,[Q]:B},I)}async function jwA(A,Q,B){let I=await iE(A,B);if(Array.isArray(Q))Object.assign(I,...Q);else Object.assign(I,Q);return kF(A,I,B)}function PwA(A,Q,B){let I=lE(A,B);if(Array.isArray(Q))Object.assign(I,...Q);else Object.assign(I,Q);return xF(A,I,B)}async function gwA(A,Q,B){return Qm(A,[Q],B)}function _wA(A,Q,B){return Bm(A,[Q],B)}async function Qm(A,Q,B){let I=await iE(A,B),E=!1;for(let C=0;C<Q.length;C++){let D=Q[C];if(I.hasOwnProperty(D))delete I[D],E=!0}if(E)return kF(A,I,B);return I}function Bm(A,Q,B){let I=lE(A,B),E=!1;for(let C=0;C<Q.length;C++){let D=Q[C];if(I.hasOwnProperty(D))delete I[D],E=!0}if(E)return xF(A,I,B);return I}async function vwA(A,Q){let B=await iE(A,Q);return kF(A,B,Q)}function SwA(A,Q){return xF(A,lE(A,Q),Q)}function AT1(A={}){if(A.jsonParseErrorDefault===void 0)return A.default;else return A.jsonParseErrorDefault}function ywA(A={}){if(A.cantReadFileDefault===void 0)return A.default;else return A.cantReadFileDefault}function cE(A,Q){if(A){if(A[Q]!==void 0)return A[Q]}return eq1[Q]}function QT1(A,Q){if("lineNumber"in A&&"columnNumber"in A)return{line:A.lineNumber,column:A.columnNumber};let B=/at position (\d+)/.exec(A.message);if(B){let I=parseInt(B[1],10),E=Q.slice(0,I+1).split(`
`);return{line:E.length,column:E[E.length-1].length}}return null}function Cm(A,Q){if(A?.trim()==="")throw new aB.EmptyJsonFileError(Q)}});var pwA=V((Rq)=>{Object.defineProperty(Rq,"__esModule",{value:!0});Rq.LRUCache=void 0;var hF=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,dwA=new Set,Dm=typeof process==="object"&&!!process?process:{},mwA=(A,Q,B,I)=>{typeof Dm.emitWarning==="function"?Dm.emitWarning(A,Q,B,I):console.error(`[${B}] ${Q}: ${A}`)},Mq=globalThis.AbortController,bwA=globalThis.AbortSignal;if(typeof Mq>"u"){bwA=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(I,E){this._onabort.push(E)}},Mq=class{constructor(){Q()}signal=new bwA;abort(I){if(this.signal.aborted)return;this.signal.reason=I,this.signal.aborted=!0;for(let E of this.signal._onabort)E(I);this.signal.onabort?.(I)}};let A=Dm.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",Q=()=>{if(!A)return;A=!1,mwA("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",Q)}}var BT1=(A)=>!dwA.has(A),vi1=Symbol("type"),oB=(A)=>A&&A===Math.floor(A)&&A>0&&isFinite(A),uwA=(A)=>!oB(A)?null:A<=Math.pow(2,8)?Uint8Array:A<=Math.pow(2,16)?Uint16Array:A<=Math.pow(2,32)?Uint32Array:A<=Number.MAX_SAFE_INTEGER?dU:null;class dU extends Array{constructor(A){super(A);this.fill(0)}}class yF{heap;length;static#A=!1;static create(A){let Q=uwA(A);if(!Q)return[];yF.#A=!0;let B=new yF(A,Q);return yF.#A=!1,B}constructor(A,Q){if(!yF.#A)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new Q(A),this.length=0}push(A){this.heap[this.length++]=A}pop(){return this.heap[--this.length]}}class Ym{#A;#Q;#I;#B;#D;#T;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#G;#X;#Y;#J;#E;#Z;#F;#W;#V;#M;#U;#O;#z;#H;#R;#L;#K;static unsafeExposeInternals(A){return{starts:A.#z,ttls:A.#H,sizes:A.#O,keyMap:A.#Y,keyList:A.#J,valList:A.#E,next:A.#Z,prev:A.#F,get head(){return A.#W},get tail(){return A.#V},free:A.#M,isBackgroundFetch:(Q)=>A.#N(Q),backgroundFetch:(Q,B,I,E)=>A.#x(Q,B,I,E),moveToTail:(Q)=>A.#d(Q),indexes:(Q)=>A.#g(Q),rindexes:(Q)=>A.#v(Q),isStale:(Q)=>A.#w(Q)}}get max(){return this.#A}get maxSize(){return this.#Q}get calculatedSize(){return this.#X}get size(){return this.#G}get fetchMethod(){return this.#D}get memoMethod(){return this.#T}get dispose(){return this.#I}get disposeAfter(){return this.#B}constructor(A){let{max:Q=0,ttl:B,ttlResolution:I=1,ttlAutopurge:E,updateAgeOnGet:C,updateAgeOnHas:D,allowStale:Y,dispose:J,disposeAfter:G,noDisposeOnSet:F,noUpdateTTL:Z,maxSize:N=0,maxEntrySize:X=0,sizeCalculation:U,fetchMethod:W,memoMethod:$,noDeleteOnFetchRejection:H,noDeleteOnStaleGet:L,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:P,ignoreFetchAbort:c}=A;if(Q!==0&&!oB(Q))throw TypeError("max option must be a nonnegative integer");let p=Q?uwA(Q):Array;if(!p)throw Error("invalid max value: "+Q);if(this.#A=Q,this.#Q=N,this.maxEntrySize=X||this.#Q,this.sizeCalculation=U,this.sizeCalculation){if(!this.#Q&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!=="function")throw TypeError("sizeCalculation set to non-function")}if($!==void 0&&typeof $!=="function")throw TypeError("memoMethod must be a function if defined");if(this.#T=$,W!==void 0&&typeof W!=="function")throw TypeError("fetchMethod must be a function if specified");if(this.#D=W,this.#L=!!W,this.#Y=new Map,this.#J=Array(Q).fill(void 0),this.#E=Array(Q).fill(void 0),this.#Z=new p(Q),this.#F=new p(Q),this.#W=0,this.#V=0,this.#M=yF.create(Q),this.#G=0,this.#X=0,typeof J==="function")this.#I=J;if(typeof G==="function")this.#B=G,this.#U=[];else this.#B=void 0,this.#U=void 0;if(this.#R=!!this.#I,this.#K=!!this.#B,this.noDisposeOnSet=!!F,this.noUpdateTTL=!!Z,this.noDeleteOnFetchRejection=!!H,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!P,this.ignoreFetchAbort=!!c,this.maxEntrySize!==0){if(this.#Q!==0){if(!oB(this.#Q))throw TypeError("maxSize must be a positive integer if specified")}if(!oB(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#j()}if(this.allowStale=!!Y,this.noDeleteOnStaleGet=!!L,this.updateAgeOnGet=!!C,this.updateAgeOnHas=!!D,this.ttlResolution=oB(I)||I===0?I:1,this.ttlAutopurge=!!E,this.ttl=B||0,this.ttl){if(!oB(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#_()}if(this.#A===0&&this.ttl===0&&th Line truncated
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},5873:(E,C,D)=>{let Y=D(6330),J=D(8750),G=D(5207),F=(N="",X="",U=!1)=>{let W=[];if(N=[].concat(N),X=[].concat(X),!X.length)return N;if(!N.length)return U?G.flatten(X).map(($)=>`{${$}}`):X;for(let $ of N)if(Array.isArray($))for(let H of $)W.push(F(H,X,U));else for(let H of X){if(U===!0&&typeof H==="string")H=`{${H}}`;W.push(Array.isArray(H)?F($,H,U):$+H)}return G.flatten(W)},Z=(N,X={})=>{let U=X.rangeLimit===void 0?1000:X.rangeLimit,W=($,H={})=>{$.queue=[];let L=H,w=H.queue;while(L.type!=="brace"&&L.type!=="root"&&L.parent)L=L.parent,w=L.queue;if($.invalid||$.dollar){w.push(F(w.pop(),J($,X)));return}if($.type==="brace"&&$.invalid!==!0&&$.nodes.length===2){w.push(F(w.pop(),["{}"]));return}if($.nodes&&$.ranges>0){let S=G.reduce($.nodes);if(G.exceedsLimit(...S,X.step,U))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let o=Y(...S,X);if(o.length===0)o=J($,X);w.push(F(w.pop(),o)),$.nodes=[];return}let P=G.encloseBrace($),c=$.queue,p=$;while(p.type!=="brace"&&p.type!=="root"&&p.parent)p=p.parent,c=p.queue;for(let S=0;S<$.nodes.length;S++){let o=$.nodes[S];if(o.type==="comma"&&$.type==="brace"){if(S===1)c.push("");c.push("");continue}if(o.type==="close"){w.push(F(w.pop(),c,P));continue}if(o.value&&o.type!=="open"){c.push(F(c.pop(),o.value));continue}if(o.nodes)W(o,$)}return c};return G.flatten(W(N))};E.exports=Z},6477:(E,C,D)=>{let Y=D(8750),{MAX_LENGTH:J,CHAR_BACKSLASH:G,CHAR_BACKTICK:F,CHAR_COMMA:Z,CHAR_DOT:N,CHAR_LEFT_PARENTHESES:X,CHAR_RIGHT_PARENTHESES:U,CHAR_LEFT_CURLY_BRACE:W,CHAR_RIGHT_CURLY_BRACE:$,CHAR_LEFT_SQUARE_BRACKET:H,CHAR_RIGHT_SQUARE_BRACKET:L,CHAR_DOUBLE_QUOTE:w,CHAR_SINGLE_QUOTE:P,CHAR_NO_BREAK_SPACE:c,CHAR_ZERO_WIDTH_NOBREAK_SPACE:p}=D(8774),S=(o,f={})=>{if(typeof o!=="string")throw TypeError("Expected a string");let k=f||{},i=typeof k.maxLength==="number"?Math.min(J,k.maxLength):J;if(o.length>i)throw SyntaxError(`Input length (${o.length}), exceeds max characters (${i})`);let l={type:"root",input:o,nodes:[]},EA=[l],BA=l,wA=l,HA=0,vA=o.length,yA=0,_A=0,$A,dA=()=>o[yA++],iA=(VA)=>{if(VA.type==="text"&&wA.type==="dot")wA.type="text";if(wA&&wA.type==="text"&&VA.type==="text"){wA.value+=VA.value;return}return BA.nodes.push(VA),VA.parent=BA,VA.prev=wA,wA=VA,VA};iA({type:"bos"});while(yA<vA){if(BA=EA[EA.length-1],$A=dA(),$A===p||$A===c)continue;if($A===G){iA({type:"text",value:(f.keepEscaping?$A:"")+dA()});continue}if($A===L){iA({type:"text",value:"\\"+$A});continue}if($A===H){HA++;let VA;while(yA<vA&&(VA=dA())){if($A+=VA,VA===H){HA++;continue}if(VA===G){$A+=dA();continue}if(VA===L){if(HA--,HA===0)break}}iA({type:"text",value:$A});continue}if($A===X){BA=iA({type:"paren",nodes:[]}),EA.push(BA),iA({type:"text",value:$A});continue}if($A===U){if(BA.type!=="paren"){iA({type:"text",value:$A});continue}BA=EA.pop(),iA({type:"text",value:$A}),BA=EA[EA.length-1];continue}if($A===w||$A===P||$A===F){let VA=$A,mA;if(f.keepQuotes!==!0)$A="";while(yA<vA&&(mA=dA())){if(mA===G){$A+=mA+dA();continue}if(mA===VA){if(f.keepQuotes===!0)$A+=mA;break}$A+=mA}iA({type:"text",value:$A});continue}if($A===W){_A++;let mA={type:"brace",open:!0,close:!1,dollar:wA.value&&wA.value.slice(-1)==="$"||BA.dollar===!0,depth:_A,commas:0,ranges:0,nodes:[]};BA=iA(mA),EA.push(BA),iA({type:"open",value:$A});continue}if($A===$){if(BA.type!=="brace"){iA({type:"text",value:$A});continue}let VA="close";BA=EA.pop(),BA.close=!0,iA({type:VA,value:$A}),_A--,BA=EA[EA.length-1];continue}if($A===Z&&_A>0){if(BA.ranges>0){BA.ranges=0;let VA=BA.nodes.shift();BA.nodes=[VA,{type:"text",value:Y(BA)}]}iA({type:"comma",value:$A}),BA.commas++;continue}if($A===N&&_A>0&&BA.commas===0){let VA=BA.nodes;if(_A===0||VA.length===0){iA({type:"text",value:$A});continue}if(wA.type==="dot"){if(BA.range=[],wA.value+=$A,wA.type="range",BA.nodes.length!==3&&BA.nodes.length!==5){BA.invalid=!0,BA.ranges=0,wA.type="text";continue}BA.ranges++,BA.args=[];continue}if(wA.type==="range"){VA.pop();let mA=VA[VA.length-1];mA.value+=wA.value+$A,wA=mA,BA.ranges--;continue}iA({type:"dot",value:$A});continue}iA({type:"text",value:$A})}do if(BA=EA.pop(),BA.type!=="root"){BA.nodes.forEach((I1)=>{if(!I1.nodes){if(I1.type==="open")I1.isOpen=!0;if(I1.type==="close")I1.isClose=!0;if(!I1.nodes)I1.type="text";I1.invalid=!0}});let VA=EA[EA.length-1],mA=VA.nodes.indexOf(BA);VA.nodes.splice(mA,1,...BA.nodes)}while(EA.length>0);return iA({type:"eos"}),l};E.exports=S},8750:(E,C,D)=>{let Y=D(5207);E.exports=(J,G={})=>{let F=(Z,N={})=>{let X=G.escapeInvalid&&Y.isInvalidBrace(N),U=Z.invalid===!0&&G.escapeInvalid===!0,W="";if(Z.value){if((X||U)&&Y.isOpenOrClose(Z))return"\\"+Z.value;return Z.value}if(Z.value)return Z.value;i Line truncated
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*/let Y=D(3837),J=D(1861),G=(k)=>k!==null&&typeof k==="object"&&!Array.isArray(k),F=(k)=>(i)=>k===!0?Number(i):String(i),Z=(k)=>typeof k==="number"||typeof k==="string"&&k!=="",N=(k)=>Number.isInteger(+k),X=(k)=>{let i=`${k}`,l=-1;if(i[0]==="-")i=i.slice(1);if(i==="0")return!1;while(i[++l]==="0");return l>0},U=(k,i,l)=>{if(typeof k==="string"||typeof i==="string")return!0;return l.stringify===!0},W=(k,i,l)=>{if(i>0){let EA=k[0]==="-"?"-":"";if(EA)k=k.slice(1);k=EA+k.padStart(EA?i-1:i,"0")}if(l===!1)return String(k);return k},$=(k,i)=>{let l=k[0]==="-"?"-":"";if(l)k=k.slice(1),i--;while(k.length<i)k="0"+k;return l?"-"+k:k},H=(k,i,l)=>{k.negatives.sort((vA,yA)=>vA<yA?-1:vA>yA?1:0),k.positives.sort((vA,yA)=>vA<yA?-1:vA>yA?1:0);let EA=i.capture?"":"?:",BA="",wA="",HA;if(k.positives.length)BA=k.positives.map((vA)=>$(String(vA),l)).join("|");if(k.negatives.length)wA=`-(${EA}${k.negatives.map((vA)=>$(String(vA),l)).join("|")})`;if(BA&&wA)HA=`${BA}|${wA}`;else HA=BA||wA;if(i.wrap)return`(${EA}${HA})`;return HA},L=(k,i,l,EA)=>{if(l)return J(k,i,{wrap:!1,...EA});let BA=String.fromCharCode(k);if(k===i)return BA;let wA=String.fromCharCode(i);return`[${BA}-${wA}]`},w=(k,i,l)=>{if(Array.isArray(k)){let EA=l.wrap===!0,BA=l.capture?"":"?:";return EA?`(${BA}${k.join("|")})`:k.join("|")}return J(k,i,l)},P=(...k)=>RangeError("Invalid range arguments: "+Y.inspect(...k)),c=(k,i,l)=>{if(l.strictRanges===!0)throw P([k,i]);return[]},p=(k,i)=>{if(i.strictRanges===!0)throw TypeError(`Expected step "${k}" to be a number`);return[]},S=(k,i,l=1,EA={})=>{let BA=Number(k),wA=Number(i);if(!Number.isInteger(BA)||!Number.isInteger(wA)){if(EA.strictRanges===!0)throw P([k,i]);return[]}if(BA===0)BA=0;if(wA===0)wA=0;let HA=BA>wA,vA=String(k),yA=String(i),_A=String(l);l=Math.max(Math.abs(l),1);let $A=X(vA)||X(yA)||X(_A),dA=$A?Math.max(vA.length,yA.length,_A.length):0,iA=$A===!1&&U(k,i,EA)===!1,VA=EA.transform||F(iA);if(EA.toRegex&&l===1)return L($(k,dA),$(i,dA),!0,EA);let mA={negatives:[],positives:[]},I1=(UA)=>mA[UA<0?"negatives":"positives"].push(Math.abs(UA)),Y0=[],u1=0;while(HA?BA>=wA:BA<=wA){if(EA.toRegex===!0&&l>1)I1(BA);else Y0.push(W(VA(BA,u1),dA,iA));BA=HA?BA-l:BA+l,u1++}if(EA.toRegex===!0)return l>1?H(mA,EA,dA):w(Y0,null,{wrap:!1,...EA});return Y0},o=(k,i,l=1,EA={})=>{if(!N(k)&&k.length>1||!N(i)&&i.length>1)return c(k,i,EA);let BA=EA.transform||((iA)=>String.fromCharCode(iA)),wA=`${k}`.charCodeAt(0),HA=`${i}`.charCodeAt(0),vA=wA>HA,yA=Math.min(wA,HA),_A=Math.max(wA,HA);if(EA.toRegex&&l===1)return L(yA,_A,!1,EA);let $A=[],dA=0;while(vA?wA>=HA:wA<=HA)$A.push(BA(wA,dA)),wA=vA?wA-l:wA+l,dA++;if(EA.toRegex===!0)return w($A,null,{wrap:!1,options:EA});return $A},f=(k,i,l,EA={})=>{if(i==null&&Z(k))return[k];if(!Z(k)||!Z(i))return c(k,i,EA);if(typeof l==="function")return f(k,i,1,{transform:l});if(G(l))return f(k,i,0,l);let BA={...EA};if(BA.capture===!0)BA.wrap=!0;if(l=l||BA.step||1,!N(l)){if(l!=null&&!G(l))return p(l,BA);return f(k,i,1,l)}if(N(k)&&N(i))return S(k,i,l,BA);return o(k,i,Math.max(Math.abs(l),1),BA)};E.exports=f},5680:(E)=>{/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/E.exports=function(C){if(typeof C==="number")return C-C===0;if(typeof C==="string"&&C.trim()!=="")return Number.isFinite?Number.isFinite(+C):isFinite(+C);return!1}},1917:(E,C,D)=>{var Y=D(1161),J=D(8866);function G(F,Z){return function(){throw Error("Function yaml."+F+" is removed in js-yaml 4. Use yaml."+Z+" instead, which is now safe by default.")}}E.exports.Type=D(6073),E.exports.Schema=D(1082),E.exports.FAILSAFE_SCHEMA=D(8562),E.exports.JSON_SCHEMA=D(1035),E.exports.CORE_SCHEMA=D(2011),E.exports.DEFAULT_SCHEMA=D(8759),E.exports.load=Y.load,E.exports.loadAll=Y.loadAll,E.exports.dump=J.dump,E.exports.YAMLException=D(8179),E.exports.types={binary:D(7900),float:D(2705),map:D(6150),null:D(721),pairs:D(6860),set:D(9548),timestamp:D(9212),bool:D(4993),int:D(1615),merge:D(6104),omap:D(9046),seq:D(7283),str:D(3619)},E.exports.safeLoad=G("safeLoad","load"),E.exports.safeLoadAll=G("safeLoadAll","loadAll"),E.exports.safeDump=G("safeDump","dump")},6829:(E)=>{function C(Z){return typeof Z>"u"||Z===null}function D(Z){return typeof Z==="object"&&Z!==null}function Y(Z){if(Array.isArray(Z))return Z;else if(C(Z))return[];return[Z]}function J(Z,N){var X,U,W,$;if(N){$=Object.keys(N);for(X=0,U=$.length;X<U;X+=1)W=$[X],Z[W]=N[W]}return Z}function G(Z,N){var X="",U;for(U=0;U<N;U+=1)X+=Z;return X}function F(Z){return Z===0&&Number.NEGATIVE_INFINITY===1/Z}E.exports.isNothing=C,E.exports.isObject=D,E.exports.toArray=Y,E.exports.repeat=G,E.exports.isNegativeZero=F,E.exports.extend=J},8866:(E,C,D)=>{var Y=D(6829),J=D(8179),G=D(8759),F=Object.prototype.toString,Z=Object.prototype.hasOwnProperty,N=65279,X=9,U=10,W=13,$=32,H=33,L=34,w=35,P=37,c=38,p=39,S=42,o=44,f=45,k=58,i=61,l=62,EA=63,BA=64,wA=91,HA=93,vA=96,yA=123,_A=124,$A=125,dA={};dA[0]="\\0",dA[7]="\\a",dA[8]="\\b",dA[9]="\\t",dA[10]="\\n",dA[11]="\\v",dA[12]="\\f",dA[13]="\\r",dA[27]="\\e",dA[34]="\\\"",dA[92]="\\\\",dA[133]="\\N",dA[160]="\\_",dA[8232]="\\L",dA[8233]="\\P";var iA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],VA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function mA(R,b){var n,AA,JA,FA,TA,qA,gA;if(b===null)return{};n={},AA=Object.keys(b);for(JA=0,FA=AA.length;JA<FA;JA+=1){if(TA=AA[JA],qA=String(b[TA]),TA.slice(0,2)==="!!")TA="tag:yaml.org,2002:"+TA.slice(2);if(gA=R.compiledTypeMap.fallback[TA],gA&&Z.call(gA.styleAliases,qA))qA=gA.styleAliases[qA];n[TA]=qA}return n}function I1(R){var b,n,AA;if(b=R.toString(16).toUpperCase(),R<=255)n="x",AA=2;else if(R<=65535)n="u",AA=4;else if(R<=4294967295)n="U",AA=8;else throw new J("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Y.repeat("0",AA-b.length)+b}var Y0=1,u1=2;function UA(R){this.schema=R.schema||G,this.indent=Math.max(1,R.indent||2),this.noArrayIndent=R.noArrayIndent||!1,this.skipInvalid=R.skipInvalid||!1,this.flowLevel=Y.isNothing(R.flowLevel)?-1:R.flowLevel,this.styleMap=mA(this.schema,R.styles||null),this.sortKeys=R.sortKeys||!1,this.lineWidth=R.lineWidth||80,this.noRefs=R.noRefs||!1,this.noCompatMode=R.noCompatMode||!1,this.condenseFlow=R.condenseFlow||!1,this.quotingType=R.quotingType==='"'?u1:Y0,this.forceQuotes=R.forceQuotes||!1,this.replacer=typeof R.replacer==="function"?R.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function J0(R,b){var n=Y.repeat(" ",b),AA=0,JA=-1,FA="",TA,qA=R.length;while(AA<qA){if(JA=R.indexOf(`
`,AA),JA===-1)TA=R.slice(AA),AA=qA;else TA=R.slice(AA,JA+1),AA=JA+1;if(TA.length&&TA!==`
`)FA+=n;FA+=TA}return FA}function H1(R,b){return`
`+Y.repeat(" ",R.indent*b)}function L0(R,b){var n,AA,JA;for(n=0,AA=R.implicitTypes.length;n<AA;n+=1)if(JA=R.implicitTypes[n],JA.resolve(b))return!0;return!1}function NA(R){return R===$||R===X}function WA(R){return 32<=R&&R<=126||161<=R&&R<=55295&&R!==8232&&R!==8233||57344<=R&&R<=65533&&R!==N||65536<=R&&R<=1114111}function Z1(R){return WA(R)&&R!==N&&R!==W&&R!==U}function E1(R,b,n){var AA=Z1(R),JA=AA&&!NA(R);return(n?AA:AA&&R!==o&&R!==wA&&R!==HA&&R!==yA&&R!==$A)&&R!==w&&!(b===k&&!JA)||Z1(b)&&!NA(b)&&R===w||b===k&&JA}function p0(R){return WA(R)&&R!==N&&!NA(R)&&R!==f&&R!==EA&&R!==k&&R!==o&&R!==wA&&R!==HA&&R!==yA&&R!==$A&&R!==w&&R!==c&&R!==S&&R!==H&&R!==_A&&R!==i&&R!==l&&R!==p&&R!==L&&R!==P&&R!==BA&&R!==vA}function n2(R){return!NA(R)&&R!==k}function b1(R,b){var n=R.charCodeAt(b),AA;if(n>=55296&&n<=56319&&b+1<R.length){if(AA=R.charCodeAt(b+1),AA>=56320&&AA<=57343)return(n-55296)*1024+AA-56320+65536}return n}function E0(R){var b=/^\n* /;return b.test(R)}var M4=1,s0=2,k0=3,pA=4,q1=5;function _2(R,b,n,AA,JA,FA,TA,qA){var gA,nA=0,s1=null,h0=!1,W0=!1,QW=AA!==-1,z5=-1,G3=p0(b1(R,0))&&n2(b1(R,R.length-1));if(b||TA)for(gA=0;gA<R.length;nA>=65536?gA+=2:gA++){if(nA=b1(R,gA),!WA(nA))return q1;G3=G3&&E1(nA,s1,qA),s1=nA}else{for(gA=0;gA<R.length;nA>=65536?gA+=2:gA++){if(nA=b1(R,gA),nA===U){if(h0=!0,QW)W0=W0||gA-z5-1>AA&&R[z5+1]!==" ",z5=gA}else if(!WA(nA))return q1;G3=G3&&E1(nA,s1,qA),s1=nA}W0=W0||QW&&(gA-z5-1>AA&&R[z5+1]!==" ")}if(!h0&&!W0){if(G3&&!TA&&!JA(R))return M4;return FA===u1?q1:s0}if(n>9&&E0(R))return q1;if(!TA)return W0?pA:k0;return FA===u1?q1:s0}function xA(R,b,n,AA,JA){R.dump=function(){if(b.length===0)return R.quotingType===u1?'""':"''";if(!R.noCompatMode){if(iA.indexOf(b)!==-1||VA.test(b))return R.quotingType===u1?'"'+b+'"':"'"+b+"'"}var FA=R.indent*Math.max(1,n),TA=R.lineWidth===-1?-1:Math.max(Math.min(R.lineWidth,40),R.lineWidth-FA),qA=AA||R.flowLevel>-1&&n>=R.flowLevel;function gA(nA){return L0(R,nA)}switch(_2(b,qA,R.indent,TA,gA,R.quotingType,R.forceQuotes&&!AA,JA)){case M4:return b;case s0:return"'"+b.replace(/'/g,"''")+"'";case k0:return"|"+P1(b,R.indent)+K(J0(b,FA));case pA:return">"+P1(b,R.indent)+K(J0(q(b,TA),FA));case q1:return'"'+u(b,TA)+'"';default:throw new J("impossible error: invalid scalar style")}}()}function P1(R,b){var n=E0(R)?String(b):"",AA=R[R.length-1]===`
`,JA=AA&&(R[R.length-2]===`
`||R===`
`),FA=JA?"+":AA?"":"-";return n+FA+`
`}function K(R){return R[R.length-1]===`
`?R.slice(0,-1):R}function q(R,b){var n=/(\n+)([^\n]*)/g,AA=function(){var nA=R.indexOf(`
`);return nA=nA!==-1?nA:R.length,n.lastIndex=nA,j(R.slice(0,nA),b)}(),JA=R[0]===`
`||R[0]===" ",FA,TA;while(TA=n.exec(R)){var qA=TA[1],gA=TA[2];FA=gA[0]===" ",AA+=qA+(!JA&&!FA&&gA!==""?`
`:"")+j(gA,b),JA=FA}return AA}function j(R,b){if(R===""||R[0]===" ")return R;var n=/ [^ ]/g,AA,JA=0,FA,TA=0,qA=0,gA="";while(AA=n.exec(R)){if(qA=AA.index,qA-JA>b)FA=TA>JA?TA:qA,gA+=`
`+R.slice(JA,FA),JA=FA+1;TA=qA}if(gA+=`
`,R.length-JA>b&&TA>JA)gA+=R.slice(JA,TA)+`
`+R.slice(TA+1);else gA+=R.slice(JA);return gA.slice(1)}function u(R){var b="",n=0,AA;for(var JA=0;JA<R.length;n>=65536?JA+=2:JA++)if(n=b1(R,JA),AA=dA[n],!AA&&WA(n)){if(b+=R[JA],n>=65536)b+=R[JA+1]}else b+=AA||I1(n);return b}function m(R,b,n){var AA="",JA=R.tag,FA,TA,qA;for(FA=0,TA=n.length;FA<TA;FA+=1){if(qA=n[FA],R.replacer)qA=R.replacer.call(n,String(FA),qA);if(h(R,b,qA,!1,!1)||typeof qA>"u"&&h(R,b,null,!1,!1)){if(AA!=="")AA+=","+(!R.condenseFlow?" ":"");AA+=R.dump}}R.tag=JA,R.dump="["+AA+"]"}function a(R,b,n,AA){var JA="",FA=R.tag,TA,qA,gA;for(TA=0,qA=n.length;TA<qA;TA+=1){if(gA=n[TA],R.replacer)gA=R.replacer.call(n,String(TA),gA);if(h(R,b+1,gA,!0,!0,!1,!0)||typeof gA>"u"&&h(R,b+1,null,!0,!0,!1,!0)){if(!AA||JA!=="")JA+=H1(R,b);if(R.dump&&U===R.dump.charCodeAt(0))JA+="-";else JA+="- ";JA+=R.dump}}R.tag=FA,R.dump=JA||"[]"}function IA(R,b,n){var AA="",JA=R.tag,FA=Object.keys(n),TA,qA,gA,nA,s1;for(TA=0,qA=FA.length;TA<qA;TA+=1){if(s1="",AA!=="")s1+=", ";if(R.condenseFlow)s1+='"';if(gA=FA[TA],nA=n[gA],R.replacer)nA=R.replacer.call(n,gA,nA);if(!h(R,b,gA,!1,!1))continue;if(R.dump.length>1024)s1+="? ";if(s1+=R.dump+(R.condenseFlow?'"':"")+":"+(R.condenseFlow?"":" "),!h(R,b,nA,!1,!1))continue;s1+=R.dump,AA+=s1}R.tag=JA,R.dump="{"+AA+"}"}function z(R,b,n,AA){var JA="",FA=R.tag,TA=Object.keys(n),qA,gA,nA,s1,h0,W0;if(R.sortKeys===!0)TA.sort();else if(typeof R.sortKeys==="function")TA.sort(R.sortKeys);else if(R.sortKeys)throw new J("sortKeys must be a boolean or a function");for(qA=0,gA=TA.length;qA<gA;qA+=1){if(W0="",!AA||JA!=="")W0+=H1(R,b);if(nA=TA[qA],s1=n[nA],R.replacer)s1=R.replacer.call(n,nA,s1);if(!h(R,b+1,nA,!0,!0,!0))continue;if(h0=R.tag!==null&&R.tag!=="?"||R.dump&&R.dump.length>1024,h0)if(R.dump&&U===R.dump.charCodeAt(0))W0+="?";else W0+="? ";if(W0+=R.dump,h0)W0+=H1(R,b);if(!h(R,b+1,s1,!0,h0))continue;if(R.dump&&U===R.dump.charCodeAt(0))W0+=":";else W0+=": ";W0+=R.dump,JA+=W0}R.tag=FA,R.dump=JA||"{}"}function M(R,b,n){var AA,JA,FA,TA,qA,gA;JA=n?R.explicitTypes:R.implicitTypes;for(FA=0,TA=JA.length;FA<TA;FA+=1)if(qA=JA[FA],(qA.instanceOf||qA.predicate)&&(!qA.instanceOf||typeof b==="object"&&b instanceof qA.instanceOf)&&(!qA.predicate||qA.predicate(b))){if(n)if(qA.multi&&qA.representName)R.tag=qA.representName(b);else R.tag=qA.tag;else R.tag="?";if(qA.represent){if(gA=R.styleMap[qA.tag]||qA.defaultStyle,F.call(qA.represent)==="[object Function]")AA=qA.represent(b,gA);else if(Z.call(qA.represent,gA))AA=qA.represent[gA](b,gA);else throw new J("!<"+qA.tag+'> tag resolver accepts not "'+gA+'" style');R.dump=AA}return!0}return!1}function h(R,b,n,AA,JA,FA,TA){if(R.tag=null,R.dump=n,!M(R,n,!1))M(R,n,!0);var qA=F.call(R.dump),gA=AA,nA;if(AA)AA=R.flowLevel<0||R.flowLevel>b;var s1=qA==="[object Object]"||qA==="[object Array]",h0,W0;if(s1)h0=R.duplicates.indexOf(n),W0=h0!==-1;if(R.tag!==null&&R.tag!=="?"||W0||R.indent!==2&&b>0)JA=!1;if(W0&&R.usedDuplicates[h0])R.dump="*ref_"+h0;else{if(s1&&W0&&!R.usedDuplicates[h0])R.usedDuplicates[h0]=!0;if(qA==="[object Object]"){if(AA&&Object.keys(R.dump).length!==0){if(z(R,b,R.dump,JA),W0)R.dump="&ref_"+h0+R.dump}else if(IA(R,b,R.dump),W0)R.dump="&ref_"+h0+" "+R.dump}else if(qA==="[object Array]"){if(AA&&R.dump.length!==0){if(R.noArrayIndent&&!TA&&b>0)a(R,b-1,R.dump,JA);else a(R,b,R.dump,JA);if(W0)R.dump="&ref_"+h0+R.dump}else if(m(R,b,R.dump),W0)R.dump="&ref_"+h0+" "+R.dump}else if(qA==="[object String]"){if(R.tag!=="?")xA(R,R.dump,b,FA,gA)}else if(qA==="[object Undefined]")return!1;else{if(R.skipInvalid)return!1;throw new J("unacceptable kind of an object to dump "+qA)}if(R.tag!==null&&R.tag!=="?"){if(nA=encodeURI(R.tag[0]==="!"?R.tag.slice(1):R.tag).replace(/!/g,"%21"),R.tag[0]==="!")nA="!"+nA;else if(nA.slice(0,18)==="tag:yaml.org,2002:")nA="!!"+nA.slice(18);else nA="!<"+nA+">";R.dump=nA+" "+R.dump}}return!0}function s(R,b){var n=[],AA=[],JA,FA;d(R,n,AA);for(JA=0,FA=AA.length;JA<FA;JA+=1)b.duplicates.push(n[AA[JA]]);b.usedDuplicates=Array(FA)}function d(R,b,n){var AA,JA,FA;if(R!==null&&typeof R==="object")if(JA=b.indexOf(R),JA!==-1){if(n.indexOf(JA)===-1)n.push(JA)}else if(b.push(R),Array.isArray(R))for(JA=0,FA=R.length;JA<FA;JA+=1)d(R[JA],b,n);else{AA=Object.keys(R);for(JA=0,FA=AA.length;JA<FA;JA+=1)d(R[AA[JA]],b,n)}}function r(R,b){b=b||{};var n=new UA(b);if(!n.noRefs)s(R,n);var AA=R;if(n.replacer)AA=n.replacer.call({"":AA},"",AA);if(h(n,0,AA,!0,!0))return n.dump+`
`;return""}E.exports.dump=r},8179:(E)=>{function C(Y,J){var G="",F=Y.reason||"(unknown reason)";if(!Y.mark)return F;if(Y.mark.name)G+='in "'+Y.mark.name+'" ';if(G+="("+(Y.mark.line+1)+":"+(Y.mark.column+1)+")",!J&&Y.mark.snippet)G+=`
`+Y.mark.snippet;return F+" "+G}function D(Y,J){if(Error.call(this),this.name="YAMLException",this.reason=Y,this.mark=J,this.message=C(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D.prototype.toString=function(J){return this.name+": "+C(this,J)},E.exports=D},1161:(E,C,D)=>{var Y=D(6829),J=D(8179),G=D(6975),F=D(8759),Z=Object.prototype.hasOwnProperty,N=1,X=2,U=3,W=4,$=1,H=2,L=3,w=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,P=/[\x85\u2028\u2029]/,c=/[,\[\]\{\}]/,p=/^(?:!|!!|![a-z\-]+!)$/i,S=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function o(K){return Object.prototype.toString.call(K)}function f(K){return K===10||K===13}function k(K){return K===9||K===32}function i(K){return K===9||K===32||K===10||K===13}function l(K){return K===44||K===91||K===93||K===123||K===125}function EA(K){var q;if(48<=K&&K<=57)return K-48;if(q=K|32,97<=q&&q<=102)return q-97+10;return-1}function BA(K){if(K===120)return 2;if(K===117)return 4;if(K===85)return 8;return 0}function wA(K){if(48<=K&&K<=57)return K-48;return-1}function HA(K){return K===48?"\x00":K===97?"\x07":K===98?"\b":K===116?"\t":K===9?"\t":K===110?`
`:K===118?"\v":K===102?"\f":K===114?"\r":K===101?"\x1B":K===32?" ":K===34?'"':K===47?"/":K===92?"\\":K===78?"…":K===95?" ":K===76?"\u2028":K===80?"\u2029":""}function vA(K){if(K<=65535)return String.fromCharCode(K);return String.fromCharCode((K-65536>>10)+55296,(K-65536&1023)+56320)}var yA=Array(256),_A=Array(256);for(var $A=0;$A<256;$A++)yA[$A]=HA($A)?1:0,_A[$A]=HA($A);function dA(K,q){this.input=K,this.filename=q.filename||null,this.schema=q.schema||F,this.onWarning=q.onWarning||null,this.legacy=q.legacy||!1,this.json=q.json||!1,this.listener=q.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=K.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function iA(K,q){var j={name:K.filename,buffer:K.input.slice(0,-1),position:K.position,line:K.line,column:K.position-K.lineStart};return j.snippet=G(j),new J(q,j)}function VA(K,q){throw iA(K,q)}function mA(K,q){if(K.onWarning)K.onWarning.call(null,iA(K,q))}var I1={YAML:function(q,j,u){var m,a,IA;if(q.version!==null)VA(q,"duplication of %YAML directive");if(u.length!==1)VA(q,"YAML directive accepts exactly one argument");if(m=/^([0-9]+)\.([0-9]+)$/.exec(u[0]),m===null)VA(q,"ill-formed argument of the YAML directive");if(a=parseInt(m[1],10),IA=parseInt(m[2],10),a!==1)VA(q,"unacceptable YAML version of the document");if(q.version=u[0],q.checkLineBreaks=IA<2,IA!==1&&IA!==2)mA(q,"unsupported YAML version of the document")},TAG:function(q,j,u){var m,a;if(u.length!==2)VA(q,"TAG directive accepts exactly two arguments");if(m=u[0],a=u[1],!p.test(m))VA(q,"ill-formed tag handle (first argument) of the TAG directive");if(Z.call(q.tagMap,m))VA(q,'there is a previously declared suffix for "'+m+'" tag handle');if(!S.test(a))VA(q,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(IA){VA(q,"tag prefix is malformed: "+a)}q.tagMap[m]=a}};function Y0(K,q,j,u){var m,a,IA,z;if(q<j){if(z=K.input.slice(q,j),u){for(m=0,a=z.length;m<a;m+=1)if(IA=z.charCodeAt(m),!(IA===9||32<=IA&&IA<=1114111))VA(K,"expected valid JSON character")}else if(w.test(z))VA(K,"the stream contains non-printable characters");K.result+=z}}function u1(K,q,j,u){var m,a,IA,z;if(!Y.isObject(j))VA(K,"cannot merge mappings; the provided source object is unacceptable");m=Object.keys(j);for(IA=0,z=m.length;IA<z;IA+=1)if(a=m[IA],!Z.call(q,a))q[a]=j[a],u[a]=!0}function UA(K,q,j,u,m,a,IA,z,M){var h,s;if(Array.isArray(m)){m=Array.prototype.slice.call(m);for(h=0,s=m.length;h<s;h+=1){if(Array.isArray(m[h]))VA(K,"nested arrays are not supported inside keys");if(typeof m==="object"&&o(m[h])==="[object Object]")m[h]="[object Object]"}}if(typeof m==="object"&&o(m)==="[object Object]")m="[object Object]";if(m=String(m),q===null)q={};if(u==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(h=0,s=a.length;h<s;h+=1)u1(K,q,a[h],j);else u1(K,q,a,j);else{if(!K.json&&!Z.call(j,m)&&Z.call(q,m))K.line=IA||K.line,K.lineStart=z||K.lineStart,K.position=M||K.position,VA(K,"duplicated mapping key");if(m==="__proto__")Object.defineProperty(q,m,{configurable:!0,enumerable:!0,writable:!0,value:a});else q[m]=a;delete j[m]}return q}function J0(K){var q=K.input.charCodeAt(K.position);if(q===10)K.position++;else if(q===13){if(K.position++,K.input.charCodeAt(K.position)===10)K.position++}else VA(K,"a line break is expected");K.line+=1,K.lineStart=K.position,K.firstTabInLine=-1}function H1(K,q,j){var u=0,m=K.input.charCodeAt(K.position);while(m!==0){while(k(m)){if(m===9&&K.firstTabInLine===-1)K.firstTabInLine=K.position;m=K.input.charCodeAt(++K.position)}if(q&&m===35)do m=K.input.charCodeAt(++K.position);while(m!==10&&m!==13&&m!==0);if(f(m)){J0(K),m=K.input.charCodeAt(K.position),u++,K.lineIndent=0;while(m===32)K.lineIndent++,m=K.input.charCodeAt(++K.position)}else break}if(j!==-1&&u!==0&&K.lineIndent<j)mA(K,"deficient indentation");return u}function L0(K){var q=K.position,j;if(j=K.input.charCodeAt(q),(j===45||j===46)&&j===K.input.charCodeAt(q+1)&&j===K.input.charCodeAt(q+2)){if(q+=3,j=K.input.charCodeAt(q),j===0||i(j))return!0}return!1}function NA(K,q){if(q===1)K.result+=" ";else if(q>1)K.result+=Y.repeat(`
`,q-1)}function WA(K,q,j){var u,m,a,IA,z,M,h,s,d=K.kind,r=K.result,R;if(R=K.input.charCodeAt(K.position),i(R)||l(R)||R===35||R===38||R===42||R===33||R===124||R===62||R===39||R===34||R===37||R===64||R===96)return!1;if(R===63||R===45){if(m=K.input.charCodeAt(K.position+1),i(m)||j&&l(m))return!1}K.kind="scalar",K.result="",a=IA=K.position,z=!1;while(R!==0){if(R===58){if(m=K.input.charCodeAt(K.position+1),i(m)||j&&l(m))break}else if(R===35){if(u=K.input.charCodeAt(K.position-1),i(u))break}else if(K.position===K.lineStart&&L0(K)||j&&l(R))break;else if(f(R))if(M=K.line,h=K.lineStart,s=K.lineIndent,H1(K,!1,-1),K.lineIndent>=q){z=!0,R=K.input.charCodeAt(K.position);continue}else{K.position=IA,K.line=M,K.lineStart=h,K.lineIndent=s;break}if(z)Y0(K,a,IA,!1),NA(K,K.line-M),a=IA=K.position,z=!1;if(!k(R))IA=K.position+1;R=K.input.charCodeAt(++K.position)}if(Y0(K,a,IA,!1),K.result)return!0;return K.kind=d,K.result=r,!1}function Z1(K,q){var j,u,m;if(j=K.input.charCodeAt(K.position),j!==39)return!1;K.kind="scalar",K.result="",K.position++,u=m=K.position;while((j=K.input.charCodeAt(K.position))!==0)if(j===39)if(Y0(K,u,K.position,!0),j=K.input.charCodeAt(++K.position),j===39)u=K.position,K.position++,m=K.position;else return!0;else if(f(j))Y0(K,u,m,!0),NA(K,H1(K,!1,q)),u=m=K.position;else if(K.position===K.lineStart&&L0(K))VA(K,"unexpected end of the document within a single quoted scalar");else K.position++,m=K.position;VA(K,"unexpected end of the stream within a single quoted scalar")}function E1(K,q){var j,u,m,a,IA,z;if(z=K.input.charCodeAt(K.position),z!==34)return!1;K.kind="scalar",K.result="",K.position++,j=u=K.position;while((z=K.input.charCodeAt(K.position))!==0)if(z===34)return Y0(K,j,K.position,!0),K.position++,!0;else if(z===92){if(Y0(K,j,K.position,!0),z=K.input.charCodeAt(++K.position),f(z))H1(K,!1,q);else if(z<256&&yA[z])K.result+=_A[z],K.position++;else if((IA=BA(z))>0){m=IA,a=0;for(;m>0;m--)if(z=K.input.charCodeAt(++K.position),(IA=EA(z))>=0)a=(a<<4)+IA;else VA(K,"expected hexadecimal character");K.result+=vA(a),K.position++}else VA(K,"unknown escape sequence");j=u=K.position}else if(f(z))Y0(K,j,u,!0),NA(K,H1(K,!1,q)),j=u=K.position;else if(K.position===K.lineStart&&L0(K))VA(K,"unexpected end of the document within a double quoted scalar");else K.position++,u=K.position;VA(K,"unexpected end of the stream within a double quoted scalar")}function p0(K,q){var j=!0,u,m,a,IA=K.tag,z,M=K.anchor,h,s,d,r,R,b=Object.create(null),n,AA,JA,FA;if(FA=K.input.charCodeAt(K.position),FA===91)s=93,R=!1,z=[];else if(FA===123)s=125,R=!0,z={};else return!1;if(K.anchor!==null)K.anchorMap[K.anchor]=z;FA=K.input.charCodeAt(++K.position);while(FA!==0){if(H1(K,!0,q),FA=K.input.charCodeAt(K.position),FA===s)return K.position++,K.tag=IA,K.anchor=M,K.kind=R?"mapping":"sequence",K.result=z,!0;else if(!j)VA(K,"missed comma between flow collection entries");else if(FA===44)VA(K,"expected the node content, but found ','");if(AA=n=JA=null,d=r=!1,FA===63){if(h=K.input.charCodeAt(K.position+1),i(h))d=r=!0,K.position++,H1(K,!0,q)}if(u=K.line,m=K.lineStart,a=K.position,pA(K,q,N,!1,!0),AA=K.tag,n=K.result,H1(K,!0,q),FA=K.input.charCodeAt(K.position),(r||K.line===u)&&FA===58)d=!0,FA=K.input.charCodeAt(++K.position),H1(K,!0,q),pA(K,q,N,!1,!0),JA=K.result;if(R)UA(K,z,b,AA,n,JA,u,m,a);else if(d)z.push(UA(K,null,b,AA,n,JA,u,m,a));else z.push(n);if(H1(K,!0,q),FA=K.input.charCodeAt(K.position),FA===44)j=!0,FA=K.input.charCodeAt(++K.position);else j=!1}VA(K,"unexpected end of the stream within a flow collection")}function n2(K,q){var j,u,m=$,a=!1,IA=!1,z=q,M=0,h=!1,s,d;if(d=K.input.charCodeAt(K.position),d===124)u=!1;else if(d===62)u=!0;else return!1;K.kind="scalar",K.result="";while(d!==0)if(d=K.input.charCodeAt(++K.position),d===43||d===45)if($===m)m=d===43?L:H;else VA(K,"repeat of a chomping mode identifier");else if((s=wA(d))>=0)if(s===0)VA(K,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!IA)z=q+s-1,IA=!0;else VA(K,"repeat of an indentation width identifier");else break;if(k(d)){do d=K.input.charCodeAt(++K.position);while(k(d));if(d===35)do d=K.input.charCodeAt(++K.position);while(!f(d)&&d!==0)}while(d!==0){J0(K),K.lineIndent=0,d=K.input.charCodeAt(K.position);while((!IA||K.lineIndent<z)&&d===32)K.lineIndent++,d=K.input.charCodeAt(++K.position);if(!IA&&K.lineIndent>z)z=K.lineIndent;if(f(d)){M++;continue}if(K.lineIndent<z){if(m===L)K.result+=Y.repeat(`
`,a?1+M:M);else if(m===$){if(a)K.result+=`
`}break}if(u)if(k(d))h=!0,K.result+=Y.repeat(`
`,a?1+M:M);else if(h)h=!1,K.result+=Y.repeat(`
`,M+1);else if(M===0){if(a)K.result+=" "}else K.result+=Y.repeat(`
`,M);else K.result+=Y.repeat(`
`,a?1+M:M);a=!0,IA=!0,M=0,j=K.position;while(!f(d)&&d!==0)d=K.input.charCodeAt(++K.position);Y0(K,j,K.position,!1)}return!0}function b1(K,q){var j,u=K.tag,m=K.anchor,a=[],IA,z=!1,M;if(K.firstTabInLine!==-1)return!1;if(K.anchor!==null)K.anchorMap[K.anchor]=a;M=K.input.charCodeAt(K.position);while(M!==0){if(K.firstTabInLine!==-1)K.position=K.firstTabInLine,VA(K,"tab characters must not be used in indentation");if(M!==45)break;if(IA=K.input.charCodeAt(K.position+1),!i(IA))break;if(z=!0,K.position++,H1(K,!0,-1)){if(K.lineIndent<=q){a.push(null),M=K.input.charCodeAt(K.position);continue}}if(j=K.line,pA(K,q,U,!1,!0),a.push(K.result),H1(K,!0,-1),M=K.input.charCodeAt(K.position),(K.line===j||K.lineIndent>q)&&M!==0)VA(K,"bad indentation of a sequence entry");else if(K.lineIndent<q)break}if(z)return K.tag=u,K.anchor=m,K.kind="sequence",K.result=a,!0;return!1}function E0(K,q,j){var u,m,a,IA,z,M,h=K.tag,s=K.anchor,d={},r=Object.create(null),R=null,b=null,n=null,AA=!1,JA=!1,FA;if(K.firstTabInLine!==-1)return!1;if(K.anchor!==null)K.anchorMap[K.anchor]=d;FA=K.input.charCodeAt(K.position);while(FA!==0){if(!AA&&K.firstTabInLine!==-1)K.position=K.firstTabInLine,VA(K,"tab characters must not be used in indentation");if(u=K.input.charCodeAt(K.position+1),a=K.line,(FA===63||FA===58)&&i(u)){if(FA===63){if(AA)UA(K,d,r,R,b,null,IA,z,M),R=b=n=null;JA=!0,AA=!0,m=!0}else if(AA)AA=!1,m=!0;else VA(K,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");K.position+=1,FA=u}else{if(IA=K.line,z=K.lineStart,M=K.position,!pA(K,j,X,!1,!0))break;if(K.line===a){FA=K.input.charCodeAt(K.position);while(k(FA))FA=K.input.charCodeAt(++K.position);if(FA===58){if(FA=K.input.charCodeAt(++K.position),!i(FA))VA(K,"a whitespace character is expected after the key-value separator within a block mapping");if(AA)UA(K,d,r,R,b,null,IA,z,M),R=b=n=null;JA=!0,AA=!1,m=!1,R=K.tag,b=K.result}else if(JA)VA(K,"can not read an implicit mapping pair; a colon is missed");else return K.tag=h,K.anchor=s,!0}else if(JA)VA(K,"can not read a block mapping entry; a multiline key may not be an implicit key");else return K.tag=h,K.anchor=s,!0}if(K.line===a||K.lineIndent>q){if(AA)IA=K.line,z=K.lineStart,M=K.position;if(pA(K,q,W,!0,m))if(AA)b=K.result;else n=K.result;if(!AA)UA(K,d,r,R,b,n,IA,z,M),R=b=n=null;H1(K,!0,-1),FA=K.input.charCodeAt(K.position)}if((K.line===a||K.lineIndent>q)&&FA!==0)VA(K,"bad indentation of a mapping entry");else if(K.lineIndent<q)break}if(AA)UA(K,d,r,R,b,null,IA,z,M);if(JA)K.tag=h,K.anchor=s,K.kind="mapping",K.result=d;return JA}function M4(K){var q,j=!1,u=!1,m,a,IA;if(IA=K.input.charCodeAt(K.position),IA!==33)return!1;if(K.tag!==null)VA(K,"duplication of a tag property");if(IA=K.input.charCodeAt(++K.position),IA===60)j=!0,IA=K.input.charCodeAt(++K.position);else if(IA===33)u=!0,m="!!",IA=K.input.charCodeAt(++K.position);else m="!";if(q=K.position,j){do IA=K.input.charCodeAt(++K.position);while(IA!==0&&IA!==62);if(K.position<K.length)a=K.input.slice(q,K.position),IA=K.input.charCodeAt(++K.position);else VA(K,"unexpected end of the stream within a verbatim tag")}else{while(IA!==0&&!i(IA)){if(IA===33)if(!u){if(m=K.input.slice(q-1,K.position+1),!p.test(m))VA(K,"named tag handle cannot contain such characters");u=!0,q=K.position+1}else VA(K,"tag suffix cannot contain exclamation marks");IA=K.input.charCodeAt(++K.position)}if(a=K.input.slice(q,K.position),c.test(a))VA(K,"tag suffix cannot contain flow indicator characters")}if(a&&!S.test(a))VA(K,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch(z){VA(K,"tag name is malformed: "+a)}if(j)K.tag=a;else if(Z.call(K.tagMap,m))K.tag=K.tagMap[m]+a;else if(m==="!")K.tag="!"+a;else if(m==="!!")K.tag="tag:yaml.org,2002:"+a;else VA(K,'undeclared tag handle "'+m+'"');return!0}function s0(K){var q,j;if(j=K.input.charCodeAt(K.position),j!==38)return!1;if(K.anchor!==null)VA(K,"duplication of an anchor property");j=K.input.charCodeAt(++K.position),q=K.position;while(j!==0&&!i(j)&&!l(j))j=K.input.charCodeAt(++K.position);if(K.position===q)VA(K,"name of an anchor node must contain at least one character");return K.anchor=K.input.slice(q,K.position),!0}function k0(K){var q,j,u;if(u=K.input.charCodeAt(K.position),u!==42)return!1;u=K.input.charCodeAt(++K.position),q=K.position;while(u!==0&&!i(u)&&!l(u))u=K.input.charCodeAt(++K.position);if(K.position===q)VA(K,"name of an alias node must contain at least one character");if(j=K.input.slice(q,K.position),!Z.call(K.anchorMap,j))VA(K,'unidentified alias "'+j+'"');return K.result=K.anchorMap[j],H1(K,!0,-1),!0}function pA(K,q,j,u,m){var a,IA,z,M=1,h=!1,s=!1,d,r,R,b,n,AA;if(K.listener!==null)K.listener("open",K);if(K.tag=null,K.anchor=null,K.kind=null,K.result=null,a=IA=z=W===j||U===j,u){if(H1(K,!0,-1)){if(h=!0,K.lineIndent>q)M=1;else if(K.lineIndent===q)M=0;else if(K.lineIndent<q)M=-1}}if(M===1)while(M4(K)||s0(K))if(H1(K,!0,-1)){if(h=!0,z=a,K.lineIndent>q)M=1;else if(K.lineIndent===q)M=0;else if(K.lineIndent<q) Line truncated
`;if(K.charCodeAt(0)===65279)K=K.slice(1)}var j=new dA(K,q),u=K.indexOf("\x00");if(u!==-1)j.position=u,VA(j,"null byte is not allowed in input");j.input+="\x00";while(j.input.charCodeAt(j.position)===32)j.lineIndent+=1,j.position+=1;while(j.position<j.length-1)q1(j);return j.documents}function xA(K,q,j){if(q!==null&&typeof q==="object"&&typeof j>"u")j=q,q=null;var u=_2(K,j);if(typeof q!=="function")return u;for(var m=0,a=u.length;m<a;m+=1)q(u[m])}function P1(K,q){var j=_2(K,q);if(j.length===0)return;else if(j.length===1)return j[0];throw new J("expected a single document in the stream, but found more")}E.exports.loadAll=xA,E.exports.load=P1},1082:(E,C,D)=>{var Y=D(8179),J=D(6073);function G(N,X){var U=[];return N[X].forEach(function(W){var $=U.length;U.forEach(function(H,L){if(H.tag===W.tag&&H.kind===W.kind&&H.multi===W.multi)$=L}),U[$]=W}),U}function F(){var N={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},X,U;function W($){if($.multi)N.multi[$.kind].push($),N.multi.fallback.push($);else N[$.kind][$.tag]=N.fallback[$.tag]=$}for(X=0,U=arguments.length;X<U;X+=1)arguments[X].forEach(W);return N}function Z(N){return this.extend(N)}Z.prototype.extend=function(X){var U=[],W=[];if(X instanceof J)W.push(X);else if(Array.isArray(X))W=W.concat(X);else if(X&&(Array.isArray(X.implicit)||Array.isArray(X.explicit))){if(X.implicit)U=U.concat(X.implicit);if(X.explicit)W=W.concat(X.explicit)}else throw new Y("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");U.forEach(function(H){if(!(H instanceof J))throw new Y("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(H.loadKind&&H.loadKind!=="scalar")throw new Y("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(H.multi)throw new Y("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),W.forEach(function(H){if(!(H instanceof J))throw new Y("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var $=Object.create(Z.prototype);return $.implicit=(this.implicit||[]).concat(U),$.explicit=(this.explicit||[]).concat(W),$.compiledImplicit=G($,"implicit"),$.compiledExplicit=G($,"explicit"),$.compiledTypeMap=F($.compiledImplicit,$.compiledExplicit),$},E.exports=Z},2011:(E,C,D)=>{E.exports=D(1035)},8759:(E,C,D)=>{E.exports=D(2011).extend({implicit:[D(9212),D(6104)],explicit:[D(7900),D(9046),D(6860),D(9548)]})},8562:(E,C,D)=>{var Y=D(1082);E.exports=new Y({explicit:[D(3619),D(7283),D(6150)]})},1035:(E,C,D)=>{E.exports=D(8562).extend({implicit:[D(721),D(4993),D(1615),D(2705)]})},6975:(E,C,D)=>{var Y=D(6829);function J(Z,N,X,U,W){var $="",H="",L=Math.floor(W/2)-1;if(U-N>L)$=" ... ",N=U-L+$.length;if(X-U>L)H=" ...",X=U+L-H.length;return{str:$+Z.slice(N,X).replace(/\t/g,"→")+H,pos:U-N+$.length}}function G(Z,N){return Y.repeat(" ",N-Z.length)+Z}function F(Z,N){if(N=Object.create(N||null),!Z.buffer)return null;if(!N.maxLength)N.maxLength=79;if(typeof N.indent!=="number")N.indent=1;if(typeof N.linesBefore!=="number")N.linesBefore=3;if(typeof N.linesAfter!=="number")N.linesAfter=2;var X=/\r?\n|\r|\0/g,U=[0],W=[],$,H=-1;while($=X.exec(Z.buffer))if(W.push($.index),U.push($.index+$[0].length),Z.position<=$.index&&H<0)H=U.length-2;if(H<0)H=U.length-1;var L="",w,P,c=Math.min(Z.line+N.linesAfter,W.length).toString().length,p=N.maxLength-(N.indent+c+3);for(w=1;w<=N.linesBefore;w++){if(H-w<0)break;P=J(Z.buffer,U[H-w],W[H-w],Z.position-(U[H]-U[H-w]),p),L=Y.repeat(" ",N.indent)+G((Z.line-w+1).toString(),c)+" | "+P.str+`
`+L}P=J(Z.buffer,U[H],W[H],Z.position,p),L+=Y.repeat(" ",N.indent)+G((Z.line+1).toString(),c)+" | "+P.str+`
`,L+=Y.repeat("-",N.indent+c+3+P.pos)+`^
`;for(w=1;w<=N.linesAfter;w++){if(H+w>=W.length)break;P=J(Z.buffer,U[H+w],W[H+w],Z.position-(U[H]-U[H+w]),p),L+=Y.repeat(" ",N.indent)+G((Z.line+w+1).toString(),c)+" | "+P.str+`
`}return L.replace(/\n$/,"")}E.exports=F},6073:(E,C,D)=>{var Y=D(8179),J=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],G=["scalar","sequence","mapping"];function F(N){var X={};if(N!==null)Object.keys(N).forEach(function(U){N[U].forEach(function(W){X[String(W)]=U})});return X}function Z(N,X){if(X=X||{},Object.keys(X).forEach(function(U){if(J.indexOf(U)===-1)throw new Y('Unknown option "'+U+'" is met in definition of "'+N+'" YAML type.')}),this.options=X,this.tag=N,this.kind=X.kind||null,this.resolve=X.resolve||function(){return!0},this.construct=X.construct||function(U){return U},this.instanceOf=X.instanceOf||null,this.predicate=X.predicate||null,this.represent=X.represent||null,this.representName=X.representName||null,this.defaultStyle=X.defaultStyle||null,this.multi=X.multi||!1,this.styleAliases=F(X.styleAliases||null),G.indexOf(this.kind)===-1)throw new Y('Unknown kind "'+this.kind+'" is specified for "'+N+'" YAML type.')}E.exports=Z},7900:(E,C,D)=>{var Y=D(6073),J=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function G(X){if(X===null)return!1;var U,W,$=0,H=X.length,L=J;for(W=0;W<H;W++){if(U=L.indexOf(X.charAt(W)),U>64)continue;if(U<0)return!1;$+=6}return $%8===0}function F(X){var U,W,$=X.replace(/[\r\n=]/g,""),H=$.length,L=J,w=0,P=[];for(U=0;U<H;U++){if(U%4===0&&U)P.push(w>>16&255),P.push(w>>8&255),P.push(w&255);w=w<<6|L.indexOf($.charAt(U))}if(W=H%4*6,W===0)P.push(w>>16&255),P.push(w>>8&255),P.push(w&255);else if(W===18)P.push(w>>10&255),P.push(w>>2&255);else if(W===12)P.push(w>>4&255);return new Uint8Array(P)}function Z(X){var U="",W=0,$,H,L=X.length,w=J;for($=0;$<L;$++){if($%3===0&&$)U+=w[W>>18&63],U+=w[W>>12&63],U+=w[W>>6&63],U+=w[W&63];W=(W<<8)+X[$]}if(H=L%3,H===0)U+=w[W>>18&63],U+=w[W>>12&63],U+=w[W>>6&63],U+=w[W&63];else if(H===2)U+=w[W>>10&63],U+=w[W>>4&63],U+=w[W<<2&63],U+=w[64];else if(H===1)U+=w[W>>2&63],U+=w[W<<4&63],U+=w[64],U+=w[64];return U}function N(X){return Object.prototype.toString.call(X)==="[object Uint8Array]"}E.exports=new Y("tag:yaml.org,2002:binary",{kind:"scalar",resolve:G,construct:F,predicate:N,represent:Z})},4993:(E,C,D)=>{var Y=D(6073);function J(Z){if(Z===null)return!1;var N=Z.length;return N===4&&(Z==="true"||Z==="True"||Z==="TRUE")||N===5&&(Z==="false"||Z==="False"||Z==="FALSE")}function G(Z){return Z==="true"||Z==="True"||Z==="TRUE"}function F(Z){return Object.prototype.toString.call(Z)==="[object Boolean]"}E.exports=new Y("tag:yaml.org,2002:bool",{kind:"scalar",resolve:J,construct:G,predicate:F,represent:{lowercase:function(Z){return Z?"true":"false"},uppercase:function(Z){return Z?"TRUE":"FALSE"},camelcase:function(Z){return Z?"True":"False"}},defaultStyle:"lowercase"})},2705:(E,C,D)=>{var Y=D(6829),J=D(6073),G=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function F(W){if(W===null)return!1;if(!G.test(W)||W[W.length-1]==="_")return!1;return!0}function Z(W){var $,H;if($=W.replace(/_/g,"").toLowerCase(),H=$[0]==="-"?-1:1,"+-".indexOf($[0])>=0)$=$.slice(1);if($===".inf")return H===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if($===".nan")return NaN;return H*parseFloat($,10)}var N=/^[-+]?[0-9]+e/;function X(W,$){var H;if(isNaN(W))switch($){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===W)switch($){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===W)switch($){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Y.isNegativeZero(W))return"-0.0";return H=W.toString(10),N.test(H)?H.replace("e",".e"):H}function U(W){return Object.prototype.toString.call(W)==="[object Number]"&&(W%1!==0||Y.isNegativeZero(W))}E.exports=new J("tag:yaml.org,2002:float",{kind:"scalar",resolve:F,construct:Z,predicate:U,represent:X,defaultStyle:"lowercase"})},1615:(E,C,D)=>{var Y=D(6829),J=D(6073);function G(W){return 48<=W&&W<=57||65<=W&&W<=70||97<=W&&W<=102}function F(W){return 48<=W&&W<=55}function Z(W){return 48<=W&&W<=57}function N(W){if(W===null)return!1;var $=W.length,H=0,L=!1,w;if(!$)return!1;if(w=W[H],w==="-"||w==="+")w=W[++H];if(w==="0"){if(H+1===$)return!0;if(w=W[++H],w==="b"){H++;for(;H<$;H++){if(w=W[H],w==="_")continue;if(w!=="0"&&w!=="1")return!1;L=!0}return L&&w!=="_"}if(w==="x"){H++;for(;H<$;H++){if(w=W[H],w==="_")continue;if(!G(W.charCodeAt(H)))return!1;L=!0}return L&&w!=="_"}if(w==="o"){H++;for(;H<$;H++){if(w=W[H],w==="_")continue;if(!F(W.charCodeAt(H)))return!1;L=!0}return L&&w!=="_"}}if(w==="_")return!1;for(;H<$;H++){if(w=W[H],w==="_")continue;if(!Z(W.charCodeAt(H)))return!1;L=!0}if(!L||w==="_")return!1;return!0}function X(W){var $=W,H=1,L;if($.indexOf("_")!==-1)$=$.replace(/_/g,"");if(L=$[0],L==="-"||L==="+"){if(L==="-")H=-1;$=$.slice(1),L=$[0]}if($==="0")return 0;if(L==="0"){if($[1]==="b")return H*parseInt($.slice(2),2);if($[1]==="x")return H*parseInt($.slice(2),16);if($[1]==="o")return H*parseInt($.slice(2),8)}return H*parseInt($,10)}function U(W){return Object.prototype.toString.call(W)==="[object Number]"&&(W%1===0&&!Y.isNegativeZero(W))}E.exports=new J("tag:yaml.org,2002:int",{kind:"scalar",resolve:N,construct:X,predicate:U,represent:{binary:function(W){return W>=0?"0b"+W.toString(2):"-0b"+W.toString(2).slice(1)},octal:function(W){return W>=0?"0o"+W.toString(8):"-0o"+W.toString(8).slice(1)},decimal:function(W){return W.toString(10)},hexadecimal:function(W){return W>=0?"0x"+W.toString(16).toUpperCase():"-0x"+W.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(E,C,D)=>{var Y=D(6073);E.exports=new Y("tag:yaml.org,2002:map",{kind:"mapping",construct:function(J){return J!==null?J:{}}})},6104:(E,C,D)=>{var Y=D(6073);function J(G){return G==="<<"||G===null}E.exports=new Y("tag:yaml.org,2002:merge",{kind:"scalar",resolve:J})},721:(E,C,D)=>{var Y=D(6073);function J(Z){if(Z= Line truncated
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*/let Y=D(5680),J=(S,o,f)=>{if(Y(S)===!1)throw TypeError("toRegexRange: expected the first argument to be a number");if(o===void 0||S===o)return String(S);if(Y(o)===!1)throw TypeError("toRegexRange: expected the second argument to be a number.");let k={relaxZeros:!0,...f};if(typeof k.strictZeros==="boolean")k.relaxZeros=k.strictZeros===!1;let i=String(k.relaxZeros),l=String(k.shorthand),EA=String(k.capture),BA=String(k.wrap),wA=S+":"+o+"="+i+l+EA+BA;if(J.cache.hasOwnProperty(wA))return J.cache[wA].result;let HA=Math.min(S,o),vA=Math.max(S,o);if(Math.abs(HA-vA)===1){let iA=S+"|"+o;if(k.capture)return`(${iA})`;if(k.wrap===!1)return iA;return`(?:${iA})`}let yA=c(S)||c(o),_A={min:S,max:o,a:HA,b:vA},$A=[],dA=[];if(yA)_A.isPadded=yA,_A.maxLen=String(_A.max).length;if(HA<0){let iA=vA<0?Math.abs(vA):1;dA=N(iA,Math.abs(HA),_A,k),HA=_A.a=0}if(vA>=0)$A=N(HA,vA,_A,k);if(_A.negatives=dA,_A.positives=$A,_A.result=G(dA,$A,k),k.capture===!0)_A.result=`(${_A.result})`;else if(k.wrap!==!1&&$A.length+dA.length>1)_A.result=`(?:${_A.result})`;return J.cache[wA]=_A,_A.result};function G(S,o,f){let k=X(S,o,"-",!1,f)||[],i=X(o,S,"",!1,f)||[],l=X(S,o,"-?",!0,f)||[];return k.concat(l).concat(i).join("|")}function F(S,o){let f=1,k=1,i=H(S,f),l=new Set([o]);while(S<=i&&i<=o)l.add(i),f+=1,i=H(S,f);i=L(o+1,k)-1;while(S<i&&i<=o)l.add(i),k+=1,i=L(o+1,k)-1;return l=[...l],l.sort(W),l}function Z(S,o,f){if(S===o)return{pattern:S,count:[],digits:0};let k=U(S,o),i=k.length,l="",EA=0;for(let BA=0;BA<i;BA++){let[wA,HA]=k[BA];if(wA===HA)l+=wA;else if(wA!=="0"||HA!=="9")l+=P(wA,HA,f);else EA++}if(EA)l+=f.shorthand===!0?"\\d":"[0-9]";return{pattern:l,count:[EA],digits:i}}function N(S,o,f,k){let i=F(S,o),l=[],EA=S,BA;for(let wA=0;wA<i.length;wA++){let HA=i[wA],vA=Z(String(EA),String(HA),k),yA="";if(!f.isPadded&&BA&&BA.pattern===vA.pattern){if(BA.count.length>1)BA.count.pop();BA.count.push(vA.count[0]),BA.string=BA.pattern+w(BA.count),EA=HA+1;continue}if(f.isPadded)yA=p(HA,f,k);vA.string=yA+vA.pattern+w(vA.count),l.push(vA),EA=HA+1,BA=vA}return l}function X(S,o,f,k,i){let l=[];for(let EA of S){let{string:BA}=EA;if(!k&&!$(o,"string",BA))l.push(f+BA);if(k&&$(o,"string",BA))l.push(f+BA)}return l}function U(S,o){let f=[];for(let k=0;k<S.length;k++)f.push([S[k],o[k]]);return f}function W(S,o){return S>o?1:o>S?-1:0}function $(S,o,f){return S.some((k)=>k[o]===f)}function H(S,o){return Number(String(S).slice(0,-o)+"9".repeat(o))}function L(S,o){return S-S%Math.pow(10,o)}function w(S){let[o=0,f=""]=S;if(f||o>1)return`{${o+(f?","+f:"")}}`;return""}function P(S,o,f){return`[${S}${o-S===1?"":"-"}${o}]`}function c(S){return/^-?(0+)\d/.test(S)}function p(S,o,f){if(!o.isPadded)return S;let k=Math.abs(o.maxLen-String(S).length),i=f.relaxZeros!==!1;switch(k){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${k}}`:`0{${k}}`}}J.cache={},J.clearCache=()=>J.cache={},E.exports=J},6144:function(E,C,D){var Y=this&&this.__importDefault||function(H){return H&&H.__esModule?H:{default:H}};Object.defineProperty(C,"__esModule",{value:!0}),C.resolveWorkspaceRoot=X,C.resolveWorkspaceRootAsync=U,C.getWorkspaceGlobs=W,C.getWorkspaceGlobsAsync=$;let J=Y(D(9411)),G=Y(D(7742)),F=D(2737),Z=D(6455),N=D(4679);function X(H=G.default.cwd(),L={}){return(0,F.searchParentDirs)(H,(w,P)=>{let c=null;if(L.packageWorkspaces!==!1){c=(0,Z.tryReadFile)(J.default.join(w,"package.json"));let p=c&&(0,N.workspaceGlobsFromPackage)(c);if(p&&(0,N.pathMatchesWorkspaceGlobs)(p,P))return w}if(L.pnpmWorkspaces!==!1&&c){let p=(0,Z.tryReadFile)(J.default.join(w,"pnpm-workspace.yaml")),S=p&&(0,N.workspaceGlobsFromPnpm)(p);if(S&&(0,N.pathMatchesWorkspaceGlobs)(S,P))return w}})}function U(H=G.default.cwd(),L={}){return(0,F.searchParentDirsAsync)(H,async(w,P)=>{let c=null;if(L.packageWorkspaces!==!1){c=await(0,Z.tryReadFileAsync)(J.default.join(w,"package.json"));let p=c&&(0,N.workspaceGlobsFromPackage)(c);if(p&&(0,N.pathMatchesWorkspaceGlobs)(p,P))return w}if(L.pnpmWorkspaces!==!1&&c){let p=await(0,Z.tryReadFileAsync)(J.default.join(w,"pnpm-workspace.yaml")),S=p&&(0,N.workspaceGlobsFromPnpm)(p);if(S&&(0,N.pathMatchesWorkspaceGlobs)(S,P))return w}})}function W(H=G.default.cwd(),L={}){if(L.packageWorkspaces!==!1){let w=(0,Z.tryReadFile)(J.default.join(H,"package.json")),P=w&&(0,N.workspaceGlobsFromPackage)(w);if(P)return P}if(L.pnpmWorkspaces!==!1){let w=(0,Z.tryReadFile)(J.default.join(H,"pnpm-workspace.yaml")),P=w&&(0,N.workspaceGlobsFromPnpm)(w);if(P)return P}return null}async function $(H=G.default.cwd(),L={}){if(L.packageWorkspaces!==!1){let w=await(0,Z.tryReadFileAsync)(J.default.join(H,"package.json")),P=w&&(0,N.workspaceGlobsFromPackage)(w);if(P)return P}if(L.pnpmWorkspaces!==!1){let w=await(0,Z.tryReadFileAsync)(J.default.join(H,"pnpm-workspace.yaml")),P=w&&(0,N.workspaceGlobsFromPnpm)(w);if(P)return P}return null}},2737:function(E,C,D){var Y=this&&this.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(C,"__esModule",{value:!0Line truncated
globstar while`,A,Z,Q,N,X),this.matchOne(A.slice(Z),Q.slice(N),B))return this.debug("globstar found match!",Z,Y,X),!0;else{if(X==="."||X===".."||!I.dot&&X.charAt(0)==="."){this.debug("dot detected!",A,Z,Q,N);break}this.debug("globstar swallow a segment, and continue"),Z++}}if(B){if(this.debug(`
>>> no match, partial?`,A,Z,Q,N),Z===Y)return!0}return!1}let U;if(typeof G==="string")U=F===G,this.debug("string match",G,F,U);else U=G.test(F),this.debug("pattern match",G,F,U);if(!U)return!1}if(C===Y&&D===J)return!0;else if(C===Y)return B;else if(D===J)return C===Y-1&&A[C]==="";else throw Error("wtf?")}braceExpand(){return lUA(this.pattern,this.options)}parse(A){dX(A);let Q=this.options;if(A==="**")return W6;if(A==="")return"";let B,I=null;if(B=A.match(rK1))I=Q.dot?eK1:tK1;else if(B=A.match(mK1))I=(Q.nocase?Q.dot?lK1:cK1:Q.dot?pK1:uK1)(B[1]);else if(B=A.match(A$1))I=(Q.nocase?Q.dot?B$1:Q$1:Q.dot?I$1:E$1)(B);else if(B=A.match(iK1))I=Q.dot?aK1:nK1;else if(B=A.match(oK1))I=sK1;let E=U6.fromGlob(A,this.options).toMMPattern();if(I&&typeof E==="object")Reflect.defineProperty(E,"test",{value:I});return E}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let A=this.set;if(!A.length)return this.regexp=!1,this.regexp;let Q=this.options,B=Q.noglobstar?Y$1:Q.dot?J$1:F$1,I=new Set(Q.nocase?["i"]:[]),E=A.map((Y)=>{let J=Y.map((G)=>{if(G instanceof RegExp)for(let F of G.flags.split(""))I.add(F);return typeof G==="string"?U$1(G):G===W6?W6:G._src});return J.forEach((G,F)=>{let Z=J[F+1],N=J[F-1];if(G!==W6||N===W6)return;if(N===void 0)if(Z!==void 0&&Z!==W6)J[F+1]="(?:\\/|"+B+"\\/)?"+Z;else J[F]=B;else if(Z===void 0)J[F-1]=N+"(?:\\/|"+B+")?";else if(Z!==W6)J[F-1]=N+"(?:\\/|\\/"+B+"\\/)"+Z,J[F+1]=W6}),J.filter((G)=>G!==W6).join("/")}).join("|"),[C,D]=A.length>1?["(?:",")"]:["",""];if(E="^"+C+E+D+"$",this.negate)E="^(?!"+E+").+$";try{this.regexp=new RegExp(E,[...I].join(""))}catch(Y){this.regexp=!1}return this.regexp}slashSplit(A){if(this.preserveMultipleSlashes)return A.split("/");else if(this.isWindows&&/^\/\/[^\/]+/.test(A))return["",...A.split(/\/+/)];else return A.split(/\/+/)}match(A,Q=this.partial){if(this.debug("match",A,this.pattern),this.comment)return!1;if(this.empty)return A==="";if(A==="/"&&Q)return!0;let B=this.options;if(this.isWindows)A=A.split("\\").join("/");let I=this.slashSplit(A);this.debug(this.pattern,"split",I);let E=this.set;this.debug(this.pattern,"set",E);let C=I[I.length-1];if(!C)for(let D=I.length-2;!C&&D>=0;D--)C=I[D];for(let D=0;D<E.length;D++){let Y=E[D],J=I;if(B.matchBase&&Y.length===1)J=[C];if(this.matchOne(J,Y,Q)){if(B.flipNegate)return!0;return!this.negate}}if(B.flipNegate)return!1;return this.negate}static defaults(A){return J9.defaults(A).Minimatch}}J9.AST=U6;J9.Minimatch=I5;J9.escape=iJ;J9.unescape=m5;var HWA=require("node:url");var W$1=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,nUA=new Set,of=typeof process==="object"&&!!process?process:{},aUA=(A,Q,B,I)=>{typeof of.emitWarning==="function"?of.emitWarning(A,Q,B,I):console.error(`[${B}] ${Q}: ${A}`)},aM=globalThis.AbortController,iUA=globalThis.AbortSignal;if(typeof aM>"u"){iUA=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(I,E){this._onabort.push(E)}},aM=class{constructor(){Q()}signal=new iUA;abort(I){if(this.signal.aborted)return;this.signal.reason=I,this.signal.aborted=!0;for(let E of this.signal._onabort)E(I);this.signal.onabort?.(I)}};let A=of.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",Q=()=>{if(!A)return;A=!1,aUA("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",Q)}}var V$1=(A)=>!nUA.has(A),wc1=Symbol("type"),kB=(A)=>A&&A===Math.floor(A)&&A>0&&isFinite(A),oUA=(A)=>!kB(A)?null:A<=Math.pow(2,8)?Uint8Array:A<=Math.pow(2,16)?Uint16Array:A<=Math.pow(2,32)?Uint32Array:A<=Number.MAX_SAFE_INTEGER?uX:null;class uX extends Array{constructor(A){super(A);this.fill(0)}}class nJ{heap;length;static#A=!1;static create(A){let Q=oUA(A);if(!Q)return[];nJ.#A=!0;let B=new nJ(A,Q);return nJ.#A=!1,B}constructor(A,Q){if(!nJ.#A)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new Q(A),this.length=0}push(A){this.heap[this.length++]=A}pop(){return this.heap[--this.length]}}class pX{#A;#Q;#I;#B;#D;#T;#G;#X;get perf(){return this.#X}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#Y;#J;#E;#Z;#F;#W;#V;#M;#U;#O;#z;#H;#R;#L;#K;#_;#q;#C;static unsafeExposeInternals(A){return{starts:A.#R,ttls:A.#L,sizes:A.#H,keyMap:A.#E,keyList:A.#Z,valList:A.#F,next:A.#W,prev:A.#V,get head(){return A.#M},get tail(){return A.#U},free:A.#O,isBackgroundFetch:(Q)=>A.#$(Q),backgroundFetch:(Q,B,I,E)=>A.#d(Q,B,I,E),moveToTail:(Q)=>A.#p(Q),indexes:(Q)=>A.#S(Q),rindexes:(Q)=>A.#x(Q),isStale:(Q)=>A.#P(Q)}}get max(){re Line truncated
WHERE eas_build_id IS NOT NULL AND eas_build_id != "" AND fingerprint_hash = ?
ORDER BY updated_at DESC LIMIT 1`,A);return Q?U4.serialize(Q):null}async getEntityFromGitCommitHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let Q=await this.db.getAsync(`SELECT * FROM ${U4.TABLE_NAME} WHERE git_commit_hash = ?`,A);return Q?U4.serialize(Q):null}async getFirstEntityFromFingerprintHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let Q=await this.db.getAsync(`SELECT * FROM ${U4.TABLE_NAME} WHERE fingerprint_hash = ?`,A);return Q?U4.serialize(Q):null}async queryEntitiesFromFingerprintHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");return(await this.db.allAsync(`SELECT * FROM ${U4.TABLE_NAME} WHERE fingerprint_hash = ?`,A)).map((B)=>U4.serialize(B))}async getFirstEntityWithGitHubArtifactFromFingerprintHashAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let Q=await this.db.getAsync(`SELECT f.*, a.id as artifact_pk_id, a.artifact_id, a.artifact_url, a.artifact_digest, a.workflow_run_id
FROM ${U4.TABLE_NAME} f
JOIN github_artifacts a ON f.github_artifact_id = a.id
WHERE f.fingerprint_hash = ? AND f.github_artifact_id IS NOT NULL
LIMIT 1`,A);if(!Q)return null;return{...U4.serialize(Q),githubArtifact:{id:Q.artifact_pk_id,artifactId:Q.artifact_id,artifactUrl:Q.artifact_url,artifactDigest:Q.artifact_digest,workflowRunId:Q.workflow_run_id}}}async getFingerprintSourcesAsync(A){if(!this.db)throw Error("Database not initialized. Call initAsync() first.");let B=(await this.db.getAsync(`SELECT json_extract(fingerprint, '$.sources') as sources FROM ${U4.TABLE_NAME} WHERE fingerprint_hash = ?`,A))?.sources;if(!B)return null;return JSON.parse(B)}async closeAsync(){this.db?.closeAsync()}static TABLE_NAME="fingerprint";static SCHEMA=["id INTEGER PRIMARY KEY AUTOINCREMENT","eas_build_id TEXT","git_commit_hash TEXT NOT NULL","fingerprint_hash TEXT NOT NULL","fingerprint TEXT NOT NULL","github_artifact_id INTEGER REFERENCES github_artifacts(id)","platform TEXT","created_at TEXT NOT NULL DEFAULT (DATETIME('now', 'utc'))","updated_at TEXT NOT NULL DEFAULT (DATETIME('now', 'utc'))"];static INDEXES=[`CREATE UNIQUE INDEX IF NOT EXISTS idx_git_commit_hash ON ${this.TABLE_NAME} (git_commit_hash)`,`CREATE INDEX IF NOT EXISTS idx_fingerprint_hash ON ${this.TABLE_NAME} (fingerprint_hash)`];static EXTRA_CREATE_DB_STATEMENTS=[`CREATE TRIGGER IF NOT EXISTS update_fingerprint_updated_at AFTER UPDATE ON ${this.TABLE_NAME}
BEGIN
UPDATE ${this.TABLE_NAME} SET updated_at = DATETIME('now', 'utc') WHERE id = NEW.id;
END`];db=null;static serialize(A){return{id:A.id,easBuildId:A.eas_build_id,gitCommitHash:A.git_commit_hash,fingerprintHash:A.fingerprint_hash,fingerprint:JSON.parse(A.fingerprint),githubArtifactId:A.github_artifact_id,platform:A.platform,createdAt:A.created_at,updatedAt:A.updated_at}}}async function Za1(A,Q){await nP1(Q.fingerprintVersion,Q.packager,Q.fingerprintInstallationCache);let B=require("@expo/fingerprint"),I=await B.createFingerprintAsync(Q.workingDirectory),E=null;if(Q.previousGitCommitHash)E=await A.getEntityFromGitCommitHashAsync(Q.previousGitCommitHash);let C=E!=null?await B.diffFingerprints(E.fingerprint,I):await B.diffFingerprints({sources:[],hash:""},I);return{currentFingerprint:I,previousFingerprint:E?.fingerprint??null,diff:C}}async function fMA(A,Q){await xMA(A);let B=await cm();if(await aP1(Q)!=null)r4.info(`Restored fingerprint database from cache - cacheKey[${Q}]`);else r4.info(`Missing fingerprint database from cache - will create a new database - cacheKey[${Q}]`);let E=new U4(B);return await E.initAsync(),E}function bMA(){return{packager:r4.getInput("packager")||"yarn",githubToken:r4.getInput("github-token"),workingDirectory:r4.getInput("working-directory"),fingerprintVersion:r4.getInput("fingerprint-version")||"latest",fingerprintInstallationCache:!r4.getInput("fingerprint-installation-cache")||r4.getBooleanInput("fingerprint-installation-cache"),fingerprintDbCacheKey:r4.getInput("fingerprint-db-cache-key"),previousGitCommitHash:r4.getInput("previous-git-commit")||(sE.context.eventName==="pull_request"?sE.context.payload.pull_request?.base?.sha:sE.context.payload.before),currentGitCommitHash:r4.getInput("current-git-commit")||(sE.context.eventName==="pull_request"?sE.context.payload.pull_request?.head?.sha:sE.context.sha),savingDbBranch:r4.getInput("saving-db-branch")||void 0}}async function nP1(A,Q,B=!0){let E=await pq("@expo/fingerprint",A),C=B?`Installing @expo/fingerprint (${E}) from cache or with ${Q}`:`Installing @expo/fingerprint (${E}) with ${Q}`;return await r4.group(C,async()=>{let D=await cq({name:"@expo/fingerprint",version:E,packageManager:Q,packageCache:B});return OWA(D),NR(nF.default.join(D,"node_modules")),D})}async function aP1(A){return uR(nF.default.dirname(await cm()),A)}async function dMA(A){return r4.info(`Saving fingerprint database to cache: ${A}`),pR(nF.default.dirname(await cm()),A)}async function cm(){hMA.default(process.env.RUNNER_TOOL_CACHE,"Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined");let A=nF.default.join(process.env.RUNNER_TOOL_CACHE,"fingerprint-storage","fingerprint.db"),Q=nF.default.dirname(A);if(!await yMA.default.promises.stat(Q).catch(()=>null))await kMA.mkdirP(Q);return A}var rE=Z0(m1());function mMA(){return{...bMA(),artifactName:rE.getInput("artifact-name"),uploadPath:rE.getInput("upload-path",{required:!0}),retentionDays:rE.getInput("retention-days"),compressionLevel:rE.getInput("compression-level"),platform:rE.getInput("platform",{required:!0}),repackVersion:rE.getInput("repack-version")}}async function uMA(A,Q,B=5000){let I;for(let E=0;E<Q;++E)try{return await A()}catch(C){if(C instanceof Error)I=C,await oP1(B)}if(I)throw I;throw Error("retryAsync function did not return a value")}async function oP1(A){return new Promise((Q)=>setTimeout(Q,A))}TWA(sP1);async function sP1(A=mMA()){let Q=QQ.getState("isRepackExecuted")==="true";QQ.info(`isRepackExecuted: ${Q}`);let B=QQ.getState("fingerprint");lq.default(B,"Fingerprint state is not found. Make sure to run repack-app before repack-app-post.");let I=JSON.parse(B),E=cMA.default.resolve(A.workingDirectory,A.uploadPath);QQ.info(`Uploading the artifact from path: ${E}`);let C=new pMA.DefaultArtifactClient,D=await FR("**/*",{cwd:E,absolute:!0});for(let Z of D)QQ.info(`Found file to upload: ${Z}`);let Y=await C.uploadArtifact(A.artifactName,D,E,{retentionDays:Number(A.retentionDays),compressionLevel:Number(A.compressionLevel)});if(Y.id==null||Y.digest==null){QQ.info("No artifact was uploaded, skipping updating the fingerprint database.");return}let J=AW.context.repo,G=`${AW.context.serverUrl}/${J.owner}/${J.repo}/actions/runs/${AW.context.runId}/artifacts/${Y.id}`;QQ.info(`Artifact uploaded - artifactUrl[${G}] artifactId[${Y.id}] digest[${Y.digest}]`);let F=A.savingDbBranch??VKA();if(lq.default(F),KKA(F)){QQ.info(`Saving fingerprint database to ${F} branch.`);let Z=await fMA(A.packager,A.fingerprintDbCacheKey);await rP1({dbManager:Z,githubToken:A.githubToken,fingerprintDbCacheKey:A.fingerprintDbCacheKey,gitCommitHash:A.currentGitCommitHash,fingerprint:I,githubArtifact:{artifactId:String(Y.id),artifactUrl:G,artifactDigest:Y.digest,workflowRunId:String(AW.context.runId)}})}}async function rP1(A){await A.dbManager.upsertFingerprintByGitCommitHashAsync(A.gitCommitHash,{fingerprint:A.fingerprint,githubArtifact:A.githubArtifact});try{let Q=process.env.GITHUB_REF;lq.default(Q!=null,"GITHUB_REF is not defined"),await HKA(A.githubToken,A.fingerprintDbCacheKey,Q)}catch(Q){QQ.info(`FLine truncated
+64
View File
@@ -0,0 +1,64 @@
var SL=Object.create;var{getPrototypeOf:jL,defineProperty:SE,getOwnPropertyNames:LJ,getOwnPropertyDescriptor:$L}=Object,ZJ=Object.prototype.hasOwnProperty;var JQ=(A,Q,B)=>{B=A!=null?SL(jL(A)):{};let I=Q||!A||!A.__esModule?SE(B,"default",{value:A,enumerable:!0}):B;for(let E of LJ(A))if(!ZJ.call(I,E))SE(I,E,{get:()=>A[E],enumerable:!0});return I},WJ=new WeakMap,Gj=(A)=>{var Q=WJ.get(A),B;if(Q)return Q;if(Q=SE({},"__esModule",{value:!0}),A&&typeof A==="object"||typeof A==="function")LJ(A).map((I)=>!ZJ.call(Q,I)&&SE(Q,I,{get:()=>A[I],enumerable:!(B=$L(A,I))||B.enumerable}));return WJ.set(A,Q),Q},M=(A,Q)=>()=>(Q||A((Q={exports:{}}).exports,Q),Q.exports);var Rj=(A,Q)=>{for(var B in Q)SE(A,B,{get:Q[B],enumerable:!0,configurable:!0,set:(I)=>Q[B]=()=>I})};var yC=M((ZI)=>{Object.defineProperty(ZI,"__esModule",{value:!0});ZI.toCommandProperties=ZI.toCommandValue=void 0;function xL(A){if(A===null||A===void 0)return"";else if(typeof A==="string"||A instanceof String)return A;return JSON.stringify(A)}ZI.toCommandValue=xL;function qL(A){if(!Object.keys(A).length)return{};return{title:A.title,file:A.file,line:A.startLine,endLine:A.endLine,col:A.startColumn,endColumn:A.endColumn}}ZI.toCommandProperties=qL});var SJ=M((KQ)=>{var TL=KQ&&KQ.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),_L=KQ&&KQ.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),OL=KQ&&KQ.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))TL(Q,A,B)}return _L(Q,A),Q};Object.defineProperty(KQ,"__esModule",{value:!0});KQ.issue=KQ.issueCommand=void 0;var yL=OL(require("os")),KJ=yC();function HJ(A,Q,B){let I=new zJ(A,Q,B);process.stdout.write(I.toString()+yL.EOL)}KQ.issueCommand=HJ;function hL(A,Q=""){HJ(A,{},Q)}KQ.issue=hL;var XJ="::";class zJ{constructor(A,Q,B){if(!A)A="missing.command";this.command=A,this.properties=Q,this.message=B}toString(){let A=XJ+this.command;if(this.properties&&Object.keys(this.properties).length>0){A+=" ";let Q=!0;for(let B in this.properties)if(this.properties.hasOwnProperty(B)){let I=this.properties[B];if(I){if(Q)Q=!1;else A+=",";A+=`${B}=${kL(I)}`}}}return A+=`${XJ}${PL(this.message)}`,A}}function PL(A){return(0,KJ.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function kL(A){return(0,KJ.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});var xJ=M((HQ)=>{var vL=HQ&&HQ.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),fL=HQ&&HQ.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),c0=HQ&&HQ.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))vL(Q,A,B)}return fL(Q,A),Q};Object.defineProperty(HQ,"__esModule",{value:!0});HQ.prepareKeyValueMessage=HQ.issueFileCommand=void 0;var bL=c0(require("crypto")),jJ=c0(require("fs")),u0=c0(require("os")),$J=yC();function mL(A,Q){let B=process.env[`GITHUB_${A}`];if(!B)throw Error(`Unable to find environment variable for file command ${A}`);if(!jJ.existsSync(B))throw Error(`Missing file at path: ${B}`);jJ.appendFileSync(B,`${(0,$J.toCommandValue)(Q)}${u0.EOL}`,{encoding:"utf8"})}HQ.issueFileCommand=mL;function uL(A,Q){let B=`ghadelimiter_${bL.randomUUID()}`,I=(0,$J.toCommandValue)(Q);if(A.includes(B))throw Error(`Unexpected input: name should not contain the delimiter "${B}"`);if(I.includes(B))throw Error(`Unexpected input: value should not contain the delimiter "${B}"`);return`${A}<<${B}${u0.EOL}${I}${u0.EOL}${B}`}HQ.prepareKeyValueMessage=uL});var TJ=M((XI)=>{Object.defineProperty(XI,"__esModule",{value:!0});XI.checkBypass=XI.getProxyUrl=void 0;function cL(A){let Q=A.protocol==="https:";if(qJ(A))return;let B=(()=>{if(Q)return process.env.https_proxy||process.env.HTTPS_PROXY;else return process.env.http_proxy||process.env.HTTP_PROXY})();if(B)try{return new d0(B)}catch(I){if(!B.startsWith("http://")&&!B.startsWith("https://"))return new d0(`http://${B}`)}else return}XI.getProxyUrl=cL;function qJ(A){if(!A.hostname)return!1;let Q=A.hostname;if(dL(Q))return!0;let B=process.env.no_proxy||process.env.NO_PROXY||"";if(!B)return!1;let I;if(A.port)I=Number(A.port);else if(A.protocol==="http:")I=80;else if(A.protocol==="https:")I=443;let E=[A.hostname.toUpperCase()Line truncated
`,N.message,N.stack);var U=Error("tunneling socket could not be established, cause="+N.message);U.code="ECONNRESET",Q.request.emit("error",U),I.removeSocket(E)}};GB.prototype.removeSocket=function(Q){var B=this.sockets.indexOf(Q);if(B===-1)return;this.sockets.splice(B,1);var I=this.requests.shift();if(I)this.createSocket(I,function(E){I.request.onSocket(E)})};function OJ(A,Q){var B=this;GB.prototype.createSocket.call(B,A,function(I){var E=A.request.getHeader("host"),C=p0({},B.options,{socket:I,servername:E?E.replace(/:.*$/,""):A.host}),g=lL.connect(0,C);B.sockets[B.sockets.indexOf(I)]=g,Q(g)})}function yJ(A,Q,B){if(typeof A==="string")return{host:A,port:Q,localAddress:B};return A}function p0(A){for(var Q=1,B=arguments.length;Q<B;++Q){var I=arguments[Q];if(typeof I==="object"){var E=Object.keys(I);for(var C=0,g=E.length;C<g;++C){var D=E[C];if(I[D]!==void 0)A[D]=I[D]}}}return A}var TB;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG))TB=function(){var A=Array.prototype.slice.call(arguments);if(typeof A[0]==="string")A[0]="TUNNEL: "+A[0];else A.unshift("TUNNEL:");console.error.apply(console,A)};else TB=function(){};KI.debug=TB});var kJ=M((Hj,PJ)=>{PJ.exports=hJ()});var e=M((zj,vJ)=>{vJ.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"),kHeadersList:Symbol("headers list"),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"),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"),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"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}});var n=M((Sj,bJ)=>{class VA extends Error{constructor(A){super(A);this.name="UndiciError",this.code="UND_ERR"}}class i0 extends VA{constructor(A){super(A);Error.captureStackTrace(this,i0),this.name="ConnectTimeoutError",this.message=A||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}}class n0 extends VA{constructor(A){super(A);Error.captureStackTrace(this,n0),this.name="HeadersTimeoutError",this.message=A||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}}class o0 extends VA{constructor(A){super(A);Error.captureStackTrace(this,o0),this.name="HeadersOverflowError",this.message=A||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}}class a0 extends VA{constructor(A){super(A);Error.captureStackTrace(this,a0),this.name="BodyTimeoutError",this.message=A||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}}class s0 extends VA{constructor(A,Q,B,I){super(A);Error.captureStackTrace(this,s0),this.name="ResponseStatusCodeError",this.message=A||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=I,this.status=Q,this.statusCode=Q,this.headers=B}}class r0 extends VA{constructor(A){super(A);Error.captureStackTrace(this,r0),this.name="InvalidArgumentError",this.message=A||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}}class t0 extends VA{constructor(A){super(A);Error.captureStackTrace(this,t0),this.name="InvalidReturnValueError",this.message=A||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}}class e0 extends VA{constructor(A){super(A);Error.captureStackTrace(this,e0),this.name="AbortError",this.message Line truncated
\r
`),kZ=/\r\n/g,vZ=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function zI(A){FN.call(this),A=A||{};let Q=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=DN(A,"maxHeaderPairs",2000),this.maxHeaderSize=DN(A,"maxHeaderSize",81920),this.buffer="",this.header={},this.finished=!1,this.ss=new hZ(PZ),this.ss.on("info",function(B,I,E,C){if(I&&!Q.maxed){if(Q.nread+C-E>=Q.maxHeaderSize)C=Q.maxHeaderSize-Q.nread+E,Q.nread=Q.maxHeaderSize,Q.maxed=!0;else Q.nread+=C-E;Q.buffer+=I.toString("binary",E,C)}if(B)Q._finish()})}yZ(zI,FN);zI.prototype.push=function(A){let Q=this.ss.push(A);if(this.finished)return Q};zI.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};zI.prototype._finish=function(){if(this.buffer)this._parseHeader();this.ss.matches=this.ss.maxMatches;let A=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",A)};zI.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let A=this.buffer.split(kZ),Q=A.length,B,I;for(var E=0;E<Q;++E){if(A[E].length===0)continue;if(A[E][0]==="\t"||A[E][0]===" "){if(I){this.header[I][this.header[I].length-1]+=A[E];continue}}let C=A[E].indexOf(":");if(C===-1||C===0)return;if(B=vZ.exec(A[E]),I=B[1].toLowerCase(),this.header[I]=this.header[I]||[],this.header[I].push(B[2]||""),++this.npairs===this.maxHeaderPairs)break}};YN.exports=zI});var WD=M((yj,UN)=>{var MD=require("node:stream").Writable,fZ=require("node:util").inherits,bZ=VD(),NN=CN(),mZ=JN(),uZ=Buffer.from("-"),cZ=Buffer.from(`\r
`),dZ=function(){};function kQ(A){if(!(this instanceof kQ))return new kQ(A);if(MD.call(this,A),!A||!A.headerFirst&&typeof A.boundary!=="string")throw TypeError("Boundary required");if(typeof A.boundary==="string")this.setBoundary(A.boundary);else this._bparser=void 0;this._headerFirst=A.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:A.partHwm},this._pause=!1;let Q=this;this._hparser=new mZ(A),this._hparser.on("header",function(B){Q._inHeader=!1,Q._part.emit("header",B)})}fZ(kQ,MD);kQ.prototype.emit=function(A){if(A==="finish"&&!this._realFinish){if(!this._finished){let Q=this;process.nextTick(function(){if(Q.emit("error",Error("Unexpected end of multipart data")),Q._part&&!Q._ignoreData){let B=Q._isPreamble?"Preamble":"Part";Q._part.emit("error",Error(B+" terminated early due to unexpected end of multipart data")),Q._part.push(null),process.nextTick(function(){Q._realFinish=!0,Q.emit("finish"),Q._realFinish=!1});return}Q._realFinish=!0,Q.emit("finish"),Q._realFinish=!1})}}else MD.prototype.emit.apply(this,arguments)};kQ.prototype._write=function(A,Q,B){if(!this._hparser&&!this._bparser)return B();if(this._headerFirst&&this._isPreamble){if(!this._part)if(this._part=new NN(this._partOpts),this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else this._ignore();let I=this._hparser.push(A);if(!this._inHeader&&I!==void 0&&I<A.length)A=A.slice(I);else return B()}if(this._firstWrite)this._bparser.push(cZ),this._firstWrite=!1;if(this._bparser.push(A),this._pause)this._cb=B;else B()};kQ.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};kQ.prototype.setBoundary=function(A){let Q=this;this._bparser=new bZ(`\r
--`+A),this._bparser.on("info",function(B,I,E,C){Q._oninfo(B,I,E,C)})};kQ.prototype._ignore=function(){if(this._part&&!this._ignoreData)this._ignoreData=!0,this._part.on("error",dZ),this._part.resume()};kQ.prototype._oninfo=function(A,Q,B,I){let E,C=this,g=0,D,F=!0;if(!this._part&&this._justMatched&&Q){while(this._dashes<2&&B+g<I)if(Q[B+g]===45)++g,++this._dashes;else{if(this._dashes)E=uZ;this._dashes=0;break}if(this._dashes===2){if(B+g<I&&this.listenerCount("trailer")!==0)this.emit("trailer",Q.slice(B+g,I));if(this.reset(),this._finished=!0,C._parts===0)C._realFinish=!0,C.emit("finish"),C._realFinish=!1}if(this._dashes)return}if(this._justMatched)this._justMatched=!1;if(!this._part){if(this._part=new NN(this._partOpts),this._part._read=function(J){C._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else if(this._isPreamble!==!0&&this.listenerCount("part")!==0)this.emit("part",this._part);else this._ignore();if(!this._isPreamble)this._inHeader=!0}if(Q&&B<I&&!this._ignoreData){if(this._isPreamble||!this._inHeader){if(E)F=this._part.push(E);if(F=this._part.push(Q.slice(B,I)),!F)this._pause=!0}else if(!this._isPreamble&&this._inHeader){if(E)this._hparser.push(E);if(D=this._hparser.push(Q.slice(B,I)),!this._inHeader&&D!==void 0&&D<I)this._oninfo(!1,Q,B+D,I)}}if(A){if(this._hparser.reset(),this._isPreamble)this._isPreamble=!1;else if(B!==I)++this._parts,this._part.on("end",function(){if(--C._parts===0)if(C._finished)C._realFinish=!0,C.emit("finish"),C._realFinish=!1;else C._unpause()});this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0}};kQ.prototype._unpause=function(){if(!this._pause)return;if(this._pause=!1,this._cb){let A=this._cb;this._cb=void 0,A()}};UN.exports=kQ});var fC=M((LD,VN)=>{var GN=new TextDecoder("utf-8"),RN=new Map([["utf-8",GN],["utf8",GN]]);function lZ(A){let Q;while(!0)switch(A){case"utf-8":case"utf8":return $E.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return $E.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return $E.utf16le;case"base64":return $E.base64;default:if(Q===void 0){Q=!0,A=A.toLowerCase();continue}return $E.other.bind(A)}}var $E={utf8:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.utf8Slice(0,A.length)},latin1:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")return A;return A.latin1Slice(0,A.length)},utf16le:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.ucs2Slice(0,A.length)},base64:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.base64Slice(0,A.length)},other:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);if(RN.has(LD.toString()))try{return RN.get(LD).decode(A)}catch{}return typeof A==="string"?A:A.toString()}};function pZ(A,Q,B){if(A)return lZ(B)(A,Q);return A}VN.exports=pZ});var XD=M((hj,ZN)=>{var bC=fC(),wN=/%[a-fA-F0-9][a-fA-F0-9]/g,iZ={"%00":"\x00","%01":"\x01","%02":"\x02","%03":"\x03","%04":"\x04","%05":"\x05","%06":"\x06","%07":"\x07","%08":"\b","%09":"\t","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"\x0E","%0E":"\x0E","%0f":"\x0F","%0F":"\x0F","%10":"\x10","%11":"\x11","%12":"\x12","%13":"\x13","%14":"\x14","%15":"\x15","%16":"\x16","%17":"\x17","%18":"\x18","%19":"\x19","%1a":"\x1A","%1A":"\x1A","%1b":"\x1B","%1B":"\x1B","%1c":"\x1C","%1C":"\x1C","%1d":"\x1D","%1D":"\x1D","%1e":"\x1E","%1E":"\x1E","%1f":"\x1F","%1F":"\x1F","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"","%B6":"","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%FdLine truncated
`))return!1;return!0}function pX(A,Q){let{headersList:B}=Q,I=(B.get("referrer-policy")??"").split(","),E="";if(I.length>0)for(let C=I.length;C!==0;C--){let g=I[C-1].trim();if(_X.has(g)){E=g;break}}if(E!=="")A.referrerPolicy=E}function iX(){return"allowed"}function nX(){return"success"}function oX(){return"success"}function aX(A){let Q=null;Q=A.mode,A.headersList.set("sec-fetch-mode",Q)}function sX(A){let Q=A.origin;if(A.responseTainting==="cors"||A.mode==="websocket"){if(Q)A.headersList.append("origin",Q)}else if(A.method!=="GET"&&A.method!=="HEAD"){switch(A.referrerPolicy){case"no-referrer":Q=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(A.origin&&qD(A.origin)&&!qD(TE(A)))Q=null;break;case"same-origin":if(!lC(A,TE(A)))Q=null;break;default:}if(Q)A.headersList.append("origin",Q)}}function rX(A){return hX.now()}function tX(A){return{startTime:A.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:A.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function eX(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function A9(A){return{referrerPolicy:A.referrerPolicy}}function Q9(A){let Q=A.referrerPolicy;qI(Q);let B=null;if(A.referrer==="client"){let D=yX();if(!D||D.origin==="null")return"no-referrer";B=new URL(D)}else if(A.referrer instanceof URL)B=A.referrer;let I=$D(B),E=$D(B,!0);if(I.toString().length>4096)I=E;let C=lC(A,I),g=qE(I)&&!qE(A.url);switch(Q){case"origin":return E!=null?E:$D(B,!0);case"unsafe-url":return I;case"same-origin":return C?E:"no-referrer";case"origin-when-cross-origin":return C?I:E;case"strict-origin-when-cross-origin":{let D=TE(A);if(lC(I,D))return I;if(qE(I)&&!qE(D))return"no-referrer";return E}case"strict-origin":case"no-referrer-when-downgrade":default:return g?"no-referrer":E}}function $D(A,Q){if(qI(A instanceof URL),A.protocol==="file:"||A.protocol==="about:"||A.protocol==="blank:")return"no-referrer";if(A.username="",A.password="",A.hash="",Q)A.pathname="",A.search="";return A}function qE(A){if(!(A instanceof URL))return!1;if(A.href==="about:blank"||A.href==="about:srcdoc")return!0;if(A.protocol==="data:")return!0;if(A.protocol==="file:")return!0;return Q(A.origin);function Q(B){if(B==null||B==="null")return!1;let I=new URL(B);if(I.protocol==="https:"||I.protocol==="wss:")return!0;if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(I.hostname)||(I.hostname==="localhost"||I.hostname.includes("localhost."))||I.hostname.endsWith(".localhost"))return!0;return!1}}function B9(A,Q){if(dC===void 0)return!0;let B=nN(Q);if(B==="no metadata")return!0;if(B.length===0)return!0;let I=E9(B),E=C9(B,I);for(let C of E){let{algo:g,hash:D}=C,F=dC.createHash(g).update(A).digest("base64");if(F[F.length-1]==="=")if(F[F.length-2]==="=")F=F.slice(0,-2);else F=F.slice(0,-1);if(g9(F,D))return!0}return!1}var I9=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function nN(A){let Q=[],B=!0;for(let I of A.split(" ")){B=!1;let E=I9.exec(I);if(E===null||E.groups===void 0||E.groups.algo===void 0)continue;let C=E.groups.algo.toLowerCase();if(dN.includes(C))Q.push(E.groups)}if(B===!0)return"no metadata";return Q}function E9(A){let Q=A[0].algo;if(Q[3]==="5")return Q;for(let B=1;B<A.length;++B){let I=A[B];if(I.algo[3]==="5"){Q="sha512";break}else if(Q[3]==="3")continue;else if(I.algo[3]==="3")Q="sha384"}return Q}function C9(A,Q){if(A.length===1)return A;let B=0;for(let I=0;I<A.length;++I)if(A[I].algo===Q)A[B++]=A[I];return A.length=B,A}function g9(A,Q){if(A.length!==Q.length)return!1;for(let B=0;B<A.length;++B)if(A[B]!==Q[B]){if(A[B]==="+"&&Q[B]==="-"||A[B]==="/"&&Q[B]==="_")continue;return!1}return!0}function D9(A){}function lC(A,Q){if(A.origin===Q.origin&&A.origin==="null")return!0;if(A.protocol===Q.protocol&&A.hostname===Q.hostname&&A.port===Q.port)return!0;return!1}function F9(){let A,Q;return{promise:new Promise((I,E)=>{A=I,Q=E}),resolve:A,reject:Q}}function Y9(A){return A.controller.state==="aborted"}function J9(A){return A.controller.state==="aborted"||A.controller.state==="terminated"}var TD={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(TD,null);function N9(A){return TD[A.toLowerCase()]??A}function U9(A){let Q=JSON.stringify(A);if(Q===void 0)throw TypeError("Value is not JSON serializable");return qI(typeof Q==="string"),Q}var G9=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function R9(A,Q,B){let I={index:0,kind:B,target:A},E={next(){if(Object.getPrototypeOf(this)!==E)throw TypeError(`'next' called on an object that does not implement interface ${Q} Iterator.`);let{index:C,kind:g,target:D}=I,F=D(),J=F.length;if(C>=J)return{value:void 0,done:!0};let Y=F[C];return I.index=C+1,V9(Y, Line truncated
`||A==="\t"||A===" "}function _D(A,Q=!0,B=!0){let I=0,E=A.length-1;if(Q)for(;I<A.length&&AU(A[I]);I++);if(B)for(;E>0&&AU(A[E]);E--);return A.slice(I,E+1)}function QU(A){return A==="\r"||A===`
`||A==="\t"||A==="\f"||A===" "}function h9(A,Q=!0,B=!0){let I=0,E=A.length-1;if(Q)for(;I<A.length&&QU(A[I]);I++);if(B)for(;E>0&&QU(A[E]);E--);return A.slice(I,E+1)}CU.exports={dataURLProcessor:T9,URLSerializer:BU,collectASequenceOfCodePoints:nC,collectASequenceOfCodePointsFast:TI,stringPercentDecode:IU,parseMIMEType:OD,collectAnHTTPQuotedString:EU,serializeAMimeType:y9}});var oC=M((ij,JU)=>{var{Blob:FU,File:gU}=require("buffer"),{types:yD}=require("util"),{kState:NQ}=VB(),{isBlobLike:YU}=zQ(),{webidl:u}=fA(),{parseMIMEType:P9,serializeAMimeType:k9}=vQ(),{kEnumerableProperty:DU}=f(),v9=new TextEncoder;class tB extends FU{constructor(A,Q,B={}){u.argumentLengthCheck(arguments,2,{header:"File constructor"}),A=u.converters["sequence<BlobPart>"](A),Q=u.converters.USVString(Q),B=u.converters.FilePropertyBag(B);let I=Q,E=B.type,C;A:{if(E){if(E=P9(E),E==="failure"){E="";break A}E=k9(E).toLowerCase()}C=B.lastModified}super(f9(A,B),{type:E});this[NQ]={name:I,lastModified:C,type:E}}get name(){return u.brandCheck(this,tB),this[NQ].name}get lastModified(){return u.brandCheck(this,tB),this[NQ].lastModified}get type(){return u.brandCheck(this,tB),this[NQ].type}}class iQ{constructor(A,Q,B={}){let I=Q,E=B.type,C=B.lastModified??Date.now();this[NQ]={blobLike:A,name:I,type:E,lastModified:C}}stream(...A){return u.brandCheck(this,iQ),this[NQ].blobLike.stream(...A)}arrayBuffer(...A){return u.brandCheck(this,iQ),this[NQ].blobLike.arrayBuffer(...A)}slice(...A){return u.brandCheck(this,iQ),this[NQ].blobLike.slice(...A)}text(...A){return u.brandCheck(this,iQ),this[NQ].blobLike.text(...A)}get size(){return u.brandCheck(this,iQ),this[NQ].blobLike.size}get type(){return u.brandCheck(this,iQ),this[NQ].blobLike.type}get name(){return u.brandCheck(this,iQ),this[NQ].name}get lastModified(){return u.brandCheck(this,iQ),this[NQ].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(tB.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:DU,lastModified:DU});u.converters.Blob=u.interfaceConverter(FU);u.converters.BlobPart=function(A,Q){if(u.util.Type(A)==="Object"){if(YU(A))return u.converters.Blob(A,{strict:!1});if(ArrayBuffer.isView(A)||yD.isAnyArrayBuffer(A))return u.converters.BufferSource(A,Q)}return u.converters.USVString(A,Q)};u.converters["sequence<BlobPart>"]=u.sequenceConverter(u.converters.BlobPart);u.converters.FilePropertyBag=u.dictionaryConverter([{key:"lastModified",converter:u.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:u.converters.DOMString,defaultValue:""},{key:"endings",converter:(A)=>{if(A=u.converters.DOMString(A),A=A.toLowerCase(),A!=="native")A="transparent";return A},defaultValue:"transparent"}]);function f9(A,Q){let B=[];for(let I of A)if(typeof I==="string"){let E=I;if(Q.endings==="native")E=b9(E);B.push(v9.encode(E))}else if(yD.isAnyArrayBuffer(I)||yD.isTypedArray(I))if(!I.buffer)B.push(new Uint8Array(I));else B.push(new Uint8Array(I.buffer,I.byteOffset,I.byteLength));else if(YU(I))B.push(I);return B}function b9(A){let Q=`
`;if(process.platform==="win32")Q=`\r
`;return A.replace(/\r?\n/g,Q)}function m9(A){return gU&&A instanceof gU||A instanceof tB||A&&(typeof A.stream==="function"||typeof A.arrayBuffer==="function")&&A[Symbol.toStringTag]==="File"}JU.exports={File:tB,FileLike:iQ,isFileLike:m9}});var sC=M((nj,VU)=>{var{isBlobLike:aC,toUSVString:u9,makeIterator:hD}=zQ(),{kState:OA}=VB(),{File:RU,FileLike:NU,isFileLike:c9}=oC(),{webidl:d}=fA(),{Blob:d9,File:PD}=require("buffer"),UU=PD??RU;class bA{constructor(A){if(A!==void 0)throw d.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[OA]=[]}append(A,Q,B=void 0){if(d.brandCheck(this,bA),d.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!aC(Q))throw TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");A=d.converters.USVString(A),Q=aC(Q)?d.converters.Blob(Q,{strict:!1}):d.converters.USVString(Q),B=arguments.length===3?d.converters.USVString(B):void 0;let I=GU(A,Q,B);this[OA].push(I)}delete(A){d.brandCheck(this,bA),d.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),A=d.converters.USVString(A),this[OA]=this[OA].filter((Q)=>Q.name!==A)}get(A){d.brandCheck(this,bA),d.argumentLengthCheck(arguments,1,{header:"FormData.get"}),A=d.converters.USVString(A);let Q=this[OA].findIndex((B)=>B.name===A);if(Q===-1)return null;return this[OA][Q].value}getAll(A){return d.brandCheck(this,bA),d.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),A=d.converters.USVString(A),this[OA].filter((Q)=>Q.name===A).map((Q)=>Q.value)}has(A){return d.brandCheck(this,bA),d.argumentLengthCheck(arguments,1,{header:"FormData.has"}),A=d.converters.USVString(A),this[OA].findIndex((Q)=>Q.name===A)!==-1}set(A,Q,B=void 0){if(d.brandCheck(this,bA),d.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!aC(Q))throw TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");A=d.converters.USVString(A),Q=aC(Q)?d.converters.Blob(Q,{strict:!1}):d.converters.USVString(Q),B=arguments.length===3?u9(B):void 0;let I=GU(A,Q,B),E=this[OA].findIndex((C)=>C.name===A);if(E!==-1)this[OA]=[...this[OA].slice(0,E),I,...this[OA].slice(E+1).filter((C)=>C.name!==A)];else this[OA].push(I)}entries(){return d.brandCheck(this,bA),hD(()=>this[OA].map((A)=>[A.name,A.value]),"FormData","key+value")}keys(){return d.brandCheck(this,bA),hD(()=>this[OA].map((A)=>[A.name,A.value]),"FormData","key")}values(){return d.brandCheck(this,bA),hD(()=>this[OA].map((A)=>[A.name,A.value]),"FormData","value")}forEach(A,Q=globalThis){if(d.brandCheck(this,bA),d.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof A!=="function")throw TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[B,I]of this)A.apply(Q,[I,B,this])}}bA.prototype[Symbol.iterator]=bA.prototype.entries;Object.defineProperties(bA.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function GU(A,Q,B){if(A=Buffer.from(A).toString("utf8"),typeof Q==="string")Q=Buffer.from(Q).toString("utf8");else{if(!c9(Q))Q=Q instanceof d9?new UU([Q],"blob",{type:Q.type}):new NU(Q,"blob",{type:Q.type});if(B!==void 0){let I={type:Q.type,lastModified:Q.lastModified};Q=PD&&Q instanceof PD||Q instanceof RU?new UU([Q],B,I):new NU(Q,B,I)}}return{name:A,value:Q}}VU.exports={FormData:bA}});var _E=M((oj,zU)=>{var l9=yN(),_I=f(),{ReadableStreamFrom:p9,isBlobLike:wU,isReadableStreamLike:i9,readableStreamClose:n9,createDeferredPromise:o9,fullyReadBody:a9}=zQ(),{FormData:MU}=sC(),{kState:MB}=VB(),{webidl:kD}=fA(),{DOMException:ZU,structuredClone:s9}=yB(),{Blob:r9,File:t9}=require("buffer"),{kBodyUsed:e9}=e(),vD=require("assert"),{isErrored:A4}=f(),{isUint8Array:XU,isArrayBuffer:Q4}=require("util/types"),{File:B4}=oC(),{parseMIMEType:I4,serializeAMimeType:E4}=vQ(),fD;try{let A=require("node:crypto");fD=(Q)=>A.randomInt(0,Q)}catch{fD=(A)=>Math.floor(Math.random(A))}var wB=globalThis.ReadableStream,WU=t9??B4,rC=new TextEncoder,C4=new TextDecoder;function KU(A,Q=!1){if(!wB)wB=require("stream/web").ReadableStream;let B=null;if(A instanceof wB)B=A;else if(wU(A))B=A.stream();else B=new wB({async pull(F){F.enqueue(typeof E==="string"?rC.encode(E):E),queueMicrotask(()=>n9(F))},start(){},type:void 0});vD(i9(B));let I=null,E=null,C=null,g=null;if(typeof A==="string")E=A,g="text/plain;charset=UTF-8";else if(A instanceof URLSearchParams)E=A.toString(),g="application/x-www-form-urlencoded;charset=UTF-8";else if(Q4(A))E=new Uint8Array(A.slice());else if(ArrayBuffer.isView(A))E=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength));else if(_I.isFormDataLike(A)){let F=`----formdata-undici-0${`${fD(100000000000)}`.padStart(11,"0")}`,J=`--${F}\r
Content-Disposition: form-data`;/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */let Y=(w)=>w.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),N=(w)=>w.replace(/\r?\n|\r/g,`\r
`),U=[],G=new Uint8Array([13,10]);C=0;let R=!1;for(let[w,W]of A)if(typeof W==="string"){let Z=rC.encode(J+`; name="${Y(N(w))}"\r
\r
${N(W)}\r
`);U.push(Z),C+=Z.byteLength}else{let Z=rC.encode(`${J}; name="${Y(N(w))}"`+(W.name?`; filename="${Y(W.name)}"`:"")+`\r
Content-Type: ${W.type||"application/octet-stream"}\r
\r
`);if(U.push(Z,W,G),typeof W.size==="number")C+=Z.byteLength+W.size+G.byteLength;else R=!0}let V=rC.encode(`--${F}--`);if(U.push(V),C+=V.byteLength,R)C=null;E=A,I=async function*(){for(let w of U)if(w.stream)yield*w.stream();else yield w},g="multipart/form-data; boundary="+F}else if(wU(A)){if(E=A,C=A.size,A.type)g=A.type}else if(typeof A[Symbol.asyncIterator]==="function"){if(Q)throw TypeError("keepalive");if(_I.isDisturbed(A)||A.locked)throw TypeError("Response body object should not be disturbed or locked");B=A instanceof wB?A:p9(A)}if(typeof E==="string"||_I.isBuffer(E))C=Buffer.byteLength(E);if(I!=null){let F;B=new wB({async start(){F=I(A)[Symbol.asyncIterator]()},async pull(J){let{value:Y,done:N}=await F.next();if(N)queueMicrotask(()=>{J.close()});else if(!A4(B))J.enqueue(new Uint8Array(Y));return J.desiredSize>0},async cancel(J){await F.return()},type:void 0})}return[{stream:B,source:E,length:C},g]}function g4(A,Q=!1){if(!wB)wB=require("stream/web").ReadableStream;if(A instanceof wB)vD(!_I.isDisturbed(A),"The body has already been consumed."),vD(!A.locked,"The stream is locked.");return KU(A,Q)}function D4(A){let[Q,B]=A.stream.tee(),I=s9(B,{transfer:[B]}),[,E]=I.tee();return A.stream=Q,{stream:E,length:A.length,source:A.source}}async function*LU(A){if(A)if(XU(A))yield A;else{let Q=A.stream;if(_I.isDisturbed(Q))throw TypeError("The body has already been consumed.");if(Q.locked)throw TypeError("The stream is locked.");Q[e9]=!0,yield*Q}}function bD(A){if(A.aborted)throw new ZU("The operation was aborted.","AbortError")}function F4(A){return{blob(){return tC(this,(B)=>{let I=U4(this);if(I==="failure")I="";else if(I)I=E4(I);return new r9([B],{type:I})},A)},arrayBuffer(){return tC(this,(B)=>{return new Uint8Array(B).buffer},A)},text(){return tC(this,HU,A)},json(){return tC(this,N4,A)},async formData(){kD.brandCheck(this,A),bD(this[MB]);let B=this.headers.get("Content-Type");if(/multipart\/form-data/.test(B)){let I={};for(let[D,F]of this.headers)I[D.toLowerCase()]=F;let E=new MU,C;try{C=new l9({headers:I,preservePath:!0})}catch(D){throw new ZU(`${D}`,"AbortError")}C.on("field",(D,F)=>{E.append(D,F)}),C.on("file",(D,F,J,Y,N)=>{let U=[];if(Y==="base64"||Y.toLowerCase()==="base64"){let G="";F.on("data",(R)=>{G+=R.toString().replace(/[\r\n]/gm,"");let V=G.length-G.length%4;U.push(Buffer.from(G.slice(0,V),"base64")),G=G.slice(V)}),F.on("end",()=>{U.push(Buffer.from(G,"base64")),E.append(D,new WU(U,J,{type:N}))})}else F.on("data",(G)=>{U.push(G)}),F.on("end",()=>{E.append(D,new WU(U,J,{type:N}))})});let g=new Promise((D,F)=>{C.on("finish",D),C.on("error",(J)=>F(TypeError(J)))});if(this.body!==null)for await(let D of LU(this[MB].body))C.write(D);return C.end(),await g,E}else if(/application\/x-www-form-urlencoded/.test(B)){let I;try{let C="",g=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let D of LU(this[MB].body)){if(!XU(D))throw TypeError("Expected Uint8Array chunk");C+=g.decode(D,{stream:!0})}C+=g.decode(),I=new URLSearchParams(C)}catch(C){throw Object.assign(TypeError(),{cause:C})}let E=new MU;for(let[C,g]of I)E.append(C,g);return E}else throw await Promise.resolve(),bD(this[MB]),kD.errors.exception({header:`${A.name}.formData`,message:"Could not parse content as FormData."})}}}function Y4(A){Object.assign(A.prototype,F4(A))}async function tC(A,Q,B){if(kD.brandCheck(A,B),bD(A[MB]),J4(A[MB].body))throw TypeError("Body is unusable");let I=o9(),E=(g)=>I.reject(g),C=(g)=>{try{I.resolve(Q(g))}catch(D){E(D)}};if(A[MB].body==null)return C(new Uint8Array),I.promise;return await a9(A[MB].body,C,E),I.promise}function J4(A){return A!=null&&(A.stream.locked||_I.isDisturbed(A.stream))}function HU(A){if(A.length===0)return"";if(A[0]===239&&A[1]===187&&A[2]===191)A=A.subarray(3);return C4.decode(A)}function N4(A){return JSON.parse(HU(A))}function U4(A){let{headersList:Q}=A[MB],B=Q.get("content-type");if(B===null)return"failure";return I4(B)}zU.exports={extractBody:KU,safelyExtractBody:g4,cloneBody:D4,mixinBody:Y4}});var xU=M((aj,$U)=>{var{InvalidArgumentError:r,NotSupportedError:G4}=n(),WB=require("assert"),{kHTTP2BuildRequest:R4,kHTTP2CopyHeaders:V4,kHTTP1BuildRequest:w4}=e(),tA=f(),SU=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,jU=/[^\t\x20-\x7e\x80-\xff]/,M4=/[^\u0021-\u00ff]/,fQ=Symbol("handler"),wA={},mD;try{let A=require("diagnostics_channel");wA.create=A.channel("undici:request:create"),wA.bodySent=A.channel("undici:request:bodySent"),wA.headers=A.channel("undici:request:headers"),wA.trailers=A.channel("undici:request:trailers"),wA.error=A.channel("undici:request:error")}catch{wA.create={hasSubscribers:!1},wA.bodySent={hasSubscribers:!1},wA.headers={hasSubscribers:!1},wA.trailers={hasSubscribers:!1},wA.error={hasSubscribers:!1}}class eC{constructor(A,{path:Q,method:B,body:I,headers:E,query:C,idempotent:g,blocking:D,upgrade:F,headersTimeout:J,bodyTimeout:Y,reset:N,throwOnError:U,expectContinue:G},R){if(typeof Q!=="string")throw new r("path must be a string");else if(Q[0]!=="/"&&!(Q.startsWith("http://")||Q.startsWith("httpsLine truncated
`;this.body=V.stream,this.contentLength=V.length}else if(tA.isBlobLike(I)&&this.contentType==null&&I.type)this.contentType=I.type,this.headers+=`content-type: ${I.type}\r
`;if(tA.validateHandler(R,B,F),this.servername=tA.getServerName(this.host),this[fQ]=R,wA.create.hasSubscribers)wA.create.publish({request:this})}onBodySent(A){if(this[fQ].onBodySent)try{return this[fQ].onBodySent(A)}catch(Q){this.abort(Q)}}onRequestSent(){if(wA.bodySent.hasSubscribers)wA.bodySent.publish({request:this});if(this[fQ].onRequestSent)try{return this[fQ].onRequestSent()}catch(A){this.abort(A)}}onConnect(A){if(WB(!this.aborted),WB(!this.completed),this.error)A(this.error);else return this.abort=A,this[fQ].onConnect(A)}onHeaders(A,Q,B,I){if(WB(!this.aborted),WB(!this.completed),wA.headers.hasSubscribers)wA.headers.publish({request:this,response:{statusCode:A,headers:Q,statusText:I}});try{return this[fQ].onHeaders(A,Q,B,I)}catch(E){this.abort(E)}}onData(A){WB(!this.aborted),WB(!this.completed);try{return this[fQ].onData(A)}catch(Q){return this.abort(Q),!1}}onUpgrade(A,Q,B){return WB(!this.aborted),WB(!this.completed),this[fQ].onUpgrade(A,Q,B)}onComplete(A){if(this.onFinally(),WB(!this.aborted),this.completed=!0,wA.trailers.hasSubscribers)wA.trailers.publish({request:this,trailers:A});try{return this[fQ].onComplete(A)}catch(Q){this.onError(Q)}}onError(A){if(this.onFinally(),wA.error.hasSubscribers)wA.error.publish({request:this,error:A});if(this.aborted)return;return this.aborted=!0,this[fQ].onError(A)}onFinally(){if(this.errorHandler)this.body.off("error",this.errorHandler),this.errorHandler=null;if(this.endHandler)this.body.off("end",this.endHandler),this.endHandler=null}addHeader(A,Q){return OE(this,A,Q),this}static[w4](A,Q,B){return new eC(A,Q,B)}static[R4](A,Q,B){let I=Q.headers;Q={...Q,headers:null};let E=new eC(A,Q,B);if(E.headers={},Array.isArray(I)){if(I.length%2!==0)throw new r("headers array must be even");for(let C=0;C<I.length;C+=2)OE(E,I[C],I[C+1],!0)}else if(I&&typeof I==="object"){let C=Object.keys(I);for(let g=0;g<C.length;g++){let D=C[g];OE(E,D,I[D],!0)}}else if(I!=null)throw new r("headers must be an object or an array");return E}static[V4](A){let Q=A.split(`\r
`),B={};for(let I of Q){let[E,C]=I.split(": ");if(C==null||C.length===0)continue;if(B[E])B[E]+=`,${C}`;else B[E]=C}return B}}function eB(A,Q,B){if(Q&&typeof Q==="object")throw new r(`invalid ${A} header`);if(Q=Q!=null?`${Q}`:"",jU.exec(Q)!==null)throw new r(`invalid ${A} header`);return B?Q:`${A}: ${Q}\r
`}function OE(A,Q,B,I=!1){if(B&&(typeof B==="object"&&!Array.isArray(B)))throw new r(`invalid ${Q} header`);else if(B===void 0)return;if(A.host===null&&Q.length===4&&Q.toLowerCase()==="host"){if(jU.exec(B)!==null)throw new r(`invalid ${Q} header`);A.host=B}else if(A.contentLength===null&&Q.length===14&&Q.toLowerCase()==="content-length"){if(A.contentLength=parseInt(B,10),!Number.isFinite(A.contentLength))throw new r("invalid content-length header")}else if(A.contentType===null&&Q.length===12&&Q.toLowerCase()==="content-type")if(A.contentType=B,I)A.headers[Q]=eB(Q,B,I);else A.headers+=eB(Q,B);else if(Q.length===17&&Q.toLowerCase()==="transfer-encoding")throw new r("invalid transfer-encoding header");else if(Q.length===10&&Q.toLowerCase()==="connection"){let E=typeof B==="string"?B.toLowerCase():null;if(E!=="close"&&E!=="keep-alive")throw new r("invalid connection header");else if(E==="close")A.reset=!0}else if(Q.length===10&&Q.toLowerCase()==="keep-alive")throw new r("invalid keep-alive header");else if(Q.length===7&&Q.toLowerCase()==="upgrade")throw new r("invalid upgrade header");else if(Q.length===6&&Q.toLowerCase()==="expect")throw new G4("expect header not supported");else if(SU.exec(Q)===null)throw new r("invalid header key");else if(Array.isArray(B))for(let E=0;E<B.length;E++)if(I)if(A.headers[Q])A.headers[Q]+=`,${eB(Q,B[E],I)}`;else A.headers[Q]=eB(Q,B[E],I);else A.headers+=eB(Q,B[E]);else if(I)A.headers[Q]=eB(Q,B,I);else A.headers+=eB(Q,B)}$U.exports=eC});var Ag=M((sj,TU)=>{var W4=require("events");class qU extends W4{dispatch(){throw Error("not implemented")}close(){throw Error("not implemented")}destroy(){throw Error("not implemented")}}TU.exports=qU});var hE=M((rj,OU)=>{var L4=Ag(),{ClientDestroyedError:uD,ClientClosedError:Z4,InvalidArgumentError:OI}=n(),{kDestroy:X4,kClose:K4,kDispatch:cD,kInterceptors:AI}=e(),yI=Symbol("destroyed"),yE=Symbol("closed"),LB=Symbol("onDestroyed"),hI=Symbol("onClosed"),Qg=Symbol("Intercepted Dispatch");class _U extends L4{constructor(){super();this[yI]=!1,this[LB]=null,this[yE]=!1,this[hI]=[]}get destroyed(){return this[yI]}get closed(){return this[yE]}get interceptors(){return this[AI]}set interceptors(A){if(A){for(let Q=A.length-1;Q>=0;Q--)if(typeof this[AI][Q]!=="function")throw new OI("interceptor must be an function")}this[AI]=A}close(A){if(A===void 0)return new Promise((B,I)=>{this.close((E,C)=>{return E?I(E):B(C)})});if(typeof A!=="function")throw new OI("invalid callback");if(this[yI]){queueMicrotask(()=>A(new uD,null));return}if(this[yE]){if(this[hI])this[hI].push(A);else queueMicrotask(()=>A(null,null));return}this[yE]=!0,this[hI].push(A);let Q=()=>{let B=this[hI];this[hI]=null;for(let I=0;I<B.length;I++)B[I](null,null)};this[K4]().then(()=>this.destroy()).then(()=>{queueMicrotask(Q)})}destroy(A,Q){if(typeof A==="function")Q=A,A=null;if(Q===void 0)return new Promise((I,E)=>{this.destroy(A,(C,g)=>{return C?E(C):I(g)})});if(typeof Q!=="function")throw new OI("invalid callback");if(this[yI]){if(this[LB])this[LB].push(Q);else queueMicrotask(()=>Q(null,null));return}if(!A)A=new uD;this[yI]=!0,this[LB]=this[LB]||[],this[LB].push(Q);let B=()=>{let I=this[LB];this[LB]=null;for(let E=0;E<I.length;E++)I[E](null,null)};this[X4](A).then(()=>{queueMicrotask(B)})}[Qg](A,Q){if(!this[AI]||this[AI].length===0)return this[Qg]=this[cD],this[cD](A,Q);let B=this[cD].bind(this);for(let I=this[AI].length-1;I>=0;I--)B=this[AI][I](B);return this[Qg]=B,B(A,Q)}dispatch(A,Q){if(!Q||typeof Q!=="object")throw new OI("handler must be an object");try{if(!A||typeof A!=="object")throw new OI("opts must be an object.");if(this[yI]||this[LB])throw new uD;if(this[yE])throw new Z4;return this[Qg](A,Q)}catch(B){if(typeof Q.onError!=="function")throw new OI("invalid onError method");return Q.onError(B),!1}}}OU.exports=_U});var PE=M((tj,PU)=>{var H4=require("net"),yU=require("assert"),hU=f(),{InvalidArgumentError:z4,ConnectTimeoutError:S4}=n(),dD,lD;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE)lD=class{constructor(Q){this._maxCachedSessions=Q,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry((B)=>{if(this._sessionCache.size<this._maxCachedSessions)return;let I=this._sessionCache.get(B);if(I!==void 0&&I.deref()===void 0)this._sessionCache.delete(B)})}get(Q){let B=this._sessionCache.get(Q);return B?B.deref():null}set(Q,B){if(this._maxCachedSessions===0)return;this._sessionCache.set(Q,new WeakRef(B)),this._sessionRegistry.register(B,Q)}};else lD=class{constructor(Q){this._maxCachedSessions=Q,this._sessionCache=new Map}get(Q){return this._sessionCache.get(Q)}set(Q,B){if(this._maxCachedSessions===0)return;if(this._sessionCache.size>=this._maxCachedSessions){let{value:I}=this._sessionCache.keys().next();this._sessionCache.delete(I)}this._sessionCache.set(Q,B)}};function j4({allowH2:A,maxCachedSessions:Q,socketPath:B,timeout:I,...E}){if(Q!=null&&(!Number.isInteger(Q)||Q<0))throw new z4("maxCachedSessions must be a positive integer or zero");let C={path:B Line truncated
`,this[eU]=D!=null?D:300000,this[tU]=I!=null?I:300000,this[uE]=W==null?!0:W,this[B1]=L,this[cE]=IA,this[PB]=null,this[QG]=EA>-1?EA:-1,this[tQ]="h1",this[GQ]=null,this[Fg]=!aA?null:{openStreams:0,maxConcurrentStreams:sA!=null?sA:100},this[BG]=`${this[$A].hostname}${this[$A].port?`:${this[$A].port}`:""}`,this[AA]=[],this[QA]=0,this[UQ]=0}get pipelining(){return this[vB]}set pipelining(A){this[vB]=A,RQ(this,!0)}get[II](){return this[AA].length-this[UQ]}get[gA](){return this[UQ]-this[QA]}get[BI](){return this[AA].length-this[QA]}get[Q1](){return!!this[YA]&&!this[kI]&&!this[YA].destroyed}get[tD](){let A=this[YA];return A&&(A[mA]||A[KB]||A[fI])||this[BI]>=(this[vB]||1)||this[II]>0}[A1](A){FG(this),this.once("connect",A)}[C1](A,Q){let B=A.origin||this[$A].origin,I=this[tQ]==="h2"?rD[D1](B,A,Q):rD[Y1](B,A,Q);if(this[AA].push(I),this[QI]);else if($.bodyLength(I.body)==null&&$.isIterable(I.body))this[QI]=1,process.nextTick(RQ,this);else RQ(this,!0);if(this[QI]&&this[kB]!==2&&this[tD])this[kB]=2;return this[kB]<2}async[I1](){return new Promise((A)=>{if(!this[BI])A(null);else this[PB]=A})}async[E1](A){return new Promise((Q)=>{let B=this[AA].splice(this[UQ]);for(let E=0;E<B.length;E++){let C=B[E];uA(this,C,A)}let I=()=>{if(this[PB])this[PB](),this[PB]=null;Q()};if(this[GQ]!=null)$.destroy(this[GQ],A),this[GQ]=null,this[Fg]=null;if(!this[YA])queueMicrotask(I);else $.destroy(this[YA].on("close",I),A);RQ(this)})}}function M1(A){z(A.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[YA][xA]=A,Ng(this[rQ],A)}function W1(A,Q,B){let I=new sQ(`HTTP/2: "frameError" received - type ${A}, code ${Q}`);if(B===0)this[YA][xA]=I,Ng(this[rQ],I)}function L1(){$.destroy(this,new vI("other side closed")),$.destroy(this[YA],new vI("other side closed"))}function Z1(A){let Q=this[rQ],B=new sQ(`HTTP/2: "GOAWAY" frame received with code ${A}`);if(Q[YA]=null,Q[GQ]=null,Q.destroyed){z(this[II]===0);let I=Q[AA].splice(Q[QA]);for(let E=0;E<I.length;E++){let C=I[E];uA(this,C,B)}}else if(Q[gA]>0){let I=Q[AA][Q[QA]];Q[AA][Q[QA]++]=null,uA(Q,I,B)}Q[UQ]=Q[QA],z(Q[gA]===0),Q.emit("disconnect",Q[$A],[Q],B),RQ(Q)}var nQ=vU(),X1=Ig(),K1=Buffer.alloc(0);async function H1(){let A=process.env.JEST_WORKER_ID?oD():void 0,Q;try{Q=await WebAssembly.compile(Buffer.from(pU(),"base64"))}catch(B){Q=await WebAssembly.compile(Buffer.from(A||oD(),"base64"))}return await WebAssembly.instantiate(Q,{env:{wasm_on_url:(B,I,E)=>{return 0},wasm_on_status:(B,I,E)=>{z.strictEqual(WA.ptr,B);let C=I-aQ+oQ.byteOffset;return WA.onStatus(new Eg(oQ.buffer,C,E))||0},wasm_on_message_begin:(B)=>{return z.strictEqual(WA.ptr,B),WA.onMessageBegin()||0},wasm_on_header_field:(B,I,E)=>{z.strictEqual(WA.ptr,B);let C=I-aQ+oQ.byteOffset;return WA.onHeaderField(new Eg(oQ.buffer,C,E))||0},wasm_on_header_value:(B,I,E)=>{z.strictEqual(WA.ptr,B);let C=I-aQ+oQ.byteOffset;return WA.onHeaderValue(new Eg(oQ.buffer,C,E))||0},wasm_on_headers_complete:(B,I,E,C)=>{return z.strictEqual(WA.ptr,B),WA.onHeadersComplete(I,Boolean(E),Boolean(C))||0},wasm_on_body:(B,I,E)=>{z.strictEqual(WA.ptr,B);let C=I-aQ+oQ.byteOffset;return WA.onBody(new Eg(oQ.buffer,C,E))||0},wasm_on_message_complete:(B)=>{return z.strictEqual(WA.ptr,B),WA.onMessageComplete()||0}}})}var sD=null,AF=H1();AF.catch();var WA=null,oQ=null,Cg=0,aQ=null,bI=1,Dg=2,QF=3;class EG{constructor(A,Q,{exports:B}){z(Number.isFinite(A[gg])&&A[gg]>0),this.llhttp=B,this.ptr=this.llhttp.llhttp_alloc(nQ.TYPE.RESPONSE),this.client=A,this.socket=Q,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=A[gg],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=A[QG]}setTimeout(A,Q){if(this.timeoutType=Q,A!==this.timeoutValue){if(aD.clearTimeout(this.timeout),A){if(this.timeout=aD.setTimeout(z1,A,this),this.timeout.unref)this.timeout.unref()}else this.timeout=null;this.timeoutValue=A}else if(this.timeout){if(this.timeout.refresh)this.timeout.refresh()}}resume(){if(this.socket.destroyed||!this.paused)return;if(z(this.ptr!=null),z(WA==null),this.llhttp.llhttp_resume(this.ptr),z(this.timeoutType===Dg),this.timeout){if(this.timeout.refresh)this.timeout.refresh()}this.paused=!1,this.execute(this.socket.read()||K1),this.readMore()}readMore(){while(!this.paused&&this.ptr){let A=this.socket.read();if(A===null)break;this.execute(A)}}execute(A){z(this.ptr!=null),z(WA==null),z(!this.paused);let{socket:Q,llhttp:B}=this;if(A.length>Cg){if(aQ)B.free(aQ);Cg=Math.ceil(A.length/4096)*4096,aQ=B.malloc(Cg)}new Uint8Array(B.memory.buffer,aQ,Cg).set(A);try{let I;try{oQ=A,WA=this,I=B.llhttp_execute(this.ptr,aQ,A.length)}catch(C){throw C}finally{WA=null,oQ=null}let E=B.llhttp_get_error_pos(this.ptr)-aQ;if(I===nQ.ERROR.PAUSED_UPGRADE)this.onUpgrade(A.slice(E));else if(I===nQ.ERROR.PAUSED)this.paused=!0,Q.unshift(A.slice(E));else if(I!==nQ.ERROR.OK){let C=B.llhttp_get_ Line truncated
`;if(typeof C==="string")R+=`host: ${C}\r
`;else R+=A[aU];if(g)R+=`connection: upgrade\r
upgrade: ${g}\r
`;else if(A[vB]&&!G[mA])R+=`connection: keep-alive\r
`;else R+=`connection: close\r
`;if(D)R+=D;if(yA.sendHeaders.hasSubscribers)yA.sendHeaders.publish({request:Q,headers:R,socket:G});if(!B||N===0){if(U===0)G.write(`${R}content-length: 0\r
\r
`,"latin1");else z(U===null,"no body must not have content length"),G.write(`${R}\r
`,"latin1");Q.onRequestSent()}else if($.isBuffer(B)){if(z(U===B.byteLength,"buffer body must have content length"),G.cork(),G.write(`${R}content-length: ${U}\r
\r
`,"latin1"),G.write(B),G.uncork(),Q.onBodySent(B),Q.onRequestSent(),!Y)G[mA]=!0}else if($.isBlobLike(B))if(typeof B.stream==="function")Jg({body:B.stream(),client:A,request:Q,socket:G,contentLength:U,header:R,expectsPayload:Y});else NG({body:B,client:A,request:Q,socket:G,contentLength:U,header:R,expectsPayload:Y});else if($.isStream(B))JG({body:B,client:A,request:Q,socket:G,contentLength:U,header:R,expectsPayload:Y});else if($.isIterable(B))Jg({body:B,client:A,request:Q,socket:G,contentLength:U,header:R,expectsPayload:Y});else z(!1);return!0}function $1(A,Q,B){let{body:I,method:E,path:C,host:g,upgrade:D,expectContinue:F,signal:J,headers:Y}=B,N;if(typeof Y==="string")N=rD[F1](Y.trim());else N=Y;if(D)return uA(A,B,Error("Upgrade not supported for H2")),!1;try{B.onConnect((Z)=>{if(B.aborted||B.completed)return;uA(A,B,Z||new IF)})}catch(Z){uA(A,B,Z)}if(B.aborted)return!1;let U,G=A[Fg];if(N[J1]=g||A[BG],N[N1]=E,E==="CONNECT"){if(Q.ref(),U=Q.request(N,{endStream:!1,signal:J}),U.id&&!U.pending)B.onUpgrade(null,null,U),++G.openStreams;else U.once("ready",()=>{B.onUpgrade(null,null,U),++G.openStreams});return U.once("close",()=>{if(G.openStreams-=1,G.openStreams===0)Q.unref()}),!0}N[U1]=C,N[G1]="https";let R=E==="PUT"||E==="POST"||E==="PATCH";if(I&&typeof I.read==="function")I.read(0);let V=$.bodyLength(I);if(V==null)V=B.contentLength;if(V===0||!R)V=null;if(YG(E)&&V>0&&B.contentLength!=null&&B.contentLength!==V){if(A[uE])return uA(A,B,new XB),!1;process.emitWarning(new XB)}if(V!=null)z(I,"no body must not have content length"),N[R1]=`${V}`;Q.ref();let w=E==="GET"||E==="HEAD";if(F)N[V1]="100-continue",U=Q.request(N,{endStream:w,signal:J}),U.once("continue",W);else U=Q.request(N,{endStream:w,signal:J}),W();return++G.openStreams,U.once("response",(Z)=>{let{[w1]:L,...H}=Z;if(B.onHeaders(Number(L),H,U.resume.bind(U),"")===!1)U.pause()}),U.once("end",()=>{B.onComplete([])}),U.on("data",(Z)=>{if(B.onData(Z)===!1)U.pause()}),U.once("close",()=>{if(G.openStreams-=1,G.openStreams===0)Q.unref()}),U.once("error",function(Z){if(A[GQ]&&!A[GQ].destroyed&&!this.closed&&!this.destroyed)G.streams-=1,$.destroy(U,Z)}),U.once("frameError",(Z,L)=>{let H=new sQ(`HTTP/2: "frameError" received - type ${Z}, code ${L}`);if(uA(A,B,H),A[GQ]&&!A[GQ].destroyed&&!this.closed&&!this.destroyed)G.streams-=1,$.destroy(U,H)}),!0;function W(){if(!I)B.onRequestSent();else if($.isBuffer(I))z(V===I.byteLength,"buffer body must have content length"),U.cork(),U.write(I),U.uncork(),U.end(),B.onBodySent(I),B.onRequestSent();else if($.isBlobLike(I))if(typeof I.stream==="function")Jg({client:A,request:B,contentLength:V,h2stream:U,expectsPayload:R,body:I.stream(),socket:A[YA],header:""});else NG({body:I,client:A,request:B,contentLength:V,expectsPayload:R,h2stream:U,header:"",socket:A[YA]});else if($.isStream(I))JG({body:I,client:A,request:B,contentLength:V,expectsPayload:R,socket:A[YA],h2stream:U,header:""});else if($.isIterable(I))Jg({body:I,client:A,request:B,contentLength:V,expectsPayload:R,header:"",h2stream:U,socket:A[YA]});else z(!1)}}function JG({h2stream:A,body:Q,client:B,request:I,socket:E,contentLength:C,header:g,expectsPayload:D}){if(z(C!==0||B[gA]===0,"stream body cannot be pipelined"),B[tQ]==="h2"){let V=function(w){I.onBodySent(w)},R=l4(Q,A,(w)=>{if(w)$.destroy(Q,w),$.destroy(A,w);else I.onRequestSent()});R.on("data",V),R.once("end",()=>{R.removeListener("data",V),$.destroy(R)});return}let F=!1,J=new EF({socket:E,request:I,contentLength:C,client:B,expectsPayload:D,header:g}),Y=function(R){if(F)return;try{if(!J.write(R)&&this.pause)this.pause()}catch(V){$.destroy(this,V)}},N=function(){if(F)return;if(Q.resume)Q.resume()},U=function(){if(F)return;let R=new IF;queueMicrotask(()=>G(R))},G=function(R){if(F)return;if(F=!0,z(E.destroyed||E[KB]&&B[gA]<=1),E.off("drain",N).off("error",G),Q.removeListener("data",Y).removeListener("end",G).removeListener("error",G).removeListener("close",U),!R)try{J.end()}catch(V){R=V}if(J.destroy(R),R&&(R.code!=="UND_ERR_INFO"||R.message!=="reset"))$.destroy(Q,R);else $.destroy(Q)};if(Q.on("data",Y).on("end",G).on("error",G).on("close",U),Q.resume)Q.resume();E.on("drain",N).on("error",G)}async function NG({h2stream:A,body:Q,client:B,request:I,socket:E,contentLength:C,header:g,expectsPayload:D}){z(C===Q.size,"blob body must have content length");let F=B[tQ]==="h2";try{if(C!=null&&C!==Q.size)throw new XB;let J=Buffer.from(await Q.arrayBuffer());if(F)A.cork(),A.write(J),A.uncork();else E.cork(),E.write(`${g}content-length: ${C}\r
\r
`,"latin1"),E.write(J),E.uncork();if(I.onBodySent(J),I.onRequestSent(),!D)E[mA]=!0;RQ(B)}catch(J){$.destroy(F?A:E,J)}}async function Jg({h2stream:A,body:Q,client:B,request:I,socket:E,contentLength:C,header:g,expectsPayload:D}){z(C!==0||B[gA]===0,"iterator body cannot be pipelined");let F=null;function J(){if(F){let U=F;F=null,U()}}let Y=()=>new Promise((U,G)=>{if(z(F===null),E[xA])G(E[xA]);else F=U});if(B[tQ]==="h2"){A.on("close",J).on("drain",J);try{for await(let U of Q){if(E[xA])throw E[xA];let G=A.write(U);if(I.onBodySent(U),!G)await Y()}}catch(U){A.destroy(U)}finally{I.onRequestSent(),A.end(),A.off("close",J).off("drain",J)}return}E.on("close",J).on("drain",J);let N=new EF({socket:E,request:I,contentLength:C,client:B,expectsPayload:D,header:g});try{for await(let U of Q){if(E[xA])throw E[xA];if(!N.write(U))await Y()}N.end()}catch(U){N.destroy(U)}finally{E.off("close",J).off("drain",J)}}class EF{constructor({socket:A,request:Q,contentLength:B,client:I,expectsPayload:E,header:C}){this.socket=A,this.request=Q,this.contentLength=B,this.client=I,this.bytesWritten=0,this.expectsPayload=E,this.header=C,A[KB]=!0}write(A){let{socket:Q,request:B,contentLength:I,client:E,bytesWritten:C,expectsPayload:g,header:D}=this;if(Q[xA])throw Q[xA];if(Q.destroyed)return!1;let F=Buffer.byteLength(A);if(!F)return!0;if(I!==null&&C+F>I){if(E[uE])throw new XB;process.emitWarning(new XB)}if(Q.cork(),C===0){if(!g)Q[mA]=!0;if(I===null)Q.write(`${D}transfer-encoding: chunked\r
`,"latin1");else Q.write(`${D}content-length: ${I}\r
\r
`,"latin1")}if(I===null)Q.write(`\r
${F.toString(16)}\r
`,"latin1");this.bytesWritten+=F;let J=Q.write(A);if(Q.uncork(),B.onBodySent(A),!J){if(Q[FA].timeout&&Q[FA].timeoutType===bI){if(Q[FA].timeout.refresh)Q[FA].timeout.refresh()}}return J}end(){let{socket:A,contentLength:Q,client:B,bytesWritten:I,expectsPayload:E,header:C,request:g}=this;if(g.onRequestSent(),A[KB]=!1,A[xA])throw A[xA];if(A.destroyed)return;if(I===0)if(E)A.write(`${C}content-length: 0\r
\r
`,"latin1");else A.write(`${C}\r
`,"latin1");else if(Q===null)A.write(`\r
0\r
\r
`,"latin1");if(Q!==null&&I!==Q)if(B[uE])throw new XB;else process.emitWarning(new XB);if(A[FA].timeout&&A[FA].timeoutType===bI){if(A[FA].timeout.refresh)A[FA].timeout.refresh()}RQ(B)}destroy(A){let{socket:Q,client:B}=this;if(Q[KB]=!1,A)z(B[gA]<=1,"pipeline should only contain this request"),$.destroy(Q,A)}}function uA(A,Q,B){try{Q.onError(B),z(Q.aborted)}catch(I){A.emit("error",I)}}UG.exports=IG});var RG=M((g$,GG)=>{class CF{constructor(){this.bottom=0,this.top=0,this.list=Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(A){this.list[this.top]=A,this.top=this.top+1&2047}shift(){let A=this.list[this.bottom];if(A===void 0)return null;return this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,A}}GG.exports=class{constructor(){this.head=this.tail=new CF}isEmpty(){return this.head.isEmpty()}push(Q){if(this.head.isFull())this.head=this.head.next=new CF;this.head.push(Q)}shift(){let Q=this.tail,B=Q.shift();if(Q.isEmpty()&&Q.next!==null)this.tail=Q.next;return B}}});var MG=M((D$,wG)=>{var{kFree:x1,kConnected:q1,kPending:T1,kQueued:_1,kRunning:O1,kSize:y1}=e(),EI=Symbol("pool");class VG{constructor(A){this[EI]=A}get connected(){return this[EI][q1]}get free(){return this[EI][x1]}get pending(){return this[EI][T1]}get queued(){return this[EI][_1]}get running(){return this[EI][O1]}get size(){return this[EI][y1]}}wG.exports=VG});var JF=M((F$,xG)=>{var h1=hE(),P1=RG(),{kConnected:gF,kSize:WG,kRunning:LG,kPending:ZG,kQueued:lE,kBusy:k1,kFree:v1,kUrl:f1,kClose:b1,kDestroy:m1,kDispatch:u1}=e(),c1=MG(),eA=Symbol("clients"),cA=Symbol("needDrain"),pE=Symbol("queue"),DF=Symbol("closed resolve"),FF=Symbol("onDrain"),XG=Symbol("onConnect"),KG=Symbol("onDisconnect"),HG=Symbol("onConnectionError"),YF=Symbol("get dispatcher"),SG=Symbol("add client"),jG=Symbol("remove client"),zG=Symbol("stats");class $G extends h1{constructor(){super();this[pE]=new P1,this[eA]=[],this[lE]=0;let A=this;this[FF]=function(B,I){let E=A[pE],C=!1;while(!C){let g=E.shift();if(!g)break;A[lE]--,C=!this.dispatch(g.opts,g.handler)}if(this[cA]=C,!this[cA]&&A[cA])A[cA]=!1,A.emit("drain",B,[A,...I]);if(A[DF]&&E.isEmpty())Promise.all(A[eA].map((g)=>g.close())).then(A[DF])},this[XG]=(Q,B)=>{A.emit("connect",Q,[A,...B])},this[KG]=(Q,B,I)=>{A.emit("disconnect",Q,[A,...B],I)},this[HG]=(Q,B,I)=>{A.emit("connectionError",Q,[A,...B],I)},this[zG]=new c1(this)}get[k1](){return this[cA]}get[gF](){return this[eA].filter((A)=>A[gF]).length}get[v1](){return this[eA].filter((A)=>A[gF]&&!A[cA]).length}get[ZG](){let A=this[lE];for(let{[ZG]:Q}of this[eA])A+=Q;return A}get[LG](){let A=0;for(let{[LG]:Q}of this[eA])A+=Q;return A}get[WG](){let A=this[lE];for(let{[WG]:Q}of this[eA])A+=Q;return A}get stats(){return this[zG]}async[b1](){if(this[pE].isEmpty())return Promise.all(this[eA].map((A)=>A.close()));else return new Promise((A)=>{this[DF]=A})}async[m1](A){while(!0){let Q=this[pE].shift();if(!Q)break;Q.handler.onError(A)}return Promise.all(this[eA].map((Q)=>Q.destroy(A)))}[u1](A,Q){let B=this[YF]();if(!B)this[cA]=!0,this[pE].push({opts:A,handler:Q}),this[lE]++;else if(!B.dispatch(A,Q))B[cA]=!0,this[cA]=!this[YF]();return!this[cA]}[SG](A){if(A.on("drain",this[FF]).on("connect",this[XG]).on("disconnect",this[KG]).on("connectionError",this[HG]),this[eA].push(A),this[cA])process.nextTick(()=>{if(this[cA])this[FF](A[f1],[this,A])});return this}[jG](A){A.close(()=>{let Q=this[eA].indexOf(A);if(Q!==-1)this[eA].splice(Q,1)}),this[cA]=this[eA].some((Q)=>!Q[cA]&&Q.closed!==!0&&Q.destroyed!==!0)}}xG.exports={PoolBase:$G,kClients:eA,kNeedDrain:cA,kAddClient:SG,kRemoveClient:jG,kGetDispatcher:YF}});var mI=M((Y$,OG)=>{var{PoolBase:d1,kClients:Ug,kNeedDrain:l1,kAddClient:p1,kGetDispatcher:i1}=JF(),n1=dE(),{InvalidArgumentError:NF}=n(),UF=f(),{kUrl:qG,kInterceptors:o1}=e(),a1=PE(),GF=Symbol("options"),RF=Symbol("connections"),TG=Symbol("factory");function s1(A,Q){return new n1(A,Q)}class _G extends d1{constructor(A,{connections:Q,factory:B=s1,connect:I,connectTimeout:E,tls:C,maxCachedSessions:g,socketPath:D,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:J,allowH2:Y,...N}={}){super();if(Q!=null&&(!Number.isFinite(Q)||Q<0))throw new NF("invalid connections");if(typeof B!=="function")throw new NF("factory must be a function.");if(I!=null&&typeof I!=="function"&&typeof I!=="object")throw new NF("connect must be a function or an object");if(typeof I!=="function")I=a1({...C,maxCachedSessions:g,allowH2:Y,socketPath:D,timeout:E,...UF.nodeHasAutoSelectFamily&&F?{autoSelectFamily:F,autoSelectFamilyAttemptTimeout:J}:void 0,...I});this[o1]=N.interceptors&&N.interceptors.Pool&&Array.isArray(N.interceptors.Pool)?N.interceptors.Pool:[],this[RF]=Q||null,this[qG]=UF.parseOrigin(A),this[GF]={...UF.deepClone(N),connect:I,allowH2:Y},this[GF].interceptors=N.interceptors?{...N.interceptors}:void 0,this[TG]=B,this.on("connectionError",(U,G,R)=>{for(let V of G){let w=this[Ug].indexOf(V);if(w!==-1)this[Ug].splice(w,1)}})}[i1](){let A=this[Ug] Line truncated
${B.count} ${B.noun} ${B.is} pending:
${A.format(Q)}
`.trim())}}HR.exports=KR});var _R=M((_$,TR)=>{var{kProxy:r8,kClose:t8,kDestroy:e8,kInterceptors:A5}=e(),{URL:SR}=require("url"),jR=nE(),Q5=mI(),B5=hE(),{InvalidArgumentError:eE,RequestAbortedError:I5}=n(),$R=PE(),rE=Symbol("proxy agent"),Tg=Symbol("proxy client"),tE=Symbol("proxy headers"),dF=Symbol("request tls settings"),E5=Symbol("proxy tls settings"),xR=Symbol("connect endpoint function");function C5(A){return A==="https:"?443:80}function g5(A){if(typeof A==="string")A={uri:A};if(!A||!A.uri)throw new eE("Proxy opts.uri is mandatory");return{uri:A.uri,protocol:A.protocol||"https"}}function D5(A,Q){return new Q5(A,Q)}class qR extends B5{constructor(A){super(A);if(this[r8]=g5(A),this[rE]=new jR(A),this[A5]=A.interceptors&&A.interceptors.ProxyAgent&&Array.isArray(A.interceptors.ProxyAgent)?A.interceptors.ProxyAgent:[],typeof A==="string")A={uri:A};if(!A||!A.uri)throw new eE("Proxy opts.uri is mandatory");let{clientFactory:Q=D5}=A;if(typeof Q!=="function")throw new eE("Proxy opts.clientFactory must be a function.");this[dF]=A.requestTls,this[E5]=A.proxyTls,this[tE]=A.headers||{};let B=new SR(A.uri),{origin:I,port:E,host:C,username:g,password:D}=B;if(A.auth&&A.token)throw new eE("opts.auth cannot be used in combination with opts.token");else if(A.auth)this[tE]["proxy-authorization"]=`Basic ${A.auth}`;else if(A.token)this[tE]["proxy-authorization"]=A.token;else if(g&&D)this[tE]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(g)}:${decodeURIComponent(D)}`).toString("base64")}`;let F=$R({...A.proxyTls});this[xR]=$R({...A.requestTls}),this[Tg]=Q(B,{connect:F}),this[rE]=new jR({...A,connect:async(J,Y)=>{let N=J.host;if(!J.port)N+=`:${C5(J.protocol)}`;try{let{socket:U,statusCode:G}=await this[Tg].connect({origin:I,port:E,path:N,signal:J.signal,headers:{...this[tE],host:C}});if(G!==200)U.on("error",()=>{}).destroy(),Y(new I5(`Proxy response (${G}) !== 200 when HTTP Tunneling`));if(J.protocol!=="https:"){Y(null,U);return}let R;if(this[dF])R=this[dF].servername;else R=J.servername;this[xR]({...J,servername:R,httpSocket:U},Y)}catch(U){Y(U)}}})}dispatch(A,Q){let{host:B}=new SR(A.origin),I=F5(A.headers);return Y5(I),this[rE].dispatch({...A,headers:{...I,host:B}},Q)}async[t8](){await this[rE].close(),await this[Tg].close()}async[e8](){await this[rE].destroy(),await this[Tg].destroy()}}function F5(A){if(Array.isArray(A)){let Q={};for(let B=0;B<A.length;B+=2)Q[A[B]]=A[B+1];return Q}return A}function Y5(A){if(A&&Object.keys(A).find((B)=>B.toLowerCase()==="proxy-authorization"))throw new eE("Proxy-Authorization should be sent in ProxyAgent constructor")}TR.exports=qR});var kR=M((O$,PR)=>{var JI=require("assert"),{kRetryHandlerDefaultRetry:OR}=e(),{RequestRetryError:_g}=n(),{isDisturbed:yR,parseHeaders:J5,parseRangeHeader:hR}=f();function N5(A){let Q=Date.now();return new Date(A).getTime()-Q}class lF{constructor(A,Q){let{retryOptions:B,...I}=A,{retry:E,maxRetries:C,maxTimeout:g,minTimeout:D,timeoutFactor:F,methods:J,errorCodes:Y,retryAfter:N,statusCodes:U}=B??{};this.dispatch=Q.dispatch,this.handler=Q.handler,this.opts=I,this.abort=null,this.aborted=!1,this.retryOpts={retry:E??lF[OR],retryAfter:N??!0,maxTimeout:g??30000,timeout:D??500,timeoutFactor:F??2,maxRetries:C??5,methods:J??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:U??[500,502,503,504,429],errorCodes:Y??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect((G)=>{if(this.aborted=!0,this.abort)this.abort(G);else this.reason=G})}onRequestSent(){if(this.handler.onRequestSent)this.handler.onRequestSent()}onUpgrade(A,Q,B){if(this.handler.onUpgrade)this.handler.onUpgrade(A,Q,B)}onConnect(A){if(this.aborted)A(this.reason);else this.abort=A}onBodySent(A){if(this.handler.onBodySent)return this.handler.onBodySent(A)}static[OR](A,{state:Q,opts:B},I){let{statusCode:E,code:C,headers:g}=A,{method:D,retryOptions:F}=B,{maxRetries:J,timeout:Y,maxTimeout:N,timeoutFactor:U,statusCodes:G,errorCodes:R,methods:V}=F,{counter:w,currentTimeout:W}=Q;if(W=W!=null&&W>0?W:Y,C&&C!=="UND_ERR_REQ_RETRY"&&C!=="UND_ERR_SOCKET"&&!R.includes(C)){I(A);return}if(Array.isArray(V)&&!V.includes(D)){I(A);return}if(E!=null&&Array.isArray(G)&&!G.includes(E)){I(A);return}if(w>J){I(A);return}let Z=g!=null&&g["retry-after"];if(Z)Z=Number(Z),Z=isNaN(Z)?N5(Z):Z*1000;let L=Z>0?Math.min(Z,N):Math.min(W*U**w,N);Q.currentTimeout=L,setTimeout(()=>I(null),L)}onHeaders(A,Q,B,I){let E=J5(Q);if(this.retryCount+=1,A>=300)return this.abort(new _g("Request failed",A,{headers:E,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,A!==206)return!0;let g=hR(E["content-range"]);if(!g)return this.abort(new _g("Content-Range mismatch",A,{headers:E,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==E.etag)return this.abort(new _g("ETag mismatch",A,{headers:E,count:this.retryCount})),!1;let{start:D,size:F,end:J=F}=g;return JI(this. Line truncated
Error Code : ${C.statusCode}
Error Message: ${C.message}`)})).result)===null||Q===void 0?void 0:Q.value;if(!E)throw Error("Response json body do not have ID Token field");return E})}static getIDToken(A){return ew(this,void 0,void 0,function*(){try{let Q=YE.getIDTokenUrl();if(A){let I=encodeURIComponent(A);Q=`${Q}&audience=${I}`}(0,AM.debug)(`ID token url is ${Q}`);let B=yield YE.getCall(Q);return(0,AM.setSecret)(B),B}catch(Q){throw Error(`Error message: ${Q.message}`)}})}}JE.OidcClient=YE});var TY=M((EQ)=>{var xY=EQ&&EQ.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(g){g(C)})}return new(B||(B=Promise))(function(C,g){function D(Y){try{J(I.next(Y))}catch(N){g(N)}}function F(Y){try{J(I.throw(Y))}catch(N){g(N)}}function J(Y){Y.done?C(Y.value):E(Y.value).then(D,F)}J((I=I.apply(A,Q||[])).next())})};Object.defineProperty(EQ,"__esModule",{value:!0});EQ.summary=EQ.markdownSummary=EQ.SUMMARY_DOCS_URL=EQ.SUMMARY_ENV_VAR=void 0;var e3=require("os"),qY=require("fs"),{access:AS,appendFile:QS,writeFile:BS}=qY.promises;EQ.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";EQ.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class BM{constructor(){this._buffer=""}filePath(){return xY(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let A=process.env[EQ.SUMMARY_ENV_VAR];if(!A)throw Error(`Unable to find environment variable for $${EQ.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield AS(A,qY.constants.R_OK|qY.constants.W_OK)}catch(Q){throw Error(`Unable to access summary file: '${A}'. Check if the file has correct read/write permissions.`)}return this._filePath=A,this._filePath})}wrap(A,Q,B={}){let I=Object.entries(B).map(([E,C])=>` ${E}="${C}"`).join("");if(!Q)return`<${A}${I}>`;return`<${A}${I}>${Q}</${A}>`}write(A){return xY(this,void 0,void 0,function*(){let Q=!!(A===null||A===void 0?void 0:A.overwrite),B=yield this.filePath();return yield(Q?BS:QS)(B,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return xY(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(A,Q=!1){return this._buffer+=A,Q?this.addEOL():this}addEOL(){return this.addRaw(e3.EOL)}addCodeBlock(A,Q){let B=Object.assign({},Q&&{lang:Q}),I=this.wrap("pre",this.wrap("code",A),B);return this.addRaw(I).addEOL()}addList(A,Q=!1){let B=Q?"ol":"ul",I=A.map((C)=>this.wrap("li",C)).join(""),E=this.wrap(B,I);return this.addRaw(E).addEOL()}addTable(A){let Q=A.map((I)=>{let E=I.map((C)=>{if(typeof C==="string")return this.wrap("td",C);let{header:g,data:D,colspan:F,rowspan:J}=C,Y=g?"th":"td",N=Object.assign(Object.assign({},F&&{colspan:F}),J&&{rowspan:J});return this.wrap(Y,D,N)}).join("");return this.wrap("tr",E)}).join(""),B=this.wrap("table",Q);return this.addRaw(B).addEOL()}addDetails(A,Q){let B=this.wrap("details",this.wrap("summary",A)+Q);return this.addRaw(B).addEOL()}addImage(A,Q,B){let{width:I,height:E}=B||{},C=Object.assign(Object.assign({},I&&{width:I}),E&&{height:E}),g=this.wrap("img",null,Object.assign({src:A,alt:Q},C));return this.addRaw(g).addEOL()}addHeading(A,Q){let B=`h${Q}`,I=["h1","h2","h3","h4","h5","h6"].includes(B)?B:"h1",E=this.wrap(I,A);return this.addRaw(E).addEOL()}addSeparator(){let A=this.wrap("hr",null);return this.addRaw(A).addEOL()}addBreak(){let A=this.wrap("br",null);return this.addRaw(A).addEOL()}addQuote(A,Q){let B=Object.assign({},Q&&{cite:Q}),I=this.wrap("blockquote",A,B);return this.addRaw(I).addEOL()}addLink(A,Q){let B=this.wrap("a",A,{href:Q});return this.addRaw(B).addEOL()}}var IM=new BM;EQ.markdownSummary=IM;EQ.summary=IM});var EM=M((CQ)=>{var IS=CQ&&CQ.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),ES=CQ&&CQ.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),CS=CQ&&CQ.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))IS(Q,A,B)}return ES(Q,A),Q};Object.defineProperty(CQ,"__esModule",{value:!0});CQ.toPlatformPath=CQ.toWin32Path=CQ.toPosixPath=void 0;var gS=CS(require("path"));function DS(A){return A.replace(/[\\]/g,"/")}CQ.toPosixPath=DS;function FS(A){return A.replace(/[/]/g,"\\")}CQ.toWin32Path=FS;function YS(A){return A.replace(/[/\\]/g,gS.sep)}CQ.toPlatformPath=YS});var OY=M((j)=>{var JS=j&&j.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;Object.defineProperty(A,I,{enumerable:!0,get:function(){return Q[B]}})}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),NS=j&&j.__setModuleDefaultLine truncated
`);return{name:Q,version:B}});b.platform=SM.default.platform();b.arch=SM.default.arch();b.isWindows=b.platform==="win32";b.isMacOS=b.platform==="darwin";b.isLinux=b.platform==="linux";function cS(){return W0(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield b.isWindows?bS():b.isMacOS?mS():uS()),{platform:b.platform,arch:b.arch,isWindows:b.isWindows,isMacOS:b.isMacOS,isLinux:b.isLinux})})}b.getDetails=cS});var G0=M((S)=>{var dS=S&&S.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),lS=S&&S.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),kY=S&&S.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))dS(Q,A,B)}return lS(Q,A),Q},$M=S&&S.__awaiter||function(A,Q,B,I){function E(C){return C instanceof B?C:new B(function(g){g(C)})}return new(B||(B=Promise))(function(C,g){function D(Y){try{J(I.next(Y))}catch(N){g(N)}}function F(Y){try{J(I.throw(Y))}catch(N){g(N)}}function J(Y){Y.done?C(Y.value):E(Y.value).then(D,F)}J((I=I.apply(A,Q||[])).next())})};Object.defineProperty(S,"__esModule",{value:!0});S.platform=S.toPlatformPath=S.toWin32Path=S.toPosixPath=S.markdownSummary=S.summary=S.getIDToken=S.getState=S.saveState=S.group=S.endGroup=S.startGroup=S.info=S.notice=S.warning=S.error=S.debug=S.isDebug=S.setFailed=S.setCommandEcho=S.setOutput=S.getBooleanInput=S.getMultilineInput=S.getInput=S.addPath=S.setSecret=S.exportVariable=S.ExitCode=void 0;var _Q=SJ(),wI=xJ(),UE=yC(),xM=kY(require("os")),pS=kY(require("path")),iS=QM(),PY;(function(A){A[A.Success=0]="Success",A[A.Failure=1]="Failure"})(PY||(S.ExitCode=PY={}));function nS(A,Q){let B=(0,UE.toCommandValue)(Q);if(process.env[A]=B,process.env.GITHUB_ENV||"")return(0,wI.issueFileCommand)("ENV",(0,wI.prepareKeyValueMessage)(A,Q));(0,_Q.issueCommand)("set-env",{name:A},B)}S.exportVariable=nS;function oS(A){(0,_Q.issueCommand)("add-mask",{},A)}S.setSecret=oS;function aS(A){if(process.env.GITHUB_PATH||"")(0,wI.issueFileCommand)("PATH",A);else(0,_Q.issueCommand)("add-path",{},A);process.env.PATH=`${A}${pS.delimiter}${process.env.PATH}`}S.addPath=aS;function vY(A,Q){let B=process.env[`INPUT_${A.replace(/ /g,"_").toUpperCase()}`]||"";if(Q&&Q.required&&!B)throw Error(`Input required and not supplied: ${A}`);if(Q&&Q.trimWhitespace===!1)return B;return B.trim()}S.getInput=vY;function sS(A,Q){let B=vY(A,Q).split(`
`).filter((I)=>I!=="");if(Q&&Q.trimWhitespace===!1)return B;return B.map((I)=>I.trim())}S.getMultilineInput=sS;function rS(A,Q){let B=["true","True","TRUE"],I=["false","False","FALSE"],E=vY(A,Q);if(B.includes(E))return!0;if(I.includes(E))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${A}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}S.getBooleanInput=rS;function tS(A,Q){if(process.env.GITHUB_OUTPUT||"")return(0,wI.issueFileCommand)("OUTPUT",(0,wI.prepareKeyValueMessage)(A,Q));process.stdout.write(xM.EOL),(0,_Q.issueCommand)("set-output",{name:A},(0,UE.toCommandValue)(Q))}S.setOutput=tS;function eS(A){(0,_Q.issue)("echo",A?"on":"off")}S.setCommandEcho=eS;function A6(A){process.exitCode=PY.Failure,qM(A)}S.setFailed=A6;function Q6(){return process.env.RUNNER_DEBUG==="1"}S.isDebug=Q6;function B6(A){(0,_Q.issueCommand)("debug",{},A)}S.debug=B6;function qM(A,Q={}){(0,_Q.issueCommand)("error",(0,UE.toCommandProperties)(Q),A instanceof Error?A.toString():A)}S.error=qM;function I6(A,Q={}){(0,_Q.issueCommand)("warning",(0,UE.toCommandProperties)(Q),A instanceof Error?A.toString():A)}S.warning=I6;function E6(A,Q={}){(0,_Q.issueCommand)("notice",(0,UE.toCommandProperties)(Q),A instanceof Error?A.toString():A)}S.notice=E6;function C6(A){process.stdout.write(A+xM.EOL)}S.info=C6;function TM(A){(0,_Q.issue)("group",A)}S.startGroup=TM;function _M(){(0,_Q.issue)("endgroup")}S.endGroup=_M;function g6(A,Q){return $M(this,void 0,void 0,function*(){TM(A);let B;try{B=yield Q()}finally{_M()}return B})}S.group=g6;function D6(A,Q){if(process.env.GITHUB_STATE||"")return(0,wI.issueFileCommand)("STATE",(0,wI.prepareKeyValueMessage)(A,Q));(0,_Q.issueCommand)("save-state",{name:A},(0,UE.toCommandValue)(Q))}S.saveState=D6;function F6(A){return process.env[`STATE_${A}`]||""}S.getState=F6;function Y6(A){return $M(this,void 0,void 0,function*(){return yield iS.OidcClient.getIDToken(A)})}S.getIDToken=Y6;var J6=TY();Object.defineProperty(S,"summary",{enumerable:!0,get:function(){return J6.summary}});var N6=TY();Object.defineProperty(S,"markdownSummary",{enumerable:!0,get:function(){return N6.markdownSummary}});var fY=EM();Object.defineProperty(S,"toPosixPath",{enumerable:!0,get:function(){return fY.toPosixPath}});Object.defineProperty(S,"toWin32Path",{enumerable:!0,get:function(){return fY.toWin32Path}});Object.defineProperty(S,"toPlatformPath",{enumerable:!0,get:function(){return fY.toPlatformPath}});S.platform=kY(jM())});var kM=M((Wx,PM)=>{PM.exports=hM;hM.sync=G6;var OM=require("fs");function U6(A,Q){var B=Q.pathExt!==void 0?Q.pathExt:process.env.PATHEXT;if(!B)return!0;if(B=B.split(";"),B.indexOf("")!==-1)return!0;for(var I=0;I<B.length;I++){var E=B[I].toLowerCase();if(E&&A.substr(-E.length).toLowerCase()===E)return!0}return!1}function yM(A,Q,B){if(!A.isSymbolicLink()&&!A.isFile())return!1;return U6(Q,B)}function hM(A,Q,B){OM.stat(A,function(I,E){B(I,I?!1:yM(E,A,Q))})}function G6(A,Q){return yM(OM.statSync(A),A,Q)}});var uM=M((Lx,mM)=>{mM.exports=fM;fM.sync=R6;var vM=require("fs");function fM(A,Q,B){vM.stat(A,function(I,E){B(I,I?!1:bM(E,Q))})}function R6(A,Q){return bM(vM.statSync(A),Q)}function bM(A,Q){return A.isFile()&&V6(A,Q)}function V6(A,Q){var{mode:B,uid:I,gid:E}=A,C=Q.uid!==void 0?Q.uid:process.getuid&&process.getuid(),g=Q.gid!==void 0?Q.gid:process.getgid&&process.getgid(),D=parseInt("100",8),F=parseInt("010",8),J=parseInt("001",8),Y=D|F,N=B&J||B&F&&E===g||B&D&&I===C||B&Y&&C===0;return N}});var dM=M((Xx,cM)=>{var Zx=require("fs"),L0;if(process.platform==="win32"||global.TESTING_WINDOWS)L0=kM();else L0=uM();cM.exports=bY;bY.sync=w6;function bY(A,Q,B){if(typeof Q==="function")B=Q,Q={};if(!B){if(typeof Promise!=="function")throw TypeError("callback not provided");return new Promise(function(I,E){bY(A,Q||{},function(C,g){if(C)E(C);else I(g)})})}L0(A,Q||{},function(I,E){if(I){if(I.code==="EACCES"||Q&&Q.ignoreErrors)I=null,E=!1}B(I,E)})}function w6(A,Q){try{return L0.sync(A,Q||{})}catch(B){if(Q&&Q.ignoreErrors||B.code==="EACCES")return!1;else throw B}}});var sM=M((Kx,aM)=>{var GE=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",lM=require("path"),M6=GE?";":":",pM=dM(),iM=(A)=>Object.assign(Error(`not found: ${A}`),{code:"ENOENT"}),nM=(A,Q)=>{let B=Q.colon||M6,I=A.match(/\//)||GE&&A.match(/\\/)?[""]:[...GE?[process.cwd()]:[],...(Q.path||process.env.PATH||"").split(B)],E=GE?Q.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",C=GE?E.split(B):[""];if(GE){if(A.indexOf(".")!==-1&&C[0]!=="")C.unshift("")}return{pathEnv:I,pathExt:C,pathExtExe:E}},oM=(A,Q,B)=>{if(typeof Q==="function")B=Q,Q={};if(!Q)Q={};let{pathEnv:I,pathExt:E,pathExtExe:C}=nM(A,Q),g=[],D=(J)=>new Promise((Y,N)=>{if(J===I.length)return Q.all&&g.length?Y(g):N(iM(A));let U=I[J],G=/^".*"$/.test(U)?U.slice(1,-1):U,R=lM.join(G,A),V=!G&&/^\.[\\\/]/.test(A)?A.slice(0,2)+R:R;Y(F(V,J,0))}),F=(J,Y,N)=>new Promise((U,G)=>{if(N===E.length)return U(D(Y+1));let R=E[N];pM(J+R,{pathExt:C},(V,w)=>{if(!V&&w)if(Q.all)g.push(J+R);else return U(J+R);return U(F(J,Y,N+1))})});return B?D(0).then((J)=>B(null,J),B):D(0)},W6=(A,Q)=>{Q=Q||{};let{pathEnv:B,pathExt:I,pathExtExe:E}=nM(A,Q),C=[];for(let g=0;g<B.length;g++){let D=B[g],F=/^".*"$/.test(D)?D.slice(1,-1):D,J=lM.join(F,A),Y=!F&&/^\.[\\\/]/.test(A)?A.slice(0,2Line truncated
${E}`;Object.assign(L,W),F(L)}else D(W)},R=(V)=>{if(J)C.removeListener("exit",G);else C.removeListener("close",G);Object.assign(V,{pid:C.pid,output:[N,U],stdout:N,stderr:U,status:null,signal:null}),F(V)};if(J)C.once("exit",G);else C.once("close",G);C.once("error",R)});return g.child=C,g}ZW.exports=m6});var XQ=JQ(G0()),HL=JQ(XW()),wJ=JQ(require("node:fs")),MJ=JQ(require("node:path"));var wE=JQ(G0()),KW=JQ(require("node:assert")),HW=JQ(require("node:os")),aY=JQ(require("node:path")),VE=JQ(require("node:process"));function zW(A){return A().catch((Q)=>{wE.setFailed(Q.message||Q),wE.debug(Q.stack||"No stacktrace available")})}function Ox(A,Q){return KW.default(VE.default.env.RUNNER_TOOL_CACHE,"Expected RUNNER_TOOL_CACHE to be defined"),aY.default.join(VE.default.env.RUNNER_TOOL_CACHE,A,Q,HW.default.arch())}function yx(A){let Q=VE.default.env.NODE_PATH||"",B=VE.default.platform==="win32"?";":":",I=Q.split(B);I.push(A),VE.default.env.NODE_PATH=I.join(B),require("node:module").Module._initPaths()}function hx(A){return wE.addPath(aY.default.join(A,"node_modules",".bin"))}var sY=(A,Q,B)=>{let I=A instanceof RegExp?SW(A,B):A,E=Q instanceof RegExp?SW(Q,B):Q,C=I!==null&&E!=null&&u6(I,E,B);return C&&{start:C[0],end:C[1],pre:B.slice(0,C[0]),body:B.slice(C[0]+I.length,C[1]),post:B.slice(C[1]+E.length)}},SW=(A,Q)=>{let B=Q.match(A);return B?B[0]:null},u6=(A,Q,B)=>{let I,E,C,g=void 0,D,F=B.indexOf(A),J=B.indexOf(Q,F+1),Y=F;if(F>=0&&J>0){if(A===Q)return[F,J];I=[],C=B.length;while(Y>=0&&!D){if(Y===F)I.push(Y),F=B.indexOf(A,Y+1);else if(I.length===1){let N=I.pop();if(N!==void 0)D=[N,J]}else{if(E=I.pop(),E!==void 0&&E<C)C=E,g=J;J=B.indexOf(Q,Y+1)}Y=F<J&&F>=0?F:J}if(I.length&&g!==void 0)D=[C,g]}return D};var jW="\x00SLASH"+Math.random()+"\x00",$W="\x00OPEN"+Math.random()+"\x00",tY="\x00CLOSE"+Math.random()+"\x00",xW="\x00COMMA"+Math.random()+"\x00",qW="\x00PERIOD"+Math.random()+"\x00",c6=new RegExp(jW,"g"),d6=new RegExp($W,"g"),l6=new RegExp(tY,"g"),p6=new RegExp(xW,"g"),i6=new RegExp(qW,"g"),n6=/\\\\/g,o6=/\\{/g,a6=/\\}/g,s6=/\\,/g,r6=/\\./g;function rY(A){return!isNaN(A)?parseInt(A,10):A.charCodeAt(0)}function t6(A){return A.replace(n6,jW).replace(o6,$W).replace(a6,tY).replace(s6,xW).replace(r6,qW)}function e6(A){return A.replace(c6,"\\").replace(d6,"{").replace(l6,"}").replace(p6,",").replace(i6,".")}function TW(A){if(!A)return[""];let Q=[],B=sY("{","}",A);if(!B)return A.split(",");let{pre:I,body:E,post:C}=B,g=I.split(",");g[g.length-1]+="{"+E+"}";let D=TW(C);if(C.length)g[g.length-1]+=D.shift(),g.push.apply(g,D);return Q.push.apply(Q,g),Q}function _W(A){if(!A)return[];if(A.slice(0,2)==="{}")A="\\{\\}"+A.slice(2);return RC(t6(A),!0).map(e6)}function A7(A){return"{"+A+"}"}function Q7(A){return/^-?0\d/.test(A)}function B7(A,Q){return A<=Q}function I7(A,Q){return A>=Q}function RC(A,Q){let B=[],I=sY("{","}",A);if(!I)return[A];let E=I.pre,C=I.post.length?RC(I.post,!1):[""];if(/\$$/.test(I.pre))for(let g=0;g<C.length;g++){let D=E+"{"+I.body+"}"+C[g];B.push(D)}else{let g=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(I.body),D=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(I.body),F=g||D,J=I.body.indexOf(",")>=0;if(!F&&!J){if(I.post.match(/,(?!,).*\}/))return A=I.pre+"{"+I.body+tY+I.post,RC(A);return[A]}let Y;if(F)Y=I.body.split(/\.\./);else if(Y=TW(I.body),Y.length===1&&Y[0]!==void 0){if(Y=RC(Y[0],!1).map(A7),Y.length===1)return C.map((U)=>I.pre+Y[0]+U)}let N;if(F&&Y[0]!==void 0&&Y[1]!==void 0){let U=rY(Y[0]),G=rY(Y[1]),R=Math.max(Y[0].length,Y[1].length),V=Y.length===3&&Y[2]!==void 0?Math.abs(rY(Y[2])):1,w=B7;if(G<U)V*=-1,w=I7;let Z=Y.some(Q7);N=[];for(let L=U;w(L,G);L+=V){let H;if(D){if(H=String.fromCharCode(L),H==="\\")H=""}else if(H=String(L),Z){let IA=R-H.length;if(IA>0){let p=Array(IA+1).join("0");if(L<0)H="-"+p+H.slice(1);else H=p+H}}N.push(H)}}else{N=[];for(let U=0;U<Y.length;U++)N.push.apply(N,RC(Y[U],!1))}for(let U=0;U<N.length;U++)for(let G=0;G<C.length;G++){let R=E+N[U]+C[G];if(!Q||F||R)B.push(R)}}return B}var VC=(A)=>{if(typeof A!=="string")throw TypeError("invalid pattern");if(A.length>65536)throw TypeError("pattern is too long")};var E7={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},wC=(A)=>A.replace(/[[\]\\-]/g,"\\$&"),C7=(A)=>A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),OW=(A)=>A.join(""),yW=(A,Q)=>{let B=Q;if(A.charAt(B)!=="[")throw Error("not in a brace expression");let I=[],E=[],C=B+1,g=!1,D=!1,F=!1,J=!1,Y=B,N="";A:while(C<A.length){let V=A.charAt(C);if((V==="!"||V==="^")&&C===B+1){J=!0,C++;continue}if(V==="]"&&g&&!F){Y=C+1;break}if(g=!0,V==="\\"){if(!F){F=!0,C++;continue}}if(V==="["&&!F){for(let[w,[W,Z,L]]of Object.entries(E7))if Line truncated
globstar while`,A,N,Q,U,G),this.matchOne(A.slice(N),Q.slice(U),B))return this.debug("globstar found match!",N,D,G),!0;else{if(G==="."||G===".."||!I.dot&&G.charAt(0)==="."){this.debug("dot detected!",A,N,Q,U);break}this.debug("globstar swallow a segment, and continue"),N++}}if(B){if(this.debug(`
>>> no match, partial?`,A,N,Q,U),N===D)return!0}return!1}let R;if(typeof J==="string")R=Y===J,this.debug("string match",J,Y,R);else R=J.test(Y),this.debug("pattern match",J,Y,R);if(!R)return!1}if(C===D&&g===F)return!0;else if(C===D)return B;else if(g===F)return C===D-1&&A[C]==="";else throw Error("wtf?")}braceExpand(){return cW(this.pattern,this.options)}parse(A){VC(A);let Q=this.options;if(A==="**")return _A;if(A==="")return"";let B,I=null;if(B=A.match(K7))I=Q.dot?z7:H7;else if(B=A.match(U7))I=(Q.nocase?Q.dot?w7:V7:Q.dot?R7:G7)(B[1]);else if(B=A.match(S7))I=(Q.nocase?Q.dot?$7:j7:Q.dot?x7:q7)(B);else if(B=A.match(M7))I=Q.dot?L7:W7;else if(B=A.match(Z7))I=X7;let E=TA.fromGlob(A,this.options).toMMPattern();if(I&&typeof E==="object")Reflect.defineProperty(E,"test",{value:I});return E}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let A=this.set;if(!A.length)return this.regexp=!1,this.regexp;let Q=this.options,B=Q.noglobstar?O7:Q.dot?y7:h7,I=new Set(Q.nocase?["i"]:[]),E=A.map((D)=>{let F=D.map((J)=>{if(J instanceof RegExp)for(let Y of J.flags.split(""))I.add(Y);return typeof J==="string"?b7(J):J===_A?_A:J._src});return F.forEach((J,Y)=>{let N=F[Y+1],U=F[Y-1];if(J!==_A||U===_A)return;if(U===void 0)if(N!==void 0&&N!==_A)F[Y+1]="(?:\\/|"+B+"\\/)?"+N;else F[Y]=B;else if(N===void 0)F[Y-1]=U+"(?:\\/|"+B+")?";else if(N!==_A)F[Y-1]=U+"(?:\\/|\\/"+B+"\\/)"+N,F[Y+1]=_A}),F.filter((J)=>J!==_A).join("/")}).join("|"),[C,g]=A.length>1?["(?:",")"]:["",""];if(E="^"+C+E+g+"$",this.negate)E="^(?!"+E+").+$";try{this.regexp=new RegExp(E,[...I].join(""))}catch(D){this.regexp=!1}return this.regexp}slashSplit(A){if(this.preserveMultipleSlashes)return A.split("/");else if(this.isWindows&&/^\/\/[^\/]+/.test(A))return["",...A.split(/\/+/)];else return A.split(/\/+/)}match(A,Q=this.partial){if(this.debug("match",A,this.pattern),this.comment)return!1;if(this.empty)return A==="";if(A==="/"&&Q)return!0;let B=this.options;if(this.isWindows)A=A.split("\\").join("/");let I=this.slashSplit(A);this.debug(this.pattern,"split",I);let E=this.set;this.debug(this.pattern,"set",E);let C=I[I.length-1];if(!C)for(let g=I.length-2;!C&&g>=0;g--)C=I[g];for(let g=0;g<E.length;g++){let D=E[g],F=I;if(B.matchBase&&D.length===1)F=[C];if(this.matchOne(F,D,Q)){if(B.flipNegate)return!0;return!this.negate}}if(B.flipNegate)return!1;return this.negate}static defaults(A){return iA.defaults(A).Minimatch}}iA.AST=TA;iA.Minimatch=yQ;iA.escape=ME;iA.unescape=uQ;var wL=require("node:url");var m7=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,lW=new Set,AJ=typeof process==="object"&&!!process?process:{},pW=(A,Q,B,I)=>{typeof AJ.emitWarning==="function"?AJ.emitWarning(A,Q,B,I):console.error(`[${B}] ${Q}: ${A}`)},X0=globalThis.AbortController,dW=globalThis.AbortSignal;if(typeof X0>"u"){dW=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(I,E){this._onabort.push(E)}},X0=class{constructor(){Q()}signal=new dW;abort(I){if(this.signal.aborted)return;this.signal.reason=I,this.signal.aborted=!0;for(let E of this.signal._onabort)E(I);this.signal.onabort?.(I)}};let A=AJ.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",Q=()=>{if(!A)return;A=!1,pW("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",Q)}}var u7=(A)=>!lW.has(A),Qq=Symbol("type"),nB=(A)=>A&&A===Math.floor(A)&&A>0&&isFinite(A),iW=(A)=>!nB(A)?null:A<=Math.pow(2,8)?Uint8Array:A<=Math.pow(2,16)?Uint16Array:A<=Math.pow(2,32)?Uint32Array:A<=Number.MAX_SAFE_INTEGER?MC:null;class MC extends Array{constructor(A){super(A);this.fill(0)}}class WE{heap;length;static#A=!1;static create(A){let Q=iW(A);if(!Q)return[];WE.#A=!0;let B=new WE(A,Q);return WE.#A=!1,B}constructor(A,Q){if(!WE.#A)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new Q(A),this.length=0}push(A){this.heap[this.length++]=A}pop(){return this.heap[--this.length]}}class WC{#A;#B;#I;#Q;#C;#Z;#W;#J;get perf(){return this.#J}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#D;#U;#N;#F;#E;#R;#X;#L;#V;#x;#w;#H;#j;#M;#K;#$;#G;#g;static unsafeExposeInternals(A){return{starts:A.#j,ttls:A.#M,sizes:A.#H,keyMap:A.#N,keyList:A.#F,valList:A.#E,next:A.#R,prev:A.#X,get head(){return A.#L},get tail(){return A.#V},free:A.#x,isBackgroundFetch:(Q)=>A.#Y(Q),backgroundFetch:(Q,B,I,E)=>A.#d(Q,B,I,E),moveToTail:(Q)=>A.#v(Q),indexes:(Q)=>A.#T(Q),rindexes:(Q)=>A.#O(Q),isStale:(Q)=>A.#S(Q)}}get max(){return this.#A}get maxSize(){return th Line truncated
-91560
View File
File diff suppressed because it is too large. Load diff
-1598
View File
File diff suppressed because it is too large. Load diff
+1247
View File
File diff suppressed because it is too large. Load diff
BIN
View File
Binary file not shown.
-106
View File
@@ -1,106 +0,0 @@
<div align="center">
<h1>expo-github-action/command</h1>
<p>Run <a href="https://github.com/expo/expo-cli">Expo CLI</a> or <a href="https://github.com/expo/eas-cli">EAS CLI</a> command by a comment on the PR</p>
</div>
<p align="center">
<a href="https://github.com/expo/expo-github-action/releases" title="Latest release">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=49505A">
<img alt="Latest release" src="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=D1D5DA" />
</picture>
</a>
<a href="https://github.com/expo/expo-github-action/actions" title="Workflow status">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=49505A">
<img alt="Workflow status" src="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=D1D5DA" />
</picture>
</a>
</p>
<p align="center">
<a href="#configuration-options"><b>Usage</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#example-workflows"><b>Examples</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#things-to-know"><b>Caveats</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="https://github.com/expo/expo-github-action/blob/main/CHANGELOG.md"><b>Changelog</b></a>
</p>
<br />
> **Warning**
> This sub action is experimental and might change without notice. Use it at your own risk
## Configuration options
This action is customizable through variables defined in the [`action.yml`](action.yml).
Here is a summary of all the input options you can use.
| variable | default | description |
| ---------------- | -------------- | ------------------------------------------------------------------------- |
| **github-token** | `github.token` | A GitHub token to use when commenting on PR ([read more](#github-tokens)) |
## Example workflows
Before diving into the workflow examples, you should know the basics of GitHub Actions.
You can read more about this in the [GitHub Actions documentation][link-actions].
### Run the `eas build` command via an issue comment
This workflow listens to the `issue_comment` event and run the `eas build` command to start a build at Expo.
```yml
on:
issue_comment:
types: [created, edited]
concurrency:
# Limit the max concurrency to only 1 active action per pull
group: expo-bot-${{ github.event.issue.number }}
cancel-in-progress: true
jobs:
bot:
runs-on: ubuntu-latest
# Only trigger from comments on pulls
if: ${{ github.event.issue.pull_request }}
# Allow the bot to comment on pulls
permissions:
pull-requests: write
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
with:
# Checkout the repo on the pull
ref: refs/pull/${{ github.event.issue.number }}/merge
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: 🏗 Setup Expo
uses: expo/expo-github-action@v8
with:
eas-version: latest
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install
- name: 🤖 Run expo bot
uses: expo/expo-github-action/command@v8
```
## Things to know
### GitHub tokens
When using the GitHub API, you always need to be authenticated.
This action tries to auto-authenticate using the [Automatic token authentication][link-gha-token] from GitHub.
You can overwrite the token by adding the `GITHUB_TOKEN` environment variable, or add the **github-token** input.
[link-actions]: https://help.github.com/en/categories/automating-your-workflow-with-github-actions
[link-gha-token]: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
-15
View File
@@ -1,15 +0,0 @@
---
name: Expo GitHub Action - Command
author: Expo
description: Run Expo CLI/EAS CLI command when a comment is added to a GitHub Pull Request.
branding:
icon: message-circle
color: gray-dark
runs:
using: node20
main: ../build/command/index.js
inputs:
github-token:
description: GitHub access token to comment on PRs
required: false
default: ${{ github.token }}
+24
View File
@@ -0,0 +1,24 @@
import { defineConfig, globalIgnores } from 'eslint/config';
import universeNodeConfig from 'eslint-config-universe/flat/node.js';
export default defineConfig([
globalIgnores(['**/build/', '**/node_modules/']),
universeNodeConfig,
{
rules: {
'n/prefer-node-protocol': [
'error',
{
version: '>=24.0.0',
},
],
'sort-imports': [
'error',
{
ignoreDeclarationSort: true,
ignoreMemberSort: false,
},
],
},
},
]);
+32
View File
@@ -0,0 +1,32 @@
---
name: Expo GitHub Action - Fingerprint Query Artifact
author: Expo
description: Query artifacts from fingerprint database
branding:
icon: smartphone
color: gray-dark
runs:
using: node20
main: ../build/fingerprint-query-artifact.js
inputs:
fingerprint-hash:
description: The fingerprint hash to query
required: true
platform:
description: The platform for the artifact (android | ios)
required: true
packager:
description: The package manager used to install the fingerprint tools
default: yarn
fingerprint-db-cache-key:
description: A cache key to use for loading the fingerprint database
required: false
default: fingerprint-db
outputs:
artifact-id:
description: The GitHub artifact ID if found, empty otherwise
artifact-url:
description: The GitHub artifact URL if found, empty otherwise
run-id:
description: The workflow run ID if found, empty otherwise
+36
View File
@@ -0,0 +1,36 @@
---
name: Expo GitHub Action - Fingerprint Update Artifact
author: Expo
description: Update artifact metadata in fingerprint database
branding:
icon: smartphone
color: gray-dark
runs:
using: node20
main: ../build/fingerprint-update-artifact.js
inputs:
current-git-commit:
description: The Git hash for the current commit
required: true
current-fingerprint:
description: The fingerprint of the current commit
required: true
platform:
description: The platform for the artifact (android | ios)
required: true
artifact-id:
description: The GitHub artifact ID
required: true
artifact-url:
description: The GitHub artifact URL
required: true
artifact-digest:
description: The GitHub artifact digest (SHA-256)
required: true
packager:
description: The package manager used to install the fingerprint tools
default: yarn
fingerprint-db-cache-key:
description: A cache key to use for saving the fingerprint database
required: false
default: fingerprint-db
+35 -26
View File
@@ -1,19 +1,19 @@
<div align="center">
<h1>fingerprint</h1>
<p>Checking project fingerprinting for pull requests using <a href="https://www.npmjs.com/package/@expo/fingerprint"><code>@expo/fingerprint</code></a></p>
<h1>expo/actions/fingerprint</h1>
<p>Check project fingerprinting for pull requests using <a href="https://www.npmjs.com/package/@expo/fingerprint"><code>@expo/fingerprint</code></a></p>
</div>
<p align="center">
<a href="https://github.com/expo/expo-github-action/releases" title="Latest release">
<a href="https://github.com/expo/actions/releases" title="Latest release">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=49505A">
<img alt="Latest release" src="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=D1D5DA" />
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/package-json/v/expo/actions?style=flat-square&color=0366D6&labelColor=49505A">
<img alt="Latest release" src="https://img.shields.io/github/package-json/v/expo/actions?style=flat-square&color=0366D6&labelColor=D1D5DA" />
</picture>
</a>
<a href="https://github.com/expo/expo-github-action/actions" title="Workflow status">
<a href="https://github.com/expo/actions/actions" title="Workflow status">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=49505A">
<img alt="Workflow status" src="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=D1D5DA" />
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/expo/actions/test.yml?branch=main&style=flat-square&labelColor=49505A">
<img alt="Workflow status" src="https://img.shields.io/github/actions/workflow/status/expo/actions/test.yml?branch=main&style=flat-square&labelColor=D1D5DA" />
</picture>
</a>
</p>
@@ -27,7 +27,7 @@
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#caveats"><b>Caveats</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="https://github.com/expo/expo-github-action/blob/main/CHANGELOG.md"><b>Changelog</b></a>
<a href="https://github.com/expo/actions/blob/main/CHANGELOG.md"><b>Changelog</b></a>
</p>
<br />
@@ -37,9 +37,9 @@
## Overview
`fingerprint` is a GitHub Action that checks project fingerprinting for pull requests using [`@expo/fingerprint`](https://www.npmjs.com/package/@expo/fingerprint). When a pull request is updated, you can use this action to check the fingerprint integrity. If a pull request is fingerprint compatible, it means there are no changes from native code and be Over-The-Air updates compatible. Otherwise, if fingerprint changed, it means the project has native code changes.
`fingerprint` is a GitHub Action that computes and compares project fingerprinting for pull requests, using [`@expo/fingerprint`](https://www.npmjs.com/package/@expo/fingerprint). When a pull request is updated, if it is fingerprint compatible then this means there are no changes from native code and be Over-The-Air updates compatible. Otherwise, if the fingerprint changed, it means the project has native code changes and a new native build may be required.
This action is designed to be used in conjunction with the `@expo/fingerprint` package, which generates a unique fingerprint for each pull request based on the contents of the code. By using fingerprinting, this action can determine if a pull request has already been built, and reuse the existing build instead of creating a new one.
By using fingerprinting, this action can determine if a pull request has already been built, and reuse the existing build instead of creating a new one.
## Usage
@@ -61,12 +61,12 @@ jobs:
permissions:
# REQUIRED: Allow comments of PRs
pull-requests: write # Allow comments on PRs
# REQUIRED: Allow updating fingerprint in acton caches
# REQUIRED: Allow updating fingerprint in action caches
actions: write
steps:
- name: Check fingerprint
uses: expo/expo-github-action/fingerprint@main
uses: expo/actions/fingerprint@main
```
### Configuration options
@@ -74,14 +74,17 @@ jobs:
This action is customizable through variables defined in the [`action.yml`](action.yml).
Here is a summary of all the input options you can use.
| variable | default | description |
| ---------------------------------- | ---------------- | ----------------------------------------------------------------------- |
| **working-directory** | - | The relative directory of your Expo app |
| **packager** | `yarn` | The package manager used to install the fingerprint tools |
| **github-token** | `github.token` | GitHub token to use when commenting on PR ([read more](#github-tokens)) |
| **fingerprint-version** | `latest` | `@expo/fingerprint` version to install |
| **fingerprint-installation-cache** | `true` | If the `@expo/fingerprint` should be cached to speed up installation |
| **fingerprint-db-cache-key** | `fingerprint-db` | A cache key to use for saving the fingerprint database |
| variable | default | description |
| ---------------------------------- | ---------------- | ------------------------------------------------------------------------------------------- |
| **working-directory** | - | The relative directory of your Expo app |
| **packager** | `yarn` | The package manager used to install the fingerprint tools |
| **github-token** | `github.token` | GitHub token to use when commenting on PR ([read more](#github-tokens)) |
| **fingerprint-version** | `latest` | `@expo/fingerprint` version to install |
| **fingerprint-installation-cache** | `true` | If the `@expo/fingerprint` should be cached to speed up installation |
| **fingerprint-db-cache-key** | `fingerprint-db` | A cache key to use for saving the fingerprint database |
| **previous-git-commit** | - | The Git hash for the base commit |
| **current-git-commit** | - | The Git hash for the current commit |
| **saving-db-branch** | - | The branch for saving the fingerprint database. Defaults to the repository's default branch |
And the action will generate these [outputs](#available-outputs) for other actions to do something based on current project fingerprint
@@ -89,9 +92,13 @@ And the action will generate these [outputs](#available-outputs) for other actio
In case you want to reuse this action for other purpose, this action will set the following action outputs.
| output name | description |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **fingerprint-diff** | The diff between the current and the previous fingerprint. It is a JSON array of fingerprint diff. If the fingerprint does not change in between, the result diff will be an empty array `[]` |
| output name | description |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **previous-fingerprint** | The fingerprint of the base commit if it has been computed previously. May be null if it has not been computed previously. |
| **current-fingerprint** | The fingerprint of the current commit. |
| **previous-git-commit** | The Git hash for the base commit. |
| **current-git-commit** | The Git hash for the current commit. |
| **fingerprint-diff** | The diff between the current and the previous fingerprint. It is a JSON array of fingerprint diff. If the fingerprint does not change in between, the result diff will be an empty array `[]` |
## Example workflows
@@ -115,8 +122,10 @@ jobs:
permissions:
# REQUIRED: Allow comments of PRs
pull-requests: write # Allow comments on PRs
# REQUIRED: Allow updating fingerprint in acton caches
# REQUIRED: Allow updating fingerprint in action caches
actions: write
# OPTIONAL: Allow reading of repo contents for private projects
# contents: read
steps:
- name: 🏗 Setup repo
@@ -133,7 +142,7 @@ jobs:
- name: Check fingerprint
id: fingerprint
uses: expo/expo-github-action/preview-build@main
uses: expo/actions/fingerprint@main
- uses: actions/github-script@v6
if: ${{ github.event_name == 'pull_request' && steps.fingerprint.outputs.fingerprint-diff == '[]' }}
+20 -3
View File
@@ -7,8 +7,8 @@ branding:
color: gray-dark
runs:
using: node20
main: ../build/fingerprint/index.js
post: ../build/fingerprint-post/index.js
main: ../build/fingerprint.js
post: ../build/fingerprint-post.js
post-if: success()
inputs:
packager:
@@ -28,12 +28,29 @@ inputs:
default: latest
fingerprint-installation-cache:
description: If fingerprint should be cached to speed up installation
default: true
default: "true"
fingerprint-db-cache-key:
description: A cache key to use for saving the fingerprint database
required: false
default: fingerprint-db
previous-git-commit:
description: The Git hash for the base commit
required: false
current-git-commit:
description: The Git hash for the current commit
required: false
saving-db-branch:
description: The branch for saving the fingerprint database. Defaults to the repository's default branch
required: false
outputs:
previous-fingerprint:
description: The fingerprint of the previous commit. May be null if it has never previously been computed
current-fingerprint:
description: The fingerprint of the current commit
previous-git-commit:
description: The Git hash for the base commit
current-git-commit:
description: The Git hash for the current commit
fingerprint-diff:
description: The diff between the current and the previous fingerprint
-12
View File
@@ -1,12 +0,0 @@
/** @type {import('jest').Config} */
module.exports = {
verbose: true,
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
prettierPath: require.resolve('jest-snapshot-prettier'),
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.ts$': 'ts-jest',
},
};
-83
View File
@@ -1,83 +0,0 @@
const spawn = require('@expo/spawn-async');
const ncc = require('@vercel/ncc');
const fs = require('fs');
const { boolish } = require('getenv');
const path = require('path');
// For some entries, we need to specify externals for ncc to leave their require() as-it.
const EXTERNAL_REQUIRES = {
fingerprint: ['@expo/fingerprint', 'module', 'sqlite3'],
'fingerprint-post': ['@expo/fingerprint', 'module', 'sqlite3'],
'preview-build': ['@expo/fingerprint', 'module', 'sqlite3'],
};
const actionsDir = path.resolve(__dirname, 'src/actions');
const buildDir = path.resolve(__dirname, 'build');
const modulesDir = path.resolve(__dirname, 'node_modules');
prebuild().then(() => build());
async function prebuild() {
if (!boolish(process.env.CI, false)) {
return console.log('Skipped CI environment simulation');
}
console.log('Preparing build in simulated CI environment');
await fs.promises.rm(buildDir, { force: true, recursive: true });
await fs.promises.rm(modulesDir, { force: true, recursive: true });
await spawn('bun', ['install', '--frozen-lockfile'], { stdio: 'inherit', env: { ...process.env, CI: true } });
console.log();
}
async function build() {
console.log('Building actions');
const actions = fs
.readdirSync(actionsDir, { withFileTypes: true })
.filter(entity => entity.isFile())
.map(entity => ({
name: path.basename(entity.name, path.extname(entity.name)),
file: path.resolve(actionsDir, entity.name),
}));
for (const action of actions) {
const files = await compile(action.file);
write(files, path.resolve(buildDir, action.name));
console.log(`✓ ${path.relative(__dirname, action.file)}`);
}
console.log();
console.log('All actions built');
}
async function compile(entry) {
const { code, map, assets } = await ncc(entry, {
externals: EXTERNAL_REQUIRES[path.parse(entry).name] ?? [],
cache: false,
license: 'license.txt',
quiet: true,
});
return {
...assets,
'index.js': { source: code },
'index.js.map': { source: map },
};
}
function write(files, dir) {
for (const fileName in files) {
if (!files[fileName].source) {
continue;
}
const filePath = path.resolve(dir, fileName);
fs.mkdirSync(path.dirname(filePath), { recursive: true });
fs.writeFileSync(filePath, files[fileName].source, { encoding: 'utf-8' });
}
}
+27 -56
View File
@@ -1,76 +1,47 @@
{
"private": true,
"name": "expo-github-action",
"version": "8.2.1",
"description": "Expo CLI in your GitHub Actions workflow",
"main": "build/index.js",
"name": "@expo/actions",
"version": "0.0.0",
"description": "A collection of GitHub Actions for Expo projects",
"author": "Expo",
"license": "MIT",
"homepage": "https://github.com/expo/actions#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/expo/expo-github-action.git"
"url": "https://github.com/expo/actions.git"
},
"author": "Cedric van Putten <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/expo/expo-github-action/issues"
},
"homepage": "https://github.com/expo/expo-github-action#readme",
"scripts": {
"test": "jest",
"lint": "eslint .",
"build": "node ncc.js",
"clean": "git clean -xdf ./build"
"clean": "git rm -r ./build",
"build": "bun ./src/scripts/build.ts",
"lint": "eslint",
"test": "bun test"
},
"dependencies": {
"@actions/cache": "^3.1.2",
"@actions/core": "^1.10.0",
"@actions/cache": "^4.1.0",
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"@actions/github": "^5.1.1",
"@actions/io": "^1.1.2",
"@actions/tool-cache": "^2.0.1",
"semver": "^7.3.8",
"uuid": "^8.3.2"
"@actions/github": "^6.0.1",
"@actions/io": "^1.1.3",
"@actions/tool-cache": "^2.0.2",
"@expo/package-manager": "^1.9.8",
"glob": "^11.0.3"
},
"devDependencies": {
"@expo/config": "^8.1.2",
"@expo/fingerprint": "^0.1.0",
"@expo/spawn-async": "^1.7.2",
"@semantic-release/changelog": "^6.0.2",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@tsconfig/node20": "^20.1.2",
"@types/jest": "^29.2.5",
"@types/node": "^16.18.11",
"@types/uuid": "^9.0.3",
"@vercel/ncc": "^0.36.0",
"conventional-changelog-conventionalcommits": "^5.0.0",
"eslint": "^8.54.0",
"eslint-config-universe": "^12.0.0",
"getenv": "^1.0.0",
"jest": "^29.3.1",
"jest-snapshot-prettier": "npm:prettier@^2.8.8",
"prettier": "^3.1.0",
"semantic-release": "^19.0.5",
"sqlite3": "^5.1.6",
"ts-jest": "^29.0.3",
"typescript": "^5.3.2"
"@expo/fingerprint": "^0.15.1",
"@tsconfig/recommended": "^1.0.10",
"@types/bun": "^1.2.22",
"eslint": "^9.36.0",
"eslint-config-universe": "^15.0.3",
"memfs": "^4.48.1",
"sqlite3": "^5.1.7"
},
"trustedDependencies": [
"sqlite3"
],
"eslintConfig": {
"extends": "universe/node",
"ignorePatterns": [
"build/**",
"node_modules/**"
]
},
"prettier": {
"printWidth": 120,
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"bracketSameLine": true,
"trailingComma": "es5",
"arrowParens": "avoid",
"endOfLine": "auto"
"trailingComma": "es5"
}
}
-177
View File
@@ -1,177 +0,0 @@
<div align="center">
<h1>preview-build</h1>
<p>Checking project fingerprinting for pull requests using <a href="https://www.npmjs.com/package/@expo/fingerprint"><code>@expo/fingerprint</code></a></p>
</div>
<p align="center">
<a href="https://github.com/expo/expo-github-action/releases" title="Latest release">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=49505A">
<img alt="Latest release" src="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=D1D5DA" />
</picture>
</a>
<a href="https://github.com/expo/expo-github-action/actions" title="Workflow status">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=49505A">
<img alt="Workflow status" src="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=D1D5DA" />
</picture>
</a>
</p>
<p align="center">
<a href="#usage"><b>Usage</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#available-outputs"><b>Outputs</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#example-workflows"><b>Examples</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#caveats"><b>Caveats</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="https://github.com/expo/expo-github-action/blob/main/CHANGELOG.md"><b>Changelog</b></a>
</p>
<br />
> **Warning**
> This sub action is experimental and might change without notice. Use it at your own risk
## Overview
`preview-build` is a GitHub Action that creates new EAS Builds for pull requests using [`@expo/fingerprint`](https://www.npmjs.com/package/@expo/fingerprint). When a pull request is updated, you can use this action to check the fingerprint integrity. If a pull request is fingerprint compatible, it means there are no changes from native code and be EAS Update compatible. Otherwise, if fingerprint changed, it means native code changed and the action will create new EAS Builds.
This action is designed to be used in conjunction with the `@expo/fingerprint` package, which generates a unique fingerprint for each pull request based on the contents of the code. By using fingerprinting, this action can determine if a pull request has already been built, and reuse the existing build instead of creating a new one.
## Usage
To use this action, add the following code to your workflow:
```yaml
on:
push:
# REQUIRED: push main(default) branch is necessary for this action to update its fingerprint database
branches: [main]
pull_request:
types: [opened, synchronize]
jobs:
<JOB_NAME>:
runs-on: <RUNNER>
# REQUIRED: limit concurrency when pushing main(default) branch to prevent conflict for this action to update its fingerprint database
concurrency: fingerprint-${{ github.event_name != 'pull_request' && 'main' || github.run_id }}
permissions:
# REQUIRED: Allow comments of PRs
pull-requests: write # Allow comments on PRs
# REQUIRED: Allow updating fingerprint in acton caches
actions: write
steps:
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Create preview builds if fingerprint changed
uses: expo/expo-github-action/preview-build@main
with:
command: eas build --profile development --platform all
```
### Configuration options
This action is customizable through variables defined in the [`action.yml`](action.yml).
Here is a summary of all the input options you can use.
| variable | default | description |
| ---------------------------------- | ---------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| **command** | - | EAS CLI command to run when creating builds |
| **comment** | `true` | If the action should summarize the EAS Update information as comment on a pull request |
| **comment-id** | _[see code][code-defaults]_ | unique id template to prevent duplicate comments ([read more](#preventing-duplicate-comments)) |
| **working-directory** | - | The relative directory of your Expo app |
| **packager** | `yarn` | The package manager used to install the fingerprint tools |
| **github-token** | `github.token` | GitHub token to use when commenting on PR ([read more](#github-tokens)) |
| **fingerprint-version** | `latest` | `@expo/fingerprint` version to install |
| **fingerprint-installation-cache** | `true` | If the `@expo/fingerprint` should be cached to speed up installation |
| **fingerprint-db-cache-key** | `fingerprint-db` | A cache key to use for saving the fingerprint database |
| **eas-build-message** | Will retrieve from the Git branch HEAD message | A short message describing the build that will pass to `eas build --message` |
### Available outputs
In case you want to reuse this action for other purpose, this action will set the following action outputs.
| output name | description |
| --------------------- | ------------------------------------------------------------------------------------------------- |
| **projectId** | The resolved EAS project ID |
| **commentId** | The unique comment ID to prevent duplicate comments ([read more](#preventing-duplicate-comments)) |
| **comment** | The comment with information about the updates |
| **gitCommitHash** | Git commit hash that was found when creating this build |
| **androidBuildId** | EAS Build ID for Android |
| **androidLink** | Absolute URL to Android build on expo.dev |
| **androidAppVersion** | Version of the Android app |
| **iosBuildId** | EAS Build ID for iOS |
| **iosLink** | Absolute URL to iOS build on expo.dev |
| **iosAppVersion** | Version of the iOS app |
## Example workflows
Here's an example workflow that uses this action to comment pull requests and create EAS Builds if fingerprint changed
```yaml
name: Build preview for pull requests
on:
push:
# REQUIRED: push main(default) branch is necessary for this action to update its fingerprint database
branches: [main]
pull_request:
types: [opened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
# REQUIRED: limit concurrency when pushing main(default) branch to prevent conflict for this action to update its fingerprint database
concurrency: fingerprint-${{ github.event_name != 'pull_request' && 'main' || github.run_id }}
permissions:
# REQUIRED: Allow comments of PRs
pull-requests: write # Allow comments on PRs
# REQUIRED: Allow updating fingerprint in acton caches
actions: write
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install dependencies
run: yarn install
- name: Create preview builds if needed
uses: expo/expo-github-action/preview-build@main
with:
command: eas build --profile development --platform all
```
This workflow listens for pull request events and generates a fingerprint for each pull request. It then uses this action to create an EAS Build for the pull request, and deploys the build using another action.
## Caveats
### Preventing duplicate comments
When automating these preview comments, you have to be careful not to spam a pull request on every successful run.
Every comment contains a generated **message-id** to identify previously made comments and update them instead of creating a new comment.
### GitHub tokens
When using the GitHub API, you always need to be authenticated.
This action tries to auto-authenticate using the [Automatic token authentication][link-gha-token] from GitHub.
You can overwrite the token by adding the `GITHUB_TOKEN` environment variable or add the **github-token** input.
<div align="center">
<br />
with :heart:&nbsp;<strong>Expo</strong>
<br />
</div>
-68
View File
@@ -1,68 +0,0 @@
---
name: Expo GitHub Action - Preview EAS Build for Pull Requests
author: Expo
description: Create Expo previews with EAS Build
branding:
icon: smartphone
color: gray-dark
runs:
using: node20
main: ../build/preview-build/index.js
inputs:
command:
description: EAS CLI command to run when creating builds
required: true
comment:
description: If the action should summarize the EAS Build information as comment on a pull request
required: false
default: true
comment-id:
description: unique id template to prevent duplicate comments
working-directory:
description: The relative directory of your Expo app
required: false
default: ${{ github.workspace }}
packager:
description: The package manager used to install the fingerprint tools
default: yarn
github-token:
description: GitHub token to use when commenting on PR
required: false
default: ${{ github.token }}
fingerprint-version:
description: Fingerprint version to install
required: false
default: latest
fingerprint-installation-cache:
description: If fingerprint should be cached to speed up installation
default: true
fingerprint-db-cache-key:
description: A cache key to use for saving the fingerprint database
required: false
default: fingerprint-db
eas-build-message:
description: A short message describing the build
outputs:
projectId:
description: The resolved EAS project ID
commentId:
description: The unique comment ID to prevent duplicate comments
comment:
description: The comment with information about the build
gitCommitHash:
description: Git commit hash that was found when creating this build
androidBuildId:
description: EAS Build ID
androidLink:
description: Absolute URL to platform-independent build on expo.dev
androidAppVersion:
description: Version of the app
iosBuildId:
description: EAS Build ID
iosLink:
description: Absolute URL to platform-independent build on expo.dev
iosAppVersion:
description: iOS build number
-204
View File
@@ -1,204 +0,0 @@
<div align="center">
<h1>expo-github-action/preview-comment</h1>
<p>Add <a href="https://github.com/expo/expo">Expo</a> preview comments to pull requests</p>
</div>
<p align="center">
<a href="https://github.com/expo/expo-github-action/releases" title="Latest release">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=49505A">
<img alt="Latest release" src="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=D1D5DA" />
</picture>
</a>
<a href="https://github.com/expo/expo-github-action/actions" title="Workflow status">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=49505A">
<img alt="Workflow status" src="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=D1D5DA" />
</picture>
</a>
</p>
<p align="center">
<a href="#configuration-options"><b>Usage</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#available-outputs"><b>Outputs</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#example-workflows"><b>Examples</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#things-to-know"><b>Caveats</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="https://github.com/expo/expo-github-action/blob/main/CHANGELOG.md"><b>Changelog</b></a>
</p>
<br />
> **Warning**
> Expo publish is deprecated, but will be supported until 2024. ([read more](https://blog.expo.dev/sunsetting-expo-publish-and-classic-updates-6cb9cd295378))
## What's inside?
This (sub)action allows you to comment on pull requests containing Expo QR codes.
It can help speed up the review process by letting the reviewer load the app directly on their phone.
> This action only creates the comment. You still have to publish the project.
## Configuration options
This action is customizable through variables defined in the [`action.yml`](action.yml).
Here is a summary of all the input options you can use.
| variable | default | description |
| -------------- | --------------------------- | ------------------------------------------------------------------------------------------------ |
| **project** | - | The relative path to the Expo project |
| **channel** | `default` | On what channel the project was published |
| **comment** | `true` | If this action should comment on a PR |
| **message** | _[see code][code-defaults]_ | The message template |
| **message-id** | _[see code][code-defaults]_ | A unique id template to prevent duplicate comments ([read more](#preventing-duplicate-comments)) |
| **github-token** | `GITHUB_TOKEN` | A GitHub token to use when commenting on PR ([read more](#github-tokens)) |
## Available outputs
There are a few variables available to generate the comment content.
Some of these variables are also exported as subaction output.
Here is a summary of these variables.
| output name | template name | description |
| ---------------- | ---------------- | ----------------------------------------------------- |
| **projectOwner** | `{projectOwner}` | The resolved owner of the project |
| **projectSlug** | `{projectSlug}` | The resolved slug of the project |
| **projectName** | `{projectName}` | The resolved name of the project |
| **projectDeepLink** | `{projectDeepLink}` | A deep link to open the project in Expo Go |
| **projectLink** | `{projectLink}` | The expo.dev project link, including release channel |
| **projectQR** | `{projectQR}` | The QR code link, to load the project in Expo Go |
| - | `{channel}` | The release channel that was used |
| **message** | - | The resolved message content |
| **messageId** | - | The resolved message id content |
## Example workflows
Before diving into the workflow examples, you should know the basics of GitHub Actions.
You can read more about this in the [GitHub Actions documentation][link-actions].
1. [Publish and preview on pull request](#publish-and-preview-on-pull-request)
2. [Sending preview comments elsewhere](#sending-preview-comments-elsewhere)
### Publish and preview on pull request
This workflow listens to the `pull_request` event and publishes a to Expo, on release channel `pr-#`.
Once that's done, it will comment with the QR code on that same pull request.
It's essential to keep pull requests separated, by release channel, to avoid writing over pull requests.
```yml
on:
pull_request:
types: [opened, synchronize]
jobs:
preview:
runs-on: ubuntu-latest
permissions:
pull-requests: write # Allow comments on PRs
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: 🏗 Setup Expo
uses: expo/expo-github-action@v8
with:
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install
- name: 🚀 Publish to Expo
run: expo publish --release-channel=pr-${{ github.event.number }} --non-interactive
- name: 💬 Comment in preview
uses: expo/expo-github-action/preview-comment@v8
with:
channel: pr-${{ github.event.number }}
```
### Sending preview comments elsewhere
You can also use this action to generate the comment without actually commenting.
By disabling commenting with **comment** set to `false`, you can reuse this action with any workflow trigger and send it to any service accessible in GitHub Actions.
> See [Available variables](#available-variables) for a list of all outputs.
```yml
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write # Allow comments on PRs
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: 🏗 Setup Expo
uses: expo/expo-github-action@v8
with:
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install
- name: 🚀 Publish preview
run: expo publish --release-channel=production --non-interactive
- name: 👷 Create preview comment
uses: expo/expo-github-action/preview-comment@v8
id: preview
with:
comment: false
channel: production
- name: 💬 Comment in Slack
uses: slackapi/[email protected]
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }}
with:
channel-id: deployments
slack-message: 'New deployment is ready!\n- Preview: ${{ steps.preview.outputs.projectQR }}'
```
## Things to know
### Preventing duplicate comments
When automating these preview comments, you have to be careful not to spam a pull request on every successful run.
Every comment contains a generated **message-id** to identify previously made comments and update instead of creating a new comment.
### GitHub tokens
When using the GitHub API, you always need to be authenticated.
This action tries to auto-authenticate using the [Automatic token authentication][link-gha-token] from GitHub.
You can overwrite the token by adding the `GITHUB_TOKEN` environment variable, or add the **github-token** input.
<div align="center">
<br />
with :heart:&nbsp;<strong>byCedric</strong>
<br />
</div>
[code-defaults]: ../src/actions/preview-comment.ts
[link-actions]: https://help.github.com/en/categories/automating-your-workflow-with-github-actions
[link-gha-token]: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
-46
View File
@@ -1,46 +0,0 @@
---
name: Expo GitHub Action - Preview comment
author: Expo
description: Add Expo preview comments to pull requests
branding:
icon: message-circle
color: gray-dark
runs:
using: node20
main: ../build/preview-comment/index.js
inputs:
project:
description: Path to the Expo project, relative from the workspace
required: false
channel:
description: Release channel to preview
required: false
comment:
description: If the action should comment on a PR
required: false
default: true
message:
description: Pull request comment template
required: false
message-id:
description: A unique identifier to prevent multiple comments on the same pull request
required: false
github-token:
description: GitHub access token to comment on PRs
required: false
default: ${{ github.token }}
outputs:
projectOwner:
description: The resolved project owner
projectName:
description: The resolved project name
projectSlug:
description: The resolved project slug
projectQR:
description: The absolute URL to the QR code
projectLink:
description: The absolute link to the project on expo.dev
messageId:
description: The resolved message id
message:
description: The resolved message content
-253
View File
@@ -1,253 +0,0 @@
<div align="center">
<h1>expo-github-action/preview</h1>
<p>Create <a href="https://github.com/expo/expo">Expo</a> previews with <a href="https://docs.expo.dev/eas-update/introduction/">EAS Update</a></p>
</div>
<p align="center">
<a href="https://github.com/expo/expo-github-action/releases" title="Latest release">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=49505A">
<img alt="Latest release" src="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=D1D5DA" />
</picture>
</a>
<a href="https://github.com/expo/expo-github-action/actions" title="Workflow status">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=49505A">
<img alt="Workflow status" src="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=D1D5DA" />
</picture>
</a>
</p>
<p align="center">
<a href="#configuration-options"><b>Usage</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#available-outputs"><b>Outputs</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#example-workflows"><b>Examples</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#things-to-know"><b>Caveats</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="https://github.com/expo/expo-github-action/blob/main/CHANGELOG.md"><b>Changelog</b></a>
</p>
<br />
## What's inside?
This (sub)action creates new <a href="https://docs.expo.dev/eas-update/introduction/">EAS Updates</a> and creates comments containing Expo QR codes and useful links.
It can help speed up the review process by letting the reviewer load the app directly on their phone.
## Configuration options
This action is customizable through variables defined in the [`action.yml`](action.yml).
Here is a summary of all the input options you can use.
| variable | default | description |
| --------------------- | --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **command** | - | EAS CLI command to run when creating updates |
| **working-directory** | - | The relative directory of your Expo app |
| **comment** | `true` | If the action should summarize the EAS Update information as comment on a pull request |
| **comment-id** | _[see code][code-defaults]_ | Unique id template to prevent duplicate comments ([read more](#preventing-duplicate-comments)) |
| **qr-target** | _inferred from project_ | Either `dev-build` or `expo-go`, affects how the EAS Update is opened through the QR code. <br /> Defaults to `dev-build` when `expo-dev-client` is detected within the project. |
| **github-token** | `github.token` | GitHub token to use when commenting on PR ([read more](#github-tokens)) |
## Available outputs
There are a few variables available that you can use to set up your own notifications.
These variables are strings; some may be empty because of your project configuration.
| output name | description |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **projectId** | The resolved EAS project ID |
| **projectName** | The name of your project ([read more](https://docs.expo.dev/versions/latest/config/app/#name)) |
| **projectSlug** | The slug of your project ([read more](https://docs.expo.dev/versions/latest/config/app/#slug)) |
| **projectScheme** | The longest (custom) app scheme ([read more](https://docs.expo.dev/versions/latest/config/app/#scheme)) |
| **projectSchemes** | All (custom) app schemes in order of longest to shortest, as JSON string ([read more](https://docs.expo.dev/versions/latest/config/app/#scheme)) |
| **commentId** | The unique comment ID to prevent duplicate comments ([read more](#preventing-duplicate-comments)) |
| **comment** | The comment with information about the updates |
### Update information
Some of the EAS Update variables can be shared for all platforms if the [runtime version](https://docs.expo.dev/eas-update/runtime-versions/) of all platforms is identical.
| output name | description |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| **groupId** | Update group ID that contains one or more platform-specific updates |
| **runtimeVersion** | Runtime version used for one or more platform-specific updates ([read more](https://docs.expo.dev/eas-update/runtime-versions/)) |
| **qr** | Absolute URL to the QR code to load this update |
| **link** | Absolute URL to platform-independent update on [expo.dev](https://expo.dev) |
| **branchName** | Branch name that was used when creating this update ([read more](https://docs.expo.dev/eas-update/getting-started/#publish-an-update)) |
| **message** | Custom message to describe the update |
| **createdAt** | When the update was created |
| **gitCommitHash** | Git commit hash that was found when creating this update |
#### Android-specific update information
These variables contain Android-specific update information.
When skipping the Android update, these variables are empty strings.
| output name | description |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| **androidId** | Android-specific update id |
| **androidGroupId** | Update group ID that contains one or more platform-specific updates |
| **androidBranchName** | Branch name that was used when creating this update ([read more](https://docs.expo.dev/eas-update/getting-started/#publish-an-update)) |
| **andriodManifestPermalink** | Absolute URL to the Android-specific update manifest |
| **androidMessage** | Custom message to describe the Android-specific update |
| **androidRuntimeVersion** | Runtime version used for the Android-specific update ([read more](https://docs.expo.dev/eas-update/runtime-versions/)) |
| **androidQR** | Absolute URL to the QR code to load this Android-specific update |
| **androidLink** | Absolute URL to the Android-specific update on [expo.dev](https://expo.dev) |
#### iOS-specific update information
These variables contain iOS-specific update information.
When skipping the iOS update, these variables are empty strings.
| output name | description |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| **iosId** | iOS-specific update id |
| **iosGroupId** | Update group ID that contains one or more platform-specific updates |
| **iosBranchName** | Branch name that was used when creating this update ([read more](https://docs.expo.dev/eas-update/getting-started/#publish-an-update)) |
| **iosManifestPermalink** | Absolute URL to the ios-specific update manifest |
| **iosMessage** | Custom message to describe the iOS-specific update |
| **iosRuntimeVersion** | Runtime version used for the iOS-specific update ([read more](https://docs.expo.dev/eas-update/runtime-versions/)) |
| **iosQR** | Absolute URL to the QR code to load this iOS-specific update |
| **iosLink** | Absolute URL to the iOS-specific update on [expo.dev](https://expo.dev) |
## Example workflows
Before diving into the workflow examples, you should know the basics of GitHub Actions.
You can read more about this in the [GitHub Actions documentation][link-actions].
1. [Create previews on pull requests](#create-previews-on-pull-requests)
2. [Sending preview information elsewhere](#sending-preview-information-elsewhere)
### Create previews on pull requests
This workflow creates a new EAS Update every time a pull request is created or updated.
We are using the `--auto`, together with the `--branch`, flag in this example.
- `--auto` will automatically create an update using the current git commit message and git branch.
- `--branch` will overwrite this value infere from git with our own value.
> **Warning**
> GitHub Actions might use a temporary merge branch for PRs. To avoid using this merge branch for our update, we overwrite the branch name from `--auto` with our own `--branch` value.
```yml
on:
pull_request:
types: [opened, synchronize]
jobs:
preview:
runs-on: ubuntu-latest
permissions:
pull-requests: write # Allow comments on PRs
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install
- name: 🚀 Create preview
uses: expo/expo-github-action/preview@v8
with:
# `github.event.pull_request.head.ref` is only available on `pull_request` triggers.
# Use your own, or keep the automatically infered branch name from `--auto`, when using different triggers.
command: eas update --auto --branch ${{ github.event.pull_request.head.ref }}
```
### Sending preview information elsewhere
You can also use this action to create the EAS Update and use the information to create a Slack message instead of a pull request comment.
By disabling commenting with **comment** set to `false`, you can reuse this action with any workflow trigger and send it to any service accessible in GitHub Actions.
> See [Available variables](#available-variables) for a list of all outputs.
```yml
on:
push:
branches:
- main
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install
- name: 🚀 Create preview
uses: expo/expo-github-action/preview@v8
id: preview
with:
# In this example, we use the `push` trigger which will always use the branch name that was pushed to.
# By using `--auto` we both use the git commit message and branch name for the update.
command: eas update --auto
comment: false
- name: 💬 Comment in Slack
uses: slackapi/[email protected]
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }}
with:
channel-id: deployments
slack-message: 'New deployment is ready!\n- Preview: ${{ steps.preview.outputs.qr }}'
```
## Things to know
### Preventing duplicate comments
When automating these preview comments, you have to be careful not to spam a pull request on every successful run.
Every comment contains a generated **message-id** to identify previously made comments and update them instead of creating a new comment.
### Update branch and workflow triggers
GitHub Actions uses slightly different checkout logic for different workflow triggers.
When using the `push` trigger, GitHub Actions checks out the branch that was pushed to.
But for [`pull_request` triggers][link-gha-trigger-pull], GitHub Actions might use a temporary branch name.
This affects in what "branch" your EAS Update is created when using the `--auto` flag.
### GitHub tokens
When using the GitHub API, you always need to be authenticated.
This action tries to auto-authenticate using the [Automatic token authentication][link-gha-token] from GitHub.
You can overwrite the token by adding the `GITHUB_TOKEN` environment variable or add the **github-token** input.
<div align="center">
<br />
with :heart:&nbsp;<strong>byCedric</strong>
<br />
</div>
[code-defaults]: ../src/actions/preview.ts#L10
[link-actions]: https://help.github.com/en/categories/automating-your-workflow-with-github-actions
[link-gha-token]: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
[link-gha-trigger-pull]: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
[link-gha-trigger-push]: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push
-97
View File
@@ -1,97 +0,0 @@
---
name: Expo GitHub Action - Preview
author: Expo
description: Create Expo previews with EAS Update
branding:
icon: smartphone
color: gray-dark
runs:
using: node20
main: ../build/preview/index.js
inputs:
command:
description: EAS CLI command to run when creating updates
required: true
comment:
description: If the action should summarize the EAS Update information as comment on a pull request
required: false
default: true
comment-id:
description: unique id template to prevent duplicate comments
qr-target:
description: How the EAS Update is opened through the QR code, either `dev-build` or `expo-go`. Defaults to `dev-build` if `expo-dev-client` is used in project.
required: false
working-directory:
description: The relative directory of your Expo app
required: false
default: ${{ github.workspace }}
github-token:
description: GitHub token to use when commenting on PR
required: false
default: ${{ github.token }}
# Below are deprecated and won't be supported anymore
app-scheme:
deprecated: true
description: The (custom) app scheme to use when creating the preview QR code
required: false
outputs:
projectId:
description: The resolved EAS project ID
projectName:
description: The name of your project
projectSlug:
description: The slug of your project
projectScheme:
description: The (custom) app scheme
commentId:
description: The unique comment ID to prevent duplicate comments
comment:
description: The comment with information about the updates
groupId:
description: Update group ID that contains one or more platform-specific updates
runtimeVersion:
description: Runtime version used for one or more platform-specific updates
qr:
description: Absolute URL to the QR code to load this update
link:
description: Absolute URL to platform-independent update on expo.dev
branchName:
description: Branch name that was used when creating this update
message:
description: Custom message to describe the update
createdAt:
description: When the update was created
gitCommitHash:
description: Git commit hash that was found when creating this update
androidId:
description: Android-specific update id
androidGroupId:
description: Update group ID that contains one or more platform-specific updates
androidBranchName:
description: Branch name that was used when creating this update
androidMessage:
description: Custom message to describe the Android-specific update
androidRuntimeVersion:
description: Runtime version used for the Android-specific update
androidQR:
description: Absolute URL to the QR code to load this Android-specific update
androidLink:
description: Absolute URL to the Android-specific update on expo.dev
iosId:
description: iOS-specific update id
iosGroupId:
description: Update group ID that contains one or more platform-specific updates
iosBranchName:
description: Branch name that was used when creating this update
iosMessage:
description: Custom message to describe the iOS-specific update
iosRuntimeVersion:
description: Runtime version used for the iOS-specific update
iosQR:
description: Absolute URL to the QR code to load this iOS-specific update
iosLink:
description: Absolute URL to the iOS-specific update on expo.dev
+158
View File
@@ -0,0 +1,158 @@
---
name: Expo GitHub Action - Repack App with Artifact Management
author: Expo
description: Complete workflow for fingerprint-based artifact query, download, repack, upload, and database update
branding:
icon: smartphone
color: gray-dark
runs:
using: composite
steps:
- name: Query artifact from fingerprint database
id: query-artifact
if: ${{ inputs.fingerprint-diff == '[]' }}
uses: expo/expo-github-action/fingerprint-query-artifact@kudo/repack-app
with:
fingerprint-hash: ${{ fromJSON(inputs.current-fingerprint).hash }}
platform: ${{ inputs.platform }}
packager: ${{ inputs.packager }}
fingerprint-db-cache-key: ${{ inputs.fingerprint-db-cache-key }}
- name: Download artifact
id: download-artifact
if: steps.query-artifact.outputs.run-id != ''
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: ${{ inputs.output-directory }}/previous-build
github-token: ${{ inputs.github-token }}
run-id: ${{ steps.query-artifact.outputs.run-id }}
- name: Repack app
id: repack
if: steps.download-artifact.outputs.download-path != ''
uses: expo/expo-github-action/repack-app@kudo/repack-app
with:
platform: ${{ inputs.platform }}
source-app: ${{ steps.download-artifact.outputs.download-path }}
output-directory: ${{ inputs.output-directory }}/repacked-build
working-directory: ${{ inputs.working-directory }}
repack-version: ${{ inputs.repack-version }}
- name: Build
id: build
if: ${{ inputs.fingerprint-diff != '[]' || steps.query-artifact.outputs.run-id == '' }}
shell: ${{ inputs.build-command-shell }}
working-directory: ${{ inputs.working-directory }}
run: ${{ inputs.build-command }}
- name: Upload artifact
id: upload-artifact
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: ${{ steps.repack.outputs.output-path || inputs.build-output }}
retention-days: ${{ inputs.retention-days }}
compression-level: ${{ inputs.compression-level }}
- name: Update fingerprint database
id: update-fingerprint
if: steps.upload-artifact.outputs.artifact-id != ''
uses: expo/expo-github-action/fingerprint-update-artifact@kudo/repack-app
with:
current-git-commit: ${{ inputs.current-git-commit }}
current-fingerprint: ${{ inputs.current-fingerprint }}
platform: ${{ inputs.platform }}
artifact-id: ${{ steps.upload-artifact.outputs.artifact-id }}
artifact-url: ${{ steps.upload-artifact.outputs.artifact-url }}
artifact-digest: ${{ steps.upload-artifact.outputs.artifact-digest }}
packager: ${{ inputs.packager }}
fingerprint-db-cache-key: ${{ inputs.fingerprint-db-cache-key }}
inputs:
platform:
description: The platform for the artifact (android | ios)
required: true
fingerprint-diff:
description: The diff between the current and the previous fingerprint
required: true
current-git-commit:
description: The Git hash for the current commit
required: true
current-fingerprint:
description: The fingerprint of the current commit
required: true
build-command:
description: Custom shell command to run when no cached artifact is found
required: true
build-output:
description: The path to the build output file (e.g., .apk or .ipa)
required: true
build-command-shell:
description: The shell to use for the build command
required: false
default: bash
artifact-name:
description: The name of the artifact to download/upload
required: true
github-token:
description: GitHub token
required: false
default: ${{ github.token }}
working-directory:
description: The relative directory of your Expo app
required: false
default: ${{ github.workspace }}
output-directory:
description: Directory path where the downloaded app or repacked app will be saved
required: false
default: ${{ runner.temp }}
repack-version:
description: "@expo/repack-app version to install"
required: false
default: latest
#
# [BEGIN] Shared inputs with fingerprint
#
# [END] Shared inputs with fingerprint
packager:
description: The package manager used to install the fingerprint tools
default: yarn
fingerprint-db-cache-key:
description: A cache key to use for fingerprint database
required: false
default: fingerprint-db
saving-db-branch:
description: The branch for saving the fingerprint database
required: false
#
# [BEGIN] Shared inputs with actions/download-artifact and actions/upload-artifact
upload-path:
description: Path to upload as artifact (e.g., repack output or build output)
required: true
retention-days:
description: Duration after which artifact will expire in days
required: false
compression-level:
description: The level of compression for Zlib (0-9)
required: false
default: '6'
#
# [END] Shared inputs with actions/download-artifact and actions/upload-artifact
outputs:
artifact-id:
description: The uploaded artifact ID
value: ${{ steps.upload-artifact.outputs.artifact-id }}
artifact-url:
description: The uploaded artifact URL
value: ${{ steps.upload-artifact.outputs.artifact-url }}
artifact-digest:
description: The uploaded artifact digest (SHA-256)
value: ${{ steps.upload-artifact.outputs.artifact-digest }}
repack-executed:
description: Whether repack was executed
value: ${{ steps.download-artifact.outputs.download-path != '' }}
build-executed:
description: Whether build-command was executed (true if no artifact found)
value: ${{ inputs.fingerprint-diff != '[]' || steps.query-artifact.outputs.run-id == '' }}
+252
View File
@@ -0,0 +1,252 @@
<div align="center">
<h1>repack-app</h1>
<p>Repack app builds for pull requests using fingerprinting</p>
</div>
<p align="center">
<a href="https://github.com/expo/expo-github-action/releases" title="Latest release">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=49505A">
<img alt="Latest release" src="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=D1D5DA" />
</picture>
</a>
<a href="https://github.com/expo/expo-github-action/actions" title="Workflow status">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=49505A">
<img alt="Workflow status" src="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=D1D5DA" />
</picture>
</a>
</p>
<p align="center">
<a href="#usage"><b>Usage</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#available-outputs"><b>Outputs</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#example-workflows"><b>Examples</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#caveats"><b>Caveats</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="https://github.com/expo/expo-github-action/blob/main/CHANGELOG.md"><b>Changelog</b></a>
</p>
<br />
> **Warning**
> This sub action is experimental and might change without notice. Use it at your own risk
## Overview
`repack-app` is a GitHub Action that reuses app builds for pull requests using fingerprinting. When a pull request is updated, you can use this action to check if the app needs to be rebuilt based on fingerprint changes. If the fingerprint hasn't changed, it downloads and reuses the existing build artifacts instead of creating a new build.
This action is designed to optimize CI/CD workflows by avoiding unnecessary rebuilds when the app fingerprint remains unchanged. It works by comparing the current commit's fingerprint with previously cached fingerprints, and if they match, it downloads the cached build artifacts.
## Usage
To use this action, add the following code to your workflow:
```yaml
on:
push:
# REQUIRED: push main(default) branch is necessary for this action to update its fingerprint database
branches: [main]
pull_request:
types: [opened, synchronize]
jobs:
<JOB_NAME>:
runs-on: <RUNNER>
# REQUIRED: limit concurrency when pushing main(default) branch to prevent conflict for this action to update its fingerprint database
concurrency: fingerprint-${{ github.event_name != 'pull_request' && 'main' || github.run_id }}
permissions:
# REQUIRED: Allow updating fingerprint in action caches
actions: write
steps:
- name: Repack app
id: repack_app
uses: expo/expo-github-action/repack-app@main
with:
platform: android # or ios
upload-path: app-output
- name: Build app (only if fingerprint changed)
if: steps.repack_app.outputs.fingerprint-hit != 'true'
run: |
# Your custom build commands here
npx expo prebuild -p android
cd android
./gradlew :app:assembleRelease
- name: Prepare build artifact
if: steps.repack_app.outputs.fingerprint-hit != 'true'
run: |
mkdir -p app-output
cp android/app/build/outputs/apk/release/app-release.apk app-output/
```
### Configuration options
This action is customizable through variables defined in the [`action.yml`](action.yml).
Here is a summary of all the input options you can use.
| variable | default | description |
| ---------------------------------- | ---------------- | ------------------------------------------------------------------------------------------- |
| **platform** | - | The platform to build for (android or ios) |
| **upload-path** | - | The directory path where build artifacts should be placed |
| **working-directory** | - | The relative directory of your Expo app |
| **packager** | `yarn` | The package manager used to install the fingerprint tools |
| **github-token** | `github.token` | GitHub token to use for caching |
| **fingerprint-version** | `latest` | `@expo/fingerprint` version to install |
| **fingerprint-installation-cache** | `true` | If the `@expo/fingerprint` should be cached to speed up installation |
| **fingerprint-db-cache-key** | `fingerprint-db` | A cache key to use for saving the fingerprint database |
| **previous-git-commit** | - | The Git hash for the base commit |
| **current-git-commit** | - | The Git hash for the current commit |
| **saving-db-branch** | - | The branch for saving the fingerprint database. Defaults to the repository's default branch |
### Available outputs
In case you want to reuse this action for other purpose, this action will set the following action outputs.
| output name | description |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **fingerprint-hit** | Whether the fingerprint matched a cached build (`true` if matched, `false` if not) |
| **previous-fingerprint** | The fingerprint of the base commit if it has been computed previously. May be null if it has not been computed previously. |
| **current-fingerprint** | The fingerprint of the current commit. |
| **previous-git-commit** | The Git hash for the base commit. |
| **current-git-commit** | The Git hash for the current commit. |
| **fingerprint-diff** | The diff between the current and the previous fingerprint. It is a JSON array of fingerprint diff. If the fingerprint does not change in between, the result diff will be an empty array `[]` |
## Example workflows
Here's a complete example workflow that builds Android APK only when needed:
```yaml
name: CI repack
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]
jobs:
repack-android:
runs-on: ubuntu-latest
concurrency: fingerprint-${{ github.event_name != 'pull_request' && 'main' || github.run_id }}
permissions:
actions: write # Allow updating action caches
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
- name: 🏗 Setup Node
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: yarn
- name: 🔨 Use JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: 📦 Install dependencies
run: yarn install
- name: repack-android
id: repack_android
uses: expo/expo-github-action/repack-app@main
with:
platform: android
upload-path: app-output
- name: build
if: steps.repack_android.outputs.fingerprint-hit != 'true'
run: |
npx expo prebuild -p android
cd android
./gradlew :app:assembleRelease
- name: prepare build artifact
if: steps.repack_android.outputs.fingerprint-hit != 'true'
run: |
mkdir -p app-output
cp android/app/build/outputs/apk/release/app-release.apk app-output/app-release.apk
```
### iOS Example
For iOS builds, you can use a similar workflow:
```yaml
name: CI repack iOS
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]
jobs:
repack-ios:
runs-on: macos-latest
concurrency: fingerprint-${{ github.event_name != 'pull_request' && 'main' || github.run_id }}
permissions:
actions: write # Allow updating action caches
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
- name: 🏗 Setup Node
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: yarn
- name: 📦 Install dependencies
run: yarn install
- name: repack-ios
id: repack_ios
uses: expo/expo-github-action/repack-app@main
with:
platform: ios
upload-path: app-output
- name: build
if: steps.repack_ios.outputs.fingerprint-hit != 'true'
run: |
npx expo prebuild -p ios
cd ios
xcodebuild -workspace YourApp.xcworkspace -scheme YourApp archive -archivePath build/YourApp.xcarchive
- name: prepare build artifact
if: steps.repack_ios.outputs.fingerprint-hit != 'true'
run: |
mkdir -p app-output
cp -r ios/build/YourApp.xcarchive app-output/
```
## Caveats
### Build Artifacts
After your custom build step, make sure to copy the output files to the directory specified by `upload-path`:
- For Android: copy `*.apk` files
- For iOS: copy `*.ipa` or `*.app` files
This allows the repack-app action to upload the artifacts from your custom build for future reuse.
### GitHub tokens
When using the GitHub API, you always need to be authenticated.
This action tries to auto-authenticate using the [Automatic token authentication](https://docs.github.com/en/actions/security-guides/automatic-token-authentication) from GitHub.
You can overwrite the token by adding the `GITHUB_TOKEN` environment variable or add the **github-token** input.
<div align="center">
<br />
with :heart:&nbsp;<strong>Expo</strong>
<br />
</div>
+33
View File
@@ -0,0 +1,33 @@
---
name: Expo GitHub Action - Repack app
author: Expo
description: Repackage app using @expo/repack-app
branding:
icon: smartphone
color: gray-dark
runs:
using: node20
main: ../build/repack-app.js
inputs:
platform:
description: The platform for which to create a new build. Possible values are 'android' | 'ios'
required: true
source-app:
description: Path to the source app file to repack
required: true
output-directory:
description: Directory path where the repacked app will be saved
required: false
default: ${{ runner.temp }}
working-directory:
description: The relative directory of your Expo app
required: false
default: ${{ github.workspace }}
repack-version:
description: "@expo/repack-app version to install"
required: false
default: latest
outputs:
output-path:
description: The full path to the repacked app file
+153
View File
@@ -0,0 +1,153 @@
import * as core from '@actions/core';
import { afterEach, beforeEach, describe, expect, it, mock, spyOn } from 'bun:test';
import path from 'node:path';
import process from 'node:process';
import {
addGlobalNodeSearchPath,
createToolPath,
executeAction,
installToolFromPackage,
} from '../actions';
describe(executeAction, () => {
it('executes action successfully', async () => {
const mockAction = mock(() => Promise.resolve());
await executeAction(mockAction);
expect(mockAction).toHaveBeenCalledTimes(1);
});
it('sets failed status when action throws error', async () => {
const setFailed = spyOn(core, 'setFailed').mockImplementation(mock());
const debug = spyOn(core, 'debug').mockImplementation(mock());
const error = new Error('Test error');
error.stack = 'Test stack';
const mockAction = mock(() => Promise.reject(error));
await executeAction(mockAction);
expect(setFailed).toHaveBeenCalledWith('Test error');
expect(debug).toHaveBeenCalledWith('Test stack');
});
it('handles error without message', async () => {
const setFailed = spyOn(core, 'setFailed').mockImplementation(mock());
const error = new Error();
error.message = '';
const mockAction = mock(() => Promise.reject(error));
await executeAction(mockAction);
expect(setFailed).toHaveBeenCalledWith(error);
});
it('handles error without stacktrace', async () => {
const debug = spyOn(core, 'debug').mockImplementation(mock());
const error = new Error('Test error');
delete error.stack;
const mockAction = mock(() => Promise.reject(error));
await executeAction(mockAction);
expect(debug).toHaveBeenCalledWith('No stacktrace available');
});
});
describe(createToolPath, () => {
const originalEnv = process.env;
beforeEach(() => {
process.env = { ...originalEnv };
});
afterEach(() => {
process.env = originalEnv;
});
it('creates tool path with runner tool cache', () => {
process.env['RUNNER_TOOL_CACHE'] = '/runner/tools';
const toolPath = createToolPath('node', '18.0.0');
expect(toolPath).toContain('/runner/tools');
expect(toolPath).toContain('node');
expect(toolPath).toContain('18.0.0');
// The path should contain these components separated by path separators
const parts = toolPath.split(path.sep);
expect(parts).toContain('runner');
expect(parts).toContain('tools');
expect(parts).toContain('node');
expect(parts).toContain('18.0.0');
});
it('throws error when RUNNER_TOOL_CACHE is not defined', () => {
delete process.env['RUNNER_TOOL_CACHE'];
expect(() => createToolPath('node', '18.0.0')).toThrow(
'Expected RUNNER_TOOL_CACHE to be defined'
);
});
});
describe(addGlobalNodeSearchPath, () => {
const originalEnv = process.env;
const originalPlatform = process.platform;
beforeEach(() => {
process.env = { ...originalEnv };
Object.defineProperty(process, 'platform', { value: 'linux', configurable: true });
});
afterEach(() => {
process.env = originalEnv;
Object.defineProperty(process, 'platform', { value: originalPlatform, configurable: true });
});
it('is a function that modifies NODE_PATH', () => {
expect(typeof addGlobalNodeSearchPath).toBe('function');
expect(addGlobalNodeSearchPath.length).toBe(1);
});
it('adds path to NODE_PATH on unix systems', () => {
process.env['NODE_PATH'] = '/existing/path';
addGlobalNodeSearchPath('/new/path');
// The function should modify NODE_PATH to include the new path
expect(process.env['NODE_PATH']).toBeDefined();
expect(process.env['NODE_PATH']).toContain('/new/path');
});
it('handles windows platform differently', () => {
Object.defineProperty(process, 'platform', { value: 'win32', configurable: true });
process.env['NODE_PATH'] = '/existing/path';
addGlobalNodeSearchPath('/new/path');
// Should still modify NODE_PATH
expect(process.env['NODE_PATH']).toBeDefined();
});
it('handles empty NODE_PATH', () => {
delete process.env['NODE_PATH'];
addGlobalNodeSearchPath('/new/path');
// Should set NODE_PATH even if it was undefined
expect(process.env['NODE_PATH']).toBeDefined();
});
});
describe(installToolFromPackage, () => {
it('is a function that takes a directory parameter', () => {
expect(typeof installToolFromPackage).toBe('function');
expect(installToolFromPackage.length).toBe(1);
});
it('calls core.addPath with expected path', () => {
const addPath = spyOn(core, 'addPath').mockImplementation(mock());
installToolFromPackage('/tool/directory');
expect(addPath).toHaveBeenCalledWith('/tool/directory/node_modules/.bin');
});
});
+77
View File
@@ -0,0 +1,77 @@
import { ReserveCacheError } from '@actions/cache';
import * as core from '@actions/core';
import { describe, expect, it, mock, spyOn } from 'bun:test';
import { downloadCache, uploadCache } from '../caches';
describe(downloadCache, () => {
it('aborts when cache is unavailable', async () => {
mock.module('@actions/cache', () => ({ isFeatureAvailable: mock().mockReturnValue(false) }));
const warning = spyOn(core, 'warning').mockImplementation(mock());
await expect(downloadCache('/test', 'test-key')).resolves.toBeNull();
expect(warning).toHaveBeenCalledWith('GitHub Actions cache is not available, skipping cache.');
});
it('returns null when cache is not hit', async () => {
const restoreCache = mock().mockResolvedValue(undefined);
mock.module('@actions/cache', () => ({
isFeatureAvailable: mock().mockReturnValue(true),
restoreCache,
}));
await expect(downloadCache('/test', 'test-key')).resolves.toBeNull();
expect(restoreCache).toHaveBeenCalledWith(['/test'], 'test-key');
});
it('returns cache path when cache is hit', async () => {
mock.module('@actions/cache', () => ({
isFeatureAvailable: mock().mockReturnValue(true),
restoreCache: mock().mockResolvedValue('test-key-hit'),
}));
await expect(downloadCache('/test', 'test-key')).resolves.toBe('/test');
});
// When running jobs in parallel, the cache might throw an error where one job reserved the cache
it('warns when cache throws ReserveCacheError', async () => {
mock.module('@actions/cache', () => ({
isFeatureAvailable: mock().mockReturnValue(true),
restoreCache: mock().mockRejectedValue(new ReserveCacheError('test')),
}));
const warning = spyOn(core, 'warning').mockImplementation(mock());
await expect(downloadCache('/test', 'test-key')).resolves.toBeNull();
expect(warning).toHaveBeenCalledWith(
'Skipping GitHub Actions cache, cache is reserved by another job.'
);
});
});
describe(uploadCache, () => {
it('aborts when cache is unavailable', async () => {
mock.module('@actions/cache', () => ({ isFeatureAvailable: mock().mockReturnValue(false) }));
const warning = spyOn(core, 'warning').mockImplementation(mock());
await expect(uploadCache('/test', 'test-key')).resolves;
expect(warning).toHaveBeenCalledWith('GitHub Actions cache is not available, skipping cache.');
});
it('uploads cache when available', async () => {
const saveCache = mock().mockResolvedValue(undefined);
mock.module('@actions/cache', () => ({
isFeatureAvailable: mock().mockReturnValue(true),
saveCache,
}));
await expect(uploadCache('/test', 'test-key')).resolves;
expect(saveCache).toHaveBeenCalledWith(['/test'], 'test-key');
});
// When running jobs in parallel, the cache might throw an error where one job reserved the cache
it('warns when cache throws ReserveCacheError', async () => {
mock.module('@actions/cache', () => ({
isFeatureAvailable: mock().mockReturnValue(true),
saveCache: mock().mockRejectedValue(new ReserveCacheError('test')),
}));
const warning = spyOn(core, 'warning').mockImplementation(mock());
await expect(uploadCache('/test', 'test-key')).resolves;
expect(warning).toHaveBeenCalledWith(
'Skipping GitHub Actions cache, cache is reserved by another job.'
);
});
});
+168
View File
@@ -0,0 +1,168 @@
import { afterEach, beforeEach, describe, expect, it, mock } from 'bun:test';
import process from 'node:process';
import { getRepoDefaultBranch, githubApi, isPushBranchContext } from '../github';
describe(githubApi, () => {
const { GITHUB_TOKEN: _, ...originalEnv } = process.env;
beforeEach(() => {
process.env = { ...originalEnv };
});
afterEach(() => {
process.env = originalEnv;
});
it('creates octokit with GITHUB_TOKEN from environment', () => {
process.env['GITHUB_TOKEN'] = 'test-token-env';
const mockGetOctokit = mock<typeof import('@actions/github').getOctokit>();
mock.module('@actions/github', () => ({
getOctokit: mockGetOctokit,
context: {},
}));
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const _ = githubApi();
expect(mockGetOctokit).toHaveBeenCalledWith('test-token-env');
});
it('creates octokit with token from options', () => {
const mockGetOctokit = mock<typeof import('@actions/github').getOctokit>();
mock.module('@actions/github', () => ({
getOctokit: mockGetOctokit,
context: {},
}));
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const _ = githubApi({ token: 'test-token-options' });
expect(mockGetOctokit).toHaveBeenCalledWith('test-token-options');
});
it('prefers environment token over options token', () => {
process.env['GITHUB_TOKEN'] = 'test-token-env';
const mockGetOctokit = mock().mockReturnValue({ rest: {} });
mock.module('@actions/github', () => ({
getOctokit: mockGetOctokit,
context: {},
}));
githubApi({ token: 'test-token-options' });
expect(mockGetOctokit).toHaveBeenCalledWith('test-token-env');
});
it('throws when no token is available', () => {
mock.module('@actions/github', () => ({
getOctokit: mock(),
context: {},
}));
expect(() => githubApi()).toThrow(
`This step requires 'github-token' or a GITHUB_TOKEN environment variable to create comments`
);
});
});
describe(getRepoDefaultBranch, () => {
it('returns default branch from context payload', () => {
mock.module('@actions/github', () => ({
context: {
payload: {
repository: {
default_branch: 'main',
},
},
},
getOctokit: mock(),
}));
const branch = getRepoDefaultBranch();
expect(branch).toBe('main');
});
it('returns undefined when no repository in payload', () => {
mock.module('@actions/github', () => ({
context: {
payload: {},
},
getOctokit: mock(),
}));
const branch = getRepoDefaultBranch();
expect(branch).toBeUndefined();
});
it('returns undefined when no payload', () => {
mock.module('@actions/github', () => ({
context: {},
getOctokit: mock(),
}));
const branch = getRepoDefaultBranch();
expect(branch).toBeUndefined();
});
});
describe(isPushBranchContext, () => {
it('returns true for push event to target branch', () => {
mock.module('@actions/github', () => ({
context: {
eventName: 'push',
ref: 'refs/heads/main',
},
getOctokit: mock(),
}));
const result = isPushBranchContext('main');
expect(result).toBe(true);
});
it('returns false for push event to different branch', () => {
mock.module('@actions/github', () => ({
context: {
eventName: 'push',
ref: 'refs/heads/develop',
},
getOctokit: mock(),
}));
const result = isPushBranchContext('main');
expect(result).toBe(false);
});
it('returns false for non-push event', () => {
mock.module('@actions/github', () => ({
context: {
eventName: 'pull_request',
ref: 'refs/heads/main',
},
getOctokit: mock(),
}));
const result = isPushBranchContext('main');
expect(result).toBe(false);
});
it('returns false for push event without refs/heads prefix', () => {
mock.module('@actions/github', () => ({
context: {
eventName: 'push',
ref: 'main',
},
getOctokit: mock(),
}));
const result = isPushBranchContext('main');
expect(result).toBe(false);
});
});
+129
View File
@@ -0,0 +1,129 @@
import {
BunPackageManager,
NpmPackageManager,
PnpmPackageManager,
YarnPackageManager,
} from '@expo/package-manager';
import { describe, expect, it, mock } from 'bun:test';
import { createPackageManager, resolvePackageVersion } from '../packages';
describe(createPackageManager, () => {
it('returns bun package manager', () => {
const manager = createPackageManager('bun', { cwd: '/test' });
expect(manager).toBeInstanceOf(BunPackageManager);
expect(manager.options.cwd).toBe('/test');
});
it('returns npm package manager', () => {
const manager = createPackageManager('npm', { cwd: '/test' });
expect(manager).toBeInstanceOf(NpmPackageManager);
expect(manager.options.cwd).toBe('/test');
});
it('returns pnpm package manager', () => {
const manager = createPackageManager('pnpm', { cwd: '/test' });
expect(manager).toBeInstanceOf(PnpmPackageManager);
expect(manager.options.cwd).toBe('/test');
});
it('returns yarn package manager', () => {
const manager = createPackageManager('yarn', { cwd: '/test' });
expect(manager).toBeInstanceOf(YarnPackageManager);
expect(manager.options.cwd).toBe('/test');
});
it('handles case insensitive package manager names', () => {
expect(createPackageManager('NPM')).toBeInstanceOf(NpmPackageManager);
expect(createPackageManager('Yarn')).toBeInstanceOf(YarnPackageManager);
expect(createPackageManager(' pnpm ')).toBeInstanceOf(PnpmPackageManager);
});
it('throws for unknown package manager', () => {
expect(() => createPackageManager('composer')).toThrow(
`Unknown package manager provided 'composer', expected 'bun', 'npm', 'pnpm', or 'yarn'.`
);
});
});
describe(resolvePackageVersion, () => {
it('resolves version when npm outputs single version', async () => {
mock.module('@actions/exec', () => ({
getExecOutput: mock().mockResolvedValue({ stdout: JSON.stringify('16.19.2') }),
}));
await expect(resolvePackageVersion('eas-cli', 'latest', 'npm')).resolves.toBe('16.19.2');
});
it('resolves version when npm outputs multiple versions', async () => {
const versions = ['16.18.1', '16.19.0', '16.19.1', '16.19.2'];
mock.module('@actions/exec', () => ({
getExecOutput: mock().mockResolvedValue({ stdout: JSON.stringify(versions) }),
}));
await expect(resolvePackageVersion('eas-cli', 'latest', 'npm')).resolves.toBe('16.19.2');
});
// Yarn does not support the `info` command
it('resolves version with npm when using yarn', async () => {
const getExecOutput = mock().mockResolvedValue({ stdout: JSON.stringify('16.19.2') });
mock.module('@actions/exec', () => ({ getExecOutput }));
await expect(resolvePackageVersion('eas-cli', 'latest', 'yarn')).resolves.toBe('16.19.2');
expect(getExecOutput).toHaveBeenCalledWith('npm', [
'info',
'eas-cli@latest',
'version',
'--json',
]);
});
it('throws when npm outputs nothing', async () => {
mock.module('@actions/exec', () => ({
getExecOutput: mock().mockResolvedValue({ stdout: '' }),
}));
await expect(resolvePackageVersion('eas-cli', 'latest', 'npm')).rejects.toThrow(
`Could not resolve 'eas-cli@latest', invalid version provided.`
);
});
it('throws when npm outputs invalid json', async () => {
mock.module('@actions/exec', () => ({
getExecOutput: mock().mockResolvedValue({
stdout: 'Some npm versions might accidentally output logs instead of json',
}),
}));
await expect(resolvePackageVersion('eas-cli', 'latest', 'npm')).rejects.toThrow(
`Failed parsing 'eas-cli@latest' JSON formatted package information.`
);
});
it('throws when npm outputs empty string', async () => {
mock.module('@actions/exec', () => ({
getExecOutput: mock().mockResolvedValue({ stdout: JSON.stringify('') }),
}));
await expect(resolvePackageVersion('eas-cli', 'latest', 'npm')).rejects.toThrow(
`Could not resolve 'eas-cli@latest', no versions found.`
);
});
it('throws when npm outputs empty array', async () => {
mock.module('@actions/exec', () => ({
getExecOutput: mock().mockResolvedValue({ stdout: JSON.stringify([]) }),
}));
await expect(resolvePackageVersion('eas-cli', 'latest', 'npm')).rejects.toThrow(
`Could not resolve 'eas-cli@latest', no versions found.`
);
});
it('handles yarn manager by converting to npm', async () => {
const mockGetExecOutput = mock().mockResolvedValue({ stdout: JSON.stringify('16.19.2') });
mock.module('@actions/exec', () => ({
getExecOutput: mockGetExecOutput,
}));
await expect(resolvePackageVersion('eas-cli', 'latest', 'yarn')).resolves.toBe('16.19.2');
expect(mockGetExecOutput).toHaveBeenCalledWith('npm', [
'info',
'eas-cli@latest',
'version',
'--json',
]);
});
});
@@ -1,4 +1,6 @@
import { openDatabaseAsync, Database } from '../src/sqlite';
import { afterAll, beforeAll, describe, expect, it } from 'bun:test';
import { type Database, openDatabaseAsync } from '../sqlite';
describe(openDatabaseAsync, () => {
let db: Database;
+153
View File
@@ -0,0 +1,153 @@
import { describe, expect, it, mock } from 'bun:test';
import { delayAsync, retryAsync } from '../utils';
describe(retryAsync, () => {
it('returns result on first success', async () => {
const fn = mock().mockResolvedValue('success');
const result = await retryAsync(fn, 3);
expect(result).toBe('success');
expect(fn).toHaveBeenCalledTimes(1);
});
it('retries on failure then succeeds', async () => {
const fn = mock()
.mockRejectedValueOnce(new Error('First error'))
.mockRejectedValueOnce(new Error('Second error'))
.mockResolvedValueOnce('success');
// Create a test version of retryAsync that doesn't actually delay
const testRetryAsync = async <T>(
fn: () => Promise<T>,
retries: number,
_delayAfterErrorMs?: number
): Promise<T> => {
let lastError: Error | undefined;
for (let i = 0; i < retries; ++i) {
try {
return await fn();
} catch (e) {
if (e instanceof Error) {
lastError = e;
// Skip actual delay in tests
}
}
}
if (lastError) {
throw lastError;
}
throw new Error('retryAsync function did not return a value');
};
const result = await testRetryAsync(fn, 3, 100);
expect(result).toBe('success');
expect(fn).toHaveBeenCalledTimes(3);
});
it('throws last error when all retries fail', async () => {
const lastError = new Error('Final error');
const fn = mock()
.mockRejectedValueOnce(new Error('First error'))
.mockRejectedValueOnce(new Error('Second error'))
.mockRejectedValueOnce(lastError);
// Create a test version of retryAsync that doesn't actually delay
const testRetryAsync = async <T>(
fn: () => Promise<T>,
retries: number,
_delayAfterErrorMs?: number
): Promise<T> => {
let lastError: Error | undefined;
for (let i = 0; i < retries; ++i) {
try {
return await fn();
} catch (e) {
if (e instanceof Error) {
lastError = e;
// Skip actual delay in tests
}
}
}
if (lastError) {
throw lastError;
}
throw new Error('retryAsync function did not return a value');
};
await expect(testRetryAsync(fn, 3, 100)).rejects.toThrow('Final error');
expect(fn).toHaveBeenCalledTimes(3);
});
it('throws error when function never returns value', async () => {
// Mock the function to not throw but also not return anything
const mockRetryAsync = async (fn: any, retries: number, delay?: number) => {
for (let i = 0; i < retries; ++i) {
try {
const result = await fn();
if (result !== undefined) return result;
} catch (e) {
if (e instanceof Error && delay) {
await delayAsync(delay);
}
}
}
throw new Error('retryAsync function did not return a value');
};
const fn2 = mock().mockResolvedValue(undefined);
await expect(mockRetryAsync(fn2, 3)).rejects.toThrow(
'retryAsync function did not return a value'
);
});
it('uses default delay when not specified', async () => {
const fn = mock().mockRejectedValueOnce(new Error('Error')).mockResolvedValueOnce('success');
const mockDelayAsync = mock().mockResolvedValue(undefined);
mock.module('../utils', () => ({
delayAsync: mockDelayAsync,
retryAsync,
}));
await retryAsync(fn, 2);
expect(mockDelayAsync).toHaveBeenCalledWith(5000);
});
it('handles non-Error exceptions', async () => {
const fn = mock().mockRejectedValueOnce('string error').mockResolvedValueOnce('success');
const mockDelayAsync = mock().mockResolvedValue(undefined);
mock.module('../utils', () => ({
delayAsync: mockDelayAsync,
retryAsync,
}));
const result = await retryAsync(fn, 2);
expect(result).toBe('success');
expect(fn).toHaveBeenCalledTimes(2);
// Should not call delayAsync for non-Error exceptions
expect(mockDelayAsync).not.toHaveBeenCalled();
});
});
describe(delayAsync, () => {
it('resolves after specified time', async () => {
// Test that delayAsync returns a promise that resolves
// Don't test exact timing as it's unreliable in test environments
const promise = delayAsync(1);
expect(promise).toBeInstanceOf(Promise);
await expect(promise).resolves.toBeUndefined();
});
it('resolves immediately for zero delay', async () => {
const promise = delayAsync(0);
expect(promise).toBeInstanceOf(Promise);
await expect(promise).resolves.toBeUndefined();
});
});
+51
View File
@@ -0,0 +1,51 @@
import * as core from '@actions/core';
import assert from 'node:assert';
import os from 'node:os';
import path from 'node:path';
import process from 'node:process';
/**
* Auto-execute the action and pass errors to 'core.setFailed'.
* It also passes the full error, with stacktrace, to 'core.debug'.
* You'll need to enable debugging to view these full errors.
*
* @see https://github.com/actions/toolkit/blob/main/docs/action-debugging.md#step-debug-logs
*/
export function executeAction(action: () => Promise<void>) {
return action().catch((error: Error) => {
core.setFailed(error.message || error);
core.debug(error.stack || 'No stacktrace available');
});
}
/**
* Create a temporary path within the GitHub Actions worker for tooling.
* This implementation is based on `@actions/tool-cache`.
*
* @note This does not actually create the path
* @see https://github.com/actions/toolkit/blob/f58042f9cc16bcaa87afaa86c2974a8c771ce1ea/packages/tool-cache/src/tool-cache.ts#L660-L677
*/
export function createToolPath(name: string, version: string) {
assert(process.env['RUNNER_TOOL_CACHE'], 'Expected RUNNER_TOOL_CACHE to be defined');
return path.join(process.env['RUNNER_TOOL_CACHE'], name, version, os.arch());
}
/**
* Add extra `searchPath` to the global search path for require()
*/
export function addGlobalNodeSearchPath(searchPath: string) {
const nodePath = process.env['NODE_PATH'] || '';
const delimiter = process.platform === 'win32' ? ';' : ':';
const nodePaths = nodePath.split(delimiter);
nodePaths.push(searchPath);
process.env['NODE_PATH'] = nodePaths.join(delimiter);
require('node:module').Module._initPaths();
}
/**
* Install a "tool" from a node package.
* This will add the folder, containing the `node_modules`, to the global path.
*/
export function installToolFromPackage(dir: string) {
return core.addPath(path.join(dir, 'node_modules', '.bin'));
}
-144
View File
@@ -1,144 +0,0 @@
import { getInput, info, setFailed } from '@actions/core';
import {
appPlatformDisplayNames,
appPlatformEmojis,
BuildInfo,
easBuild,
getBuildLogsUrl,
parseCommand,
projectInfo,
projectOwner,
} from '../expo';
import { createIssueComment, createReaction, issueComment, Reaction } from '../github';
import { template } from '../utils';
import { executeAction } from '../worker';
export const MESSAGE_ID = `app:@{projectOwner}/{projectSlug} {cli} {cmdName}`;
export function commandInput() {
return {
reaction: '+1' as Reaction['content'],
githubToken: getInput('github-token'),
};
}
executeAction(commandAction);
export async function commandAction(input = commandInput()) {
const [comment, context] = issueComment();
if (!comment) {
return;
}
const command = parseCommand(comment);
if (!command) {
info("Comment didn't contain a valid expo/eas command");
return;
}
const cmdName = command.args[0];
if (command.cli !== 'eas' || cmdName !== 'build') {
setFailed(`We don't support \`${command.cli} ${cmdName}\` yet`);
await createIssueComment({
...context,
token: input.githubToken,
id: `${context.comment_id ?? context.number}`,
body: createHelpComment({
input: comment,
buildProfiles: [],
}),
});
return;
}
if (input.reaction) {
await createReaction({
...context,
token: input.githubToken,
content: input.reaction,
});
}
const project = await projectInfo('');
if (!project.owner) {
project.owner = await projectOwner();
}
const variables: Record<string, string> = {
projectName: project.name,
projectOwner: project.owner || '',
projectSlug: project.slug,
cli: command.cli,
cmdName,
};
const messageId = template(MESSAGE_ID, variables);
const result = await easBuild(command);
await createIssueComment({
...context,
token: input.githubToken,
id: messageId,
body: createBuildComment(result),
});
}
type HelpCommentInput = {
input: string;
buildProfiles: string[];
};
function createHelpComment(input: HelpCommentInput) {
const buildArgs = ['build'];
if (input.buildProfiles.length) {
buildArgs.push(`--profile <${input.buildProfiles.join('|')}>`);
}
return [
`> ${input.input}`,
'',
`I didn't recognize your command, please retry with one of the commands below.`,
createDetails({
summary: 'Available commands',
details: [
'### EAS-CLI',
`- \`eas ${buildArgs.join(' ')}\` start a build.`,
// '',
// '### EXPO-CLI',
// '- `expo publish` deploy a project to Expo hosting',
].join('\n'),
}),
].join('\n');
}
function createDetails({ summary, details }: { summary: string; details: string }): string {
return `<details><summary>${summary}</summary>\n\n${details}\n</details>`;
}
function createBuildComment(builds: BuildInfo[]) {
const buildLinks = builds.map(
build =>
` ${appPlatformEmojis[build.platform]} [${
appPlatformDisplayNames[build.platform]
} build details](${getBuildLogsUrl(build)}) `
);
const firstBuild = builds[0];
return [
`Commit ${firstBuild.gitCommitHash} is building...`,
'',
`|${buildLinks.join('|')}|`,
`|${Array(buildLinks.length).fill(':-:').join('|')}`,
'',
createDetails({
summary: 'Build Details',
details: [
'## Summary',
'',
`- **Distribution**: \`${firstBuild.distribution}\``,
`- **Build profile**: \`${firstBuild.buildProfile}\``,
`- **SDK version**: \`${firstBuild.sdkVersion}\``,
`- **App version**: \`${firstBuild.appVersion}\``,
`- **Release channel**: \`${firstBuild.appVersion}\``,
].join('\n'),
}),
].join('\n');
}
+10 -6
View File
@@ -1,17 +1,21 @@
import { info } from '@actions/core';
import assert from 'assert';
import assert from 'node:assert';
import { deleteCacheAsync } from '../cacher';
import { executeAction } from '../actions';
import { deleteCacheAsync } from '../caches';
import { collectFingerprintActionInput, saveDbToCacheAsync } from '../fingerprint';
import { isPushDefaultBranchContext } from '../github';
import { executeAction } from '../worker';
import { getRepoDefaultBranch, isPushBranchContext } from '../github';
import { retryAsync } from '../utils';
executeAction(runAction);
export async function runAction(input = collectFingerprintActionInput()) {
if (!isPushDefaultBranchContext()) {
const targetBranch = input.savingDbBranch ?? getRepoDefaultBranch();
assert(targetBranch);
if (!isPushBranchContext(targetBranch)) {
return;
}
info(`Saving fingerprint database to ${targetBranch} branch.`);
try {
const ref = process.env.GITHUB_REF;
@@ -20,5 +24,5 @@ export async function runAction(input = collectFingerprintActionInput()) {
} catch (e) {
info(`Failed to delete the cache: ${e}`);
}
await saveDbToCacheAsync(input.fingerprintDbCacheKey);
await retryAsync(() => saveDbToCacheAsync(input.fingerprintDbCacheKey), 3);
}
+26
View File
@@ -0,0 +1,26 @@
import { getInput, setOutput } from '@actions/core';
import { executeAction } from '../actions';
import { createFingerprintDbManagerAsync } from '../fingerprint';
executeAction(runAction);
async function runAction() {
const fingerprintHash = getInput('fingerprint-hash', { required: true });
const platform = getInput('platform', { required: true });
const packager = getInput('packager');
const fingerprintDbCacheKey = getInput('fingerprint-db-cache-key');
const dbManager = await createFingerprintDbManagerAsync(packager, fingerprintDbCacheKey);
const githubArtifact = await dbManager.getFirstGitHubArtifactAsync(fingerprintHash, platform);
if (githubArtifact) {
setOutput('artifact-id', githubArtifact.artifactId);
setOutput('artifact-url', githubArtifact.artifactUrl);
setOutput('run-id', githubArtifact.workflowRunId);
} else {
setOutput('artifact-id', '');
setOutput('artifact-url', '');
setOutput('run-id', '');
}
}
@@ -0,0 +1,71 @@
import { getInput } from '@actions/core';
import * as github from '@actions/github';
import { type Fingerprint as FingerprintType } from '@expo/fingerprint';
import assert from 'node:assert';
import { executeAction } from '../actions';
import { FingerprintDbManager, createFingerprintDbManagerAsync } from '../fingerprint';
executeAction(runAction);
async function runAction() {
const currentGitCommitHash = getInput('current-git-commit', { required: true });
const currentFingerprint = getInput('current-fingerprint', { required: true });
const platform = getInput('platform', { required: true });
const artifactId = getInput('artifact-id', { required: true });
const artifactUrl = getInput('artifact-url', { required: true });
const artifactDigest = getInput('artifact-digest', { required: true });
const packager = getInput('packager');
const fingerprintDbCacheKey = getInput('fingerprint-db-cache-key');
const dbManager = await createFingerprintDbManagerAsync(packager, fingerprintDbCacheKey);
await updateFingerprintDbAsync({
dbManager,
fingerprintDbCacheKey,
gitCommitHash: currentGitCommitHash,
fingerprint: currentFingerprint,
platform,
githubArtifact: {
artifactId,
artifactUrl,
artifactDigest,
workflowRunId: String(github.context.runId),
platform,
},
});
}
async function updateFingerprintDbAsync(params: {
dbManager: FingerprintDbManager;
fingerprintDbCacheKey: string;
gitCommitHash: string;
fingerprint: string;
platform: string;
githubArtifact: {
artifactId: string;
artifactUrl: string;
artifactDigest: string;
workflowRunId: string;
platform: string;
};
}) {
const fingerprint = JSON.parse(params.fingerprint) as FingerprintType;
await params.dbManager.upsertFingerprintByGitCommitHashAsync(params.gitCommitHash, {
fingerprint,
});
const fingerprintEntity = await params.dbManager.getEntityFromGitCommitHashAsync(
params.gitCommitHash
);
assert(fingerprintEntity, 'Fingerprint entity should exist after upsert');
const artifactsManager = params.dbManager.getArtifactsManager();
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprintEntity.id,
artifactId: params.githubArtifact.artifactId,
artifactUrl: params.githubArtifact.artifactUrl,
artifactDigest: params.githubArtifact.artifactDigest,
workflowRunId: params.githubArtifact.workflowRunId,
platform: params.githubArtifact.platform,
});
}
+14 -4
View File
@@ -1,20 +1,30 @@
import { setOutput } from '@actions/core';
import { executeAction } from '../actions';
import {
createFingerprintOutputAsync,
collectFingerprintActionInput,
createFingerprintDbManagerAsync,
createFingerprintOutputAsync,
} from '../fingerprint';
import { executeAction } from '../worker';
executeAction(runAction);
export async function runAction(input = collectFingerprintActionInput()) {
const dbManager = await createFingerprintDbManagerAsync(input.packager, input.fingerprintDbCacheKey);
const { currentFingerprint, diff } = await createFingerprintOutputAsync(dbManager, input);
const dbManager = await createFingerprintDbManagerAsync(
input.packager,
input.fingerprintDbCacheKey
);
const { currentFingerprint, previousFingerprint, diff } = await createFingerprintOutputAsync(
dbManager,
input
);
await dbManager.upsertFingerprintByGitCommitHashAsync(input.currentGitCommitHash, {
fingerprint: currentFingerprint,
});
setOutput('previous-fingerprint', previousFingerprint);
setOutput('current-fingerprint', currentFingerprint);
setOutput('previous-git-commit', input.previousGitCommitHash);
setOutput('current-git-commit', input.currentGitCommitHash);
setOutput('fingerprint-diff', diff);
}
-399
View File
@@ -1,399 +0,0 @@
import { getBooleanInput, getInput, setOutput, group, setFailed, info } from '@actions/core';
import { context } from '@actions/github';
import type { ExpoConfig } from '@expo/config';
import type { Fingerprint, FingerprintSource } from '@expo/fingerprint';
import assert from 'assert';
import { validate as isValidUUID } from 'uuid';
import { deleteCacheAsync } from '../cacher';
import {
createEasBuildFromRawCommandAsync,
BuildInfo,
getBuildLogsUrl,
appPlatformEmojis,
cancelEasBuildAsync,
queryEasBuildInfoAsync,
} from '../expo';
import {
FingerprintDbManager,
collectFingerprintActionInput,
createFingerprintDbManagerAsync,
createFingerprintOutputAsync,
saveDbToCacheAsync,
} from '../fingerprint';
import {
createIssueComment,
fetchIssueComment,
getGitCommandMessageAsync,
getPullRequestFromGitCommitShaAsync,
hasPullContext,
isPushDefaultBranchContext,
pullContext,
} from '../github';
import { loadProjectConfig } from '../project';
import { template } from '../utils';
import { executeAction } from '../worker';
export const MESSAGE_ID = 'projectId:previewBuild:{projectId}';
export function collectPreviewBuildActionInput() {
return {
...collectFingerprintActionInput(),
command: getInput('command'),
shouldComment: !getInput('comment') || getBooleanInput('comment'),
commentId: getInput('comment-id') || MESSAGE_ID,
easBuildMessage: getInput('eas-build-message'),
};
}
executeAction(previewAction);
export async function previewAction(input = collectPreviewBuildActionInput()) {
const config = await loadProjectConfig(input.workingDirectory);
if (!config.extra?.eas?.projectId) {
return setFailed(
'Missing "extra.eas.projectId" in app.json or app.config.js. Please run `eas build:configure` first.'
);
}
if (!hasPullContext()) {
handleNonPullRequest(config, input);
return;
}
const dbManager = await createFingerprintDbManagerAsync(input.packager, input.fingerprintDbCacheKey);
const { currentFingerprint, diff } = await createFingerprintOutputAsync(dbManager, input);
if (diff.length === 0) {
info('Fingerprint is compatible, no new builds are required.');
await maybeUpdateFingerprintDbAsync({
dbManager,
githubToken: input.githubToken,
fingerprintDbCacheKey: input.fingerprintDbCacheKey,
gitCommitHash: input.currentGitCommitHash,
manyBuilds: [{ fingerprint: currentFingerprint }],
});
await maybeCancelPreviousBuildsAsync(config, input);
const variables = getVariables(config, []);
const messageId = template(input.commentId, variables);
const latestEasEntity = await dbManager.getLatestEasEntityFromFingerprintAsync(currentFingerprint.hash);
const latestEasBuildInfo = latestEasEntity?.easBuildId
? await queryEasBuildInfoAsync(input.workingDirectory, latestEasEntity.easBuildId)
: null;
const messageBody = createMessageBodyFingerprintCompatible(latestEasBuildInfo);
await maybeCreateCommentAsync(input, messageId, messageBody);
setOutputs(variables, messageId, messageBody);
return;
}
info('Fingerprint is changed, creating new builds...');
info(`Fingerprint diff: ${JSON.stringify(diff, null, 2)}`);
await maybeCancelPreviousBuildsAsync(config, input);
const command = sanitizeCommand(input.command);
const buildMessage =
input.easBuildMessage ||
(await getGitCommandMessageAsync({ token: input.githubToken }, input.currentGitCommitHash));
const args = ['--message', buildMessage];
const builds = await group(`Run eas ${command}"`, () =>
createEasBuildFromRawCommandAsync(input.workingDirectory, command, args)
);
await maybeUpdateFingerprintDbAsync({
dbManager,
githubToken: input.githubToken,
fingerprintDbCacheKey: input.fingerprintDbCacheKey,
gitCommitHash: input.currentGitCommitHash,
manyBuilds: builds.map(build => ({
easBuildId: build.id,
fingerprint: currentFingerprint,
})),
});
const variables = getVariables(config, builds);
const messageId = template(input.commentId, variables);
const messageBody = createMessageBodyInBuilding(builds, diff, input);
await maybeCreateCommentAsync(input, messageId, messageBody);
setOutputs(variables, messageId, messageBody);
}
/**
* Validate and sanitize the command that creates the update.
* It also ensures that the command starts with `eas ...` to make sure we can run it.
*/
function sanitizeCommand(input: string): string {
let command = input.trim();
if (!command.startsWith('eas')) {
throw new Error(`The command must start with "eas", received "${command}"`);
} else {
command = command.replace(/^eas/, '').trim();
}
return command;
}
async function maybeCancelPreviousBuildsAsync(
config: ExpoConfig,
input: ReturnType<typeof collectPreviewBuildActionInput>
) {
const variables = getVariables(config, []);
const messageId = template(input.commentId, variables);
const comment = await fetchIssueComment({
...pullContext(),
token: input.githubToken,
id: messageId,
});
if (!comment?.body) {
return [];
}
const easBuildIds = parseCommentForEasMetadata(comment.body);
for (const buildId of easBuildIds) {
info(`Canceling previous build: ${buildId}`);
await cancelEasBuildAsync(input.workingDirectory, buildId);
}
}
//#region Comments
async function maybeCreateCommentAsync(
input: ReturnType<typeof collectPreviewBuildActionInput>,
messageId: string,
messageBody: string
) {
if (!input.shouldComment) {
info(`Skipped comment: 'comment' is disabled`);
} else if (!hasPullContext()) {
info(`Skipped comment: action was not ran from a pull request`);
} else {
await createIssueComment({
...pullContext(),
token: input.githubToken,
id: messageId,
body: messageBody,
});
}
}
function setOutputs(variables: ReturnType<typeof getVariables>, messageId: string, messageBody: string) {
for (const [name, value] of Object.entries(variables)) {
setOutput(name, value);
}
setOutput('commentId', messageId);
setOutput('comment', messageBody);
}
/**
* Generate useful variables for the message body, and as step outputs.
*/
export function getVariables(config: ExpoConfig, builds: BuildInfo[]) {
const projectId: string = config.extra?.eas?.projectId;
const android = builds.find(build => build.platform === 'ANDROID');
const ios = builds.find(build => build.platform === 'IOS');
const gitCommitHash = android?.gitCommitHash || ios?.gitCommitHash || '';
return {
projectId,
gitCommitHash,
androidBuildId: android?.id || '',
androidLink: android != null ? getBuildLogsUrl(android) : '',
androidAppVersion: android?.appVersion || '',
iosBuildId: ios?.id || '',
iosLink: ios != null ? getBuildLogsUrl(ios) : '',
iosAppVersion: ios?.appVersion || '',
};
}
function createDetails({
summary,
details,
delim = '\n',
}: {
summary: string;
details: string;
delim?: string;
}): string {
return `<details><summary>${summary}</summary>${delim.repeat(2)}${details}${delim}</details>`;
}
function createMessageBodyInBuilding(
builds: BuildInfo[],
fingerprintDiff: FingerprintSource[],
input: ReturnType<typeof collectPreviewBuildActionInput>
) {
const tableRows: string[] = [];
for (const build of builds) {
let name;
if (build.platform === 'ANDROID') {
name = `${appPlatformEmojis.ANDROID} Android build`;
} else if (build.platform === 'IOS') {
name = `${appPlatformEmojis.IOS} iOS build`;
} else {
name = 'Unknown build';
}
const buildPageURL = getBuildLogsUrl(build);
const details = createDetails({
summary: 'Details',
details: [
`Distribution: \`${build.distribution}\``,
`Build profile: \`${build.buildProfile}\``,
`SDK version: \`${build.sdkVersion}\``,
`App version: \`${build.appVersion}\``,
].join('<br>'),
delim: '',
});
tableRows.push(`| ${name} | [View build page](${buildPageURL}) | ${details} |`);
}
return [
createCommentForEasMetadata(builds),
'',
`Fingerprint is changed, new EAS Build(s) are now in pipeline.`,
'',
`Build with commit ${input.currentGitCommitHash}`,
'',
'| Name | Build | Details |',
'| :-- | :-- | :-- |',
...tableRows,
'',
createDetails({
summary: 'Fingerprint diff',
details: ['```json', JSON.stringify(fingerprintDiff, null, 2), '```'].join('\n'),
}),
'',
`> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview-build#example-workflows)`,
].join('\n');
}
function createMessageBodyFingerprintCompatible(latestEasBuildInfo: BuildInfo | null) {
const easBuildMessage =
latestEasBuildInfo != null
? `Latest compatible build on EAS found. You can download the build from the [EAS build page](${getBuildLogsUrl(
latestEasBuildInfo
)}).`
: '';
return [
`Fingerprint is compatible, no new builds are required.`,
easBuildMessage,
'',
`> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview-build#example-workflows)`,
].join('\n');
}
function createCommentForEasMetadata(builds: BuildInfo[]) {
if (builds.length === 0) {
return '';
}
const easBuildIds = JSON.stringify(builds.map(build => build.id));
return `<!-- EAS_BUILD_IDS=${easBuildIds} -->`;
}
function parseCommentForEasMetadata(comment: string): string[] {
const match = comment.match(/<!-- EAS_BUILD_IDS=(.*) -->/);
if (match == null) {
return [];
}
let metadata;
try {
metadata = JSON.parse(match[1]);
} catch {}
if (Array.isArray(metadata)) {
return metadata
.map(value => (typeof value === 'string' && isValidUUID(value) ? value : null))
.filter((value): value is string => !!value);
}
return [];
}
//#endregion
async function maybeUpdateFingerprintDbAsync(params: {
dbManager: FingerprintDbManager;
githubToken: string;
fingerprintDbCacheKey: string;
gitCommitHash: string;
manyBuilds: {
easBuildId?: string;
fingerprint: Fingerprint;
}[];
}) {
if (!isPushDefaultBranchContext()) {
return;
}
for (const build of params.manyBuilds) {
await params.dbManager.upsertFingerprintByGitCommitHashAsync(params.gitCommitHash, {
easBuildId: build.easBuildId,
fingerprint: build.fingerprint,
});
}
try {
const ref = process.env.GITHUB_REF;
assert(ref != null, 'GITHUB_REF is not defined');
await deleteCacheAsync(params.githubToken, params.fingerprintDbCacheKey, ref);
} catch (e) {
info(`Failed to delete the cache: ${e}`);
}
await saveDbToCacheAsync(params.fingerprintDbCacheKey);
}
//#region Non pull request context
async function handleNonPullRequest(config: ExpoConfig, input: ReturnType<typeof collectPreviewBuildActionInput>) {
info('Non pull request context, skipping comment.');
if (!isPushDefaultBranchContext()) {
return;
}
info('Updating fingerprint database for the default branch push event.');
const dbManager = await createFingerprintDbManagerAsync(input.packager, input.fingerprintDbCacheKey);
const { currentFingerprint } = await createFingerprintOutputAsync(dbManager, input);
const associatedPRs = await getPullRequestFromGitCommitShaAsync(
{ token: input.githubToken },
input.currentGitCommitHash
);
const easBuildIds = (
await Promise.all(associatedPRs.map(pr => queryEasBuildIdsFromPrAsync(pr.prNumber, config, input)))
).flat();
let manyBuilds: { easBuildId?: string; fingerprint: Fingerprint }[];
if (easBuildIds.length > 0) {
manyBuilds = easBuildIds.map(easBuildId => ({
easBuildId,
fingerprint: currentFingerprint,
}));
info(`Found EAS build IDs in associated PRs: ${easBuildIds.join(', ')}`);
} else {
manyBuilds = [{ fingerprint: currentFingerprint }];
info('No EAS build IDs found in associated PRs, creating a fingerprint entry without EAS build ID.');
}
await maybeUpdateFingerprintDbAsync({
dbManager,
githubToken: input.githubToken,
fingerprintDbCacheKey: input.fingerprintDbCacheKey,
gitCommitHash: input.currentGitCommitHash,
manyBuilds,
});
const variables = getVariables(config, []);
setOutputs(variables, '', '');
}
async function queryEasBuildIdsFromPrAsync(
prNumber: number,
config: ExpoConfig,
input: ReturnType<typeof collectPreviewBuildActionInput>
): Promise<string[]> {
const variables = getVariables(config, []);
const messageId = template(input.commentId, variables);
const comment = await fetchIssueComment({
...context.repo,
number: prNumber,
token: input.githubToken,
id: messageId,
});
if (!comment?.body) {
return [];
}
return parseCommentForEasMetadata(comment.body);
}
//#endregion
-68
View File
@@ -1,68 +0,0 @@
import { getBooleanInput, getInput, setOutput, info, warning } from '@actions/core';
import { projectDeepLink, projectInfo, projectLink, projectOwner, projectQR } from '../expo';
import { createIssueComment, pullContext } from '../github';
import { template } from '../utils';
import { executeAction } from '../worker';
export const DEFAULT_ID = `app:@{projectOwner}/{projectSlug} channel:{channel}`;
export const DEFAULT_MESSAGE =
`This pull request was automatically deployed using [Expo GitHub Actions](https://github.com/expo/expo-github-action/tree/main/preview-comment)!\n` +
`\n- Project: **@{projectOwner}/{projectSlug}**` +
`\n- Channel: **{channel}**` +
`\n\n<a href="{projectQR}"><img src="{projectQR}" height="200px" width="200px"></a>`;
export function commentInput() {
return {
channel: getInput('channel') || 'default',
comment: !getInput('comment') || getBooleanInput('comment'),
message: getInput('message') || DEFAULT_MESSAGE,
messageId: getInput('message-id') || DEFAULT_ID,
project: getInput('project'),
githubToken: getInput('github-token'),
};
}
executeAction(commentAction);
export async function commentAction(input = commentInput()) {
warning(
'Expo publish is deprecated, but will be suported until 2024. Read more: https://blog.expo.dev/sunsetting-expo-publish-and-classic-updates-6cb9cd295378'
);
const project = await projectInfo(input.project);
if (!project.owner) {
project.owner = await projectOwner();
}
const variables: Record<string, string> = {
projectLink: projectLink(project, input.channel),
projectDeepLink: projectDeepLink(project, input.channel),
projectName: project.name,
projectOwner: project.owner || '',
projectQR: projectQR(project, input.channel),
projectSlug: project.slug,
channel: input.channel,
};
const messageId = template(input.messageId, variables);
const messageBody = template(input.message, variables);
if (!input.comment) {
info(`Skipped comment: 'comment' is disabled`);
} else {
await createIssueComment({
...pullContext(),
token: input.githubToken,
id: messageId,
body: messageBody,
});
}
for (const name in variables) {
setOutput(name, variables[name]);
}
setOutput('messageId', messageId);
setOutput('message', messageBody);
}
-267
View File
@@ -1,267 +0,0 @@
import { getBooleanInput, getInput, setOutput, group, setFailed, info, debug } from '@actions/core';
import { ExpoConfig } from '@expo/config';
import { assertEasVersion, createUpdate, EasUpdate, getUpdateGroupQr, getUpdateGroupWebsite } from '../eas';
import { projectAppType } from '../expo';
import { createIssueComment, hasPullContext, pullContext } from '../github';
import { loadProjectConfig } from '../project';
import { template } from '../utils';
import { executeAction } from '../worker';
export const MESSAGE_ID = 'projectId:{projectId}';
export function previewInput() {
const qrTarget = getInput('qr-target') || undefined;
if (qrTarget && !['expo-go', 'dev-client'].includes(qrTarget)) {
throw new Error(`Invalid QR code target: "${qrTarget}", expected "expo-go" or "dev-build"`);
}
return {
command: getInput('command'),
shouldComment: !getInput('comment') || getBooleanInput('comment'),
commentId: getInput('comment-id') || MESSAGE_ID,
workingDirectory: getInput('working-directory'),
githubToken: getInput('github-token'),
// Note, `dev-build` is prefered, but `dev-client` is supported to aovid confusion
qrTarget: qrTarget as undefined | 'expo-go' | 'dev-build' | 'dev-client',
};
}
executeAction(previewAction);
export async function previewAction(input = previewInput()) {
// See: https://github.com/expo/eas-cli/releases/tag/v3.3.2
// See: https://github.com/expo/eas-cli/releases/tag/v3.4.0
// We need the revised `eas update --json` output to parse the update information.
await assertEasVersion('>=3.4.0');
// Create the update before loading project information.
// When the project needs to be set up, EAS project ID won't be available before this command.
const command = sanitizeCommand(input.command);
const updates = await group(`Run eas ${command}"`, () => createUpdate(input.workingDirectory, command));
const update = updates.find(update => !!update);
if (!update) {
return setFailed(`No update found in command output.`);
}
const config = await loadProjectConfig(input.workingDirectory);
if (!config.extra?.eas?.projectId) {
return setFailed(`Missing 'extra.eas.projectId' in app.json or app.config.js.`);
}
const variables = getVariables(config, updates, input);
const messageId = template(input.commentId, variables);
const messageBody = createSummary(updates, variables);
if (!input.shouldComment) {
info(`Skipped comment: 'comment' is disabled`);
} else if (!hasPullContext()) {
info(`Skipped comment: action was not ran from a pull request`);
} else {
await createIssueComment({
...pullContext(),
token: input.githubToken,
id: messageId,
body: messageBody,
});
}
for (const [name, value] of Object.entries(variables)) {
setOutput(name, value);
}
setOutput('commentId', messageId);
setOutput('comment', messageBody);
}
/**
* Validate and sanitize the command that creates the update.
* This ensures that both `--json` and `--non-interactive` flags are present.
* It also ensures that the command starts with `eas ...` to make sure we can run it.
*/
function sanitizeCommand(input: string): string {
let command = input.trim();
if (!command.startsWith('eas')) {
throw new Error(`The command must start with "eas", received "${command}"`);
} else {
command = command.replace(/^eas/, '').trim();
}
if (!command.includes('--json')) {
command += ' --json';
}
if (!command.includes('--non-interactive')) {
command += ' --non-interactive';
}
return command;
}
/**
* Generate useful variables for the message body, and as step outputs.
*/
export function getVariables(config: ExpoConfig, updates: EasUpdate[], options: ReturnType<typeof previewInput>) {
const projectId: string = config.extra?.eas?.projectId;
const android = updates.find(update => update.platform === 'android');
const ios = updates.find(update => update.platform === 'ios');
const appSchemes = getSchemesInOrderFromConfig(config) || [];
const appSlug = config.slug;
const qrTarget = getQrTarget(options);
return {
// EAS / Expo specific
projectId,
projectName: config.name,
projectSlug: appSlug,
projectScheme: appSchemes[0] || '', // This is the longest scheme from one or more custom app schemes
projectSchemes: JSON.stringify(appSchemes), // These are all custom app schemes, in order from longest to shortest as JSON
// Shared update properties
// Note, only use these properties when the update groups are identical
groupId: updates[0].group,
runtimeVersion: updates[0].runtimeVersion,
qr: getUpdateGroupQr({ projectId, updateGroupId: updates[0].group, appSlug, qrTarget }),
link: getUpdateGroupWebsite({ projectId, updateGroupId: updates[0].group }),
// These are safe to access regardless of the update groups
branchName: updates[0].branch,
message: updates[0].message,
createdAt: updates[0].createdAt,
gitCommitHash: updates[0].gitCommitHash,
// Android update
androidId: android?.id || '',
androidGroupId: android?.group || '',
androidBranchName: android?.branch || '',
androidManifestPermalink: android?.manifestPermalink || '',
androidMessage: android?.message || '',
androidRuntimeVersion: android?.runtimeVersion || '',
androidQR: android ? getUpdateGroupQr({ projectId, updateGroupId: android.group, appSlug, qrTarget }) : '',
androidLink: android ? getUpdateGroupWebsite({ projectId, updateGroupId: android.group }) : '',
// iOS update
iosId: ios?.id || '',
iosGroupId: ios?.group || '',
iosBranchName: ios?.branch || '',
iosManifestPermalink: ios?.manifestPermalink || '',
iosMessage: ios?.message || '',
iosRuntimeVersion: ios?.runtimeVersion || '',
iosQR: ios ? getUpdateGroupQr({ projectId, updateGroupId: ios.group, appSlug, qrTarget }) : '',
iosLink: ios ? getUpdateGroupWebsite({ projectId, updateGroupId: ios.group }) : '',
};
}
export function getQrTarget(input: Pick<ReturnType<typeof previewInput>, 'qrTarget' | 'workingDirectory'>) {
if (!input.qrTarget) {
const appType = projectAppType(input.workingDirectory);
debug(`Using inferred QR code target: "${appType}"`);
return appType;
}
switch (input.qrTarget) {
// Note, `dev-build` is prefered, but `dev-client` is supported to aovid confusion
case 'dev-client':
case 'dev-build':
debug(`Using QR code target: "dev-build"`);
return 'dev-build';
case 'expo-go':
debug(`Using QR code target: "expo-go"`);
return 'expo-go';
default:
throw new Error(`Invalid QR code target: "${input.qrTarget}", expected "expo-go" or "dev-build"`);
}
}
/**
* Retrieve the app schemes, in correct priority order, from project config.
* - If the scheme is a string, return `[scheme]`.
* - If the scheme is an array, return the schemes sorted by length, longest first.
* - If the scheme is empty/incorrect, return an empty array.
*/
export function getSchemesInOrderFromConfig(config: ExpoConfig) {
if (typeof config.scheme === 'string') {
return [config.scheme];
}
if (Array.isArray(config.scheme)) {
return config.scheme.sort((a, b) => b.length - a.length);
}
return [];
}
/**
* Generate the message body for a single update.
* Note, this is not configurable, but you can use the variables used to construct your own.
*/
export function createSummary(updates: EasUpdate[], vars: ReturnType<typeof getVariables>) {
// If all updates are in the same group, we can unify QR codes
if (updates.every(update => update.group === updates[0].group)) {
return createSingleQrSummary(updates, vars);
}
return createMultipleQrSummary(updates, vars);
}
function createSummaryHeader(updates: EasUpdate[], vars: ReturnType<typeof getVariables>) {
const platformName = `Platform${updates.length === 1 ? '' : 's'}`;
const platformValue = updates
.map(update => update.platform)
.sort((a, b) => a.localeCompare(b))
.map(platform => `**${platform}**`)
.join(', ');
const appSchemes = vars.projectScheme ? `- Scheme → **${JSON.parse(vars.projectSchemes).join('**, **')}**` : '';
return `🚀 Expo preview is ready!
- Project → **${vars.projectSlug}**
- ${platformName} → ${platformValue}
${appSchemes}`.trim();
}
function createSingleQrSummary(updates: EasUpdate[], vars: ReturnType<typeof getVariables>) {
return `${createSummaryHeader(updates, vars)}
- Runtime Version → **${vars.runtimeVersion}**
- **[More info](${vars.link})**
<a href="${vars.qr}"><img src="${vars.qr}" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)`;
}
function createMultipleQrSummary(updates: EasUpdate[], vars: ReturnType<typeof getVariables>) {
const createTableHeader = (segments: string[]) => segments.filter(Boolean).join(' <br /> ');
const androidHeader = createTableHeader([
'Android',
vars.androidId && vars.androidRuntimeVersion ? `_(${vars.androidRuntimeVersion})_` : '',
vars.androidId && vars.androidLink ? `**[More info](${vars.androidLink})**` : '',
]);
const androidQr =
vars.androidId && vars.androidQR
? `<a href="${vars.androidQR}"><img src="${vars.androidQR}" width="250px" height="250px" /></a>`
: null;
const iosHeader = createTableHeader([
'iOS',
vars.iosId && vars.iosRuntimeVersion ? `_(${vars.iosRuntimeVersion})_` : '',
vars.iosId && vars.iosLink ? `**[More info](${vars.iosLink})**` : '',
]);
const iosQr =
vars.iosId && vars.iosQR
? `<a href="${vars.iosQR}"><img src="${vars.iosQR}" width="250px" height="250px" /></a>`
: null;
return `${createSummaryHeader(updates, vars)}
${androidHeader} | ${iosHeader}
--- | ---
${androidQr || '_not created_'} | ${iosQr || '_not created_'}
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)`;
}
+51
View File
@@ -0,0 +1,51 @@
import { getInput, info, isDebug, setOutput } from '@actions/core';
import spawnAsync from '@expo/spawn-async';
import fs from 'node:fs';
import path from 'node:path';
import { executeAction } from '../actions';
import { determineSourceAppPathAsync } from '../repack-app/repackUtils';
executeAction(runAction);
async function runAction() {
const platform = getInput('platform', { required: true });
const sourceApp = getInput('source-app', { required: true });
const outputDirectory = getInput('output-directory');
const workingDirectory = getInput('working-directory') || process.cwd();
const repackVersion = getInput('repack-version') || 'latest';
let outputDirectoryStat: fs.Stats | null;
try {
outputDirectoryStat = await fs.promises.stat(outputDirectory);
} catch {
outputDirectoryStat = null;
}
if (outputDirectoryStat != null && !outputDirectoryStat.isDirectory()) {
throw new Error(`The 'output-directory' must be a directory: ${outputDirectory}`);
}
await fs.promises.mkdir(outputDirectory, { recursive: true });
const sourceAppPath = await determineSourceAppPathAsync(sourceApp);
const outputFile = path.join(outputDirectory, path.basename(sourceAppPath));
info(`Repacking app - sourceAppPath[${sourceAppPath}] outputFile[${outputFile}]`);
const repackArgs: string[] = [
`@expo/repack-app@${repackVersion}`,
'--platform',
platform,
'--source-app',
sourceAppPath,
'--output',
outputFile,
];
if (isDebug()) {
repackArgs.push('--verbose');
}
await spawnAsync('npx', repackArgs, {
cwd: workingDirectory,
stdio: 'inherit',
});
info(`Repacked app created at ${outputFile}`);
setOutput('output-path', outputFile);
}
-76
View File
@@ -1,76 +0,0 @@
import { getBooleanInput, getInput, group, info } from '@actions/core';
import { restoreFromCache, saveToCache } from '../cacher';
import { authenticate } from '../expo';
import { installPackage, resolvePackage } from '../packager';
import { executeAction, findTool, installToolFromPackage, patchWatchers } from '../worker';
export function setupInput() {
return {
easCache: !getInput('eas-cache') || getBooleanInput('eas-cache'),
easVersion: getInput('eas-version'),
expoCache: !getInput('expo-cache') || getBooleanInput('expo-cache'),
expoVersion: getInput('expo-version'),
packager: getInput('packager') || 'yarn',
patchWatchers: !getInput('patch-watchers') || getBooleanInput('patch-watchers'),
token: getInput('token'),
};
}
executeAction(setupAction);
export async function setupAction(input = setupInput()) {
if (!input.expoVersion) {
info(`Skipped installing expo-cli: 'expo-version' not provided.`);
} else {
const version = await resolvePackage('expo-cli', input.expoVersion);
const message = input.expoCache
? `Installing expo-cli (${version}) from cache or with ${input.packager}`
: `Installing expo-cli (${version}) with ${input.packager}`;
await group(message, () => installCli('expo-cli', version, input.packager, input.expoCache));
}
if (!input.easVersion) {
info(`Skipped installing eas-cli: 'eas-version' not provided.`);
} else {
const version = await resolvePackage('eas-cli', input.easVersion);
const message = input.easCache
? `Installing eas-cli (${version}) from cache or with ${input.packager}`
: `Installing eas-cli (${version}) with ${input.packager}`;
await group(message, () => installCli('eas-cli', version, input.packager, input.easCache));
}
if (!input.token) {
info(`Skipped authentication: 'token' not provided.`);
} else {
await group('Validating authenticated account', () =>
authenticate(input.token, input.easVersion ? 'eas' : input.expoVersion ? 'expo' : undefined)
);
}
if (!input.patchWatchers) {
info(`Skipped patching watchers: 'patch-watchers' disabled.`);
} else {
await group(`Patching system watchers for the 'ENOSPC' error`, patchWatchers);
}
}
async function installCli(name: string, version: string, packager: string, useCache = true) {
let cliPath = findTool(name, version) || null;
if (!cliPath && useCache) {
cliPath = await restoreFromCache(name, version, packager);
}
if (!cliPath) {
cliPath = await installPackage(name, version, packager);
if (useCache) {
await saveToCache(name, version, packager);
}
}
installToolFromPackage(cliPath);
}
-106
View File
@@ -1,106 +0,0 @@
import { saveCache, restoreCache, ReserveCacheError, isFeatureAvailable } from '@actions/cache';
import { warning } from '@actions/core';
import { context } from '@actions/github';
import os from 'os';
import { githubApi } from './github';
import { toolPath } from './worker';
/**
* Determine if the remote cache is available and can be used.
*/
export function cacheIsAvailable(): boolean {
return isFeatureAvailable();
}
/**
* Get the exact cache key for the package.
* We can prefix this when there are breaking changes in this action.
*/
export function cacheKey(name: string, version: string, manager: string): string {
return `${name}-${process.platform}-${os.arch()}-${manager}-${version}`;
}
/**
* Restore a directory from the remote cache.
*/
export async function restoreCacheAsync(cachePath: string, cacheKey: string): Promise<string | null> {
if (!cacheIsAvailable()) {
warning(`Skipped restoring from remote cache, not available.`);
return null;
}
try {
if (await restoreCache([cachePath], cacheKey)) {
return cachePath;
}
} catch (error) {
handleCacheError(error);
}
return null;
}
/**
* Save a directory to the remote cache.
*/
export async function saveCacheAsync(cachePath: string, cacheKey: string): Promise<void> {
if (!cacheIsAvailable()) {
warning(`Skipped saving to remote cache, not available.`);
return;
}
try {
await saveCache([cachePath], cacheKey);
} catch (error) {
handleCacheError(error);
}
}
/**
* Delete a cache key from the remote cache.
* Note that is not using the official API from @actions/cache but using the GitHub API directly.
*/
export async function deleteCacheAsync(githubToken: string, cacheKey: string, ref: string): Promise<void> {
const github = githubApi({ token: githubToken });
await github.rest.actions.deleteActionsCacheByKey({
...context.repo,
key: cacheKey,
ref,
});
}
/**
* Restore a tool from the remote cache.
* This will install the tool back into the local tool cache.
*/
export function restoreFromCache(name: string, version: string, manager: string) {
return restoreCacheAsync(toolPath(name, version), cacheKey(name, version, manager));
}
/**
* Save a tool to the remote cache.
* This will fetch the tool from the local tool cache.
*/
export function saveToCache(name: string, version: string, manager: string) {
return saveCacheAsync(toolPath(name, version), cacheKey(name, version, manager));
}
/**
* Try to handle incoming cache errors.
* Because workers can operate in environments without cache configured,
* we need to make sure to only skip the cache instead of fail.
*
* Currently we handle these types of errors:
* - ReserveCacheError
* - "cache service url not found"
*/
export function handleCacheError(error: Error | unknown): void {
const isReserveCacheError = error instanceof ReserveCacheError;
if (isReserveCacheError) {
warning('Skipped remote cache, encountered error:');
warning(error.message);
} else {
throw error;
}
}
+61
View File
@@ -0,0 +1,61 @@
import * as cache from '@actions/cache';
import * as core from '@actions/core';
import { context } from '@actions/github';
import { githubApi } from './github';
/**
* Download or restore from the remote persistent cache to the local folder.
* This will warn and skip when the feature is not available, e.g. on custom runners.
*/
export async function downloadCache(cachePath: string, cacheKey: string) {
if (!cache.isFeatureAvailable()) {
core.warning('GitHub Actions cache is not available, skipping cache.');
return null;
}
return await cache
.restoreCache([cachePath], cacheKey)
.then((cacheKeyHit) => (cacheKeyHit ? cachePath : null), handleCacheErrors);
}
/**
* Upload or store the local folder to the remote persistent cache.
* This will warn and skip when the feature is not available, e.g. on custom runners.
*/
export async function uploadCache(cachePath: string, cacheKey: string) {
if (!cache.isFeatureAvailable()) {
core.warning('GitHub Actions cache is not available, skipping cache.');
return null;
}
await cache.saveCache([cachePath], cacheKey).catch(handleCacheErrors);
}
/**
* Delete a cache key from the remote cache.
* Note that is not using the official API from @actions/cache but using the GitHub API directly.
*/
export async function deleteCacheAsync(
githubToken: string,
cacheKey: string,
ref: string
): Promise<void> {
const github = githubApi({ token: githubToken });
await github.rest.actions.deleteActionsCacheByKey({
...context.repo,
key: cacheKey,
ref,
});
}
/** Handle caching errors that should not block the GitHub Action run */
function handleCacheErrors(error: unknown) {
if (error instanceof cache.ReserveCacheError) {
core.warning('Skipping GitHub Actions cache, cache is reserved by another job.');
core.warning(error.message);
return null;
}
throw error;
}
-106
View File
@@ -1,106 +0,0 @@
import { getExecOutput } from '@actions/exec';
import { which } from '@actions/io';
import type { Platform } from '@expo/config';
import semver from 'semver';
import { URL } from 'url';
export interface EasUpdate {
/** The unique ID of the platform specific update */
id: string;
/** When the update was created */
createdAt: string;
/** The unique ID of the update for both platforms */
group: string;
/** The branch name where this update was created */
branch: string;
/** The message used to describe this update */
message: string;
/** The runtime version for which this update is compatible */
runtimeVersion: string;
/** Which platform this update belongs to */
platform: Platform;
/** The permanent link that refers the platform specific update */
manifestPermalink: string;
/** The git commit hash that was recognizable when creating this update */
gitCommitHash: string;
}
/** We can only run the `preview` sub-action with newer versions of EAS CLI */
export async function assertEasVersion(versionRange: string) {
let stdout = '';
try {
({ stdout } = await getExecOutput(await which('eas', true), ['--version']));
} catch {
throw new Error(`Could not verify the EAS CLI version, reason:\nCommand failed 'eas --version'`);
}
const version = stdout.match(/eas-cli\/([^\s]+)/i);
if (!version || !version[1]) {
throw new Error(`Could not verify the EAS CLI version, reason:\nUnexpected output received.`);
}
if (!semver.satisfies(version[1], versionRange)) {
throw new Error(
`The EAS CLI version (${version[1]}) is not supported, reason:\nExpected version range: ${versionRange}`
);
}
}
/**
* Create a new EAS Update using the user-provided command.
* The command should be anything after `eas ...`.
*/
export async function createUpdate(cwd: string, command: string): Promise<EasUpdate[]> {
let stdout = '';
try {
({ stdout } = await getExecOutput((await which('eas', true)) + ` ${command}`, undefined, {
cwd,
}));
} catch (error: unknown) {
throw new Error(`Could not create a new EAS Update`, { cause: error });
}
return JSON.parse(stdout);
}
/**
* Create a QR code link for an EAS Update.
*/
export function getUpdateGroupQr({
projectId,
updateGroupId,
appSlug,
qrTarget,
}: {
projectId: string;
updateGroupId: string;
appSlug: string;
qrTarget: 'expo-go' | 'dev-build';
}): string {
const url = new URL('https://qr.expo.dev/eas-update');
if (qrTarget === 'dev-build') {
// While the parameter is called `appScheme`, it's actually the app's slug
// This should only be added when using dev clients as target
// See: https://github.com/expo/expo/blob/8ae75dde393e5d2393d446227a1fe2482c75eec3/packages/expo-dev-client/plugin/src/getDefaultScheme.ts#L17
url.searchParams.append('appScheme', appSlug.replace(/[^A-Za-z0-9+\-.]/g, ''));
}
url.searchParams.append('projectId', projectId);
url.searchParams.append('groupId', updateGroupId);
return url.toString();
}
/** Create the absolute link to the update group on expo.dev */
export function getUpdateGroupWebsite({
projectId,
updateGroupId,
}: {
projectId: string;
updateGroupId: string;
}): string {
return `https://expo.dev/projects/${projectId}/updates/${updateGroupId}`;
}
-297
View File
@@ -1,297 +0,0 @@
import { info, exportVariable } from '@actions/core';
import { exec, getExecOutput } from '@actions/exec';
import { which } from '@actions/io';
import { ok as assert } from 'assert';
import path from 'path';
import { URL } from 'url';
export type CliName = 'expo' | 'eas';
export type Command = {
cli: CliName;
args: string[];
raw: string;
command: string;
};
export interface ProjectInfo {
name: string;
slug: string;
owner?: string;
}
export enum AppPlatform {
Android = 'ANDROID',
Ios = 'IOS',
}
export type BuildInfo = {
id: string;
platform: AppPlatform;
project: {
slug: string;
ownerAccount: {
name: string;
};
};
releaseChannel: string;
distribution: string;
buildProfile: string;
sdkVersion: string;
appVersion: string;
gitCommitHash: string;
};
export const appPlatformDisplayNames: Record<AppPlatform, string> = {
[AppPlatform.Android]: 'Android',
[AppPlatform.Ios]: 'iOS',
};
export const appPlatformEmojis = {
[AppPlatform.Ios]: '🍎',
[AppPlatform.Android]: '🤖',
};
const CommandRegExp = /^#(eas|expo)\s+(.+)?$/im;
export function parseCommand(input: string): Command | null {
const matches = CommandRegExp.exec(input);
if (matches != null) {
return {
cli: matches[1] as CliName,
raw: input.trimStart().substring(1).trim(),
args:
matches[2]
?.split(' ')
.map(s => s.trim())
.filter(Boolean) ?? [],
} as Command;
}
return null;
}
/**
* Try to authenticate the user using either Expo or EAS CLI.
* This method tries to invoke 'whoami' to validate if the token is valid.
* If that passes, the token is exported as EXPO_TOKEN for all steps within the job.
*/
export async function authenticate(token: string, cli: CliName = 'expo'): Promise<void> {
if (!cli) {
info(`Skipped token validation: no CLI installed, can't run 'whoami'.`);
} else {
await exec(await which(cli), ['whoami'], {
env: { ...process.env, EXPO_TOKEN: token },
});
}
exportVariable('EXPO_TOKEN', token);
}
/**
* Try to resolve the project owner, by running 'eas|expo whoami'.
*/
export async function projectOwner(cli: CliName = 'expo'): Promise<string> {
let stdout = '';
try {
({ stdout } = await getExecOutput(await which(cli), ['whoami'], { silent: true }));
} catch (error: unknown) {
throw new Error(`Could not fetch the project owner`, { cause: error });
}
if (!stdout) {
throw new Error(`Could not fetch the project owner, not authenticated`);
} else if (stdout.endsWith(' (robot)')) {
throw new Error(`Could not fetch the project owner, used robot account`);
}
return stdout.trim();
}
export async function runCommand(cmd: Command) {
let stdout = '';
let stderr = '';
try {
({ stderr, stdout } = await getExecOutput(await which(cmd.cli), cmd.args.concat('--non-interactive'), {
silent: false,
}));
} catch (error: unknown) {
throw new Error(`Could not run command ${cmd.args.join(' ')}`, { cause: error });
}
return [stdout.trim(), stderr.trim()];
}
export async function easBuild(cmd: Command): Promise<BuildInfo[]> {
let stdout = '';
try {
const args = cmd.args.concat('--json', '--non-interactive', '--no-wait');
({ stdout } = await getExecOutput(await which('eas', true), args, {
silent: false,
}));
} catch (error: unknown) {
throw new Error(`Could not run command eas build`, { cause: error });
}
return JSON.parse(stdout);
}
/**
* Create an new EAS build using the user-provided command.
*/
export async function createEasBuildFromRawCommandAsync(
cwd: string,
command: string,
extraArgs: string[] = []
): Promise<BuildInfo[]> {
let stdout = '';
let cmd = command;
if (!cmd.includes('--json')) {
cmd += ' --json';
}
if (!cmd.includes('--non-interactive')) {
cmd += ' --non-interactive';
}
if (!cmd.includes('--no-wait')) {
cmd += ' --no-wait';
}
try {
({ stdout } = await getExecOutput((await which('eas', true)) + ` ${cmd}`, extraArgs, {
cwd,
}));
} catch (error: unknown) {
throw new Error(`Could not run command eas build`, { cause: error });
}
return JSON.parse(stdout);
}
/**
* Cancel an EAS build.
*/
export async function cancelEasBuildAsync(cwd: string, buildId: string): Promise<void> {
try {
await getExecOutput(await which('eas', true), ['build:cancel', buildId], { cwd });
} catch (error: unknown) {
info(`Failed to cancel build ${buildId}: ${String(error)}`);
}
}
/**
* Query the EAS BuildInfo from given buildId.
*/
export async function queryEasBuildInfoAsync(cwd: string, buildId: string): Promise<BuildInfo | null> {
try {
const { stdout } = await getExecOutput(await which('eas', true), ['build:view', buildId, '--json'], {
cwd,
silent: true,
});
return JSON.parse(stdout);
} catch (error: unknown) {
info(`Failed to query eas build ${buildId}: ${String(error)}`);
}
return null;
}
/**
* Try to resolve the project info, by running 'expo config --type prebuild'.
*/
export async function projectInfo(dir: string): Promise<ProjectInfo> {
let stdout = '';
try {
({ stdout } = await getExecOutput(await which('expo', true), ['config', '--json', '--type', 'prebuild'], {
cwd: dir,
silent: true,
}));
} catch (error: unknown) {
throw new Error(`Could not fetch the project info from ${dir}`, { cause: error });
}
const { name, slug, owner } = JSON.parse(stdout);
return { name, slug, owner };
}
/**
* Determine if the current project is using `dev-build` or `expo-go`.
* This is based on the `@expo/cli` check to enable dev client mode.
*
* @see https://github.com/expo/expo/blob/190a80f393bc730eb3f300df52d82b701e4b8ff5/packages/%40expo/cli/src/utils/analytics/getDevClientProperties.ts#L12-L15
*/
export function projectAppType(dir: string): 'expo-go' | 'dev-build' {
const packageFile = path.resolve(dir, 'package.json');
let packageJson: any = {};
try {
packageJson = require(packageFile);
} catch (error: unknown) {
throw new Error(`Could not load the project package file in: ${packageFile}`, { cause: error });
}
if (packageJson?.dependencies?.['expo-dev-client'] || packageJson?.devDependencies?.['expo-dev-client']) {
return 'dev-build';
}
return 'expo-go';
}
/**
* Create a QR code for an update on project, with an optional release channel.
*/
export function projectQR(project: ProjectInfo, channel?: string): string {
assert(project.owner, 'Could not create a QR code for project without owner');
const url = new URL('https://qr.expo.dev/expo-go');
url.searchParams.append('owner', project.owner);
url.searchParams.append('slug', project.slug);
if (channel) {
url.searchParams.append('releaseChannel', channel);
}
return url.toString();
}
/**
* Create a link for the project in Expo.
*/
export function projectLink(project: ProjectInfo, channel?: string): string {
assert(project.owner, 'Could not create a QR code for project without owner');
const url = new URL(`https://expo.dev/@${project.owner}/${project.slug}`);
if (channel) {
url.searchParams.append('release-channel', channel);
}
return url.toString();
}
/**
* Create a deep link to open the project in Expo Go
*/
export function projectDeepLink(project: ProjectInfo, channel?: string): string {
assert(project.owner, 'Could not create a deep link for project without owner');
const url = new URL(`exp://exp.host/@${project.owner}/${project.slug}`);
if (channel) {
url.searchParams.append('release-channel', channel);
}
return url.toString();
}
export function getBuildLogsUrl(build: BuildInfo): string {
// TODO: reuse this function from the original source
// see: https://github.com/expo/eas-cli/blob/896f7f038582347c57dc700be9ea7d092b5a3a21/packages/eas-cli/src/build/utils/url.ts#L13-L21
const { project } = build;
const path = project
? `/accounts/${project.ownerAccount.name}/projects/${project.slug}/builds/${build.id}`
: `/builds/${build.id}`;
const url = new URL(path, 'https://expo.dev');
return url.toString();
}
+111
View File
@@ -0,0 +1,111 @@
import { info } from '@actions/core';
import { GitHubArtifactsDbManager } from './GitHubArtifactsDbManager';
import { Database } from '../sqlite';
import { type IDbManager } from './IDbManager';
export class DbMigrationCoordinator {
public static readonly CURRENT_SCHEMA_VERSION = 1;
private readonly managers = new Map<string, IDbManager>();
public registerManager(managerId: string, manager: IDbManager): void {
if (this.managers.has(managerId)) {
throw new Error(`DbManager with id '${managerId}' is already registered`);
}
this.managers.set(managerId, manager);
}
public async initializeDatabase(db: Database): Promise<void> {
if (this.managers.size === 0) {
throw new Error('No DbManagers registered. Call registerManager() first.');
}
const currentDbVersion = await this.getCurrentDatabaseVersion(db);
const targetDbVersion = DbMigrationCoordinator.CURRENT_SCHEMA_VERSION;
if (currentDbVersion === 0 && !(await this.fingerprintTableExistsAsync(db))) {
await this.runInitialDatabaseCreation(db);
} else if (currentDbVersion < targetDbVersion) {
await this.runDatabaseMigrations(db, currentDbVersion, targetDbVersion);
} else if (currentDbVersion > targetDbVersion) {
throw new Error(
`Database version ${currentDbVersion} is higher than expected ${targetDbVersion}. ` +
'This might indicate a newer version of the software was used previously.'
);
}
await this.updateDatabaseVersion(db, targetDbVersion);
}
public async getCurrentDatabaseVersion(db: Database): Promise<number> {
try {
const result = await db.getAsync<{ user_version: number }>('PRAGMA user_version');
return result?.user_version ?? 0;
} catch {
return 0;
}
}
public getTargetDatabaseVersion(): number {
return DbMigrationCoordinator.CURRENT_SCHEMA_VERSION;
}
private async runInitialDatabaseCreation(db: Database): Promise<void> {
for (const [, manager] of this.managers.entries()) {
await manager.runInitialTableCreation(db);
}
}
private async runDatabaseMigrations(
db: Database,
currentDbVersion: number,
targetDbVersion: number
): Promise<void> {
info(
`Planning to run database migrations from version ${currentDbVersion} to ${targetDbVersion}`
);
for (let version = currentDbVersion; version < targetDbVersion; version++) {
const nextVersion = version + 1;
await this.runMigrationStep(db, version, nextVersion);
}
}
private async runMigrationStep(
db: Database,
fromVersion: number,
toVersion: number
): Promise<void> {
switch (toVersion) {
case 1: {
info(
'Migration 0 -> 1: Adding github_artifacts table with fingerprint_id and platform column'
);
await GitHubArtifactsDbManager.createTableIfNotExistsAsync(db);
await db.runAsync('ALTER TABLE fingerprint ADD COLUMN platform TEXT');
break;
}
default:
throw new Error(`Unknown migration step from version ${fromVersion} to ${toVersion}`);
}
}
private async updateDatabaseVersion(db: Database, version: number): Promise<void> {
await db.runAsync(`PRAGMA user_version = ${version}`);
}
/**
* We did handle `user_version` well in the past.
* If it's zero, it means either no database file exists or the database is the first version.
* In this case, we check if any of the known tables exist to determine if it's a fresh database.
*/
private async fingerprintTableExistsAsync(db: Database): Promise<boolean> {
const result = await db.getAsync<{ count: number }>(
`SELECT COUNT(*) as count FROM sqlite_master WHERE type='table' AND name='fingerprint'`
);
return (result?.count ?? 0) > 0;
}
}
+104 -34
View File
@@ -1,26 +1,38 @@
import type { Fingerprint as FingerprintType, FingerprintSource } from '@expo/fingerprint';
import type { FingerprintSource, Fingerprint as FingerprintType } from '@expo/fingerprint';
import { openDatabaseAsync, Database } from '../sqlite';
import { Camelize, Database, openDatabaseAsync } from '../sqlite';
import { DbMigrationCoordinator } from './DbMigration';
import { GitHubArtifactsDbManager } from './GitHubArtifactsDbManager';
import { type IDbManager } from './IDbManager';
export type FingerprintDbEntity = Camelize<RawFingerprintDbEntity> & {
export type FingerprintDbEntity = Omit<Camelize<RawFingerprintDbEntity>, 'fingerprint'> & {
fingerprint: FingerprintType;
};
export class FingerprintDbManager {
constructor(private dbPath: string) {}
export class FingerprintDbManager implements IDbManager {
constructor(private readonly dbPath: string) {}
public async initAsync(): Promise<Database> {
const db = await openDatabaseAsync(this.dbPath);
public async runInitialTableCreation(db: Database): Promise<void> {
await db.runAsync(
`CREATE TABLE IF NOT EXISTS ${FingerprintDbManager.TABLE_NAME} (${FingerprintDbManager.SCHEMA.join(', ')})`
`CREATE TABLE ${FingerprintDbManager.TABLE_NAME} (${FingerprintDbManager.SCHEMA.join(', ')})`
);
for (const index of FingerprintDbManager.INDEXES) {
await db.runAsync(index);
}
for (const extraStatement of FingerprintDbManager.EXTRA_CREATE_DB_STATEMENTS) {
await db.runAsync(extraStatement);
}
await db.runAsync(`PRAGMA fingerprint_schema_version = ${FingerprintDbManager.SCHEMA_VERSION}`);
}
public async initAsync(): Promise<Database> {
const db = await openDatabaseAsync(this.dbPath);
const coordinator = new DbMigrationCoordinator();
coordinator.registerManager('fingerprint', this);
coordinator.registerManager('github-artifacts', new GitHubArtifactsDbManager(db));
await coordinator.initializeDatabase(db);
this.db = db;
return db;
}
@@ -30,23 +42,28 @@ export class FingerprintDbManager {
params: {
easBuildId?: string;
fingerprint: FingerprintType;
platform?: string;
}
): Promise<void> {
if (!this.db) {
throw new Error('Database not initialized. Call initAsync() first.');
}
const easBuildId = params.easBuildId ?? '';
const platform = params.platform ?? null;
const fingerprintString = JSON.stringify(params.fingerprint);
await this.db.runAsync(
`INSERT INTO ${FingerprintDbManager.TABLE_NAME} (git_commit_hash, eas_build_id, fingerprint_hash, fingerprint) VALUES (?, ?, ?, json(?)) \
ON CONFLICT(git_commit_hash) DO UPDATE SET eas_build_id = ?, fingerprint_hash = ?, fingerprint = json(?)`,
`INSERT INTO ${FingerprintDbManager.TABLE_NAME} (git_commit_hash, eas_build_id, fingerprint_hash, fingerprint, platform) VALUES (?, ?, ?, json(?), ?) \
ON CONFLICT(git_commit_hash) DO UPDATE SET eas_build_id = ?, fingerprint_hash = ?, fingerprint = json(?), platform = ?`,
gitCommitHash,
easBuildId,
params.fingerprint.hash,
fingerprintString,
platform,
easBuildId,
params.fingerprint.hash,
fingerprintString
fingerprintString,
platform
);
}
@@ -58,13 +75,15 @@ export class FingerprintDbManager {
`SELECT eas_build_id FROM ${FingerprintDbManager.TABLE_NAME} WHERE fingerprint_hash = ?`,
fingerprintHash
);
return rows.map(row => row['eas_build_id']);
return rows.map((row) => row['eas_build_id']);
}
/**
* Get the latest entity from the fingerprint hash where the eas_build_id is not null.
*/
public async getLatestEasEntityFromFingerprintAsync(fingerprintHash: string): Promise<FingerprintDbEntity | null> {
public async getLatestEasEntityFromFingerprintAsync(
fingerprintHash: string
): Promise<FingerprintDbEntity | null> {
if (!this.db) {
throw new Error('Database not initialized. Call initAsync() first.');
}
@@ -77,7 +96,9 @@ export class FingerprintDbManager {
return row ? FingerprintDbManager.serialize(row) : null;
}
public async getEntityFromGitCommitHashAsync(gitCommitHash: string): Promise<FingerprintDbEntity | null> {
public async getEntityFromGitCommitHashAsync(
gitCommitHash: string
): Promise<FingerprintDbEntity | null> {
if (!this.db) {
throw new Error('Database not initialized. Call initAsync() first.');
}
@@ -88,7 +109,9 @@ export class FingerprintDbManager {
return row ? FingerprintDbManager.serialize(row) : null;
}
public async getFirstEntityFromFingerprintHashAsync(fingerprintHash: string): Promise<FingerprintDbEntity | null> {
public async getFirstEntityFromFingerprintHashAsync(
fingerprintHash: string
): Promise<FingerprintDbEntity | null> {
if (!this.db) {
throw new Error('Database not initialized. Call initAsync() first.');
}
@@ -99,7 +122,9 @@ export class FingerprintDbManager {
return row ? FingerprintDbManager.serialize(row) : null;
}
public async queryEntitiesFromFingerprintHashAsync(fingerprintHash: string): Promise<FingerprintDbEntity[]> {
public async queryEntitiesFromFingerprintHashAsync(
fingerprintHash: string
): Promise<FingerprintDbEntity[]> {
if (!this.db) {
throw new Error('Database not initialized. Call initAsync() first.');
}
@@ -107,10 +132,12 @@ export class FingerprintDbManager {
`SELECT * FROM ${FingerprintDbManager.TABLE_NAME} WHERE fingerprint_hash = ?`,
fingerprintHash
);
return rows.map(row => FingerprintDbManager.serialize(row));
return rows.map((row) => FingerprintDbManager.serialize(row));
}
public async getFingerprintSourcesAsync(fingerprintHash: string): Promise<FingerprintSource[] | null> {
public async getFingerprintSourcesAsync(
fingerprintHash: string
): Promise<FingerprintSource[] | null> {
if (!this.db) {
throw new Error('Database not initialized. Call initAsync() first.');
}
@@ -125,14 +152,67 @@ export class FingerprintDbManager {
return JSON.parse(result);
}
public async getFirstGitHubArtifactAsync(
fingerprintHash: string,
platform: string
): Promise<{
id: number;
artifactId: string;
artifactUrl: string;
artifactDigest: string;
workflowRunId: string;
platform: string;
} | null> {
if (!this.db) {
throw new Error('Database not initialized. Call initAsync() first.');
}
const row = await this.db.getAsync<{
id: number;
artifact_id: string;
artifact_url: string;
artifact_digest: string;
workflow_run_id: string;
platform: string;
}>(
`SELECT ga.id, ga.artifact_id, ga.artifact_url, ga.artifact_digest, ga.workflow_run_id, ga.platform
FROM ${FingerprintDbManager.TABLE_NAME} f
JOIN github_artifacts ga ON f.id = ga.fingerprint_id
WHERE f.fingerprint_hash = ? AND (ga.platform = ? AND (f.platform = ? OR f.platform IS NULL))
ORDER BY f.id ASC, ga.id ASC
LIMIT 1`,
fingerprintHash,
platform,
platform
);
if (!row) {
return null;
}
return {
id: row.id,
artifactId: row.artifact_id,
artifactUrl: row.artifact_url,
artifactDigest: row.artifact_digest,
workflowRunId: row.workflow_run_id,
platform: row.platform,
};
}
public getArtifactsManager(): GitHubArtifactsDbManager {
if (!this.db) {
throw new Error('Database not initialized. Call initAsync() first.');
}
return new GitHubArtifactsDbManager(this.db);
}
public async closeAsync(): Promise<void> {
this.db?.closeAsync();
}
//#region private
private static readonly SCHEMA_VERSION = 0;
private static readonly TABLE_NAME = 'fingerprint';
private static readonly SCHEMA = [
@@ -141,6 +221,7 @@ export class FingerprintDbManager {
'git_commit_hash TEXT NOT NULL',
'fingerprint_hash TEXT NOT NULL',
'fingerprint TEXT NOT NULL',
'platform TEXT',
"created_at TEXT NOT NULL DEFAULT (DATETIME('now', 'utc'))",
"updated_at TEXT NOT NULL DEFAULT (DATETIME('now', 'utc'))",
];
@@ -165,6 +246,7 @@ END`,
gitCommitHash: rawEntity.git_commit_hash,
fingerprintHash: rawEntity.fingerprint_hash,
fingerprint: JSON.parse(rawEntity.fingerprint),
platform: rawEntity.platform,
createdAt: rawEntity.created_at,
updatedAt: rawEntity.updated_at,
};
@@ -179,19 +261,7 @@ interface RawFingerprintDbEntity {
git_commit_hash: string;
fingerprint_hash: string;
fingerprint: string;
platform: string | null;
created_at: string;
updated_at: string;
}
//#region TypeScript utilities
// https://stackoverflow.com/a/63715429
type CamelizeString<T extends PropertyKey, C extends string = ''> = T extends string
? string extends T
? string
: T extends `${infer F}_${infer R}`
? CamelizeString<Capitalize<R>, `${C}${F}`>
: `${C}${T}`
: T;
type Camelize<T> = { [K in keyof T as CamelizeString<K>]: T[K] };
//#endregion
+113
View File
@@ -0,0 +1,113 @@
import { Camelize, Database } from '../sqlite';
import { type IDbManager } from './IDbManager';
export type GitHubArtifactDbEntity = Camelize<RawGitHubArtifactDbEntity>;
export class GitHubArtifactsDbManager implements IDbManager {
constructor(private readonly db: Database) {}
public async runInitialTableCreation(db: Database): Promise<void> {
await db.runAsync(
`CREATE TABLE ${GitHubArtifactsDbManager.TABLE_NAME} (${GitHubArtifactsDbManager.SCHEMA.join(', ')})`
);
}
public async insertArtifactAsync(params: {
fingerprintId: number;
platform: string;
artifactId: string;
artifactUrl: string;
artifactDigest: string;
workflowRunId: string;
}): Promise<number> {
const result = await this.db.runAsync(
`INSERT INTO ${GitHubArtifactsDbManager.TABLE_NAME} (fingerprint_id, platform, artifact_id, artifact_url, artifact_digest, workflow_run_id) VALUES (?, ?, ?, ?, ?, ?)`,
params.fingerprintId,
params.platform,
params.artifactId,
params.artifactUrl,
params.artifactDigest,
params.workflowRunId
);
return result.lastID;
}
public async getArtifactByIdAsync(id: number): Promise<GitHubArtifactDbEntity | null> {
const row = await this.db.getAsync<RawGitHubArtifactDbEntity>(
`SELECT * FROM ${GitHubArtifactsDbManager.TABLE_NAME} WHERE id = ?`,
id
);
return row ? GitHubArtifactsDbManager.serialize(row) : null;
}
public async getArtifactByArtifactIdAsync(
artifactId: string
): Promise<GitHubArtifactDbEntity | null> {
const row = await this.db.getAsync<RawGitHubArtifactDbEntity>(
`SELECT * FROM ${GitHubArtifactsDbManager.TABLE_NAME} WHERE artifact_id = ?`,
artifactId
);
return row ? GitHubArtifactsDbManager.serialize(row) : null;
}
public async deleteArtifactByIdAsync(id: number): Promise<void> {
await this.db.runAsync(`DELETE FROM ${GitHubArtifactsDbManager.TABLE_NAME} WHERE id = ?`, id);
}
public async getArtifactsByFingerprintIdAsync(
fingerprintId: number
): Promise<GitHubArtifactDbEntity[]> {
const rows = await this.db.allAsync<RawGitHubArtifactDbEntity>(
`SELECT * FROM ${GitHubArtifactsDbManager.TABLE_NAME} WHERE fingerprint_id = ?`,
fingerprintId
);
return rows.map((row) => GitHubArtifactsDbManager.serialize(row));
}
public async deleteArtifactsByFingerprintIdAsync(fingerprintId: number): Promise<void> {
await this.db.runAsync(
`DELETE FROM ${GitHubArtifactsDbManager.TABLE_NAME} WHERE fingerprint_id = ?`,
fingerprintId
);
}
public static async createTableIfNotExistsAsync(db: Database): Promise<void> {
await db.runAsync(
`CREATE TABLE IF NOT EXISTS ${GitHubArtifactsDbManager.TABLE_NAME} (${GitHubArtifactsDbManager.SCHEMA.join(', ')})`
);
}
private static readonly TABLE_NAME = 'github_artifacts';
private static readonly SCHEMA = [
'id INTEGER PRIMARY KEY AUTOINCREMENT',
'fingerprint_id INTEGER NOT NULL REFERENCES fingerprint(id) ON DELETE CASCADE',
'platform TEXT NOT NULL',
'artifact_id TEXT NOT NULL',
'artifact_url TEXT NOT NULL',
'artifact_digest TEXT NOT NULL',
'workflow_run_id TEXT NOT NULL',
];
private static serialize(rawEntity: RawGitHubArtifactDbEntity): GitHubArtifactDbEntity {
return {
id: rawEntity.id,
fingerprintId: rawEntity.fingerprint_id,
platform: rawEntity.platform,
artifactId: rawEntity.artifact_id,
artifactUrl: rawEntity.artifact_url,
artifactDigest: rawEntity.artifact_digest,
workflowRunId: rawEntity.workflow_run_id,
};
}
}
interface RawGitHubArtifactDbEntity {
id: number;
fingerprint_id: number;
platform: string;
artifact_id: string;
artifact_url: string;
artifact_digest: string;
workflow_run_id: string;
}
+5
View File
@@ -0,0 +1,5 @@
import { type Database } from '../sqlite';
export interface IDbManager {
runInitialTableCreation(db: Database): Promise<void>;
}
@@ -0,0 +1,195 @@
import { afterEach, beforeEach, describe, expect, it } from 'bun:test';
import { DbMigrationCoordinator } from '../../fingerprint/DbMigration';
import { type IDbManager } from '../../fingerprint/IDbManager';
import { Database, openDatabaseAsync } from '../../sqlite';
class MockDbManager implements IDbManager {
constructor(
private readonly tableName: string,
private readonly initCalled: () => void = () => {}
) {}
async runInitialTableCreation(db: Database): Promise<void> {
await db.runAsync(`CREATE TABLE ${this.tableName} (id INTEGER PRIMARY KEY)`);
this.initCalled();
}
}
describe('DbMigrationCoordinator', () => {
let db: Database;
let coordinator: DbMigrationCoordinator;
beforeEach(async () => {
db = await openDatabaseAsync(':memory:');
coordinator = new DbMigrationCoordinator();
});
afterEach(async () => {
await db.closeAsync();
});
describe('registerManager', () => {
it('should register a manager successfully', () => {
const manager = new MockDbManager('test_table');
expect(() => coordinator.registerManager('test', manager)).not.toThrow();
});
it('should throw error when registering duplicate manager id', () => {
const manager1 = new MockDbManager('test_table1');
const manager2 = new MockDbManager('test_table2');
coordinator.registerManager('test', manager1);
expect(() => coordinator.registerManager('test', manager2)).toThrow(
"DbManager with id 'test' is already registered"
);
});
});
describe('getTargetDatabaseVersion', () => {
it('should return the current schema version', () => {
expect(coordinator.getTargetDatabaseVersion()).toBe(
DbMigrationCoordinator.CURRENT_SCHEMA_VERSION
);
});
});
describe('getCurrentDatabaseVersion', () => {
it('should return 0 for new database', async () => {
const version = await coordinator.getCurrentDatabaseVersion(db);
expect(version).toBe(0);
});
it('should return stored version from PRAGMA user_version', async () => {
await db.runAsync('PRAGMA user_version = 1');
const version = await coordinator.getCurrentDatabaseVersion(db);
expect(version).toBe(1);
});
});
describe('initializeDatabase', () => {
it('should throw error when no managers registered', async () => {
await expect(coordinator.initializeDatabase(db)).rejects.toThrow(
'No DbManagers registered. Call registerManager() first.'
);
});
it('should run initial table creation for new database', async () => {
const initCalls: string[] = [];
const manager1 = new MockDbManager('table1', () => initCalls.push('manager1'));
const manager2 = new MockDbManager('table2', () => initCalls.push('manager2'));
coordinator.registerManager('manager1', manager1);
coordinator.registerManager('manager2', manager2);
await coordinator.initializeDatabase(db);
expect(initCalls).toEqual(['manager1', 'manager2']);
const version = await coordinator.getCurrentDatabaseVersion(db);
expect(version).toBe(DbMigrationCoordinator.CURRENT_SCHEMA_VERSION);
});
it('should not run migrations for fully migrated database', async () => {
const initCalls: string[] = [];
const manager1 = new MockDbManager('table1', () => initCalls.push('manager1'));
coordinator.registerManager('manager1', manager1);
// Set database to target version
await db.runAsync(`PRAGMA user_version = ${DbMigrationCoordinator.CURRENT_SCHEMA_VERSION}`);
await coordinator.initializeDatabase(db);
expect(initCalls).toEqual([]);
const version = await coordinator.getCurrentDatabaseVersion(db);
expect(version).toBe(DbMigrationCoordinator.CURRENT_SCHEMA_VERSION);
});
it('should throw error for database version higher than target', async () => {
const manager = new MockDbManager('table1');
coordinator.registerManager('manager1', manager);
// Set database version higher than target
await db.runAsync(`PRAGMA user_version = 99999`);
await expect(coordinator.initializeDatabase(db)).rejects.toThrow(
`Database version 99999 is higher than expected ${DbMigrationCoordinator.CURRENT_SCHEMA_VERSION}. This might indicate a newer version of the software was used previously.`
);
});
});
describe('migration steps', () => {
it('should handle migration from version 0 to 1 with one-to-many relationship', async () => {
await db.runAsync('PRAGMA user_version = 0');
await db.runAsync(`
CREATE TABLE fingerprint (
id INTEGER PRIMARY KEY,
git_commit_hash TEXT NOT NULL,
fingerprint_hash TEXT NOT NULL,
fingerprint TEXT NOT NULL
)
`);
const manager1 = new MockDbManager('fingerprint');
coordinator.registerManager('fingerprint', manager1);
await coordinator.initializeDatabase(db);
const fingerprintTableInfo = await db.allAsync<{ name: string }>(
'PRAGMA table_info(fingerprint)'
);
const fingerprintColumnNames = fingerprintTableInfo.map((col) => col.name);
expect(fingerprintColumnNames).toContain('platform');
expect(fingerprintColumnNames).not.toContain('github_artifact_id');
const githubArtifactsTable = await db.allAsync<{ name: string }>(`
SELECT name FROM sqlite_master WHERE type='table' AND name='github_artifacts'
`);
expect(githubArtifactsTable).toHaveLength(1);
const artifactsTableInfo = await db.allAsync<{ name: string }>(
'PRAGMA table_info(github_artifacts)'
);
const artifactsColumnNames = artifactsTableInfo.map((col) => col.name);
expect(artifactsColumnNames).toContain('fingerprint_id');
expect(artifactsColumnNames).toContain('platform');
expect(artifactsColumnNames).toContain('artifact_id');
const junctionTable = await db.allAsync<{ name: string }>(`
SELECT name FROM sqlite_master WHERE type='table' AND name='fingerprint_github_artifacts'
`);
expect(junctionTable).toHaveLength(0);
const version = await coordinator.getCurrentDatabaseVersion(db);
expect(version).toBe(DbMigrationCoordinator.CURRENT_SCHEMA_VERSION);
});
it('should detect existing fingerprint table and run migration', async () => {
await db.runAsync('PRAGMA user_version = 0');
await db.runAsync(`
CREATE TABLE fingerprint (
id INTEGER PRIMARY KEY,
git_commit_hash TEXT NOT NULL,
fingerprint_hash TEXT NOT NULL,
fingerprint TEXT NOT NULL
)
`);
const manager1 = new MockDbManager('fingerprint');
coordinator.registerManager('fingerprint', manager1);
await coordinator.initializeDatabase(db);
const version = await coordinator.getCurrentDatabaseVersion(db);
expect(version).toBe(DbMigrationCoordinator.CURRENT_SCHEMA_VERSION);
const tables = await db.allAsync<{ name: string }>(`
SELECT name FROM sqlite_master WHERE type='table'
AND name = 'github_artifacts'
`);
expect(tables).toHaveLength(1);
});
});
});
@@ -0,0 +1,508 @@
import type { FingerprintSource } from '@expo/fingerprint';
import { sleep } from 'bun';
import { afterEach, beforeEach, describe, expect, it } from 'bun:test';
import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import { FingerprintDbManager } from '../../fingerprint/FingerprintDbManager';
import { delayAsync } from '../../utils';
describe(FingerprintDbManager, () => {
let fingerprintDbManager: FingerprintDbManager;
beforeEach(async () => {
fingerprintDbManager = new FingerprintDbManager(':memory:');
await fingerprintDbManager.initAsync();
});
afterEach(async () => {
await fingerprintDbManager.closeAsync();
});
it('queryEasBuildIdsFromFingerprintAsync', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: 'id1',
fingerprint: { sources: [], hash: 'hash1' },
});
expect(await fingerprintDbManager.queryEasBuildIdsFromFingerprintAsync('nonExistedId')).toEqual(
[]
);
expect(await fingerprintDbManager.queryEasBuildIdsFromFingerprintAsync('hash1')).toEqual([
'id1',
]);
});
it('getFingerprintSourcesAsync', async () => {
const sources: FingerprintSource[] = [
{
type: 'file',
filePath: './assets/icon.png',
reasons: ['expoConfigExternalFile'],
hash: '3f71f5a8458c06b83424cc33e1f2481f601199ea',
},
{
type: 'dir',
filePath: 'node_modules/expo',
reasons: ['expoAutolinkingIos', 'expoAutolinkingAndroid'],
hash: 'ae5d1bd2395e8766c1a1394ce948bf6003b4fd25',
},
{
type: 'contents',
id: 'packageJson:scripts',
contents:
'{"start":"expo start","android":"expo run:android","ios":"expo run:ios","web":"expo start --web"}',
reasons: ['packageJson:scripts'],
hash: '119dec73c92445762a48c9455d9f34a643be8cf0',
},
];
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: 'id1',
fingerprint: { sources, hash: 'hash1' },
});
expect(await fingerprintDbManager.getFingerprintSourcesAsync('nonExistedId')).toBe(null);
expect(await fingerprintDbManager.getFingerprintSourcesAsync('hash1')).toEqual(sources);
});
it('getEntityFromGitCommitHashAsync', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: 'id1',
fingerprint: { sources: [], hash: 'hash1' },
});
expect(await fingerprintDbManager.getEntityFromGitCommitHashAsync('nonExistedHash')).toBe(null);
const result = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash');
expect(result?.easBuildId).toEqual('id1');
expect(result?.gitCommitHash).toEqual('gitHash');
expect(result?.fingerprintHash).toEqual('hash1');
expect(result?.fingerprint).toEqual({ sources: [], hash: 'hash1' });
});
it('getFirstEntityFromFingerprintHashAsync', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
fingerprint: {
sources: [],
hash: 'hash1',
},
});
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash2', {
easBuildId: 'id1',
fingerprint: { sources: [], hash: 'hash1' },
});
const result = await fingerprintDbManager.getFirstEntityFromFingerprintHashAsync('hash1');
expect(result?.gitCommitHash).toBe('gitHash1');
});
it('queryEntitiesFromFingerprintHashAsync', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
fingerprint: {
sources: [],
hash: 'hash1',
},
});
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash2', {
easBuildId: 'id1',
fingerprint: { sources: [], hash: 'hash1' },
});
const results = await fingerprintDbManager.queryEntitiesFromFingerprintHashAsync('hash1');
expect(results.length).toBe(2);
expect(results[0].gitCommitHash).toBe('gitHash1');
expect(results[1].gitCommitHash).toBe('gitHash2');
});
it('upsertFingerprintByGitCommitHashAsync should update existing data', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: '',
fingerprint: { sources: [], hash: 'hash1' },
});
let result = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash');
expect(result?.fingerprintHash).toEqual('hash1');
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: 'easBuildId',
fingerprint: { sources: [], hash: 'hash2' },
});
result = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash');
expect(result?.easBuildId).toEqual('easBuildId');
expect(result?.fingerprintHash).toEqual('hash2');
expect(result?.fingerprint).toEqual({ sources: [], hash: 'hash2' });
});
it('createdAt value should be auto generated', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: '',
fingerprint: { sources: [], hash: 'hash1' },
});
const result = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash');
expect(result?.createdAt).not.toBe(null);
});
it('updatedAt value should be auto updated', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: '',
fingerprint: { sources: [], hash: 'hash1' },
});
let result = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash');
expect(result?.updatedAt).not.toBe(null);
const previousUpdatedAt = result?.updatedAt;
// Use sleep for true delay
await sleep(1000);
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: 'buildId',
fingerprint: { sources: [], hash: 'hash2' },
});
result = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash');
expect(result?.updatedAt).not.toEqual(previousUpdatedAt);
});
it('getLatestEasEntityFromFingerprintAsync should return the latest entity', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash2', {
easBuildId: '',
fingerprint: { sources: [], hash: 'hash1' },
});
await delayAsync(1000);
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
easBuildId: 'buildId',
fingerprint: { sources: [], hash: 'hash1' },
});
await delayAsync(1000);
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash3', {
easBuildId: '',
fingerprint: { sources: [], hash: 'hash1' },
});
const result = await fingerprintDbManager.getLatestEasEntityFromFingerprintAsync('hash1');
expect(result?.gitCommitHash).toEqual('gitHash1');
});
it('should include platform in entity serialization', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: 'id1',
fingerprint: { sources: [], hash: 'hash1' },
platform: 'android',
});
const result = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash');
expect(result?.platform).toBe('android');
expect(result).toHaveProperty('platform');
});
it('upsertFingerprintByGitCommitHashAsync should handle updates correctly', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
easBuildId: 'buildId1',
fingerprint: { sources: [], hash: 'hash1' },
});
const result1 = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash1');
expect(result1?.id).toBeGreaterThan(0);
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
easBuildId: 'buildId1Updated',
fingerprint: { sources: [], hash: 'hash1Updated' },
});
const result2 = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash1');
expect(result2?.easBuildId).toBe('buildId1Updated');
});
it('upsertFingerprintByGitCommitHashAsync should handle platform parameter', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHashIos', {
easBuildId: 'iosBuildId',
fingerprint: { sources: [], hash: 'iosHash' },
platform: 'ios',
});
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHashAndroid', {
easBuildId: 'androidBuildId',
fingerprint: { sources: [], hash: 'androidHash' },
platform: 'android',
});
const iosResult = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHashIos');
expect(iosResult?.platform).toBe('ios');
const androidResult =
await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHashAndroid');
expect(androidResult?.platform).toBe('android');
});
describe('FingerprintDbManager - getFirstGitHubArtifactAsync', () => {
it('should return first artifact matching fingerprint hash and platform', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
fingerprint: { sources: [], hash: 'hash1' },
platform: 'ios',
});
const fingerprint = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash1');
const artifactsManager = fingerprintDbManager.getArtifactsManager();
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprint!.id,
artifactId: 'artifact-ios-1',
artifactUrl: 'https://github.com/example/ios1.zip',
artifactDigest: 'sha256:ios1',
workflowRunId: '123',
platform: 'ios',
});
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprint!.id,
artifactId: 'artifact-ios-2',
artifactUrl: 'https://github.com/example/ios2.zip',
artifactDigest: 'sha256:ios2',
workflowRunId: '124',
platform: 'ios',
});
const iosResult = await fingerprintDbManager.getFirstGitHubArtifactAsync('hash1', 'ios');
expect(iosResult).toBeTruthy();
expect(iosResult?.artifactId).toBe('artifact-ios-1');
expect(iosResult?.platform).toBe('ios');
expect(iosResult?.artifactUrl).toBe('https://github.com/example/ios1.zip');
});
it('should return artifact from fingerprint with null platform', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash2', {
fingerprint: { sources: [], hash: 'hash2' },
});
const fingerprint = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash2');
const artifactsManager = fingerprintDbManager.getArtifactsManager();
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprint!.id,
artifactId: 'artifact-android-1',
artifactUrl: 'https://github.com/example/android1.zip',
artifactDigest: 'sha256:android1',
workflowRunId: '125',
platform: 'android',
});
const androidResult = await fingerprintDbManager.getFirstGitHubArtifactAsync(
'hash2',
'android'
);
expect(androidResult).toBeTruthy();
expect(androidResult?.artifactId).toBe('artifact-android-1');
expect(androidResult?.platform).toBe('android');
});
it('should return null when platform does not match', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
fingerprint: { sources: [], hash: 'hash1' },
platform: 'ios',
});
const fingerprint = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash1');
const artifactsManager = fingerprintDbManager.getArtifactsManager();
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprint!.id,
artifactId: 'artifact-ios',
artifactUrl: 'https://github.com/example/ios.zip',
artifactDigest: 'sha256:ios',
workflowRunId: '123',
platform: 'ios',
});
const result = await fingerprintDbManager.getFirstGitHubArtifactAsync('hash1', 'android');
expect(result).toBe(null);
});
it('should return null when fingerprint hash does not exist', async () => {
const result = await fingerprintDbManager.getFirstGitHubArtifactAsync('nonExistent', 'ios');
expect(result).toBe(null);
});
it('should return null when fingerprint exists but has no artifacts', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
fingerprint: { sources: [], hash: 'hash1' },
platform: 'ios',
});
const result = await fingerprintDbManager.getFirstGitHubArtifactAsync('hash1', 'ios');
expect(result).toBe(null);
});
it('should prioritize by fingerprint ID order', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash2', {
fingerprint: { sources: [], hash: 'sameHash' },
platform: 'ios',
});
const fingerprint2 = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash2');
const artifactsManager = fingerprintDbManager.getArtifactsManager();
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprint2!.id,
artifactId: 'artifact-second',
artifactUrl: 'https://github.com/example/second.zip',
artifactDigest: 'sha256:second',
workflowRunId: '200',
platform: 'ios',
});
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
fingerprint: { sources: [], hash: 'sameHash' },
platform: 'ios',
});
const fingerprint1 = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash1');
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprint1!.id,
artifactId: 'artifact-first',
artifactUrl: 'https://github.com/example/first.zip',
artifactDigest: 'sha256:first',
workflowRunId: '100',
platform: 'ios',
});
const result = await fingerprintDbManager.getFirstGitHubArtifactAsync('sameHash', 'ios');
expect(result).toBeTruthy();
expect(result?.artifactId).toBe('artifact-second');
});
it('should reject fingerprint with wrong platform even if artifact platform matches', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
fingerprint: { sources: [], hash: 'hash1' },
platform: 'android',
});
const fingerprint = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash1');
const artifactsManager = fingerprintDbManager.getArtifactsManager();
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprint!.id,
artifactId: 'artifact-ios',
artifactUrl: 'https://github.com/example/ios.zip',
artifactDigest: 'sha256:ios',
workflowRunId: '123',
platform: 'ios',
});
const result = await fingerprintDbManager.getFirstGitHubArtifactAsync('hash1', 'ios');
expect(result).toBe(null);
});
it('should work with mixed platform configurations', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
fingerprint: { sources: [], hash: 'mixedHash' },
platform: 'ios',
});
const fingerprint1 = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash1');
const artifactsManager = fingerprintDbManager.getArtifactsManager();
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprint1!.id,
artifactId: 'artifact-ios-specific',
artifactUrl: 'https://github.com/example/ios-specific.zip',
artifactDigest: 'sha256:ios-specific',
workflowRunId: '123',
platform: 'ios',
});
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash2', {
fingerprint: { sources: [], hash: 'mixedHash' },
});
const fingerprint2 = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash2');
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprint2!.id,
artifactId: 'artifact-android-universal',
artifactUrl: 'https://github.com/example/android-universal.zip',
artifactDigest: 'sha256:android-universal',
workflowRunId: '124',
platform: 'android',
});
const iosResult = await fingerprintDbManager.getFirstGitHubArtifactAsync('mixedHash', 'ios');
expect(iosResult?.artifactId).toBe('artifact-ios-specific');
const androidResult = await fingerprintDbManager.getFirstGitHubArtifactAsync(
'mixedHash',
'android'
);
expect(androidResult?.artifactId).toBe('artifact-android-universal');
});
it('should return first artifact when multiple artifacts match', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
fingerprint: { sources: [], hash: 'multiHash' },
platform: 'ios',
});
const fingerprint = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash1');
const artifactsManager = fingerprintDbManager.getArtifactsManager();
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprint!.id,
artifactId: 'artifact-first',
artifactUrl: 'https://github.com/example/first.zip',
artifactDigest: 'sha256:first',
workflowRunId: '100',
platform: 'ios',
});
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprint!.id,
artifactId: 'artifact-second',
artifactUrl: 'https://github.com/example/second.zip',
artifactDigest: 'sha256:second',
workflowRunId: '101',
platform: 'ios',
});
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprint!.id,
artifactId: 'artifact-third',
artifactUrl: 'https://github.com/example/third.zip',
artifactDigest: 'sha256:third',
workflowRunId: '102',
platform: 'ios',
});
const result = await fingerprintDbManager.getFirstGitHubArtifactAsync('multiHash', 'ios');
expect(result?.artifactId).toBe('artifact-first');
});
});
it('database initialization with migration system should work correctly', async () => {
const tempDbPath = path.join(os.tmpdir(), `test-migration-${Date.now()}.db`);
let migrationDbManager: FingerprintDbManager | null = null;
try {
// Test that a fresh database initializes correctly
migrationDbManager = new FingerprintDbManager(tempDbPath);
await migrationDbManager.initAsync();
// Test that we can insert and retrieve data with new schema
await migrationDbManager.upsertFingerprintByGitCommitHashAsync('testGitHash', {
easBuildId: 'testEasBuildId',
fingerprint: { sources: [], hash: 'testFingerprintHash' },
platform: 'ios',
});
const record = await migrationDbManager.getEntityFromGitCommitHashAsync('testGitHash');
expect(record).toBeTruthy();
expect(record?.id).toBeGreaterThan(0);
expect(record?.platform).toBe('ios');
expect(record).toHaveProperty('platform');
await migrationDbManager.closeAsync();
migrationDbManager = null;
} finally {
if (migrationDbManager) {
await migrationDbManager.closeAsync();
}
await fs.promises.unlink(tempDbPath);
}
});
});
@@ -0,0 +1,166 @@
import { beforeEach, describe, expect, it } from 'bun:test';
import { DbMigrationCoordinator } from '../../fingerprint/DbMigration';
import { GitHubArtifactsDbManager } from '../../fingerprint/GitHubArtifactsDbManager';
import { openDatabaseAsync } from '../../sqlite';
describe(GitHubArtifactsDbManager, () => {
let artifactsManager: GitHubArtifactsDbManager;
beforeEach(async () => {
const db = await openDatabaseAsync(':memory:');
artifactsManager = new GitHubArtifactsDbManager(db);
// Initialize the table using the migration system
const coordinator = new DbMigrationCoordinator();
coordinator.registerManager('github-artifacts', artifactsManager);
await coordinator.initializeDatabase(db);
});
it('insertArtifactAsync should insert new artifact', async () => {
const id = await artifactsManager.insertArtifactAsync({
fingerprintId: 1,
platform: 'ios',
artifactId: 'artifact-123',
artifactUrl: 'https://github.com/example/artifact.zip',
artifactDigest: 'sha256:abc123',
workflowRunId: '123',
});
expect(id).toBeGreaterThan(0);
const result = await artifactsManager.getArtifactByIdAsync(id);
expect(result?.artifactId).toBe('artifact-123');
expect(result?.artifactUrl).toBe('https://github.com/example/artifact.zip');
expect(result?.artifactDigest).toBe('sha256:abc123');
});
it('getArtifactByArtifactIdAsync should retrieve artifact by business key', async () => {
await artifactsManager.insertArtifactAsync({
fingerprintId: 1,
platform: 'android',
artifactId: 'artifact-456',
artifactUrl: 'https://github.com/example/artifact2.zip',
artifactDigest: 'sha256:def456',
workflowRunId: '456',
});
const result = await artifactsManager.getArtifactByArtifactIdAsync('artifact-456');
expect(result?.artifactId).toBe('artifact-456');
expect(result?.artifactUrl).toBe('https://github.com/example/artifact2.zip');
expect(result?.artifactDigest).toBe('sha256:def456');
const notFound = await artifactsManager.getArtifactByArtifactIdAsync('nonexistent');
expect(notFound).toBe(null);
});
it('deleteArtifactByIdAsync should delete artifact', async () => {
const id = await artifactsManager.insertArtifactAsync({
fingerprintId: 1,
platform: 'ios',
artifactId: 'artifact-delete',
artifactUrl: 'https://github.com/example/delete.zip',
artifactDigest: 'sha256:delete',
workflowRunId: '456',
});
let result = await artifactsManager.getArtifactByIdAsync(id);
expect(result).toBeTruthy();
await artifactsManager.deleteArtifactByIdAsync(id);
result = await artifactsManager.getArtifactByIdAsync(id);
expect(result).toBe(null);
});
it('getArtifactsByFingerprintIdAsync should return artifacts for fingerprint', async () => {
const fingerprintId = 42;
await artifactsManager.insertArtifactAsync({
fingerprintId,
platform: 'ios',
artifactId: 'artifact-ios',
artifactUrl: 'https://github.com/example/ios.zip',
artifactDigest: 'sha256:ios123',
workflowRunId: '123',
});
await artifactsManager.insertArtifactAsync({
fingerprintId,
platform: 'android',
artifactId: 'artifact-android',
artifactUrl: 'https://github.com/example/android.zip',
artifactDigest: 'sha256:android456',
workflowRunId: '124',
});
await artifactsManager.insertArtifactAsync({
fingerprintId: 99,
platform: 'web',
artifactId: 'artifact-web',
artifactUrl: 'https://github.com/example/web.zip',
artifactDigest: 'sha256:web789',
workflowRunId: '125',
});
const artifacts = await artifactsManager.getArtifactsByFingerprintIdAsync(fingerprintId);
expect(artifacts).toHaveLength(2);
const iosArtifact = artifacts.find((a) => a.platform === 'ios');
expect(iosArtifact?.artifactId).toBe('artifact-ios');
expect(iosArtifact?.fingerprintId).toBe(fingerprintId);
const androidArtifact = artifacts.find((a) => a.platform === 'android');
expect(androidArtifact?.artifactId).toBe('artifact-android');
expect(androidArtifact?.fingerprintId).toBe(fingerprintId);
const otherArtifacts = await artifactsManager.getArtifactsByFingerprintIdAsync(99);
expect(otherArtifacts).toHaveLength(1);
expect(otherArtifacts[0]?.platform).toBe('web');
});
it('deleteArtifactsByFingerprintIdAsync should delete all artifacts for fingerprint', async () => {
const fingerprintId1 = 10;
const fingerprintId2 = 20;
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprintId1,
platform: 'ios',
artifactId: 'artifact-1',
artifactUrl: 'https://github.com/example/1.zip',
artifactDigest: 'sha256:1',
workflowRunId: '1',
});
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprintId1,
platform: 'android',
artifactId: 'artifact-2',
artifactUrl: 'https://github.com/example/2.zip',
artifactDigest: 'sha256:2',
workflowRunId: '2',
});
await artifactsManager.insertArtifactAsync({
fingerprintId: fingerprintId2,
platform: 'web',
artifactId: 'artifact-3',
artifactUrl: 'https://github.com/example/3.zip',
artifactDigest: 'sha256:3',
workflowRunId: '3',
});
let artifacts1 = await artifactsManager.getArtifactsByFingerprintIdAsync(fingerprintId1);
let artifacts2 = await artifactsManager.getArtifactsByFingerprintIdAsync(fingerprintId2);
expect(artifacts1).toHaveLength(2);
expect(artifacts2).toHaveLength(1);
await artifactsManager.deleteArtifactsByFingerprintIdAsync(fingerprintId1);
artifacts1 = await artifactsManager.getArtifactsByFingerprintIdAsync(fingerprintId1);
artifacts2 = await artifactsManager.getArtifactsByFingerprintIdAsync(fingerprintId2);
expect(artifacts1).toHaveLength(0);
expect(artifacts2).toHaveLength(1);
expect(artifacts2[0]?.platform).toBe('web');
});
});
@@ -0,0 +1,72 @@
import { describe, expect, it, mock } from 'bun:test';
import { collectFingerprintActionInput } from '../index';
mock.module('@actions/github', () => ({
context: {
repo: {
owner: 'test-owner',
repo: 'test-repo',
},
sha: 'test-sha',
payload: {
before: 'test-before-sha',
pull_request: {
base: {
sha: 'test-base-sha',
},
head: {
sha: 'test-head-sha',
},
},
},
eventName: 'push', // Change to 'pull_request' to test that branch
},
}));
mock.module('@actions/core', () => ({
getInput: mock().mockImplementation((name: string) => {
switch (name) {
case 'packager':
return '';
case 'github-token':
return '******';
case 'working-directory':
return '/path/to/working/dir';
case 'fingerprint-version':
return '';
case 'fingerprint-installation-cache':
return 'true';
case 'fingerprint-db-cache-key':
return '';
case 'previous-git-commit':
return '';
case 'current-git-commit':
return '';
case 'saving-db-branch':
return '';
default:
return '';
}
}),
getBooleanInput: mock().mockReturnValue(true),
}));
describe(collectFingerprintActionInput, () => {
it('returns an object with expected properties', () => {
const input = collectFingerprintActionInput();
expect(input).toMatchInlineSnapshot(`
{
"currentGitCommitHash": "test-sha",
"fingerprintDbCacheKey": "",
"fingerprintInstallationCache": true,
"fingerprintVersion": "latest",
"githubToken": "******",
"packager": "yarn",
"previousGitCommitHash": "test-before-sha",
"savingDbBranch": undefined,
"workingDirectory": "/path/to/working/dir",
}
`);
});
});
+46 -29
View File
@@ -2,22 +2,22 @@ import { getBooleanInput, getInput, group, info } from '@actions/core';
import { context as githubContext } from '@actions/github';
import { mkdirP } from '@actions/io';
import type * as Fingerprint from '@expo/fingerprint';
import assert from 'assert';
import fs from 'fs';
import path from 'path';
import assert from 'node:assert';
import fs from 'node:fs';
import path from 'node:path';
import { FingerprintDbEntity, FingerprintDbManager } from './FingerprintDbManager';
import { restoreCacheAsync, restoreFromCache, saveCacheAsync, saveToCache } from '../cacher';
import { installPackage, resolvePackage } from '../packager';
import { addGlobalNodeSearchPath, installToolFromPackage } from '../actions';
import { downloadCache, uploadCache } from '../caches';
import { installPackage, resolvePackageVersion } from '../packages';
import { installSQLiteAsync } from '../sqlite';
import { addGlobalNodeSearchPath, findTool, installToolFromPackage } from '../worker';
export * from './FingerprintDbManager';
export interface FingerprintOutput {
currentFingerprint: Fingerprint.Fingerprint;
previousFingerprint: Fingerprint.Fingerprint | null;
diff: Fingerprint.FingerprintSource[];
diff: Fingerprint.FingerprintDiffItem[];
}
/**
@@ -27,13 +27,19 @@ export async function createFingerprintOutputAsync(
dbManager: FingerprintDbManager,
input: ReturnType<typeof collectFingerprintActionInput>
): Promise<FingerprintOutput> {
await installFingerprintAsync(input.fingerprintVersion, input.packager, input.fingerprintInstallationCache);
await installFingerprintAsync(
input.fingerprintVersion,
input.packager,
input.fingerprintInstallationCache
);
const fingerprint = require('@expo/fingerprint') as typeof import('@expo/fingerprint');
const currentFingerprint = await fingerprint.createFingerprintAsync(input.workingDirectory);
let previousFingerprint: FingerprintDbEntity | null = null;
if (input.previousGitCommitHash) {
previousFingerprint = await dbManager.getEntityFromGitCommitHashAsync(input.previousGitCommitHash);
previousFingerprint = await dbManager.getEntityFromGitCommitHashAsync(
input.previousGitCommitHash
);
}
const diff =
@@ -61,7 +67,9 @@ export async function createFingerprintDbManagerAsync(
if (cacheHit) {
info(`Restored fingerprint database from cache - cacheKey[${cacheKey}]`);
} else {
info(`Missing fingerprint database from cache - will create a new database - cacheKey[${cacheKey}]`);
info(
`Missing fingerprint database from cache - will create a new database - cacheKey[${cacheKey}]`
);
}
const dbManager = new FingerprintDbManager(dbPath);
await dbManager.initAsync();
@@ -78,14 +86,20 @@ export function collectFingerprintActionInput() {
workingDirectory: getInput('working-directory'),
fingerprintVersion: getInput('fingerprint-version') || 'latest',
fingerprintInstallationCache:
!getInput('fingerprint-installation-cache') || getBooleanInput('fingerprint-installation-cache'),
!getInput('fingerprint-installation-cache') ||
getBooleanInput('fingerprint-installation-cache'),
fingerprintDbCacheKey: getInput('fingerprint-db-cache-key'),
previousGitCommitHash:
githubContext.eventName === 'pull_request'
getInput('previous-git-commit') ||
(githubContext.eventName === 'pull_request'
? githubContext.payload.pull_request?.base?.sha
: githubContext.payload.before,
: githubContext.payload.before),
currentGitCommitHash:
githubContext.eventName === 'pull_request' ? githubContext.payload.pull_request?.head?.sha : githubContext.sha,
getInput('current-git-commit') ||
(githubContext.eventName === 'pull_request'
? githubContext.payload.pull_request?.head?.sha
: githubContext.sha),
savingDbBranch: getInput('saving-db-branch') || undefined,
};
}
@@ -98,22 +112,18 @@ export async function installFingerprintAsync(
useCache: boolean = true
): Promise<string> {
const packageName = '@expo/fingerprint';
const version = await resolvePackage(packageName, fingerprintVersion);
const version = await resolvePackageVersion(packageName, fingerprintVersion);
const message = useCache
? `Installing ${packageName} (${version}) from cache or with ${packager}`
: `Installing ${packageName} (${version}) with ${packager}`;
return await group(message, async () => {
let libRoot = findTool(packageName, version) || null;
if (!libRoot && useCache) {
libRoot = await restoreFromCache(packageName, version, packager);
}
if (!libRoot) {
libRoot = await installPackage(packageName, version, packager);
if (useCache) {
await saveToCache(packageName, version, packager);
}
}
const libRoot = await installPackage({
name: packageName,
version,
packageManager: packager,
packageCache: useCache,
});
installToolFromPackage(libRoot);
addGlobalNodeSearchPath(path.join(libRoot, 'node_modules'));
@@ -126,7 +136,7 @@ export async function installFingerprintAsync(
* This will install the tool back into the local tool cache.
*/
export async function restoreDbFromCacheAsync(cacheKey: string) {
return restoreCacheAsync(path.dirname(await getDbPathAsync()), cacheKey);
return downloadCache(path.dirname(await getDbPathAsync()), cacheKey);
}
/**
@@ -135,15 +145,22 @@ export async function restoreDbFromCacheAsync(cacheKey: string) {
*/
export async function saveDbToCacheAsync(cacheKey: string) {
info(`Saving fingerprint database to cache: ${cacheKey}`);
return saveCacheAsync(path.dirname(await getDbPathAsync()), cacheKey);
return uploadCache(path.dirname(await getDbPathAsync()), cacheKey);
}
/**
* Get the path to the fingerprint database
*/
async function getDbPathAsync(): Promise<string> {
assert(process.env['RUNNER_TOOL_CACHE'], 'Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined');
const result = path.join(process.env['RUNNER_TOOL_CACHE'], 'fingerprint-storage', 'fingerprint.db');
assert(
process.env['RUNNER_TOOL_CACHE'],
'Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined'
);
const result = path.join(
process.env['RUNNER_TOOL_CACHE'],
'fingerprint-storage',
'fingerprint.db'
);
const dir = path.dirname(result);
if (!(await fs.promises.stat(dir).catch(() => null))) {
await mkdirP(dir);
+14 -157
View File
@@ -1,179 +1,36 @@
import { getOctokit, context } from '@actions/github';
import { ok as assert } from 'assert';
type IssueContext = (typeof context)['issue'];
type IssueCommentContext = IssueContext & {
comment_id?: number;
};
import { context, getOctokit } from '@actions/github';
import assert from 'node:assert';
type AuthContext = {
/** GitHub token from the 'github-input' to authenticate with */
token?: string;
};
type Comment = {
/** A hidden identifier to embed in the comment */
id: string;
/** The contents of the comment */
body: string;
};
export type Reaction = {
content: '+1' | '-1' | 'laugh' | 'confused' | 'heart' | 'hooray' | 'rocket' | 'eyes';
};
/**
* Determine if a comment exists on an issue or pull with the provided identifier.
* This will iterate all comments received from GitHub, and try to exit early if it exists.
*/
export async function fetchIssueComment(options: AuthContext & IssueContext & Pick<Comment, 'id'>) {
const github = githubApi(options);
const iterator = github.paginate.iterator(github.rest.issues.listComments, {
owner: options.owner,
repo: options.repo,
issue_number: options.number,
});
for await (const { data: batch } of iterator) {
for (const item of batch) {
if ((item.body || '').includes(options.id)) {
return item;
}
}
}
}
/**
* Create a new comment on an existing issue or pull.
* This includes a hidden identifier (markdown comment) to identify the comment later.
* It will also update the comment when a previous comment id was found.
*/
export async function createIssueComment(options: AuthContext & IssueContext & Comment) {
const github = githubApi(options);
const body = `<!-- ${options.id} -->\n${options.body}`;
const existing = await fetchIssueComment(options);
if (existing) {
return github.rest.issues.updateComment({
owner: options.owner,
repo: options.repo,
comment_id: existing.id,
body,
});
}
return github.rest.issues.createComment({
owner: options.owner,
repo: options.repo,
issue_number: options.number,
body,
});
}
/**
* Get an authenticated octokit instance.
* This uses the 'GITHUB_TOKEN' environment variable, or 'github-token' input.
*/
export function githubApi(options: AuthContext = {}): ReturnType<typeof getOctokit> {
const token = process.env['GITHUB_TOKEN'] || options.token;
assert(token, `This step requires 'github-token' or a GITHUB_TOKEN environment variable to create comments`);
assert(
token,
`This step requires 'github-token' or a GITHUB_TOKEN environment variable to create comments`
);
return getOctokit(token);
}
/**
* Validate and extract the pull reference from context.
* If it's not a supported event, e.g. not a pull, it will throw an error.
* Unfortunately, we can't overwrite the GitHub event details, it includes some testing code.
* Get the default branch for the repository.
*/
export function pullContext(): IssueContext {
// see .github/workflows/test.yml in 'comment'
if (process.env['EXPO_TEST_GITHUB_PULL']) {
return { ...context.repo, number: Number(process.env['EXPO_TEST_GITHUB_PULL']) };
}
assert(
context.eventName === 'pull_request',
'Could not find the pull request context, make sure to run this from a pull_request triggered workflow'
);
return context.issue;
}
export function hasPullContext(): boolean {
try {
pullContext();
return true;
} catch {
return false;
}
}
export async function createReaction(options: AuthContext & IssueCommentContext & Reaction) {
const github = githubApi(options);
if (options.comment_id) {
return github.rest.reactions.createForIssueComment({
owner: options.owner,
repo: options.repo,
comment_id: options.comment_id,
content: options.content,
});
}
return github.rest.reactions.createForIssue({
owner: options.owner,
repo: options.repo,
issue_number: options.number,
content: options.content,
});
}
export function issueComment() {
assert(
context.eventName === 'issue_comment',
'Could not find the issue comment context, make sure to run this from a issue_comment triggered workflow'
);
return [
(context.payload?.comment?.body ?? '') as string,
{
...context.issue,
comment_id: context.payload?.comment?.id,
},
] as const;
export function getRepoDefaultBranch(): string | undefined {
return context.payload?.repository?.default_branch;
}
/**
* Get the commit message for a specific commit hash.
* True if the current event is a push to the target branch.
*
* @param targetBranch The branch to compare against.
*/
export async function getGitCommandMessageAsync(options: AuthContext, gitCommitHash: string): Promise<string> {
const github = githubApi({ token: options.token });
const result = await github.rest.git.getCommit({
...context.repo,
commit_sha: gitCommitHash,
});
return result.data.message;
}
/**
* True if the current event is a push to the default branch.
*/
export function isPushDefaultBranchContext() {
return context.eventName === 'push' && context.ref === `refs/heads/${context.payload?.repository?.default_branch}`;
}
/**
* Get the pull request information that associated with a specific commit hash.
*/
export async function getPullRequestFromGitCommitShaAsync(options: AuthContext, gitCommitHash: string) {
const github = githubApi({ token: options.token });
const results = await github.rest.repos.listPullRequestsAssociatedWithCommit({
...context.repo,
commit_sha: gitCommitHash,
});
return results.data.map(pr => ({
id: pr.id,
prNumber: pr.number,
prHeadCommitSha: pr.head.sha,
mergeCommitSha: pr.merge_commit_sha,
}));
export function isPushBranchContext(targetBranch: string) {
return context.eventName === 'push' && context.ref === `refs/heads/${targetBranch}`;
}
-46
View File
@@ -1,46 +0,0 @@
import { exec, getExecOutput } from '@actions/exec';
import { mkdirP } from '@actions/io';
import { cacheTool, tempPath } from './worker';
/**
* Resolve a package with version range to an exact version.
* This is useful to invalidate the cache _and_ using dist-tags or version ranges.
* It executes `npm info` and parses the latest manifest.
*/
export async function resolvePackage(name: string, range: string): Promise<string> {
let stdout = '';
try {
({ stdout } = await getExecOutput('npm', ['info', `${name}@${range}`, 'version', '--json'], { silent: true }));
} catch (error: unknown) {
throw new Error(`Could not resolve ${name}@${range}`, { cause: error });
}
// thanks npm, for returning a "" json string value for invalid versions
if (!stdout) {
throw new Error(`Could not resolve ${name}@${range}, reason:\nInvalid version`);
}
// thanks npm, for returning a "x.x.x" json value...
if (stdout.startsWith('"')) {
stdout = `[${stdout}]`;
}
return JSON.parse(stdout).at(-1);
}
/**
* Install a module using a node package manager, inside a temporary directory.
* If that's successful, move the module into the worker's tool cache.
*
* Note, we do assume that the packager is globally available AND has the `add <pkgspec>` command.
*/
export async function installPackage(name: string, version: string, manager: string) {
const temp = tempPath(name, version);
await mkdirP(temp);
await exec(manager, ['add', `${name}@${version}`], { cwd: temp });
return cacheTool(temp, name, version);
}
+134
View File
@@ -0,0 +1,134 @@
import { getExecOutput } from '@actions/exec';
import * as toolCache from '@actions/tool-cache';
import {
BunPackageManager,
NpmPackageManager,
PackageManagerOptions,
PnpmPackageManager,
YarnPackageManager,
} from '@expo/package-manager';
import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import { createToolPath } from './actions';
import { downloadCache, uploadCache } from './caches';
/**
* Create a new package manager instance by name.
* This supports `bun`, `npm`, `pnpm`, and `yarn`.
* It also expects the package manager binary to be globally available.
*/
export function createPackageManager(name: string, options?: PackageManagerOptions) {
switch (name.toLowerCase().trim()) {
case 'bun':
return new BunPackageManager(options);
case 'npm':
return new NpmPackageManager(options);
case 'pnpm':
return new PnpmPackageManager(options);
case 'yarn':
return new YarnPackageManager(options);
default:
throw new Error(
`Unknown package manager provided '${name}', expected 'bun', 'npm', 'pnpm', or 'yarn'.`
);
}
}
/**
* Resolve the exact version from a package using any range, dist-tag, or exact version.
* This assumes that the package manager has the following signature:
* - `bun info <name>@<specifier> version --json`
* - `npm info <name>@<specifier> version --json`
* - `pnpm info <name>@<specifier> version --json`
*
* Note, Yarn (v1) does not support this function signature and will use npm instead.
*/
export async function resolvePackageVersion(
name: string,
specifier: string,
manager = 'npm'
): Promise<string> {
// Yarn does not support `yarn info <name>@<specifier> version --json`
if (manager === 'yarn') {
manager = 'npm';
}
let stdout = '';
try {
({ stdout } = await getExecOutput(manager, [
'info',
`${name}@${specifier}`,
'version',
'--json',
]));
} catch (error: unknown) {
throw new Error(`Could not resolve '${name}@${specifier}'.`, { cause: error });
}
// Thanks npm, for returning a "" json string value for invalid versions
if (!stdout) {
throw new Error(`Could not resolve '${name}@${specifier}', invalid version provided.`);
}
let output: string | string[] = '';
try {
output = JSON.parse(stdout);
} catch (error: unknown) {
throw new Error(`Failed parsing '${name}@${specifier}' JSON formatted package information.`, {
cause: error,
});
}
if (typeof output === 'string' && output) return output;
if (Array.isArray(output) && output.length) return output.pop()!;
throw new Error(`Could not resolve '${name}@${specifier}', no versions found.`);
}
/**
* Install a package from either of these sources:
* - Local GitHub Actions tool cache
* - Remote persistent GitHub Actions cache
* - From provided package manager
*/
export async function installPackage({
name,
version,
packageManager,
packageCache,
}: {
name: string;
version: string;
packageManager: string;
packageCache: boolean;
}): Promise<string> {
// Look up previous installations in the tool cache
let toolPath = toolCache.find(name, version) || null;
// Create the persistent cache key for this package
const cacheKey = `${name}-${version}-${packageManager}-${process.platform}-${os.arch()}`;
// Look up previous installations from the persisted cache
if (!toolPath && packageCache) {
toolPath = await downloadCache(createToolPath(name, version), cacheKey);
}
// Install the tool from package manager
if (!toolPath) {
toolPath = createToolPath(name, version);
await fs.promises.mkdir(toolPath, { recursive: true });
const manager = createPackageManager(packageManager, { cwd: toolPath });
// npm requires an existing `package.json`
await fs.promises.writeFile(path.join(toolPath, 'package.json'), JSON.stringify({}));
await manager.addAsync([`${name}@${version}`]);
// Add to the tool cache for future use
if (packageCache) {
await uploadCache(toolPath, cacheKey);
}
}
return toolPath;
}
-22
View File
@@ -1,22 +0,0 @@
import { getExecOutput } from '@actions/exec';
import { ExpoConfig } from '@expo/config';
/**
* Load the Expo app project config in the given directory.
* This runs `expo config` command instead of using `@expo/config` directly,
* to use the app's own version of the config.
*/
export async function loadProjectConfig(cwd: string): Promise<ExpoConfig> {
let stdout = '';
try {
({ stdout } = await getExecOutput('npx', ['expo', 'config', '--json', '--type', 'public'], {
cwd,
silent: true,
}));
} catch (error: unknown) {
throw new Error(`Could not fetch the project info from ${cwd}`, { cause: error });
}
return JSON.parse(stdout);
}
@@ -0,0 +1,95 @@
import { afterEach, beforeEach, describe, expect, it, mock } from 'bun:test';
import { fs, vol } from 'memfs';
import path from 'node:path';
import { determineSourceAppPathAsync } from '../repackUtils';
mock.module('node:fs', () => ({ default: fs }));
mock.module('node:fs/promises', () => ({ default: fs.promises }));
mock.module('glob', () => ({
glob: async (pattern: string, options: { cwd: string; absolute: boolean }) => {
const result = await vol.promises.glob(pattern, { cwd: options.cwd });
if (options.absolute) {
return result.map((file) => path.join(options.cwd, file));
}
return result;
},
}));
describe('determineSourceAppPathAsync', () => {
const tempDir = '/tmp/test';
beforeEach(() => {
vol.reset();
vol.mkdirSync(tempDir, { recursive: true });
});
afterEach(() => {
vol.reset();
});
it('should return the absolute path when given a file path', async () => {
const apkPath = path.join(tempDir, 'app.apk');
await fs.promises.writeFile(apkPath, '');
const result = await determineSourceAppPathAsync(apkPath);
expect(result).toBe(apkPath);
});
it('should find apk file in directory', async () => {
const apkPath = path.join(tempDir, 'app.apk');
await fs.promises.writeFile(apkPath, '');
const result = await determineSourceAppPathAsync(tempDir);
expect(result).toBe(apkPath);
});
it('should find aab file in directory', async () => {
const aabPath = path.join(tempDir, 'app.aab');
await fs.promises.writeFile(aabPath, '');
const result = await determineSourceAppPathAsync(tempDir);
expect(result).toBe(aabPath);
});
it('should find ipa file in directory', async () => {
const ipaPath = path.join(tempDir, 'app.ipa');
await fs.promises.writeFile(ipaPath, '');
const result = await determineSourceAppPathAsync(tempDir);
expect(result).toBe(ipaPath);
});
it('should throw error when source app file does not exist', async () => {
const nonExistentPath = path.join(tempDir, 'nonexistent.apk');
await expect(determineSourceAppPathAsync(nonExistentPath)).rejects.toThrow(
`The source app file does not exist: ${nonExistentPath}`
);
});
it('should throw error when no app files found in directory', async () => {
await expect(determineSourceAppPathAsync(tempDir)).rejects.toThrow(
`No app files found in the directory: ${tempDir}`
);
});
it('should throw error when multiple app files found in directory', async () => {
await fs.promises.writeFile(path.join(tempDir, 'app1.apk'), '');
await fs.promises.writeFile(path.join(tempDir, 'app2.apk'), '');
await expect(determineSourceAppPathAsync(tempDir)).rejects.toThrow(
`Multiple app files found in the directory: ${tempDir}`
);
});
it('should ignore non-app files in directory', async () => {
const apkPath = path.join(tempDir, 'app.apk');
await fs.promises.writeFile(apkPath, '');
await fs.promises.writeFile(path.join(tempDir, 'README.md'), '');
await fs.promises.writeFile(path.join(tempDir, 'config.json'), '');
const result = await determineSourceAppPathAsync(tempDir);
expect(result).toBe(apkPath);
});
});
+30
View File
@@ -0,0 +1,30 @@
import { glob } from 'glob';
import fs from 'node:fs';
import path from 'node:path';
/**
* Determines the absolute path to the source app.
*/
export async function determineSourceAppPathAsync(sourceApp: string): Promise<string> {
const sourceAppPath = path.resolve(sourceApp);
let isFile = false;
try {
const stat = await fs.promises.stat(sourceAppPath);
isFile = stat.isFile();
} catch {
throw new Error(`The source app file does not exist: ${sourceApp}`);
}
if (isFile) {
return sourceAppPath;
}
const candidates = await glob('*.{apk,aab,ipa}', { cwd: sourceAppPath, absolute: true });
if (candidates.length === 0) {
throw new Error(`No app files found in the directory: ${sourceApp}`);
}
if (candidates.length > 1) {
throw new Error(`Multiple app files found in the directory: ${sourceApp}`);
}
return candidates[0];
}
+109
View File
@@ -0,0 +1,109 @@
import fs from 'node:fs';
import path from 'node:path';
import { parseArgs, styleText } from 'node:util';
run().catch((error) => {
console.error(error);
process.exit(1);
});
async function run(input = resolveInput()) {
// Build all actions
await build(input);
// Enable watch mode
if (input.watch) {
for await (const event of fs.promises.watch(path.join(__dirname, '../src'), {
recursive: true,
})) {
console.log(styleText('dim', `${event.eventType}: ${event.filename}`));
await build(input);
}
}
}
/**
* Build all (sub)actions as standalone entry points.
* This enables GitHub Actions to execute single actions as fast as possible.
*/
async function build(input: ReturnType<typeof resolveInput>) {
const startedAt = Date.now();
try {
const result = await Bun.build({
entrypoints: resolveActions(input.actionsDir),
outdir: input.buildDir,
// Build the CLI for node
target: 'node',
format: 'cjs',
// Minify the code
minify: true,
sourcemap: 'none',
plugins: [],
external: ['@expo/fingerprint', 'module', 'sqlite3'],
});
console.log(
`✅ Build succeeded in ${Date.now() - startedAt}ms`,
styleText(
'dim',
'\n - ' +
result.outputs
.map((file) => `${path.basename(file.path)}: ${bytesToSizeText(file.size)}`)
.join('\n - ')
)
);
} catch (error) {
console.error(`❌ Build failed in ${Date.now() - startedAt}ms`);
if (input.watch) {
console.error(error);
} else {
throw error;
}
}
}
/** Resolve all action entrypoints */
function resolveActions(dir: string) {
return fs
.readdirSync(dir, { withFileTypes: true })
.filter((entity) => entity.isFile())
.map((entity) => path.join(dir, entity.name));
}
// See: https://stackoverflow.com/a/14919494
function bytesToSizeText(bytes: number, decimals = 2) {
const thresh = 1000;
if (Math.abs(bytes) < thresh) {
return bytes + ' B';
}
const units = ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
let u = -1;
const r = 10 ** decimals;
do {
bytes /= thresh;
++u;
} while (Math.round(Math.abs(bytes) * r) / r >= thresh && u < units.length - 1);
return bytes.toFixed(decimals) + ' ' + units[u];
}
function resolveInput() {
const actionsDir = path.resolve(__dirname, '../actions');
const buildDir = path.resolve(__dirname, '../../build');
const { values } = parseArgs({
strict: false,
options: {
watch: { type: 'boolean' },
},
});
return {
actionsDir,
buildDir,
watch: !!values.watch,
};
}
+40 -20
View File
@@ -1,12 +1,11 @@
import { group } from '@actions/core';
import assert from 'assert';
import path from 'path';
import * as core from '@actions/core';
import assert from 'node:assert';
import path from 'node:path';
import { promisify } from 'node:util';
import type sqlite3Types from 'sqlite3';
import { promisify } from 'util';
import { restoreFromCache, saveToCache } from './cacher';
import { installPackage, resolvePackage } from './packager';
import { addGlobalNodeSearchPath, findTool } from './worker';
import { addGlobalNodeSearchPath } from './actions';
import { installPackage, resolvePackageVersion } from './packages';
/**
* A database object with async methods.
@@ -20,24 +19,46 @@ export interface Database extends sqlite3Types.Database {
allAsync: <T>(sql: string, ...params: any[]) => Promise<T[]>;
}
export type CamelizeString<T extends PropertyKey, C extends string = ''> = T extends string
? string extends T
? string
: T extends `${infer F}_${infer R}`
? CamelizeString<Capitalize<R>, `${C}${F}`>
: `${C}${T}`
: T;
export type Camelize<T> = { [K in keyof T as CamelizeString<K>]: T[K] };
/**
* Open a database and return a promise that resolves to a database object.
*/
export function openDatabaseAsync(filename: string): Promise<Database> {
return new Promise<sqlite3Types.Database>((resolve, reject) => {
const sqlite3 = require('sqlite3') as typeof import('sqlite3');
const db = new sqlite3.Database(filename, err => {
const db = new sqlite3.Database(filename, (err) => {
if (err) {
reject(err);
} else {
resolve(db);
}
});
}).then(db => {
}).then((db) => {
return {
...db,
closeAsync: promisify(db.close.bind(db)),
runAsync: promisify(db.run.bind(db)),
runAsync: (sql: string, ...params: any[]) =>
// We cannot use `promisify` here because `this` is used in the callback for `lastID` and `changes`
// > you must use an old-school function () { ... } style callback rather than a lambda function, otherwise this.lastID and this.changes will be undefined.
// https://github.com/TryGhost/node-sqlite3/wiki/API#runsql--param---callback
new Promise<sqlite3Types.RunResult>((resolve, reject) => {
db.run(sql, ...params, function (this: sqlite3Types.RunResult, err: Error | null) {
if (err) {
reject(err);
} else {
resolve(this);
}
});
}),
execAsync: promisify(db.exec.bind(db)),
prepareAsync: promisify(db.prepare.bind(db)),
getAsync: promisify(db.get.bind(db)),
@@ -52,19 +73,18 @@ export function openDatabaseAsync(filename: string): Promise<Database> {
export async function installSQLiteAsync(packager: string): Promise<string> {
const sqliteVersion = require('../package.json').devDependencies.sqlite3;
assert(sqliteVersion);
const packageName = 'sqlite3';
const version = await resolvePackage(packageName, sqliteVersion);
const version = await resolvePackageVersion(packageName, sqliteVersion);
const message = `Installing ${packageName} (${version}) from cache or with ${packager}`;
return await group(message, async () => {
let libRoot = findTool(packageName, version) || null;
if (!libRoot) {
libRoot = await restoreFromCache(packageName, version, packager);
}
if (!libRoot) {
libRoot = await installPackage(packageName, version, packager);
await saveToCache(packageName, version, packager);
}
return await core.group(message, async () => {
const libRoot = await installPackage({
name: packageName,
version,
packageManager: packager,
packageCache: true,
});
addGlobalNodeSearchPath(path.join(libRoot, 'node_modules'));
return libRoot;
+27 -7
View File
@@ -1,11 +1,31 @@
/**
* Replace all template variables in a string.
* This uses the notation of `{varname}`, which can be defined as object.
* Retry an async function a number of times with a delay between each attempt.
*/
export function template(template: string, replacements: Record<string, string>) {
let result = template;
for (const name in replacements) {
result = result.replaceAll(`{${name}}`, replacements[name]);
export async function retryAsync<T>(
fn: () => Promise<T>,
retries: number,
delayAfterErrorMs: number = 5000
): Promise<T> {
let lastError: Error | undefined;
for (let i = 0; i < retries; ++i) {
try {
return await fn();
} catch (e) {
if (e instanceof Error) {
lastError = e;
await delayAsync(delayAfterErrorMs);
}
}
}
return result;
if (lastError) {
throw lastError;
}
throw new Error('retryAsync function did not return a value');
}
/**
* Delay by the given milliseconds.
*/
export async function delayAsync(timeMs: number) {
return new Promise((resolve) => setTimeout(resolve, timeMs));
}
-86
View File
@@ -1,86 +0,0 @@
import { addPath, debug, info, setFailed, warning } from '@actions/core';
import { exec } from '@actions/exec';
import { ok as assert } from 'assert';
import os from 'os';
import path from 'path';
export { find as findTool, cacheDir as cacheTool } from '@actions/tool-cache';
/**
* Auto-execute the action and pass errors to 'core.setFailed'.
* It also passes the full error, with stacktrace, to 'core.debug'.
* You'll need to enable debugging to view these full errors.
*
* @see https://github.com/actions/toolkit/blob/main/docs/action-debugging.md#step-debug-logs
*/
export function executeAction(action: () => Promise<void>) {
return action().catch((error: Error) => {
setFailed(error.message || error);
debug(error.stack || 'No stacktrace available');
});
}
/**
* Install a "tool" from a node package.
* This will add the folder, containing the `node_modules`, to the global path.
*/
export function installToolFromPackage(dir: string) {
return addPath(path.join(dir, 'node_modules', '.bin'));
}
/**
* Try to patch Linux's inotify limits to a more sensible setting on Linux.
* This limitation could cause `ENOSPC` errors when bundling Expo or React Native projects.
*
* It will try to change these `fs.inotify.` limits:
* - .max_user_instances = 524288
* - .max_user_watches = 524288
* - .max_queued_events = 524288
*
* @see https://github.com/expo/expo-github-action/issues/20
*/
export async function patchWatchers(): Promise<void> {
if (process.platform !== 'linux') {
return info('Skipped patching watchers: not running on Linux.');
}
try {
// see https://github.com/expo/expo-cli/issues/277#issuecomment-452685177
await exec('sudo sysctl fs.inotify.max_user_instances=524288');
await exec('sudo sysctl fs.inotify.max_user_watches=524288');
await exec('sudo sysctl fs.inotify.max_queued_events=524288');
await exec('sudo sysctl -p');
info('Patched system watchers for the `ENOSPC` error.');
} catch (error) {
warning(`Looks like we can't patch watchers/inotify limits, you might encouter the 'ENOSPC' error.`);
warning('For more info: https://github.com/expo/expo-github-action/issues/20, encountered error:');
warning(String(error));
}
}
export function tempPath(name: string, version: string): string {
assert(process.env['RUNNER_TEMP'], 'Could not resolve temporary path, RUNNER_TEMP not defined');
return path.join(process.env['RUNNER_TEMP'], name, version, os.arch());
}
/**
* Get the package path to the tool cache.
*
* @see https://github.com/actions/toolkit/blob/daf8bb00606d37ee2431d9b1596b88513dcf9c59/packages/tool-cache/src/tool-cache.ts#L747-L749
*/
export function toolPath(name: string, version: string): string {
assert(process.env['RUNNER_TOOL_CACHE'], 'Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined');
return path.join(process.env['RUNNER_TOOL_CACHE'], name, version, os.arch());
}
/**
* Add extra `searchPath` to the global search path for require()
*/
export function addGlobalNodeSearchPath(searchPath: string) {
const nodePath = process.env['NODE_PATH'] || '';
const delimiter = process.platform === 'win32' ? ';' : ':';
const nodePaths = nodePath.split(delimiter);
nodePaths.push(searchPath);
process.env['NODE_PATH'] = nodePaths.join(delimiter);
require('module').Module._initPaths();
}
-140
View File
@@ -1,140 +0,0 @@
import * as core from '@actions/core';
import { commentInput, commentAction, DEFAULT_ID, DEFAULT_MESSAGE } from '../../src/actions/preview-comment';
import * as expo from '../../src/expo';
import * as github from '../../src/github';
import { mockInput } from '../utils';
jest.mock('@actions/core');
jest.mock('../../src/expo');
jest.mock('../../src/github');
jest.mock('../../src/worker');
describe(commentInput, () => {
it('returns object with correct defaults', () => {
expect(commentInput()).toMatchObject({
channel: 'default',
comment: true,
message: DEFAULT_MESSAGE,
messageId: DEFAULT_ID,
project: undefined,
githubToken: undefined,
});
});
it('returns project path', () => {
mockInput({ project: 'fake/project' });
expect(commentInput()).toMatchObject({ project: 'fake/project' });
});
it('returns disabled comment', () => {
mockInput({ comment: 'false' });
expect(commentInput()).toMatchObject({ comment: false });
});
it('returns message and id', () => {
mockInput({ message: 'fake message', 'message-id': 'fake id' });
expect(commentInput()).toMatchObject({ message: 'fake message', messageId: 'fake id' });
});
it('returns channel', () => {
mockInput({ channel: 'pr-420' });
expect(commentInput()).toMatchObject({ channel: 'pr-420' });
});
it('returns github-token', () => {
mockInput({ 'github-token': 'fakegithubtoken' });
expect(commentInput()).toMatchObject({ githubToken: 'fakegithubtoken' });
});
});
describe(commentAction, () => {
const input: ReturnType<typeof commentInput> = {
channel: 'default',
comment: false,
message: DEFAULT_MESSAGE,
messageId: DEFAULT_ID,
project: '',
githubToken: '',
};
beforeEach(() => {
jest.mocked(expo.projectInfo).mockResolvedValue({ name: 'fakename', slug: 'fakeslug' });
jest.mocked(expo.projectOwner).mockResolvedValue('fakeuser');
});
it('warns users for deprecated publish', async () => {
await commentAction({ ...input });
expect(core.warning).toBeCalledWith(
'Expo publish is deprecated, but will be suported until 2024. Read more: https://blog.expo.dev/sunsetting-expo-publish-and-classic-updates-6cb9cd295378'
);
});
it('resolves project info by project path', async () => {
await commentAction({ ...input, project: 'fake/path' });
expect(expo.projectInfo).toBeCalledWith('fake/path');
});
it('resolves project owner info by manifest owner', async () => {
jest.mocked(expo.projectInfo).mockResolvedValue({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' });
await commentAction({ ...input });
expect(core.setOutput).toBeCalledWith('projectOwner', 'fakeowner');
expect(expo.projectOwner).not.toBeCalled();
});
it('resolves project owner info by current user', async () => {
await commentAction({ ...input });
expect(core.setOutput).toBeCalledWith('projectOwner', 'fakeuser');
});
it('creates comment when enabled', async () => {
await commentAction({ ...input, comment: true });
expect(github.pullContext).toBeCalled();
expect(github.createIssueComment).toBeCalled();
});
it('resolves the template variables for message', async () => {
await commentAction({ ...input });
const message = jest.mocked(core.setOutput).mock.calls.find(call => call[0] === 'message');
expect(message![1]).not.toMatch(DEFAULT_MESSAGE);
});
describe('outputs', () => {
it('sets projectOwner', async () => {
await commentAction({ ...input });
expect(core.setOutput).toBeCalledWith('projectOwner', 'fakeuser');
});
it('sets projectName', async () => {
await commentAction({ ...input });
expect(core.setOutput).toBeCalledWith('projectName', 'fakename');
});
it('sets projectSlug', async () => {
await commentAction({ ...input });
expect(core.setOutput).toBeCalledWith('projectSlug', 'fakeslug');
});
it('sets projectLink', async () => {
jest.mocked(expo.projectLink).mockReturnValue('https://expo.dev/@fakeuser/fakeslug');
await commentAction({ ...input });
expect(core.setOutput).toBeCalledWith('projectLink', 'https://expo.dev/@fakeuser/fakeslug');
});
it('sets projectQR', async () => {
jest.mocked(expo.projectQR).mockReturnValue('https://qr.expo.dev/expo-go?owner=fakeuser&slug=fakeslug');
await commentAction({ ...input });
expect(core.setOutput).toBeCalledWith('projectQR', 'https://qr.expo.dev/expo-go?owner=fakeuser&slug=fakeslug');
});
it('sets message', async () => {
await commentAction({ ...input });
expect(core.setOutput).toBeCalledWith('message', expect.any(String));
});
it('sets messageId', async () => {
await commentAction({ ...input });
expect(core.setOutput).toBeCalledWith('messageId', expect.any(String));
});
});
});
-235
View File
@@ -1,235 +0,0 @@
import { ExpoConfig } from '@expo/config';
import {
createSummary,
getQrTarget,
getSchemesInOrderFromConfig,
getVariables,
previewInput,
} from '../../src/actions/preview';
import { EasUpdate } from '../../src/eas';
import { projectAppType } from '../../src/expo';
jest.mock('../../src/expo');
const fakeOptions = {
qrTarget: 'dev-client',
} as unknown as ReturnType<typeof previewInput>;
const fakeExpoConfig = {
slug: 'fake-project',
extra: {
eas: { projectId: 'fake-project-id' },
},
} as unknown as ExpoConfig;
const fakeUpdatesSingle: EasUpdate[] = [
{
id: 'fake-android-id',
createdAt: '2023-02-04T14:15:20.365Z',
group: 'fake-group-id',
branch: 'main',
message: 'feature: create new update',
runtimeVersion: 'exposdk:47.0.0',
platform: 'android',
manifestPermalink: 'https://u.expo.dev/update/fake-android-id',
gitCommitHash: 'aabbccdd',
},
{
id: 'fake-ios-id',
createdAt: '2023-02-04T14:15:20.365Z',
group: 'fake-group-id',
branch: 'main',
message: 'feature: create new update',
runtimeVersion: 'exposdk:47.0.0',
platform: 'ios',
manifestPermalink: 'https://u.expo.dev/update/fake-ios-id',
gitCommitHash: 'aabbccdd',
},
];
const fakeUpdatesMultiple = fakeUpdatesSingle.map(update => ({ ...update, group: `fake-group-${update.id}` }));
describe(getQrTarget, () => {
it('returns `dev-build` for `qr-target: dev-build`', () => {
expect(getQrTarget({ ...fakeOptions, qrTarget: 'dev-build' })).toBe('dev-build');
});
it('returns `dev-build` for `qr-target: dev-client`', () => {
expect(getQrTarget({ ...fakeOptions, qrTarget: 'dev-client' })).toBe('dev-build');
});
it('returns `expo-go` for `qr-target: expo-go`', () => {
expect(getQrTarget({ ...fakeOptions, qrTarget: 'expo-go' })).toBe('expo-go');
});
it('throws for unknown `qr-target`', () => {
expect(() => getQrTarget({ ...fakeOptions, qrTarget: 'unknown' } as any)).toThrow(
`Invalid QR code target: "unknown", expected "expo-go" or "dev-build"`
);
});
it('returns infered `dev-build` when input is omitted', () => {
jest.mocked(projectAppType).mockReturnValue('dev-build');
expect(getQrTarget({ ...fakeOptions, qrTarget: undefined })).toBe('dev-build');
});
it('returns infered `expo-go` when input is omitted', () => {
jest.mocked(projectAppType).mockReturnValue('expo-go');
expect(getQrTarget({ ...fakeOptions, qrTarget: undefined })).toBe('expo-go');
});
});
describe(getSchemesInOrderFromConfig, () => {
it('returns empty array when not defined', () => {
expect(getSchemesInOrderFromConfig({} as ExpoConfig)).toEqual([]);
});
it('returns scheme as array when defined as string', () => {
expect(getSchemesInOrderFromConfig({ scheme: 'ega' } as ExpoConfig)).toEqual(['ega']);
});
it('returns schemes in order when defined as array', () => {
expect(getSchemesInOrderFromConfig({ scheme: ['ega', 'expogithubaction'] } as ExpoConfig)).toEqual([
'expogithubaction',
'ega',
]);
});
});
describe(createSummary, () => {
describe('single update group', () => {
it('returns expected message for both platforms', () => {
expect(createSummary(fakeUpdatesSingle, getVariables(fakeExpoConfig, fakeUpdatesSingle, fakeOptions)))
.toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platforms → **android**, **ios**
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
it('returns expected message for both platforms with custom app scheme', () => {
const customSchemeConfig = { ...fakeExpoConfig, scheme: ['ega', 'expogithubaction'] };
expect(createSummary(fakeUpdatesSingle, getVariables(customSchemeConfig, fakeUpdatesSingle, fakeOptions)))
.toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platforms → **android**, **ios**
- Scheme → **expogithubaction**, **ega**
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
it('returns expected message for android only', () => {
const fakeUpdate = fakeUpdatesSingle.filter(update => update.platform === 'android');
expect(createSummary(fakeUpdate, getVariables(fakeExpoConfig, fakeUpdate, fakeOptions))).toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platform → **android**
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
it('returns expected message for ios only', () => {
const fakeUpdate = fakeUpdatesSingle.filter(update => update.platform === 'ios');
expect(createSummary(fakeUpdate, getVariables(fakeExpoConfig, fakeUpdate, fakeOptions))).toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platform → **ios**
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
});
describe('mutliple update groups', () => {
it('returns expected message for both platforms', () => {
expect(createSummary(fakeUpdatesMultiple, getVariables(fakeExpoConfig, fakeUpdatesMultiple, fakeOptions)))
.toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platforms → **android**, **ios**
Android <br /> _(exposdk:47.0.0)_ <br /> **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-fake-android-id)** | iOS <br /> _(exposdk:47.0.0)_ <br /> **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-fake-ios-id)**
--- | ---
<a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-fake-android-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-fake-android-id" width="250px" height="250px" /></a> | <a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-fake-ios-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-fake-ios-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
it('returns expected message for android only', () => {
const fakeUpdate = fakeUpdatesSingle.filter(update => update.platform === 'android');
expect(createSummary(fakeUpdate, getVariables(fakeExpoConfig, fakeUpdate, fakeOptions))).toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platform → **android**
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
it('returns expected message for ios only', () => {
const fakeUpdate = fakeUpdatesSingle.filter(update => update.platform === 'ios');
expect(createSummary(fakeUpdate, getVariables(fakeExpoConfig, fakeUpdate, fakeOptions))).toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platform → **ios**
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
it('returns Expo Go compatible QR code when forced', () => {
const customOptions: typeof fakeOptions = { ...fakeOptions, qrTarget: 'expo-go' };
expect(createSummary(fakeUpdatesMultiple, getVariables(fakeExpoConfig, fakeUpdatesMultiple, customOptions)))
.toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platforms → **android**, **ios**
Android <br /> _(exposdk:47.0.0)_ <br /> **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-fake-android-id)** | iOS <br /> _(exposdk:47.0.0)_ <br /> **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-fake-ios-id)**
--- | ---
<a href="https://qr.expo.dev/eas-update?projectId=fake-project-id&groupId=fake-group-fake-android-id"><img src="https://qr.expo.dev/eas-update?projectId=fake-project-id&groupId=fake-group-fake-android-id" width="250px" height="250px" /></a> | <a href="https://qr.expo.dev/eas-update?projectId=fake-project-id&groupId=fake-group-fake-ios-id"><img src="https://qr.expo.dev/eas-update?projectId=fake-project-id&groupId=fake-group-fake-ios-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
});
});
-110
View File
@@ -1,110 +0,0 @@
import * as core from '@actions/core';
import { setupInput, setupAction } from '../../src/actions/setup';
import * as cacher from '../../src/cacher';
import * as expo from '../../src/expo';
import * as packager from '../../src/packager';
import * as worker from '../../src/worker';
import { mockInput } from '../utils';
jest.mock('@actions/core');
jest.mock('../../src/cacher');
jest.mock('../../src/expo');
jest.mock('../../src/packager');
jest.mock('../../src/worker');
describe(setupInput, () => {
it('returns object with correct defaults', () => {
expect(setupInput()).toMatchObject({
easCache: true,
easVersion: undefined,
expoCache: true,
expoVersion: undefined,
packager: 'yarn',
patchWatchers: true,
token: undefined,
});
});
it('returns expo version and cache', () => {
mockInput({ 'expo-version': '5.x', 'expo-cache': 'true' });
expect(setupInput()).toMatchObject({ expoVersion: '5.x', expoCache: true });
});
it('returns eas version and cache', () => {
mockInput({ 'eas-version': 'latest', 'eas-cache': 'true' });
expect(setupInput()).toMatchObject({ easVersion: 'latest', easCache: true });
});
it('returns different packager', () => {
mockInput({ packager: 'npm' });
expect(setupInput()).toMatchObject({ packager: 'npm' });
});
it('returns disabled patch watchers', () => {
mockInput({ 'patch-watchers': 'false' });
expect(setupInput()).toMatchObject({ patchWatchers: false });
});
it('returns token', () => {
mockInput({ token: 'faketoken' });
expect(setupInput()).toMatchObject({ token: 'faketoken' });
});
});
describe(setupAction, () => {
const input: ReturnType<typeof setupInput> = {
easCache: false,
easVersion: '',
expoCache: false,
expoVersion: '',
packager: 'yarn',
patchWatchers: true,
token: '',
};
beforeAll(() => {
jest.mocked(core.group).mockImplementation((_, action) => action());
});
['expo', 'eas'].forEach(cli => {
const cliName = `${cli}-cli`;
const cliVersion = `${cli}Version`;
const cliCache = `${cli}Cache`;
it(`installs ${cliName} using npm`, async () => {
jest.mocked(packager.resolvePackage).mockResolvedValue('5.0.3');
await setupAction({ ...input, [cliVersion]: '5.x', [cliCache]: false, packager: 'npm' });
expect(packager.installPackage).toBeCalledWith(cliName, '5.0.3', 'npm');
expect(worker.installToolFromPackage).toBeCalled();
});
it(`installs ${cliName} from cache`, async () => {
jest.mocked(packager.resolvePackage).mockResolvedValue('5.0.3');
jest.mocked(cacher.restoreFromCache).mockResolvedValue('fake/path');
await setupAction({ ...input, [cliVersion]: 'latest', [cliCache]: true });
expect(packager.installPackage).not.toBeCalled();
expect(worker.installToolFromPackage).toBeCalledWith('fake/path');
});
});
it('authenticates token with eas-cli by default', async () => {
await setupAction({ ...input, expoVersion: 'latest', easVersion: 'latest', token: 'faketoken' });
expect(expo.authenticate).toBeCalledWith('faketoken', 'eas');
});
it('authenticates token with expo-cli without eas-cli', async () => {
await setupAction({ ...input, expoVersion: 'latest', token: 'faketoken' });
expect(expo.authenticate).toBeCalledWith('faketoken', 'expo');
});
it('authenticates token without any cli', async () => {
await setupAction({ ...input, token: 'faketoken' });
expect(expo.authenticate).toBeCalledWith('faketoken', undefined);
});
it('patches watchers', async () => {
await setupAction({ ...input, patchWatchers: true });
expect(worker.patchWatchers).toBeCalled();
});
});
-77
View File
@@ -1,77 +0,0 @@
import * as cache from '@actions/cache';
import os from 'os';
import { resetEnv, setEnv } from './utils';
import { cacheKey, restoreFromCache, saveToCache } from '../src/cacher';
import { toolPath } from '../src/worker';
jest.mock('@actions/cache');
jest.mock('@actions/core');
beforeAll(() => {
setEnv('RUNNER_TOOL_CACHE', os.tmpdir());
});
afterAll(resetEnv);
describe(cacheKey, () => {
it('returns contains package name, version, and manager', () => {
expect(cacheKey('expo-cli', '5.0.3', 'yarn')).toMatch('expo-cli');
expect(cacheKey('expo-cli', '5.0.3', 'yarn')).toMatch('5.0.3');
expect(cacheKey('eas-cli', '5.0.3', 'npm')).toMatch('npm');
});
it('contains the os arch type', () => {
expect(cacheKey('eas-cli', '5.0.3', 'yarn')).toMatch(os.arch());
});
it('contains the platform type', () => {
expect(cacheKey('eas-cli', '5.0.3', 'yarn')).toMatch(process.platform);
});
});
describe(restoreFromCache, () => {
it('skips when cache is unavailable', async () => {
jest.mocked(cache.isFeatureAvailable).mockReturnValue(false);
jest.mocked(cache.restoreCache).mockRejectedValue(new Error('Cache service url not found'));
await expect(restoreFromCache('expo-cli', '5.0.3', 'yarn')).resolves.toBeNull();
});
it('throws when cache has unexpected error', async () => {
jest.mocked(cache.isFeatureAvailable).mockReturnValue(true);
jest.mocked(cache.restoreCache).mockRejectedValue(new Error('Node registry is down'));
await expect(restoreFromCache('expo-cli', '5.0.3', 'yarn')).rejects.toThrow('Node registry is down');
});
it('returns expo-cli path from cache when available', async () => {
jest.mocked(cache.isFeatureAvailable).mockReturnValue(true);
jest.mocked(cache.restoreCache).mockResolvedValue('fake/path');
await expect(restoreFromCache('expo-cli', '5.0.3', 'yarn')).resolves.toBe(toolPath('expo-cli', '5.0.3'));
});
it('returns nothing when cache is empty', async () => {
jest.mocked(cache.isFeatureAvailable).mockReturnValue(true);
jest.mocked(cache.restoreCache).mockResolvedValue(undefined);
await expect(restoreFromCache('eas-cli', '0.46.2', 'npm')).resolves.toBeNull();
});
});
describe(saveToCache, () => {
it('skips when cache is unavailable', async () => {
jest.mocked(cache.isFeatureAvailable).mockReturnValue(false);
jest.mocked(cache.saveCache).mockRejectedValue(new Error('Cache service url not found'));
await expect(saveToCache('expo-cli', '5.0.3', 'yarn')).resolves.toBeUndefined();
});
it('throws when cache has unexpected error', async () => {
jest.mocked(cache.isFeatureAvailable).mockReturnValue(true);
jest.mocked(cache.saveCache).mockRejectedValue(new Error('Node registry is down'));
await expect(saveToCache('expo-cli', '5.0.3', 'yarn')).rejects.toThrow('Node registry is down');
});
it('saves expo-cli to cache when available', async () => {
jest.mocked(cache.isFeatureAvailable).mockReturnValue(true);
jest.mocked(cache.saveCache).mockResolvedValue(1337);
await expect(saveToCache('expo-cli', '5.0.3', 'yarn')).resolves.toBeUndefined();
});
});
-36
View File
@@ -1,36 +0,0 @@
import { getUpdateGroupQr } from '../src/eas';
describe(getUpdateGroupQr, () => {
it('returns url for expo-go', () => {
expect(
getUpdateGroupQr({
qrTarget: 'expo-go',
projectId: 'projectId',
updateGroupId: 'updateGroupId',
appSlug: 'appslug',
})
).toBe('https://qr.expo.dev/eas-update?projectId=projectId&groupId=updateGroupId');
});
it('returns url for dev-build', () => {
expect(
getUpdateGroupQr({
qrTarget: 'dev-build',
projectId: 'projectId',
updateGroupId: 'updateGroupId',
appSlug: 'appslug',
})
).toBe('https://qr.expo.dev/eas-update?appScheme=appslug&projectId=projectId&groupId=updateGroupId');
});
it('returns url for dev-build, with `_` in appSlug', () => {
expect(
getUpdateGroupQr({
qrTarget: 'dev-build',
projectId: 'projectId',
updateGroupId: 'updateGroupId',
appSlug: 'hello_world',
})
).toBe('https://qr.expo.dev/eas-update?appScheme=helloworld&projectId=projectId&groupId=updateGroupId');
});
});
-106
View File
@@ -1,106 +0,0 @@
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import * as io from '@actions/io';
import { authenticate, projectQR, projectLink, projectDeepLink, parseCommand } from '../src/expo';
jest.mock('@actions/core');
jest.mock('@actions/exec');
jest.mock('@actions/io');
describe(parseCommand, () => {
it('invalid command', async () => {
expect(parseCommand('eas submit')).toBe(null);
});
it('#eas submit', async () => {
expect(parseCommand('#eas submit')).toStrictEqual({
raw: 'eas submit',
cli: 'eas',
args: ['submit'],
});
expect(parseCommand('#eas submit -p ios ')).toStrictEqual({
raw: 'eas submit -p ios',
cli: 'eas',
args: ['submit', '-p', 'ios'],
});
});
});
describe(authenticate, () => {
it('exports EXPO_TOKEN variable', async () => {
await authenticate('faketoken', undefined);
expect(core.exportVariable).toBeCalledWith('EXPO_TOKEN', 'faketoken');
});
it('validates EXPO_TOKEN with expo-cli', async () => {
jest.mocked(io.which).mockResolvedValue('expo');
await authenticate('faketoken', 'expo');
expect(io.which).toBeCalledWith('expo');
expect(exec.exec).toBeCalledWith('expo', ['whoami'], {
env: expect.objectContaining({ EXPO_TOKEN: 'faketoken' }),
});
});
it('validates EXPO_TOKEN with eas-cli', async () => {
jest.mocked(io.which).mockResolvedValue('eas');
await authenticate('faketoken', 'eas');
expect(io.which).toBeCalledWith('eas');
expect(exec.exec).toBeCalledWith('eas', ['whoami'], {
env: expect.objectContaining({ EXPO_TOKEN: 'faketoken' }),
});
});
});
describe(projectQR, () => {
it('throws when owner is undefined', () => {
expect(() => projectQR({ name: 'fakename', slug: 'fakeslug' })).toThrow('without owner');
});
it('returns url with owner and slug', () => {
expect(projectQR({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' })).toBe(
'https://qr.expo.dev/expo-go?owner=fakeowner&slug=fakeslug'
);
});
it('returns url with owner, slug, and release channel', () => {
expect(projectQR({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' }, 'fakechannel')).toBe(
'https://qr.expo.dev/expo-go?owner=fakeowner&slug=fakeslug&releaseChannel=fakechannel'
);
});
});
describe(projectLink, () => {
it('throws when owner is undefined', () => {
expect(() => projectLink({ name: 'fakename', slug: 'fakeslug' })).toThrow('without owner');
});
it('returns url with owner and slug', () => {
expect(projectLink({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' })).toBe(
'https://expo.dev/@fakeowner/fakeslug'
);
});
it('returns url with owner, slug, and release channel', () => {
expect(projectLink({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' }, 'fakechannel')).toBe(
'https://expo.dev/@fakeowner/fakeslug?release-channel=fakechannel'
);
});
});
describe(projectDeepLink, () => {
it('throws when owner is undefined', () => {
expect(() => projectDeepLink({ name: 'fakename', slug: 'fakeslug' })).toThrow('without owner');
});
it('returns url with owner and slug', () => {
expect(projectDeepLink({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' })).toBe(
'exp://exp.host/@fakeowner/fakeslug'
);
});
it('returns url with owner, slug, and release channel', () => {
expect(projectDeepLink({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' }, 'fakechannel')).toBe(
'exp://exp.host/@fakeowner/fakeslug?release-channel=fakechannel'
);
});
});
@@ -1,174 +0,0 @@
import type { FingerprintSource } from '@expo/fingerprint';
import { FingerprintDbManager } from '../../src/fingerprint/FingerprintDbManager';
describe(FingerprintDbManager, () => {
let fingerprintDbManager: FingerprintDbManager;
beforeEach(async () => {
fingerprintDbManager = new FingerprintDbManager(':memory:');
await fingerprintDbManager.initAsync();
});
afterEach(async () => {
await fingerprintDbManager.closeAsync();
});
it('queryEasBuildIdsFromFingerprintAsync', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: 'id1',
fingerprint: { sources: [], hash: 'hash1' },
});
expect(await fingerprintDbManager.queryEasBuildIdsFromFingerprintAsync('nonExistedId')).toEqual([]);
expect(await fingerprintDbManager.queryEasBuildIdsFromFingerprintAsync('hash1')).toEqual(['id1']);
});
it('getFingerprintSourcesAsync', async () => {
const sources: FingerprintSource[] = [
{
type: 'file',
filePath: './assets/icon.png',
reasons: ['expoConfigExternalFile'],
hash: '3f71f5a8458c06b83424cc33e1f2481f601199ea',
},
{
type: 'dir',
filePath: 'node_modules/expo',
reasons: ['expoAutolinkingIos', 'expoAutolinkingAndroid'],
hash: 'ae5d1bd2395e8766c1a1394ce948bf6003b4fd25',
},
{
type: 'contents',
id: 'packageJson:scripts',
contents: '{"start":"expo start","android":"expo run:android","ios":"expo run:ios","web":"expo start --web"}',
reasons: ['packageJson:scripts'],
hash: '119dec73c92445762a48c9455d9f34a643be8cf0',
},
];
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: 'id1',
fingerprint: { sources, hash: 'hash1' },
});
expect(await fingerprintDbManager.getFingerprintSourcesAsync('nonExistedId')).toBe(null);
expect(await fingerprintDbManager.getFingerprintSourcesAsync('hash1')).toEqual(sources);
});
it('getEntityFromGitCommitHashAsync', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: 'id1',
fingerprint: { sources: [], hash: 'hash1' },
});
expect(await fingerprintDbManager.getEntityFromGitCommitHashAsync('nonExistedHash')).toBe(null);
const result = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash');
expect(result?.easBuildId).toEqual('id1');
expect(result?.gitCommitHash).toEqual('gitHash');
expect(result?.fingerprintHash).toEqual('hash1');
expect(result?.fingerprint).toEqual({ sources: [], hash: 'hash1' });
});
it('getFirstEntityFromFingerprintHashAsync', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
fingerprint: {
sources: [],
hash: 'hash1',
},
});
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash2', {
easBuildId: 'id1',
fingerprint: { sources: [], hash: 'hash1' },
});
const result = await fingerprintDbManager.getFirstEntityFromFingerprintHashAsync('hash1');
expect(result?.gitCommitHash).toBe('gitHash1');
});
it('queryEntitiesFromFingerprintHashAsync', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
fingerprint: {
sources: [],
hash: 'hash1',
},
});
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash2', {
easBuildId: 'id1',
fingerprint: { sources: [], hash: 'hash1' },
});
const results = await fingerprintDbManager.queryEntitiesFromFingerprintHashAsync('hash1');
expect(results.length).toBe(2);
expect(results[0].gitCommitHash).toBe('gitHash1');
expect(results[1].gitCommitHash).toBe('gitHash2');
});
it('upsertFingerprintByGitCommitHashAsync should update existing data', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: '',
fingerprint: { sources: [], hash: 'hash1' },
});
let result = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash');
expect(result?.fingerprintHash).toEqual('hash1');
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: 'easBuildId',
fingerprint: { sources: [], hash: 'hash2' },
});
result = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash');
expect(result?.easBuildId).toEqual('easBuildId');
expect(result?.fingerprintHash).toEqual('hash2');
expect(result?.fingerprint).toEqual({ sources: [], hash: 'hash2' });
});
it('createdAt value should be auto generated', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: '',
fingerprint: { sources: [], hash: 'hash1' },
});
const result = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash');
expect(result?.createdAt).not.toBe(null);
});
it('updatedAt value should be auto updated', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: '',
fingerprint: { sources: [], hash: 'hash1' },
});
let result = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash');
expect(result?.updatedAt).not.toBe(null);
const previousUpdatedAt = result?.updatedAt;
await delayAsync(1000);
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash', {
easBuildId: 'buildId',
fingerprint: { sources: [], hash: 'hash2' },
});
result = await fingerprintDbManager.getEntityFromGitCommitHashAsync('gitHash');
expect(result?.updatedAt).not.toEqual(previousUpdatedAt);
});
it('getLatestEasEntityFromFingerprintAsync should return the latest entity', async () => {
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash2', {
easBuildId: '',
fingerprint: { sources: [], hash: 'hash1' },
});
await delayAsync(1000);
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash1', {
easBuildId: 'buildId',
fingerprint: { sources: [], hash: 'hash1' },
});
await delayAsync(1000);
await fingerprintDbManager.upsertFingerprintByGitCommitHashAsync('gitHash3', {
easBuildId: '',
fingerprint: { sources: [], hash: 'hash1' },
});
const result = await fingerprintDbManager.getLatestEasEntityFromFingerprintAsync('hash1');
expect(result?.gitCommitHash).toEqual('gitHash1');
});
});
async function delayAsync(ms: number) {
return new Promise(resolve => setTimeout(resolve, ms));
}
-52
View File
@@ -1,52 +0,0 @@
import * as github from '@actions/github';
import { setEnv, resetEnv } from './utils';
import { githubApi, pullContext } from '../src/github';
jest.mock('@actions/github');
describe(githubApi, () => {
afterEach(resetEnv);
it('throws when GITHUB_TOKEN and input are undefined', () => {
setEnv('GITHUB_TOKEN', '');
expect(() => githubApi()).toThrow(`requires 'github-token' or a GITHUB_TOKEN`);
});
it('returns octokit instance with GITHUB_TOKEN', () => {
setEnv('GITHUB_TOKEN', 'fakegithubtoken');
const fakeGithub = {};
jest.mocked(github.getOctokit).mockReturnValue(fakeGithub as any);
expect(githubApi()).toBe(fakeGithub);
expect(github.getOctokit).toBeCalledWith('fakegithubtoken');
});
it('returns octokit instance with input', () => {
setEnv('GITHUB_TOKEN', '');
const fakeGithub = {};
jest.mocked(github.getOctokit).mockReturnValue(fakeGithub as any);
expect(githubApi({ token: 'fakegithubtoken' })).toBe(fakeGithub);
expect(github.getOctokit).toBeCalledWith('fakegithubtoken');
});
it('uses GITHUB_TOKEN before input', () => {
setEnv('GITHUB_TOKEN', 'fakegithubtoken');
const fakeGithub = {};
jest.mocked(github.getOctokit).mockReturnValue(fakeGithub as any);
expect(githubApi({ token: 'badfakegithubtoken' })).toBe(fakeGithub);
expect(github.getOctokit).toBeCalledWith('fakegithubtoken');
});
});
describe(pullContext, () => {
it('throws when github context event is not a pull request', () => {
jest.mocked(github.context).eventName = 'push';
expect(() => pullContext()).toThrow('Could not find the pull request context');
});
it('returns pull request context', () => {
jest.mocked(github.context).eventName = 'pull_request';
jest.mocked(github.context).issue = { owner: 'fakeowner', repo: 'fakerepo', number: 1337 };
expect(pullContext()).toMatchObject({ owner: 'fakeowner', repo: 'fakerepo', number: 1337 });
});
});
-29
View File
@@ -1,29 +0,0 @@
import { resolvePackage } from '../src/packager';
describe(resolvePackage, () => {
it('resolves expo-cli@^2.0.0 to 2.21.2', async () => {
await expect(resolvePackage('expo-cli', '^2.0.0')).resolves.toBe('2.21.2');
});
it('resolves expo-cli@~3.15.0 to 3.15.5', async () => {
await expect(resolvePackage('expo-cli', '~3.15.0')).resolves.toBe('3.15.5');
});
it('resolves eas-cli@~0.33.0 to 0.33.1', async () => {
await expect(resolvePackage('eas-cli', '~0.33.0')).resolves.toBe('0.33.1');
});
it('resolves expo-cli@latest to a version', async () => {
await expect(resolvePackage('expo-cli', 'latest')).resolves.not.toMatch('latest');
});
it('rejects donotpublishthispackageoryouwillbefired with proper error', async () => {
await expect(resolvePackage('donotpublishthispackageoryouwillbefired', 'latest')).rejects.toThrow(
'Could not resolve'
);
});
it('rejects expo-cli@9999999 with proper error', async () => {
await expect(resolvePackage('expo-cli', '9999999')).rejects.toThrow('Could not resolve');
});
});
Loaded 100 of 103 files, more files were not shown because too many files have changed in this diff. Show more