Compare commits

...
2401 Commits
Author SHA1 Message Date
pwengerter 9dca6c3286 Bump web to v4.6.1 2021-12-10 10:20:10 +01:00
Willy Kloucek ff1067a6a2 fix reva pr links 2021-12-09 17:58:48 +01:00
Willy Kloucek d071a30714 release 1.16.0 2021-12-09 17:42:08 +01:00
Willy Kloucek a2681cb654 Merge pull request #2857 from owncloud/dependabot/go_modules/github.com/golang-jwt/jwt/v4-4.2.0
Bump github.com/golang-jwt/jwt/v4 from 4.1.0 to 4.2.0
2021-12-09 17:39:02 +01:00
Willy Kloucek 480d148446 Merge pull request #2855 from owncloud/wait-for-test-services
[tests-only] wait for selenium and middleware docker images to start
2021-12-09 17:22:11 +01:00
Willy Kloucek f3f8977c74 Merge pull request #2705 from owncloud/app_provider_new_file_docs
[docs-only] app provider new file docs
2021-12-09 17:21:11 +01:00
dependabot[bot] e2d21edaa4 Bump github.com/golang-jwt/jwt/v4 from 4.1.0 to 4.2.0
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.1.0...v4.2.0)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-09 16:07:57 +00:00
Willy Kloucek f6c02716ad Automated changelog update [skip ci] 2021-12-09 15:52:50 +00:00
Willy Kloucek 25da2eb1b5 Merge pull request #2850 from owncloud/update-reva-2021-12-08
[full-ci] update REVA to v1.17.0
2021-12-09 16:52:23 +01:00
Willy Kloucek ef8726b5e9 update expected failures 2021-12-09 16:13:11 +01:00
Phil Davis a2d5de07b8 [tests-only] wait for selenium and middleware docker images to start 2021-12-09 20:49:28 +05:45
Willy Kloucek 11a9899735 add https status codes 2021-12-09 15:56:28 +01:00
Willy Kloucek 34b2971cb9 add default_application from cs3org/reva#2230 2021-12-09 15:56:28 +01:00
Willy Kloucek a713c90841 adapt to changes of cs3org/reva#2210 2021-12-09 15:56:28 +01:00
Willy Kloucek 068078a47b add new file action to app provider docs 2021-12-09 15:56:28 +01:00
Willy Kloucek c1d01303d2 update REVA to v1.17.0 2021-12-09 15:36:18 +01:00
Willy Kloucek 54de444c29 update REVA 2021-12-08 13:21:16 +01:00
Pascal Wengerter 68a6370821 Automated changelog update [skip ci] 2021-12-08 11:23:52 +00:00
Pascal WengerterandDipak Acharya 0e1d9b990f [full-ci] Bump web to v4.6.0 (#2846)
* Bump web to v4.6.0

* [full-ci]Bump web commitic in CI

* Start middleware in accounts & settings CI pipelines, update expected failures

Co-authored-by: Dipak Acharya <dpakach@gmail.com>
2021-12-08 12:23:28 +01:00
Willy Kloucek b7d4f2b331 Automated changelog update [skip ci] 2021-12-07 12:19:55 +00:00
Willy Kloucek 0571467cf6 Merge pull request #2241 from owncloud/remove_eos
remove EOS stuff
2021-12-07 13:17:33 +01:00
Jörn Friedrich Dreyer ffe75747d3 Merge pull request #2837 from owncloud/update-reva-a042373b390
[full-ci] update reva, ignoring docker-arm
2021-12-07 13:17:12 +01:00
Phil Davis 8c43c647f0 Merge pull request #2844 from owncloud/bump-commit-id-20211207
[tests-only][full-ci]Bump core commit id for tests
2021-12-07 16:13:23 +05:45
Willy Kloucek c338d32222 add failing tests to expected failures (https://github.com/owncloud/web/issues/4893) 2021-12-07 11:13:15 +01:00
Swikriti Tripathi 9c33e4216b Bump core commit id for tests 2021-12-07 14:35:55 +05:45
Swikriti Tripathi 2f38e551eb Bump core commit id for tests 2021-12-07 14:31:41 +05:45
Jörn Friedrich Dreyer 4246ab1d11 Automated changelog update [skip ci] 2021-12-07 08:28:49 +00:00
Jörn Friedrich Dreyer b5c582aa2d Merge pull request #2843 from owncloud/runtime-supervisor-fixes
[Runtime] Removed trap goroutine in favor of context propagation cancelation
2021-12-07 09:28:18 +01:00
Willy Kloucek 70000ac6c1 remove eos related stuff (leave documentation) 2021-12-07 08:22:10 +01:00
Willy Kloucek 34e755943a add changelog 2021-12-06 17:16:59 +01:00
Willy Kloucek a5accb2ce9 Revert "try without changed paths"
This reverts commit 60d3962ee4.
2021-12-06 17:09:16 +01:00
Willy Kloucek 9109f8843a always unescape url params 2021-12-06 17:04:12 +01:00
Willy Kloucek 60d3962ee4 try without changed paths 2021-12-06 14:54:23 +01:00
A.Unger 8f14fdae1c added changelog 2021-12-06 13:58:08 +01:00
Willy Kloucek ad62e230a6 fix add to groups endpoint 2021-12-06 13:26:28 +01:00
A.Unger e3e3d1ee57 runtime: removed trap goroutine and let the context cancelation do the thing 2021-12-06 12:11:48 +01:00
Willy Kloucek 81408a3568 move up and download to a separate package 2021-12-06 12:01:16 +01:00
Willy Kloucek 122822a87e refactor auth 2021-12-06 12:01:16 +01:00
Willy Kloucek c37800eb72 fix user creation 2021-12-06 12:01:16 +01:00
Willy Kloucek 19a51a4402 fix not found error 2021-12-06 12:01:16 +01:00
Willy Kloucek d961decd64 update reva 2021-12-06 12:01:15 +01:00
David Christofas 08641a8e45 fix download helper for accounts service and indexer 2021-12-06 12:01:15 +01:00
Willy Kloucek 3fd070061d WIP: make the accounts service use the upload workflow 2021-12-06 12:01:15 +01:00
Willy Kloucek c067da5496 update reva 2021-12-06 12:01:15 +01:00
Alex Unger 771b870753 Automated changelog update [skip ci] 2021-12-06 10:01:38 +00:00
Alex Unger a73fd54b85 Merge pull request #2779 from owncloud/claim-selector-basic-auth 2021-12-06 11:01:09 +01:00
Willy Kloucek 0d34ed55f0 Merge pull request #2838 from owncloud/dependabot/go_modules/github.com/libregraph/lico-0.53.0
Bump github.com/libregraph/lico from 0.52.0 to 0.53.0
2021-12-06 08:58:05 +01:00
Viktor Scharf 51526e1983 Merge pull request #2830 from owncloud/apiTestQuota
[tests-only] ApiTest: state of the quota
2021-12-03 11:27:23 +01:00
dependabot[bot] 1256671d28 Bump github.com/libregraph/lico from 0.52.0 to 0.53.0
Bumps [github.com/libregraph/lico](https://github.com/libregraph/lico) from 0.52.0 to 0.53.0.
- [Release notes](https://github.com/libregraph/lico/releases)
- [Changelog](https://github.com/libregraph/lico/blob/master/CHANGELOG.md)
- [Commits](https://github.com/libregraph/lico/compare/v0.52.0...v0.53.0)

---
updated-dependencies:
- dependency-name: github.com/libregraph/lico
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-02 14:00:58 +00:00
Willy Kloucek d91d4933cf Merge pull request #2836 from owncloud/dependabot/go_modules/github.com/grpc-ecosystem/grpc-gateway/v2-2.7.1
Bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.7.0 to 2.7.1
2021-12-02 14:47:51 +01:00
Willy Kloucek 6a4c6c7c7b Automated changelog update [skip ci] 2021-12-02 13:47:44 +00:00
Willy Kloucek 7be72efddd Merge pull request #2832 from rhafer/user-claim-fallback
OIDC: fallback to "email" if IDP doesn't provide "preferred_username" claim
2021-12-02 14:47:13 +01:00
ScharfViktor be1c190a56 change name of the space(uniq name) 2021-12-02 10:05:28 +01:00
dependabot[bot] 2be06820de Bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.7.0 to 2.7.1
Bumps [github.com/grpc-ecosystem/grpc-gateway/v2](https://github.com/grpc-ecosystem/grpc-gateway) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/grpc-ecosystem/grpc-gateway/releases)
- [Changelog](https://github.com/grpc-ecosystem/grpc-gateway/blob/master/.goreleaser.yml)
- [Commits](https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.7.0...v2.7.1)

---
updated-dependencies:
- dependency-name: github.com/grpc-ecosystem/grpc-gateway/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-02 06:29:48 +00:00
ScharfViktor 216a62cf2e add Given form for steps 2021-12-02 00:01:52 +01:00
Willy Kloucek ddf62111b0 Automated changelog update [skip ci] 2021-12-01 10:09:35 +00:00
Willy Kloucek e8e5a8a41e Merge pull request #2835 from owncloud/update-reva-79fb2995dab9
[full-ci] update reva
2021-12-01 11:09:04 +01:00
Willy Kloucek 1cdd3b1699 update reva 2021-12-01 09:37:20 +01:00
Ralf Haferkamp 5b3af35804 Merge pull request #2804 from rhafer/graph-ldap
Add (read-only) LDAP backend to Graph users/groups endpoints
2021-12-01 09:31:13 +01:00
Ralf Haferkamp c35a0f7553 OIDC: fallback to "email" if IDP doesn't provide "preferred_username" claim
Some IDPs (e.g. Authelia) don't add the "preferred_username" claim.
Fallback to the "email" claim in that case.

Fixes: #2644
2021-11-30 17:53:44 +01:00
ScharfViktor 7a8c513cf7 add failed test to expected failures 2021-11-30 11:22:36 +01:00
ScharfViktor 581bcae709 add quotaTest 2021-11-29 21:21:10 +01:00
Willy Kloucek d85def9b88 check cookie for before we fall back to the default policy 2021-11-29 09:51:39 +01:00
Willy Kloucek 48accc6419 Merge pull request #2827 from owncloud/fix-create-group-no-name
introduce string constants for user / group not found messages
2021-11-29 09:47:23 +01:00
Phil Davis f5bbdbe1eb Merge pull request #2784 from owncloud/php-types-check
[Tests-Only][full-ci] enforce strict type checking for php api tests
2021-11-29 13:53:34 +05:45
Willy Kloucek 1eac1099ae introduce string constants for user / group not found messages 2021-11-29 07:34:54 +01:00
Dipak Acharya f8b0f69dd0 [Test-Only] enforce strict type checking for php api tests 2021-11-29 11:17:20 +05:45
Phil Davis a7dc0ce196 Automated changelog update [skip ci] 2021-11-28 11:22:34 +00:00
Phil Davis c907e249cb Merge pull request #2825 from owncloud/fix-create-group-no-name
[full-ci] Bugfix: Disallow creation of a group with empty name via the OCS api
2021-11-28 17:04:18 +05:45
Willy Kloucek a33b0049fc trade panic for logging on render.Render 2021-11-26 17:38:33 +01:00
Willy Kloucek 20ab79deb4 don't panic 2021-11-26 15:44:18 +01:00
Willy Kloucek 09e821178b remove expected failures 2021-11-26 13:40:55 +01:00
Willy Kloucek 0837a36ad8 Merge pull request #2824 from owncloud/dependabot/go_modules/github.com/gofrs/uuid-4.2.0incompatible
Bump github.com/gofrs/uuid from 4.1.0+incompatible to 4.2.0+incompatible
2021-11-26 13:15:44 +01:00
Willy KloucekandPhil Davis e6ca10cbc4 Update changelog/unreleased/fix-create-group-without-name.md
Co-authored-by: Phil Davis <phil@jankaritech.com>
2021-11-26 13:04:22 +01:00
Willy Kloucek dc5901b25c disallow creation of a group with empty name via the OCS api 2021-11-26 13:03:54 +01:00
Phil Davis 263ba13ffa Merge pull request #2801 from owncloud/bump-commit-id-acceptance-test-changes-waiting-2021-11
[tests-only] [full-ci] Bump commit id to use refactored core API tests
2021-11-26 17:28:03 +05:45
David Christofas 5692f8effa Merge pull request #2723 from owncloud/improver_text_preview
Allow rendering a text preview using custom fonts
2021-11-26 11:38:54 +01:00
Phil Davis 57ae1b99ea Add expected-failures for createPublicLinkShare 2021-11-26 15:41:31 +05:45
Phil Davis 7ee9300549 Add expected-failures for issue 2823 2021-11-26 14:23:58 +05:45
Phil Davis 905a1e50e4 Bump commit id to use refactored core API tests 2021-11-26 14:23:58 +05:45
dependabot[bot] cfeb02b851 Bump github.com/gofrs/uuid from 4.1.0+incompatible to 4.2.0+incompatible
Bumps [github.com/gofrs/uuid](https://github.com/gofrs/uuid) from 4.1.0+incompatible to 4.2.0+incompatible.
- [Release notes](https://github.com/gofrs/uuid/releases)
- [Commits](https://github.com/gofrs/uuid/compare/v4.1.0...v4.2.0)

---
updated-dependencies:
- dependency-name: github.com/gofrs/uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-26 06:32:40 +00:00
Juan Pablo Villafáñez 79e36f08ca Simplify code, remove unneeded condition 2021-11-25 15:42:53 +01:00
Juan Pablo Villafáñez 8dbf0f27f4 Simplify code and add new tests 2021-11-25 15:42:53 +01:00
Juan Pablo Villafáñez 5dcdac6680 Refactor to simplify the code 2021-11-25 15:42:53 +01:00
Juan Pablo Villafáñez a81a85e797 Add tests for the text analyzer and fix related issues 2021-11-25 15:42:53 +01:00
Juan Pablo Villafáñez 38acfb1dbd Allow rendering a text preview using custom fonts 2021-11-25 15:42:53 +01:00
Willy Kloucek 54d450eddd Merge pull request #2817 from owncloud/ldap-deployment-example-workover
[deployment examples]  workover LDAP example
2021-11-25 14:56:23 +01:00
Ralf Haferkamp d21ca0658f graph: Add unit test for LDAP identity backend
This reworks the LDAP backend a bit to allow for mocking the ldap.Client
interface. It also add a couple of unit test for the backend
2021-11-25 14:51:52 +01:00
Ralf Haferkamp b7ec12735b go mod tidy 2021-11-25 14:51:52 +01:00
Ralf Haferkamp 026da000dc LDAP group backend for GraphAPI
This is an initial implementation of the /groups graph endpoint.
Currently it is only showing the ID and Name attributes of the groups.
Listing members is not yet supported.

As the userbackend this is still read-only and doesn't support any
advanced filtering.
2021-11-25 14:51:52 +01:00
Ralf Haferkamp f253f7bc8e graph: Groups convert CS3 code to its own backend
Until the LDAP backend is ready the existing CS3 code should keep
working.

This also adds the initial stubs for the upcoming LDAP Backend.
2021-11-25 14:51:52 +01:00
Ralf Haferkamp 76390f3d4f Rename userBackend to identityBackend
This is suppoosed to handle Groups and Users so adjust the Name
2021-11-25 14:51:52 +01:00
Ralf Haferkamp fbdcdf255c LDAP user backend for GraphAPI
This is still read-only and doesn't support any of the advanced
querying options of the graph API.
2021-11-25 14:51:52 +01:00
Ralf Haferkamp 9130cd29f3 Add helper module for LDAP with automatic reconnect
This module basically wraps ldap.Client and allows us to keep
to keep a long running LDAP connection open, which automatically
reconnects on network errors. Allows it allows to easiliy multiplex
multiple Operations on a single connection.
2021-11-25 14:30:22 +01:00
Ralf Haferkamp 61d65daa89 Make identity backend configurable for GraphAPI
In order to gradually switch to a new LDAP backend move
the existing code talking to CS3 into its own backend.
2021-11-25 14:30:22 +01:00
Alex Unger 18f2fd8f66 Automated changelog update [skip ci] 2021-11-25 13:17:46 +00:00
Alex Unger a6e70ef5e3 Merge pull request #2812 from owncloud/depreceate-app-provider-basic-env 2021-11-25 14:17:12 +01:00
Willy Kloucek 2e0c072d4a add ldap deployment example docs 2021-11-25 14:14:23 +01:00
Willy Kloucek 6d8517db75 add all demo users to the parallel deployment example 2021-11-25 14:14:23 +01:00
Willy Kloucek 7fb85fdecf add missing demo users and groups to ldap example 2021-11-25 14:14:23 +01:00
Willy Kloucek 25c516ab67 rename cs3_users_ocis deployment example to ocis_ldap 2021-11-25 14:14:23 +01:00
Willy Kloucek 5ad7939b78 Merge pull request #2821 from owncloud/fix-monitoring-configuration-deployment-examples
fix typo in debug settings and use unused port for debug
2021-11-25 12:42:01 +01:00
Willy Kloucek 09412992fe fix typo in debug settings and use unused port for debug 2021-11-25 10:40:51 +01:00
Phil Davis 7fee45d7b5 Merge pull request #2820 from owncloud/bump-commitid-20211125
[tests-only][full-ci] Bump core commit id for tests
2021-11-25 14:18:05 +05:45
Saw-jan 90bdddb664 bump core commit id for tests 2021-11-25 13:28:20 +05:45
Willy Kloucek 0fc2efadf2 rename APP_PROVIDER_BASIC_* environment variables, followup of #2811 2021-11-24 15:17:33 +01:00
Willy Kloucek 38d670f1b3 Merge pull request #2811 from owncloud/reenable-metrics-deployment-examples
reenable metrics for the deployment examples
2021-11-24 15:15:51 +01:00
Willy Kloucek bc57d13489 Merge pull request #2815 from owncloud/embed-generate-improvements
go embed / generate improvements
2021-11-24 15:09:17 +01:00
Willy Kloucek a601a2f261 ensure temporary compatiblity, so this is not a breaking PR 2021-11-24 14:15:01 +01:00
Willy Kloucek 0e13b0668f expose debug ports for monitoring in docker-compose-additions for deployment examples 2021-11-24 14:15:00 +01:00
Willy Kloucek 222683d3cd fix app provider env naming 2021-11-24 14:15:00 +01:00
Willy Kloucek 4e4c42bca9 fix debug addresses in example configurations 2021-11-24 14:15:00 +01:00
Willy Kloucek 60eccf1f88 Merge pull request #2800 from owncloud/dependabot/go_modules/github.com/grpc-ecosystem/grpc-gateway/v2-2.7.0
Bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.6.0 to 2.7.0
2021-11-24 14:04:35 +01:00
Willy Kloucek f3e5b6fac4 Automated changelog update [skip ci] 2021-11-24 13:03:48 +00:00
Willy Kloucek 9cada56222 Merge pull request #2807 from aduffeck/fix_s3ng_metadata_storage
Fix s3ng metadata storage
2021-11-24 14:03:06 +01:00
Willy Kloucek 62ff1f1659 don't run go generate anymore 2021-11-24 13:38:29 +01:00
Willy Kloucek e6df1e466d make *_SERVICE_USER_UUID a consistent option for all drivers 2021-11-24 13:26:58 +01:00
Willy Kloucek 98f11f31d9 apply ServiceUSERUUID also to metadata storage 2021-11-24 13:15:01 +01:00
Willy Kloucek 41e84b6378 add go:generate step for all go:embed steps 2021-11-24 12:56:42 +01:00
Willy Kloucek 3bbbe79683 remove embed rule which is not needed for Web 4.5.0 and later 2021-11-24 12:55:27 +01:00
Willy Kloucek fe30c89383 Automated changelog update [skip ci] 2021-11-24 11:43:59 +00:00
Willy Kloucek 0d8ef24c0b Merge pull request #2813 from owncloud/config-cleanup-1
Cleanup ocis config
2021-11-24 12:43:20 +01:00
A.Unger 36be70c714 added changelog 2021-11-24 11:48:07 +01:00
A.Unger 02b5a9d223 deleted http, grpc and debug from ocis-pkg/config/config.go 2021-11-24 11:44:32 +01:00
Viktor Scharf d9df4907f0 Merge pull request #2799 from owncloud/changeDataOfSpaceTest
Test: change data of space
2021-11-24 09:21:49 +01:00
ScharfViktor f5c763cbec add tests change space 2021-11-23 19:51:15 +01:00
André Duffeck dd6249b691 Add changelog 2021-11-23 14:10:42 +01:00
André Duffeck e221dfd8cb Fix using s3ng as the backend for the metadata storage
Fixes #2668
2021-11-23 14:10:42 +01:00
dependabot[bot] a706e55154 Bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.6.0 to 2.7.0
Bumps [github.com/grpc-ecosystem/grpc-gateway/v2](https://github.com/grpc-ecosystem/grpc-gateway) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/grpc-ecosystem/grpc-gateway/releases)
- [Changelog](https://github.com/grpc-ecosystem/grpc-gateway/blob/master/.goreleaser.yml)
- [Commits](https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.6.0...v2.7.0)

---
updated-dependencies:
- dependency-name: github.com/grpc-ecosystem/grpc-gateway/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-23 12:33:56 +00:00
Alex Unger 02f162c717 Automated changelog update [skip ci] 2021-11-23 12:19:14 +00:00
Alex Unger 1befac2a8f Merge pull request #2708 from owncloud/try-gookikt-config 2021-11-23 13:18:39 +01:00
A.Unger 43af041a04 reword changelog 2021-11-23 12:33:17 +01:00
Willy Kloucek 889f37f37c reimport docs makefile in storage 2021-11-23 11:34:36 +01:00
Willy Kloucek 3bc413b21f Merge pull request #2802 from owncloud/1.15_release_notes
[docs-only] oCIS 1.15 / Web 4.5.0 Release Notes
2021-11-23 11:23:11 +01:00
A.Unger 552a79c23f added changelog 2021-11-23 11:20:58 +01:00
Willy Kloucek ca55576169 fix doc generation and reenable docs pipeline in CI 2021-11-23 11:19:51 +01:00
Willy Kloucek 016bab9372 Merge pull request #2798 from owncloud/release-1.15.0
oCIS 1.15.0 release
2021-11-23 10:49:12 +01:00
Patrick MaierandPhil Davis cfa915c8c6 Update docs/ocis/release_notes.md
Co-authored-by: Phil Davis <phil@jankaritech.com>
2021-11-23 09:53:57 +01:00
A.Unger 8797cf3b5a Revert "removed redundant ocis config parsing"
This reverts commit c700ccab1f.
2021-11-22 22:27:29 +01:00
A.Unger c700ccab1f removed redundant ocis config parsing 2021-11-22 22:11:06 +01:00
Patrick Maier 2b6e5c254b oCIS 1.15 / Web 4.5.0 Release Notes 2021-11-22 13:16:43 +01:00
A.Unger 45a559f707 Revert "comment out .make/docs.mk config-docs-generate target"
This reverts commit 9c3fb1cf4c.
2021-11-20 11:40:47 +01:00
A.Unger 9c3fb1cf4c comment out .make/docs.mk config-docs-generate target 2021-11-20 11:20:36 +01:00
A.Unger 1708149820 comment docs pipeline again 2021-11-19 17:31:27 +01:00
A.Unger 1570e40221 applied review comments by @wkloucek 2021-11-19 17:18:23 +01:00
A.Unger 70da20a777 Merge branch 'master' into try-gookikt-config 2021-11-19 16:27:49 +01:00
A.Unger f64ca1f6ba introduce AlternativeID attribute, which needs some explanation 2021-11-19 16:21:55 +01:00
Willy Kloucek 931411b6b9 fix REVA changelog rendering 2021-11-19 16:08:47 +01:00
Willy Kloucek fd647397f3 prepare changelog for oCIS 1.15.0 release 2021-11-19 16:04:13 +01:00
Willy Kloucek f36fb06704 Automated changelog update [skip ci] 2021-11-19 14:57:17 +00:00
Willy Kloucek b06ee63c4b Merge pull request #2797 from owncloud/update-reva-1-16-0
[full ci] update REVA to v1.16.0
2021-11-19 15:56:50 +01:00
A.Unger 2601efb9fe Merge branch 'master' into try-gookikt-config 2021-11-19 15:55:30 +01:00
Willy Kloucek b259845039 update REVA to v1.16.0 2021-11-19 15:23:08 +01:00
Willy Kloucek 9fd89a3ae5 Merge pull request #2796 from owncloud/dependabot/go_modules/github.com/go-chi/chi/v5-5.0.7
Bump github.com/go-chi/chi/v5 from 5.0.6 to 5.0.7
2021-11-19 15:21:52 +01:00
dependabot[bot] f1322edb59 Bump github.com/go-chi/chi/v5 from 5.0.6 to 5.0.7
Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) from 5.0.6 to 5.0.7.
- [Release notes](https://github.com/go-chi/chi/releases)
- [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-chi/chi/compare/v5.0.6...v5.0.7)

---
updated-dependencies:
- dependency-name: github.com/go-chi/chi/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-19 13:43:26 +00:00
Willy Kloucek fc24ceb161 Merge pull request #2785 from owncloud/rclone
Rclone documentation
2021-11-19 13:58:09 +01:00
David Christofas d451b0e6d7 Merge pull request #2782 from owncloud/dependabot/go_modules/github.com/CiscoM31/godata-1.0.5
Bump github.com/CiscoM31/godata from 1.0.4 to 1.0.5
2021-11-19 13:55:31 +01:00
Willy Kloucek 32ffbe3ac6 adapt changed function signatures 2021-11-19 13:22:47 +01:00
Willy Kloucek 97d8a7913d Automated changelog update [skip ci] 2021-11-19 12:05:04 +00:00
Willy Kloucek cd1e69e248 Merge pull request #2790 from owncloud/update-reva-20211117132912
[full-ci] update REVA
2021-11-19 13:04:39 +01:00
Willy Kloucek b8de695edb add failing archiver test to expected failures 2021-11-19 12:26:20 +01:00
Willy Kloucek 6ed0c2724f update REVA 2021-11-19 11:23:28 +01:00
Willy Kloucek 93df2e7f9d Revert "add failing test to expected failures"
This reverts commit 91fe821f6b.
2021-11-19 11:23:08 +01:00
David Christofas bcdec050fd fix public storage mapping 2021-11-19 10:54:59 +01:00
Willy Kloucek 390b7c2e93 add mount it to public link storage 2021-11-19 10:12:49 +01:00
A.Unger 846df226de Merge branch 'master' into try-gookikt-config 2021-11-19 09:28:34 +01:00
A.Unger 24347180fa use ocisConfig as struct tagname to bind config files to strucg attributes 2021-11-19 09:28:23 +01:00
Willy Kloucek 08b4458b6d add rclone documentation 2021-11-19 09:12:04 +01:00
Phil Davis 287fb1b4f1 Merge pull request #2757 from owncloud/spaces-tests-20211112
[tests-only] Add test step about 'space contains for user'
2021-11-19 13:47:33 +05:45
Willy Kloucek 091c435491 update reva 2021-11-18 18:19:34 +01:00
Willy Kloucek 91fe821f6b add failing test to expected failures 2021-11-18 18:19:13 +01:00
dependabot[bot] 63f74b1930 Bump github.com/CiscoM31/godata from 1.0.4 to 1.0.5
Bumps [github.com/CiscoM31/godata](https://github.com/CiscoM31/godata) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/CiscoM31/godata/releases)
- [Commits](https://github.com/CiscoM31/godata/compare/v1.0.4...v1.0.5)

---
updated-dependencies:
- dependency-name: github.com/CiscoM31/godata
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-18 16:54:25 +00:00
Willy Kloucek 6c4e00f001 update reva 2021-11-18 16:52:46 +01:00
Willy Kloucek 7b8dbf5737 Merge pull request #2774 from owncloud/switch-to-plugin-based-stopRecentBuilds
switch to plugin based cancellation of previous builds
2021-11-18 16:44:50 +01:00
A.Unger c427e623ef need to populate policies in the tests 2021-11-18 11:53:04 +01:00
A.Unger c22d3fc24d prevent gookit/config to merge proxy values with default values 2021-11-18 11:44:08 +01:00
Willy Kloucek 309a1c7386 Merge pull request #2788 from owncloud/remove-parallel-deployment-warning
remove warning from parallel deployment docs
2021-11-18 10:14:06 +01:00
Phil Davis 6d50afeced Merge pull request #2789 from owncloud/bump-core-commit-id-2021-11-18
[tests-only] Bump core commit id to include recent SetupHelper core changes
2021-11-18 14:04:52 +05:45
Phil Davis 1a76adccc5 Add test step about 'space contains for user' 2021-11-18 13:39:57 +05:45
Phil Davis a28acc7222 Bump core commit id to include recent SetupHelper core changes 2021-11-18 13:31:38 +05:45
Willy Kloucek 376661f2f9 change PR reference to openidconnect app release version 2021-11-18 08:24:16 +01:00
Willy Kloucek cc005c9eca remove warning from parallel deployment docs 2021-11-18 08:21:01 +01:00
Phil Davis ff3acb2227 Merge pull request #2781 from owncloud/latest-commit-id-bump
[tests-only] [full-ci] latest core commit id bump
2021-11-18 09:57:12 +05:45
sakshamgurung dde2d718f1 latest core commit id bump 2021-11-18 12:02:59 +09:00
A.Unger fe61ad4154 reordered env var priorities 2021-11-17 23:08:04 +01:00
A.Unger 3d80925a84 Merge branch 'master' into try-gookikt-config 2021-11-17 22:35:53 +01:00
A.Unger ad4fb0e0f9 attempt to revert to the old status. Just triggering a CI run 2021-11-17 19:37:15 +01:00
David Christofas 75848e9658 Merge pull request #2783 from owncloud/dependabot/go_modules/github.com/go-chi/chi/v5-5.0.6
Bump github.com/go-chi/chi/v5 from 5.0.5 to 5.0.6
2021-11-17 17:25:38 +01:00
A.Unger 872cd807e7 Revert "remove dead code from store regarding common propagation"
This reverts commit 1d127c8ab2.
2021-11-17 17:07:25 +01:00
A.Unger 1d127c8ab2 remove dead code from store regarding common propagation 2021-11-17 16:43:02 +01:00
A.Unger 592a91053b restore flags for some account commands 2021-11-17 16:41:51 +01:00
Willy Kloucek 382a8c8c28 Automated changelog update [skip ci] 2021-11-17 13:50:31 +00:00
Willy Kloucek 3cd5d529e4 Merge pull request #2780 from owncloud/update-web-4.5.0
[full-ci] Bump web to v4.5.0
2021-11-17 14:49:23 +01:00
Willy Kloucek d2395f58f0 add comments about install steps and remove skeleton 2021-11-17 13:57:13 +01:00
A.Unger a34f5b6434 Revert "refactor config values to constants"
This reverts commit f53504158b.
2021-11-17 13:56:14 +01:00
A.Unger f53504158b refactor config values to constants 2021-11-17 13:43:23 +01:00
A.Unger ff611633f5 Revert "fixed code smells: string literal repetition + cyclomatic complexity"
This reverts commit aa4112e2e2.
2021-11-17 13:19:31 +01:00
Artur Neumann 794fd16250 simplify drone starlark 2021-11-17 17:50:11 +05:45
Artur Neumann 4ccc65f1c5 fix path part 3 2021-11-17 17:19:51 +05:45
A.Unger aa4112e2e2 fixed code smells: string literal repetition + cyclomatic complexity 2021-11-17 12:25:21 +01:00
Artur Neumann 0f07a0b2e4 fix path part 2 2021-11-17 16:38:35 +05:45
A.Unger c567eb6eea removed yet more flagsets 2021-11-17 11:39:32 +01:00
A.Unger f87b5bd66c removed all flagset packages 2021-11-17 11:36:28 +01:00
A.Unger c7a43916e4 disable docs pipeline 2021-11-17 11:21:02 +01:00
Artur Neumann e1426daf6f fix path 2021-11-17 15:50:05 +05:45
A.Unger 05825d8fe2 removed docs-generate build target from module storage 2021-11-17 10:24:40 +01:00
pwengerter f549d71597 Reduce copying of web test code 2021-11-17 08:52:21 +00:00
A.Unger 017eea8f2b delete storage flagsets 2021-11-17 09:47:00 +01:00
dependabot[bot] c24f835c4f Bump github.com/go-chi/chi/v5 from 5.0.5 to 5.0.6
Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) from 5.0.5 to 5.0.6.
- [Release notes](https://github.com/go-chi/chi/releases)
- [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-chi/chi/compare/v5.0.5...v5.0.6)

---
updated-dependencies:
- dependency-name: github.com/go-chi/chi/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-17 06:26:45 +00:00
A.Unger 9c7c2b6dc9 empty commit to trigger full ci 2021-11-17 00:10:40 +01:00
A.Unger 5fe1be8611 sneaky bug 2021-11-16 23:14:56 +01:00
pwengerter c7cdccf8da Install web acceptance test dependencies for web, accounts, settins 2021-11-16 18:03:54 +00:00
pwengerter f13ccb1dd2 Bump web to v4.5.0 2021-11-16 16:40:37 +00:00
A.Unger 26db9afb8a undo const... 2021-11-16 16:56:28 +01:00
A.Unger 7f652ae3b4 migrate all flags to config binding mappings 2021-11-16 16:07:00 +01:00
A.Unger e139a09e49 change logging level back to error 2021-11-16 14:55:19 +01:00
A.Unger d30e776deb add more OCIS_URL missing spots in storage 2021-11-16 14:54:44 +01:00
A.Unger 7617ccaf41 increase log level and remove dead lines 2021-11-16 14:40:18 +01:00
A.Unger f4085f6dac revert ocis log level to error (CI) 2021-11-16 14:16:46 +01:00
A.Unger deba643a5b add set of env variables used on ci to the bootstrap config env parsing 2021-11-16 14:16:18 +01:00
A.Unger 658bf9acce increase logging level to see more on ci 2021-11-16 14:12:01 +01:00
A.Unger 8c307ef2bf add missing OCIS_INSECURE binding on PROXY_OIDC_INSECURE 2021-11-16 13:43:54 +01:00
A.Unger 2aa9c2457e Merge branch 'master' into try-gookikt-config 2021-11-16 13:29:07 +01:00
Willy Kloucek 7de4616dce Merge pull request #2730 from owncloud/improve-tooling
improve tooling
2021-11-16 13:16:20 +01:00
A.Unger 2ebc0b4a41 add missing authprovider config 2021-11-16 13:11:51 +01:00
A.Unger 8c926f2b53 Merge branch 'master' into try-gookikt-config 2021-11-16 12:25:10 +01:00
A.Unger 9a4df2f8ac Merge branch 'master' into try-gookikt-config 2021-11-16 12:24:59 +01:00
A.Unger 0d7be0d6ad set all previously set on c.StringSlice values on the bootstrap config 2021-11-16 12:22:17 +01:00
Willy Kloucek bd43895212 fix docs-generate skip logic 2021-11-16 11:15:25 +01:00
Phil Davis dac2e09eaa Merge pull request #2777 from owncloud/update-expected-failure-file
[Test-Only] update correct issues on expected failure file
2021-11-16 15:54:31 +05:45
Phil Davis 01403b719f Merge pull request #2776 from owncloud/review-expected-to-fail
[full-ci][tests-only]Remove issues not linked to scenarios
2021-11-16 15:45:34 +05:45
Willy Kloucek bb6239d2ad reword reference do dev-image make target 2021-11-16 10:52:35 +01:00
Willy Kloucek 930c59d8b2 keep asset folder to make ocis compilable without running make generate 2021-11-16 10:43:08 +01:00
Willy Kloucek 4747e8b79a disable install scripts and fix duplicate targets 2021-11-16 10:19:38 +01:00
Willy Kloucek 33d9a1171d clean up asset folder with git clean command instead of hard deletion 2021-11-16 10:19:15 +01:00
Willy Kloucek ab502c8a99 use submake and skip printing directory changes 2021-11-16 10:18:00 +01:00
Willy Kloucek 9b85b4026b split go and node generation steps to skip node generation in some cases 2021-11-16 10:15:15 +01:00
Swikriti Tripathi d10791184d Remove issues not linked to scenarios 2021-11-16 14:57:28 +05:45
Willy Kloucek 57ddff4ed4 build only needed binary for CI docker builds 2021-11-16 10:12:21 +01:00
Willy Kloucek 21220a22d4 make docker based acceptance tests use the dev image make target 2021-11-16 10:10:46 +01:00
Willy Kloucek 418b649647 add make target for dev docker image 2021-11-16 10:09:21 +01:00
Willy Kloucek 74e7344221 prevent multiple yarn builds of accounts and settings when running make ci-node-generate int the repo root 2021-11-16 10:01:12 +01:00
Dipak Acharya 8325487a21 [Test-Only] update correct issues on expected failure file 2021-11-16 14:43:47 +05:45
Willy Kloucek c397a981a3 migrate to yarn 3 2021-11-16 09:54:34 +01:00
Willy Kloucek aa16bf6e3a switch to plugin based cancellation of previous builds 2021-11-16 09:20:36 +01:00
Willy Kloucek eb3e0151f4 Merge pull request #2775 from owncloud/dependabot/go_modules/go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc-0.27.0
Bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc from 0.26.1 to 0.27.0
2021-11-16 09:13:02 +01:00
Willy Kloucek 9a19231c18 Merge pull request #2772 from owncloud/dependabot/go_modules/github.com/libregraph/lico-0.52.0
Bump github.com/libregraph/lico from 0.51.1 to 0.52.0
2021-11-16 09:03:51 +01:00
dependabot[bot] ebe8c5d9a3 Bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
Bumps [go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc](https://github.com/open-telemetry/opentelemetry-go-contrib) from 0.26.1 to 0.27.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go-contrib/compare/zpages/v0.26.1...zpages/v0.27.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-16 07:35:34 +00:00
Willy Kloucek 5234d288e0 remove github.com/crewjam/saml transitive replace 2021-11-16 08:25:44 +01:00
Willy Kloucek d0649ecdb1 Merge pull request #2773 from owncloud/dependabot/go_modules/go.opentelemetry.io/otel/sdk-1.2.0
Bump go.opentelemetry.io/otel/sdk from 1.1.0 to 1.2.0
2021-11-16 08:22:22 +01:00
dependabot[bot] e32e5de687 Bump go.opentelemetry.io/otel/sdk from 1.1.0 to 1.2.0
Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.1.0...v1.2.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-16 06:29:39 +00:00
dependabot[bot] 2db544a430 Bump github.com/libregraph/lico from 0.51.1 to 0.52.0
Bumps [github.com/libregraph/lico](https://github.com/libregraph/lico) from 0.51.1 to 0.52.0.
- [Release notes](https://github.com/libregraph/lico/releases)
- [Changelog](https://github.com/libregraph/lico/blob/master/CHANGELOG.md)
- [Commits](https://github.com/libregraph/lico/compare/v0.51.1...v0.52.0)

---
updated-dependencies:
- dependency-name: github.com/libregraph/lico
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-16 06:29:26 +00:00
A.Unger 097c853894 populate checksum 2021-11-15 19:52:40 +01:00
A.Unger d23ab5a01a Merge branch 'master' into try-gookikt-config 2021-11-15 19:38:05 +01:00
Phil Davis 36ccb6af17 Merge pull request #2769 from owncloud/archivesRessourcePaths
[tests-only] use archiver endpoint with path
2021-11-15 21:54:52 +05:45
Phil Davis 47f33b2ad1 Merge pull request #2765 from owncloud/bump-commit-id-20211115
[tests-only][full-ci]Bump ocis commit id to match latest
2021-11-15 21:51:59 +05:45
A.Unger cfbe37de61 WIP - replace flags in storage commands 2021-11-15 16:58:22 +01:00
Swikriti Tripathi 1cdb3a8003 Bump ocis commit id to match latest 2021-11-15 20:09:39 +05:45
Willy Kloucek 9ad8d1bd90 Automated changelog update [skip ci] 2021-11-15 13:06:17 +00:00
Willy Kloucek 117b2feae1 Merge pull request #2755 from owncloud/fix-basic-auth-with-custom-user-claim
fix basic auth with custom user claim
2021-11-15 14:04:06 +01:00
Michael Barz ac7faad98b Merge pull request #2771 from owncloud/docker-image-debugging-tools
add attr and tree as inspection / debugging tools to the docker image
2021-11-15 13:54:02 +01:00
Phil Davis c14fbfd310 Apply suggestions from code review 2021-11-15 18:29:58 +05:45
Willy Kloucek 62704ceb2e fix double "the" 2021-11-15 13:24:26 +01:00
Willy Kloucek e91dd8c57d add attr and tree as inspection / debugging tools to the docker image 2021-11-15 13:10:10 +01:00
Phil Davis 25c16ea50a Merge pull request #2770 from owncloud/fixSharesArchiverTests
[tests-only] fix archiver tests expectations
2021-11-15 17:19:28 +05:45
Artur Neumann f7847be028 [tests-only] fix archiver tests expectations 2021-11-15 16:20:53 +05:45
Artur Neumann bfd7496230 [tests-only] use archiver endpoint with path 2021-11-15 16:18:10 +05:45
A.Unger fde5e35496 fix commons propagation 2021-11-15 10:38:02 +01:00
Willy Kloucek 7dca7b4fae set only user oidc claim only if cs3 claim is userid 2021-11-15 10:31:07 +01:00
A.Unger 2b0f414b46 Revert "fix code smells"
This reverts commit a22342ea28.
2021-11-15 10:16:20 +01:00
A.Unger a22342ea28 fix code smells 2021-11-15 10:03:42 +01:00
A.Unger 242b3e9eb9 Merge branch 'master' into try-gookikt-config 2021-11-15 09:56:40 +01:00
Willy Kloucek f3ced34846 Merge pull request #2758 from owncloud/dependabot/go_modules/go-micro.dev/v4-4.4.0
Bump go-micro.dev/v4 from 4.3.0 to 4.4.0
2021-11-15 08:38:25 +01:00
Willy Kloucek 063d65f78e Merge pull request #2764 from owncloud/dependabot/go_modules/go.opentelemetry.io/otel-1.2.0
Bump go.opentelemetry.io/otel from 1.1.0 to 1.2.0
2021-11-15 08:27:04 +01:00
dependabot[bot] da403b3e7b Bump go.opentelemetry.io/otel from 1.1.0 to 1.2.0
Bumps [go.opentelemetry.io/otel](https://github.com/open-telemetry/opentelemetry-go) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.1.0...v1.2.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-15 06:30:21 +00:00
A.Unger 4db1697f89 leftover env variables on thumbnails 2021-11-12 13:53:19 +01:00
A.Unger b6066f361f Merge branch 'master' into try-gookikt-config 2021-11-12 13:03:32 +01:00
Swikriti Tripathi 8ec45b5e62 Merge pull request #2754 from owncloud/bump-commit-id-20211111
[tests-only][full-ci]Bump core commit id to match latest
2021-11-12 13:09:28 +05:45
Swikriti Tripathi 957569706c Add test to expected to fail file 2021-11-12 12:22:36 +05:45
Swikriti Tripathi b7321bcd6a bump core commit id to match latest 2021-11-12 12:22:36 +05:45
dependabot[bot] 9625228da4 Bump go-micro.dev/v4 from 4.3.0 to 4.4.0
Bumps [go-micro.dev/v4](https://github.com/asim/go-micro) from 4.3.0 to 4.4.0.
- [Release notes](https://github.com/asim/go-micro/releases)
- [Commits](https://github.com/asim/go-micro/compare/v4.3.0...v4.4.0)

---
updated-dependencies:
- dependency-name: go-micro.dev/v4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-12 06:26:26 +00:00
A.Unger 732e04ca73 debug config ... trigger CI 2021-11-11 17:06:46 +01:00
A.Unger 23836bbbbc Merge branch 'master' into try-gookikt-config 2021-11-11 16:48:54 +01:00
Benedikt Kulmann f63ed69285 Automated changelog update [skip ci] 2021-11-11 15:08:17 +00:00
Benedikt Kulmann 24b51daa65 Merge pull request #2726 from owncloud/reva_default_app
[full-ci] update reva to get cs3org/reva#2230
2021-11-11 16:07:17 +01:00
A.Unger 9c2150422d addded webdav to the new inheritance strategy 2021-11-11 15:59:13 +01:00
A.Unger 4cecd9b5d2 addded web to the new inheritance strategy 2021-11-11 15:56:38 +01:00
A.Unger 5f19300aaa addded thumbnails to the new inheritance strategy 2021-11-11 15:52:56 +01:00
A.Unger 59f53390a8 fix all storages 2021-11-11 15:48:00 +01:00
A.Unger 582649b7d4 fix more inheritance on storages 2021-11-11 15:18:44 +01:00
A.Unger 3580e16771 losing my mind 2021-11-11 15:12:37 +01:00
A.Unger a29f10e764 adapted proxy tests to support shared.Commons 2021-11-11 14:17:24 +01:00
A.Unger 202e63bcb6 made ocs compliant with shared.Commons 2021-11-11 14:15:28 +01:00
A.Unger 34840d62e3 fix individual idp command 2021-11-11 14:06:40 +01:00
A.Unger 48eab0ccc7 add idp common options 2021-11-11 14:03:56 +01:00
A.Unger e8559d17aa fix proxy integration tests 2021-11-11 14:00:42 +01:00
A.Unger 7eb2c25d65 propagate storage common logging config 2021-11-11 13:58:19 +01:00
A.Unger c6191b7404 fix account unit tests 2021-11-11 13:46:07 +01:00
A.Unger f118357a18 graph 2021-11-11 13:18:53 +01:00
A.Unger 6391d94516 glauth 2021-11-11 13:14:19 +01:00
A.Unger 0d1c8accf2 fix deref memory location 2021-11-11 13:06:59 +01:00
A.Unger cfc9738e51 format 2021-11-11 13:06:03 +01:00
A.Unger 9b8c3838e8 Merge branch 'master' into try-gookikt-config 2021-11-11 13:04:38 +01:00
A.Unger 52d55390ab fix inheritance config on accounts command 2021-11-11 12:57:18 +01:00
A.Unger aa67106e04 sane common configurations 2021-11-11 12:51:57 +01:00
Willy Kloucek d05df2f85e fix basic auth with custom user claim 2021-11-11 11:43:10 +01:00
Artur Neumann 45c3b072fb Merge pull request #2753 from owncloud/testArchiverShares
[tests-only] test archiver endpoint with shares
2021-11-11 15:51:50 +05:45
Artur Neumann 67441a7877 [tests-only] test archiver endpoint with shares 2021-11-11 14:39:22 +05:45
Phil Davis cd66eb9a8a Merge pull request #2750 from owncloud/testArchiverNotAuth
[tests-only] test downloading a file as not owner
2021-11-11 14:00:52 +05:45
Artur Neumann f056d6c79e [tests-only] test downloading a file as not owner 2021-11-11 13:33:21 +05:45
Phil Davis e6f5236b43 Merge pull request #2749 from owncloud/refactor-spaces-api-tests
[tests-only] Refactor spaces API tests
2021-11-11 13:27:22 +05:45
Phil Davis d732c40f62 Refactor spaces API tests 2021-11-11 13:05:46 +05:45
Phil Davis 33a2d45701 Merge pull request #2748 from owncloud/runCbf
[tests-only] run php code beautifier on test-php-style-fix
2021-11-11 12:55:14 +05:45
Phil Davis 05f65323b7 Merge pull request #2747 from owncloud/multipleItemDownloadArchiver
[tests-only] test downloading multiple items with archiver
2021-11-11 12:31:41 +05:45
Artur Neumann 301b9e54be Merge pull request #2746 from owncloud/individual-it-patch-1
[docs-only] mention insecure option
2021-11-11 12:31:11 +05:45
Artur Neumann 9a548ec4cf fix codestyle of SpacesContext 2021-11-11 12:15:15 +05:45
Artur Neumann b5427075a7 run phpcbf on make test-php-style-fix 2021-11-11 12:14:58 +05:45
Artur Neumann 021fa50e9d [tests-only] test downloading multiple items with archiver 2021-11-11 12:06:46 +05:45
Artur Neumann 0f08d38db9 [docs-only] mention insecure option 2021-11-11 11:50:40 +05:45
Artur Neumann 9f26620703 Merge pull request #2744 from owncloud/testZipArchive
[tests-only] test zip archive download
2021-11-11 10:13:19 +05:45
David Christofas 6bf0515f94 Automated changelog update [skip ci] 2021-11-10 16:54:00 +00:00
David Christofas cd99845557 Merge pull request #2745 from owncloud/insecure-options
make all insecure options configurable and change the default to false
2021-11-10 17:49:15 +01:00
Willy Kloucek 719df3ceb6 update reva to get cs3org/reva#2230 2021-11-10 17:17:50 +01:00
Willy Kloucek 28af5f74f3 change change title 2021-11-10 16:59:40 +01:00
Willy Kloucek 6590565a2f introduce OCIS_INSECURE option 2021-11-10 16:55:12 +01:00
Willy Kloucek a6b2ea9895 set insecure options on deployment examples 2021-11-10 16:23:37 +01:00
Willy Kloucek e35d4fd0ac remove GRPC insecure config options, since it always needs to be set to insecure 2021-11-10 16:12:29 +01:00
Willy Kloucek 69cc11dbe6 make more insecure options configurable and change insecure defaults from true to false 2021-11-10 15:45:55 +01:00
A.Unger 04d8ec86ab Merge branch 'master' into try-gookikt-config 2021-11-10 14:31:38 +01:00
David Christofas 0ec64fe99f make insecure options configurable 2021-11-10 14:19:27 +01:00
Willy Kloucek 57c2dab834 Merge pull request #2741 from owncloud/redirect_from_login
[deployment examples] redirect oCIS users from oC10 login to oC Web
2021-11-10 13:24:16 +01:00
Michael Barz f34b1da1a4 Merge pull request #2735 from owncloud/upload-spaces
[tests-only] Upload a file into a space
2021-11-10 11:31:10 +01:00
Willy Kloucek fb30bef146 Merge pull request #2742 from owncloud/deployment-examples-archiver
[deployment examples] make archiver work for deployment examples with custom proxy config
2021-11-10 09:50:49 +01:00
Artur Neumann 701da23141 test zip archive download 2021-11-10 13:54:49 +05:45
A.Unger b961817519 fix proxy default config 2021-11-09 20:40:35 +01:00
Michael Barz 7ebf257135 Add user bob 2021-11-09 20:16:05 +01:00
A.Unger 51bee0e531 sort out flags precedence 2021-11-09 17:30:31 +01:00
Willy Kloucek 5b6bae0349 add archiver and app provider route to all deployment examples 2021-11-09 16:58:16 +01:00
Willy Kloucek 713c0bb3d2 fix oc10 ocis parallel deployment 2021-11-09 16:10:11 +01:00
Willy Kloucek e4742fbb53 fix cs3 users example 2021-11-09 15:40:22 +01:00
Willy Kloucek 16bb92f89c fix hello deployment 2021-11-09 15:22:26 +01:00
Willy Kloucek 89d4f2ae28 Automated changelog update [skip ci] 2021-11-09 14:06:57 +00:00
Willy Kloucek 17a5991c41 Merge pull request #2738 from owncloud/fix_mediaviewer_url_encoded
fix opening images in media viewer for some usernames
2021-11-09 15:06:25 +01:00
A.Unger ee03185b22 add support for json driver 2021-11-09 14:19:28 +01:00
A.Unger c335c4dc29 config dump endpoint for proxy 2021-11-09 14:14:31 +01:00
Willy Kloucek 8249209e1f redirect from login 2021-11-09 12:49:39 +01:00
A.Unger 26aa37c2d7 reword docs 2021-11-09 12:12:34 +01:00
Artur Neumann 3f8bebcec3 Merge pull request #2717 from owncloud/archiverAcceptanceTests
[tests-only] API tests for archiver endpoint
2021-11-09 11:00:24 +01:00
Willy Kloucek cdb90383f6 fix opening images in media viewer for some usernames 2021-11-09 10:59:27 +01:00
Willy Kloucek c573e8aed9 Automated changelog update [skip ci] 2021-11-09 09:50:47 +00:00
Willy Kloucek 3d1cd5f3ac Merge pull request #2737 from owncloud/update_reva_20211109
[full-ci] update REVA
2021-11-09 10:49:50 +01:00
A.Unger 7f557d3109 Merge branch 'master' into try-gookikt-config 2021-11-09 10:20:49 +01:00
A.Unger 82a66b51d9 added shared log values to config template 2021-11-09 10:20:34 +01:00
Artur Neumann 23cb8f25a7 run apiArchiver tests in drone 2021-11-09 15:05:32 +05:45
Artur Neumann c97cbf9b98 test downloading a folder 2021-11-09 15:04:05 +05:45
Artur Neumann 916f0a6225 delete hasFile check
this is not needed as the lib checks the file existance on
`getFileContent` and gives a nice eror message if it does not exist
2021-11-09 15:02:13 +05:45
Willy Kloucek baec007462 update reva 2021-11-09 09:57:52 +01:00
Willy Kloucek f4006a2d25 Merge pull request #2736 from owncloud/deplyoment-examples-selfhosted-icons
use selfhosted icons in oCIS WOPI deployment example
2021-11-09 09:51:55 +01:00
Artur Neumann 13098d9f32 API tests for archiver endpoint (single file) 2021-11-09 14:13:26 +05:45
Willy Kloucek f92e445c4b adapt skip patterns 2021-11-09 09:10:10 +01:00
Willy Kloucek c90dabc921 use selfhosted icons in oCIS WOPI deployment example 2021-11-09 09:05:01 +01:00
Willy Kloucek cc7c1f0350 Merge pull request #2635 from owncloud/skip_on_docs_only
skip on docs only
2021-11-09 07:28:04 +01:00
A.Unger 2c49ee6ab9 first doc draft + glauth logging small refactor 2021-11-09 00:50:27 +01:00
A.Unger e7f9fb3bcb refactor NewLogger away to ocis-pkg 2021-11-08 19:38:40 +01:00
Michael Barz 80c299eb93 Upload a file 2021-11-08 17:08:52 +01:00
A.Unger 9d0809bd81 update drone star ocis debug level 2021-11-08 14:20:36 +01:00
A.Unger 1d5488a3d5 Merge branch 'master' into try-gookikt-config 2021-11-08 14:20:02 +01:00
A.Unger e308992e85 new config framework in webdav 2021-11-08 14:09:58 +01:00
A.Unger c05c3db392 new config framework in web 2021-11-08 14:08:05 +01:00
A.Unger 96033dc9b3 new config framework in thumbnails 2021-11-08 14:06:29 +01:00
A.Unger ef13618462 new config framework in store 2021-11-08 14:02:36 +01:00
A.Unger 8f99fdc902 new config framework in settings 2021-11-08 14:00:25 +01:00
A.Unger 51dc1715ce new config framework in ocs 2021-11-08 13:58:13 +01:00
A.Unger 261a800b6b new config framework in idp 2021-11-08 13:53:24 +01:00
A.Unger 6da95d3ddd new config framework in graph 2021-11-08 13:50:52 +01:00
A.Unger 3d90b21e3b new config framework in glauth 2021-11-08 13:48:07 +01:00
A.Unger bff4ec48b0 new config framework in accounts 2021-11-08 13:41:59 +01:00
A.Unger 2dd9a7b14c new config framework in proxy 2021-11-08 13:32:58 +01:00
A.Unger 8c2a681937 normalize webdav 2021-11-08 12:32:52 +01:00
A.Unger 185cee04e9 normalize web 2021-11-08 12:29:59 +01:00
A.Unger b1de937c05 fix tests 2021-11-08 12:26:17 +01:00
A.Unger f76dfc9af1 normalize thumbnails 2021-11-08 12:25:15 +01:00
A.Unger 23cfb909eb normalize store 2021-11-08 12:22:56 +01:00
A.Unger db9dc74555 normalize settings 2021-11-08 12:21:12 +01:00
A.Unger e297142529 normalize ocs 2021-11-08 12:19:26 +01:00
A.Unger a515a97c8f normalize idp 2021-11-08 12:17:23 +01:00
A.Unger 22601de351 normalize graph-explorer 2021-11-08 12:08:35 +01:00
A.Unger 4c9e4713cf normalize graph 2021-11-08 12:04:30 +01:00
A.Unger e8b9186ba3 normalize glauth 2021-11-08 12:01:08 +01:00
A.Unger d7828141f6 fix log inheritance for accounts 2021-11-08 11:51:35 +01:00
A.Unger 4999d4a04c fix test 2021-11-08 11:47:20 +01:00
A.Unger 0e9b6d8c52 fix log inheritance 2021-11-08 11:35:41 +01:00
A.Unger 74dae6dad9 add ocis-pkg/config default config + fix logging inheritance 2021-11-08 11:14:26 +01:00
Willy Kloucek c1cc720b82 Merge pull request #2734 from owncloud/dependabot/go_modules/github.com/onsi/gomega-1.17.0
Bump github.com/onsi/gomega from 1.16.0 to 1.17.0
2021-11-08 08:43:11 +01:00
dependabot[bot] 54dedb39ac Bump github.com/onsi/gomega from 1.16.0 to 1.17.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.16.0...v1.17.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-08 06:30:34 +00:00
A.Unger 835928b29b Merge branch 'master' into try-gookikt-config 2021-11-07 20:52:47 +01:00
A.Unger 6f27c1a100 refactor env unbinding to ocis-pkg 2021-11-07 20:52:36 +01:00
Willy Kloucek 2c4bd9005e Merge pull request #2728 from owncloud/dependabot/go_modules/go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc-0.26.1
Bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc from 0.26.0 to 0.26.1
2021-11-05 19:46:35 +01:00
Artur Neumann 2561c1351d Merge pull request #2722 from owncloud/phpCodeStyle
[skip-ci] format PHP code same as in owncloud/core
2021-11-05 18:49:52 +01:00
Artur Neumann 2df9b058b5 [skip-ci] format PHP code same as in owncloud/core 2021-11-05 16:33:05 +01:00
A.Unger 3206b98359 attempt to fix flags 2021-11-05 16:20:00 +01:00
A.Unger 9466e01a3c change log level to debug 2021-11-05 15:18:34 +01:00
A.Unger a55a0395eb add mapstructure to ocs 2021-11-05 15:16:03 +01:00
A.Unger b94c0e683f fix yet more offenses 2021-11-05 14:26:02 +01:00
A.Unger 8202f7b2ad fix offenses 2021-11-05 14:23:12 +01:00
A.Unger 99f28e601c migrate store to the new config scheme 2021-11-05 14:10:25 +01:00
A.Unger ad72f7574c migrate webdav to the new config scheme 2021-11-05 13:45:15 +01:00
A.Unger ca997e5bfc migrate web to the new config scheme 2021-11-05 13:33:03 +01:00
A.Unger 11855bcaab Merge branch 'master' into try-gookikt-config 2021-11-05 12:50:32 +01:00
Phil Davis 5844f302a5 Merge pull request #2727 from owncloud/bump-core-commit-id-20211105
[tests-only] [full-ci] Bump core commit id for tests
2021-11-05 17:35:27 +05:45
A.Unger b44ebce526 continue thumbnails migration 2021-11-05 12:49:52 +01:00
A.Unger 17dbc3d5ee migrate settings to the new config scheme 2021-11-05 12:25:32 +01:00
A.Unger 28b0b8fccd fix ocis root flagset 2021-11-05 12:10:37 +01:00
A.Unger ff7022a256 migrate ocs to the new config scheme 2021-11-05 12:06:35 +01:00
A.Unger be9eff8ba8 add tags to structs 2021-11-05 11:37:16 +01:00
A.Unger 91c766210c migrate graph-explorer to the new config scheme 2021-11-05 11:31:35 +01:00
A.Unger ba1635165b migrate idp to the new config scheme 2021-11-05 11:15:55 +01:00
Phil Davis 84caabfb30 Bump core commit id for tests 2021-11-05 14:44:35 +05:45
dependabot[bot] 22a2319447 Bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
Bumps [go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc](https://github.com/open-telemetry/opentelemetry-go-contrib) from 0.26.0 to 0.26.1.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go-contrib/compare/zpages/v0.26.0...zpages/v0.26.1)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-05 06:33:53 +00:00
A.Unger da36ca8cde adjust flagsets 2021-11-04 15:56:01 +01:00
A.Unger a76ad08d12 fix dead code logic 2021-11-04 14:19:41 +01:00
A.Unger cfe1ac30af add graph 2021-11-04 13:50:42 +01:00
A.Unger b61887aca1 hook accounts to env variables 2021-11-04 13:16:16 +01:00
A.Unger e858fa0188 define ocis_url as a shared option in ocis-pkg/config 2021-11-04 12:58:18 +01:00
A.Unger 4194da4e88 add ocis.yaml 2021-11-04 10:53:40 +01:00
A.Unger 3d46e27aae Merge branch 'master' into try-gookikt-config 2021-11-04 09:47:26 +01:00
Michael Barz ec066b8e92 Merge pull request #2725 from owncloud/accept_locking_adr
[docs-only] accept locking adr
2021-11-04 09:12:33 +01:00
Willy Kloucek 1ac831a8f4 accept locking adr 2021-11-04 08:41:12 +01:00
A.Unger 418cc97fb9 update proxy bindings 2021-11-03 16:32:11 +01:00
A.Unger 572e238dcd infere go type from destination 2021-11-03 16:01:45 +01:00
A.Unger ebd34df703 Merge branch 'master' into try-gookikt-config 2021-11-03 15:29:31 +01:00
A.Unger 7ac71b65f6 backwards compatibility with urfave/cli 2021-11-03 14:56:31 +01:00
A.Unger 90844c5c84 first draft of config loading exclusively using env vars 2021-11-03 14:46:38 +01:00
Benedikt Kulmann 52e5effa4f Merge pull request #2580 from owncloud/app_provider_docs
[docs-only] add app provider docs
2021-11-03 14:13:14 +01:00
Willy Kloucek 44a4ef8c47 Merge pull request #2718 from owncloud/unblock_docker_based_acceptance
quickfix root dockerfile to unblock docker based acceptance tests
2021-11-03 13:53:36 +01:00
A.Unger ac373dd004 add mode mappings to proxy config struct 2021-11-03 11:49:40 +01:00
A.Unger 850fe65f4b comments for mappings 2021-11-03 11:39:23 +01:00
A.Unger 09195ffc8c use reflection to set config values from environment 2021-11-03 11:34:56 +01:00
A.Unger d54fc2f5b9 ignoring config/ ignores changes done to extensions config packages 2021-11-03 11:34:43 +01:00
Willy Kloucek e06db64a3f hint wrap 2021-11-03 10:51:19 +01:00
Willy KloucekandBenedikt Kulmann c26daa0605 Apply suggestions from code review
Co-authored-by: Benedikt Kulmann <benedikt@kulmann.biz>
2021-11-03 10:47:03 +01:00
A.Unger 598944bb31 Merge branch 'master' into try-gookikt-config 2021-11-03 10:27:06 +01:00
Willy Kloucek af8b606eec remove .drone.star from ignore pattern 2021-11-03 08:21:39 +01:00
Willy Kloucek fc3b6cd889 Merge pull request #2720 from owncloud/dependabot/go_modules/google.golang.org/grpc-1.42.0
Bump google.golang.org/grpc from 1.41.0 to 1.42.0
2021-11-03 08:17:09 +01:00
Willy Kloucek 1781fcc73e fix skip 2021-11-03 08:15:37 +01:00
dependabot[bot] 832487e865 Bump google.golang.org/grpc from 1.41.0 to 1.42.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.41.0 to 1.42.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.41.0...v1.42.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-03 06:33:06 +00:00
A.Unger 23d8c26b8a Merge branch 'master' into try-gookikt-config 2021-11-02 16:57:08 +01:00
David Christofas a13e3e74be Automated changelog update [skip ci] 2021-11-02 15:03:01 +00:00
David Christofas 04ce16eb54 Merge pull request #2719 from owncloud/fix-basic-auth
fix basic auth configuration
2021-11-02 16:02:26 +01:00
David Christofas 890fbd53b6 fix basic auth configuration 2021-11-02 15:04:13 +01:00
A.Unger 24b3363310 rename _fs -> dirFS 2021-11-02 14:50:31 +01:00
A.Unger 2a14bb362a fix smells 2021-11-02 14:48:40 +01:00
Willy Kloucek f243b663b3 quickfix root dockerfile to unblock docker based acceptance tests 2021-11-02 14:25:50 +01:00
A.Unger 2d7a394a30 Merge branch 'master' into try-gookikt-config 2021-11-02 14:21:45 +01:00
A.Unger ab1703c2e8 refactor around config parsing 2021-11-02 14:20:07 +01:00
A.Unger 10731c3878 general restructuring 2021-11-02 12:12:09 +01:00
A.Unger a767356bba provide example config + implement parse config on accounts 2021-11-02 12:09:21 +01:00
A.Unger 7ca93450a2 adjust accounts flagset, replace new with defaultconfig 2021-11-02 11:29:52 +01:00
Ralf Haferkamp 424a2e3f09 Merge pull request #2716 from owncloud/individual-it-patch-1
[docs-only] fix make command to run single feature
2021-11-02 11:16:35 +01:00
Artur Neumann 016c8d03ee fix make command to run single feature 2021-11-02 11:05:38 +01:00
A.Unger 20b6d0a635 add DefaultConfig on accounts 2021-11-02 10:57:25 +01:00
Willy Kloucek df48c6093a Merge pull request #2714 from owncloud/dependabot/go_modules/go-micro.dev/v4-4.3.0
Bump go-micro.dev/v4 from 4.2.1 to 4.3.0
2021-11-02 10:15:58 +01:00
A.Unger 7fa70d7d7e Merge branch 'master' into try-gookikt-config 2021-11-02 10:00:00 +01:00
Ralf Haferkamp e655771d5c Merge pull request #2715 from owncloud/dependabot/go_modules/github.com/rs/zerolog-1.26.0
Bump github.com/rs/zerolog from 1.25.0 to 1.26.0
2021-11-02 08:50:55 +01:00
Willy Kloucek 6b727459c4 skip pipepline if files unchanged 2021-11-02 08:39:09 +01:00
Willy Kloucek dcfcf68584 Merge pull request #2653 from owncloud/update-ci-images
update ci images and early fail
2021-11-02 08:00:50 +01:00
Willy Kloucek b874de5b4b Merge pull request #2712 from rhafer/doc
[docs-only] Add note about OIDC discovery redirect for Keycloak
2021-11-02 07:58:03 +01:00
dependabot[bot] e49542bc76 Bump github.com/rs/zerolog from 1.25.0 to 1.26.0
Bumps [github.com/rs/zerolog](https://github.com/rs/zerolog) from 1.25.0 to 1.26.0.
- [Release notes](https://github.com/rs/zerolog/releases)
- [Commits](https://github.com/rs/zerolog/compare/v1.25.0...v1.26.0)

---
updated-dependencies:
- dependency-name: github.com/rs/zerolog
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-02 06:30:44 +00:00
dependabot[bot] b4619fee64 Bump go-micro.dev/v4 from 4.2.1 to 4.3.0
Bumps [go-micro.dev/v4](https://github.com/asim/go-micro) from 4.2.1 to 4.3.0.
- [Release notes](https://github.com/asim/go-micro/releases)
- [Commits](https://github.com/asim/go-micro/compare/v4.2.1...v4.3.0)

---
updated-dependencies:
- dependency-name: go-micro.dev/v4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-02 06:30:36 +00:00
Ralf Haferkamp 5aeb76f6c8 Merge pull request #2713 from owncloud/dependabot/go_modules/github.com/blevesearch/bleve/v2-2.2.2
Bump github.com/blevesearch/bleve/v2 from 2.2.1 to 2.2.2
2021-11-01 17:13:14 +01:00
dependabot[bot] 1da2baa4d4 Bump github.com/blevesearch/bleve/v2 from 2.2.1 to 2.2.2
Bumps [github.com/blevesearch/bleve/v2](https://github.com/blevesearch/bleve) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/blevesearch/bleve/releases)
- [Commits](https://github.com/blevesearch/bleve/compare/v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: github.com/blevesearch/bleve/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 15:28:28 +00:00
Phil Davis bf056895c5 Merge pull request #2685 from owncloud/bump-commit-id-emptySkeleton
[tests-only] [full-ci] Bump core commit id to include empty skeleton test changes
2021-11-01 18:24:42 +05:45
Ralf Haferkamp c94615fe77 Merge pull request #2707 from owncloud/dependabot/go_modules/go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc-0.26.0
Bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc from 0.25.0 to 0.26.0
2021-11-01 13:20:59 +01:00
Ralf Haferkamp 848e830517 Merge pull request #2703 from owncloud/dependabot/go_modules/github.com/go-chi/chi/v5-5.0.5
Bump github.com/go-chi/chi/v5 from 5.0.4 to 5.0.5
2021-11-01 13:18:42 +01:00
Ralf Haferkamp b8d737a914 docs: Add note about OIDC discovery redirect for Keycloak
Using an external OIDC IDP means that, that IDP also needs to serve
the OIDC discovery information.

Fixes: https://github.com/owncloud/ocis/issues/2676
2021-11-01 12:57:18 +01:00
Phil Davis 5665fc4644 Bump core commit id to include empty skeleton test changes 2021-11-01 16:34:38 +05:45
A.Unger 7df000d06f parse config regardless of supervised / unsupervised 2021-10-31 00:30:48 +02:00
A.Unger 18b55367fa Merge branch 'master' into try-gookikt-config 2021-10-31 00:09:02 +02:00
A.Unger 711acbb354 inherit logging config from ocis.yaml, let extensions overwrite their logging. Considering using a package level global logging... 2021-10-31 00:08:46 +02:00
A.Unger 998df71ae3 poors man struct inheritance and perpetuity 2021-10-29 23:41:41 +02:00
A.Unger 94aeefb7fd first examples of config parsing 2021-10-29 16:15:35 +02:00
dependabot[bot] 2de18dad88 Bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
Bumps [go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc](https://github.com/open-telemetry/opentelemetry-go-contrib) from 0.25.0 to 0.26.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go-contrib/compare/zpages/v0.25.0...zpages/v0.26.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-29 13:29:11 +00:00
dependabot[bot] d627e26eb5 Bump github.com/go-chi/chi/v5 from 5.0.4 to 5.0.5
Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) from 5.0.4 to 5.0.5.
- [Release notes](https://github.com/go-chi/chi/releases)
- [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-chi/chi/compare/v5.0.4...v5.0.5)

---
updated-dependencies:
- dependency-name: github.com/go-chi/chi/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-29 13:25:38 +00:00
David Christofas c5fae63c20 Merge pull request #2693 from owncloud/dependabot/go_modules/go.opentelemetry.io/otel/exporters/jaeger-1.1.0
Bump go.opentelemetry.io/otel/exporters/jaeger from 1.0.1 to 1.1.0
2021-10-29 15:03:58 +02:00
Willy Kloucek 8fd840b192 update ci images and enhance fail notification 2021-10-29 14:41:33 +02:00
Willy Kloucek 164d09a58e Merge pull request #2701 from owncloud/adr_locking
[docs-only] add locking adr
2021-10-29 13:49:24 +02:00
Willy Kloucek bb512b1943 add results of discussion 2021-10-29 13:24:04 +02:00
A.Unger 34253fcae2 remove flagset on proxy, use default config values 2021-10-29 11:51:08 +02:00
Willy Kloucek 616bdc2d1a Automated changelog update [skip ci] 2021-10-29 07:33:29 +00:00
Willy Kloucek 3e36584285 Merge pull request #2702 from owncloud/no_error_logging_unsupported_thumbnails
no error logging on unsupported files for thumbnailer
2021-10-29 09:32:45 +02:00
Willy Kloucek 3808b299c2 no error logging on unsuported files for thumbnailer 2021-10-29 08:20:36 +02:00
Willy Kloucek 6fdca51800 add locking adr 2021-10-28 15:14:03 +02:00
dependabot[bot] 1d0c56d8f3 Bump go.opentelemetry.io/otel/exporters/jaeger from 1.0.1 to 1.1.0
Bumps [go.opentelemetry.io/otel/exporters/jaeger](https://github.com/open-telemetry/opentelemetry-go) from 1.0.1 to 1.1.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.0.1...v1.1.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/jaeger
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-28 13:09:51 +00:00
David Christofas d8e2935b4c Merge pull request #2694 from owncloud/dependabot/go_modules/go.opentelemetry.io/otel/sdk-1.1.0
Bump go.opentelemetry.io/otel/sdk from 1.0.1 to 1.1.0
2021-10-28 14:56:10 +02:00
Willy Kloucek 47077b1f5c Automated changelog update [skip ci] 2021-10-28 11:15:13 +00:00
Willy Kloucek 49b46c052f Merge pull request #2698 from owncloud/fix_ipv6
fix ipv6 error with go-micro update
2021-10-28 13:14:45 +02:00
Willy Kloucek d6040ce76c fix ipv6 error with go-micro update 2021-10-28 12:29:50 +02:00
Patrick Maier adb3a8c25f Merge pull request #2696 from owncloud/1.14_release_notes
[docs-only] oCIS 1.14 and Web 4.4 Release Notes
2021-10-28 12:11:27 +02:00
Michael Barz 97d2bb92de Merge pull request #2699 from owncloud/decision-url
[docs-only] ADR 11: document decision outcome
2021-10-28 12:10:55 +02:00
Michael BarzandBenedikt Kulmann dd1e7dfe06 Apply suggestions from code review
Co-authored-by: Benedikt Kulmann <benedikt@kulmann.biz>
2021-10-28 12:05:46 +02:00
Benedikt Kulmann 24e7c67ebd Merge pull request #127 from butonic/architecture-docs
initial architecture section with efficient stat polling discussion
2021-10-28 12:01:32 +02:00
Benedikt Kulmann 47b35baea5 Update docs/architecture/efficient-stat-polling.md 2021-10-28 12:01:24 +02:00
Michael Barz 6e4bd5450f Merge pull request #2697 from owncloud/code-style
[tests-only] More refactoring
2021-10-28 11:59:49 +02:00
Michael Barz 23edc59074 document decision outcome 2021-10-28 11:42:20 +02:00
Michael Barz e3d41d3bb1 cleanup 2021-10-28 11:26:50 +02:00
Phil Davis 015702a472 Merge pull request #2695 from owncloud/refactor-spaces-test-code
[tests-only] Refactor spaces acceptance tests
2021-10-28 14:14:41 +05:45
Patrick Maier 3a1fe5369d Update release_notes.md 2021-10-28 09:53:41 +02:00
David Christofas 7a7f212f65 Automated changelog update [skip ci] 2021-10-28 07:53:40 +00:00
David Christofas 8f6a32da99 Merge pull request #2692 from owncloud/list-all-spaces
enable users to list all spaces
2021-10-28 09:53:11 +02:00
Patrick Maier 4b340359de Update release_notes.md 2021-10-28 09:50:52 +02:00
Patrick Maier 6d73a22964 oCIS 1.14 and Web 4.4 Release Notes 2021-10-28 09:49:28 +02:00
Phil Davis 87997af0b6 Refactor spaces acceptance tests 2021-10-28 13:27:41 +05:45
Benedikt Kulmann 55adc87bd2 Automated changelog update [skip ci] 2021-10-28 07:23:27 +00:00
Benedikt Kulmann 37bafdacd7 Merge pull request #2690 from owncloud/disable-resharing
Announce resharing as false in capabilities
2021-10-28 09:22:39 +02:00
Viktor Scharf 87b39eb8b8 Merge pull request #2679 from owncloud/api-tests-forSpace
Api tests for space
2021-10-28 08:32:44 +02:00
dependabot[bot] 8ffdb89dda Bump go.opentelemetry.io/otel/sdk from 1.0.1 to 1.1.0
Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go) from 1.0.1 to 1.1.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.0.1...v1.1.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-28 06:29:46 +00:00
Willy Kloucek bf266eae59 Merge pull request #2689 from owncloud/fix_hello_deployment
[deployment example] fix oCIS hello deployment
2021-10-27 20:31:53 +02:00
Michael Barz 86d5c56395 refactor the evaluation of the json response 2021-10-27 17:44:43 +02:00
ScharfViktor 4664e578ca fix after review 2021-10-27 17:41:03 +02:00
ScharfViktor a59d44c2ef fix step sequence of scenarios 2021-10-27 17:41:03 +02:00
ScharfViktor 5e88ce14fe separate tests. add check quota. add test create folder 2021-10-27 17:41:03 +02:00
David Christofas 2986265be7 enable users to list all spaces 2021-10-27 17:17:16 +02:00
David Christofas b53c58ae8e Automated changelog update [skip ci] 2021-10-27 15:06:23 +00:00
David Christofas 1beb9e2eb4 Merge pull request #2675 from kobergj/ForbidEmptyPassword
Forbid empty password
2021-10-27 17:05:48 +02:00
Willy Kloucek f4161d8038 Merge pull request #2686 from owncloud/release-1.14.0
release oCIS 1.14.0
2021-10-27 16:59:06 +02:00
Benedikt Kulmann 243727fea5 Announce resharing as false in capabilities 2021-10-27 15:11:12 +02:00
Willy Kloucek 184fdcc98f fix oCIS hello deployment 2021-10-27 15:07:42 +02:00
jkoberg f0f0c182ef don't log nil error 2021-10-27 14:53:10 +02:00
Willy Kloucek 5456f13c9e Merge pull request #2688 from owncloud/fix_accounts_backend
fix accounts backend regression from #2590
2021-10-27 14:50:38 +02:00
Willy Kloucek f45254bb5d set backend to disk in tests 2021-10-27 14:14:18 +02:00
Willy Kloucek ef406c8baa ensure lowercase backend in the command 2021-10-27 12:53:25 +02:00
Willy Kloucek 405809f13a fix accounts backend regression from #2590 2021-10-27 12:27:25 +02:00
jkoberg d627c5240e Merge branch 'master' into ForbidEmptyPassword 2021-10-27 10:54:24 +02:00
Willy Kloucek 1a01d21f60 prepare oCIS 1.14.0 changelog 2021-10-27 07:55:41 +02:00
Phil Davis a012f392d8 Merge pull request #2684 from owncloud/bump-commit-id-20211027
[tests-only] [full-ci] Bump CORE_COMMITID for tests
2021-10-27 11:10:00 +05:45
Phil Davis 1bc6a1ed07 Bump core and web commmit id for tests 2021-10-27 10:15:09 +05:45
Pascal Wengerter 846190dfba Automated changelog update [skip ci] 2021-10-26 18:24:19 +00:00
Pascal Wengerter e94b7243c5 [full-ci] Update web v4.4.0 (#2681)
* Sort out dependencies in accounts, idp, settings, reorder package files, bump ODS to v11.0.0

* Update web to v4.4.0, update release docs for accounts, settings, web

* Remove redundant pull-always & bump Ubuntu img 16->20 in CI config

* Switch to frozen lockfiles for yarn install in CI

* Update expected failures file with web's current state
2021-10-26 19:23:59 +01:00
David Christofas 10186ed535 Automated changelog update [skip ci] 2021-10-26 15:11:26 +00:00
David Christofas aabfcbe6bc Merge pull request #2680 from owncloud/update-reva
[full-ci] update reva to v1.15
2021-10-26 17:11:03 +02:00
David Christofas 558050daf3 update reva to v1.15 2021-10-26 16:29:24 +02:00
Willy Kloucek 0a3d531051 review feedback 2021-10-26 15:20:28 +02:00
Willy Kloucek 2d19cd93bd update docs 2021-10-26 15:09:29 +02:00
Willy Kloucek 8ccf14c289 update documentation 2021-10-26 09:17:22 +02:00
Willy Kloucek 4c53ca03e6 add more docs 2021-10-26 09:17:22 +02:00
Willy Kloucek 4aced88530 [docs-only] add app provider docs 2021-10-26 09:17:22 +02:00
Willy Kloucek c5be27440a Automated changelog update [skip ci] 2021-10-26 05:41:39 +00:00
Willy Kloucek 7987e58424 Merge pull request #2654 from rhafer/lico-update
Bump lico to v0.51.1
2021-10-26 07:41:17 +02:00
Phil Davis 2e8b160682 Merge pull request #2674 from owncloud/bump-commit-id-20211025
[full-ci][tests-only] Bump core commit id for tests
2021-10-26 11:16:40 +05:45
Saw-jan 9abb45a43c update expected-failure file 2021-10-26 10:13:50 +05:45
Ralf Haferkamp 0e1355a038 Bump lico to v0.51.1
This update includes:
 * Apply LibreGraph naming treewide
 * move to go1.17
 * Update 3rd party Go dependencies
2021-10-25 17:12:30 +02:00
jkoberg ab2bd28eb7 remove forgotten lines 2021-10-25 14:57:11 +02:00
jkoberg 572be6f847 forbid empty password on user creation 2021-10-25 14:54:44 +02:00
Saw-jan 80e4a750b1 bump core commit id for tests 2021-10-25 17:32:03 +05:45
David Christofas 25d6e4efd1 Automated changelog update [skip ci] 2021-10-22 15:42:08 +00:00
David Christofas e146b03aef Merge pull request #2667 from rhafer/mkdir-idp
idp: Create parent directories if they don't exist
2021-10-22 17:41:12 +02:00
David Christofas 087a14289a Automated changelog update [skip ci] 2021-10-22 14:37:26 +00:00
David Christofas e85bd673fc Merge pull request #2650 from owncloud/graph-update-drive
enforce set space quota permission
2021-10-22 16:36:40 +02:00
Ralf Haferkamp 9e8231ab01 idp: Create parent directories if they don't exist
The parent directories of the identifier-registration.yaml config file might
not exist when starting idp. So instead of creating just the top most
directory use MkdirAll to also create the parents.
2021-10-22 16:35:59 +02:00
David Christofas c23071fb91 enforce set space quota permission 2021-10-22 15:53:52 +02:00
David Christofas 46ce7b88eb Automated changelog update [skip ci] 2021-10-22 12:36:15 +00:00
David Christofas d71907f422 Merge pull request #2666 from owncloud/http-header
Refactor http headers
2021-10-22 14:35:45 +02:00
David Christofas 9ecc065879 update CORS middleware and make it configurable 2021-10-22 13:27:31 +02:00
David Christofas c370276198 add some information about the security headers 2021-10-22 12:01:00 +02:00
David Christofas 4a30624fe8 remove deprecated X-XSS-Protection header
Only legacy browsers are still supporting this header. See
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection#browser_compatibility.
2021-10-22 12:00:56 +02:00
Michael Barz 4b43c5f81f Automated changelog update [skip ci] 2021-10-22 06:58:49 +00:00
Michael Barz 0ed7cca740 Merge pull request #2637 from ishank011/ocs-additional-info
Add sharees additional info paramater config to ocs
2021-10-22 08:56:45 +02:00
Willy Kloucek 509db097ff Automated changelog update [skip ci] 2021-10-21 16:08:21 +00:00
Willy Kloucek 235ceed10c Merge pull request #2660 from owncloud/spaces-respect-ocis-url
split spaces webdav url and graph url configuration in base and path parts
2021-10-21 18:01:56 +02:00
Michael Barz ab163baa70 Merge pull request #2639 from owncloud/add-api-steps
[tests-only] add some more steps
2021-10-21 15:31:05 +02:00
Michael Barz c1ef23a761 add also propfind steps 2021-10-21 14:47:42 +02:00
Willy Kloucek e2d9898cb1 fix CI 2021-10-21 14:30:18 +02:00
Willy Kloucek 29341a7f94 split spaces webdav url and graph url configuration in base and path parts 2021-10-21 14:30:18 +02:00
Willy Kloucek 92a52daf98 Automated changelog update [skip ci] 2021-10-21 12:14:53 +00:00
Willy Kloucek ee7a3bf5d2 Merge pull request #2655 from owncloud/feat/user-settings-capability
Feat/user settings capability
2021-10-21 14:13:53 +02:00
Willy Kloucek f30b5af0af update reva 2021-10-21 13:40:27 +02:00
pwengerter a837e4881f Improve wording in changelog items 2021-10-21 13:40:04 +02:00
pwengerter d2307f49d9 Add versioned user settings capability 2021-10-21 13:40:04 +02:00
Willy Kloucek 5268b8e5e6 Automated changelog update [skip ci] 2021-10-21 09:35:01 +00:00
Willy Kloucek d7d3ac76a5 Merge pull request #2658 from owncloud/reva-852282ce34f5
[full-ci] update REVA to 852282ce34f5
2021-10-21 11:34:00 +02:00
David Christofas acd2aa315e Merge pull request #2657 from owncloud/remove-context-key
remove deprecated context key
2021-10-21 10:57:43 +02:00
Willy Kloucek 7c20ca2b54 update REVA to 852282ce34f5 2021-10-21 10:36:53 +02:00
David Christofas 45fe331ad7 remove deprecated context key 2021-10-21 10:16:58 +02:00
Willy Kloucek bd8a799366 Merge pull request #2656 from owncloud/glauth_v2
use glauth v2
2021-10-21 09:45:08 +02:00
Willy Kloucek 1ccc568260 use glauth v2 2021-10-21 07:35:10 +02:00
Willy Kloucek e5488947f7 Automated changelog update [skip ci] 2021-10-20 15:11:28 +00:00
Willy Kloucek d6975c45e0 Merge pull request #2584 from owncloud/lower_tus_size
lower TUS max chunk size from infinite to 0.1 GB
2021-10-20 17:07:44 +02:00
Willy Kloucek a3785953af Merge pull request #2651 from owncloud/update-deps
[full-ci] update dependencies
2021-10-20 15:59:05 +02:00
David Christofas afaf4e0ec8 Automated changelog update [skip ci] 2021-10-20 13:13:42 +00:00
David Christofas a759938a8d Merge pull request #2652 from owncloud/bauth-password-prefix
fix(public-share): basic auth password prefix
2021-10-20 15:11:34 +02:00
Willy Kloucek 60a68e8d93 Merge pull request #2643 from owncloud/deployment-example-fix-cs3-users
fix cs3 users deployment example
2021-10-20 15:05:20 +02:00
Willy Kloucek a140779ded revert tus upgrade because of failing tests 2021-10-20 14:54:31 +02:00
Florian Schade b416763599 fix(public-share): basic auth password prefix
fix wrong basic auth password prefix
2021-10-20 14:34:11 +02:00
Willy Kloucek 4e62281f88 revert breaking updates 2021-10-20 14:33:26 +02:00
Willy Kloucek 1cf427cbf6 revert protoc micro update 2021-10-20 14:09:48 +02:00
Willy Kloucek 179eb2a036 update dependencies 2021-10-20 14:05:08 +02:00
Florian Schade 33649efc75 Merge pull request #2649 from owncloud/rm-fileb0x-leftover
fix(cleanup): get rid of fileb0x leftovers
2021-10-20 12:54:36 +02:00
Willy Kloucek 77b769457a Merge pull request #2648 from owncloud/fix_identifier_registration_yaml_creation
fix identifier-registration.yaml creation
2021-10-20 12:41:36 +02:00
Florian Schade a5438849b9 fix(cleanup): get rid of fileb0x leftovers
get rid of dev leftovers
2021-10-20 12:06:52 +02:00
Willy Kloucek 562c376c68 fix identifier-registration.yaml creation 2021-10-20 11:35:05 +02:00
kobergj 24b851a623 Automated changelog update [skip ci] 2021-10-20 09:32:06 +00:00
kobergj d019a005c9 Merge pull request #2631 from kobergj/go-embed
Go embed
2021-10-20 11:31:31 +02:00
jkoberg 5b60841ada add changelog 2021-10-20 10:09:44 +02:00
Willy Kloucek 839e5c1556 Automated changelog update [skip ci] 2021-10-20 07:07:25 +00:00
Willy Kloucek e3c52af56c Merge pull request #2590 from owncloud/change_data_path
[full-ci] change default paths for oCIS services
2021-10-20 08:24:22 +02:00
Phil Davis 127db3f3e5 Merge pull request #2633 from owncloud/bump-commit-id-20211018
[full-ci][tests-only] Bump core commit id for tests
2021-10-19 23:13:21 +05:45
Saw-jan 186a93bc38 bump core commit id for tests 2021-10-19 22:28:48 +05:45
Willy Kloucek c846646719 fix cs3 users deploymente example 2021-10-19 18:20:02 +02:00
Willy Kloucek 24fb595424 fix code smells 2021-10-19 18:11:16 +02:00
Michael Barz fef74e7552 add some more steps 2021-10-19 16:26:21 +02:00
jkoberg 27dd8ff292 use ci-node-generate always 2021-10-19 16:00:13 +02:00
Ralf Haferkamp 13e884a048 Merge pull request #2636 from owncloud/deployment_examples_insecure_ldaps
use insecure ldap for deployment examples
2021-10-19 15:50:23 +02:00
Willy Kloucek 060c0932dd add changelog 2021-10-19 15:29:20 +02:00
Alex Unger 401bc09b75 Merge pull request #2638 from owncloud/deprecated-build-flag 2021-10-19 15:22:21 +02:00
jkoberg 641dec17da figure out whats wrong 2021-10-19 14:39:34 +02:00
Willy Kloucek cddb334f80 change default paths for oCIS services 2021-10-19 14:37:20 +02:00
A.Unger ccfd48532e remove -i flag on build 2021-10-19 14:35:37 +02:00
jkoberg 291a390848 change for other extensions also 2021-10-19 14:28:29 +02:00
jkoberg a8e4c414fc don't run protobuf for accounts 2021-10-19 14:16:46 +02:00
jkoberg e30c3b2270 bring back protobuf 2021-10-19 14:05:18 +02:00
jkoberg 2356415099 go back to where it was green 2021-10-19 12:49:46 +02:00
Ishank Arora 89ae20758d Add sharees additional info paramater config to ocs 2021-10-19 11:32:41 +02:00
jkoberg 7e49454183 test another assumption 2021-10-19 10:50:08 +02:00
jkoberg e81138f1d3 install yarn in Makefile 2021-10-19 10:28:07 +02:00
Willy Kloucek ea29c80772 use insecure ldap for deployment examples 2021-10-19 10:24:46 +02:00
jkoberg d3b1d7efdb install yarn in dockerfile 2021-10-19 10:11:19 +02:00
jkoberg de37b0b631 generate before test 2021-10-19 09:36:23 +02:00
Alex Unger 75a4015954 Merge pull request #2629 from owncloud/quota-docs 2021-10-18 20:33:44 +02:00
Florian Schade 9c4461ef88 Merge pull request #2634 from owncloud/public-token-query-string
feat(public-token): get public-token from query string
2021-10-18 18:40:55 +02:00
jkoberg cee10e06e5 test assumption 2021-10-18 17:58:14 +02:00
jkoberg 7144ed24dc add yarn build again 2021-10-18 17:46:23 +02:00
jkoberg 2c2ac4c93e simplify make logic 2021-10-18 17:22:36 +02:00
jkoberg 0686d7bc99 more changes to makefiles 2021-10-18 17:14:10 +02:00
jkoberg a7ddc1ee88 don't build node_modules when unneccessary 2021-10-18 17:01:13 +02:00
Michael Barz c2c198c3f3 Merge pull request #2500 from owncloud/api-tests-spaces
add basic API test for spaces
2021-10-18 16:55:34 +02:00
jkoberg a9b6753991 add yarn to web and graph-explorer 2021-10-18 16:44:46 +02:00
jkoberg b5a4a11591 use ci-node-generate instead generate 2021-10-18 16:31:28 +02:00
Alex Unger 524bf18920 Update docs/extensions/storage/spaces.md 2021-10-18 16:26:35 +02:00
Michael Barz 72cb487b75 add formerly removed RevaContext 2021-10-18 16:00:14 +02:00
Florian Schade 03de49e59b remove dev leftover 2021-10-18 15:48:09 +02:00
Michael Barz 95112ee266 use HTTP::get 2021-10-18 15:29:43 +02:00
jkoberg 35cf374f79 add more build steps 2021-10-18 15:24:47 +02:00
Michael Barz df4f70917c add to drone.star 2021-10-18 15:23:53 +02:00
Michael Barz 75e6c46e66 register apiSpaces suite 2021-10-18 15:19:13 +02:00
Florian Schade 0c66bdd6ad feat(public-token): get public-token from query string
retrieving public-token also from the query-string
2021-10-18 14:55:55 +02:00
Michael BarzandArtur Neumann 462937b6df Update tests/acceptance/features/apiSpaces/ListSpaces.feature
Co-authored-by: Artur Neumann <artur@jankaritech.com>
2021-10-18 14:55:30 +02:00
Michael BarzandArtur Neumann 59a1ef8894 Update tests/acceptance/features/apiSpaces/ListSpaces.feature
Co-authored-by: Artur Neumann <artur@jankaritech.com>
2021-10-18 14:55:23 +02:00
Michael BarzandArtur Neumann edbc5e1ffa Update tests/acceptance/features/apiSpaces/ListSpaces.feature
Co-authored-by: Artur Neumann <artur@jankaritech.com>
2021-10-18 14:55:14 +02:00
A.Unger 842d552b39 Merge branch 'master' into api-tests-spaces 2021-10-18 14:39:56 +02:00
jkoberg 9734c27d18 revert comments in makefiles 2021-10-18 14:07:29 +02:00
jkoberg 88664152e3 move embed logic to ocispkg 2021-10-18 13:01:17 +02:00
David Christofas 6f7bb90106 Automated changelog update [skip ci] 2021-10-18 08:56:45 +00:00
David Christofas c51a6630bd Merge pull request #2534 from ishank011/token-fixes
Start up a new machine auth provider in the storage service
2021-10-18 10:55:52 +02:00
Ishank Arora 375e9121fd Update reva version 2021-10-18 09:57:04 +02:00
Ishank Arora 0c8cbe4d4f Add machine auth endpoint to gateway 2021-10-18 09:54:23 +02:00
Ishank Arora 26ec5f0a40 Use machine auth when using cs3 backend in proxy service 2021-10-18 09:54:22 +02:00
Ishank Arora 35905f4a09 Start up a new machine auth provider in the storage service 2021-10-18 09:54:22 +02:00
Ishank Arora 518e8747b2 Add config to skip encoding user groups in reva tokens 2021-10-18 09:54:22 +02:00
Willy Kloucek 669175b062 Merge pull request #2624 from owncloud/configuration_streamlining
[deployment-examples] streamline configuration
2021-10-18 09:48:43 +02:00
Willy Kloucek 9443f2f50a Automated changelog update [skip ci] 2021-10-18 07:21:14 +00:00
Willy Kloucek 8fdaa188e0 Merge pull request #2630 from owncloud/use_buf_tooling
Use buf tooling
2021-10-18 09:20:26 +02:00
jkoberg d2026a5d94 Merge branch 'master' into go-embed 2021-10-18 09:20:19 +02:00
jkoberg 0be96a6777 make linter happy 2021-10-18 09:10:39 +02:00
Willy Kloucek 3f25821f36 Automated changelog update [skip ci] 2021-10-18 05:54:47 +00:00
Willy Kloucek 8fdf8e340b Merge pull request #2536 from owncloud/public-share-auth-middleware
add public share auth middleware
2021-10-18 07:54:11 +02:00
Willy Kloucek 367ea73166 switch to buf tooling 2021-10-18 07:53:00 +02:00
Willy Kloucek 32fb7cb6f0 Automated changelog update [skip ci] 2021-10-18 05:30:38 +00:00
Willy Kloucek 1494e69517 Merge pull request #2616 from owncloud/go-micro-v4
upgrade to go micro v4.1.0
2021-10-18 07:28:28 +02:00
David Christofas f5aabe1a87 update reva to latest master 2021-10-15 17:45:16 +02:00
David Christofas 600c7ca351 use updated VerifyScope 2021-10-15 17:45:11 +02:00
David Christofas fb0380820c enable archiver for public shares 2021-10-15 17:45:06 +02:00
David Christofas c88824e7a0 run the public share auth middleware after the create home middleware
The x-access-token for public shares is scoped for only the share. That means create home would fail because the token is not valid.
2021-10-15 16:48:47 +02:00
David Christofas 5713fe81a4 add public share auth middleware 2021-10-15 16:48:43 +02:00
jkoberg a23e648e17 do same for ocis 2021-10-15 16:22:47 +02:00
jkoberg 2878b26c29 comment more code 2021-10-15 16:08:36 +02:00
jkoberg 8b7f866059 don't execute protobuf 2021-10-15 15:59:08 +02:00
jkoberg 52036082a7 build accounts from ocs 2021-10-15 15:45:02 +02:00
jkoberg ef9ee8726e only call node_modules 2021-10-15 15:18:27 +02:00
jkoberg d169bba0bb dont build node modules 2021-10-15 15:06:13 +02:00
jkoberg f97ab8c223 add yarn to makefile 2021-10-15 14:06:55 +02:00
jkoberg cfc82f7df8 lame mans way to get the build running 2021-10-15 13:52:10 +02:00
Michael Barz c7553651f3 Automated changelog update [skip ci] 2021-10-15 11:19:41 +00:00
Michael Barz 4e309b212f Merge pull request #2628 from owncloud/quota-stages
[Enhancement] Report quota states
2021-10-15 13:19:03 +02:00
Michael Barz fabed476f7 calculate quota stage 2021-10-15 12:28:19 +02:00
jkoberg a8f1d76cbe Merge branch 'master' into go-embed 2021-10-15 11:47:38 +02:00
A.Unger 237c69b293 add considerations section 2021-10-15 11:29:01 +02:00
A.Unger c833edfefb docs for quota usage 2021-10-15 11:26:26 +02:00
Michael Barz b155569c95 update reva to latest master 2021-10-15 10:21:22 +02:00
Michael Barz d5f1bf7b79 Merge pull request #2607 from owncloud/report-quota
[full-ci][Change] report quota in `/me/drives`
2021-10-15 07:59:31 +02:00
Alex Unger 2303ca308c Merge pull request #2625 from owncloud/fix_json_omit 2021-10-15 07:58:41 +02:00
Michael Barz 986543ef8b update reva to latest master 2021-10-14 20:52:27 +02:00
Michael Barz 654c237094 add missing error handling 2021-10-14 17:23:40 +02:00
Willy Kloucek 9f2831634d fix invalid json:"omit" added in owncloud/ocis#2437 2021-10-14 17:03:47 +02:00
Willy Kloucek de3fefd4dd streamline configuration 2021-10-14 16:10:43 +02:00
A.Unger abbd64bff6 fix update branch 2021-10-14 16:06:49 +02:00
A.Unger aeb51cf241 Merge branch 'master' into report-quota 2021-10-14 16:02:30 +02:00
Willy Kloucek 43b624a0fe Merge pull request #2623 from owncloud/dirkstascheit-patch-1
Update _index.md
2021-10-14 16:00:32 +02:00
A.Unger 7b062ce2a4 update reva 2021-10-14 16:00:21 +02:00
Willy Kloucek 2b145d7feb fix return bgu 2021-10-14 15:56:19 +02:00
Willy Kloucek fcb1c4225b replace third_party with go get and fix accounts / settings tests 2021-10-14 15:56:19 +02:00
Willy Kloucek 42b60fddb6 replace gogo protobuf and switch linter 2021-10-14 15:56:19 +02:00
Willy Kloucek cbac7e0052 update protobuf 2021-10-14 15:56:19 +02:00
Willy Kloucek db2c4d8bb1 update protoc-gen-micro and regenerate assets 2021-10-14 15:56:19 +02:00
Willy Kloucek 6d5a3733ff upgrade to go micro v4.1.0 2021-10-14 15:56:19 +02:00
Alex Unger c4f450bab7 Merge branch 'master' into report-quota 2021-10-14 15:55:03 +02:00
kobergj ce136b4940 Automated changelog update [skip ci] 2021-10-14 13:44:05 +00:00
kobergj 60da5983e0 Merge pull request #2619 from kobergj/defaultSpaceQuota
Default space quota
2021-10-14 15:43:23 +02:00
Michael Barz a9ec4e99b7 replace reva with micbar fork for testing 2021-10-14 13:56:03 +02:00
jkoberg 00c663f3b6 simplify quota creation logic 2021-10-14 13:50:06 +02:00
Dirk Stascheit d04c929109 Update _index.md
updated the version number from 1.12 to 1.13
2021-10-14 10:48:00 +02:00
jkoberg 94accca55c use newly created issue 2021-10-13 17:04:41 +02:00
jkoberg 492da79b09 add changelog item 2021-10-13 16:50:28 +02:00
Willy Kloucek 7d2b75a93b Automated changelog update [skip ci] 2021-10-13 13:44:14 +00:00
Willy Kloucek c60b76e1de Merge pull request #2612 from owncloud/dont-expose-services-by-default
don't expose services by default
2021-10-13 15:43:43 +02:00
jkoberg 2a6e5454d2 send nil quota if not set 2021-10-13 14:13:26 +02:00
Michael Barz f136a58054 Merge pull request #2617 from owncloud/release-1-13-0
[full-ci] release 1.13.0
2021-10-13 13:49:03 +02:00
jkoberg d5d33c7941 add default space quota 2021-10-13 13:47:57 +02:00
Willy Kloucek 5703a18f17 Merge pull request #2585 from owncloud/1.13_release_notes
[docs-only] 1.13.0 Release Notes
2021-10-13 13:31:55 +02:00
Patrick Maier e303f5fa51 capability for favorites 2021-10-13 13:26:49 +02:00
Willy Kloucek 3607bbb3a9 fix changelog 2021-10-13 13:04:43 +02:00
Willy Kloucek 719e1cfb48 Merge pull request #2618 from kobergj/fixPanicUpdateDrive
fix panics in update drive handler
2021-10-13 10:57:54 +02:00
Alex Unger e9137c1533 Merge branch 'master' into report-quota 2021-10-13 10:47:24 +02:00
Phil Davis 9e961e7e86 Merge pull request #2611 from owncloud/bumpCommitId-2021-10-12
[tests-only][full-ci]Bump core commit id
2021-10-13 14:23:58 +05:45
jkoberg 5b9870d1d8 fix panics in update drive handler 2021-10-13 09:17:49 +02:00
Willy Kloucek 570a85efb6 prepare changelog 2021-10-13 07:24:25 +02:00
David Christofas bcb134cb47 Automated changelog update [skip ci] 2021-10-12 18:36:53 +00:00
David Christofas ff74784d16 Merge pull request #2610 from owncloud/create-space-response
return newly created space in response
2021-10-12 20:33:32 +02:00
David Christofas c4d4efdda8 return newly created space in response 2021-10-12 19:18:50 +02:00
Willy Kloucek 185e11e861 Automated changelog update [skip ci] 2021-10-12 16:24:24 +00:00
Willy Kloucek 899fd2bb7d Merge pull request #2615 from owncloud/update_reva_1_14
[full-ci] update reva to 1.14.0
2021-10-12 18:23:56 +02:00
Willy Kloucek 60eb304359 Merge pull request #2437 from owncloud/update-deployment-example-configs
Update theme path in ocis-wopi, ocis-hello examples, drone config and default flagset docs
2021-10-12 17:23:00 +02:00
Willy Kloucek 1c79246405 update reva to 1.14.0 2021-10-12 17:20:34 +02:00
Willy KloucekandPascal Wengerter 987261f646 Update web/pkg/flagset/flagset.go
Co-authored-by: Pascal Wengerter <pwengerter@owncloud.com>
2021-10-12 16:27:40 +02:00
Willy Kloucek 03e60fe63d split theme configuration flags 2021-10-12 16:27:39 +02:00
pwengerter d17b13af2b Fix web theme paths in example configs & flagset default 2021-10-12 16:27:38 +02:00
Willy Kloucek e17eda7160 fix wopi deployment example 2021-10-12 15:38:55 +02:00
Willy Kloucek 879827ca4b don't expose services by default 2021-10-12 14:00:33 +02:00
Swikriti Tripathi 9984d4d7d9 Bump core commit id 2021-10-12 16:54:44 +05:45
Michael Barz 90246d776d Merge pull request #2608 from owncloud/fix_master_build
fix build on master
2021-10-12 11:38:26 +02:00
Willy Kloucek 2cb786d163 use prebuilt ocis binary for eos builds 2021-10-12 11:04:48 +02:00
Willy Kloucek 31d349f8d7 fix build on master by running go mod tidy 2021-10-12 10:15:59 +02:00
Willy Kloucek e4cc2a5b29 Automated changelog update [skip ci] 2021-10-12 08:09:29 +00:00
Willy Kloucek 1a8faffd3f Merge pull request #2603 from gmgigi96/appregistry-config
[full-ci] Updated MimeTypes configuration for AppRegistry
2021-10-12 10:07:03 +02:00
Willy Kloucek 121e133792 update reva 2021-10-12 09:08:56 +02:00
Willy Kloucek de38e44f4a update continous deployment example config file 2021-10-12 08:29:11 +02:00
Willy Kloucek f75c781cc0 Automated changelog update [skip ci] 2021-10-11 15:11:17 +00:00
Willy Kloucek 5fa743d361 Merge pull request #2605 from owncloud/go-1-17
Enhancement: Upgrade to GO 1.17
2021-10-11 17:10:42 +02:00
Willy Kloucek 383dd4a556 fix eos build 2021-10-11 16:02:58 +02:00
Willy Kloucek f2122ca50f update reva 2021-10-11 15:39:43 +02:00
Willy Kloucek d6adbb3068 ugrade to GO 1.17 2021-10-11 14:50:37 +02:00
Michael Barz 6844242511 report quota 2021-10-11 14:42:43 +02:00
Willy Kloucek 06b22b424a Automated changelog update [skip ci] 2021-10-11 11:08:17 +00:00
Willy Kloucek 0d4bc304e7 Merge pull request #2598 from owncloud/fix_metadata_storage
[full-ci] configure users and metadata storage separately
2021-10-11 13:06:17 +02:00
Gianmaria Del Monte 7d868773ca Updated dependencies 2021-10-11 11:58:11 +02:00
Gianmaria Del Monte b19ec45a54 Updated reva 2021-10-11 11:49:25 +02:00
Willy Kloucek 6c6cb64364 remove uneeded storages for metadata, add missing flagsets 2021-10-11 11:39:44 +02:00
Willy Kloucek d74816f242 configure users and metadata storage separately 2021-10-11 11:39:36 +02:00
Gianmaria Del Monte 74ce9c2b20 Updated mime types config example 2021-10-11 10:57:06 +02:00
David Christofas 1ee4198d53 Automated changelog update [skip ci] 2021-10-11 08:36:28 +00:00
David Christofas 43b8849754 Merge pull request #2599 from owncloud/add-favorites-capability
Add favorites capability
2021-10-11 10:36:00 +02:00
Gianmaria Del Monte f9decfbf5a Add changelog 2021-10-11 10:26:31 +02:00
Gianmaria Del Monte e0e40602d8 Updated MimeTypes configuration for AppRegistry with a list instead of a map 2021-10-11 10:09:22 +02:00
Benedikt Kulmann f63fe925fb Merge pull request #2600 from owncloud/fix_codimd_save_hook
[deployment examples] fix CodiMD save hook in WOPI example
2021-10-08 21:31:37 +02:00
Willy Kloucek 74bb7bc0c0 fix codimd save hook 2021-10-08 19:53:20 +02:00
Benedikt Kulmann 489d0a5db3 Add favorites capability 2021-10-08 19:37:48 +02:00
Alex Unger 984d92873a Merge pull request #2588 from owncloud/manage-spaces 2021-10-08 16:27:18 +02:00
David Christofas d8b0b60868 Automated changelog update [skip ci] 2021-10-08 12:33:58 +00:00
David Christofas 88deab32eb Merge pull request #2597 from owncloud/gateway_config
add gatewaysvc to all REVA services
2021-10-08 14:31:30 +02:00
A.Unger 052b25ef8b trigger-sonarcloud 2021-10-08 14:15:12 +02:00
A.Unger 386847ac37 use TrimPrefix instead of TrimLeft 2021-10-08 14:10:18 +02:00
A.Unger dff70e0be4 add docs for editing a Space 2021-10-08 14:07:58 +02:00
A.Unger 4861372dc1 add docs for editing a Space 2021-10-08 14:06:11 +02:00
A.Unger 4466e6b71e proper url parsing using godata 2021-10-08 13:23:10 +02:00
Willy Kloucek 778197a3eb add gatewaysvc to all REVA services 2021-10-08 13:12:18 +02:00
Willy Kloucek 5f0cf077ca Merge pull request #2478 from owncloud/onlyoffice_wopi_deployment_example
add OnlyOffice and CodiMD to wopi deployment example
2021-10-08 10:51:36 +02:00
Willy Kloucek 4514ebb736 Automated changelog update [skip ci] 2021-10-08 08:04:28 +00:00
Willy Kloucek ebd573fec3 Merge pull request #2596 from kobergj/refineChangeLogTemplate
Add documentation to changelog template/readme
2021-10-08 10:03:56 +02:00
Willy KloucekandBenedikt Kulmann 0241b85a29 Update docs/ocis/deployment/ocis_wopi.md
Co-authored-by: Benedikt Kulmann <benedikt@kulmann.biz>
2021-10-08 10:02:15 +02:00
jkoberg 73da36f405 add type docu to changelog template 2021-10-08 09:26:43 +02:00
Willy Kloucek 6845110730 add warning about current state 2021-10-08 08:22:03 +02:00
Willy Kloucek 6ea0b2445e update deployment config and docs 2021-10-08 08:13:59 +02:00
Willy Kloucek 1d59da7225 workaround automatic startup 2021-10-08 08:13:59 +02:00
Willy Kloucek 0287d2cd1b fix 2021-10-08 08:13:59 +02:00
Willy Kloucek b3edd29de4 remove proxy restart 2021-10-08 08:13:59 +02:00
Willy Kloucek 9f04fa774b switch to app provider, add codimd 2021-10-08 08:13:58 +02:00
Willy Kloucek 30a8132d12 remove hack 2021-10-08 08:11:55 +02:00
Willy Kloucek bc54b4d200 fix ssl false 2021-10-08 08:11:55 +02:00
Willy Kloucek b01168a61b make it work... somehow... 2021-10-08 08:11:55 +02:00
Willy Kloucek acd8afc309 split up app drivers, add insecure option for onlyoffice 2021-10-08 08:11:55 +02:00
Willy Kloucek 48a3fa8eec add onlyoffice to wopi deplyoment example 2021-10-08 08:11:55 +02:00
Willy Kloucek 1a8ddb114f Automated changelog update [skip ci] 2021-10-08 05:30:31 +00:00
Willy Kloucek 669e50e282 Merge pull request #2591 from ishank011/mime-type-allow-creation
Add allow_creation parameter to mime type config
2021-10-08 07:29:51 +02:00
Willy Kloucek b013a1167e update configuration example 2021-10-08 06:40:52 +02:00
Phil Davis 31ac52b1d0 Automated changelog update [skip ci] 2021-10-08 02:40:14 +00:00
Phil Davis 32a6dff0b3 Merge pull request #2592 from kobergj/updateChangelog
add changelog for #2587
2021-10-08 08:24:42 +05:45
Phil Davis 842ad85eb3 Automated changelog update [skip ci] 2021-10-07 16:10:52 +00:00
Phil Davis 3f01f0cd06 Merge pull request #2589 from owncloud/update-web-4.3.0
[full-ci] Update web to v4.3.0
2021-10-07 21:55:19 +05:45
Benedikt Kulmann 056d594fae Downgrade node-fetch from v3 to v2 2021-10-07 17:13:31 +02:00
Benedikt Kulmann b4f2f0f8e9 Remove dead code 2021-10-07 17:13:31 +02:00
jkoberg c55fb5c665 make the linter happy 2021-10-07 16:49:27 +02:00
jkoberg b8bdd6f4c1 make the parser happy 2021-10-07 16:34:59 +02:00
jkoberg 43cbaf137c add changelog for #2587 2021-10-07 16:30:26 +02:00
A.Unger 8161f9023b wip: prepare update request 2021-10-07 16:26:20 +02:00
Jörn Friedrich Dreyer 47abbdec6a Merge pull request #2587 from kobergj/unifyRevaGatewayEnvvar
Unify REVA gateway configuration
2021-10-07 15:56:16 +02:00
Ishank Arora 8df07c7231 Add allow_creation parameter to mime type config 2021-10-07 15:51:42 +02:00
Phil Davis ccd5a7ef2c Adjust line numbers in expected-failures 2021-10-07 19:14:39 +05:45
jkoberg 3a7b7c932c rename envvar to REVA_GATEWAY 2021-10-07 15:16:19 +02:00
Patrick Maier e521c4c93c Update release_notes.md 2021-10-07 14:57:09 +02:00
Patrick MaierandBenedikt Kulmann f520e3db1d Apply suggestions from code review
Co-authored-by: Benedikt Kulmann <benedikt@kulmann.biz>
2021-10-07 14:47:20 +02:00
jkoberg c797f1c192 revert changes to BIND envvar 2021-10-07 14:29:58 +02:00
pwengerter a8f15f4cd1 Update JS dependencies 2021-10-07 18:09:00 +05:45
Benedikt Kulmann de7e466445 Update web to v4.3.0 2021-10-07 18:08:59 +05:45
Phil Davis 04ea7ae201 Merge pull request #2586 from owncloud/bumpCommitId-2021-10-7
[full-ci][tests-only]Bump core commit id
2021-10-07 17:18:55 +05:45
A.Unger c0ae065e77 account for space description 2021-10-07 13:16:31 +02:00
A.Unger 9299e22b18 wip: workload layout 2021-10-07 12:54:13 +02:00
Swikriti Tripathi 0c47a28e0a add failing test to expected to fail 2021-10-07 16:27:44 +05:45
jkoberg 31f1301c9e unify all envvars, cli parameters and descriptions 2021-10-07 12:32:57 +02:00
Swikriti Tripathi 8c32626fc9 Bump core commit id 2021-10-07 15:49:49 +05:45
Patrick Maier d58d3d2de6 1.13.0 Release Notes 2021-10-06 17:39:39 +02:00
jkoberg 8bb74dbc6f add common EnvVar for Reva Gateway 2021-10-06 17:35:12 +02:00
Jörn Friedrich Dreyer 16dcc4fadb Merge pull request #2582 from owncloud/fix_entrypoint_permission
fix oC10 oCIS parallel deployment
2021-10-06 16:21:53 +02:00
Jörn Friedrich Dreyer 62045efd4c Automated changelog update [skip ci] 2021-10-06 14:17:22 +00:00
Jörn Friedrich Dreyer 8b416c9fd2 Merge pull request #2583 from owncloud/graph-use-type
Send the space type in the cs3 Request
2021-10-06 16:16:46 +02:00
Michael Barz 84bc009c2e remove expected failures from reva update 2021-10-06 14:44:49 +02:00
Michael Barz 93a76a06e7 use space type from request 2021-10-06 14:44:18 +02:00
Willy Kloucek 8659272d8c lower TUS max chunk size from infinite to 0.1 GB 2021-10-06 14:32:49 +02:00
Willy Kloucek 3ab4c6d123 set default umask 022 instead of hardened 027 to make entrypoint script executable 2021-10-06 13:06:18 +02:00
Willy Kloucek 21acef46d7 Merge pull request #2581 from owncloud/report_unexpected_passes
[full-ci] fix unexpected passes for cs3org/reva#2086
2021-10-06 09:15:44 +02:00
Willy Kloucek e2a6b5d72d fix expected failures for https://github.com/cs3org/reva/pull/2086 2021-10-06 08:21:48 +02:00
Willy Kloucek c0a20b2548 Automated changelog update [skip ci] 2021-10-05 17:07:52 +00:00
Willy Kloucek b0ca1236fd Merge pull request #2576 from owncloud/remove_proxy_assets
remove proxy asset path configuration
2021-10-05 19:07:01 +02:00
Alex Unger b2c2416ae1 Automated changelog update [skip ci] 2021-10-05 16:03:07 +00:00
Alex Unger 1b41c479b7 Merge pull request #2578 from owncloud/cleanup-go-mod 2021-10-05 18:02:21 +02:00
Alex Unger 93d6a6b5f2 Merge pull request #2579 from owncloud/cleanup-repo 2021-10-05 18:02:02 +02:00
A.Unger acde5b5ab3 add changelog 2021-10-05 16:42:58 +02:00
A.Unger 887ac0901f remove LICENSE file from subdirs 2021-10-05 16:41:36 +02:00
Willy Kloucek 54d0a241ae remove assets from test 2021-10-05 16:41:28 +02:00
A.Unger 6591e333f1 tidy mods 2021-10-05 16:36:33 +02:00
A.Unger f49384ae8e remove etcd replaces 2021-10-05 16:17:18 +02:00
David Christofas 3dae281e18 Automated changelog update [skip ci] 2021-10-05 13:59:41 +00:00
David Christofas 0b789e592c Merge pull request #2520 from owncloud/add-list-favorite-api
add the REPORT API with the filter-files filter
2021-10-05 15:59:13 +02:00
David Christofas 3fb8845e8c add the REPORT API with the filter-files filter 2021-10-05 15:21:53 +02:00
Willy Kloucek 7be75f5af7 Automated changelog update [skip ci] 2021-10-05 13:15:26 +00:00
Willy Kloucek c699e4b180 Merge pull request #2577 from owncloud/add_machine_auth_to_secrets
document machine auth api key
2021-10-05 15:14:52 +02:00
Willy Kloucek ef83e3bb41 Merge pull request #2575 from owncloud/buildtimeversion
fix extensions versions
2021-10-05 15:14:38 +02:00
Willy Kloucek 2692c7dbf8 document machine auth api key 2021-10-05 14:25:25 +02:00
Willy Kloucek 1b9ec56af4 remove proxy asset path configuration 2021-10-05 14:10:41 +02:00
Willy Kloucek 68ba24ff73 fix extensions versions 2021-10-05 12:39:31 +02:00
Alex Unger 2932b7b821 Automated changelog update [skip ci] 2021-10-05 10:22:46 +00:00
Alex Unger fa4156e34c Merge pull request #2574 from owncloud/fix-reva-default-port-config 2021-10-05 12:22:04 +02:00
A.Unger 9413a9dc92 add changelog 2021-10-05 11:27:34 +02:00
A.Unger 4f4db6203f Merge branch 'master' into fix-reva-default-port-config 2021-10-05 09:37:54 +02:00
A.Unger 74ad0b8c1d add default gateway flag to storage commands 2021-10-05 09:23:53 +02:00
Phil Davis 3afc5992e6 Merge pull request #2569 from owncloud/id-bump
[tests-only] [full-ci] bump latest core commit id for tests
2021-10-04 08:13:32 +05:45
Phil Davis b020cf5a73 Bump core commit id 20211003 2021-10-03 21:41:00 +05:45
sakshamgurung bcf4531ce7 latest core commit id bump for tests 2021-10-02 20:39:43 +09:00
Willy Kloucek 990abd60f6 Automated changelog update [skip ci] 2021-10-01 07:54:54 +00:00
Willy Kloucek a06e68de59 Merge pull request #2566 from owncloud/update-reva-477bb18843a97c6e392dd316e8735ccbe44f16ed
[full-ci] Update reva to  v1.13.1-0.20211001063718-477bb18843a9
2021-10-01 09:54:20 +02:00
Benedikt Kulmann 668411f2d5 Update reva to v1.13.1-0.20211001063718-477bb18843a9 2021-10-01 09:10:51 +02:00
Willy Kloucek 624feb43dd Automated changelog update [skip ci] 2021-10-01 07:06:44 +00:00
Willy Kloucek 898f9d0378 Merge pull request #2553 from owncloud/configure_default_mimetypes
make mimetype allow list configurable and add example config
2021-10-01 09:04:39 +02:00
Willy Kloucek 66f430bff1 remove empty fields 2021-10-01 08:28:40 +02:00
Willy Kloucek 423e0d6450 remove named return and add loggin 2021-10-01 08:28:40 +02:00
Willy Kloucek 5073e10405 make mimetype allow list configurable and add example config 2021-10-01 08:28:40 +02:00
Benedikt Kulmann 80ae89369f Merge pull request #2565 from owncloud/update_plugins_s3 2021-10-01 08:25:52 +02:00
Willy Kloucek 3f84416634 update plugins/s3:1 to plugins/s3:latest 2021-10-01 07:07:22 +02:00
Willy Kloucek e4bb5b8bef Merge pull request #2562 from owncloud/fix-groups-flags
[full-ci] Add the reva gateway flag to groups
2021-09-30 11:46:18 +02:00
A.Unger 1dca2ae219 update go.sum 2021-09-30 10:58:35 +02:00
A.Unger 3588d42001 add the reva gateway flag to groups 2021-09-30 10:44:52 +02:00
Willy Kloucek ec50eeb3ee Merge pull request #2560 from owncloud/fix_ldap_ca_error_for_docker_images
fix ldap CA config for docker images
2021-09-30 07:16:44 +02:00
Alex Unger 2a1a9aa503 Merge pull request #2556 from owncloud/nightly_full_ci
[tests-only] run full-ci during night (cron)
2021-09-29 15:09:22 +02:00
A.Unger 83ddf4ecd2 Merge branch 'master' into nightly_full_ci 2021-09-29 14:26:35 +02:00
Alex Unger ac102c07f4 Merge pull request #2559 from owncloud/fix-ocis-5840
[tests-only] [full-ci] Remove webUIPreview/imageMediaViewer.feature:56
2021-09-29 14:24:13 +02:00
Willy Kloucek 23178bd7ed fix ldap CA config for docker images 2021-09-29 13:58:23 +02:00
A.Unger c4360b86af webui tests: remove webUIPreview/imageMediaViewer.feature:56 2021-09-29 13:30:06 +02:00
Alex Unger d3377783a6 Merge pull request #2417 from owncloud/update-bridge-docs
Update bridge docs
2021-09-29 13:19:50 +02:00
A.Unger bfbf469122 Merge branch 'master' into nightly_full_ci 2021-09-29 12:55:32 +02:00
A.Unger 6166bb5a4c Merge branch 'master' into update-bridge-docs 2021-09-29 12:09:29 +02:00
Alex Unger 4486751df0 Merge pull request #2546 from owncloud/dependabot/npm_and_yarn/idp/jest-resolve-27.2.2
Bump jest-resolve from 26.6.2 to 27.2.2 in /idp
2021-09-29 12:04:00 +02:00
Willy Kloucek fee618f40b run full-ci during night (cron) 2021-09-29 11:55:00 +02:00
David Christofas d438f35517 Automated changelog update [skip ci] 2021-09-29 08:58:53 +00:00
David Christofas a35c406896 Merge pull request #2557 from owncloud/fix-account_resolver
fix the account resolver middleware
2021-09-29 10:54:11 +02:00
Alex Unger 86728bc5aa Merge pull request #2555 from owncloud/ocis-2113 2021-09-29 10:25:03 +02:00
David Christofas 04a8ef7c35 fix the account resolver middleware 2021-09-29 10:19:12 +02:00
A.Unger 2d7927d291 remove magic test file 2021-09-29 09:51:31 +02:00
Willy Kloucek f36017f188 Merge pull request #2552 from owncloud/check_changelog_on_docs_only
check changelog also on [docs-only] PRs
2021-09-29 08:06:24 +02:00
Willy Kloucek b0d2bdfe73 check changelog also on [docs-only] PRs 2021-09-29 07:58:28 +02:00
Phil Davis c040c4955c Automated changelog update [skip ci] 2021-09-29 03:07:34 +00:00
Phil Davis 93f26b3df2 Merge pull request #2551 from owncloud/squash_redirect_changelog
squash redirect changelog item
2021-09-29 08:47:13 +05:45
Willy Kloucek 606c54401c squash redirect changelog item 2021-09-28 18:14:06 +02:00
Alex Unger 0e5c231a36 Merge pull request #2543 from owncloud/update_tooling 2021-09-28 09:26:20 +02:00
Willy Kloucek 77662bd4f7 Merge pull request #2550 from owncloud/add_migration_deploy_to_continous_deployments
enable continous deployment for migration example
2021-09-27 16:32:00 +02:00
Willy Kloucek 74284a0ec3 enable continous deployment for migration example 2021-09-27 15:26:03 +02:00
Willy Kloucek 10ced591fc Merge pull request #2302 from owncloud/add_migration_deployment
add migration deployment
2021-09-27 14:54:49 +02:00
Willy KloucekandJörn Friedrich Dreyer 4bb5d006e4 Update docs/ocis/deployment/oc10_ocis_parallel.md
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-09-27 14:11:24 +02:00
Willy Kloucek 17935aa2ad add hint about non working deployment 2021-09-27 13:58:47 +02:00
Willy Kloucek 14f2b2054d Merge pull request #2499 from owncloud/switch_to_urfave_cli
switch from micro/cli/v2 to urfave/cli/v2
2021-09-27 13:08:19 +02:00
Willy Kloucek 7b30571aff switch from micro/cli/v2 to urfave/cli/v2, like https://github.com/asim/go-micro/pull/2224 2021-09-27 12:02:55 +02:00
Willy Kloucek 776f392a9c Automated changelog update [skip ci] 2021-09-27 08:53:46 +00:00
Willy Kloucek 46bf1ed347 Merge pull request #2544 from owncloud/archiver_capabilities
add max size and max num to the archiver capabilities
2021-09-27 10:51:42 +02:00
Phil Davis 33b2b6c4d3 Merge pull request #2533 from owncloud/bump-commit-ids-20210923
[tests-only] [full-ci] Bump core commit id for tests
2021-09-27 14:08:43 +05:45
Willy Kloucek 0614f3c613 update reva and fix int config parameters as string 2021-09-27 10:21:59 +02:00
Willy Kloucek 18f38d4890 Merge pull request #2545 from owncloud/systemd_deployment
[docs-only] add systemd deployment guide
2021-09-27 10:08:20 +02:00
Willy Kloucek f4e6414d07 remove syslog target 2021-09-27 10:05:50 +02:00
Willy Kloucek 10fdcafc8e revert flaex downgrade 2021-09-27 10:02:06 +02:00
Saw-jan fca36ff477 bump commit ids for tests
update expected-failure file
2021-09-27 12:37:10 +05:45
Willy Kloucek 6ef818ede8 Merge pull request #2541 from owncloud/add_links_to_monitoring_tracing
[docs-only] link monitoring and tracing instance
2021-09-27 08:42:53 +02:00
dependabot[bot] fa8e02514f Bump jest-resolve from 26.6.2 to 27.2.2 in /idp
Bumps [jest-resolve](https://github.com/facebook/jest/tree/HEAD/packages/jest-resolve) from 26.6.2 to 27.2.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v27.2.2/packages/jest-resolve)

---
updated-dependencies:
- dependency-name: jest-resolve
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 06:14:59 +00:00
Willy Kloucek e1a5de37e4 add systemd deployment guide 2021-09-26 15:54:20 +02:00
Willy Kloucek bfb801b63d add max size and max num to the archiver capabilities 2021-09-26 15:05:08 +02:00
Alex Unger 67219f1ed1 Merge pull request #2542 from owncloud/enable_kubernetes_docs 2021-09-25 17:26:23 +02:00
Willy Kloucek c3e291931e regenerate assets 2021-09-25 14:45:01 +02:00
Willy Kloucek 633632629d update tooling 2021-09-25 14:37:40 +02:00
Willy Kloucek 08cc7683df [docs-only] publish kubernetes docs 2021-09-25 13:59:10 +02:00
Willy Kloucek 4cb9117ead link monitoring and tracing instance 2021-09-25 13:17:48 +02:00
Alex Unger 83e13eb898 Merge pull request #2496 from owncloud/k8s-docs 2021-09-24 12:08:38 +02:00
Willy Kloucek b98b39fec6 Merge pull request #2529 from owncloud/archiver_app_provider_capabilities
Archiver  and app provider capabilities
2021-09-23 17:40:57 +02:00
Willy KloucekandBenedikt Kulmann 1a7c829bb4 Apply suggestions from code review
Co-authored-by: Benedikt Kulmann <benedikt@kulmann.biz>
2021-09-23 17:05:30 +02:00
Willy KloucekandPascal Wengerter 8bc8f4651f make urls configurable
Co-authored-by: Pascal Wengerter <pwengerter@owncloud.com>
2021-09-23 16:23:30 +02:00
Willy Kloucek e718239717 update reva 2021-09-23 16:21:19 +02:00
Willy Kloucek b06846546d add archiver and app provider to capabilities 2021-09-23 16:20:30 +02:00
Willy Kloucek ca3ec82e8c remove unused capabilities 2021-09-23 16:20:30 +02:00
Alex Unger 00f41cb3ff Automated changelog update [skip ci] 2021-09-23 13:33:21 +00:00
Alex Unger 31952bab79 Merge pull request #2531 from owncloud/drives-odata 2021-09-23 15:32:43 +02:00
Michael Barz 79dd35e378 make POST on Spaces comply to odata 2021-09-23 10:52:44 +02:00
David Christofas ca2cfab990 Automated changelog update [skip ci] 2021-09-23 08:46:41 +00:00
David Christofas 7b983ee71f Merge pull request #2527 from ishank011/token-expiration
Set reva JWT token expiration time to 24 hours by default
2021-09-23 04:46:00 -04:00
Willy Kloucek 89ce91c2e0 Automated changelog update [skip ci] 2021-09-23 08:38:12 +00:00
Willy Kloucek c5a74949b1 Merge pull request #2509 from owncloud/expose_reva_archiver
Expose configuration for the reva archiver
2021-09-23 10:37:44 +02:00
Ishank Arora 3e98b8df72 Set reva JWT token expiration time to 24 hours by default 2021-09-23 09:10:40 +02:00
David Christofas 255a6a27cf Merge pull request #2517 from owncloud/fix_transfer_secrets_examples
fix STORAGE_TRANSFER_SECRET usage in deployment examples
2021-09-22 12:32:38 -04:00
David Christofas 30eee219c1 Automated changelog update [skip ci] 2021-09-22 16:25:29 +00:00
David Christofas 80f872451e Merge pull request #2528 from ishank011/reva-auth-tokens
Use reva's Authenticate method instead of spawning token managers
2021-09-22 12:20:29 -04:00
Ishank Arora fd2bf9c825 Add config for machine driver to bearer auth 2021-09-22 16:49:54 +02:00
Ishank Arora c0d029dee3 Mint token after roles injection 2021-09-22 15:41:21 +02:00
Willy Kloucek 889b30cd18 make archiver routes match also "/archiver" instead of "/archiver/" only 2021-09-22 13:53:27 +02:00
A.Unger aad9c46b80 Merge branch 'master' into k8s-docs 2021-09-22 11:39:01 +02:00
A.Unger 1569317572 add Deaddy blog to the references 2021-09-22 11:38:48 +02:00
Ishank Arora fcd861f38f Add machine auth API key to ocs service 2021-09-21 17:49:15 +02:00
Ishank Arora 08c51ee8c8 Use reva's Authenticate method instead of spawning token managers 2021-09-21 15:50:19 +02:00
Lukas Hirt ed6ed61b87 [tx] updated from transifex 2021-09-21 00:03:32 +00:00
Willy Kloucek 6cc2a2c58d add migration deployment 2021-09-20 15:15:35 +02:00
Phil Davis b2c493404d Automated changelog update [skip ci] 2021-09-20 13:02:29 +00:00
Phil Davis 4fa7a509d2 Merge pull request #2522 from jsoref/spelling
Spelling
2021-09-20 18:46:59 +05:45
Josh Soref 55667a3ab3 spelling
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-09-20 16:54:29 +05:45
Michael Barz 490bea0eba add basic API test for spaces 2021-09-19 17:26:09 +02:00
Jörn Friedrich Dreyer 806d224ed7 Merge pull request #2524 from owncloud/dirkstascheit-patch-1
Update _index.md
2021-09-17 16:48:26 +02:00
Dirk Stascheit f191fc4302 Update _index.md
changed example code oCIS version from 1.11 to 1.12
2021-09-17 15:59:39 +02:00
David Christofas dbb6367e92 Automated changelog update [skip ci] 2021-09-17 12:15:49 +00:00
David Christofas febbb17ee0 Merge pull request #2492 from rhafer/ldap-tls-config
Allow reva to use safer TLS defaults for LDAP
2021-09-17 08:11:16 -04:00
Willy Kloucek 1f6d1f3860 Merge pull request #2519 from owncloud/17092021_document-skip-user-option
[docs-only] Document skip step for demo users/groups and fix changelog
2021-09-17 13:32:58 +02:00
pwengerter e437ce26b2 Document skip step for demo users/groups and fix changelog 2021-09-17 13:26:43 +02:00
Phil Davis d866e9cf0b Merge pull request #2518 from owncloud/bump-commit-ids-20210917
[full-ci] [tests-only] Bump commit ids for tests
2021-09-17 13:09:17 +05:45
Phil Davis 0fb67373a0 Bump commit ids for tests 2021-09-17 09:18:06 +05:45
Willy Kloucek 196d382805 Automated changelog update [skip ci] 2021-09-16 21:50:50 +00:00
Willy Kloucek 4d7b62dad1 Merge pull request #2498 from rhafer/docker-test-root
tests: Run ocis container as root for testsuite
2021-09-16 23:49:59 +02:00
Willy Kloucek 246c2dc15e fix STORAGE_TRANSFER_SECRET usage in deployment examples 2021-09-16 19:06:02 +02:00
Ralf Haferkamp e932120cbc Allow reva to use safer TLS defaults for LDAP
Reva is moving away from the hardcoded "insecure" setting for LDAP
connections. For this to happend ocis needs some adjustments. In order
to avoid an "insecure" by default config in ocis this commit adds the
new parameters "insecure" and "cacert" to the LDAP configuration for the
auth-, user- and groups-provider. To make the out of the box experience
as smooth as possible the default setting for "cacert" points to the
certificate that is generated for glauth on startup.
2021-09-16 17:56:29 +02:00
Michael Barz c8b1b42db6 Merge pull request #2516 from owncloud/release-1.12.0
[docs-only] Merge back the Release branch
2021-09-16 16:40:58 +02:00
Pascal Wengerter 9c28941809 Automated changelog update [skip ci] 2021-09-16 14:05:39 +00:00
Pascal Wengerter f3399b4f32 Merge pull request #2514 from owncloud/15092021_remove-fake-notification
Remove placeholder notifications endpoint in capabilities
2021-09-16 15:05:13 +01:00
A.Unger 202d79945d add notes 2021-09-16 15:53:14 +02:00
A.Unger 53d10c7b6e external IDP dependency 2021-09-16 15:28:54 +02:00
Willy Kloucek 12a1604526 Merge pull request #2515 from owncloud/reva_d83f20c3148d
update reva to d83f20c3148d
2021-09-16 14:44:41 +02:00
Patrick Maier 1bed970a4b Merge pull request #2513 from owncloud/1.12_release_notes
[docs-only] oCIS 1.12 and Web 4.2.0 Release Notes
2021-09-16 14:07:37 +02:00
Willy Kloucek 01b16ec0a9 update reva to d83f20c3148d 2021-09-16 14:04:21 +02:00
Willy Kloucek 98eefd03ef Automated changelog update [skip ci] 2021-09-16 11:58:42 +00:00
Willy Kloucek 945e3157a3 Merge pull request #2512 from owncloud/fix_pull_2493
fix: redirect invalid links to oC Web (#2493)
2021-09-16 13:58:15 +02:00
David Christofas ab84c4c9a6 Automated changelog update [skip ci] 2021-09-16 11:47:16 +00:00
David Christofas e2306ad24c Merge pull request #2495 from owncloud/skip_demo_users
Add option to generate the demo users
2021-09-16 07:46:47 -04:00
Juan Pablo Villafáñez c1dd0ea66e Add default route to the archiver 2021-09-16 12:48:07 +02:00
pwengerter f5df71717c Remove placeholder notifications endpoint in capabilities 2021-09-16 11:34:17 +01:00
Juan Pablo Villafáñez a680fc1039 Adjust test configuration 2021-09-16 11:09:59 +02:00
Willy Kloucek 09b4850965 fix #2493 2021-09-16 10:56:38 +02:00
Patrick MaierandPascal Wengerter ffd412da5c Apply suggestions from code review
Co-authored-by: Pascal Wengerter <pwengerter@owncloud.com>
2021-09-16 10:33:41 +02:00
Michael Barz 6fcae4d45d Update .codacy.yml 2021-09-16 08:29:48 +02:00
Michael Barz b7b97d1733 Add api test helper code to codacy exclude list 2021-09-16 08:19:59 +02:00
Jörn Friedrich Dreyer 8e50decb11 Automated changelog update [skip ci] 2021-09-15 19:35:27 +00:00
Jörn Friedrich Dreyer df55e3ff0f Merge pull request #2511 from owncloud/fix-username-encoding
use proper url path decode on the username
2021-09-15 21:30:20 +02:00
Patrick Maier 0fe821ae93 [docs-only] oCIS 1.12 and Web 4.2.0 Release Notes 2021-09-15 18:28:12 +02:00
Juan Pablo Villafáñez 502e77b185 Set true as default value 2021-09-15 18:11:47 +02:00
Juan Pablo Villafáñez de68fc32a3 Add changelog entry 2021-09-15 18:11:47 +02:00
Juan Pablo Villafáñez 670dfedf7c Add option to generate the demo users 2021-09-15 18:11:47 +02:00
Jörn Friedrich Dreyer 50ab6596bb use proper url path decode on the username
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-09-15 18:00:31 +02:00
Juan Pablo Villafáñez 075bd7500c Add changelog entry 2021-09-15 17:33:16 +02:00
Juan Pablo Villafáñez 8844b0bf57 Expose configuration for the reva archiver 2021-09-15 16:33:34 +02:00
Jörn Friedrich Dreyer cb3a5b811d Automated changelog update [skip ci] 2021-09-15 11:54:18 +00:00
Jörn Friedrich Dreyer c53b5bf9a7 Merge pull request #2508 from owncloud/proxy-policy-claim-precedence
allow overriding the cookie based route by claim
2021-09-15 13:53:41 +02:00
Jörn Friedrich Dreyer b0f0d6a7ee Merge pull request #2493 from owncloud/web_not_found_redirect
redirect to root when file not found
2021-09-15 13:53:19 +02:00
Willy Kloucek b2d53b9ca1 always set cookie 2021-09-15 13:09:15 +02:00
Jörn Friedrich Dreyer 3d4ee19789 allow overriding the cookie based route by claim
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-09-15 11:56:01 +02:00
Phil Davis a9422c5e6d Merge pull request #2490 from owncloud/bump-commit-ids
[full-ci][tests-only] Bump commit ids for tests
2021-09-15 14:41:24 +05:45
Michael Barz 69c55662d1 prepare 1.12.0 2021-09-15 10:27:56 +02:00
Saw-jan d3651ef0b3 bump commit ids for tests 2021-09-15 13:54:58 +05:45
Benedikt Kulmann b4f6ebe96d Automated changelog update [skip ci] 2021-09-15 07:10:03 +00:00
Benedikt Kulmann 7682a73968 Merge pull request #2501 from owncloud/bump-web-4.2.0
[full-ci] Update deps & bump web to v4.2.0
2021-09-15 09:09:22 +02:00
pwengerter 997d69ae62 Update web to v4.2.0, bump JS deps, update expected failures 2021-09-15 00:35:57 +01:00
David Christofas 0e9e635672 Automated changelog update [skip ci] 2021-09-14 15:02:01 +00:00
David Christofas 05cb9a49fc Merge pull request #2477 from owncloud/update-reva
[full-ci] update reva
2021-09-14 11:01:33 -04:00
David Christofas 194d7af6f3 update reva to v1.13.0 2021-09-14 15:39:36 +02:00
Ralf Haferkamp 94f0c8a481 tests: Run ocis container as root for testsuite
For running the acceptance tests in docker we setup a volume that is
shared between the ocis and oc10/testsuite container. Since ocis needs
to be able to write to that volume we're switching it to run as root.

Closes #2497
2021-09-14 15:06:42 +02:00
A.Unger 25f71d020c document minikube 2021-09-14 14:48:53 +02:00
A.Unger d414d80e94 briefly explain kubernetes 2021-09-14 11:58:09 +02:00
A.Unger 04eab3b3da docs: skeleton on basic structure for the piece 2021-09-14 11:22:04 +02:00
Alex Unger 5283bf8b2b Merge pull request #2494 from owncloud/docs-storage-backend-cephfs 2021-09-14 09:53:23 +02:00
Jörn Friedrich Dreyer 6bf80daf66 explain sharding relationship with deprovisioning 2021-09-14 09:51:23 +02:00
Jörn Friedrich DreyerandAlex Unger 6f9a918818 Apply suggestions from code review
Co-authored-by: Alex Unger <6905948+refs@users.noreply.github.com>
2021-09-14 09:35:05 +02:00
Jörn Friedrich Dreyer c1b5e2f1cd final notes
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-09-13 20:38:52 +00:00
Jörn Friedrich Dreyer 549d1058c5 file layout examples
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-09-13 20:30:38 +00:00
Jörn Friedrich Dreyer 804612077a flesh out cephfs aspects and future work 2021-09-13 22:04:14 +02:00
Jörn Friedrich Dreyer 13beef2fd4 describe cephfs architecture and tradeoffs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-09-13 18:20:24 +00:00
Willy Kloucek 5298b4bcfa redirect to root when file not found 2021-09-13 19:33:31 +02:00
Alex Unger 47c2c3ad4f Automated changelog update [skip ci] 2021-09-09 18:50:01 +00:00
Alex Unger ecaee109d7 Merge pull request #2471 from owncloud/spaces-crud 2021-09-09 20:47:03 +02:00
A.Unger dc7dce552d update expected failures 2021-09-09 20:06:13 +02:00
A.Unger e9d760e70b Merge branch 'master' into spaces-crud 2021-09-08 21:45:01 +02:00
A.Unger 802fccfece update reva + otel deps 2021-09-08 20:58:27 +02:00
A.Unger 38031e19e2 update reva + otel deps 2021-09-08 17:12:23 +02:00
Willy Kloucek 33d3d13460 Merge pull request #2475 from owncloud/app_provider_add_icon
add icon to collabora app provider in deployment example
2021-09-08 14:34:22 +02:00
A.Unger d0a7bc4c59 update docs 2021-09-08 14:30:39 +02:00
A.Unger 86b9ada9b5 guard on ParseForm 2021-09-08 11:50:01 +02:00
A.Unger 321697828e defensive code 2021-09-08 11:27:14 +02:00
A.Unger 85cf747b4b docs: spaces POST docs 2021-09-08 11:05:26 +02:00
Willy Kloucek 379262ec8e add icon to collabora app provider in deployment example 2021-09-07 17:12:17 +02:00
A.Unger 81fa19fab2 dep: remove local replace 2021-09-07 16:44:29 +02:00
A.Unger 96a6bebcb8 spaces: enforce create-space permission 2021-09-07 16:30:14 +02:00
Willy Kloucek d07f1752d8 Automated changelog update [skip ci] 2021-09-07 13:11:41 +00:00
Willy Kloucek cac96b7e80 Merge pull request #2474 from owncloud/remove_non_working_route
remove non working proxy route and fix cs3 users example
2021-09-07 15:09:30 +02:00
A.Unger f406c7efd1 lint: comment exported function 2021-09-07 13:34:05 +02:00
A.Unger 81c56685ec spaces: move all to its handler 2021-09-07 13:33:22 +02:00
Willy Kloucek 41ced6621a add changelog 2021-09-07 13:32:24 +02:00
Willy Kloucek 3aa519c9de remove non working proxy route and fix cs3 users example 2021-09-07 13:06:37 +02:00
Phil Davis 7d26172b2c Merge pull request #2473 from owncloud/bumpCommitId-2021-09-07
[tests-only]Bump core commit id
2021-09-07 16:25:03 +05:45
Swikriti Tripathi 16d1846c62 Bump core commit id 2021-09-07 14:41:29 +05:45
Juan Pablo Villafañez 35c27afcb6 Automated changelog update [skip ci] 2021-09-06 14:20:58 +00:00
Juan Pablo Villafañez 2ef33dc608 Set english as default language (#2465)
* Set english as default language

* Add changelog entry

* Adjust acceptance test
2021-09-06 15:20:13 +01:00
A.Unger c42546e9af spaces: WIP CreateStorageSoace 2021-09-06 12:10:23 +02:00
Jörn Friedrich Dreyer bb1b50c8e4 Merge pull request #2411 from owncloud/userprovider-owncloudsql
add userprovider owncloudsql
2021-09-03 18:43:11 +02:00
Jörn Friedrich Dreyer 990dd8de2e add userprovider owncloudsql
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-09-03 16:38:47 +02:00
Alex Unger 859aab82fc Merge pull request #2457 from owncloud/fix-2453 2021-09-03 16:23:47 +02:00
A.Unger 8ba432e117 Merge branch 'master' into fix-2453 2021-09-03 15:35:52 +02:00
A.Unger 84d6962d15 update reva to latest master 2021-09-03 15:15:32 +02:00
Willy Kloucek dff0ea4f0f Automated changelog update [skip ci] 2021-09-03 12:34:49 +00:00
Willy Kloucek f3ed9f5ff3 Merge pull request #2204 from owncloud/add_reva_app_provider
add app provider and app provider registry
2021-09-03 14:34:16 +02:00
Willy Kloucek a07c1e77a0 Merge pull request #2464 from owncloud/add_developer_access_to_continously_deployed_instances
add developer ssh access to continously deployed instances
2021-09-02 13:47:31 +02:00
Willy Kloucek 4db57dfe3c add developer ssh access to continously deployed instances 2021-09-02 11:33:44 +02:00
Alex Unger ad3c3471e1 Automated changelog update [skip ci] 2021-09-01 16:19:56 +00:00
Alex Unger 45844aee4e Merge pull request #2461 from owncloud/create-space-permission
add create space permission
2021-09-01 18:18:53 +02:00
David Christofas 5340a96169 add create space permission 2021-09-01 17:13:59 +02:00
David Christofas ab0dfb97e9 Automated changelog update [skip ci] 2021-09-01 15:11:27 +00:00
David Christofas 1ab1fb9990 Merge pull request #2459 from owncloud/set-quota-permission
add set space quota permission
2021-09-01 11:10:52 -04:00
David Christofas aeafa46c88 add set space quota permission 2021-09-01 15:25:53 +02:00
A.Unger bee17dbe29 tracing: fix exporter config 2021-09-01 14:36:13 +02:00
A.Unger 1c1f5c9167 tracing: use tracing agent instead of collector 2021-09-01 14:22:54 +02:00
Willy Kloucek acb18756c5 update reva 2021-09-01 12:51:49 +02:00
Willy Kloucek 29e3fbd02f add appprovider frontend route 2021-09-01 12:50:03 +02:00
Willy Kloucek 5cbf3f7a88 add app name 2021-09-01 12:50:03 +02:00
Willy Kloucek 53c5c8d278 add frontend service 2021-09-01 12:50:03 +02:00
Willy Kloucek 1664a10f0f always set config 2021-09-01 12:50:03 +02:00
Willy Kloucek e2a7cf7809 add additional config options from cs3org/reva#1968 2021-09-01 12:50:03 +02:00
Willy Kloucek 439e5729a8 remove additional appprovider 2021-09-01 12:50:03 +02:00
Willy Kloucek ead395c4df add changelog 2021-09-01 12:50:03 +02:00
Willy Kloucek 4210ddcf52 adpat useage of in deployment example 2021-09-01 12:50:03 +02:00
Willy Kloucek a1e1fbbe49 fix startup without active appprovider driver 2021-09-01 12:50:03 +02:00
Willy Kloucek a909141bca adapt to new storage provider settings 2021-09-01 12:50:03 +02:00
Willy Kloucek d41bc5e1b8 fix URL naming 2021-09-01 12:50:03 +02:00
Willy Kloucek df6359807b add reva app provider 2021-09-01 12:50:02 +02:00
Viktor Scharf 7b1a7b20f1 Merge pull request #2455 from owncloud/add-labels
[docs-only] add storage labels
2021-09-01 10:38:11 +02:00
Michael Barz 62d5e8f56e add storage labels 2021-09-01 10:31:31 +02:00
Willy Kloucek 413b88863b Merge pull request #2450 from owncloud/adapt_examples_to_non_root_image
adapt examples to non-root docker image
2021-08-31 12:45:44 +02:00
Pascal Wengerter 32241b5a1c Merge pull request #2420 from owncloud/19082021_js-dependencies
Update accounts, idp, settings JS dependencies
2021-08-31 08:43:49 +01:00
David Christofas d714cdae69 Automated changelog update [skip ci] 2021-08-30 16:47:38 +00:00
David Christofas f064777baa Merge pull request #2451 from owncloud/upgrade_go_micro_3.6.0
upgrade go micro and all modules to v3.6.0
2021-08-30 12:47:06 -04:00
Willy Kloucek 69a26a81f3 Merge pull request #2452 from owncloud/hint_about_service_startup_time
[docs-only] add hint about service startup time
2021-08-30 18:25:56 +02:00
pwengerter b888774675 Bump accounts, idp & settings dependencies, cleanup settings (dev)Deps 2021-08-30 17:23:37 +01:00
Willy Kloucek 1aa382c9f6 add hint about service startup time 2021-08-30 18:03:57 +02:00
Willy Kloucek 1ff029110c add changelog 2021-08-30 17:45:51 +02:00
Willy Kloucek a8e908aebd upgrade go micro and all modules to v3.6.0 2021-08-30 17:43:28 +02:00
Willy Kloucek d6f6e8dc9f adapt examples to non-root docker image 2021-08-30 09:34:29 +02:00
Willy Kloucek a2aca08fa7 Merge pull request #2449 from owncloud/fix_generate
fix `make generate`
2021-08-30 09:25:42 +02:00
Willy Kloucek 95dd76e3d0 fix make generate 2021-08-30 08:40:45 +02:00
Phil Davis c7d4f179c2 Merge pull request #2443 from owncloud/adjust-expectedtofail
[tests-only] [full-ci]Adjust expected to fail for file target issue
2021-08-30 12:20:26 +05:45
Swikriti Tripathi b388954dc7 Adjust expected to fail for file target issue and bump core commit id 2021-08-30 11:13:58 +05:45
Phil Davis 4694889379 Merge pull request #2444 from owncloud/dirkstascheit-patch-1
[docs-only] Update _index.md
2021-08-27 16:06:01 +05:45
Dirk Stascheit 0328ce9134 Update _index.md
updated version numbers from 1.10 to 1.11
2021-08-27 10:21:44 +02:00
Florian Schade 1c94346333 Automated changelog update [skip ci] 2021-08-25 14:43:12 +00:00
Florian Schade d68132fe49 Merge pull request #2431 from owncloud/release-1.11.0
[full-ci] Release 1.11.0
2021-08-25 16:36:24 +02:00
Florian Schade 8d8e3266c0 void 2021-08-25 15:28:02 +02:00
Patrick Maier fa9dd800ed add more items based on reva 1.12 changelog 2021-08-25 15:28:02 +02:00
Patrick Maier 919108fce2 [docs-only] 1.11 Release Notes 2021-08-25 15:28:02 +02:00
Florian Schade 392caa1570 move changelogs 2021-08-25 15:28:02 +02:00
Phil Davis e8fe1f2b70 Merge pull request #2434 from owncloud/bumpCommitId-2021-08-25
[Tests-Only][full-ci]Update core commit id
2021-08-25 17:05:58 +05:45
Jasmine Baral 2c86912b46 Update core commit id 2021-08-25 15:06:10 +05:45
Alex Unger 45bd133a70 Automated changelog update [skip ci] 2021-08-25 07:40:19 +00:00
Alex Unger c996b6462b Merge pull request #2429 from rhafer/chi-v5 2021-08-25 09:36:44 +02:00
Ralf Haferkamp 3a42fdc578 Move to go-chi/chi v5 2021-08-24 17:48:37 +02:00
Ralf Haferkamp 8042db13ad Bump protoc-gen-microweb to the latest commit
To be able to move to chi/v5
2021-08-24 17:47:57 +02:00
Pascal Wengerter ea35cbb6be Automated changelog update [skip ci] 2021-08-24 14:09:23 +00:00
Pascal Wengerter a150e5f6b4 Merge pull request #2433 from owncloud/remove-onlyoffice-service
Remove onlyoffice extension
2021-08-24 15:06:03 +01:00
pwengerter a24fe109cc Remove onlyoffice extension 2021-08-24 14:15:20 +01:00
David Christofas 8e5b975b7f Automated changelog update [skip ci] 2021-08-24 09:17:16 +00:00
David Christofas 33581530f3 Merge pull request #2423 from owncloud/update-reva
update reva to v1.12
2021-08-24 05:11:11 -04:00
David Christofas f902633a6b update reva to v1.12 2021-08-24 10:22:10 +02:00
Florian Schade 291b5fa3f5 Automated changelog update [skip ci] 2021-08-21 05:06:32 +00:00
Florian Schade 892b6962ff Merge pull request #2426 from owncloud/update-web-4.1.0
[full-ci] Bump web to v4.1.0
2021-08-21 06:59:11 +02:00
pwengerter 84f2914a82 Adjust expected failures for new web 4.1.0 release 2021-08-20 19:56:27 +01:00
pwengerter 08d26b2ff1 Bump web to v4.1.0 2021-08-20 17:24:58 +01:00
Ralf Haferkamp 63a6d9c73f Merge pull request #2424 from rhafer/broken-link
[docs-only] Fix another broken link
2021-08-20 15:52:23 +02:00
Ralf Haferkamp f79e7658a6 Fix another broken link 2021-08-20 14:58:56 +02:00
Phil Davis fad056564a Merge pull request #2419 from sakshamgurung/subadmin-related-expected-failures
[tests-only] [full-ci] core id bump
2021-08-20 15:32:32 +05:45
sakshamgurung 2c107a4bfe update expected failures list 2021-08-20 14:28:58 +05:45
Phil Davis 765f94bf6a Merge pull request #2395 from owncloud/adjustExpectedFailuresForReshare
[Tests-Only][full-ci]Adjust Expected Failures
2021-08-19 17:40:38 +05:45
Jasmine Baral ed86c9da84 Adjust Expected Failures 2021-08-19 16:02:31 +05:45
Jörn Friedrich Dreyer 5554c72d9a gotta run
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-08-18 17:22:52 +02:00
Alex Unger 50c37d9bbd Merge pull request #2372 from owncloud/remake-traces 2021-08-18 16:12:54 +02:00
A.Unger 46f0d6f7e4 remove dead code 2021-08-18 14:06:02 +02:00
Alex UngerandDavid Christofas 06fda516ec Update proxy/pkg/middleware/accesslog.go
Co-authored-by: David Christofas <dchristofas@owncloud.com>
2021-08-18 14:03:19 +02:00
Swikriti Tripathi aeebf76127 Merge pull request #2414 from owncloud/run-tests-from-enforce-token-auth
[full-ci] [tests-only] Remove ocsGETAuth.feature:243 from expected to fail and update commit id
2021-08-18 16:54:14 +05:45
Swikriti Tripathi 65dcb1685a Remove ocsGETAuth.feature:243 from expected to fail and update commit id 2021-08-18 15:57:30 +05:45
A.Unger 0f0d305f6d linter: fix var name 2021-08-18 11:25:44 +02:00
Alex Unger 7dac10b3b7 Merge pull request #2409 from owncloud/adr-traces-2021 2021-08-18 11:16:12 +02:00
A.Unger 1dd4644370 fix requestid 2021-08-18 11:10:50 +02:00
Alex Unger 3947531ae0 Merge pull request #2415 from owncloud/update-adr-0011
[docs-only] move adr 0011 to the accepted state
2021-08-18 10:36:47 +02:00
David Christofas af7e6d1176 move adr 0011 to the accepted state 2021-08-18 10:32:10 +02:00
A.Unger a7d89c7065 Merge branch 'master' into remake-traces 2021-08-18 10:00:55 +02:00
Phil Davis 42e19037e0 Merge pull request #2412 from owncloud/adjust-expected-failures-1250
[full-ci] [tests-only] Sort out expected-failures for share expiration date
2021-08-18 11:29:54 +05:45
Phil Davis 5d7064ab17 Bump core commit id for tests 2021-08-18 09:47:21 +05:45
Jörn Friedrich Dreyer 17adee54f4 rewrite bridge docs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-08-17 17:48:33 +02:00
Phil Davis eee4a80d71 Sort out expected-failures for share expiration dat 2021-08-17 20:19:52 +05:45
David Christofas 3c0ce6180f Automated changelog update [skip ci] 2021-08-17 14:18:53 +00:00
David Christofas 6552bf0c34 Merge pull request #2410 from owncloud/update-reva
[full-ci] IUpdate reva to v1.11.1-0.20210817090727-aaf1fb8b8ead
2021-08-17 10:18:09 -04:00
A.Unger 7d22a4bee1 update go.sum 2021-08-17 15:12:51 +02:00
A.Unger dbf8e6873b deps: update reva to v1.11.1-0.20210817090727-aaf1fb8b8ead 2021-08-17 14:01:34 +02:00
A.Unger 21e6aab85e deps: update reva 2021-08-17 13:52:34 +02:00
A.Unger 50381b2225 remove deprecated config option 2021-08-17 13:31:15 +02:00
A.Unger aac45a46f4 Merge branch 'master' into remake-traces 2021-08-17 13:29:05 +02:00
A.Unger 021086e024 adr: 0012-tracing 2021-08-17 13:24:38 +02:00
Phil Davis e4cab1e781 Merge pull request #2407 from rhafer/changelog
[docs-only] Add missing changelog entry
2021-08-16 21:14:32 +05:45
Ralf Haferkamp 63e6660ca4 Add missing changelog entry 2021-08-16 17:24:19 +02:00
Pascal Wengerter 3782813ea1 Merge pull request #2400 from owncloud/16082021_bump-js-deps
Supersede dependabot bumps
2021-08-16 12:48:06 +01:00
pwengerter cb4b16ce8e Supersede dependabot bumps 2021-08-16 12:10:46 +01:00
David Christofas 72c114c301 Merge pull request #2399 from owncloud/fix-dependabot-path
[docs-only] fix the directory path for dependabot
2021-08-16 05:30:55 -04:00
David Christofas d74818b18f fix the directory path for dependabot
The repository now only holds one go.mod file at the root of the repository.
2021-08-16 10:47:47 +02:00
Michael Barz 6b006fdf0e [tx] updated from transifex 2021-08-16 01:01:39 +00:00
Jörn Friedrich Dreyer 5e5f7ec402 Merge pull request #2397 from owncloud/fix-env-var-1
fix wrongly named env var
2021-08-13 17:02:22 +02:00
Jörn Friedrich Dreyer a68a116c54 fix wrongly named env var 2021-08-13 15:40:13 +02:00
Jörn Friedrich Dreyer 6485391fe9 Merge pull request #2388 from rhafer/cleanup
Fix naming of the user- and groupprovider services
2021-08-13 15:04:09 +02:00
Jörn Friedrich Dreyer fc97f52f06 Merge pull request #2396 from owncloud/update_reva_2021_08_13
pull in owncloudsql fixes from reva
2021-08-13 15:03:03 +02:00
Willy Kloucek 018db1018a update reva 2021-08-13 14:12:33 +02:00
David Christofas 7c5fa2c114 Automated changelog update [skip ci] 2021-08-13 10:26:28 +00:00
David Christofas a2d2671bf3 Merge pull request #2393 from owncloud/update-go-oidc
update github.com/coreos/go-oidc to version 3.0.0
2021-08-13 06:25:46 -04:00
David Christofas 44abfe478d Merge pull request #2394 from owncloud/update-dependencies
update various dependencies
2021-08-13 06:13:05 -04:00
David Christofas 3e3ceeafee update various dependencies 2021-08-13 11:04:56 +02:00
David Christofas ed85fedf1a update github.com/coreos/go-oidc to version 3.0.0 2021-08-13 09:55:17 +02:00
A.Unger e62a9b6a36 Merge branch 'master' into remake-traces 2021-08-13 09:43:31 +02:00
Jörn Friedrich Dreyer dbb228349a Automated changelog update [skip ci] 2021-08-12 20:10:41 +00:00
Jörn Friedrich Dreyer 8bda1d1bb0 Merge pull request #2380 from owncloud/non-root-docker-image
make image not using root user
2021-08-12 22:06:27 +02:00
Jörn Friedrich Dreyer bbac85d4c4 Merge pull request #2391 from owncloud/update-bleve
update bleve to version 2.1.0
2021-08-12 22:04:59 +02:00
David Christofas 1cf4594211 Merge pull request #2389 from owncloud/replace-middlewares
use go-chi middlewares
2021-08-12 17:52:04 +02:00
David Christofas 7bd2d73bb3 update bleve to version 2.1.0 2021-08-12 17:33:12 +02:00
David Christofas 35b206b230 Automated changelog update [skip ci] 2021-08-12 15:25:27 +00:00
David Christofas eacdb8fa2f Merge pull request #2386 from owncloud/switch-jwt-lib
switch jwt library
2021-08-12 17:24:57 +02:00
David Christofas 3bc60510ce use go-chi middlewares
go-chi already delivers the middlewares we need so we don't need to import other libraries for that.
2021-08-12 17:14:41 +02:00
David Christofas b8150f25b8 switch jwt library
The old library github.com/dgrijalva/jwt-go is now unmaintained and was replaced by the community maintained fork github.com/golang-jwt/jwt
2021-08-12 16:53:17 +02:00
Ralf Haferkamp 8817e2bae3 Fix naming of the user- and groupprovider services
The services ared called "storage-userprovider" and "-groupprovider".
The 'ocis help' output was missleading. This also renames the structs
accordingly.
2021-08-12 16:11:07 +02:00
Willy Kloucek 41b26a3eb7 add changelog 2021-08-12 15:11:48 +02:00
Willy Kloucek a8d78c06cd use uid and gid 1000 2021-08-12 15:11:48 +02:00
Willy Kloucek 1468abe4e9 change USER statement to use the UID 2021-08-12 15:11:48 +02:00
Willy Kloucek 305ef58b73 make image not using root user 2021-08-12 15:11:48 +02:00
David Christofas 2927dc45c3 Automated changelog update [skip ci] 2021-08-12 12:08:48 +00:00
David Christofas 2f4d065463 Merge pull request #2385 from owncloud/reva-update-ec4099da
[full-ci] update reva to 756bdced1d22
2021-08-12 14:08:17 +02:00
Jörn Friedrich Dreyer 6c7bbd936a Merge pull request #2379 from owncloud/remove_goverage
remove goverage
2021-08-12 13:08:21 +02:00
Jörn Friedrich Dreyer 55aacdea13 update reva to ec4099da
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-08-12 11:08:10 +00:00
A.Unger 6403e5c7e5 go mod: tidy 2021-08-12 12:19:56 +02:00
A.Unger 85848f1342 Merge branch 'master' into remake-traces 2021-08-12 12:19:32 +02:00
A.Unger 8499187315 add x-request-id to proxy root span 2021-08-12 12:13:52 +02:00
A.Unger 778ad717df config: add reva required config 2021-08-12 11:18:55 +02:00
Jörn Friedrich Dreyer eb0b805b63 Merge pull request #2384 from owncloud/dirkstascheit-patch-1
[docs-only] Update _index.md
2021-08-11 15:34:48 +02:00
Dirk Stascheit a5d2d8b676 Update _index.md
updated ocis package version number to 1.10
2021-08-11 14:10:06 +02:00
Jörn Friedrich Dreyer 648cfd0f43 Merge pull request #2371 from rhafer/kconnnect-to-lico
Move from kc/konnect to libregraph/lico
2021-08-11 13:16:03 +02:00
Willy Kloucek d68b942832 remove goverage 2021-08-11 09:21:59 +02:00
Phil Davis 41196732c9 Merge pull request #2375 from owncloud/bump-commit-ids
[full-ci] [tests-only] Bump commit ids for tests
2021-08-11 11:35:44 +05:45
saw-jan c11137f817 update expected-failure file 2021-08-11 10:06:53 +05:45
Ralf Haferkamp 6dd5be25fc Move from kc/konnect to libregraph/lico
This switches the oidc implementation to libregraph/lico, which for now
is just a rename of kc/konnect. As there is no working lico release yet
(lico 0.34.0 wasn't fully renamed), we point it to the current master.
2021-08-10 16:25:26 +02:00
Phil Davis e4b7c633cd Merge pull request #2377 from rhafer/dangling-links
[docs-only] docs: Fix some dangling links
2021-08-10 19:32:25 +05:45
Ralf Haferkamp a41e4b0ff6 docs: Fix some dangling links 2021-08-10 15:24:33 +02:00
saw-jan 698c094f9b bump commit ids for tests 2021-08-10 15:18:20 +05:45
Willy Kloucek 969fa540a2 Automated changelog update [skip ci] 2021-08-10 09:30:00 +00:00
Willy Kloucek 834a146c05 Merge pull request #2367 from owncloud/release-1.10.0
[full-ci] Release 1.10.0
2021-08-10 11:29:06 +02:00
Florian Schade 727042279f Merge pull request #2359 from owncloud/pmaier1-patch-1-1
[docs-only] oCIS 1.10.0 Release Notes
2021-08-10 09:22:57 +02:00
A.Unger 8a80b990a8 safer code 2021-08-10 00:09:39 +02:00
A.Unger 1ed38e1f3b guard against unconfigured tracer 2021-08-09 23:18:03 +02:00
Phil Davis b98761eaa4 Remove passing more tests from expected-failures 2021-08-09 23:25:55 +05:45
Phil Davis 78cd35db29 Remove passing tests from expected-failures 2021-08-09 22:45:53 +05:45
Florian Schade f2d36f6638 update reva to v1.11.1-0.20210809134415-3fe79c870fb5 2021-08-09 18:19:14 +02:00
A.Unger ad994ded16 more refactoring 2021-08-09 18:15:34 +02:00
A.Unger b13863b717 refactor traceprovider initialization 2021-08-09 18:03:01 +02:00
A.Unger 6fc2b7503d add tracing utils to ocis-pkg 2021-08-09 17:45:31 +02:00
A.Unger 4a817959ef fix middleware chain 2021-08-09 17:37:58 +02:00
A.Unger ac087d0dae replace opencensus everywhere 2021-08-09 17:28:00 +02:00
A.Unger fe530e9a27 prevent having a nil traceprovider 2021-08-09 17:14:36 +02:00
A.Unger 2a60b6b933 replace go.opencensus.io with opentelemetry in thumbnails 2021-08-09 16:15:22 +02:00
A.Unger f5c3b49d12 replace go.opencensus.io with opentelemetry in store 2021-08-09 16:00:51 +02:00
A.Unger 45f29fdc98 replace go.opencensus.io with opentelemetry in idp 2021-08-09 15:58:36 +02:00
A.Unger 500a77f005 Merge branch 'master' into remake-traces 2021-08-09 15:52:19 +02:00
A.Unger 0eb403d658 replace go.opencensus.io with opentelemetry 2021-08-09 15:52:06 +02:00
A.Unger 43a97f6bac remove redundant middleware 2021-08-09 15:47:53 +02:00
Patrick MaierandBenedikt Kulmann 0d13830203 Update docs/ocis/release_notes.md
Co-authored-by: Benedikt Kulmann <benedikt@kulmann.biz>
2021-08-09 13:31:57 +02:00
Phil Davis 30c7f58eb6 Merge pull request #2370 from owncloud/bump-commit-ids-20210807
[tests-only] [full-ci] Bump commit ids for tests
2021-08-07 10:27:26 +05:45
Phil Davis b74a0a6829 Bump commit ids for tests 2021-08-07 08:53:29 +05:45
A.Unger 2bdd07e41b add test spans 2021-08-06 15:47:46 +02:00
Willy Kloucek dc957c3722 Automated changelog update [skip ci] 2021-08-06 13:23:14 +00:00
Willy Kloucek 283ecc28c9 Merge pull request #2364 from ishank011/user-type
Specify primary user type for all accounts
2021-08-06 15:22:45 +02:00
Florian Schade 3022479052 remove unused web-config.json 2021-08-06 15:22:22 +02:00
Ishank Arora 10b9fee60e Specify primary user type for all accounts 2021-08-06 14:16:34 +02:00
Willy Kloucek ccf0c18f32 Merge pull request #2368 from owncloud/fix-stop-recent-builds-fork
[CI][docs-only] fix stop-recent-builds for forks
2021-08-06 14:14:45 +02:00
Willy Kloucek 8b65d74a44 fix stop-recent-builds for forks 2021-08-06 14:10:17 +02:00
A.Unger 33b1524f15 Merge branch 'master' into remake-traces 2021-08-06 13:52:30 +02:00
A.Unger 8301a7e7a3 propagate trace from ocs to proxy 2021-08-06 13:46:54 +02:00
A.Unger feed3e589b add tracing middleware to ocs middleware chain 2021-08-06 13:33:14 +02:00
A.Unger 9f96321c1c add tracing middleware to proxy middleware chain 2021-08-06 13:32:25 +02:00
A.Unger 9f50776b17 enable traces in proxy 2021-08-06 13:29:40 +02:00
Florian Schade 35979955e6 prepare changelog for release-1.10.0
update sonar project to 1.10.0
2021-08-06 13:12:33 +02:00
A.Unger 93f13388dd add OCIS_TRACING_* flags to all extensions 2021-08-06 11:51:36 +02:00
A.Unger 8e5ef03f9f run go mod tidy 2021-08-06 11:51:25 +02:00
A.Unger 6b1c8d1bf0 add otel dependencies 2021-08-06 11:37:04 +02:00
A.Unger 0e59776d72 remove tracing from ocis/ocis 2021-08-06 11:29:38 +02:00
Willy Kloucek 737cca6600 Merge pull request #2366 from owncloud/fix_docs_sync
[docs-only] fix docs sync after owncloud/owncloud.github.io#29 and bump hugo
2021-08-06 11:02:08 +02:00
Willy Kloucek 84412bd9c1 fix docs sync after https://github.com/owncloud/owncloud.github.io/pull/29 and bump hugo 2021-08-06 10:55:16 +02:00
Patrick Maier 4b35da08c6 Add hint to ONLYOFFICE integration docs 2021-08-06 10:11:41 +02:00
Phil Davis 5c550ecbb4 Merge pull request #2351 from owncloud/remove-owncloud-driver
[tests-only] remove the owncloud storage driver from CI
2021-08-06 09:14:22 +05:45
David Christofas d2cb1fbd7c remove the owncloud storage driver from CI 2021-08-06 08:13:18 +05:45
Florian Schade 23c9a3156c Automated changelog update [skip ci] 2021-08-05 19:18:16 +00:00
Florian Schade 396c24a73c Merge pull request #2355 from owncloud/update-reva-v1.11.0
[full-ci] update reva to v1.11.0
2021-08-05 21:15:23 +02:00
Phil Davis 8a645f6ac6 Remove another passing web test from expected-failures 2021-08-05 22:12:52 +05:45
Ralf Haferkamp 8bd46f2f5f Merge pull request #2357 from rhafer/doc-fixes
[docs-only] Add note about remote setup to quickstart
2021-08-05 17:11:34 +02:00
Pascal Wengerter 459932c701 Merge pull request #2352 from owncloud/04082021_update-js-deps
[full-ci] Update accounts, settings, idp, onlyoffice dependencies
2021-08-05 16:36:06 +02:00
Florian Schade dbca0a6f0b fix expected failures
update changelog
2021-08-05 16:35:39 +02:00
Phil Davis 5c122fb882 Remove passing web tests from expected-failures 2021-08-05 19:45:02 +05:45
Pascal Wengerter 104b56a04c Update accounts, settings, idp, onlyoffice dependencies 2021-08-05 14:45:37 +02:00
Patrick Maier e621fa6a64 corrections 2021-08-05 14:42:15 +02:00
Patrick Maier 1d6f56f737 Update release_notes.md
- Adds oCIS 1.10.0 and Web 4.0.0 Release Notes
- Reworks oCIS 1.9.0 Release Notes to include Web 3.4.1 changes
2021-08-05 14:35:03 +02:00
Phil Davis 57c9c13129 Remove passing tests from expected-failures 2021-08-05 18:13:17 +05:45
Florian Schade da3d25f0f3 merge reva update changelogs 2021-08-05 13:48:48 +02:00
Florian Schade bfc891950e update reva to v1.11.0 2021-08-05 13:48:48 +02:00
Phil Davis d13f3b53e9 Automated changelog update [skip ci] 2021-08-05 11:39:56 +00:00
Phil Davis aab73be154 Merge pull request #2353 from owncloud/update-web-4.0.0
[full-ci] Update web to 4.0.0
2021-08-05 17:24:16 +05:45
Phil Davis ed3a5a7f5f Split web UI test pipelines 2021-08-05 15:34:32 +05:45
Ralf Haferkamp 07d5dd345d Fix documentation links in example deployments 2021-08-05 08:58:51 +02:00
Phil Davis 309374cda5 Adjust expected-failures for different web test scenarios 2021-08-05 10:09:46 +05:45
Pascal Wengerter 92e232ce62 Bump web commit ID to latest 2021-08-04 18:07:50 +02:00
Benedikt Kulmann 2b6b92a134 Update web to 4.0.0 2021-08-04 17:34:11 +02:00
Ralf Haferkamp d27e939ec2 deployment: add missing examples to the list 2021-08-04 17:03:20 +02:00
Ralf Haferkamp 31f80748cc getting_started: add a hint about remote access 2021-08-04 17:03:20 +02:00
Ralf Haferkamp d10f6a3b73 Remove references to collabora and wopi from ocis_hello example 2021-08-04 17:03:20 +02:00
Ralf Haferkamp 22cb67c3a4 doc: Fix some markdown issues
- Fix links in ocis_s3 and ocis_hello
- Fix formatting for bash commands
2021-08-04 17:03:20 +02:00
Phil Davis 69dfdeac0d Merge pull request #2345 from owncloud/bump-core-commit-id
[tests-only] Bump core commit to include more previews tests
2021-08-04 11:44:49 +05:45
Phil Davis 508fa8c7cf Bump core commit id to include more previews tests 2021-08-04 08:56:56 +05:45
Phil Davis c961de1d57 Remove apiBugDemonstration test suite 2021-08-04 08:56:56 +05:45
Jörn Friedrich Dreyer b0fd0b1ef5 Automated changelog update [skip ci] 2021-08-03 20:04:05 +00:00
Jörn Friedrich Dreyer 30e0a09aa5 Merge pull request #2344 from labkode/one-go-mod-rule-them-all
one mod file
2021-08-03 21:59:01 +02:00
Hugo Gonzalez Labrador e1f6a109cc add changelog 2021-08-03 15:00:58 +02:00
Hugo Gonzalez Labrador 9e09bbffc9 one mod file 2021-08-03 14:28:22 +02:00
Phil Davis 499b85e865 Merge pull request #2337 from owncloud/cancelOldBuilds
[Tests-Only] Cancel old builds for same pr
2021-08-03 17:58:22 +05:45
Jasmine Baral 8e729c9eae first commit 2021-08-03 16:58:33 +05:45
Phil Davis cbe1bbf432 Merge pull request #2341 from owncloud/review-local-api-tests
[tests-only][full-ci]remove api bug demonstration scenarios that are covered by exected-to…
2021-08-03 16:28:46 +05:45
Benedikt Kulmann d30670450a Automated changelog update [skip ci] 2021-08-02 14:53:12 +00:00
Benedikt Kulmann 4d9612ae29 Merge pull request #2309 from owncloud/16072021_a11y-fixes
A11y improvements for IDP service & update embed.go
2021-08-02 16:52:44 +02:00
Swikriti Tripathi 73f45deed6 changes made in expected to fail file 2021-08-02 16:31:33 +05:45
Swikriti Tripathi 672350af9e remove api bug demonstration scenarios that are covered by exected-to-fail-file 2021-08-02 13:23:50 +05:45
Michael Barz 3747531774 Automated changelog update [skip ci] 2021-08-02 06:59:13 +00:00
Michael Barz fba3688f2e Merge pull request #2328 from ishank011/ocs-cache-warmup
Add ocs cache warmup config and warn on protobuf ns conflicts
2021-08-02 08:58:33 +02:00
Phil Davis ad0e7fe38d Merge pull request #2334 from owncloud/update_reva_4f819b44e544
[full-ci] update reva to 4f819b44e544
2021-07-30 19:27:28 +05:45
Willy Kloucek 92e7e1b509 update reva 2021-07-30 14:09:02 +02:00
Willy Kloucek 4fdd65ed16 add failing web tests to expected failures 2021-07-30 13:52:11 +02:00
Willy Kloucek 982ac391a6 fix expected failures 2021-07-30 13:52:11 +02:00
Willy Kloucek 54da37850a remove fixed bug demonstrations 2021-07-30 13:52:11 +02:00
Benedikt Kulmann 8703b091a6 Merge pull request #2307 from owncloud/doc/idp-theming
[docs-only] add how to theme idp
2021-07-30 12:03:18 +02:00
Alex Unger a51ab55368 Automated changelog update [skip ci] 2021-07-30 08:36:18 +00:00
Alex Unger 6bc06dad8c Merge pull request #2336 from owncloud/update-glauth 2021-07-30 10:35:41 +02:00
Jörn Friedrich Dreyer afffb3e09c update expected failures
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-29 22:59:57 +02:00
Jörn Friedrich Dreyer c7c944e07e update glauth to 20210729125545-b9aecdfcac31
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-29 22:22:23 +02:00
Michael Barz 1288314946 Merge pull request #2335 from owncloud/document_transfer_secret
[docs-only] document storage transfer token
2021-07-29 16:38:03 +02:00
Michael Barz 480d57b13d Merge pull request #2306 from owncloud/simplify_traefik_configuration
[deployment examples] simplify traefik configuration
2021-07-29 16:37:54 +02:00
Willy Kloucek 08047e1d83 document storage transfer token 2021-07-29 16:05:25 +02:00
Lukas Hirt 391e451e41 docs: mention different idp pages 2021-07-29 14:32:30 +02:00
Phil Davis 11722a3b4d Merge pull request #2331 from owncloud/bump-commit-id-20210728
[tests-only][full-ci]Bump commit id 20210728
2021-07-29 10:45:06 +05:45
Swikriti Tripathi 27882a29c6 bump core commit id and update expected to fail file 2021-07-29 09:29:36 +05:45
Michael Barz 288e35a390 Merge pull request #2269 from owncloud/private-link-as-route
[docs-only] URL Design ADR
2021-07-28 12:04:02 +02:00
Pascal Wengerter 5c1e1e602e A11y improvements for IDP service & update various web-ish embed.go's 2021-07-27 17:18:39 +02:00
Pascal Wengerter cc8273f048 Merge pull request #2325 from owncloud/dependabot/npm_and_yarn/idp/react-intl-5.20.6
Bump react-intl from 5.13.2 to 5.20.6 in /idp
2021-07-27 17:14:19 +02:00
Michael Barz 2bc7657cd2 add short urls to the proposal 2021-07-27 11:42:15 +02:00
Ishank Arora f7867e42f5 Add ocs cache warmup config and warn on protobuf ns conflicts 2021-07-26 16:45:43 +02:00
Jörn Friedrich Dreyer 5825a9b957 Automated changelog update [skip ci] 2021-07-26 13:21:27 +00:00
Jörn Friedrich Dreyer 968c9b75d8 Merge pull request #2095 from owncloud/oidc-token-basic-auth
forward basic auth to OpenID connect token authentication endpoint
2021-07-26 15:20:57 +02:00
Jörn Friedrich Dreyer c3951d67c8 forward basic auth to OpenID connect token authentication endpoint
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-26 11:12:33 +00:00
Phil Davis d6a3da57c6 Merge pull request #2321 from owncloud/bump-test-commit-id-20210723
[tests-only] [full-ci] Bump core commit id for tests
2021-07-26 14:41:00 +05:45
dependabot[bot] 789b8de6b2 Bump react-intl from 5.13.2 to 5.20.6 in /idp
Bumps [react-intl](https://github.com/formatjs/formatjs) from 5.13.2 to 5.20.6.
- [Release notes](https://github.com/formatjs/formatjs/releases)
- [Commits](https://github.com/formatjs/formatjs/compare/react-intl@5.13.2...react-intl@5.20.6)

---
updated-dependencies:
- dependency-name: react-intl
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 06:18:52 +00:00
Phil Davis a168a60724 Adjust expected-failures for issue 2323 2021-07-26 11:30:33 +05:45
Phil Davis 4ec63656dc Adjust expected-failures 2021-07-24 08:54:46 +05:45
Phil Davis 289730a144 Bump core commit id for tests 2021-07-23 19:04:00 +05:45
Jörn Friedrich Dreyer 2800515c94 Automated changelog update [skip ci] 2021-07-23 11:47:49 +00:00
Jörn Friedrich Dreyer dcd8327e61 Merge pull request #2248 from owncloud/claims-policy-selector
add claims and regex policy selector
2021-07-23 13:45:43 +02:00
Jörn Friedrich Dreyer 07bb4a179e clarify cs3 claims
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 09:42:40 +00:00
Jörn Friedrich Dreyer bea986fe26 pass only request instead of context
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 09:03:14 +00:00
Willy Kloucek a0dce56480 use cookie to enforce routing for regex and claim selector 2021-07-23 08:38:55 +00:00
Jörn Friedrich Dreyer cb70f4882f add todo for x-access-header handling
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:33:18 +00:00
Jörn Friedrich Dreyer 0a632df7d2 update proxy config json example files
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:33:18 +00:00
Jörn Friedrich Dreyer 5c024b4543 use context from middleware in proxy
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:31:10 +00:00
Jörn Friedrich Dreyer 2583c6a1a7 remove comma
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:31:10 +00:00
Jörn Friedrich Dreyer b0c742cb2f fix docs typo
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:31:10 +00:00
Jörn Friedrich Dreyer b540ccdf10 add regex rule priority, drop request from selector signature, add unit tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:31:10 +00:00
Jörn Friedrich Dreyer 4385d3dacb add RegexSelector
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:22:40 +00:00
Phil Davis 1e4f8334cf Merge pull request #2320 from owncloud/enable-SEND_SCENARIO_LINE_REFERENCES
[tests-only] [full-ci] Enable SEND_SCENARIO_LINE_REFERENCES to send X-Request-Id header in API tests
2021-07-23 13:52:29 +05:45
Jörn Friedrich Dreyer 40c8031441 add claims policy selector
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:07:17 +00:00
Phil Davis a6575d9597 Enable SEND_SCENARIO_LINE_REFERENCES to send X-Request-Id header in API tests 2021-07-23 12:10:40 +05:45
Phil Davis 37de2b48fe Merge pull request #2316 from owncloud/bump-commit-id-20210722
[full-ci][tests-only]bump core and web commit id
2021-07-23 12:07:37 +05:45
Swikriti Tripathi bc69390006 remove from expected to fail file 2021-07-23 10:52:55 +05:45
Swikriti Tripathi 499526d8b4 Bump core and web commit id 2021-07-23 10:52:20 +05:45
Jörn Friedrich Dreyer 5de190ba4f Merge pull request #2315 from owncloud/claims-map-instead-of-struct
use claims map instead of struct
2021-07-22 20:20:02 +02:00
Jörn Friedrich Dreyer 2293403d45 use errors.Is()
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-22 16:35:31 +00:00
Jörn Friedrich Dreyer 1f3e963c29 use claims map instead of struct
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-22 09:20:36 +00:00
David Christofas c234c89be2 Merge pull request #2251 from owncloud/motivate-repo-layout
[docs-only] Clarify why we keep separate go.mod files
2021-07-22 11:20:05 +02:00
Jörn Friedrich Dreyer b148faada6 Merge pull request #2294 from owncloud/fix-trashbin-expected-failures
Fix Trashbin Expected Failures
2021-07-21 20:59:43 +02:00
Jörn Friedrich Dreyer 2e41e28637 Automated changelog update [skip ci] 2021-07-21 18:58:31 +00:00
Jörn Friedrich Dreyer 188bb58547 Merge pull request #2314 from owncloud/update-reva-to-57d692feea7b
[full-ci] update REVA to v1.10.1-0.20210721075634-57d692feea7b
2021-07-21 20:57:46 +02:00
Jörn Friedrich Dreyer bb1ce39e23 update changelog
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-21 14:42:37 +00:00
Jörn Friedrich Dreyer 746ed8b414 remove fixed expected failures
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-21 11:12:28 +00:00
Jörn Friedrich Dreyer 5bf5fcf800 delete local test, rely on core tests+expected failures
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-21 11:12:28 +00:00
Jörn Friedrich Dreyer cdc2dd0ff3 update REVA to v1.10.1-0.20210721075634-57d692feea7b
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-21 11:12:28 +00:00
Jörn Friedrich Dreyer 90ca98d60f Automated changelog update [skip ci] 2021-07-21 11:01:16 +00:00
Jörn Friedrich Dreyer f322516862 Merge pull request #2277 from owncloud/spaces-api
graph refactorings
2021-07-21 12:59:11 +02:00
Jörn Friedrich Dreyer 900f8db799 add changelog
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-21 09:22:39 +00:00
Jörn Friedrich Dreyer 2a54b647f1 get rid of ldap and oidc, refactor error handling
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-21 08:56:04 +00:00
Jörn Friedrich Dreyer 5070941dc4 graph: refactor auth and middlewares
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-21 08:54:19 +00:00
Jörn Friedrich Dreyer 3ae2875fa9 add configurable path component option
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-20 15:30:26 +00:00
Jörn Friedrich Dreyer 71733fe677 Merge branch 'private-link-as-route' of github.com:owncloud/ocis into private-link-as-route 2021-07-20 13:34:26 +00:00
Jörn Friedrich Dreyer 8d78a64070 cleanup configuration.md
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-20 13:34:09 +00:00
Jörn Friedrich DreyerandAlex Unger c41d9122b4 Apply suggestions from code review
Co-authored-by: Alex Unger <6905948+refs@users.noreply.github.com>
2021-07-19 22:53:31 +02:00
Jörn Friedrich Dreyer 02d8d74466 correct id
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-19 15:51:59 +00:00
Phil Davis 1af75187c1 Merge pull request #2311 from owncloud/bump-commit-ids
[full-ci][tests-only] Bump commit ids for tests
2021-07-19 18:23:08 +05:45
Jörn Friedrich Dreyer c0f8b030e4 link open-graph-api issue for drive mount points
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-19 11:53:54 +00:00
A.Unger 74696dbd36 remove redundant line 2021-07-19 13:29:12 +02:00
Jörn Friedrich Dreyer 1bb4dcf782 fix ordering, update context
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-19 11:04:22 +00:00
saw-jan 1a65cd8d82 bump commit ids and update expected-failures 2021-07-19 16:41:17 +05:45
A.Unger ebb67470dc ignore error explicitly 2021-07-19 11:15:37 +02:00
A.Unger 7f8e5d0229 adjust expected failures for owncloud storage 2021-07-19 10:42:19 +02:00
A.Unger 6123512367 adjust expected failures 2021-07-19 10:15:26 +02:00
Jörn Friedrich Dreyer ffca30cc4e fix adr numbering, add alternatives to global url format
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-16 20:26:35 +00:00
A.Unger f1f9583cb5 update space_id grammar 2021-07-16 14:08:17 +00:00
A.Unger 0a486b2a88 fix docs/adr 2021-07-16 14:08:17 +00:00
A.Unger b1ab887004 expand positive consequences 2021-07-16 14:08:17 +00:00
A.Unger 68d7080fac remove open tag 2021-07-16 14:08:17 +00:00
A.Unger 83ba6ad5ba adapt to the ADR format 2021-07-16 14:08:17 +00:00
A.Unger 273ea197e8 change ADR scope to global URL instead of private links only 2021-07-16 14:08:17 +00:00
A.Unger 1a8e00b19e update ADR with manual get through webUI 2021-07-16 14:08:17 +00:00
A.Unger adc21d8f0b update ADR 2021-07-16 14:08:17 +00:00
A.Unger 41cabfcdcb add routes adr 2021-07-16 14:08:17 +00:00
Alex Unger 04e5cfa52b Automated changelog update [skip ci] 2021-07-15 11:44:21 +00:00
Alex Unger 6f37b386d5 Merge pull request #2301 from owncloud/proxy-access-log
proxy access log
2021-07-15 13:42:08 +02:00
Lukas Hirt 041176ca2a docs: add how to theme idp 2021-07-15 12:17:03 +02:00
Willy Kloucek 1191d02187 fix doc references 2021-07-15 12:11:36 +02:00
Willy Kloucek a3fb9a4b37 fix s3 example and minio console 2021-07-15 12:00:29 +02:00
Willy Kloucek c58f7094d2 remove idp from the keycloak example 2021-07-15 11:17:58 +02:00
Willy Kloucek e1a2e5c4b1 fix login with ldap example 2021-07-15 11:06:58 +02:00
Willy Kloucek 2bdb522a1d remove owncloud10_with_oc_web 2021-07-15 11:00:49 +02:00
Willy Kloucek bcefff9b8d simplify traefik configuration 2021-07-15 11:00:41 +02:00
Phil Davis afa9afd205 Merge pull request #2304 from owncloud/bump-commit-id-for-tests-20210715
[tests-only] [full-ci] Bump commit id for tests
2021-07-15 13:24:50 +05:45
Phil Davis 90f066b540 Remove passing chunking tests from expected-failures 2021-07-15 11:13:19 +05:45
Phil Davis 7a64f2bcdf Bump commit id for tests 2021-07-15 09:47:51 +05:45
Jörn Friedrich Dreyer 8c7f1f01ff do not try to add the selected policy to the context
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-14 20:45:38 +00:00
Phil Davis 8b271bccc6 Merge pull request #2298 from owncloud/dirkstascheit-patch-1
Update _index.md
2021-07-14 20:26:54 +05:45
Jörn Friedrich Dreyer 85693de589 make go-mod-tidy
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-14 13:40:02 +00:00
Jörn Friedrich Dreyer 1dc7aac6fd proxy access log
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-14 13:14:27 +00:00
David Christofas 31918dd44a Automated changelog update [skip ci] 2021-07-14 11:12:11 +00:00
David Christofas d6bb6f511e Merge pull request #2295 from ishank011/lw-changes
Scope and lw account changes and update reva to v1.10.0
2021-07-14 13:09:02 +02:00
Phil Davis 91f6242eac Merge pull request #2299 from owncloud/bumpCommitId20210714
[Tests-Only][full-ci] Update the core commit id
2021-07-14 16:21:39 +05:45
Jasmine Baral 96e6d58d38 update the commit id 2021-07-14 15:04:04 +05:45
Dirk Stascheit 4140116635 Update _index.md
updated the version numbers to reflect the oCIS 1.9 release
2021-07-14 10:16:31 +02:00
Florian Schade 33aae8d829 Automated changelog update [skip ci] 2021-07-13 17:11:44 +00:00
Florian Schade a5366585a5 Merge pull request #2296 from owncloud/release-1.9.0
Merge back Release 1.9.0
2021-07-13 19:11:11 +02:00
Michael Barz dc6d4d0569 Merge pull request #2297 from owncloud/allow-cern-team
Update settings.yml
2021-07-13 19:06:04 +02:00
Michael Barz 5f970448fc Update settings.yml 2021-07-13 16:38:54 +02:00
A.Unger e9e62d7fc6 Merge branch 'master' into fix-trashbin-expected-failures 2021-07-13 16:35:24 +02:00
A.Unger 7ab586b2ab proxy is now aware of webdav responses 2021-07-13 15:38:44 +02:00
Ishank Arora d9916b6eed Add changelog 2021-07-13 15:22:05 +02:00
Ishank Arora ccee07a384 Update reva to v1.10 2021-07-13 14:59:07 +02:00
Klaas Freitag 420c703156 Merge pull request #2292 from owncloud/relnotes_1.9.0
[docs-only] Add release notes for 1.9.0
2021-07-13 14:58:16 +02:00
A.Unger bfdcc0180c fix 230, 231 - first draft 2021-07-13 14:33:24 +02:00
A.Unger ac49348b41 fix 215, 216 - first draft 2021-07-13 14:29:26 +02:00
Klaas Freitag e45954c52a Add release notes for 1.9.0 2021-07-13 13:44:48 +02:00
Ishank Arora 29c5cb627a Update scope usage and add Changes for lightweight accounts 2021-07-13 13:03:06 +02:00
Florian Schade 6c6a53a4de prepare changelog 2021-07-13 09:07:34 +02:00
Willy Kloucek 7b1130f34b Automated changelog update [skip ci] 2021-07-13 07:04:22 +00:00
Willy Kloucek cf6f71da89 Merge pull request #2280 from owncloud/update-reva-1.9.1
[full-ci] update reva to v1.9.1
2021-07-13 09:03:31 +02:00
Willy Kloucek 2433cabae4 fix pr refs 2021-07-13 07:34:27 +02:00
Michael Barz 92d60126a0 adapt expected failures 2021-07-13 08:47:55 +05:45
Michael Barz 10a03f8c98 update reva to v1.9.1 2021-07-13 08:33:35 +05:45
Phil Davis ddd261fba7 Automated changelog update [skip ci] 2021-07-13 02:41:15 +00:00
Phil Davis 2ac28854f8 Merge pull request #2289 from owncloud/update-web-3.4.1
[full-ci] update web to v3.4.1
2021-07-13 08:25:37 +05:45
Florian Schade faeec92a09 update web to v3.4.1 2021-07-12 19:57:59 +02:00
Phil Davis bf40bc0590 Merge pull request #2287 from owncloud/update-web-id-20210712
[tests-only] [full-ci] Update web id 20210712
2021-07-12 20:29:05 +05:45
Phil Davis 89af2f010c Update web commit id to include test code fix in web PR 5511 2021-07-12 19:09:55 +05:45
Parajuli Kiran 3897adfaa7 Updated web ocis expected failures 2021-07-12 18:01:52 +05:45
Parajuli Kiran b031b40143 Updated web commit id to the latest upto 20210712 2021-07-12 18:01:52 +05:45
Phil Davis 46fbf66bd0 Merge pull request #2286 from owncloud/update-core-commitid
[Tests-Only] Link issues in expected failure file
2021-07-12 16:41:19 +05:45
Dipak Acharya 78e668c187 [Tests-Only] Link issues in expected failure file 2021-07-12 15:49:54 +05:45
Phil Davis a85905a541 Merge pull request #2281 from owncloud/bump-commit-ids
[tests-only] [full-ci] Bump commit ids for tests
2021-07-12 14:13:11 +05:45
Phil Davis 4e7a4f2bfc Merge pull request #2284 from owncloud/doc_full_ci
[docs-only] document full ci flag
2021-07-12 13:43:44 +05:45
Willy Kloucek 63494c29e1 [docs-only] document full ci flag 2021-07-12 09:28:50 +02:00
saw-jan 9eba1b0e26 bump commit ids and update expected-failures 2021-07-12 13:02:35 +05:45
Phil Davis 39d5e66c91 Merge pull request #2278 from owncloud/bump-commit-ids-20210710
[tests-only] [full-ci] Bump commit ids for tests
2021-07-12 12:50:31 +05:45
Phil Davis c12d4381d5 Merge pull request #2283 from owncloud/update-testing-doc
[docs-only] update testing docs to include STORAGE_DRIVER env var
2021-07-12 12:37:09 +05:45
Phil Davis ccf456aa9a Minor English grammar 2021-07-12 12:33:35 +05:45
Michael Barz 93a317bb54 Automated changelog update [skip ci] 2021-07-12 06:43:44 +00:00
Michael Barz 98563bb8f5 Merge pull request #2230 from owncloud/read-only
[full-ci] read-only storagehome and storageusers
2021-07-12 08:43:10 +02:00
Dipak Acharya bfb0a98778 [docs-only] update testing docs to include STORAGE_DRIVER env var 2021-07-12 12:27:50 +05:45
Dipak Acharya cd30d2d574 Update expected failure files for newly added tests 2021-07-12 11:36:32 +05:45
Phil Davis 115ce78ad9 Bump commit ids for tests 2021-07-10 13:26:16 +05:45
Benedikt Kulmann d59e828895 Automated changelog update [skip ci] 2021-07-10 07:29:10 +00:00
Benedikt Kulmann 534190606e Merge pull request #2276 from owncloud/update-web-3.4.0 2021-07-10 09:25:30 +02:00
Benedikt Kulmann 96738d2f1e Update expected failures 2021-07-09 23:41:16 +02:00
Michael Barz de5aefbe91 read-only storagehome and storageusers 2021-07-09 23:01:20 +02:00
Benedikt Kulmann 5b8e883d4a Update web to 3.4.0 2021-07-09 13:07:32 +02:00
Klaas Freitag caaf7e6088 Merge pull request #2275 from owncloud/doc-howtocontribute2
[docs-only] Add the Contribution Guidelines plus linking to it.
2021-07-09 10:46:58 +02:00
Klaas Freitag 6611f22312 Applied feedback from Phil for better English. 2021-07-09 10:31:27 +02:00
Klaas FreitagandPascal Wengerter 441c19f34d Change oC Talk link to ocis rather than infinitescale.
Co-authored-by: Pascal Wengerter <pwengerter@owncloud.com>
2021-07-09 09:23:03 +02:00
Benedikt Kulmann b0fe255a5d Update web to 3.4.0-rc1 2021-07-09 00:18:29 +02:00
Jörn Friedrich Dreyer 2119d12cbc Merge pull request #2007 from owncloud/spaces-api
initial /me/drives implementation
2021-07-08 23:56:17 +02:00
Jörn Friedrich Dreyer 7a25f2ac5e cleanup
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-08 20:05:50 +00:00
Klaas Freitag a75c3b7777 Add the Contribution Guidelines plus linking to it.
Also fix the copyright year in readme while being over it.
2021-07-08 14:59:24 +02:00
Jörn Friedrich Dreyer 9376e2ef5e no need to filter, remove unnecessary openapi package
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-08 12:28:43 +00:00
Jörn Friedrich Dreyer d7031c93fe fix sonarcloud issues
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-08 10:59:42 +00:00
Jörn Friedrich Dreyer c1bfbd9c24 update deps
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-08 11:42:29 +02:00
Lukas Hirt a38af180fa Merge pull request #2273 from owncloud/LukasHirt-patch-1
Remove LukasHirt from only office codeowners
2021-07-08 10:58:23 +02:00
Lukas HirtandPascal Wengerter 014538a0b4 Update .github/CODEOWNERS
Co-authored-by: Pascal Wengerter <pwengerter@owncloud.com>
2021-07-08 10:12:48 +02:00
Jörn Friedrich Dreyer 034eb417f2 openapi fixes
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-08 10:06:42 +02:00
Klaas Freitag 5b04bc853b Fix typo looging -> logging. 2021-07-08 10:06:42 +02:00
Jörn Friedrich Dreyer 53a06bd2da add regex to match all spaces prefixed with user provider id
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-08 10:06:42 +02:00
Jörn Friedrich Dreyer c2780440f7 use open-graph-api and add openapi tooling
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-08 10:06:42 +02:00
Jörn Friedrich Dreyer ada2b96e4b clean up example urls
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-08 10:04:01 +02:00
Jörn Friedrich Dreyer 2d51ea3cee add specs n docs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-08 10:04:01 +02:00
Jörn Friedrich Dreyer 449edd31c8 initial /me/drives implementation
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-08 10:04:01 +02:00
Lukas Hirt 742b231818 Remove LukasHirt from only office codeowners 2021-07-08 09:41:49 +02:00
Artur Neumann 322cb454c4 Merge pull request #2268 from owncloud/bump20210706
[Tests-Only][full-ci] Run latest core changes in ocis
2021-07-08 09:28:43 +02:00
Alex Unger 53fabd9ffd Automated changelog update [skip ci] 2021-07-07 15:30:15 +00:00
Alex Unger 5114ba259f Merge pull request #2271 from owncloud/spare-port-80 2021-07-07 17:29:47 +02:00
A.Unger 1c060606fe add changelog 2021-07-07 16:43:55 +02:00
A.Unger bd68d1ef72 use correct debug address 2021-07-07 16:41:46 +02:00
Jasmine Baral ba924cb412 run latest core changes in ocis 2021-07-07 16:53:28 +05:45
Jörn Friedrich Dreyer 456e7c9300 Automated changelog update [skip ci] 2021-07-07 08:36:27 +00:00
Jörn Friedrich Dreyer cd4b391cb9 Merge pull request #1705 from owncloud/no-additional-init
ocis already does the cli flag parsing
2021-07-07 10:36:04 +02:00
Jörn Friedrich Dreyer 54e1796717 Merge pull request #2168 from owncloud/extensions-template-adr
[docs-only] draft an adr for extension templates
2021-07-07 10:27:23 +02:00
Phil Davis 5d39a84a49 Merge pull request #2270 from owncloud/always-run-minimal-web-ui-tests-pipeline
[full-ci] [tests-only] Always run minimal web UI test pipeline
2021-07-07 13:20:53 +05:45
Phil Davis d77c83bdbe Always run minimal web UI test pipeline 2021-07-07 11:59:43 +05:45
Phil Davis 7baf67be8f Merge pull request #2262 from owncloud/downloadVersionsTests
[full-ci] bump core commit id to run new versions tests
2021-07-06 19:26:44 +05:45
Artur Neumann 7040f14884 fix expected to fail list 2021-07-06 14:41:32 +02:00
Artur Neumann d940dcc751 bump core commit id to run new versions tests 2021-07-06 14:41:28 +02:00
Phil Davis 8801bd7eff Merge pull request #2264 from owncloud/remove-closed-sharing-issues
[full-ci] [tests-only] Remove closed sharing issues
2021-07-06 18:10:31 +05:45
Parajuli Kiran 2b6960171c updated web expected failures removing some closed sharing issues 2021-07-06 15:58:30 +05:45
Phil Davis 1c05cf7e64 Merge pull request #2265 from owncloud/fullCI
[Tests-Only][full-ci] Fix full-ci issue
2021-07-06 12:35:03 +05:45
Jasmine Baral a05105d934 adjust expected failures 2021-07-06 11:36:42 +05:45
Jasmine Baral f419054936 fix full-ci issue in ocis 2021-07-06 10:13:38 +05:45
Jörn Friedrich Dreyer 90f7b170a9 Merge pull request #2061 from aduffeck/owncloudsql-integration
Integrate the owncloudsql storage driver
2021-07-05 15:50:46 +02:00
André Duffeck f7fdda3ee1 Fix Sql->SQL 2021-07-05 15:01:43 +02:00
André Duffeck 0392dfd18c Incorporate review suggestions 2021-07-05 15:01:43 +02:00
André Duffeck 84e82b2686 Integrate the owncloudsql storage driver 2021-07-05 15:01:43 +02:00
Alex Unger 7eb86e9b07 Automated changelog update [skip ci] 2021-07-05 10:44:55 +00:00
Alex Unger 5ae2cdbad0 Merge pull request #2252 from owncloud/channels-race-condition 2021-07-05 12:44:27 +02:00
A.Unger e30f3a377b add changelog 2021-07-02 16:08:32 +02:00
A.Unger 72630c3291 prevent race condition on starting an already running service 2021-07-02 16:05:04 +02:00
Jörn Friedrich Dreyer e104622a8a Clarify why we keep separate go.mod files
Actually, I don't know if this still holds true. AFAICT we will be releasing an ocis binary that bundles all extensions. So ... will they really be released individually? For bug fix releases a release process for them would be quicker, but then we would also need to build individual docker containers ...
2021-07-02 15:22:56 +02:00
A.Unger 25ca76ebd4 add changelog 2021-07-02 13:33:04 +02:00
A.Unger cb2323e9d6 Merge branch 'master' into no-additional-init 2021-07-02 13:25:30 +02:00
Alex Unger b3bae592d0 Merge pull request #2235 from owncloud/policy-adr 2021-07-02 13:22:03 +02:00
A.Unger 98b0b9c49a Merge branch 'master' into policy-adr 2021-07-02 11:46:26 +02:00
Phil Davis 296b41d4d2 Merge pull request #2234 from owncloud/skip-async-tests
[Tests-Only] update core commitid for tests
2021-07-02 13:47:02 +05:45
Dipak Acharya 1cc028694e Merge pull request #2106 from owncloud/earlyFail
[Tests-Only]Add earlyFail
2021-07-02 12:21:33 +05:45
Phil Davis ad02b40c3c Override earlyFail if PR title contains full-ci 2021-07-02 11:42:48 +05:45
Dipak Acharya 3ffd0a13ef [Tests-Only] update core commitid in CI 2021-07-02 11:16:32 +05:45
Pascal Wengerter 8343c192f2 Merge pull request #2086 from owncloud/dependabot/npm_and_yarn/idp/classnames-2.3.1
Bump classnames from 2.2.6 to 2.3.1 in /idp
2021-07-01 17:17:18 +01:00
Pascal Wengerter e2bf20817c Merge pull request #2244 from owncloud/dependabot/npm_and_yarn/accounts/rollup-2.52.6
Bump rollup from 2.42.4 to 2.52.6 in /accounts
2021-07-01 17:15:32 +01:00
Pascal Wengerter ca07c287c8 Merge pull request #1859 from owncloud/dependabot/npm_and_yarn/onlyoffice/url-search-params-polyfill-8.1.1
Bump url-search-params-polyfill from 8.1.0 to 8.1.1 in /onlyoffice
2021-07-01 17:13:59 +01:00
Pascal Wengerter ddb6a15544 Merge pull request #1860 from owncloud/dependabot/npm_and_yarn/settings/url-search-params-polyfill-8.1.1
Bump url-search-params-polyfill from 8.1.0 to 8.1.1 in /settings
2021-07-01 17:13:26 +01:00
A.Unger 8d1847b9d3 Merge branch 'master' into policy-adr 2021-07-01 17:50:41 +02:00
dependabot[bot] b56cdc17c3 Bump rollup from 2.42.4 to 2.52.6 in /accounts
Bumps [rollup](https://github.com/rollup/rollup) from 2.42.4 to 2.52.6.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.42.4...v2.52.6)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 15:18:02 +00:00
dependabot[bot] 25742be970 Bump url-search-params-polyfill from 8.1.0 to 8.1.1 in /settings
Bumps [url-search-params-polyfill](https://github.com/jerrybendy/url-search-params-polyfill) from 8.1.0 to 8.1.1.
- [Release notes](https://github.com/jerrybendy/url-search-params-polyfill/releases)
- [Commits](https://github.com/jerrybendy/url-search-params-polyfill/compare/v8.1.0...v8.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 15:16:20 +00:00
dependabot[bot] ae790df695 Bump url-search-params-polyfill from 8.1.0 to 8.1.1 in /onlyoffice
Bumps [url-search-params-polyfill](https://github.com/jerrybendy/url-search-params-polyfill) from 8.1.0 to 8.1.1.
- [Release notes](https://github.com/jerrybendy/url-search-params-polyfill/releases)
- [Commits](https://github.com/jerrybendy/url-search-params-polyfill/compare/v8.1.0...v8.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 15:15:43 +00:00
Alex Unger 53b80920ea Merge pull request #1980 from owncloud/fix-security-alerts 2021-07-01 17:13:23 +02:00
Michael Barz 6dc4e5c43e Merge pull request #2239 from owncloud/update_flaex
fix default values in configuration documentation
2021-07-01 17:12:18 +02:00
Jasmine Baral 3b694547b7 Add earlyFail 2021-07-01 20:53:26 +05:45
Michael Barz debbec1d67 Merge pull request #2006 from owncloud/config-adr
[docs-only] Configuration ADR
2021-07-01 17:07:50 +02:00
A.Unger 2bda4f57fa Merge branch 'master' into config-adr 2021-07-01 17:02:38 +02:00
A.Unger 5512c5f1e1 update headers 2021-07-01 17:02:32 +02:00
Alex Unger 81b35dfe17 Merge branch 'master' into fix-security-alerts 2021-07-01 16:25:36 +02:00
Alex Unger c08c6c09a0 Automated changelog update [skip ci] 2021-07-01 14:17:29 +00:00
Alex Unger 07ecdd608f Merge pull request #2229 from owncloud/runtime-cherrypick 2021-07-01 16:13:22 +02:00
Jasmine Baral 1103af674a Merge pull request #2233 from owncloud/adjustRemainingIssues
[Tests-Only] Adjust expected failures for remaining closed issues
2021-07-01 19:50:03 +05:45
Willy Kloucek 63dc64971f update fleax in order to get https://github.com/owncloud/flaex/pull/10 2021-07-01 16:00:40 +02:00
A.Unger 9e81558fc9 add changelog 2021-07-01 15:26:38 +02:00
A.Unger 02200127fb Merge branch 'master' into runtime-cherrypick 2021-07-01 15:12:22 +02:00
A.Unger 4ce54edc1a use replaceall 2021-07-01 15:11:34 +02:00
Jasmine Baral e2e6a2f489 adjust issues for the remaining closed issues 2021-07-01 16:41:15 +05:45
Phil Davis 2300ab0033 Merge pull request #2238 from owncloud/update-commitid-2021-07-01
[Tests-Only] bump the web commit id for ci tests with expected failure files
2021-07-01 13:36:49 +05:45
Dipak Acharya f1b733f033 [Tests-Only] bump the web commit id for ci tests with expected failure files 2021-07-01 12:40:40 +05:45
A.Unger 48ab84a7f5 use pr link 2021-06-30 16:18:30 +02:00
A.Unger db5900b85a review comments 2021-06-30 15:16:50 +02:00
Jörn Friedrich Dreyer 8a2dcc22b6 fix env vars
pls double check if I got all!
2021-06-30 15:07:09 +02:00
A.Unger e68e48293f policies draft 1 2021-06-30 14:38:16 +02:00
A.Unger ed9359ddd4 provide name to anonymous type 2021-06-30 10:37:47 +02:00
A.Unger 4994d0b132 correct flagset usage 2021-06-30 10:34:44 +02:00
A.Unger 72f6a3613a fix storage subcommands 2021-06-29 15:43:59 +02:00
A.Unger 2e28582c1b cherrypick extensions to start v1 2021-06-29 15:28:19 +02:00
Phil Davis f02f2a3d42 Merge pull request #2228 from owncloud/bump-commit-ids
[full-ci][tests-only] Bump web commit id for tests
2021-06-29 16:43:53 +05:45
Willy Kloucek 7c5a6ee047 Merge pull request #2180 from owncloud/add_hello_and_s3_deployment_example
add hello and s3 deplyoment example
2021-06-29 12:42:22 +02:00
David Christofas 34a207afd5 Merge pull request #2224 from owncloud/dependabot/go_modules/ocis/github.com/spf13/viper-1.8.1
Bump github.com/spf13/viper from 1.8.0 to 1.8.1 in /ocis
2021-06-29 12:38:38 +02:00
saw-jan 3af81700d0 update expected-failures file 2021-06-29 15:06:01 +05:45
saw-jan e1b30284a8 bump web commit id for tests (2021-06-29) 2021-06-29 14:05:28 +05:45
dependabot[bot] cb996434cc Bump github.com/spf13/viper from 1.8.0 to 1.8.1 in /ocis
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-29 07:27:46 +00:00
Phil Davis 458de9f554 Automated changelog update [skip ci] 2021-06-29 07:13:57 +00:00
Phil Davis c5f34a0726 Merge pull request #2227 from owncloud/update_reva_20210629
update reva to v1.9.1-0.20210628143859-9d29c36c0c3f
2021-06-29 12:58:34 +05:45
Michael Barz 23730f3e4a Automated changelog update [skip ci] 2021-06-29 07:12:06 +00:00
Michael Barz ed4fef9c0e Merge pull request #2226 from owncloud/release-1.8.0
Merge back after Release
2021-06-29 09:11:29 +02:00
Phil Davis 5e7967c62c Remove passing trashbinRestore tests from expected-failures 2021-06-29 12:14:52 +05:45
Willy Kloucek 3dfced91e0 update reva to v1.9.1-0.20210628143859-9d29c36c0c3f 2021-06-29 08:19:17 +02:00
Phil Davis 0f2cb27c4a Merge pull request #2211 from owncloud/update-expected-failures-after-#38876
[full-ci] [tests-only] Update expected failures after core #38876
2021-06-29 10:48:22 +05:45
Parajuli Kiran f36cf67bc4 Update core commit id to the latest 2021/06/29
And replace closed issues with current issues
2021-06-29 08:51:21 +05:45
Michael Barz 95a9405449 Merge pull request #2103 from owncloud/flesh-out-migration-docs
[docs-only] flesh out migration docs
2021-06-28 15:49:43 +02:00
Michael Barz 51b87e181d Merge pull request #2220 from owncloud/1.8.0_release_notes
[docs-only] 1.8.0 Release Notes
2021-06-28 15:16:45 +02:00
Patrick Maier 4794f52c72 Point to release tags instead of changelog.md 2021-06-28 09:29:59 +02:00
Michael Barz 6a8b1db9f3 bump version, prepare changelog 2021-06-28 09:15:41 +02:00
Patrick Maier 063fd64483 Point to the specific version changelogs 2021-06-28 09:14:44 +02:00
Michael Barz f18365ddee [tx] updated from transifex 2021-06-28 00:07:09 +00:00
Patrick Maier 96a548619a [docs-only] 1.8.0 Release Notes 2021-06-25 18:16:10 +02:00
Michael Barz dab2d56089 Automated changelog update [skip ci] 2021-06-25 09:40:21 +00:00
Michael Barz 3f29f50e45 Merge pull request #2199 from ishank011/webdav-ns-config
Make webdav namespace configurable across services
2021-06-25 11:39:36 +02:00
Phil Davis ab48dd66c5 Merge pull request #2216 from owncloud/fix-settings-ui-tests
[Tests-Only] do not restore settings value in ui tests
2021-06-25 14:31:53 +05:45
Michael Barz 34e0877df7 Merge pull request #1951 from ishank011/uid-gid-user-object
Use CS3 user object fields to store UID and GID
2021-06-25 10:06:14 +02:00
Ishank Arora 89f8320c74 Make webdav namespace configurable across services 2021-06-25 10:05:20 +02:00
Dipak Acharya 8403ae9933 [Tests-Only] do not restore settings value in ui tests 2021-06-25 13:43:36 +05:45
Jörn Friedrich Dreyer 4675c1442d Merge pull request #2200 from owncloud/add-create-scripts
[docs-only] add create scripts
2021-06-24 13:53:24 +02:00
Willy Kloucek 823f2cb41f Merge pull request #2186 from owncloud/fix_configuration_docs
[docs-only] fix configuration docs
2021-06-24 12:50:13 +02:00
David Christofas 6859217a17 Merge pull request #2196 from owncloud/dependabot/go_modules/ocis/github.com/spf13/viper-1.8.0
Bump github.com/spf13/viper from 1.7.1 to 1.8.0 in /ocis
2021-06-24 09:29:26 +02:00
Phil Davis 038c36467b Automated changelog update [skip ci] 2021-06-24 01:51:16 +00:00
Phil Davis e3ab89c698 Merge pull request #2210 from owncloud/update-reva-v1.9
[full-ci] update reva to v1.9
2021-06-24 07:35:32 +05:45
David Christofas 538e7b576a update reva to v1.9 2021-06-23 20:18:24 +02:00
Phil Davis 3c92932835 Merge pull request #2206 from owncloud/bump-commit-ids
[full-ci] [tests-only] Bump core and web commit id
2021-06-23 23:21:48 +05:45
Willy Kloucek 2755f04938 add hello and s3 deplyoment example 2021-06-23 19:33:10 +02:00
saw-jan 28a6e7beb1 bump core and web commit id for tests (2021-06-23) 2021-06-23 22:07:29 +05:45
Benedikt Kulmann 88587af369 Automated changelog update [skip ci] 2021-06-23 14:53:27 +00:00
Benedikt Kulmann 216be05ffa Merge pull request #2187 from owncloud/update-web-v3.3.0
[full-ci] Update web to v3.3.0
2021-06-23 16:52:52 +02:00
dependabot[bot] 3b50ee6e1f Bump github.com/spf13/viper from 1.7.1 to 1.8.0 in /ocis
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.7.1...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-23 13:49:11 +00:00
Alex Unger d3a7c3fc2b Automated changelog update [skip ci] 2021-06-23 12:44:42 +00:00
Alex Unger 5b55b83084 Merge pull request #2205 from owncloud/update_reva_20210623
update reva to v1.8.1-0.20210622125952-b54b15943d02
2021-06-23 14:44:07 +02:00
Pascal Wengerter 8650a3c9fd Update to web v3.3.0 2021-06-23 13:31:23 +01:00
Florian Schade 359e1f8dfe fix tests for getUserMenu context (check for presence instead of visibility) 2021-06-23 14:00:04 +02:00
Benedikt Kulmann a01d379908 Revert mktemp params 2021-06-23 12:06:13 +02:00
Benedikt Kulmann 7bd0626d50 Exchange mktemp command to be compatible with linux and macos 2021-06-23 11:38:40 +02:00
Willy Kloucek 02621ac59b update reva to v1.8.1-0.20210622125952-b54b15943d02 2021-06-23 11:19:26 +02:00
Willy Kloucek 5a6b16abd4 Merge pull request #2161 from owncloud/wopi_server_fix_jwt_secrets
fix jwt secrets for wopiserver example
2021-06-23 10:44:19 +02:00
Jan Ackermann dc932c6904 [tx] updated from transifex 2021-06-23 00:09:12 +00:00
Pascal Wengerter 6cf359800b Update to web v3.3.0-rc5 & bump web commit ID 2021-06-22 18:16:40 +01:00
Benedikt Kulmann c294d49a8a Ignore expected failures files for codacy 2021-06-22 15:03:15 +02:00
Benedikt Kulmann af184d84fd Update expected failures file for webui tests 2021-06-22 14:55:42 +02:00
Pascal Wengerter f888b93b64 Merge pull request #2203 from owncloud/22062021_update-talk-links
[docs-only] Reflect channel renaming in talk.owncloud.com in links
2021-06-22 13:45:00 +01:00
Pascal Wengerter fdbf1a76e9 Reflect channel renaming in talk.owncloud.com in links 2021-06-22 13:22:10 +01:00
Benedikt Kulmann acdec60cbd Remove unused test selector 2021-06-22 13:55:53 +02:00
Benedikt Kulmann e079a0f9ac Update web commitid in .drone.env 2021-06-22 13:55:48 +02:00
Benedikt Kulmann 5859bc1e52 Update ODS in settings and accounts UIs 2021-06-22 13:55:30 +02:00
Benedikt Kulmann 8323300122 Update web to v3.3.0-rc4 2021-06-22 13:55:19 +02:00
Jörn Friedrich Dreyer c768791b2d add create scripts
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-06-22 10:00:34 +00:00
Jörn Friedrich Dreyer 6f79c13eb5 update share manager migration
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-06-21 20:01:37 +00:00
Phil Davis 6d3472f383 Merge pull request #2198 from owncloud/bump-commit-id-20210621
[tests-only] Bump core commit id
2021-06-21 20:02:46 +05:45
Phil Davis f49e4af4cd Bump core commit id 2021-06-21 19:11:37 +05:45
Willy Kloucek 3e815601dd Merge pull request #2182 from owncloud/extension_development
[docs-only] extension development
2021-06-21 10:30:40 +02:00
Willy Kloucek a3007e515a remove references to future 2021-06-21 09:39:14 +02:00
Willy KloucekandPascal Wengerter a8a6bb6230 Apply suggestions from code review
Co-authored-by: Pascal Wengerter <pwengerter@owncloud.com>
2021-06-21 09:37:57 +02:00
Jasmine Baral 64136bc73c Merge pull request #2191 from owncloud/removeDoubleTests
[Tests-Only]Remove tests that have been added twice
2021-06-18 15:11:20 +05:45
Jasmine Baral 8fa8d81501 remove tests that have been added twice 2021-06-18 13:57:06 +05:45
Jasmine Baral 26ab81d7af Merge pull request #2165 from owncloud/updateExpectedFailures-part2
[Tests-Only]Adjust expected failures file by adjusting the issues
2021-06-18 08:58:19 +05:45
Jasmine Baral cc1f41b332 adjust expected failures file by adjusting the issues 2021-06-17 17:52:04 +05:45
Willy Kloucek b23570b80f fix secrets use 2021-06-17 13:15:41 +02:00
Willy Kloucek 78bbd7e4ce remove development roadmap 2021-06-17 08:36:17 +02:00
Willy Kloucek 28525447dc point bingo to master 2021-06-17 08:29:45 +02:00
Michael Barz 521a60c427 Automated changelog update [skip ci] 2021-06-16 19:20:38 +00:00
Michael Barz 189d1485a9 Merge pull request #2188 from owncloud/ignore_auth_on_status_php
ignore authentication header on status.php
2021-06-16 21:15:42 +02:00
Willy Kloucek 93b60b1770 add changelog 2021-06-16 18:33:05 +02:00
Ishank Arora 6168ee7095 Use CS3 user object fields to store UID and GID 2021-06-16 18:05:40 +02:00
Willy Kloucek ed94da5104 ignore authentication header on status.php 2021-06-16 16:59:11 +02:00
Willy Kloucek 5d229a679b fix configuration docs 2021-06-16 15:59:24 +02:00
Phil Davis 36971ea28b Merge pull request #2158 from owncloud/update-exp-failure-file-dpakach
[Tests-Only] remove outdated issues from expected failures file
2021-06-16 17:16:43 +05:45
Willy Kloucek 5a1d52b1ea unify filesystem 2021-06-16 10:10:14 +02:00
Willy Kloucek fe2ffe1ce4 be more explainatory about metadata storage 2021-06-16 09:42:28 +02:00
Dipak Acharya 63ce4ab71d Fix suite names of new test suite in expected failure file 2021-06-16 13:27:24 +05:45
Willy KloucekandPascal Wengerter 27d55882d1 Apply suggestions from code review
Co-authored-by: Pascal Wengerter <pwengerter@owncloud.com>
2021-06-16 08:54:26 +02:00
Willy KloucekandPascal Wengerter 2e77412941 Apply suggestions from code review
Co-authored-by: Pascal Wengerter <pwengerter@owncloud.com>
2021-06-16 08:53:23 +02:00
Dipak Acharya c03428eac8 [Tests-Only] update expected failure file with new issues 2021-06-16 11:21:07 +05:45
Pascal Wengerter bbc01b3763 Merge pull request #2108 from mrkara/fix-wopiserver-deploy-docs
[docs-only] Fix broken url and path on ocis_wopi.md
2021-06-15 17:10:46 +01:00
Willy Kloucek 757caa4287 add links 2021-06-15 16:25:41 +02:00
Willy Kloucek 15080fc5e6 wip: extension development 2021-06-15 12:20:22 +02:00
Willy Kloucek ba438022f0 add argument: integration testing 2021-06-15 08:55:20 +02:00
Michael Barz 2a07339f7b Merge pull request #2028 from owncloud/add-open-graph-docs
[docs-only] Update 0007-api-for-spaces.md
2021-06-14 20:09:53 +02:00
David Christofas e18b05c3f0 Merge pull request #2172 from owncloud/dependabot/go_modules/ocis/github.com/rs/zerolog-1.23.0
Bump github.com/rs/zerolog from 1.22.0 to 1.23.0 in /ocis
2021-06-14 12:44:45 +02:00
Phil Davis 06570ae469 Merge pull request #2159 from owncloud/fixexpectedFailures
[Tests-Only]Adjust expected failures file
2021-06-14 14:48:27 +05:45
Jasmine Baral b9f7d20539 Adjust expected failures file 2021-06-14 14:01:21 +05:45
dependabot[bot] 94cfb4805d Bump github.com/rs/zerolog from 1.22.0 to 1.23.0 in /ocis
Bumps [github.com/rs/zerolog](https://github.com/rs/zerolog) from 1.22.0 to 1.23.0.
- [Release notes](https://github.com/rs/zerolog/releases)
- [Commits](https://github.com/rs/zerolog/compare/v1.22.0...v1.23.0)

---
updated-dependencies:
- dependency-name: github.com/rs/zerolog
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-14 06:33:12 +00:00
Pascal Wengerter 8e64bf5570 Merge pull request #2033 from owncloud/dependabot/npm_and_yarn/accounts/easygettext-2.17.0
Bump easygettext from 2.16.1 to 2.17.0 in /accounts
2021-06-11 13:52:11 +01:00
dependabot[bot] ba44ad921c Bump easygettext from 2.16.1 to 2.17.0 in /accounts
Bumps [easygettext](https://github.com/polyconseil/easygettext) from 2.16.1 to 2.17.0.
- [Release notes](https://github.com/polyconseil/easygettext/releases)
- [Changelog](https://github.com/Polyconseil/easygettext/blob/master/CHANGELOG.md)
- [Commits](https://github.com/polyconseil/easygettext/compare/v2.16.1...v2.17.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-11 12:13:30 +00:00
David Christofas a218627df2 draft an adr for extension templates 2021-06-11 12:44:31 +02:00
Phil Davis 82081817f6 Merge pull request #2137 from owncloud/adjustClosedIssuesInExpectedFailures-owncloudStorage
[Tests-Only]Replace closed issues with correct issues in expected failures file
2021-06-11 11:49:58 +05:45
Pascal Wengerter 2b570c44e3 Merge pull request #2085 from owncloud/dependabot/npm_and_yarn/settings/browserslist-4.16.6
Bump browserslist from 4.16.3 to 4.16.6 in /settings
2021-06-10 21:03:58 +01:00
Pascal Wengerter 224f73c58c Merge pull request #2084 from owncloud/dependabot/npm_and_yarn/onlyoffice/browserslist-4.16.6
Bump browserslist from 4.16.3 to 4.16.6 in /onlyoffice
2021-06-10 21:03:33 +01:00
Pascal Wengerter 025e7484c9 Merge pull request #2162 from owncloud/dependabot/npm_and_yarn/idp/react-redux-7.2.4
Bump react-redux from 7.2.2 to 7.2.4 in /idp
2021-06-10 21:02:17 +01:00
dependabot[bot] 136811f877 Bump react-redux from 7.2.2 to 7.2.4 in /idp
Bumps [react-redux](https://github.com/reduxjs/react-redux) from 7.2.2 to 7.2.4.
- [Release notes](https://github.com/reduxjs/react-redux/releases)
- [Changelog](https://github.com/reduxjs/react-redux/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reduxjs/react-redux/compare/v7.2.2...v7.2.4)

---
updated-dependencies:
- dependency-name: react-redux
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-10 18:13:30 +00:00
dependabot[bot] 9a411f8995 Bump classnames from 2.2.6 to 2.3.1 in /idp
Bumps [classnames](https://github.com/JedWatson/classnames) from 2.2.6 to 2.3.1.
- [Release notes](https://github.com/JedWatson/classnames/releases)
- [Changelog](https://github.com/JedWatson/classnames/blob/master/HISTORY.md)
- [Commits](https://github.com/JedWatson/classnames/compare/v2.2.6...v2.3.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-10 18:12:09 +00:00
Pascal Wengerter 8c26e58ddd Merge pull request #2087 from owncloud/dependabot/npm_and_yarn/idp/css-loader-5.2.6
Bump css-loader from 5.2.5 to 5.2.6 in /idp
2021-06-10 19:07:23 +01:00
dependabot[bot] 9d8099347c Bump browserslist from 4.16.3 to 4.16.6 in /onlyoffice
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.3...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-10 18:05:28 +00:00
dependabot[bot] 1496462329 Bump browserslist from 4.16.3 to 4.16.6 in /settings
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.3...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-10 18:05:11 +00:00
Pascal Wengerter 4a7e31040d Merge pull request #2155 from owncloud/dependabot/npm_and_yarn/onlyoffice/hosted-git-info-2.8.9
Bump hosted-git-info from 2.8.8 to 2.8.9 in /onlyoffice
2021-06-10 19:04:52 +01:00
Pascal Wengerter 34dff1c325 Merge pull request #2154 from owncloud/dependabot/npm_and_yarn/settings/hosted-git-info-2.8.9
Bump hosted-git-info from 2.8.8 to 2.8.9 in /settings
2021-06-10 19:04:35 +01:00
Pascal Wengerter c5d362bc3e Merge pull request #2153 from owncloud/dependabot/npm_and_yarn/accounts/hosted-git-info-2.8.9
Bump hosted-git-info from 2.8.8 to 2.8.9 in /accounts
2021-06-10 19:04:13 +01:00
Pascal Wengerter 244e53f91b Merge pull request #2083 from owncloud/dependabot/npm_and_yarn/accounts/browserslist-4.16.6
Bump browserslist from 4.16.3 to 4.16.6 in /accounts
2021-06-10 19:03:19 +01:00
Willy Kloucek 86adc2bd0b fix jwt secrets for wopiserver example 2021-06-10 16:25:31 +02:00
David Christofas 8e11efaa98 Automated changelog update [skip ci] 2021-06-10 11:52:15 +00:00
David Christofas 7062b432c5 Merge pull request #2118 from owncloud/graph-explorer-client-registration
properly configure the graph-explorer openid connect client
2021-06-10 13:51:44 +02:00
David Christofas 68079b7a4b properly configure the graph-explorer openid connect client 2021-06-10 13:11:47 +02:00
dependabot[bot] 54a2981a3f Bump hosted-git-info from 2.8.8 to 2.8.9 in /onlyoffice
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

---
updated-dependencies:
- dependency-name: hosted-git-info
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-09 21:35:07 +00:00
dependabot[bot] 93205dd9b0 Bump hosted-git-info from 2.8.8 to 2.8.9 in /settings
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

---
updated-dependencies:
- dependency-name: hosted-git-info
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-09 21:35:07 +00:00
dependabot[bot] 920d68a0a9 Bump hosted-git-info from 2.8.8 to 2.8.9 in /accounts
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

---
updated-dependencies:
- dependency-name: hosted-git-info
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-09 21:35:04 +00:00
Alex Unger fd8b3d23dd Merge pull request #2136 from owncloud/unify_go_version 2021-06-09 23:34:23 +02:00
Phil Davis a845cd2a89 Merge pull request #2152 from owncloud/qualify_expected_failures
Move old/new chunking to won't fix in expected failures
2021-06-09 21:09:04 +05:45
Patrick Maier 61466d2c02 Add old/new chunking to won't fix in expected failures 2021-06-09 16:39:25 +02:00
Alex Unger 175062e70c Automated changelog update [skip ci] 2021-06-09 12:09:50 +00:00
Alex Unger 72aa5972b0 Merge pull request #2129 from owncloud/tls-config-location 2021-06-09 14:09:23 +02:00
Jasmine Baral b29c747317 Adjust few issues 2021-06-09 16:08:02 +05:45
A.Unger 33f8cd04b2 Merge branch 'master' into tls-config-location 2021-06-09 11:16:27 +02:00
Phil Davis 8251e620c8 Merge pull request #2117 from owncloud/adjustIssuesInExpectedFailures
[Tests-Only]Adjust expected failures file
2021-06-09 09:18:47 +05:45
A.Unger 7efb715af7 fix sonarcloud offenses 2021-06-08 15:25:46 +02:00
A.Unger f19ed5aede os_test package 2021-06-08 13:38:05 +02:00
A.Unger 3e8198e4c2 check err on persistKey 2021-06-08 13:24:25 +02:00
Jasmine Baral c170e279e8 Adjust expected failures file 2021-06-08 17:08:34 +05:45
A.Unger 7c0a4bdc0d add test coverage for panics 2021-06-08 13:23:14 +02:00
A.Unger 83f628052d add new os pkg on ocis-pkg 2021-06-08 13:08:32 +02:00
A.Unger 24b94dd2f1 add unit tests 2021-06-08 12:50:15 +02:00
Willy Kloucek 71e2cad13e unifiy go version 2021-06-08 11:49:57 +02:00
A.Unger 5c0aabedd7 Merge branch 'master' into tls-config-location 2021-06-08 11:41:01 +02:00
PKiran 820205dfe5 Merge pull request #2123 from owncloud/full-ci-for-version-tag
[Tests-Only] Check for version tags while running web tests
2021-06-08 15:00:04 +05:45
A.Unger 28ea3b7341 update idp dependencies -> go get github.com/sirupsen/logrus@v1.7.0 2021-06-08 10:58:56 +02:00
A.Unger 6406982ab0 add go get github.com/fsnotify/fsnotify@v1.4.9 2021-06-08 10:54:14 +02:00
A.Unger 65c45caa8d update dependencies 2021-06-08 10:49:37 +02:00
A.Unger fb31bf4427 namespace user config dir with ocis 2021-06-08 10:45:10 +02:00
A.Unger c108d6d9f9 dont use all caps... 2021-06-08 10:39:30 +02:00
A.Unger 5518c6cf1c add tests for crypto.GenCert 2021-06-08 10:37:26 +02:00
Parajuli Kiran 76594d375b updated latest web commit id 2021-06-08 14:15:09 +05:45
A.Unger 7028bc4a44 Merge branch 'master' into tls-config-location 2021-06-08 09:31:09 +02:00
Michael Barz 4fa69900a3 Update _index.md 2021-06-08 09:25:43 +02:00
Michael Barz 1c3254a357 Automated changelog update [skip ci] 2021-06-08 06:54:30 +00:00
Michael Barz 75a0345844 Merge pull request #2134 from owncloud/release-1.7.0
Merge back ocis release 1.7.0
2021-06-08 08:53:50 +02:00
Parajuli Kiran 9277a8d6f7 Run full-ci if build event is tag while running web tests 2021-06-08 09:39:09 +05:45
A.Unger 870201902a Merge branch 'master' into tls-config-location 2021-06-07 20:49:06 +02:00
A.Unger 7d94812d1e change log level to info 2021-06-07 20:48:45 +02:00
A.Unger b64d13c20e more refactoring 2021-06-07 20:00:47 +02:00
A.Unger d4d1075fdd refactor crypto code 2021-06-07 19:57:18 +02:00
Ilja Neumann 58f8258560 Automated changelog update [skip ci] 2021-06-07 16:44:30 +00:00
Ilja Neumann 073503beb9 Use ocis registry for refresh
The go-micro registry-singleton ignores the ocis configuration and defaults to mdns
2021-06-07 18:43:55 +02:00
Florian Schade 1e79671580 changelog 1.7.0 2021-06-07 17:45:22 +02:00
A.Unger 8d3bbe47fc Merge branch 'master' into tls-config-location 2021-06-07 17:40:01 +02:00
A.Unger 3101c292bb move crypto over to ocis-pkg 2021-06-07 17:11:29 +02:00
Michael Barz 8ec6ac3de9 Merge pull request #2124 from owncloud/refs-patch-1
Update stale.yml
2021-06-07 16:31:05 +02:00
A.Unger afec556f8d make changelog linter happy 2021-06-07 16:14:02 +02:00
Phil Davis 83e4dbf1e1 Merge pull request #2125 from owncloud/use-different-selenium
[Tests-Only] Used different version of selenium for settings UI test
2021-06-07 19:43:04 +05:45
A.Unger a1a6dfab5a update readme 2021-06-07 15:46:14 +02:00
A.Unger 150e5f4c01 use os.UserConfigDir 2021-06-07 15:44:45 +02:00
A.Unger 2498a50199 add changelog 2021-06-07 15:04:03 +02:00
A.Unger 2508ce0ef7 use user system config to store tls artifacts 2021-06-07 15:00:52 +02:00
Parajuli Kiran 51abdf12b3 fixed ci format 2021-06-07 17:03:28 +05:45
Parajuli Kiran 9bb9d3d80a Used another selenium service for settings ui test 2021-06-07 16:52:35 +05:45
Alex Unger 8920b2c65e Update stale.yml 2021-06-07 12:57:49 +02:00
Jan Ackermann e11e286d33 [tx] updated from transifex 2021-06-07 01:08:29 +00:00
Jan Ackermann d3d1dd65a8 [tx] updated from transifex 2021-06-06 00:06:47 +00:00
Phil Davis b1e410b674 Merge pull request #2116 from owncloud/web-test-with-parts
[Tests-Only] Run web test with parts
2021-06-04 23:02:10 +05:45
Phil Davis d78aef722c enable localApiTests again 2021-06-04 21:58:47 +05:45
Phil Davis f9b2c9538d Bump core commit id for tests 2021-06-04 21:04:57 +05:45
Phil Davis 4b51164357 Add an expected-failures file for webUI ocisSmokeTest runs 2021-06-04 21:00:04 +05:45
Phil Davis c6216b3e22 Very minor change to expected-failures 2021-06-04 20:44:05 +05:45
Phil Davis 452fb79eec skip webUI tests tagged federated-server-needed 2021-06-04 20:11:38 +05:45
Jörn Friedrich Dreyer add77b991b hide todos on print, add pagebreaks
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-06-04 13:47:52 +00:00
Phil Davis 6a54682c69 Adjust expected-failures to pass Codacy style checks 2021-06-04 18:01:58 +05:45
Phil Davis bf9936f764 Add the full list of expected-failures 2021-06-04 17:35:37 +05:45
Phil Davis 61a07967d9 adjust comment about full-ci 2021-06-04 16:50:24 +05:45
Phil Davis 25dc6eb4cb set skip back to False for regular acceptance tests 2021-06-04 16:49:34 +05:45
Parajuli Kiran e4aa00d4cd used web master branch, and pin latest commit id 2021-06-04 15:46:29 +05:45
Parajuli Kiran c13a504d05 Run web tests in parts 2021-06-03 16:39:14 +05:45
Parajuli Kiran 52befa0299 Added web branch and commit id 2021-06-03 16:20:06 +05:45
Jörn Friedrich Dreyer 2fee44581f TODOs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-06-02 21:12:46 +00:00
Pascal Wengerter 279c73fbb5 Merge pull request #2115 from owncloud/020602021_replace-webhippie-imgs-in-ci
[tests-only] Replace webhippie nodejs & redis imgs in CI
2021-06-02 17:30:12 +01:00
Pascal Wengerter fb5b34d136 Replace webhippie nodejs & redis imgs in CI 2021-06-02 16:45:16 +01:00
Phil Davis 947b3d6dad Merge pull request #2100 from owncloud/bump-commit-id-20210531
[tests-only] Bump core and web commit id
2021-06-02 13:15:14 +05:45
Swikriti Tripathi 18b437ce5e Bump core and web commit id and add failing tests to expected to fail file 2021-06-02 12:26:00 +05:45
Patrick Maier 1b4fe83c58 Merge pull request #2110 from owncloud/1.7.0_release_notes
[docs-only] 1.7.0 release notes
2021-06-01 18:10:04 +02:00
Patrick Maier de20b85d18 [docs-only] 1.7.0 release notes 2021-06-01 17:50:37 +02:00
Jörn Friedrich Dreyer 5ce1841609 more details
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-06-01 15:32:00 +00:00
David Christofas b696bf50d7 Automated changelog update [skip ci] 2021-06-01 13:53:04 +00:00
David Christofas 9a273639f1 Merge pull request #2104 from owncloud/update-reva
update reva to v1.7.1-0.20210531093513-b74a2b156af6
2021-06-01 15:52:27 +02:00
David Christofas c0cafba544 update reva to v1.7.1-0.20210531093513-b74a2b156af6 2021-06-01 15:11:32 +02:00
David Christofas 38d817db41 Automated changelog update [skip ci] 2021-06-01 12:46:49 +00:00
David Christofas 99b517a3ea Merge pull request #2109 from owncloud/fix-groups-index
fix: make groups index case sensitive
2021-06-01 14:46:09 +02:00
David Christofas 03aa64168c fix: make groups index case sensitive 2021-06-01 13:33:24 +02:00
PKiran 06da18c697 Merge pull request #2105 from owncloud/remove-web-test-suites-list
[Tests-Only] Removed web suite lists
2021-06-01 16:54:34 +05:45
Muhammet Kara 192cff699f Fix broken url and path on ocis_wopi.md
Signed-off-by: Muhammet Kara <muhammet.kara@collabora.com>
2021-06-01 13:50:01 +03:00
Parajuli Kiran d441cfbd35 Removed web suite lists 2021-06-01 16:15:08 +05:45
Jan Ackermann f4195285f8 [tx] updated from transifex 2021-06-01 01:10:15 +00:00
Michael Barz 3f97792f4d Automated changelog update [skip ci] 2021-05-31 15:39:26 +00:00
Michael Barz cd78c91507 Merge pull request #2096 from owncloud/update-web-3.2.0
Update web to 3.2.0
2021-05-31 17:38:58 +02:00
Jörn Friedrich Dreyer 7c21b381e1 flesh out migration docs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-05-31 15:07:48 +00:00
Benedikt Kulmann 8eb345b368 Update assets to final web v3.2.0 release 2021-05-31 16:54:16 +02:00
Benedikt Kulmann 743a63811b Update web to 3.2.0-rc1 2021-05-30 12:35:07 +02:00
Jan Ackermann 202c6ce4fa [tx] updated from transifex 2021-05-29 01:07:29 +00:00
Phil Davis bde661faa1 Merge pull request #2093 from owncloud/run-only-ocisSmokeTest
[tests-only] Run web UI ocisSmokeTest scenarios in a single pipeline
2021-05-28 16:28:07 +05:45
Phil Davis 6bf1652df4 Run web UI ocisSmokeTest scenarios in a single pipeline 2021-05-27 18:28:14 +05:45
Willy Kloucek a01e3a78e4 Merge pull request #2090 from owncloud/wopiserver_gateway_addr
[deployment examples] adapt WOPI example
2021-05-27 12:19:31 +02:00
Willy Kloucek 64ab98fa40 [deployment examples] adapt WOPISERVER_REVA_GATEWAY to WOPISERVER_REVA_GATEWAY_ADDR because of wopiserver change 2021-05-27 11:30:15 +02:00
Pascal Wengerter eaa8022720 Automated changelog update [skip ci] 2021-05-27 08:39:40 +00:00
Pascal Wengerter 96811d7c52 Merge pull request #2088 from owncloud/26052021_idp-color-contrasts
Improve color contrasts on IDP login
2021-05-27 09:37:28 +01:00
Pascal Wengerter 97882210eb Add .md file extension to unreleased changelot items 2021-05-27 08:38:08 +01:00
Willy Kloucek a90d2e2703 Merge pull request #2082 from owncloud/fix_acceptance_tests_in_docker
[tests-only] first fixes
2021-05-27 09:18:26 +02:00
Pascal Wengerter 0628e66a0e Improve color contrasts on IDP login 2021-05-26 16:50:50 +01:00
dependabot[bot] 5eecdc149e Bump css-loader from 5.2.5 to 5.2.6 in /idp
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.2.5 to 5.2.6.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.2.5...v5.2.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-26 14:55:09 +00:00
dependabot[bot] 2f995a8791 Bump browserslist from 4.16.3 to 4.16.6 in /accounts
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.3...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-26 14:52:26 +00:00
David Christofas 7f1fb8db62 Merge pull request #2080 from owncloud/idp-update-npm-deps
update idp npm dependencies
2021-05-26 16:51:47 +02:00
Willy Kloucek 796376586b clean up and refactor on 2021-05-26 16:31:54 +02:00
Willy Kloucek b575e93cdf [CI SKIP] first fixes 2021-05-26 15:25:09 +02:00
David Christofas 9c267af1de update idp npm dependencies 2021-05-26 14:02:29 +02:00
PKiran 8b1119f709 Merge pull request #2075 from owncloud/add-previews-tests-bug-demonstrations
[Tests-Only] Added conflicting previews tests
2021-05-26 17:21:38 +05:45
David Christofas 0d6e6b5ce8 Merge pull request #2054 from owncloud/dependabot/go_modules/ocis/github.com/rs/zerolog-1.22.0
Bump github.com/rs/zerolog from 1.21.0 to 1.22.0 in /ocis
2021-05-26 13:17:53 +02:00
PKiran e0b4d3bfdd Merge pull request #2074 from owncloud/skip-on-ocis
[Tests-Only] Added skipOnOcis tag for localApiTest suite
2021-05-26 14:29:55 +05:45
dependabot[bot] bf83d1718f Bump github.com/rs/zerolog from 1.21.0 to 1.22.0 in /ocis
Bumps [github.com/rs/zerolog](https://github.com/rs/zerolog) from 1.21.0 to 1.22.0.
- [Release notes](https://github.com/rs/zerolog/releases)
- [Commits](https://github.com/rs/zerolog/compare/v1.21.0...v1.22.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-26 08:39:49 +00:00
Phil Davis 7ceda68962 Merge pull request #2072 from owncloud/bump-commit-id
[tests-only]Bump core and web commit id for tests
2021-05-26 14:01:13 +05:45
Swikriti Tripathi 33d656ec5c Bump core and core commit id for tests 2021-05-26 13:08:38 +05:45
Pascal Wengerter 194206ba4c Merge pull request #2052 from owncloud/dirkstascheit-patch-1
Update _index.md
2021-05-26 08:21:32 +01:00
Willy Kloucek 027a32eaae Merge pull request #2076 from owncloud/latest_web_continuous_deployment
[docs-only] add reference to ocis.ocis-web.latest.owncloud.works
2021-05-26 09:19:45 +02:00
Parajuli Kiran d5e50a082d say skip for local api tests 2021-05-26 09:34:36 +05:45
Willy Kloucek 8919311cbf add reference to ocis.ocis-web.latest.owncloud.works 2021-05-25 19:06:54 +02:00
Willy Kloucek e67e6132d3 Merge pull request #2073 from owncloud/deployment_examples_disable_collabora_welcome_message
[deployment examples] improve WOPI server example
2021-05-25 16:39:11 +02:00
Willy Kloucek 427c097830 remove foo as default 2021-05-25 15:42:21 +02:00
Parajuli Kiran 575a231410 Added conflicting previews tests 2021-05-25 18:27:59 +05:45
Parajuli Kiran 0d3b22030f Adde skipOnOcis tag for localApiTest suite 2021-05-25 17:42:56 +05:45
Willy Kloucek 9b34a974d6 fix deployment for https://github.com/owncloud/ocis-wopiserver/pull/5 2021-05-25 12:51:26 +02:00
Willy Kloucek 78d96d49b9 disable welcome message for collabora 2021-05-25 12:27:51 +02:00
Artur Neumann 3ca92bc21c Merge pull request #2063 from owncloud/reduceOcisLog
[tests-only] reduce ocis output log for tests
2021-05-21 15:56:18 +05:45
Artur Neumann 282e45fa11 reduce ocis output log for tests 2021-05-21 15:08:20 +05:45
Willy Kloucek 332f4d3f60 Merge pull request #2060 from owncloud/ocis_1_6_0_storage_breaking_change
[docs-only] add breaking change to docs
2021-05-21 07:45:16 +02:00
Willy Kloucek 96673b08e0 finish release notes 2021-05-20 08:18:14 +02:00
Willy Kloucek de2a21c500 add breaking change to docs 2021-05-19 16:21:42 +02:00
Alex Unger 34a8ed3816 Merge pull request #2039 from owncloud/switch_to_http_internally
deployment examples: switch to http internally
2021-05-19 13:30:29 +02:00
Willy Kloucek 4e09c7f354 Merge pull request #2009 from owncloud/change_depends_on_logic
[CI-only] change dependson logic
2021-05-19 12:34:52 +02:00
Willy Kloucek d3da526464 Merge pull request #2040 from owncloud/remove_insecure
Remove insecure
2021-05-19 09:23:58 +02:00
Willy Kloucek cb2957f3b7 change dependson logic 2021-05-19 09:22:28 +02:00
Willy Kloucek da9989f172 generate embed.go 2021-05-19 08:16:29 +02:00
Willy Kloucek 1ea97e92fc remove insecure 2021-05-19 08:12:46 +02:00
Artur Neumann a812ad6b0d Merge pull request #2055 from owncloud/bump-commit-ids
[tests-only] Bump commit ids for tests
2021-05-19 09:05:19 +05:45
saw-jan b34933dacf bump commit ids as of 20210518 2021-05-18 16:18:45 +05:45
Willy Kloucek 9b753d51cd Merge pull request #2026 from owncloud/dcr_changes
dynamic client registration changes
2021-05-18 09:35:42 +02:00
Willy Kloucek 53739f1fdf generate 2021-05-18 08:23:22 +02:00
Willy Kloucek 0f377cabc8 Merge pull request #2053 from owncloud/breaking_change_1_6_0
[docs-only] add 1.6.0 breaking changes to docs
2021-05-18 08:22:48 +02:00
Willy Kloucek 9533c5dc21 update konnect 2021-05-18 08:12:34 +02:00
Willy Kloucek d0e5546c6f dynamic client registration changes 2021-05-18 08:08:18 +02:00
Willy Kloucek 7bc064f4ff fix version 2021-05-18 08:01:22 +02:00
Willy Kloucek d1a64a8135 add 1.6.0 breaking changes to docs 2021-05-17 16:29:58 +02:00
Dirk Stascheit 92989c9919 Update _index.md 2021-05-17 11:47:49 +02:00
Michael Barz 17cf468368 Automated changelog update [skip ci] 2021-05-17 08:56:32 +00:00
Michael Barz 3b182d49c9 Merge pull request #2051 from owncloud/release-1.6.0
Merge back Release branch
2021-05-17 10:55:56 +02:00
Jan Ackermann e7aed9520a [tx] updated from transifex 2021-05-17 00:08:44 +00:00
Benedikt Kulmann 46f3dc62d2 Automated changelog update [skip ci] 2021-05-16 07:25:11 +00:00
Benedikt Kulmann 54a196a24e Merge pull request #2036 from owncloud/introduce-user-profile-picture-capability
Add profile_picture to user capabilities
2021-05-16 09:19:17 +02:00
Phil Davis a45c4e0011 Merge pull request #2048 from owncloud/bump-commit-ids
[tests-only] Bump commit ids for tests
2021-05-14 21:51:55 +05:45
saw-jan c6df0470ba update expected-failures files 2021-05-14 18:51:04 +05:45
saw-jan 3f86fe8066 bump commit ids as of 20210514 2021-05-14 17:05:46 +05:45
Phil Davis 8677761a7e Merge pull request #2038 from owncloud/skip-in-ci
[tests-only] Feature to skip and debug test suites in CI
2021-05-13 12:11:35 +05:45
saw-jan 3c1749e36e add skips and debug suites 2021-05-13 10:40:21 +05:45
Jörn Friedrich Dreyer abbfbe2d14 Automated changelog update [skip ci] 2021-05-12 14:48:11 +00:00
Jörn Friedrich Dreyer 8446779b42 Merge pull request #1886 from aduffeck/s3ng-integration
Integrate the s3ng storage driver
2021-05-12 16:47:33 +02:00
Florian Schade 473d9ca6d5 prepare changelog 2021-05-12 16:29:58 +02:00
Pascal Wengerter a200475b0c Automated changelog update [skip ci] 2021-05-12 14:12:00 +00:00
Pascal Wengerter 8b25351595 Merge pull request #2045 from owncloud/update-web-v3.1.0
Update web to v3.1.0
2021-05-12 15:11:30 +01:00
Pascal Wengerter 68f119f0ff Add profile_picture to user capabilities 2021-05-12 14:53:47 +01:00
Pascal Wengerter 1f3e0697cf Bump web commit ID 2021-05-12 14:26:08 +01:00
Pascal Wengerter b499af3fb8 Merge branch 'master' into update-web-v3.1.0 2021-05-12 13:36:29 +01:00
Pascal Wengerter 8c76a866fc Update web v3.1.0 assets bundle & web commit ID in drone.env 2021-05-12 13:33:56 +01:00
Jörn Friedrich Dreyer b8621aa55b Update tests/acceptance/docker/src/ceph.yml 2021-05-12 12:53:54 +02:00
André Duffeck 6c3280cade Also enable s3ng flags for the metadata storage 2021-05-12 10:02:29 +02:00
Michael Barz d2cc70c2e5 Merge pull request #2047 from owncloud/release_notes
[docs-only] 1.6.0 Release Notes
2021-05-12 09:48:21 +02:00
André Duffeck 4a9c6e8380 Add changelog 2021-05-12 09:23:05 +02:00
André Duffeck 87ec7a5125 Integrate the s3ng storage driver 2021-05-12 09:23:05 +02:00
Patrick Maier 3b623bc2bf [docs-only] 1.6.0 Release Notes 2021-05-11 17:24:07 +02:00
David Christofas b06843b707 Merge pull request #2041 from owncloud/dependabot/go_modules/ocis/github.com/thejerf/suture/v4-4.0.1
Bump github.com/thejerf/suture/v4 from 4.0.0 to 4.0.1 in /ocis
2021-05-11 17:10:06 +02:00
dependabot[bot] 918ce630bf Bump github.com/thejerf/suture/v4 from 4.0.0 to 4.0.1 in /ocis
Bumps [github.com/thejerf/suture/v4](https://github.com/thejerf/suture) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/thejerf/suture/releases)
- [Commits](https://github.com/thejerf/suture/compare/v4.0.0...v4.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 14:25:09 +00:00
David Christofas 85f62eae2b Automated changelog update [skip ci] 2021-05-11 13:40:48 +00:00
David Christofas cd4eca8d7c Merge pull request #2044 from owncloud/update_reva_e2c3841d0dbc
update reva
2021-05-11 15:38:57 +02:00
Phil Davis 32ff8ee9bc Merge pull request #2046 from owncloud/bump-commit-ids
[tests-only] Bump commit ids for test
2021-05-11 18:27:35 +05:45
David Christofas f6ac50244b update invocations of MintToken and DismantleToken 2021-05-11 14:18:43 +02:00
saw-jan 7a286e9b08 bump commit ids for test 2021-05-11 16:58:31 +05:45
Pascal Wengerter 4271dd44df Merge pull request #2042 from owncloud/10052021_thumbnail-assets
Add new assets/binaries for accounts/idp/settings & thumbnail swagger
2021-05-10 20:21:40 +01:00
Benedikt Kulmann 7d4be3145f Update web to v3.1.0-rc1 2021-05-10 15:46:15 +02:00
Willy Kloucek 8b195e95b6 update reva 2021-05-10 11:39:58 +02:00
Pascal Wengerter e68c4c1b6e Add new assets/binaries for accounts/idp/settings & thumbnail swagger 2021-05-10 09:14:24 +01:00
Willy Kloucek 2826bdf3bd switch to http internally 2021-05-10 08:54:08 +02:00
Phil Davis 80c942d6ad Merge pull request #2035 from owncloud/bump-commit-id
[tests-only] Bump commit ids for tests
2021-05-07 20:49:30 +05:45
Phil Davis ea3a4c8f50 Adjust expected failures 2021-05-07 18:30:54 +05:45
Phil Davis aab0048a21 Bump commit ids for tests 2021-05-07 17:53:54 +05:45
Saw-jan Gurung 1d8b02ca3f Merge pull request #2030 from owncloud/update-webUI-suites
[tests-only] Update webUI test suites in drone
2021-05-07 17:41:19 +05:45
saw-jan 19563196e2 update expected-failures file 2021-05-07 16:55:15 +05:45
saw-jan 610839a9e5 update webUI suites 2021-05-07 16:55:15 +05:45
Pascal Wengerter a1684bbeec Merge pull request #1871 from owncloud/dependabot/npm_and_yarn/settings/rollup/plugin-replace-2.4.2
Bump @rollup/plugin-replace from 2.4.1 to 2.4.2 in /settings
2021-05-07 11:51:37 +01:00
Pascal Wengerter 4d09b61973 Merge pull request #1867 from owncloud/dependabot/npm_and_yarn/onlyoffice/rollup/plugin-replace-2.4.2
Bump @rollup/plugin-replace from 2.4.1 to 2.4.2 in /onlyoffice
2021-05-07 11:50:55 +01:00
Pascal Wengerter 7ffd875966 Merge pull request #2020 from owncloud/docs_reference_demo
[docs-only] reference demo instance in docs
2021-05-07 11:49:03 +01:00
Pascal Wengerter 82a04602ba Merge pull request #2002 from owncloud/dependabot/npm_and_yarn/accounts/babel/core-7.14.0
Bump @babel/core from 7.13.10 to 7.14.0 in /accounts
2021-05-07 11:47:36 +01:00
Michael Barz 7d04fdc2e2 Update 0007-api-for-spaces.md 2021-05-07 10:20:01 +02:00
Willy Kloucek d3f6298c8d Merge pull request #2023 from owncloud/starlark_format_linting
starlark format linting
2021-05-06 14:35:31 +02:00
Alex Unger 74e4788c8b Merge pull request #2022 from owncloud/accept-adrs
accept some adrs
2021-05-06 13:58:39 +02:00
Willy Kloucek ba58cf8908 fix pipeline 2021-05-06 13:11:46 +02:00
Willy Kloucek b01eefb91d add ci-format make target 2021-05-06 11:57:06 +02:00
Willy Kloucek c14365eb51 format starlark file 2021-05-06 11:48:44 +02:00
Willy Kloucek 9a7ceee45f add starlark format linting step 2021-05-06 11:48:09 +02:00
Michael Barz 08cdc19fc8 accept some adrs 2021-05-06 11:29:09 +02:00
Michael Barz 4dac701997 fix rocketchat notifications 2021-05-06 11:22:13 +02:00
Klaas FreitagandMichael Barz ccb1ab69c6 [docs-only] Fix headers for the adrs, remove duplicate lines and reword. (#2004)
* Fix headers for the adrs, remove duplicate lines and reword.

* Update docs/ocis/adr/0005-cs3-api-account-management.md

Co-authored-by: Michael Barz <mbarz@owncloud.com>
2021-05-06 11:04:13 +02:00
Willy Kloucek bf9266f77a reference demo instance in docs 2021-05-06 07:56:25 +02:00
Willy Kloucek ec5bdada81 Automated changelog update [skip ci] 2021-05-06 05:36:35 +00:00
Willy Kloucek 385b1d41d9 Merge pull request #2019 from owncloud/samesite
change samesite settings for web
2021-05-06 07:35:43 +02:00
Michael Barz 5ab65b32ca Update settings.yml 2021-05-05 15:13:04 +02:00
PKiran ffadb6e1fb Merge pull request #2017 from owncloud/improve-api-test-docs
[Tests-Only] remove DELETE_USER_DATA_CMD env from api tests running scripts
2021-05-05 17:50:52 +05:45
Willy Kloucek 63cea30af3 change samesite settings for web 2021-05-05 13:20:48 +02:00
Parajuli Kiran b530bfda99 removed DELETE_USER_DATA_CMD env from api tests running scripts 2021-05-05 16:51:32 +05:45
dependabot[bot] 32a101c162 Bump @rollup/plugin-replace from 2.4.1 to 2.4.2 in /settings
Bumps [@rollup/plugin-replace](https://github.com/rollup/plugins) from 2.4.1 to 2.4.2.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/replace-v2.4.1...replace-v2.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-05 08:53:28 +00:00
dependabot[bot] 34532d3bb4 Bump @babel/core from 7.13.10 to 7.14.0 in /accounts
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.13.10 to 7.14.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.14.0/packages/babel-core)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-05 08:47:39 +00:00
Talank a85a37370e Merge pull request #2016 from owncloud/bumpToNewCommit
[Tests-Only]Bumps to latest core and web commit
2021-05-05 14:15:52 +05:45
Artur Neumann cf94773686 Merge pull request #690 from owncloud/enable-settings-ui-tests
[Tests-Only] Add UI tests for settings UI
2021-05-05 13:31:32 +05:45
jasson99 ad452021ff Bumps to latest core commit 2021-05-05 13:00:03 +05:45
Talank 2ea41f2782 Merge pull request #2014 from owncloud/ocis-no-redis
[CI] Remove redis server when running ocis server with ocis storage
2021-05-05 12:59:35 +05:45
Alex Unger ae10670fe7 Merge pull request #2015 from owncloud/add_deplyoment_config
add deployment config for wopi
2021-05-05 08:40:19 +02:00
saw-jan 7f90f861e3 use redis with owncloud storage only 2021-05-05 11:53:17 +05:45
Willy Kloucek 415ea6bcaf add deployment config for wopi 2021-05-05 07:27:10 +02:00
Dipak Acharya e006f10324 Fix command to run ui test for settings in drone 2021-05-05 09:45:52 +05:45
Jan Ackermann d00d1364e8 [tx] updated from transifex 2021-05-05 00:56:23 +00:00
Willy Kloucek 5f7793fb28 Merge pull request #1940 from owncloud/wopi_server
add WOPI server deployment example
2021-05-04 21:44:04 +02:00
Willy Kloucek 1cdb18ff31 add continous deployment 2021-05-04 17:39:59 +02:00
Willy Kloucek d144e3ddce add wait script 2021-05-04 17:39:59 +02:00
Willy Kloucek 3f9707274d fix json formatting 2021-05-04 17:39:59 +02:00
Willy Kloucek 25a5001a91 touch wopi log file to ensure its there 2021-05-04 17:39:59 +02:00
Willy Kloucek 39973d13f0 remove "custom" preset in .env 2021-05-04 17:39:59 +02:00
Willy Kloucek 5977a86eb3 add docs 2021-05-04 17:39:59 +02:00
Willy Kloucek df3b65b5e8 add wopi server example deployment 2021-05-04 17:39:59 +02:00
Benedikt Kulmann b5a8ffe6f6 Automated changelog update [skip ci] 2021-05-04 14:51:19 +00:00
Benedikt Kulmann 63368039a7 Merge pull request #2010 from owncloud/update-reva-to-v1.7.1-0.20210430154404-69bd21f2cc97
Update reva to v1.7.1-0.20210430154404-69bd21f2cc97
2021-05-04 16:50:50 +02:00
Phil Davis ee73e44b21 Remove passing tests from expected-failures 2021-05-04 19:48:41 +05:45
Benedikt Kulmann 56530879ef Update reva to v1.7.1-0.20210430154404-69bd21f2cc97 2021-05-04 15:20:35 +02:00
Dipak Acharya 21db768e6b Fix settings ui tests 2021-05-04 15:51:33 +05:45
Dipak Acharya 58a88b16e2 source env vars for ci 2021-05-04 15:51:33 +05:45
Benedikt Kulmann 99e0972309 fix web branch in settings drone pipeline 2021-05-04 15:51:33 +05:45
Dipak Acharya 0ec8df4e4a [Tests-Only] fix test infra path for settings tests 2021-05-04 15:51:33 +05:45
Benedikt Kulmann e769bbefd7 Streamline settings tests 2021-05-04 15:51:33 +05:45
Dipak Acharya a6df52008e update configuration variables for settings ui test in CI 2021-05-04 15:51:33 +05:45
Michael Barz d5c132b7f9 Add UI tests for settings UI 2021-05-04 15:51:33 +05:45
Phil Davis f9afcbc47a Merge pull request #1990 from owncloud/change-storage-driver
[Tests-Only] Change storage driver from `owncloud` to `ocis` for webUITests pipeline
2021-05-04 15:34:02 +05:45
saw-jan e78c93e016 add extected-failures file 2021-05-04 14:23:31 +05:45
saw-jan 329f5f026d change storage driver from owncloud to ocis 2021-05-04 11:52:16 +05:45
A.Unger c8c6a7b135 add OCIS_URL technical debt 2021-05-03 15:09:17 +02:00
Jan Ackermann 896c46fe9f Automated changelog update [skip ci] 2021-05-03 12:27:33 +00:00
Jan Ackermann c11561bf68 Merge pull request #2003 from owncloud/add-dictionary-js
Added dictionary.js for package settings and accounts
2021-05-03 14:27:02 +02:00
A.Unger 71ac2049a6 first draft of the Configuration adr 2021-05-03 14:19:44 +02:00
Artur Neumann 6ada273cb0 Merge pull request #1998 from owncloud/bump-core-commit-20200430
[tests-only] Bump core commit id for tests
2021-05-03 14:07:44 +05:45
JanAckermann 115f03df43 add dictionary.js 2021-05-03 10:20:32 +02:00
Klaas Freitag 14ac8e5748 Merge pull request #1827 from owncloud/doc-adr-spaces-api
[docs-only] Add draft of adr for spaces API.
2021-04-30 17:23:44 +02:00
Jörn Friedrich Dreyer 6826e572d5 Merge pull request #1920 from owncloud/document-architecture
[docs-only] add storage architecture overview
2021-04-30 17:18:56 +02:00
Klaas Freitag 3122239d21 More review motivated fixes and cleanups. 2021-04-30 17:14:55 +02:00
Phil Davis ddc320783e Adjust expected-failures for OCIS issue 1999 2021-04-30 20:21:05 +05:45
Klaas Freitag e34b9854a6 Move to the correct directory and fix the sequence number. 2021-04-30 16:35:45 +02:00
Klaas Freitag 7d9afee7c6 More review feedback: Added root driveItem object description. 2021-04-30 16:34:16 +02:00
Klaas Freitag 144e3f8103 Remove eTag from response object as it comes through root item. 2021-04-30 16:34:16 +02:00
Klaas Freitag 774518eb9c Apply feedback from reviews. Most significant: root item in reply. 2021-04-30 16:34:15 +02:00
Klaas FreitagandJörn Friedrich Dreyer f0a1a53a43 Update docs/adr/0005-api-for-spaces.md
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-30 16:34:15 +02:00
Klaas FreitagandJörn Friedrich Dreyer 16325083a0 Update docs/adr/0005-api-for-spaces.md
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-30 16:34:15 +02:00
Klaas FreitagandJörn Friedrich Dreyer de80dd9e39 Update docs/adr/0005-api-for-spaces.md
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-30 16:34:15 +02:00
Klaas FreitagandJörn Friedrich Dreyer 1b4cf20419 Update docs/adr/0005-api-for-spaces.md
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-30 16:34:15 +02:00
Klaas Freitag 10ed8a6903 Add a driveStatus value to the spaces object.
It indicates the status if the user has accepted the space or if
it is mandatory like shares or personal.
2021-04-30 16:34:15 +02:00
Klaas Freitag 95035af06d Consider review feedback: refine some wordings. 2021-04-30 16:34:15 +02:00
Klaas Freitag 7e11c5cbf2 Add draft of adr for spaces API. 2021-04-30 16:34:15 +02:00
Phil Davis 62d87078d1 Bump core commit id for tests 2021-04-30 19:41:49 +05:45
Jörn Friedrich Dreyer 6dfa4b2300 clarify url types
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-30 13:54:30 +00:00
Jan Ackermann 46c60cc852 Automated changelog update [skip ci] 2021-04-30 11:43:28 +00:00
Jan Ackermann 2e1e729693 [tx] updated from transifex 2021-04-30 11:40:48 +00:00
Robert Kaussow cd8f3e1af6 Merge pull request #1996 from owncloud/fix-label
Update settings.yml
2021-04-30 13:05:03 +02:00
Michael Barz 7b7fb647a1 remove dismissal restrictions and add empty apps 2021-04-30 12:22:11 +02:00
Michael Barz 012741d44f Update settings.yml 2021-04-30 11:20:34 +02:00
Willy Kloucek b642b9c6e4 Merge pull request #1992 from owncloud/fix_enforce_admins
fix enforce_admins
2021-04-30 10:47:24 +02:00
Willy Kloucek 73c16be2cf fix enforce_admins 2021-04-30 09:42:24 +02:00
David Christofas 8f43938af5 Merge pull request #1988 from owncloud/thumbnails-txt-files
implement thumbnail support for txt files
2021-04-30 08:48:44 +02:00
Jan Ackermann dd75e1c760 Merge pull request #1991 from owncloud/a11y-account-page-introduce-form-with-h-tag
Added h1 for screenreaders
2021-04-29 19:53:43 +02:00
Jörn Friedrich Dreyer 73232b5534 typo
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-29 16:11:17 +00:00
Jörn Friedrich Dreyer e4ba643047 Merge branch 'master' into document-architecture 2021-04-29 18:08:53 +02:00
Jörn Friedrich Dreyer dcea5cdb5a add notes about /home and /home/shares
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-29 14:58:36 +00:00
JanAckermann 8c00e02093 Added h1 for screenreaders 2021-04-29 16:29:29 +02:00
Phil Davis 4239fb537f Merge pull request #1986 from owncloud/refactor-expected-to-fail
[tests-only] Refactor expected-to-fail file to assign correct issue to failing test
2021-04-29 17:56:24 +05:45
David Christofas 12b4a26385 implement thumbnail support for txt files 2021-04-29 13:48:01 +02:00
Jan Ackermann 1ae3819fe2 Merge pull request #1989 from owncloud/fix-transifex
fix translation push
2021-04-29 13:43:21 +02:00
Jörn Friedrich Dreyer ec3c6495d3 add logical uuids
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-29 10:45:53 +00:00
JanAckermann c3d031db13 add PHONY 2021-04-29 12:45:42 +02:00
Jörn Friedrich Dreyer 10d19e5c7b further migration and namespace thoughts
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-29 10:25:31 +00:00
Swikriti Tripathi b75feb5330 Refactor expected-to-fail file to assign correct issue to failing test 2021-04-29 10:43:44 +05:45
Phil Davis 9ddfab8fbd Merge pull request #1984 from owncloud/bump-commit-id-STORAGE_DRIVER
[tests-only] Bump commit id
2021-04-29 10:18:15 +05:45
Phil Davis bc48e56d8e Bump commit id 2021-04-29 09:04:14 +05:45
Florian Schade 47bd449fac first go:embed 1.16 implementation 2021-04-29 01:25:28 +02:00
Jan Ackermann 7405812ad9 Merge pull request #1979 from owncloud/ocis-settings-use-oc-select
Use oc-select in settings
2021-04-28 17:23:51 +02:00
Phil Davis 7d968242bd Merge pull request #1981 from owncloud/bump-commit-id-20210428
[tests-only] Bump core commit id for tests
2021-04-28 20:59:00 +05:45
Jörn Friedrich Dreyer 205b3a72bd migration sideeffects
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-28 14:45:50 +00:00
JanAckermann 778aa25771 bump embed.go 2021-04-28 16:36:50 +02:00
JanAckermann 2dbf0bcbf1 added changelog item 2021-04-28 16:36:50 +02:00
JanAckermann 4e09433c6e refactor settings-multi-choice 2021-04-28 16:36:50 +02:00
JanAckermann e006da5bb9 refactor settings-single-choiche 2021-04-28 16:36:50 +02:00
Phil Davis 80ce64d6e5 Bump core commit id for tests 2021-04-28 20:09:03 +05:45
A.Unger b820b343df update nightwatch due to CVE-2021-28918 2021-04-28 15:34:16 +02:00
A.Unger 68c6eec432 update nightwatch due to CVE-2021-28918 2021-04-28 15:33:54 +02:00
A.Unger c8749a561b update nightwatch due to CVE-2021-28918 2021-04-28 15:33:04 +02:00
Pascal Wengerter a33c81cd44 Merge pull request #1952 from owncloud/22042021_accounts-settings-generate-docs
[docs-only] Add release guides for accounts & settings, fix issue link in settings/package.json
2021-04-28 13:02:59 +01:00
Alex Unger 8ec196df84 Merge pull request #1962 from owncloud/ocis-1798 2021-04-28 13:33:46 +02:00
Pascal Wengerter 46db2e8f53 Reduce accounts&settings release guide to abstract asset generation command 2021-04-28 12:09:56 +01:00
Pascal WengerterandPhil Davis 3301d4ac9f Fix GitHub link in settings release guide
Co-authored-by: Phil Davis <phil@jankaritech.com>
2021-04-28 11:56:11 +01:00
Pascal WengerterandPhil Davis 4ced02e790 Fix GitHub link in accounts/settings release guide
Co-authored-by: Phil Davis <phil@jankaritech.com>
2021-04-28 11:55:41 +01:00
A.Unger 1257bc3178 remove DELETE_USER_DATA_CMD commented from drone 2021-04-28 12:48:22 +02:00
Jörn Friedrich Dreyer f7aa2383fa small polish
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-28 09:41:44 +00:00
Alex UngerandJörn Friedrich Dreyer 35f0e00b31 Update changelog/unreleased/ocs-user-deprovisioning.md
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-28 11:17:39 +02:00
David Christofas 215b01544c Merge pull request #1898 from owncloud/thumbnails_public_links
Thumbnails for public links
2021-04-28 09:54:36 +02:00
Alex Unger e54e869c1d Update ocs-user-deprovisioning.md 2021-04-28 09:32:41 +02:00
A.Unger 3f0d2cc28f add STORAGE_USERS_DRIVER as a fallback env var 2021-04-27 22:54:49 +02:00
David Christofas af03099aba make responses OC10 compatible 2021-04-27 22:09:49 +02:00
David Christofas 5d6b801b8c implement thumbnail support for public shares 2021-04-27 22:09:45 +02:00
David Christofas dceb96ff98 prepare for public link thumbnails
- Implement a CS3 image source handler
 - Use checksum instead of etag for unique check
 - Simplify storage layout
2021-04-27 22:09:41 +02:00
Pascal Wengerter 3957ab96e4 Update accounts & settings release docs according to feedback 2021-04-27 17:18:27 +01:00
Pascal WengerterandAlex Unger 95bf02f94f Update docs/extensions/accounts/releasing.md
Co-authored-by: Alex Unger <6905948+refs@users.noreply.github.com>
2021-04-27 17:15:49 +01:00
Pascal Wengerter a97d141ccb Add release guides for accounts & settings, fix issue link in settings/package.json 2021-04-27 17:05:16 +01:00
Phil Davis cc8f0c9b94 Merge pull request #1970 from owncloud/bump-commit-20210426
[Tests-Only]Bump commit IDs on ocis 2021-04-26
2021-04-27 21:13:46 +05:45
Jörn Friedrich Dreyer b64c224882 split up files
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-27 15:17:53 +00:00
A.Unger aaddbdaf9a adjust expected failures 2021-04-27 16:54:58 +02:00
talank f4bda0e90b Bump commit IDs on ocis 2021-04-26 2021-04-27 20:09:06 +05:45
A.Unger 9af32ee4b2 Merge branch 'master' into ocis-1798 2021-04-27 16:20:54 +02:00
Phil Davis e436ecc271 Merge pull request #1973 from owncloud/revert-expected-failures-change
[tests-only] Revert "adjust expected failures for ocis"
2021-04-27 20:05:05 +05:45
Phil Davis fd4053f3c9 Revert "adjust expected failures for ocis"
This reverts commit 26ee19d6fe.
2021-04-27 18:46:25 +05:45
A.Unger e6cc66c296 add changelopg 2021-04-27 13:50:10 +02:00
A.Unger 4fb04b8ee3 fix sonarcloud offenses 2021-04-27 13:12:04 +02:00
A.Unger f2c5f06ad5 Merge branch 'master' into ocis-1798 2021-04-26 16:19:02 +02:00
A.Unger 0bc0e2a7a4 adjust expected failures 2021-04-26 16:18:52 +02:00
A.Unger 26ee19d6fe adjust expected failures for ocis 2021-04-26 15:27:34 +02:00
A.Unger 6497743a02 purge recycle bin 2021-04-26 14:27:36 +02:00
A.Unger 332a0a6cce Merge branch 'master' into ocis-1798 2021-04-26 13:46:09 +02:00
A.Unger d976dc35d3 add ugly CI hack: os.Getenv("STORAGE_USERS_DRIVER") != "owncloud" 2021-04-26 13:15:07 +02:00
A.Unger 75be5783c7 configurable jwt-secret and idm_address for ocs 2021-04-26 12:32:02 +02:00
Alex Unger 7186fdf10f Merge pull request #1930 from owncloud/user-adr 2021-04-26 11:27:24 +02:00
Alex Unger bc804b2524 Merge pull request #1933 from owncloud/registry-adr 2021-04-26 11:23:16 +02:00
A.Unger 81b7fad8f5 comment out delete user cmd from coreApiTests 2021-04-26 11:11:47 +02:00
A.Unger 5c4ace63e8 Merge branch 'master' into ocis-1798 2021-04-26 10:55:05 +02:00
A.Unger 2816ec7f8b apply review feedback 2021-04-26 10:15:35 +02:00
Alex UngerandMichael Barz ae71239e9c Update docs/ocis/adr/0005-cs3-api-account-management.md
Co-authored-by: Michael Barz <mbarz@owncloud.com>
2021-04-26 10:06:59 +02:00
A.Unger 1782b27b51 apply revie feedback 2021-04-26 10:03:56 +02:00
Willy Kloucek d0c4882e95 Automated changelog update [skip ci] 2021-04-26 06:34:07 +00:00
Willy Kloucek ad1349aa42 Merge pull request #1963 from owncloud/fix-1616
Stop supervisor if a service fails to start
2021-04-26 08:33:26 +02:00
Willy Kloucek 8913e374f4 Merge pull request #1959 from owncloud/1.5.0_release_notes
[docs-only] oCIS 1.5.0 Release Notes
2021-04-26 08:19:24 +02:00
Willy Kloucek 52fb3a41ec Merge pull request #1964 from owncloud/dirkstascheit-patch-1
[docs-only] Update _index.md
2021-04-26 08:14:03 +02:00
A.Unger b820d93485 delete user home only if reva gateway is configured. This ensures tests passing in CI 2021-04-23 15:45:40 +02:00
A.Unger 420447009b tweak backoff tolerance 2021-04-23 15:19:03 +02:00
Dirk Stascheit f8804b771f Update _index.md
updated the version number from 1.4 to 1.5
2021-04-23 15:10:28 +02:00
A.Unger 5fd121e84c add indirect packages 2021-04-23 14:41:48 +02:00
A.Unger 8da06d32b9 add changelog 2021-04-23 14:15:30 +02:00
A.Unger 11c11b06dc stop supervisor if a service fails to start 2021-04-23 14:13:58 +02:00
A.Unger 2cff4cf0bb rework of PR#755 2021-04-23 13:35:01 +02:00
Michael Barz fd01ee4dd0 Automated changelog update [skip ci] 2021-04-23 05:52:16 +00:00
Michael Barz fc2f9bbe4b Merge pull request #1960 from owncloud/release-1.5.0
Merge back Release 1.5.0
2021-04-23 07:48:00 +02:00
Patrick Maier cffe201d90 Update release_notes.md 2021-04-22 18:45:44 +02:00
Alex Unger 86e9369045 Automated changelog update [skip ci] 2021-04-22 15:12:05 +00:00
Alex Unger fa339639cb Merge pull request #1956 from owncloud/fix-1955 2021-04-22 17:10:53 +02:00
Patrick Maier 51313a424c [docs-only] oCIS 1.5.0 Release Notes 2021-04-22 16:52:45 +02:00
A.Unger fefee56e7a ugly stateful hacks 2021-04-22 16:23:39 +02:00
A.Unger d5dff86f43 update order 2021-04-22 15:58:53 +02:00
A.Unger dfb2bda066 change the order where we ser STORAGE_METADATA_ROOT
add changelog

update root metadata location on ci

Revert "update root metadata location on ci"

This reverts commit a7bcf9d645f9f35ac82ae32df77c0c866be6a608.

update .drone.star with no STORAGE_METADATA_ROOT

Revert "update .drone.star with no STORAGE_METADATA_ROOT"

This reverts commit 857db35c58bfb7c6e59f33b79e79a73886161d82.

Revert "change the order where we ser STORAGE_METADATA_ROOT"

This reverts commit 6f2c209c9aa30c310829ad4528327de94603ba56.

Revert "Revert "update .drone.star with no STORAGE_METADATA_ROOT""

This reverts commit 64bfa3f284380de8cbf4d9652d4e9b6ff9c69629.

Revert "Revert "Revert "update .drone.star with no STORAGE_METADATA_ROOT"""

This reverts commit 947ee03bc6a5a7b76046b7c130c0b3782c6d8eb1.
2021-04-22 15:56:48 +02:00
Talank 05f3b50964 Merge pull request #1873 from owncloud/bump-web-commit-id-2e673fe
[Tests-Only]Bumped commit ids in ocis
2021-04-22 14:30:36 +05:45
talank 0fa0c15304 Bumped commit id of web in ocis 2021-04-22 13:40:57 +05:45
Willy Kloucek bedd4135e1 Merge pull request #1954 from owncloud/fix_docker_release
fix docker release
2021-04-22 09:35:21 +02:00
Willy Kloucek c9344cf279 fix docker release 2021-04-22 08:53:41 +02:00
Phil Davis aaea372b7d Merge pull request #1946 from owncloud/bumpCoreCommitId-2020-04-21
[Tests-Only] Updated core commit id to the latest up to 2020/04/21
2021-04-22 08:13:56 +05:45
Pascal Wengerter 1dc7bfe50a Add embed.go for accounts & settings 2021-04-21 17:33:51 +01:00
Michael Barz 4967543130 prepare release 1.5.0 2021-04-21 17:30:44 +02:00
Pascal Wengerter 8f40ee80f2 Automated changelog update [skip ci] 2021-04-21 14:33:03 +00:00
Pascal Wengerter 7ff08a5cce Merge pull request #1938 from owncloud/release-web-3.0.0
Release web 3.0.0
2021-04-21 15:32:33 +01:00
Pascal Wengerter 38863a4745 Update from 3.0.0rc-2 to official 3.0.0 2021-04-21 14:45:36 +01:00
Benedikt Kulmann 9721f81087 switch from OCIS_SKELETON_DIR to TESTING_DATA_DIR env 2021-04-21 14:45:36 +01:00
Benedikt Kulmann f6befe0532 Update role selector of accounts ui tests 2021-04-21 14:45:36 +01:00
Benedikt Kulmann cc790205ce Update web commit id and ocis expected failures for web 2021-04-21 14:45:36 +01:00
Pascal Wengerter ae25f6f61d Update ODS in settings extension 2021-04-21 14:45:36 +01:00
Pascal Wengerter 378c37b935 Update ODS in accounts extension 2021-04-21 14:45:36 +01:00
Benedikt Kulmann f8f9cbe051 Update web to 3.0.0-rc2 2021-04-21 14:45:36 +01:00
Parajuli Kiran 8dac955b6f Updated core commit id to the latest upto 2020/04/21 2021-04-21 17:48:36 +05:45
A.Unger f78f6ceeae fix typo 2021-04-21 13:02:52 +02:00
Alex Unger a95cf437de Merge pull request #1941 from owncloud/fix_arm64_builds_docker
use binaries from make release for docker builds
2021-04-21 11:40:05 +02:00
Jörn Friedrich Dreyer 781272e327 add frontend endpoint descriptions
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-20 15:04:56 +00:00
Willy Kloucek 0e36f04a62 use binaries from make release 2021-04-20 17:00:15 +02:00
Alex Unger dff3f0afd1 Automated changelog update [skip ci] 2021-04-20 14:11:38 +00:00
Alex Unger cff1325b7f Merge pull request #1931 from owncloud/parse-config-when-run 2021-04-20 16:10:56 +02:00
A.Unger 60280a3f28 refactor and cleanup a bit 2021-04-20 14:55:48 +02:00
Willy Kloucek c073329e17 Merge pull request #1937 from owncloud/switch_to_official_redis_image
Switch to official redis image
2021-04-20 12:57:31 +02:00
A.Unger 7446c4de12 Merge branch 'master' into parse-config-when-run 2021-04-20 12:52:56 +02:00
Willy Kloucek 734e5564b6 Merge pull request #1850 from owncloud/read_docs
[docs-only] fix migration docs
2021-04-20 09:03:04 +02:00
Willy Kloucek 8610b2560d cleanup uneeded boilerplate code 2021-04-20 08:56:22 +02:00
Willy Kloucek 63c6a438b6 use official redis 2021-04-20 08:56:12 +02:00
Pascal Wengerter f28ee8ac6e Merge pull request #1932 from owncloud/19042021_fix-broken-docs-links
[docs-only] Fix a bunch of broken links within the docs
2021-04-19 15:11:34 +01:00
A.Unger efa214f6ef service registry adr 2021-04-19 15:57:52 +02:00
Pascal Wengerter 81c57ee70c Fix a bunch of broken links within the docs 2021-04-19 14:34:04 +01:00
A.Unger 610c6fcbec add changelog 2021-04-19 14:55:41 +02:00
Alex Unger 32674c2e4f Merge pull request #1929 from owncloud/remove_ocis_hello_references
remove ocis-hello references
2021-04-19 14:03:27 +02:00
A.Unger 6e4de0abd3 config parsing on run command 2021-04-19 13:32:38 +02:00
Willy Kloucek 771f85ce2b remove ocis-hello references 2021-04-19 13:05:41 +02:00
A.Unger c0a4b1b611 add cs3 api user management adr 2021-04-19 12:40:26 +02:00
Willy Kloucek a349bc3477 Merge pull request #1904 from owncloud/dependabot/npm_and_yarn/accounts/eslint-7.24.0
Bump eslint from 7.22.0 to 7.24.0 in /accounts
2021-04-19 09:21:36 +02:00
Willy Kloucek 6c3ad8cb45 Merge pull request #1924 from owncloud/owncloudci_wait_for
switch to owncloudci/wait-for
2021-04-19 09:11:51 +02:00
Alex Unger 13bb862645 Automated changelog update [skip ci] 2021-04-16 12:47:37 +00:00
Alex Unger 7266fb5f7a Merge pull request #1923 from owncloud/cleanup-dead-code 2021-04-16 14:47:07 +02:00
Willy Kloucek e4b9461ccc switch to owncloudci/wait-for 2021-04-16 14:10:57 +02:00
A.Unger ad006496ef remove unused reference 2021-04-16 13:53:38 +02:00
A.Unger 6bcade2e21 add changelog 2021-04-16 13:27:06 +02:00
A.Unger af64e288e9 remove dead runtime code 2021-04-16 13:22:49 +02:00
Willy Kloucek fb30483d6f Merge pull request #1627 from owncloud/make_reva_ocis_service_user_uuid_configurable
make reva ocis storage driver uuid configurable
2021-04-16 11:57:37 +02:00
Willy Kloucek c3b3c8b5fd make reva ocis storage driver uuid configurable 2021-04-16 10:25:33 +02:00
Artur Neumann 8af42a8d87 Merge pull request #1921 from owncloud/bumpCoreCommitId-2020-04-15
[tests-only] updated core commit to the latest upto 2021/04/15
2021-04-16 11:09:18 +05:45
Parajuli Kiran b9a1f4ee98 updated core commit to the latest upto 2021/04/15 2021-04-15 16:32:44 +05:45
Jörn Friedrich DreyerandPascal Wengerter 10ac4946ef Apply suggestions from code review
Co-authored-by: Pascal Wengerter <pwengerter@owncloud.com>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-15 07:55:49 +00:00
Artur Neumann 9926c1cc70 Merge pull request #1918 from owncloud/bumnp-core-commit-id-20210414
[tests-only] Bump core commit id
2021-04-15 08:32:37 +05:45
Jörn Friedrich Dreyer 01160c3941 add storage architecture overview
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-14 15:02:27 +00:00
Phil Davis b26b03165f [tests-only] Bump core commit id 2021-04-14 20:06:05 +05:45
Phil Davis 7ff66dd65b Automated changelog update [skip ci] 2021-04-14 14:20:16 +00:00
Phil Davis 642454f7cc Merge pull request #1919 from owncloud/update-reva
update reva to v1.6.1-0.20210414111318-a4b5148cbfb2
2021-04-14 20:04:46 +05:45
David Christofas 94ec263d89 update reva to v1.6.1-0.20210414111318-a4b5148cbfb2 2021-04-14 15:24:04 +02:00
Alex Unger b34d8253e0 Automated changelog update [skip ci] 2021-04-14 12:26:56 +00:00
Alex Unger 85550a3a35 Merge pull request #1917 from ishank011/registry-json 2021-04-14 14:26:30 +02:00
Alex Unger 20bc2a2b8c Automated changelog update [skip ci] 2021-04-14 12:10:51 +00:00
Alex Unger 58f5e69229 Merge pull request #1916 from ishank011/publicshares 2021-04-14 14:10:20 +02:00
Ishank Arora 0241467958 Add error log for failing to read from json file 2021-04-14 13:34:47 +02:00
Ishank Arora f926b60b1d Add janitor options to json driver 2021-04-14 13:05:14 +02:00
Ishank Arora 3a6fb0e0fc Add changelog 2021-04-14 13:00:02 +02:00
Ishank Arora 8ee5aac82b Add option to read registry rules from json file 2021-04-14 12:57:55 +02:00
Ishank Arora 7ca9e12116 Public share SQL driver config 2021-04-14 12:48:35 +02:00
Willy Kloucek 4100541baf Merge pull request #1915 from owncloud/remove_microbadger
remove microbadger update
2021-04-14 11:12:52 +02:00
Willy Kloucek a6559c8289 remove microbadger update 2021-04-14 09:53:35 +02:00
Alex Unger f98347d841 Merge pull request #1912 from owncloud/add_logtostderr=true
add logtostderr=true to protobuf generation
2021-04-14 09:51:00 +02:00
Willy Kloucek 28679c48ca Merge pull request #1914 from owncloud/replace_legacy_dockerhub_readme
replace legacy sheogorath/readme-to-dockerhub with chko/docker-pushrm
2021-04-14 09:44:36 +02:00
Alex Unger d63a79a0ba Merge pull request #1910 from owncloud/gh-ocis-1825 2021-04-13 19:59:26 +02:00
A.Unger ca0cc93252 update mods yet again 2021-04-13 16:19:11 +02:00
A.Unger 12ef07244c Merge branch 'master' into gh-ocis-1825 2021-04-13 16:15:17 +02:00
A.Unger c170e96b5f update modules? 2021-04-13 16:10:01 +02:00
Alex Unger b4e2c338ec Merge pull request #1911 from ishank011/gh-ocis-1825 2021-04-13 15:57:40 +02:00
Ishank Arora ded4abbd55 Set default user backend to accounts 2021-04-13 15:02:07 +02:00
Willy Kloucek 2bd67c2328 readd description 2021-04-13 14:45:56 +02:00
Willy Kloucek 475b2d14d8 replace legacy sheogorath/readme-to-dockerhub with chko/docker-pushrm 2021-04-13 14:41:44 +02:00
A.Unger 985b83a282 guard against returning admin user groups instead the requested user groups 2021-04-13 14:28:09 +02:00
Ishank Arora ffe3a17b73 Add proxy to go.mod 2021-04-13 14:25:00 +02:00
Ishank Arora 8b3a18ac8c Log if reva client cannot be generated 2021-04-13 14:14:51 +02:00
Ishank Arora 52f9d15b2b Minor fixes 2021-04-13 13:54:15 +02:00
Ishank Arora 9a590b37dc Revert to using user in context 2021-04-13 13:48:01 +02:00
Ishank Arora fff0c7499a Fixes 2021-04-13 13:35:40 +02:00
Ishank Arora 9a2a3bf229 Make accounts backend configurable in ocs 2021-04-13 13:28:19 +02:00
Jörn Friedrich Dreyer 095f596a06 move ports to dedicated file
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-04-13 10:15:47 +00:00
Ishank Arora 1b0b14512c Read UID and GID from the opaque object for CS3 proxy backend 2021-04-13 11:52:22 +02:00
A.Unger c6951d2e05 guard against possible empty groups 2021-04-13 11:48:11 +02:00
Willy Kloucek a4f5e223fa add logtostderr=true 2021-04-13 11:08:03 +02:00
A.Unger f23cf92153 interpret user from the IDP 2021-04-13 10:48:06 +02:00
Willy Kloucek 158015112d Merge pull request #1908 from owncloud/remove_go_micro_smaller_than_v2
remove micro smaller than v2
2021-04-13 10:28:36 +02:00
Willy Kloucek 708133ab08 fixes #1475 2021-04-13 09:29:24 +02:00
Willy Kloucek 955bd60edf Merge pull request #1907 from owncloud/highlight_demo_users
[docs-only] highlight demo users
2021-04-13 08:35:22 +02:00
Willy Kloucek 8a34f2550d unify links 2021-04-13 08:32:48 +02:00
Willy Kloucek a05b463069 highlight demo users 2021-04-12 18:41:16 +02:00
Willy Kloucek 9b95e9b119 Merge pull request #1902 from owncloud/update_ci_deps
update ci deps
2021-04-12 12:57:47 +02:00
Willy Kloucek b789c02166 revert to nodejs:14 2021-04-12 09:23:34 +02:00
Willy Kloucek df6cd1cb16 replace source 2021-04-12 09:11:48 +02:00
Willy Kloucek 5e8d477036 use bash 2021-04-12 08:40:54 +02:00
dependabot[bot] 8c25b5d517 Bump eslint from 7.22.0 to 7.24.0 in /accounts
Bumps [eslint](https://github.com/eslint/eslint) from 7.22.0 to 7.24.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.22.0...v7.24.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-12 06:01:05 +00:00
A.Unger ed99fb8292 assign user role if user exists but there are no role assignments 2021-04-09 14:15:47 +02:00
Willy Kloucek e41db209de update ci deps 2021-04-09 12:38:24 +02:00
Alex Unger 09f0ba44d4 Merge pull request #1894 from owncloud/add_vscode_debug 2021-04-07 17:26:42 +02:00
Willy Kloucek a0d9f63098 Merge pull request #1897 from owncloud/owncloud.dev
adapt to owncloud.dev
2021-04-07 15:06:28 +02:00
Willy Kloucek e3c7555211 remove json comments 2021-04-07 13:45:09 +02:00
Willy Kloucek 4581e9cdd1 add gitignore 2021-04-07 13:44:20 +02:00
Willy Kloucek 6020a37640 adapt to owncloud.dev 2021-04-07 13:40:12 +02:00
Phil Davis 588509b8e4 Merge pull request #1890 from owncloud/bumpCoreCommitId-2020-03-30
[tests-only] updated core commit to the latest upto 2021/04/06
2021-04-07 13:07:23 +05:45
Phil Davis b13914b022 Merge pull request #1896 from owncloud/dirkstascheit-patch-1
[docs-only] Update getting-started.md
2021-04-07 08:13:56 +05:45
Dirk Stascheit 481f9c045a Update getting-started.md
updated package links from 1.2 to 1.4
2021-04-06 17:06:57 +02:00
Willy Kloucek b2bc4421a1 add vscode debug config 2021-04-06 13:41:31 +02:00
Willy Kloucek d78dcd1986 Automated changelog update [skip ci] 2021-04-06 11:37:19 +00:00
Willy Kloucek 1fdffedc4f Merge pull request #1892 from owncloud/change_default_thumbnails_path
change default path for thumbnails
2021-04-06 13:36:48 +02:00
Willy Kloucek 076d8c0661 Merge pull request #1884 from owncloud/update_1.3_to_1.4
[docs-only] add breaking change to changelog and update strategy
2021-04-06 13:31:02 +02:00
Willy Kloucek 80a158ba4a change default path for thumbnails 2021-04-06 11:20:48 +02:00
Parajuli Kiran b598eb7caa updated line numbers in expected failures file 2021-04-06 11:33:12 +05:45
Parajuli Kiran 9add66609d updated core commit to the latest upto 2021/03/30 2021-04-06 10:15:06 +05:45
Phil Davis 024b5f2283 Automated changelog update [skip ci] 2021-04-03 07:07:32 +00:00
Phil Davis afe16be7d9 Merge pull request #1888 from wnienhaus/fix-unaligned-atomic-operation-on-arm32
move uint64s to beginning of struct to ensure they are 64-bit aligned
2021-04-03 12:48:14 +05:45
Wilko Nienhaus 011c6b76ee move uint64s to beginning of struct to ensure they are 64-bit aligned
See https://golang.org/pkg/sync/atomic/#pkg-note-BUG for reference:
"The first word in (...) an allocated struct (...) can be relied up to
be 64-bit aligned"

This fixes an "unaligned 64-bit atomic operation" panic on 32-bit ARM,
(in my case a Raspberry Pi 4, running 32-bit Raspbian). The panic
happens (at least) during the first login after a service (re)start.
2021-04-02 10:35:29 +03:00
Willy Kloucek f6ad814332 Merge pull request #1882 from labkode/fix-env-var
fix case for envar
2021-04-01 10:57:29 +02:00
Willy Kloucek 1de4d8b271 add breaking change to changelog and update strategy 2021-04-01 10:40:22 +02:00
Hugo Gonzalez Labrador 5982e9fe56 fix case for envar 2021-03-31 16:55:55 +02:00
Willy Kloucek 399c33fe2f Automated changelog update [skip ci] 2021-03-31 10:56:47 +00:00
Willy Kloucek 3f37ddb5a2 Merge pull request #1875 from owncloud/fix_proto
unique proto package names
2021-03-31 12:56:16 +02:00
Alex Unger 0dadf6f6a9 Automated changelog update [skip ci] 2021-03-31 10:38:10 +00:00
Alex Unger c5d9afdc58 Merge pull request #1872 from owncloud/enforce_quota
enforce quota
2021-03-31 12:37:34 +02:00
Florian Schade 29c4a34093 Automated changelog update [skip ci] 2021-03-31 10:26:31 +00:00
Florian Schade 89da2b0ed1 Merge pull request #1880 from owncloud/release-1.4.0
merge back release 1.4.0
2021-03-31 12:26:01 +02:00
Willy Kloucek 9bc0cb49c1 fix go import and makefiles, version bump of build tools 2021-03-31 12:03:42 +02:00
Willy Kloucek 2f831c4fca fix proto package names 2021-03-31 08:02:43 +02:00
Florian Schade 1ba10d97e8 create release changelog folder 2021-03-30 16:32:34 +02:00
Florian Schade fbe825bedc link pr 2021-03-30 16:29:52 +02:00
Florian Schade e26243ddf3 use web 2.1.0 changelog for release notes 2021-03-30 16:29:52 +02:00
Patrick Maier eeafcf8cfd [docs-only] 1.4.0 Release Notes 2021-03-30 16:29:52 +02:00
Florian Schade 14c0371f94 link pr 2021-03-30 16:24:48 +02:00
Florian Schade 686df71eeb use web 2.1.0 changelog for release notes 2021-03-30 16:24:48 +02:00
Patrick Maier 06e2154265 [docs-only] 1.4.0 Release Notes 2021-03-30 16:24:48 +02:00
Florian Schade aa1c03aae2 fix unreleased changelog for jpeg 2021-03-30 11:44:58 +02:00
Willy Kloucek 31a0389fbc enforce quota 2021-03-30 10:55:58 +02:00
Pascal Wengerter 169962b4cf Automated changelog update [skip ci] 2021-03-29 14:01:12 +00:00
Pascal Wengerter 320679ca91 Merge pull request #1870 from owncloud/update-web-2.1.0
Update web to 2.1.0
2021-03-29 14:57:39 +01:00
Pascal Wengerter e27c320fa1 Update web to 2.1.0 2021-03-29 09:32:06 +01:00
Phil Davis 697b7cae27 Automated changelog update [skip ci] 2021-03-29 08:11:19 +00:00
Phil Davis c4cbe32c29 Merge pull request #1861 from owncloud/update-reva
update reva to v1.6.1-0.20210326165326-e8a00d9b2368
2021-03-29 13:55:21 +05:45
Artur Neumann 523e611b7e Merge pull request #1863 from owncloud/dependabot/npm_and_yarn/settings/nightwatch-1.6.0
Bump nightwatch from 1.5.1 to 1.6.0 in /settings
2021-03-29 13:37:11 +05:45
Phil Davis 5723bd28e2 Adjust trashbin expected failures on OCIS 2021-03-29 12:57:36 +05:45
dependabot[bot] 41079a1810 Bump @rollup/plugin-replace from 2.4.1 to 2.4.2 in /onlyoffice
Bumps [@rollup/plugin-replace](https://github.com/rollup/plugins) from 2.4.1 to 2.4.2.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/replace-v2.4.1...replace-v2.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 06:27:41 +00:00
dependabot[bot] dabff59d27 Bump nightwatch from 1.5.1 to 1.6.0 in /settings
Bumps [nightwatch](https://github.com/nightwatchjs/nightwatch) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/nightwatchjs/nightwatch/releases)
- [Commits](https://github.com/nightwatchjs/nightwatch/compare/v1.5.1...v1.6.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 05:56:47 +00:00
David Christofas bcffed2e00 update reva to v1.6.1-0.20210326165326-e8a00d9b2368 2021-03-29 05:11:23 +05:45
Phil Davis b25ef84017 Merge pull request #1862 from owncloud/bumpCoreCommitId-2020-03-27
[tests-only] bumped core commit id for API tests
2021-03-27 18:07:30 +05:45
Parajuli Kiran 808e93ff4c updated line numbers in expected failures file 2021-03-27 15:11:30 +05:45
Parajuli Kiran dbfb17788c bumped core commit id for api tests 2021-03-27 13:49:52 +05:45
Alex Unger eab96d59a8 Automated changelog update [skip ci] 2021-03-26 12:02:06 +00:00
Alex Unger 95b69a5e5d Merge pull request #1819 from owncloud/refactor-extensions 2021-03-26 13:01:35 +01:00
Alex Unger ed8d85077c Merge pull request #1852 from owncloud/onlyoffice-update-npm-dependencies
update npm dependencies
2021-03-26 11:47:34 +01:00
Alex Unger e829ac8f88 Merge pull request #1849 from owncloud/settings-update-npm-dependencies
update npm dependencies
2021-03-26 11:47:11 +01:00
Alex Unger 8c00a0cf8c Merge pull request #1851 from owncloud/accounts-update-npm-deps
update npm dependencies
2021-03-26 11:47:04 +01:00
A.Unger c5bef3609b add changelog 2021-03-26 11:44:36 +01:00
A.Unger d95d58c66a Merge branch 'master' into refactor-extensions 2021-03-26 11:40:10 +01:00
Phil Davis 00dd4460ae Merge pull request #1855 from owncloud/bumpCoreCommitId-2020-03-25
[tests-only] Bump core commit id 2020 03 25
2021-03-26 08:57:29 +05:45
Phil Davis c208b12eb1 Adjust expected-failures in apiWebdavLocksUnlock suite 2021-03-26 08:07:41 +05:45
Parajuli Kiran c32e342487 updated core commit id with expected failures line numbers 2021-03-26 06:51:16 +05:45
Parajuli Kiran 5fe83f62c7 updated core commit id with expected failures line numbers 2021-03-26 06:51:16 +05:45
David Christofas 4511ca9770 update npm dependencies 2021-03-25 21:34:26 +01:00
David Christofas f39e51e57b update npm dependencies 2021-03-25 21:33:11 +01:00
Jan Ackermann e28bdca121 Merge pull request #1857 from owncloud/l10n-improvements-accounts-settings
Adden l10n to accounts and settings
2021-03-25 19:33:11 +01:00
JanAckermann 316d838f90 Adden l10n to accounts and settings 2021-03-25 17:24:06 +01:00
Jan Ackermann 7a72f52067 [tx] updated from transifex 2021-03-25 15:52:43 +00:00
Jan Ackermann 4bfdd604d1 Merge pull request #1854 from owncloud/ocis-l10n-fix2
fix clean deletes translations.js
2021-03-25 16:48:42 +01:00
JanAckermann fd2668a163 fix clean deletes translations.js 2021-03-25 15:57:10 +01:00
Jan Ackermann df8fb3097b [tx] updated from transifex 2021-03-25 14:39:07 +00:00
Jan Ackermann 0a5c0383c7 Merge pull request #1853 from owncloud/ocis-l10n-fix
added missing push command
2021-03-25 15:35:34 +01:00
JanAckermann 68bf78dc5b added missing push command 2021-03-25 14:43:45 +01:00
David Christofas 8f45adbcf8 update npm dependencies 2021-03-25 14:40:49 +01:00
Jan Ackermann 3017b02219 Merge pull request #1842 from owncloud/ocis-l10n
added l10n
2021-03-25 13:52:55 +01:00
Willy Kloucek 0b3db9a9d9 fix PATH 2021-03-25 12:58:49 +01:00
Willy Kloucek 79ca3116c9 wip 2021-03-25 12:10:52 +01:00
JanAckermann 35463646e4 added l10n 2021-03-25 12:01:37 +01:00
Phil Davis bbcea23e85 Merge pull request #1841 from owncloud/bumpCoreCommitId
[tests-only] updated latest core commit id
2021-03-25 05:22:16 +05:45
Phil Davis abd657e644 Merge pull request #1844 from owncloud/update_alpine_base_image
update alpine base image to 3.13
2021-03-25 05:20:49 +05:45
Phil Davis 26f7464bfb Merge pull request #1843 from owncloud/update_bingo
update bingo to go 1.16 compatible release
2021-03-25 05:20:08 +05:45
Willy Kloucek 5ae42173bb Merge pull request #1835 from owncloud/allow_dynamic_client_registration
[deployment examples]  Keycloak: allow dynamic client registration from any host
2021-03-24 18:17:44 +01:00
Parajuli Kiran c705ca9d21 Updated scenarios line numbers in expected failure files 2021-03-24 21:57:20 +05:45
Parajuli Kiran 31eee73cdf updated latest core commit id 2021-03-24 21:57:20 +05:45
Willy Kloucek edb733baf3 allow dynamic client registration from any host 2021-03-24 16:45:28 +01:00
Willy Kloucek 4e224e6304 properly set up .dockerignore 2021-03-24 16:44:31 +01:00
Willy Kloucek a7f0bac2a0 fix to alpine:3.13 2021-03-24 16:44:31 +01:00
Willy Kloucek 4c769e0d33 update alpine base image to 3.14 2021-03-24 16:44:31 +01:00
Willy Kloucek 0e71d8c8a7 update bingo to go 1.16 compatible release 2021-03-24 16:43:27 +01:00
Willy Kloucek dbe2a2a61e Merge pull request #1845 from owncloud/fix_eos_test
bump go version for eos test
2021-03-24 16:38:52 +01:00
Willy Kloucek be8441aa9a bump go version for eos test 2021-03-24 15:32:41 +01:00
Willy Kloucek 90f5eeaca4 Automated changelog update [skip ci] 2021-03-24 12:24:16 +00:00
Willy Kloucek d18b6d71d6 Merge pull request #1833 from owncloud/update_reva
update Reva and Go
2021-03-24 13:23:33 +01:00
Willy Kloucek 1314aacece switch to owncloudci/golang:1.16 2021-03-24 11:17:25 +01:00
Willy Kloucek bd49b1d5c7 change volume 2021-03-24 10:28:40 +01:00
Willy Kloucek daf18e486c try golang 2021-03-24 10:07:50 +01:00
Willy Kloucek a6da51c43b fix expected failures and add changelog 2021-03-23 14:43:25 +01:00
Willy Kloucek 8f058b5867 edit expected failures 2021-03-23 13:57:53 +01:00
Willy Kloucek 5a5d3af8f2 update go 2021-03-23 13:41:16 +01:00
Willy Kloucek fa040cf56f update reva 2021-03-23 13:41:11 +01:00
Alex Unger 39937cec1b Merge pull request #1817 from owncloud/migration-adr-docs 2021-03-23 12:19:23 +01:00
Phil Davis 3ba9005992 Merge pull request #1832 from owncloud/bump-core-commit-id
[tests-only] bump commit id for api tests
2021-03-23 13:29:54 +05:45
Parajuli Kiran 54164e7491 Updated expected failures for owncloud & ocis storage 2021-03-23 12:30:52 +05:45
Parajuli Kiran 958895a96b Bump commit id for api tests 2021-03-23 12:16:15 +05:45
Pascal Wengerter e9c09cce43 Merge pull request #1834 from owncloud/22032021_fix_extension_ports
[docs-only] Fix typo and update http->https, port numbers
2021-03-22 16:19:09 +00:00
Pascal Wengerter 356aa6b523 Fix further URL and small wording improvements 2021-03-22 16:10:29 +00:00
Pascal Wengerter 3be69e45bd Fix typo and update http->https, port numbers 2021-03-22 14:40:57 +00:00
Willy Kloucek 3b2ce2f12d Automated changelog update [skip ci] 2021-03-22 07:41:49 +00:00
Willy Kloucek 1fa2c5f3a0 Merge pull request #1824 from owncloud/update-build-target
Update Build Targets
2021-03-22 08:41:20 +01:00
Jörn Friedrich Dreyer 63abba7e6a more data details, readd adr
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-19 15:35:30 +00:00
A.Unger 48fe247a03 add changelog 2021-03-19 10:50:30 +01:00
A.Unger 45256a4988 add build-all target 2021-03-19 10:47:11 +01:00
A.Unger 5582519b1e make build-debug as its own target 2021-03-19 10:44:45 +01:00
Jörn Friedrich Dreyer 7a295da3ff add tables, move adr
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-19 09:29:48 +00:00
Jörn Friedrich Dreyer ec0e962c7b Merge pull request #1621 from owncloud/refine-adr
[docs-only] Refine adrs
2021-03-19 10:13:25 +01:00
Jörn Friedrich Dreyer f8d3e514c5 cosmetics
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-19 08:49:12 +00:00
Jörn Friedrich Dreyer 291710deb9 incorporate comments
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-19 08:49:12 +00:00
Jörn Friedrich DreyerandAlex Unger 6c66c755f4 Apply suggestions from code review
Co-authored-by: Alex Unger <6905948+refs@users.noreply.github.com>
2021-03-19 08:49:12 +00:00
Jörn Friedrich Dreyer cd28ac3fbd initial migration docs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-19 08:49:12 +00:00
Alex Unger ebba4f1bd6 Merge pull request #1821 from owncloud/doc-warn-firewall 2021-03-19 09:31:50 +01:00
Klaas Freitag 6692c63517 Reworded based on review feedback. 2021-03-19 08:56:13 +01:00
Artur Neumann 617e5a9039 Merge pull request #1823 from owncloud/bump-commit-id-20210318
[tests-only] Bump commit id for tests
2021-03-19 08:54:37 +05:45
Phil Davis 7440c2284b Bump commit id for tests 2021-03-19 03:46:59 +05:45
Alex Unger dc03cce6aa Automated changelog update [skip ci] 2021-03-18 16:39:24 +00:00
Alex Unger d183cdb742 Merge pull request #1822 from owncloud/runtime-hostname-port-configurable 2021-03-18 17:36:33 +01:00
A.Unger 61a15be7a8 update default port to 9250 2021-03-18 15:38:36 +01:00
A.Unger 25ea46324f add changelog + rename OCIS_RUNTIME_HOSTNAME -> OCIS_RUNTIME_HOST 2021-03-18 15:27:45 +01:00
A.Unger 385d6ecc48 make runtime port and host configurable 2021-03-18 15:23:36 +01:00
Klaas Freitag fbfc10b65e Add warning about firewall configuration. 2021-03-18 13:16:28 +01:00
A.Unger 61bd6be0ad refactor webdav tracing config 2021-03-18 12:30:02 +01:00
A.Unger 3ec71d0da2 refactor web tracing config 2021-03-18 12:29:06 +01:00
A.Unger 6af43cc150 refactor thumbnails tracing config 2021-03-18 12:28:01 +01:00
A.Unger 338c8c6942 refactor store tracing config 2021-03-18 12:26:49 +01:00
A.Unger 02bfa9509b refactor proxy tracing config 2021-03-18 12:25:23 +01:00
A.Unger 192e3fbd00 refactor onlyoffice tracing config 2021-03-18 12:24:07 +01:00
A.Unger 8b48a3223f refactor ocs tracing config 2021-03-18 12:23:07 +01:00
A.Unger 3872cb07ed refactor idp tracing config 2021-03-18 12:11:52 +01:00
A.Unger cd41f1c8dc refactor graph-explorer tracing config 2021-03-18 12:10:36 +01:00
A.Unger 1d49a267f2 handle error + refactor graph tracing config 2021-03-18 12:09:00 +01:00
A.Unger 9a53c41552 refactor glauth tracing config 2021-03-18 12:05:08 +01:00
A.Unger f53d00b4ff refactor users tracing config 2021-03-18 11:51:56 +01:00
A.Unger 43675c4f14 refactor storage-users tracing config 2021-03-18 11:50:16 +01:00
A.Unger 938f6e8d73 refactor storage-public-link tracing config 2021-03-18 11:49:09 +01:00
A.Unger 07ecf3199c refactor storage-metadata tracing config 2021-03-18 11:47:51 +01:00
A.Unger 0e3b97ac03 refactor storage-home tracing config 2021-03-18 11:45:23 +01:00
A.Unger c8e7a75d54 refactor sharing tracing config 2021-03-18 11:43:50 +01:00
A.Unger 604cab3e63 refactor groups tracing config 2021-03-18 11:38:43 +01:00
A.Unger 44fe360ef5 refactor gateway tracing config 2021-03-18 11:36:54 +01:00
A.Unger f407686404 refactor a authbasic storage tracing config 2021-03-18 11:04:12 +01:00
A.Unger 9dd2cfa2e9 refactor a authbearer storage tracing config 2021-03-18 10:57:15 +01:00
A.Unger cd1e4419c8 Merge branch 'master' into refactor-extensions 2021-03-18 10:51:23 +01:00
A.Unger 0092c74959 refactor a reva storage tracing config 2021-03-18 10:50:54 +01:00
Phil Davis 29897cafaf Merge pull request #1818 from owncloud/bump-commit-ids-20210318
[tests-only] Bump core and web commit ids
2021-03-18 15:32:43 +05:45
A.Unger 0b448f6e02 refactor accounts tracing and server method 2021-03-18 10:31:30 +01:00
Phil Davis cee8794101 Bump core and web commit ids 2021-03-18 14:30:42 +05:45
Alex Unger 2e37c42d57 Automated changelog update [skip ci] 2021-03-17 21:52:29 +00:00
Alex Unger 4d021ae9bc Merge pull request #1816 from owncloud/file-logging-ocis-1666 2021-03-17 22:51:30 +01:00
A.Unger 192fa11d59 add changelog 2021-03-17 16:57:44 +01:00
A.Unger 8a64b190a2 fix debug lines 2021-03-17 16:05:48 +01:00
A.Unger 9c6e8d7bf3 defensive code 2021-03-17 15:59:05 +01:00
A.Unger fa27def950 suport for proxy 2021-03-17 15:42:24 +01:00
A.Unger c04abb9f47 suport for accounts 2021-03-17 15:41:36 +01:00
A.Unger 094af97b95 suport for webdav 2021-03-17 15:40:23 +01:00
A.Unger 9daf14e124 suport for web 2021-03-17 15:39:24 +01:00
A.Unger ed6bdc77b8 suport for thumbnails 2021-03-17 15:38:37 +01:00
A.Unger 314014ae21 suport for store 2021-03-17 15:37:35 +01:00
A.Unger bf63bc8c7c suport for onlyoffice 2021-03-17 15:36:37 +01:00
A.Unger e15e33d873 suport for ocs 2021-03-17 15:35:32 +01:00
A.Unger 1c7b97ab88 suport for graph-explorer 2021-03-17 15:33:21 +01:00
A.Unger 4f3ebb710c suport for graph 2021-03-17 15:31:51 +01:00
A.Unger abd18e3101 Merge branch 'master' into file-logging-ocis-1666 2021-03-17 15:28:16 +01:00
Alex Unger 05f60af349 Merge pull request #1815 from owncloud/cleanup-runtime
Cleanup from Runtime
2021-03-17 15:27:55 +01:00
A.Unger 8a3e280d83 initial support for file logging 2021-03-17 15:26:43 +01:00
A.Unger 41f4a633f5 add config-file flag to ocis, propagate log config to graph & graph-explorer 2021-03-17 10:58:28 +01:00
Jannik Stehle 732db59bcf Automated changelog update [skip ci] 2021-03-17 08:47:31 +00:00
Jannik Stehle 2fe3ffb637 Merge pull request #1813 from owncloud/issues/login-page-title
Replace special character in login page title with a regular minus
2021-03-17 09:46:34 +01:00
Jannik Stehle bfcab42fc2 Replace special character in login page title with a regular minus 2021-03-17 08:44:44 +01:00
Artur Neumann 0d5ac2e5da Merge pull request #1814 from owncloud/bump-commit-id-20210316
[tests-only] Bump commit ids for tests
2021-03-17 09:04:43 +05:45
Phil Davis 1f27ea4aa2 Bump commit ids for tests 2021-03-17 08:00:40 +05:45
Artur Neumann 14493d958e Merge pull request #1786 from owncloud/bumpCommitId
[Tests-Only] Bump core and web commit id
2021-03-16 09:03:02 +05:45
Jörn Friedrich Dreyer 208f19ce4b Merge pull request #1762 from owncloud/ocis-1715-lighter-runtime
Lighter Runtime
2021-03-15 17:28:51 +01:00
Jörn Friedrich Dreyer 9fa77a27ba fix graph and graph-explorer
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-15 15:17:29 +00:00
Benedikt Kulmann fa7cce9e98 Automated changelog update [skip ci] 2021-03-15 15:13:06 +00:00
Benedikt Kulmann 39a7a6a500 Merge pull request #1811 from owncloud/improve-idp-login-accessibility
Improve idp login acessibility
2021-03-15 16:10:43 +01:00
JanAckermann 2c41d99587 updated changelog item 2021-03-15 15:01:12 +01:00
JanAckermann 808282864f Improve idp login acessibility 2021-03-15 14:39:55 +01:00
HariBhandari07 d5316a61a3 [Tests-Only] Bump core and web commit id 2021-03-15 18:38:04 +05:45
Willy Kloucek f3df994c2d Merge pull request #1805 from owncloud/idp-update-npm-deps
update npm dependencies
2021-03-15 08:30:53 +01:00
A.Unger 5594c142dd fix offense 2021-03-13 21:52:00 +01:00
A.Unger 837b1ba96d upper case share 2021-03-13 14:22:52 +01:00
A.Unger 4af261d6ed Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-13 13:35:46 +01:00
Phil Davis c804ed6065 Merge pull request #1801 from owncloud/fix_build_docs
[docs-only] fix build instructions
2021-03-13 11:26:22 +05:45
Phil Davis 5d15b0c86d Apply suggestions from code review of build.md 2021-03-13 11:15:14 +05:45
A.Unger 04fa140c76 Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-12 22:59:44 +01:00
A.Unger 3fafbc88bd fix typos 2021-03-12 21:26:56 +01:00
David Christofas eeba03c727 update npm dependencies 2021-03-12 17:49:54 +01:00
A.Unger 2d5107fda3 add webdav to new config scheme 2021-03-12 17:14:59 +01:00
A.Unger 26f333dece add web to new config scheme 2021-03-12 17:12:29 +01:00
A.Unger 96447d50b9 add thumbnails to new config scheme 2021-03-12 17:07:57 +01:00
A.Unger dff486a737 add store to new config scheme 2021-03-12 17:03:43 +01:00
A.Unger f77d4eb67a add settings to new config scheme 2021-03-12 17:00:36 +01:00
A.Unger df3d563aac add onlyoffice to new config scheme 2021-03-12 16:54:41 +01:00
A.Unger e132be0db6 add ocs to new config scheme 2021-03-12 16:51:28 +01:00
Benedikt Kulmann fbfa38c484 Automated changelog update [skip ci] 2021-03-12 15:47:08 +00:00
Benedikt Kulmann ee9457c645 Merge pull request #1794 from owncloud/issues/WEB-105
Added labels for username and password input in idp service
2021-03-12 16:46:27 +01:00
A.Unger 49f7266d6e add all storages to new config scheme 2021-03-12 16:45:23 +01:00
Willy Kloucek d922c1266e Merge pull request #1778 from owncloud/fix_ci_go_warnings
[CI-only] suppress `bash: go: command not found` warnings
2021-03-12 15:57:55 +01:00
Jan Ackermann de9b43ed7c Update add-labels-and-aria-labelled-by-on-login.md 2021-03-12 15:23:51 +01:00
A.Unger fb460f794f add storage-metadata to new config scheme 2021-03-12 15:17:06 +01:00
David Christofas 77bf0d4cee Merge pull request #1803 from owncloud/settings-update-npm-dependencies
update npm dependencies
2021-03-12 14:40:34 +01:00
A.Unger eb44997e43 add graph to new config scheme 2021-03-12 14:19:40 +01:00
A.Unger db1b09c873 add glauth to new config scheme 2021-03-12 14:13:06 +01:00
Willy Kloucek 43038e8c4b Merge pull request #1802 from mrkara/fixBrokenLink
[docs-only] Fix broken link on _index.md
2021-03-12 14:11:45 +01:00
A.Unger f0c1d59672 add idp to new config scheme 2021-03-12 14:03:52 +01:00
A.Unger c1f489a258 update config parsing for accounts and proxy 2021-03-12 13:47:52 +01:00
JanAckermann c586443609 Added labels and aria properties for username and password input in idp service 2021-03-12 11:33:43 +01:00
A.Unger 3901680fba example of refactoring settings tracing away 2021-03-12 10:56:20 +01:00
David Christofas f04af83858 update npm dependencies 2021-03-12 10:49:13 +01:00
Muhammet Kara 13b4c871cf Fix broken link on _index.md
Signed-off-by: Muhammet Kara <muhammet.kara@collabora.com>
2021-03-12 12:31:59 +03:00
Willy Kloucek 42acd46b3a fix build instructions 2021-03-12 09:45:28 +01:00
A.Unger b52fe95762 run ParseConfig only when running unsupervised 2021-03-11 20:09:05 +01:00
A.Unger dc4b4b7e46 correctly implement suture v4 interfaces 2021-03-11 15:50:01 +01:00
A.Unger 99ad1cdd25 return ocis log level to warning 2021-03-11 13:05:17 +01:00
A.Unger 1df0d2d95f Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-11 13:00:22 +01:00
Phil Davis b892b5e501 Merge pull request #1795 from mrkara/updateDocsRunCommand
[docs-only] Update development build.md
2021-03-11 16:41:00 +05:45
Muhammet Kara a72059e50b Update development build.md
To fix incorrect usage of the 'help requested' flag

Signed-off-by: Muhammet Kara <muhammet.kara@collabora.com>
2021-03-11 13:38:25 +03:00
David Christofas f2dcc93e31 Automated changelog update [skip ci] 2021-03-11 09:19:36 +00:00
David Christofas 11dd0ae2d8 Merge pull request #1791 from owncloud/thumbnails-support-gifs
add support for gifs to the thumbnails service
2021-03-11 10:18:39 +01:00
A.Unger 8f67dd3b08 fix sonar smells 2021-03-11 09:38:10 +01:00
Jannik Stehle 84911d12a3 Automated changelog update [skip ci] 2021-03-11 07:38:45 +00:00
Jannik Stehle 8f9e1dd5d8 Merge pull request #1792 from owncloud/issues/web-4322
Add focus to input elements on login page
2021-03-11 08:37:20 +01:00
David Christofas b490e32d7d add support for gifs to the thumbnails service 2021-03-10 17:29:26 +01:00
Jannik Stehle cdeda5c012 Include updated embed.go file for the idp app 2021-03-10 17:23:37 +01:00
A.Unger d3af1eacfb kill and start correctly 2021-03-10 17:02:06 +01:00
A.Unger 4ee52cc9cd copy config, since it is shared 2021-03-10 16:35:11 +01:00
Jannik Stehle 83a7103620 Add focus to input elements on login page 2021-03-10 16:23:05 +01:00
Jörn Friedrich Dreyer 9424caede8 list running services
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-10 15:12:50 +00:00
A.Unger b19e739137 increase logging 2021-03-10 16:03:59 +01:00
A.Unger 117829515b supervisor logging 2021-03-10 15:40:43 +01:00
A.Unger a145ddf2b2 Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-10 14:46:13 +01:00
Willy Kloucek 6f9df9830b Automated changelog update [skip ci] 2021-03-10 13:34:27 +00:00
Willy Kloucek a9a02c2ea6 Merge pull request #1788 from owncloud/release-1.3.0
merge back release 1.3.0
2021-03-10 14:31:39 +01:00
Phil Davis a8ea9cc94e Automated changelog update [skip ci] 2021-03-10 13:16:51 +00:00
Phil Davis bcfd6acd87 Merge pull request #1790 from owncloud/clarify-expected-failures
clarify expected failures
2021-03-10 19:00:25 +05:45
Jörn Friedrich Dreyer 40eec3460b clarify expected failures
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-10 12:15:54 +00:00
A.Unger a473780c9d add accounts to delayed 2021-03-10 12:34:23 +01:00
A.Unger 6054e6b4a1 sequential access to viper config (still broken) + add delayed execution to storage-sharing 2021-03-10 12:26:14 +01:00
David Christofas f4c1c063fa Automated changelog update [skip ci] 2021-03-10 11:20:51 +00:00
David Christofas 17a700f0a2 Merge pull request #1785 from owncloud/fix-jpeg-thumbnails
fix jpeg thumbnails
2021-03-10 12:05:54 +01:00
A.Unger 0d3350497a Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-10 11:45:43 +01:00
A.Unger e8c57394d8 fix debug services shutdown 2021-03-10 11:38:21 +01:00
A.Unger 4e37d4a2f6 update commands when running in supervised mode 2021-03-10 11:10:46 +01:00
David Christofas ff618c076a fix jpeg thumbnails 2021-03-10 10:06:19 +01:00
Michael Barz 097cc1548a Merge pull request #1783 from owncloud/relnotes_1.3
[docs-only] Add Release Notes for oCIS release 1.3.0
2021-03-10 09:53:15 +01:00
Phil Davis 457ff589be Apply suggestions from 1.3.0 release notes review 2021-03-10 05:35:15 +05:45
Phil Davis 4e62350696 Merge pull request #1784 from owncloud/09032021_update_docs
[docs-only] Fix broken sample user password, improve readability
2021-03-10 05:34:28 +05:45
Pascal Wengerter ec8177d75e Fix sample user password & improve readability 2021-03-10 05:29:38 +05:45
A.Unger 25909d5923 fix duplicated key 2021-03-09 23:16:13 +01:00
A.Unger 90aea4f58d tweak proxy scalability 2021-03-09 22:58:18 +01:00
Klaas Freitag 27e3fbcf91 Add changelog for oCIS release 1.3.0 2021-03-09 20:01:44 +01:00
A.Unger 5f9133386d fix run / kill 2021-03-09 19:15:59 +01:00
A.Unger 60a1e3ce19 runtime/service cleanup 2021-03-09 17:36:47 +01:00
A.Unger 9c1a51be01 dead code 2021-03-09 17:33:18 +01:00
A.Unger f8a651bad2 propagate logging config to storages 2021-03-09 17:16:12 +01:00
Jörn Friedrich Dreyer 2bfdab8735 add remaining services
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-09 16:03:47 +00:00
A.Unger 29910838c1 rework config 2021-03-09 15:55:45 +01:00
A.Unger 757cb9abe9 wip 2021-03-09 13:10:05 +01:00
Willy Kloucek d1701b3035 conditionally include bingo 2021-03-09 11:01:46 +01:00
A.Unger 9284c232b8 undo log lines 2021-03-09 10:31:58 +01:00
Jörn Friedrich Dreyer 463aa76833 disable tls for the idp
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-08 20:26:40 +00:00
A.Unger 34257672d3 log request path instead 2021-03-08 17:18:09 +01:00
Jörn Friedrich Dreyer bb7cfb5a87 obnoxious proxy logging
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-08 16:13:19 +00:00
Jörn Friedrich Dreyer 97754be003 wait for 5 sec after the proxy is available
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-08 15:41:36 +00:00
Alex Unger 58c5ad2e2f increase logging to debug on CI 2021-03-08 13:54:39 +01:00
A.Unger 8b29f096e8 tweak drone star 2 2021-03-05 16:14:32 +01:00
A.Unger bdff8b84f8 tweak drone star 2021-03-05 16:13:49 +01:00
A.Unger 3b83e9dc93 Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-05 15:41:02 +01:00
A.Unger 6d410e596c drop dead code 2021-03-05 14:50:56 +01:00
A.Unger 074eb8d982 propagate logging using config options 2021-03-05 14:28:38 +01:00
A.Unger 277ccc8b82 patch config parsing 2021-03-05 14:08:40 +01:00
A.Unger bb2431839d prepend storage- 2021-03-04 22:39:21 +01:00
Jörn Friedrich Dreyer e4c5043ef3 make linter happy
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-04 15:37:33 +00:00
Jörn Friedrich Dreyer 9669ae3ade precreate folders to json files
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-04 15:26:03 +00:00
A.Unger 2a565b80fa Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-04 15:28:42 +01:00
A.Unger f2660dd608 add storage-sharing 2021-03-04 15:28:21 +01:00
A.Unger 01b507c4dc add storage-public-link 2021-03-04 15:25:21 +01:00
A.Unger f62c6577c4 add storage-users 2021-03-04 15:23:11 +01:00
A.Unger 59b76bc5a6 add storage-home 2021-03-04 15:20:59 +01:00
A.Unger 7e834c11d6 add storage-auth-bearer 2021-03-04 15:18:35 +01:00
A.Unger 308467b134 panic? 2021-03-04 15:14:25 +01:00
A.Unger 40ff29403f add storage-groupsprovider 2021-03-04 15:00:02 +01:00
A.Unger 255fc4bc92 leftover comment 2021-03-04 14:58:19 +01:00
A.Unger cea043c2ac add storage-gateway 2021-03-04 14:54:27 +01:00
A.Unger 30ed4233b2 add storage-frontend 2021-03-04 14:45:18 +01:00
A.Unger 66c1498ffa goimports 2021-03-04 14:39:06 +01:00
A.Unger 8aed339867 add webdav 2021-03-04 14:37:37 +01:00
A.Unger e8b1665f63 fix flag parsing 2021-03-04 14:33:16 +01:00
A.Unger 96521d23a9 add thumbnails 2021-03-04 14:08:44 +01:00
A.Unger 3c770dd118 add store 2021-03-04 14:03:06 +01:00
A.Unger e25f5b1c98 add proxy 2021-03-04 13:56:49 +01:00
A.Unger f7917bf760 add onlyoffice 2021-03-04 13:26:49 +01:00
A.Unger d0b71bf560 fix ocs 2021-03-04 13:22:32 +01:00
A.Unger 7eea714633 add idp 2021-03-04 13:10:18 +01:00
A.Unger 08e3eea6b7 add glauth 2021-03-04 13:04:37 +01:00
A.Unger 742b571a5b refactor token db away 2021-03-04 13:00:16 +01:00
A.Unger 81576c029a do not panic 2021-03-04 12:46:47 +01:00
A.Unger 58543a1415 correct usage of suture 2021-03-04 11:51:36 +01:00
A.Unger a2a921454b add accounts 2021-03-04 10:50:06 +01:00
A.Unger b806e4b902 Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-04 10:06:51 +01:00
A.Unger a385dd2011 add more todos 2021-03-03 17:37:04 +01:00
A.Unger 59de8198c6 add storage metadata to the runtime and fix its config parsing when running on supervised mode 2021-03-03 17:36:03 +01:00
A.Unger 22e3d2fd35 fix log config priority 2021-03-03 15:12:26 +01:00
A.Unger 98dd9a970f suture runtime v1 2021-03-03 15:05:21 +01:00
A.Unger a31dd155fd pull suture 2021-03-03 13:51:06 +01:00
Jörn Friedrich Dreyer 6991dd777d ocis already does the cli flag parsing
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-23 12:47:23 +00:00
Jörn Friedrich Dreyer 93c8a2a04d Refine adrs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-16 09:49:31 +00:00
Jörn Friedrich Dreyer da40f0e40d initial architecture section with efficient stat polling discussion
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-03-03 21:58:57 +01:00
1155 changed files with 83120 additions and 103583 deletions

No files matched your search

+1
View File
@@ -0,0 +1 @@
docs/ocis/adr
+1 -1
View File
@@ -1,6 +1,6 @@
# Project Development Dependencies.
This directory stores Go modules with pinned buildable packages that are used within this repository, managed by https://github.com/bwplotka/bingo.
This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo.
* Run `bingo get` to install all tools having each own module file in this directory.
* Run `bingo get <tool>` to install <tool> that have own module file in this directory.
+48 -47
View File
@@ -1,11 +1,11 @@
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.3.1. DO NOT EDIT.
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.5.1. DO NOT EDIT.
# All tools are designed to be build inside $GOBIN.
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
GOPATH ?= $(shell go env GOPATH)
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
GO ?= $(shell which go)
# Bellow generated variables ensure that every time a tool under each variable is invoked, the correct version
# Below generated variables ensure that every time a tool under each variable is invoked, the correct version
# will be used; reinstalling only if needed.
# For example for bingo variable:
#
@@ -17,17 +17,23 @@ GO ?= $(shell which go)
# @echo "Running bingo"
# @$(BINGO) <flags/args..>
#
BINGO := $(GOBIN)/bingo-v0.3.1
BINGO := $(GOBIN)/bingo-v0.5.1
$(BINGO): $(BINGO_DIR)/bingo.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/bingo-v0.3.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=bingo.mod -o=$(GOBIN)/bingo-v0.3.1 "github.com/bwplotka/bingo"
@echo "(re)installing $(GOBIN)/bingo-v0.5.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=bingo.mod -o=$(GOBIN)/bingo-v0.5.1 "github.com/bwplotka/bingo"
BUF := $(GOBIN)/buf-v0.37.1
BUF := $(GOBIN)/buf-v0.56.0
$(BUF): $(BINGO_DIR)/buf.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/buf-v0.37.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buf.mod -o=$(GOBIN)/buf-v0.37.1 "github.com/bufbuild/buf/cmd/buf"
@echo "(re)installing $(GOBIN)/buf-v0.56.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buf.mod -o=$(GOBIN)/buf-v0.56.0 "github.com/bufbuild/buf/cmd/buf"
BUILDIFIER := $(GOBIN)/buildifier-v0.0.0-20210920153738-d6daef01a1a2
$(BUILDIFIER): $(BINGO_DIR)/buildifier.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/buildifier-v0.0.0-20210920153738-d6daef01a1a2"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildifier.mod -o=$(GOBIN)/buildifier-v0.0.0-20210920153738-d6daef01a1a2 "github.com/bazelbuild/buildtools/buildifier"
CALENS := $(GOBIN)/calens-v0.2.0
$(CALENS): $(BINGO_DIR)/calens.mod
@@ -35,29 +41,17 @@ $(CALENS): $(BINGO_DIR)/calens.mod
@echo "(re)installing $(GOBIN)/calens-v0.2.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=calens.mod -o=$(GOBIN)/calens-v0.2.0 "github.com/restic/calens"
FILEB0X := $(GOBIN)/fileb0x-v1.1.4
$(FILEB0X): $(BINGO_DIR)/fileb0x.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/fileb0x-v1.1.4"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=fileb0x.mod -o=$(GOBIN)/fileb0x-v1.1.4 "github.com/UnnoTed/fileb0x"
FLAEX := $(GOBIN)/flaex-v0.2.0
FLAEX := $(GOBIN)/flaex-v0.2.1-0.20210701123229-9d7dceed124f
$(FLAEX): $(BINGO_DIR)/flaex.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/flaex-v0.2.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=flaex.mod -o=$(GOBIN)/flaex-v0.2.0 "github.com/owncloud/flaex"
@echo "(re)installing $(GOBIN)/flaex-v0.2.1-0.20210701123229-9d7dceed124f"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=flaex.mod -o=$(GOBIN)/flaex-v0.2.1-0.20210701123229-9d7dceed124f "github.com/owncloud/flaex"
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.37.1
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.42.1
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/golangci-lint-v1.37.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.37.1 "github.com/golangci/golangci-lint/cmd/golangci-lint"
GOVERAGE := $(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5
$(GOVERAGE): $(BINGO_DIR)/goverage.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=goverage.mod -o=$(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5 "github.com/haya14busa/goverage"
@echo "(re)installing $(GOBIN)/golangci-lint-v1.42.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.42.1 "github.com/golangci/golangci-lint/cmd/golangci-lint"
GOX := $(GOBIN)/gox-v1.0.1
$(GOX): $(BINGO_DIR)/gox.mod
@@ -65,11 +59,11 @@ $(GOX): $(BINGO_DIR)/gox.mod
@echo "(re)installing $(GOBIN)/gox-v1.0.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=gox.mod -o=$(GOBIN)/gox-v1.0.1 "github.com/mitchellh/gox"
HUGO := $(GOBIN)/hugo-v0.80.0
HUGO := $(GOBIN)/hugo-v0.88.1
$(HUGO): $(BINGO_DIR)/hugo.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/hugo-v0.80.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=hugo.mod -o=$(GOBIN)/hugo-v0.80.0 "github.com/gohugoio/hugo"
@echo "(re)installing $(GOBIN)/hugo-v0.88.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=hugo.mod -o=$(GOBIN)/hugo-v0.88.1 "github.com/gohugoio/hugo"
MUTAGEN := $(GOBIN)/mutagen-v0.11.8
$(MUTAGEN): $(BINGO_DIR)/mutagen.mod
@@ -77,38 +71,45 @@ $(MUTAGEN): $(BINGO_DIR)/mutagen.mod
@echo "(re)installing $(GOBIN)/mutagen-v0.11.8"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=mutagen.mod -o=$(GOBIN)/mutagen-v0.11.8 "github.com/mutagen-io/mutagen/cmd/mutagen"
PROTOC_GEN_DOC := $(GOBIN)/protoc-gen-doc-v1.4.1
OAPI_CODEGEN := $(GOBIN)/oapi-codegen-v1.8.2
$(OAPI_CODEGEN): $(BINGO_DIR)/oapi-codegen.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/oapi-codegen-v1.8.2"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=oapi-codegen.mod -o=$(GOBIN)/oapi-codegen-v1.8.2 "github.com/deepmap/oapi-codegen/cmd/oapi-codegen"
PROTOC_GEN_DOC := $(GOBIN)/protoc-gen-doc-v1.5.0
$(PROTOC_GEN_DOC): $(BINGO_DIR)/protoc-gen-doc.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/protoc-gen-doc-v1.4.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-doc.mod -o=$(GOBIN)/protoc-gen-doc-v1.4.1 "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc"
@echo "(re)installing $(GOBIN)/protoc-gen-doc-v1.5.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-doc.mod -o=$(GOBIN)/protoc-gen-doc-v1.5.0 "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc"
PROTOC_GEN_GO := $(GOBIN)/protoc-gen-go-v1.25.0
PROTOC_GEN_GO := $(GOBIN)/protoc-gen-go-v1.27.1
$(PROTOC_GEN_GO): $(BINGO_DIR)/protoc-gen-go.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/protoc-gen-go-v1.25.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-go.mod -o=$(GOBIN)/protoc-gen-go-v1.25.0 "google.golang.org/protobuf/cmd/protoc-gen-go"
@echo "(re)installing $(GOBIN)/protoc-gen-go-v1.27.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-go.mod -o=$(GOBIN)/protoc-gen-go-v1.27.1 "google.golang.org/protobuf/cmd/protoc-gen-go"
PROTOC_GEN_MICRO := $(GOBIN)/protoc-gen-micro-v3.0.0-20210217182006-0f0ace1a44a9
PROTOC_GEN_MICRO := $(GOBIN)/protoc-gen-micro-v3.0.0-20211012122208-f63e46a7d1e9
$(PROTOC_GEN_MICRO): $(BINGO_DIR)/protoc-gen-micro.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/protoc-gen-micro-v3.0.0-20210217182006-0f0ace1a44a9"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-micro.mod -o=$(GOBIN)/protoc-gen-micro-v3.0.0-20210217182006-0f0ace1a44a9 "github.com/asim/go-micro/cmd/protoc-gen-micro/v3"
@echo "(re)installing $(GOBIN)/protoc-gen-micro-v3.0.0-20211012122208-f63e46a7d1e9"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-micro.mod -o=$(GOBIN)/protoc-gen-micro-v3.0.0-20211012122208-f63e46a7d1e9 "github.com/asim/go-micro/cmd/protoc-gen-micro/v3"
PROTOC_GEN_MICROWEB := $(GOBIN)/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4
PROTOC_GEN_MICROWEB := $(GOBIN)/protoc-gen-microweb-v0.0.0-20210824101557-828409dbfbf9
$(PROTOC_GEN_MICROWEB): $(BINGO_DIR)/protoc-gen-microweb.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-microweb.mod -o=$(GOBIN)/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4 "github.com/owncloud/protoc-gen-microweb"
@echo "(re)installing $(GOBIN)/protoc-gen-microweb-v0.0.0-20210824101557-828409dbfbf9"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-microweb.mod -o=$(GOBIN)/protoc-gen-microweb-v0.0.0-20210824101557-828409dbfbf9 "github.com/owncloud/protoc-gen-microweb"
PROTOC_GEN_OPENAPIV2 := $(GOBIN)/protoc-gen-openapiv2-v2.2.0
PROTOC_GEN_OPENAPIV2 := $(GOBIN)/protoc-gen-openapiv2-v2.6.0
$(PROTOC_GEN_OPENAPIV2): $(BINGO_DIR)/protoc-gen-openapiv2.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/protoc-gen-openapiv2-v2.2.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-openapiv2.mod -o=$(GOBIN)/protoc-gen-openapiv2-v2.2.0 "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2"
@echo "(re)installing $(GOBIN)/protoc-gen-openapiv2-v2.6.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-openapiv2.mod -o=$(GOBIN)/protoc-gen-openapiv2-v2.6.0 "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2"
REFLEX := $(GOBIN)/reflex-v0.3.0
REFLEX := $(GOBIN)/reflex-v0.3.1
$(REFLEX): $(BINGO_DIR)/reflex.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/reflex-v0.3.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=reflex.mod -o=$(GOBIN)/reflex-v0.3.0 "github.com/cespare/reflex"
@echo "(re)installing $(GOBIN)/reflex-v0.3.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=reflex.mod -o=$(GOBIN)/reflex-v0.3.1 "github.com/cespare/reflex"
+2 -2
View File
@@ -1,5 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
go 1.17
require github.com/bwplotka/bingo v0.3.1
require github.com/bwplotka/bingo v0.5.1
+2 -2
View File
@@ -1,5 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
go 1.17
require github.com/bufbuild/buf v0.37.1 // cmd/buf
require github.com/bufbuild/buf v0.56.0 // cmd/buf
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.17
require github.com/bazelbuild/buildtools v0.0.0-20210920153738-d6daef01a1a2 // buildifier
+1 -1
View File
@@ -1,5 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
go 1.17
require github.com/restic/calens v0.2.0
+2 -2
View File
@@ -1,5 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
go 1.17
require github.com/owncloud/flaex v0.2.0
require github.com/owncloud/flaex v0.2.1-0.20210701123229-9d7dceed124f
+2 -2
View File
@@ -1,5 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
go 1.17
require github.com/golangci/golangci-lint v1.37.1 // cmd/golangci-lint
require github.com/golangci/golangci-lint v1.42.1 // cmd/golangci-lint
-5
View File
@@ -1,5 +0,0 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
require github.com/haya14busa/goverage v0.0.0-20180129164344-eec3514a20b5
+1 -1
View File
@@ -1,5 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
go 1.17
require github.com/mitchellh/gox v1.0.1
+2 -2
View File
@@ -1,7 +1,7 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
go 1.17
replace github.com/markbates/inflect => github.com/markbates/inflect v0.0.0-20171215194931-a12c3aec81a6
require github.com/gohugoio/hugo v0.80.0
require github.com/gohugoio/hugo v0.88.1
+1 -1
View File
@@ -1,5 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
go 1.17
require github.com/mutagen-io/mutagen v0.11.8 // cmd/mutagen
@@ -2,4 +2,4 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
require github.com/UnnoTed/fileb0x v1.1.4
require github.com/deepmap/oapi-codegen v1.8.2 // cmd/oapi-codegen
+2 -2
View File
@@ -1,5 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
go 1.17
require github.com/pseudomuto/protoc-gen-doc v1.4.1 // cmd/protoc-gen-doc
require github.com/pseudomuto/protoc-gen-doc v1.5.0 // cmd/protoc-gen-doc
+2 -2
View File
@@ -1,5 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
go 1.17
require google.golang.org/protobuf v1.25.0 // cmd/protoc-gen-go
require google.golang.org/protobuf v1.27.1 // cmd/protoc-gen-go
+2 -2
View File
@@ -1,5 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
go 1.17
require github.com/asim/go-micro/cmd/protoc-gen-micro/v3 v3.0.0-20210217182006-0f0ace1a44a9
require github.com/asim/go-micro/cmd/protoc-gen-micro/v3 v3.0.0-20211012122208-f63e46a7d1e9
+2 -2
View File
@@ -1,5 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
go 1.17
require github.com/owncloud/protoc-gen-microweb v0.0.0-20210224131655-d9b1137a84d4
require github.com/owncloud/protoc-gen-microweb v0.0.0-20210824101557-828409dbfbf9
+2 -2
View File
@@ -1,5 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
go 1.17
require github.com/grpc-ecosystem/grpc-gateway/v2 v2.2.0 // protoc-gen-openapiv2
require github.com/grpc-ecosystem/grpc-gateway/v2 v2.6.0 // protoc-gen-openapiv2
+2 -2
View File
@@ -1,5 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
go 1.17
require github.com/cespare/reflex v0.3.0
require github.com/cespare/reflex v0.3.1
+17 -16
View File
@@ -1,4 +1,4 @@
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.3.1. DO NOT EDIT.
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.5.1. DO NOT EDIT.
# All tools are designed to be build inside $GOBIN.
# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk.
GOBIN=${GOBIN:=$(go env GOBIN)}
@@ -8,34 +8,35 @@ if [ -z "$GOBIN" ]; then
fi
BINGO="${GOBIN}/bingo-v0.3.1"
BINGO="${GOBIN}/bingo-v0.5.1"
BUF="${GOBIN}/buf-v0.37.1"
BUF="${GOBIN}/buf-v0.56.0"
BUILDIFIER="${GOBIN}/buildifier-v0.0.0-20210920153738-d6daef01a1a2"
CALENS="${GOBIN}/calens-v0.2.0"
FILEB0X="${GOBIN}/fileb0x-v1.1.4"
FLAEX="${GOBIN}/flaex-v0.2.1-0.20210701123229-9d7dceed124f"
FLAEX="${GOBIN}/flaex-v0.2.0"
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.37.1"
GOVERAGE="${GOBIN}/goverage-v0.0.0-20180129164344-eec3514a20b5"
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.42.1"
GOX="${GOBIN}/gox-v1.0.1"
HUGO="${GOBIN}/hugo-v0.80.0"
HUGO="${GOBIN}/hugo-v0.88.1"
MUTAGEN="${GOBIN}/mutagen-v0.11.8"
PROTOC_GEN_DOC="${GOBIN}/protoc-gen-doc-v1.4.1"
OAPI_CODEGEN="${GOBIN}/oapi-codegen-v1.8.2"
PROTOC_GEN_GO="${GOBIN}/protoc-gen-go-v1.25.0"
PROTOC_GEN_DOC="${GOBIN}/protoc-gen-doc-v1.5.0"
PROTOC_GEN_MICRO="${GOBIN}/protoc-gen-micro-v3.0.0-20210217182006-0f0ace1a44a9"
PROTOC_GEN_GO="${GOBIN}/protoc-gen-go-v1.27.1"
PROTOC_GEN_MICROWEB="${GOBIN}/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4"
PROTOC_GEN_MICRO="${GOBIN}/protoc-gen-micro-v3.0.0-20211012122208-f63e46a7d1e9"
PROTOC_GEN_OPENAPIV2="${GOBIN}/protoc-gen-openapiv2-v2.2.0"
PROTOC_GEN_MICROWEB="${GOBIN}/protoc-gen-microweb-v0.0.0-20210824101557-828409dbfbf9"
PROTOC_GEN_OPENAPIV2="${GOBIN}/protoc-gen-openapiv2-v2.6.0"
REFLEX="${GOBIN}/reflex-v0.3.1"
REFLEX="${GOBIN}/reflex-v0.3.0"
+2 -2
View File
@@ -12,8 +12,8 @@ exclude_paths:
- 'idp/scripts/**'
- 'settings/rollup.config.js'
- 'accounts/rollup.config.js'
- 'ocis/docker/eos-ocis/Dockerfile'
- 'ocis/docker/eos-ocis-dev/Dockerfile'
- 'deployments/**'
- 'tests/acceptance/expected-failures-*.md'
- 'tests/acceptance/features/bootstrap/**'
...
+7
View File
@@ -0,0 +1,7 @@
.bingo
!.bingo/*.mod
!.bingo/Variables.mk
**/.git
**/bin
docs
**/node_modules
+3 -3
View File
@@ -1,7 +1,7 @@
# The test runner source for API tests
CORE_COMMITID=90edbb40800b36fadc4aba6216a3fd16b559f1e3
CORE_BRANCH=master
CORE_COMMITID=4bbd91de68aefdf94c03d2920a3353702f856280
CORE_BRANCH=acceptance-test-changes-waiting-2021-11
# The test runner source for UI tests
WEB_COMMITID=da869f4cb36ea0a28ead87e57a61d7bbb639aab0
WEB_COMMITID=ed4a8b32240b59666a6c2b162d95b50ff7191eb8
WEB_BRANCH=master
+1673 -1512
View File
File diff suppressed because it is too large. Load diff
+3 -1
View File
@@ -1,2 +1,4 @@
/onlyoffice/ @LukasHirt
accounts/ @kulmann @pascalwengerter @paulcod3
settings/ @kulmann @pascalwengerter @paulcod3
web/ @kulmann @pascalwengerter
.drone.star @wkloucek @micbar @phil-davis @individual-it
+2 -8
View File
@@ -1,9 +1,9 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/ocis"
directory: "/"
schedule:
interval: "weekly"
interval: "daily"
open-pull-requests-limit: 2
- package-ecosystem: "npm"
@@ -18,12 +18,6 @@ updates:
interval: "weekly"
open-pull-requests-limit: 2
- package-ecosystem: "npm"
directory: "/onlyoffice"
schedule:
interval: "weekly"
open-pull-requests-limit: 2
- package-ecosystem: "npm"
directory: "/idp"
schedule:
+19 -4
View File
@@ -4,7 +4,7 @@ _extends: gh-labels
repository:
name: ocis
description: ':atom_symbol: ownCloud Infinite Scale Stack'
homepage: https://owncloud.github.io/ocis/
homepage: https://owncloud.dev/ocis/
topics: reva, ocis
private: false
@@ -22,13 +22,27 @@ repository:
labels:
- name: OCIS-Fastlane
color: "#deadbf"
description: Something isn't working
description: Planned outside of the sprint
- name: Storage:EOS
color: "#3F7A62"
- name: Storage:S3NG
color: "#3F7A62"
- name: Storage:CephFS
color: "#3F7A62"
- name: Storage:OCIS
color: "#3F7A62"
- name: Storage:POSIX
color: "#3F7A62"
- name: Storage:ownCloudSQL
color: "#3F7A62"
teams:
- name: ci
permission: admin
- name: employees
permission: push
- name: cern
permission: triage
branches:
- name: master
@@ -37,16 +51,17 @@ branches:
required_approving_review_count: 1
dismiss_stale_reviews: false
require_code_owner_reviews: false
dismissal_restrictions: {}
required_status_checks:
strict: false
contexts:
- continuous-integration/drone/pr
enforce_admins: false
enforce_admins: null
restrictions:
apps: []
users: []
teams:
- ci
- employees
...
+1
View File
@@ -7,6 +7,7 @@ daysUntilClose: 10
exemptLabels:
- "Type:Bug"
- "Type:Technical-Debt"
- "Category:Research"
# Label to use when marking an issue as stale
staleLabel: "Status:Stale"
# Comment to post when marking an issue as stale. Set to `false` to disable
+11
View File
@@ -1,5 +1,6 @@
*/coverage.out
*/checkstyle.xml
*/package-lock.json
ocis/config/identifier-registration.yaml
*/bin
@@ -9,10 +10,14 @@ dist/
*crt
node_modules/
*/assets
ocis/ocis
ocis/cmd/ocis/__debug_bin
ocis/cmd/ocis/config/
.idea
yarn-error.log
yarn.lock
# Konnectd
idp/assets/identifier
@@ -23,5 +28,11 @@ vendor
vendor-bin/**/vendor
vendor-bin/**/composer.lock
# API acceptance tests - auto-generated files
.php-cs-fixer.cache
# drone CI is in .drone.star, do not let someone accidentally commit a local .drone.yml
.drone.yml
**/l10n/locale
**/l10n/template.pot
+11 -4
View File
@@ -1,7 +1,14 @@
SKIP_CONFIG_DOCS_GENERATE ?= 0
CONFIG_DOCS_BASE_PATH ?= ../docs/extensions
.PHONY: config-docs-generate
config-docs-generate: $(FLAEX)
@echo "$(NAME): generating config docs"
@$(FLAEX) >| ../docs/extensions/$(NAME)/configuration.md
config-docs-generate: #$(FLAEX)
# since https://github.com/owncloud/ocis/pull/2708 flaex can no longer be used
# TODO: how to document configuration
# @if [ $(SKIP_CONFIG_DOCS_GENERATE) -ne 1 ]; then \
# $(FLAEX) >| $(CONFIG_DOCS_BASE_PATH)/$(NAME)/configuration.md \
# ; fi;
.PHONY: grpc-docs-generate
grpc-docs-generate: ../docs/extensions/${NAME}/grpc.md
grpc-docs-generate: buf-generate
-4
View File
@@ -1,6 +1,2 @@
.PHONY: generate
generate: ci-node-generate ci-go-generate
.PHONY: embed.yml
embed.yml: $(FILEB0X)
@cd pkg/assets/ && echo -n "$(NAME): embed.go - " && $(FILEB0X) embed.yml
+17 -20
View File
@@ -1,4 +1,5 @@
IMPORT := github.com/owncloud/ocis/$(NAME)
OCIS_REPO := github.com/owncloud/ocis
IMPORT := ($OCIS_REPO)/$(NAME)
BIN := bin
DIST := dist
@@ -10,15 +11,9 @@ else
UNAME := $(shell uname -s)
endif
ifeq ($(UNAME), Darwin)
GOBUILD ?= go build -i
else
GOBUILD ?= go build
endif
GOBUILD ?= go build
PACKAGES ?= $(shell go list ./...)
SOURCES ?= $(shell find . -name "*.go" -type f -not -path "./node_modules/*")
GENERATE ?= $(PACKAGES)
TAGS ?=
@@ -42,8 +37,9 @@ ifndef DATE
DATE := $(shell date -u '+%Y%m%d')
endif
LDFLAGS += -s -w -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
DEBUG_LDFLAGS += -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
LDFLAGS += -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn -s -w -X "$(OCIS_REPO)/ocis-pkg/version.String=$(VERSION)" -X "$(OCIS_REPO)/ocis-pkg/version.Date=$(DATE)"
DEBUG_LDFLAGS += -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn -X "$(OCIS_REPO)/ocis-pkg/version.String=$(VERSION)" -X "$(OCIS_REPO)/ocis-pkg/version.Date=$(DATE)"
GCFLAGS += all=-N -l
.PHONY: all
@@ -70,23 +66,18 @@ fmt:
.PHONY: golangci-lint
golangci-lint: $(GOLANGCI_LINT)
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E golint -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME)
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E revive -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME)
.PHONY: ci-golangci-lint
ci-golangci-lint: $(GOLANGCI_LINT)
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E golint -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME) --timeout 10m0s --issues-exit-code 0 --out-format checkstyle > checkstyle.xml
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E revive -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME) --timeout 10m0s --issues-exit-code 0 --out-format checkstyle > checkstyle.xml
.PHONY: test
test: $(GOVERAGE)
@echo
@echo
@echo "$(NAME): test"
@echo
@$(GOVERAGE) -v -coverprofile coverage.out $(PACKAGES)
test:
@go test -v -coverprofile coverage.out ./...
.PHONY: go-coverage
go-coverage:
@echo "$(NAME): go-coverage"
@if [ ! -f coverage.out ]; then $(MAKE) test &>/dev/null; fi;
@go tool cover -func coverage.out | tail -1 | grep -Eo "[0-9]+\.[0-9]+"
@@ -94,8 +85,14 @@ go-coverage:
install: $(SOURCES)
go install -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/$(NAME)
.PHONY: build-all
build-all: build build-debug
.PHONY: build
build: $(BIN)/$(EXECUTABLE) $(BIN)/$(EXECUTABLE)-debug
build: $(BIN)/$(EXECUTABLE)
.PHONY: build-debug
build-debug: $(BIN)/$(EXECUTABLE)-debug
$(BIN)/$(EXECUTABLE): $(SOURCES)
$(GOBUILD) -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $@ ./cmd/$(NAME)
+50
View File
@@ -0,0 +1,50 @@
# On OSX the PATH variable isn't exported unless "SHELL" is also set, see: http://stackoverflow.com/a/25506676
SHELL = /bin/bash
NODE_BINDIR = ./node_modules/.bin
export PATH := $(PATH):$(NODE_BINDIR)
INPUT_FILES = ./ui
# Where to write the files generated by this makefile.
OUTPUT_DIR = ./l10n
# Template file
TEMPLATE_FILE = ./l10n/template.pot
# Name of the generated .po files for each available locale.
LOCALE_FILES = $(shell find l10n/locale -name '*.po' 2> /dev/null)
.PHONY: l10n-push
l10n-push:
cd $(OUTPUT_DIR) && tx -d push -s --skip --no-interactive
.PHONY: l10n-pull
l10n-pull:
cd $(OUTPUT_DIR) && tx -d pull -a --skip --minimum-perc=75
.PHONY: l10n-clean
l10n-clean:
rm -f $(TEMPLATE_FILE)
rm -rf $(OUTPUT_DIR)/locale
.PHONY: l10n-read
l10n-read: node_modules $(TEMPLATE_FILE)
.PHONY: l10n-write
l10n-write: node_modules $(OUTPUT_DIR)/translations.json
# Create a main .pot template, then generate .po files for each available language.
# Thanks to Systematic: https://github.com/Polyconseil/systematic/blob/866d5a/mk/main.mk#L167-L183
$(TEMPLATE_FILE):
# Extract gettext strings from each template file and create a POT dictionary template.
# Generate .po files for each available language.
export GETTEXT_SOURCES=`find $(INPUT_FILES) -name '*.vue' -o -name '*.js'`; \
node ./node_modules/easygettext/src/extract-cli.js --attribute v-translate --output $(OUTPUT_DIR)/template.pot $$GETTEXT_SOURCES;
# Generate translations.json file from .pot template.
.PHONY: $(OUTPUT_DIR)/translations.json
$(OUTPUT_DIR)/translations.json:
rm -rf $(OUTPUT_DIR)/translations.json
gettext-compile --output $(OUTPUT_DIR)/translations.json $(LOCALE_FILES);
+18 -57
View File
@@ -1,60 +1,21 @@
.PHONY: protoc-gen-openapiv2
protoc-gen-openapiv2:
GO111MODULE=off go get -v github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2
.PHONY: protoc-deps
protoc-deps: $(BINGO)
@# #TODO: bingo creates symlinks from the -l option in the current directory
@# if no GOPATH and GOBIN is set, but they should reside inside .bingo
@# for now we move them manually
@cd .. && GOPATH="" GOBIN="" $(BINGO) get -l google.golang.org/protobuf/cmd/protoc-gen-go
@cd .. && mv protoc-gen-go .bingo/
@cd .. && GOPATH="" GOBIN="" $(BINGO) get -l github.com/asim/go-micro/cmd/protoc-gen-micro/v3
@cd .. && mv protoc-gen-micro .bingo/
@cd .. && GOPATH="" GOBIN="" $(BINGO) get -l github.com/owncloud/protoc-gen-microweb
@cd .. && mv protoc-gen-microweb .bingo/
@cd .. && GOPATH="" GOBIN="" $(BINGO) get -l github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
@cd .. && mv protoc-gen-openapiv2 .bingo/
@cd .. && GOPATH="" GOBIN="" $(BINGO) get -l github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
@cd .. && mv protoc-gen-doc .bingo/
.PHONY: $(PROTO_SRC)/${NAME}.pb.go
$(PROTO_SRC)/${NAME}.pb.go: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_GO)
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.pb.go"
@$(BUF) protoc \
-I=$(PROTO_SRC)/ \
-I=../third_party/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
--plugin protoc-gen-go=$(PROTOC_GEN_GO) \
--go_out=. \
$(PROTO_SRC)/${NAME}.proto
.PHONY: buf-generate
buf-generate: $(BUF) protoc-deps
$(BUF) generate
.PHONY: $(PROTO_SRC)/${NAME}.pb.micro.go
$(PROTO_SRC)/${NAME}.pb.micro.go: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_MICRO)
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.pb.micro.go"
@$(BUF) protoc \
-I=$(PROTO_SRC)/ \
-I=../third_party/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
--plugin protoc-gen-micro=$(PROTOC_GEN_MICRO) \
--micro_out=. \
$(PROTO_SRC)/${NAME}.proto
.PHONY: $(PROTO_SRC)/${NAME}.pb.web.go
$(PROTO_SRC)/${NAME}.pb.web.go: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_MICROWEB)
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.pb.web.go"
@$(BUF) protoc \
-I=$(PROTO_SRC)/ \
-I=../third_party/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
--plugin protoc-gen-microweb=$(PROTOC_GEN_MICROWEB) \
--microweb_out=. \
$(PROTO_SRC)/${NAME}.proto
.PHONY: $(PROTO_SRC)/${NAME}.swagger.json
$(PROTO_SRC)/${NAME}.swagger.json: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_OPENAPIV2)
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.swagger.json"
@$(BUF) protoc \
-I=$(PROTO_SRC)/ \
-I=../third_party/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
--plugin protoc-gen-openapiv2=$(PROTOC_GEN_OPENAPIV2) \
--openapiv2_out=$(PROTO_SRC)/ \
$(PROTO_SRC)/${NAME}.proto
.PHONY: ../docs/extensions/${NAME}/grpc.md
../docs/extensions/${NAME}/grpc.md: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_DOC)
@echo "$(NAME): generating ../docs/extensions/${NAME}/grpc.md"
@$(BUF) protoc \
-I=$(PROTO_SRC)/ \
-I=../third_party/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
--plugin protoc-gen-doc=$(PROTOC_GEN_DOC) \
--doc_opt=./templates/GRPC.tmpl,grpc.md \
--doc_out=../docs/extensions/${NAME} \
$(PROTO_SRC)/${NAME}.proto
+8
View File
@@ -0,0 +1,8 @@
ifeq ($(MAKE_DEPTH),)
MAKE_DEPTH := 0
else
$(eval MAKE_DEPTH := $(shell echo "$$(( $(MAKE_DEPTH) + 1 ))" ) )
endif
export
+15 -4
View File
@@ -7,19 +7,30 @@ release: release-dirs release-linux release-windows release-darwin release-copy
.PHONY: release-dirs
release-dirs:
mkdir -p $(DIST)/binaries $(DIST)/release
@mkdir -p $(DIST)/binaries $(DIST)/release
# docker specific packaging flags
DOCKER_LDFLAGS += -X "$(OCIS_REPO)/ocis-pkg/config/defaults.BaseDataPathType=path" -X "$(OCIS_REPO)/ocis-pkg/config/defaults.BaseDataPathValue=/var/lib/ocis"
release-linux-docker-amd64: $(GOX) release-dirs
@$(GOX) -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS) $(DOCKER_LDFLAGS)' -os 'linux' -arch 'amd64' -output '$(DIST)/binaries/$(EXECUTABLE)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
release-linux-docker-arm: $(GOX) release-dirs
@$(GOX) -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS) $(DOCKER_LDFLAGS)' -os 'linux' -arch 'arm' -output '$(DIST)/binaries/$(EXECUTABLE)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
release-linux-docker-arm64: $(GOX) release-dirs
@$(GOX) -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS) $(DOCKER_LDFLAGS)' -os 'linux' -arch 'arm64' -output '$(DIST)/binaries/$(EXECUTABLE)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
.PHONY: release-linux
release-linux: $(GOX) release-dirs
$(GOX) -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'linux' -arch 'amd64 386 arm64 arm' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
@$(GOX) -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'linux' -arch 'amd64 386 arm64 arm' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
.PHONY: release-windows
release-windows: $(GOX) release-dirs
$(GOX) -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'windows' -arch 'amd64' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
@$(GOX) -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'windows' -arch 'amd64' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
.PHONY: release-darwin
release-darwin: $(GOX) release-dirs
$(GOX) -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -os 'darwin' -arch 'amd64' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
@$(GOX) -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -os 'darwin' -arch 'amd64 arm64' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
.PHONY: release-copy
release-copy:
+16
View File
@@ -0,0 +1,16 @@
<?php
$dirToParse = 'tests/acceptance/';
$dirIterator = new DirectoryIterator(__DIR__ . '/' . $dirToParse);
$excludeDirs = [
'node_modules'
];
$finder = PhpCsFixer\Finder::create()
->exclude($excludeDirs)
->in(__DIR__);
$config = new OC\CodingStandard\Config();
$config->setFinder($finder);
return $config;
+25
View File
@@ -0,0 +1,25 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "oCIS server",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/ocis/cmd/ocis",
"args": [
"server"
],
"env": {
// log settings for human developers
"OCIS_LOG_LEVEL": "debug",
"OCIS_LOG_PRETTY": "true",
"OCIS_LOG_COLOR": "true",
// enable basic auth for dev setup so that we can use curl for testing
"PROXY_ENABLE_BASIC_AUTH": "true",
// set insecure options because we don't have valid certificates in dev environments
"OCIS_INSECURE": "true",
}
}
]
}
+1725 -1
View File
File diff suppressed because it is too large. Load diff
+263
View File
@@ -0,0 +1,263 @@
First of all, thank you for taking the time to read this and your interest in contributing to ownCloud Infinite Scale!
The following is a set of guidelines for contributing to most of the projects hosted in the [ownCloud Organization](https://github.com/owncloud) on [GitHub](https://www.github.com). These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
For simplicity reasons, this document mostly refers to the ownCloud [Infinite Scale project](https://www.github.com/owncloud/ocis), but it should be easily transferable to other (sub)projects.
#### Table Of Contents
[I don't want to read this whole thing, I just have a question](#i-dont-want-to-read-this-whole-thing-i-just-have-a-question)
[What should I know before I get started](#what-should-i-know-before-i-get-started)
* [ownCloud is hosted on Github](#owncloud-is-hosted-on-github)
* [ownCloud Company, Engineering Partners and Community](#owncloud-company,-engineering-partners-and-community)
* [Licensing and CLA](#licensing-and-cla)
[How Can I Contribute](#how-can-i-contribute)
* [Help spreading the word](#help-spreading-the-word)
* [Reporting Bugs](#reporting-bugs)
* [Suggesting Enhancements](#suggesting-enhancements)
* [Your First Code Contribution](#your-first-code-contribution)
* [Pull Requests](#pull-requests)
* [Documentation Contributions](#documentation-contributions)
* [Internationalization](#internationalization)
* [Deployments: Docker, Ansible and friends](#deployments-docker-ansible-and-friends)
[Styleguides](#styleguides)
* [Git Commit Messages](#git-commit-messages)
* [Golang Styleguide](#golang-styleguide)
* [Web Styleguide](#web-styleguide)
* [Documentation Styleguide](#documentation-styleguide)
[Additional Notes](#additional-notes)
* [Issue and Pull Request Labels](#issue-and-pull-request-labels)
## I don't want to read this whole thing I just have a question
> **Note:** Please don't file an issue to ask a question. You'll get faster results by using the resources below.
For general questions, please refer to [ownCloud's FAQs](https://owncloud.com/faq/) or ask on the [ownCloud Central Server](https://central.owncloud.org/).
We also have a [Rocket Chat Server](https://talk.owncloud.com/channel/ocis) to answer your questions specifically about ownCloud Infinite Scale.
## What should I know before I get started
### ownCloud is hosted on Github
To effectively contribute to ownCloud Infinite Scale, you need a Github account. You can get that for free at [Github](https://github.com/join). You can find howtos on the internet, for example [here](https://www.wikihow.com/Create-an-Account-on-GitHub).
For other ways of contributing, for example with translations, other systems require you to have an account as well, for example [Transifex](https://www.transifex.com).
The ownCloud project follows the strict Github workflow of development as briefly [described here](https://guides.github.com/introduction/flow/).
### ownCloud Company, Engineering Partners and Community
ownCloud Infinite Scale is largely created by developers who are employed by the [ownCloud company](https://www.owncloud.com), which is located in Germany. It is providing support for ownCloud for customers worldwide. In addition there are engineering partners who also work full time on ownCloud related code, for example in [CERN REVA](https://github.com/cs3org/reva/).
Because of that fact, the pace that the development is moving forward is sometimes high for people who are not willing and/or able to spend a comparable amount of time to contribute. Even though this can be a challenge, it should not scare anybody away. Here is our clear commitment that we feel honored by everybody who is interested in our work and improves it, no matter how big the contribution might be.
We as the full time devs from either organization are doing our best to listen, review and consider all changes that are brought forward following this guideline and make sense for the project.
### Licensing and CLA
We are very happy that there is *no CLA* required for most of the code of ownCloud Infinite Scale.
Currently, only for the following components you need to sign a [Contributors License Agreement](https://en.wikipedia.org/wiki/Contributor_License_Agreement):
* [ownCloud Web](https://github.com/owncloud/web/): [Link to CLA](https://owncloud.com/contribute/join-the-development/contributor-agreement/)
Please make sure to read and understand the details of the CLA before starting to invest time on a component that requires it. If you have any questions or concerns please feel free to raise them with us.
## How Can I Contribute
There are many ways to contribute to open source projects, and all are equally valuable and appreciated.
### Help spreading the word
This way to contribute to the project can not be overestimated: People who talk about their experience with ownCloud Infinite Scale and help others with that are the key to success of the project.
There are too many ways of doing that to line them up here, but examples are answering questions in [ownCloud Central](https://central.owncloud.org/) or on [ownCloud Talk](https://talk.owncloud.com/channel/ocis), writing blog posts etc pp.
There is no formal guideline to this, just do it :-)
### Reporting Bugs
This section guides you through submitting a bug report for ownCloud Infinite Scale. Following these guidelines helps maintainers and the community understand your report :pencil:, reproduce the behavior :computer: :computer:, and find related reports :mag_right:.
Before creating bug reports, please check [this list](#before-submitting-a-bug-report) as you might find out that you don't need to create one. When you are creating a bug report, please [include as many details as possible](#how-do-i-submit-a-good-bug-report). Fill out [the required template](https://github.com/owncloud/ocis/issues/new?Type%3ABug&template=bug_report.md), the information it asks for helps us resolve issues faster.
> **Note:** If you find a **Closed** issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one. If you have permission to reopen the issue, feel free to do so.
#### Before Submitting A Bug Report
* **Make sure you are running a recent version** Usually, developers' interest in old versions of software drops very fast once a new shiny version has been released. So the general recommendation is: Use the latest released version or even the current master to reproduce problems that you might encounter. That helps a lot to attract developers attention.
* **Determine which [repository](https://github.com/owncloud) the problem should be reported in**.
* **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Aowncloud)** with possibly a more granular filter on the repository, to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue instead of opening a new one **if you have new information**. Please abstain from adding "plus ones", except using the Github emojis. That might indicate how many users are affected.
#### How Do I Submit A (Good) Bug Report
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). After you've determined [which repository](https://github.com/owncloud) your bug is related to, create an issue on that repository and provide the following information by filling in [the template](https://github.com/owncloud/ocis/issues/new?Type%3ABug&template=bug_report.md).
Explain the problem and include additional details to help maintainers reproduce the problem:
* **Use a clear and descriptive title** for the issue to identify the problem.
* **Describe the exact steps which reproduce the problem** in as many details as possible. Start with describing, from a user perspective, what you tried to achieve, i.e. "I want to share some pictures with Grandma". When listing steps, **don't just say what you did, but explain how you did it**. For example, if you uploaded a file to ownCloud, say which client you used, which way of uploading you chose, if the name was special somehow and how big it was.
* **Provide specific examples to demonstrate the steps**. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
* **Explain which behavior you expected to see instead and why.**
* **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux.
* **If you report a web browser related problem**, consider to using the browser's Web developer tools (such as the debugger, console or network monitor) to check what happened. Make sure to add screenshots of the utilities if you are short of time to interpret it.
* **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below.
Provide more context by answering these questions:
* **Did the problem start happening recently** (e.g. after updating to a new version) or was this always a problem?
* If the problem started happening recently, **can you reproduce the problem in an older version?** What's the most recent version in which the problem doesn't happen? You can find more information about how to set up [test environments](https://owncloud.dev/ocis/development/testing/) in the [developer documentation](https://owncloud.dev/#developer-documentation).
* **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.
Include details about your configuration and environment as asked for in the template.
### Suggesting Enhancements
This section guides you through submitting an enhancement suggestion for ownCloud Infinite Scale, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion :pencil: and find related suggestions :mag_right:.
Before creating enhancement suggestions, please check [this list](#before-submitting-an-enhancement-suggestion) as you might find out that you don't need to create one. When you are creating an enhancement suggestion, please [include as many details as possible](#how-do-i-submit-a-good-enhancement-suggestion). Fill in [the template](https://github.com/owncloud/ocis/.github/blob/master/.github/ISSUE_TEMPLATE/feature_request.md), including the steps that you imagine you would take if the feature you're requesting existed.
#### Before Submitting An Enhancement Suggestion
* **Check if there's already an extension or other component which provides that enhancement, even in a different way.**
* **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Aowncloud)** to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one. Feel free to use the Github emojis to indicate that you are in favour of an enhancement request.
#### How Do I Submit A (Good) Enhancement Suggestion
Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com/features/issues/). After you've determined [which repository](https://github.com/owncloud) your enhancement suggestion is related to, create an issue on that repository and provide the following information:
* **Use a clear and descriptive title** for the issue to identify the suggestion.
* **Provide a step-by-step description of the suggested enhancement** in as many details as possible.
* **Provide specific examples to demonstrate the steps**. Include copy/pasteable snippets which you use in those examples, as [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
* **Explain why this enhancement would be useful** to most ownCloud users.
* **List some other projects or products where this enhancement exists.**
### Your First Code Contribution
Unsure where to begin contributing to ownCloud? You can start by looking through these `Needs-help` issues:
* The [Good first issue](https://github.com/owncloud/ocis/labels/Topic%3Agood-first-issue) label marks good items to start with.
* [Tests needed](https://github.com/owncloud/ocis/labels/Interaction%3ANeeds-tests) - issues which would benefit from a test.
* [Help wanted issues](https://github.com/owncloud/ocis/labels/Interaction%3ANeeds-help) - issues which should be a bit more involved.
It is fine to pick one of the list following personal preference. While not perfect, number of comments is a reasonable proxy for impact a given change will have.
To find out how to set up ownCloud Infinite Scale for local development please refer to the [Developer Documentation](https://owncloud.dev/ocis/development/getting-started/). It contains a lot of information that will come in handy when starting to work on the project.
### Pull Requests
All contributions to ownClouds projects use so called pull requests following the [Github PR workflow](https://guides.github.com/introduction/flow/).
Please follow these steps to have your contribution considered by the maintainers:
* Follow all instructions in [the template](https://github.com/owncloud/ocis/blob/master/.github/pull_request_template.md)
* Follow the [styleguides](#styleguides) where applicable
* After you submit your pull request, verify that all [status checks](https://help.github.com/articles/about-status-checks/) are passing <details><summary>What if the status checks are failing?</summary>If a status check is failing, and you believe that the failure is unrelated to your change, please leave a comment on the pull request explaining why you believe the failure is unrelated. A maintainer will re-run the status check for you. If we conclude that the failure was a false positive, then we will open an issue to track that problem with our status check suite.</details>
While the prerequisites above must be satisfied prior to having your pull request reviewed, the reviewer(s) may ask you to complete additional design work, tests, or other changes before your pull request can be ultimately accepted.
### Documentation Contributions
ownCloud is very proud of the documentation it has, which is the work of a great team of people. Of course, also the documentation is open to contributions.
See the [Getting Started Guide](https://owncloud.dev/ocis/development/getting-started/) on how to get started. Other useful information is summarized in the [Documentation Readme](https://github.com/owncloud/docs).
### Internationalization
Our projects are getting translated into many languages to allow people from all over the world to use ownCloud in their native language. For translations, ownCloud uses [Transifex](https://www.transifex.com) as a community based collaboration platform for internationalization.
For contributions please refer to the [Transifex Resources](https://www.transifex.com/resources/) to learn how to improve ownClouds translations there.
### Deployments: Docker, Ansible and friends
Depending on the ownCloud component, there is complex deployment tooling to install in various environments. There is for example [ownCloud Ansible](https://github.com/owncloud-ansible) with Ansible resources. Contributions to that are very appreciated and follow the same guidelines as every other code contribution.
## Styleguides
To keep up with a consistent code and tooling landscape, some of the ownCloud modules maintain styleguides for contributions. It is mandatory to follow them in contributions.
### Git Commit Messages
* Use the present tense ("Add feature" not "Added feature")
* Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
* Limit the first line to 72 characters or less
* Reference issues and pull requests liberally after the first line
* When only changing documentation, include `[docs-only]` in the commit title
### Golang Styleguide
Use the built in golang code formatter before submitting the patch. Also, consulting documentation like [Effective Go](https://golang.org/doc/effective_go) or [Practical Go](http://bit.ly/gcsg-2019) helps to improve the code quality.
### Web Styleguide
Refer to related documents in the [ownCloud Web Repository](https://github.com/owncloud/web).
#### Documentation Styleguide
See the [ownCloud Documentation Styleguide](https://github.com/owncloud/docs/blob/master/docs/style-guide.md).
## Additional Notes
### Issue and Pull Request Labels
This section lists the labels we use to help us track and manage issues and pull requests. Most labels are used across all ownCloud repositories, but some are specific.
[GitHub search](https://help.github.com/articles/searching-issues/) makes it easy to use labels for finding groups of issues or pull requests you're interested in. To help you find issues and pull requests, each label can be used in search links for finding open items with that label in the ownCloud repositories.
The labels are loosely grouped by their purpose, but it's not required that every issue has a label from every group or that an issue can't have more than one label from the same group.
The list here contains all the more general categories of issues which are followed by a colon and a specific value. For example severity 1 looks like `Severity:sev1-critical`.
#### Platform
Describes the platform the issue is happening on, ie. iOS or Windows.
#### Estimation
T-Shirt sizes for effort estimation to fix that bug or implement an enhancement. Ranges from XS to XXXL.
#### Priority
P1 to P4 (lowest) to indicate an priority. Mostly a tool for internal project management and support.
#### QA
Flags to indicate the internal QA status in terms of process and priority. Please leave alone unless you're QA ;-)
#### Severity
Severity for the product, mostly impact on user.
#### Type
The issue type, helps to structure the issues in the agile categories (Epic, Story...) but also organizational ones.
#### Topic
A general category of the topic of a ticket.
#### Category
Categorizes the issue to also indicate the type of the issue.
#### Status
The status in the ticket life cycle. Keep an eye on that one, especially for the `Waiting-for-Feedback` tag which might indicate that the reporter is asked for feedback.
#### Interaction
Another label that indicates the type of the issue.
#### Browser
Important for browser dependent web issues. It specifies the browser that shows the error.
#### Early-Adopter
Tags issues that were reported by one of the oCIS early adopters, ie. customers and users who start using ownCloud Infinite Scale before it's general availability.
+28 -13
View File
@@ -1,19 +1,34 @@
FROM webhippie/golang:1.15 as build
# Please use this Dockerfile only if
# you want to build an image from source without
# Yarn and Go installed on your dev machine.
# You can build oCIS using this Dockerfile
# by running following command:
# `docker build -t owncloud/ocis:custom .`
# In most other cases you might want to run the
# following command instead:
# `make -C ocis dev-docker`
# It will build a `owncloud/ocis:dev` image for you
# and use your local Yarn and Go caches and therefore
# is a lot faster than the below build steps.
FROM owncloudci/nodejs:14 as generate
COPY ./ /ocis/
ENV CGO_ENABLED=0
ENV GOOS=linux
RUN apk update && \
apk upgrade --ignore musl-dev && \
apk add make gcc bash && \
rm -rf /var/cache/apk/*
WORKDIR /ocis/ocis
RUN make clean generate build
RUN make ci-node-generate
FROM owncloudci/golang:1.17 as build
FROM alpine:3
COPY --from=generate /ocis /ocis
WORKDIR /ocis/ocis
RUN make ci-go-generate build
FROM alpine:3.13
RUN apk update && \
apk upgrade && \
@@ -22,9 +37,9 @@ RUN apk update && \
echo 'hosts: files dns' >| /etc/nsswitch.conf
LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
org.label-schema.name="ownCloud Infinite Scale" \
org.label-schema.vendor="ownCloud GmbH" \
org.label-schema.schema-version="1.0"
org.label-schema.name="ownCloud Infinite Scale" \
org.label-schema.vendor="ownCloud GmbH" \
org.label-schema.schema-version="1.0"
ENTRYPOINT ["/usr/bin/ocis"]
CMD ["server"]
+87 -8
View File
@@ -12,6 +12,8 @@ WHITE := $(shell tput -Txterm setaf 7)
RESET := $(shell tput -Txterm sgr0)
L10N_MODULES := $(shell find . -path '*.tx*' -name 'config' | sed 's|/[^/]*$$||' | sed 's|/[^/]*$$||' | sed 's|/[^/]*$$||')
# if you add a module here please also add it to the .drone.star file
OCIS_MODULES = \
accounts \
@@ -22,7 +24,6 @@ OCIS_MODULES = \
ocis \
ocis-pkg \
ocs \
onlyoffice \
proxy \
settings \
storage \
@@ -31,14 +32,25 @@ OCIS_MODULES = \
web \
webdav
# bin file definitions
PHP_CS_FIXER=php -d zend.enable_gc=0 vendor-bin/owncloud-codestyle/vendor/bin/php-cs-fixer
PHP_CODESNIFFER=vendor-bin/php_codesniffer/vendor/bin/phpcs
PHP_CODEBEAUTIFIER=vendor-bin/php_codesniffer/vendor/bin/phpcbf
PHAN=php -d zend.enable_gc=0 vendor-bin/phan/vendor/bin/phan
PHPSTAN=php -d zend.enable_gc=0 vendor-bin/phpstan/vendor/bin/phpstan
ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI
include .bingo/Variables.mk
endif
include .make/recursion.mk
.PHONY: help
help:
@echo "Please use 'make <target>' where <target> is one of the following:"
@echo
@echo -e "${GREEN}Testing with test suite natively installed:${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.github.io/ocis/development/testing/#testing-with-test-suite-natively-installed${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/development/testing/#testing-with-test-suite-natively-installed${RESET}\n"
@echo -e "\tmake test-acceptance-api\t${BLUE}run API acceptance tests${RESET}"
@echo -e "\tmake clean-tests\t\t${BLUE}delete API tests framework dependencies${RESET}"
@echo
@@ -47,20 +59,24 @@ help:
@echo -e "${RED}You also should have a look at other available Makefiles:${RESET}"
@echo
@echo -e "${GREEN}oCIS:${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.github.io/ocis/development/building/${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/development/build/${RESET}\n"
@echo -e "\tsee ./ocis/Makefile"
@echo -e "\tor run ${YELLOW}make -C ocis help${RESET}"
@echo
@echo -e "${GREEN}Documentation:${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.github.io/ocis/development/building-docs/${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/development/build-docs/${RESET}\n"
@echo -e "\tsee ./docs/Makefile"
@echo -e "\tor run ${YELLOW}make -C docs help${RESET}"
@echo
@echo -e "${GREEN}Testing with test suite in docker:${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.github.io/ocis/development/testing/#testing-with-test-suite-in-docker${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/development/testing/#testing-with-test-suite-in-docker${RESET}\n"
@echo -e "\tsee ./tests/acceptance/docker/Makefile"
@echo -e "\tor run ${YELLOW}make -C tests/acceptance/docker help${RESET}"
@echo
@echo -e "${GREEN}Tools for developing tests:\n${RESET}"
@echo -e "\tmake test-php-style\t\t${BLUE}run PHP code style checks${RESET}"
@echo -e "\tmake test-php-style-fix\t\t${BLUE}run PHP code style checks and fix any issues found${RESET}"
@echo
.PHONY: clean-tests
clean-tests:
@@ -116,9 +132,10 @@ ci-go-generate:
.PHONY: ci-node-generate
ci-node-generate:
@for mod in $(OCIS_MODULES); do \
@if [ $(MAKE_DEPTH) -le 1 ]; then \
for mod in $(OCIS_MODULES); do \
$(MAKE) --no-print-directory -C $$mod ci-node-generate; \
done
done; fi;
.PHONY: go-mod-tidy
go-mod-tidy:
@@ -139,9 +156,15 @@ go-coverage:
echo -n "% coverage $$mod: "; $(MAKE) --no-print-directory -C $$mod go-coverage; \
done
.PHONY: protobuf
protobuf:
@for mod in $(OCIS_MODULES); do \
echo -n "% protobuf $$mod: "; $(MAKE) --no-print-directory -C $$mod protobuf; \
done
.PHONY: bingo-update
bingo-update: $(BINGO)
$(BINGO) get -u
$(BINGO) get -l -u
CHANGELOG_VERSION =
@@ -151,3 +174,59 @@ ifndef CHANGELOG_VERSION
$(error CHANGELOG_VERSION is undefined)
endif
$(CALENS) --version $(CHANGELOG_VERSION) -o ocis/dist/CHANGELOG.md
.PHONY: l10n-push
l10n-push:
@for extension in $(L10N_MODULES); do \
$(MAKE) -C $$extension l10n-push; \
done
.PHONY: l10n-pull
l10n-pull:
@for extension in $(L10N_MODULES); do \
$(MAKE) -C $$extension l10n-pull; \
done
.PHONY: l10n-clean
l10n-clean:
@for extension in $(L10N_MODULES); do \
$(MAKE) -C $$extension l10n-clean; \
done
.PHONY: l10n-read
l10n-read:
@for extension in $(L10N_MODULES); do \
$(MAKE) -C $$extension l10n-read; \
done
.PHONY: l10n-write
l10n-write:
@for extension in $(L10N_MODULES); do \
$(MAKE) -C $$extension l10n-write; \
done
.PHONY: ci-format
ci-format: $(BUILDIFIER)
$(BUILDIFIER) --mode=fix .drone.star
.PHONY: test-php-style
test-php-style: vendor-bin/owncloud-codestyle/vendor vendor-bin/php_codesniffer/vendor
$(PHP_CS_FIXER) fix -v --diff --allow-risky yes --dry-run
$(PHP_CODESNIFFER) --cache --runtime-set ignore_warnings_on_exit --standard=phpcs.xml tests/acceptance
.PHONY: test-php-style-fix
test-php-style-fix: vendor-bin/owncloud-codestyle/vendor
$(PHP_CS_FIXER) fix -v --diff --allow-risky yes
$(PHP_CODEBEAUTIFIER) --cache --runtime-set ignore_warnings_on_exit --standard=phpcs.xml tests/acceptance
vendor-bin/owncloud-codestyle/vendor: vendor/bamarni/composer-bin-plugin vendor-bin/owncloud-codestyle/composer.lock
composer bin owncloud-codestyle install --no-progress
vendor-bin/owncloud-codestyle/composer.lock: vendor-bin/owncloud-codestyle/composer.json
@echo owncloud-codestyle composer.lock is not up to date.
vendor-bin/php_codesniffer/vendor: vendor/bamarni/composer-bin-plugin vendor-bin/php_codesniffer/composer.lock
composer bin php_codesniffer install --no-progress
vendor-bin/php_codesniffer/composer.lock: vendor-bin/php_codesniffer/composer.json
@echo php_codesniffer composer.lock is not up to date.
+5 -5
View File
@@ -1,6 +1,6 @@
# ownCloud Infinite Scale
[![Rocket chat](https://img.shields.io/badge/Chat%20on%20Rocket.Chat-blue?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSItDnaQIpKhOlkQFemoVShChVArtOpgcv2EJg1Jiouj4Fpw8GOx6uDirKuDqyAIfoA4OTopukiJ/0sKLWI8OO7Hu3uPu3eA0Kwy1eyZAFTNMtLJhJjNrYqBVwQxghDiiMjM1OckKQXP8XUPH1/vYjzL+9yfI5QvmAzwicSzTDcs4g3imU1L57xPHGZlOU98Tjxu0AWJH7muuPzGueSwwDPDRiY9TxwmFktdrHQxKxsq8TRxNK9qlC9kXc5z3uKsVuusfU/+wmBBW1nmOs1hJLGIJUgQoaCOCqqwEKNVI8VEmvYTHv6I45fIpZCrAkaOBdSgQnb84H/wu1uzODXpJgUTQO+LbX+MAoFdoNWw7e9j226dAP5n4Err+GtNIP5JeqOjRY+AgW3g4rqjKXvA5Q4w9KTLhuxIfppCsQi8n9E35YDBW6B/ze2tvY/TByBDXaVugINDYKxE2ese7+7r7u3fM+3+fgDAvHLGj7r9AwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+QMHg05Mvq8cfAAAAAGYktHRAD/AP8A/6C9p5MAAAcbSURBVGje7VlpTFRXGLU0NmmNpuma9IciCCKCQDTuxqQWkrrTNJAal6Y2ECyoURONRBPXuBujVpsYiys1qUH7w8QVjQnVP9Zqq3Y2FgcQmIEBBpgZmPl6vvveLG94D2ZAFhNvcsIwb5nv3G87994hQ970oY+OjgaygR3AWmAyMPRNIjAV+A8gGQ3AKX1U1Nf60aNTgVn4nIDvPgLeGYwE3gd+ATwBJBhuQ2xshyEuzmWIiWnQRUY+0o0adRBkUvQxMRGDicAHwLkg4xUwTJtG5RkZVDZnDunHjKmCV3JB4r3BQyIq6jgM83RFQhCZNIlMqamkj41txzO/47tcYBWwApgHJAGfABH96YGxMMbMxnVHoAsweRdgBf4GfgW+A77AxPRt3ugjIzONycmO+qIiMqal9YxAVBThPYQcIYSX9H90dDvwFNjIRPqWQFKSo+3RI7Jev84xHjaBMuRHdX4+mVesoNJZs0gfFyeRkIiwd2qAQmA1sBhIAT4F3n0dIRSLH9LVbd9OzpqaHnvBMGMG6ZOSQrmXPVMve+cikANwme55UYDb1xri413VO3aQITm5N7nQ0/x5BXBR+Bb4sEdeQJ2vN0ycKNxuGDeuV3kggM96GbqA78V3UmipwQHcAzK4vIdTRvNQ16UyGhtLtbt2hRZKsnGGsWOpFL3iZXo6Va9aRbVbt5LlwAGyHj0qwJ9rt2yhqpwcqli8mExTp4pnfCQ7v7tVzpmEUGZ/GmD2GmReupScZjOV4ce0ZloYDS9VLFpEdbt3k/3GDXKZTORuaiLq6CCt4cE1vsdpNJIdBaNu506qWLBAvEun7hmWON902VdwMQoo8j5ku3CB2hsbqSw7W3XGjRMmUHVuLtlv3aKOhgbq1fB4qKO+XpBh7xgTE9U8wr0lq8uKhYs/i9hPSKCWBw+kchpYUXhmUF7Ny5ZRy7175HE66XUPj8NB9uJiMi9Z4v9NPwkb8H1IBCznz5ORNY/3YTQmnhnr4cO9n/EQBnvEsn+/sCWIRCUwW4vAJu+NprlzFTNvTEmhxkuXRPz21/C0t4tQNnIUKEkUs9ZSI/AlYFfczB6JjyfbuXMiVvt9uN3UcPo0GbxdXbKrA/hJjcAIoESRPAidmk2b+iTeQ/ZEWxu9Wr9e0ld+2x7w4kqNxInA2S+dPp0cz5/TQA/H06dkmjIl0AstQGqw8RFy4xA3cU1+tWGDcKNWorF7azZuJFtBQefkxnMt9++LhlaHpuh48qTTO9orK8l67JjwctPly+RubdXMh+o1a6Q+4fdCfjCB4bJrfDc1FhaqvxAhVbN5s9TQWBrgLxvqcbl897TcvUsmrC+88oFXcs4XL/z8bDaqWrnSJzGwdKX6Eyc0vWA7cyY4mQuMgesMfPEZ8MynLJE4bITacBoMZJo82R+X+MsywlVW5ruHPaMbOZICPVp/8qTvemtJiSgQXqP4esX8+Zpl2n7zpiAZQOAPxc6JrM3/DYUASwY2WEFg5kxyVVT4CcBDgQS4uzacOuUn8PAhGcaPVxKALHFDAagSgFTpjgCH0F+KELp4UTMmWf9A/EkhhBdb9u1TaCA2kEl5VSnrHSbuCyG7XcS1NwyZjO3s2V6FEC/EyxVJjPKlJczczc3UdOWKMLzp6lVhULDGaXv8mKxHjojQYfHWqRBYLGTDJHHXtd++rVmuRRKvXh2cxJsDjR8GHFfsC3EZRZg4nj0b+DKKCiZyTllGvwre2MqQ48qlaGRIRhZZA9rI1q0LbmQlWo1sKHBSISWg0zn+tPpBn0sJJL6KlMjpSpXGKfZJWcxhjcw9gWOx32YePYWTWkXM3QI+7m6FthxoVshpLGLsd+70i/Gc3JY9exRlVsZLYGYoS0wOpW3y9odUlVDqeD3Q1/HOqzxzZqbagoa3YZaGs0sxCigNJMD7Rq/fao+Y8eZr16gqK0taxHReUtYBP2BFGBEOgZEKAnip5dAhTZdz13bq9aKTdpUrfI11EN/LRtdu20bl8+aJRNVY1LO8WRiW8TKB2Yo8wHq4qaios/G1tVSdlycMYMnLcqAqO5tq8vPJsnevCDsGxzTLC57lioULJXmMDi6MVpbIwFrPW/7jerrduDewEvE+jlOnU2qi8nJhkG8PVGVjS4HQNrbagNtAOvennho/Pjh8uJV75TKHAYcMz7bG7IULt7xgL5Q3fkf09ripQNEHEhOlPSCrlVqKi8VCh3uDivFtgZWrC7jkxGTxeAb4Ue4/vTtYNEDdydvfjuBGVrl8OZWnpUkaXj0E/gQWyDOYB2wHDssa6xhwENgqn4bOBxLFoWG4ydnN7LMesmhtJWqEC8/mb3xUO9AHfXy+VR1m3D6X9/aHD4aTSj4xOQr8I/aHOh+5eoVUrVwl1nCzG2znxbwz8bncA7JkOcGxu0/eucuUY3fYkLfj7Xg7Bs34HwoINZEQp4aVAAAAAElFTkSuQmCC)](https://talk.owncloud.com/channel/infinitescale)
[![Rocket chat](https://img.shields.io/badge/Chat%20on%20Rocket.Chat-blue?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSItDnaQIpKhOlkQFemoVShChVArtOpgcv2EJg1Jiouj4Fpw8GOx6uDirKuDqyAIfoA4OTopukiJ/0sKLWI8OO7Hu3uPu3eA0Kwy1eyZAFTNMtLJhJjNrYqBVwQxghDiiMjM1OckKQXP8XUPH1/vYjzL+9yfI5QvmAzwicSzTDcs4g3imU1L57xPHGZlOU98Tjxu0AWJH7muuPzGueSwwDPDRiY9TxwmFktdrHQxKxsq8TRxNK9qlC9kXc5z3uKsVuusfU/+wmBBW1nmOs1hJLGIJUgQoaCOCqqwEKNVI8VEmvYTHv6I45fIpZCrAkaOBdSgQnb84H/wu1uzODXpJgUTQO+LbX+MAoFdoNWw7e9j226dAP5n4Err+GtNIP5JeqOjRY+AgW3g4rqjKXvA5Q4w9KTLhuxIfppCsQi8n9E35YDBW6B/ze2tvY/TByBDXaVugINDYKxE2ese7+7r7u3fM+3+fgDAvHLGj7r9AwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+QMHg05Mvq8cfAAAAAGYktHRAD/AP8A/6C9p5MAAAcbSURBVGje7VlpTFRXGLU0NmmNpuma9IciCCKCQDTuxqQWkrrTNJAal6Y2ECyoURONRBPXuBujVpsYiys1qUH7w8QVjQnVP9Zqq3Y2FgcQmIEBBpgZmPl6vvveLG94D2ZAFhNvcsIwb5nv3G87994hQ970oY+OjgaygR3AWmAyMPRNIjAV+A8gGQ3AKX1U1Nf60aNTgVn4nIDvPgLeGYwE3gd+ATwBJBhuQ2xshyEuzmWIiWnQRUY+0o0adRBkUvQxMRGDicAHwLkg4xUwTJtG5RkZVDZnDunHjKmCV3JB4r3BQyIq6jgM83RFQhCZNIlMqamkj41txzO/47tcYBWwApgHJAGfABH96YGxMMbMxnVHoAsweRdgBf4GfgW+A77AxPRt3ugjIzONycmO+qIiMqal9YxAVBThPYQcIYSX9H90dDvwFNjIRPqWQFKSo+3RI7Jev84xHjaBMuRHdX4+mVesoNJZs0gfFyeRkIiwd2qAQmA1sBhIAT4F3n0dIRSLH9LVbd9OzpqaHnvBMGMG6ZOSQrmXPVMve+cikANwme55UYDb1xri413VO3aQITm5N7nQ0/x5BXBR+Bb4sEdeQJ2vN0ycKNxuGDeuV3kggM96GbqA78V3UmipwQHcAzK4vIdTRvNQ16UyGhtLtbt2hRZKsnGGsWOpFL3iZXo6Va9aRbVbt5LlwAGyHj0qwJ9rt2yhqpwcqli8mExTp4pnfCQ7v7tVzpmEUGZ/GmD2GmReupScZjOV4ce0ZloYDS9VLFpEdbt3k/3GDXKZTORuaiLq6CCt4cE1vsdpNJIdBaNu506qWLBAvEun7hmWON902VdwMQoo8j5ku3CB2hsbqSw7W3XGjRMmUHVuLtlv3aKOhgbq1fB4qKO+XpBh7xgTE9U8wr0lq8uKhYs/i9hPSKCWBw+kchpYUXhmUF7Ny5ZRy7175HE66XUPj8NB9uJiMi9Z4v9NPwkb8H1IBCznz5ORNY/3YTQmnhnr4cO9n/EQBnvEsn+/sCWIRCUwW4vAJu+NprlzFTNvTEmhxkuXRPz21/C0t4tQNnIUKEkUs9ZSI/AlYFfczB6JjyfbuXMiVvt9uN3UcPo0GbxdXbKrA/hJjcAIoESRPAidmk2b+iTeQ/ZEWxu9Wr9e0ld+2x7w4kqNxInA2S+dPp0cz5/TQA/H06dkmjIl0AstQGqw8RFy4xA3cU1+tWGDcKNWorF7azZuJFtBQefkxnMt9++LhlaHpuh48qTTO9orK8l67JjwctPly+RubdXMh+o1a6Q+4fdCfjCB4bJrfDc1FhaqvxAhVbN5s9TQWBrgLxvqcbl897TcvUsmrC+88oFXcs4XL/z8bDaqWrnSJzGwdKX6Eyc0vWA7cyY4mQuMgesMfPEZ8MynLJE4bITacBoMZJo82R+X+MsywlVW5ruHPaMbOZICPVp/8qTvemtJiSgQXqP4esX8+Zpl2n7zpiAZQOAPxc6JrM3/DYUASwY2WEFg5kxyVVT4CcBDgQS4uzacOuUn8PAhGcaPVxKALHFDAagSgFTpjgCH0F+KELp4UTMmWf9A/EkhhBdb9u1TaCA2kEl5VSnrHSbuCyG7XcS1NwyZjO3s2V6FEC/EyxVJjPKlJczczc3UdOWKMLzp6lVhULDGaXv8mKxHjojQYfHWqRBYLGTDJHHXtd++rVmuRRKvXh2cxJsDjR8GHFfsC3EZRZg4nj0b+DKKCiZyTllGvwre2MqQ48qlaGRIRhZZA9rI1q0LbmQlWo1sKHBSISWg0zn+tPpBn0sJJL6KlMjpSpXGKfZJWcxhjcw9gWOx32YePYWTWkXM3QI+7m6FthxoVshpLGLsd+70i/Gc3JY9exRlVsZLYGYoS0wOpW3y9odUlVDqeD3Q1/HOqzxzZqbagoa3YZaGs0sxCigNJMD7Rq/fao+Y8eZr16gqK0taxHReUtYBP2BFGBEOgZEKAnip5dAhTZdz13bq9aKTdpUrfI11EN/LRtdu20bl8+aJRNVY1LO8WRiW8TKB2Yo8wHq4qaios/G1tVSdlycMYMnLcqAqO5tq8vPJsnevCDsGxzTLC57lioULJXmMDi6MVpbIwFrPW/7jerrduDewEvE+jlOnU2qi8nJhkG8PVGVjS4HQNrbagNtAOvennho/Pjh8uJV75TKHAYcMz7bG7IULt7xgL5Q3fkf09ripQNEHEhOlPSCrlVqKi8VCh3uDivFtgZWrC7jkxGTxeAb4Ue4/vTtYNEDdydvfjuBGVrl8OZWnpUkaXj0E/gQWyDOYB2wHDssa6xhwENgqn4bOBxLFoWG4ydnN7LMesmhtJWqEC8/mb3xUO9AHfXy+VR1m3D6X9/aHD4aTSj4xOQr8I/aHOh+5eoVUrVwl1nCzG2znxbwz8bncA7JkOcGxu0/eucuUY3fYkLfj7Xg7Bs34HwoINZEQp4aVAAAAAElFTkSuQmCC)](https://talk.owncloud.com/channel/ocis)
[![Build Status](https://drone.owncloud.com/api/badges/owncloud/ocis/status.svg)](https://drone.owncloud.com/owncloud/ocis)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=owncloud_ocis&metric=security_rating)](https://sonarcloud.io/dashboard?id=owncloud_ocis)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=owncloud_ocis&metric=coverage)](https://sonarcloud.io/dashboard?id=owncloud_ocis)
@@ -12,11 +12,11 @@
## Run ownCloud Infinite Scale
Please see [Getting Started](https://owncloud.github.io/ocis/getting-started/)
Please see [Getting Started](https://owncloud.dev/ocis/getting-started/)
## Development
Please see [Development - Getting Started](https://owncloud.github.io/ocis/development/getting-started/)
Please see [Development - Getting Started](https://owncloud.dev/ocis/development/getting-started/)
## Security
@@ -24,7 +24,7 @@ If you find a security issue please contact [security@owncloud.com](mailto:secur
## Contributing
Fork -> Patch -> Push -> Pull Request
Please refer to our [Contribution Guidelines](CONTRIBUTING.md).
## License
@@ -33,5 +33,5 @@ Apache-2.0
## Copyright
```console
Copyright (c) 2020 ownCloud GmbH <https://owncloud.com>
Copyright (c) 2020-2021 ownCloud GmbH <https://owncloud.com>
```
+17
View File
@@ -0,0 +1,17 @@
# yarn2 with Zero-Installs: https://yarnpkg.com/features/zero-installs
#.yarn/*
#!.yarn/cache
#!.yarn/patches
#!.yarn/plugins
#!.yarn/releases
#!.yarn/sdks
#!.yarn/versions
# yarn2 not using Zero-Installs: https://yarnpkg.com/features/zero-installs
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*
+768
View File
@@ -0,0 +1,768 @@
#!/usr/bin/env node
/* eslint-disable */
//prettier-ignore
(()=>{var Mfe=Object.create,Vf=Object.defineProperty,Ofe=Object.defineProperties,Kfe=Object.getOwnPropertyDescriptor,Ufe=Object.getOwnPropertyDescriptors,Hfe=Object.getOwnPropertyNames,hI=Object.getOwnPropertySymbols,Gfe=Object.getPrototypeOf,eb=Object.prototype.hasOwnProperty,lO=Object.prototype.propertyIsEnumerable;var cO=(t,e,r)=>e in t?Vf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,P=(t,e)=>{for(var r in e||(e={}))eb.call(e,r)&&cO(t,r,e[r]);if(hI)for(var r of hI(e))lO.call(e,r)&&cO(t,r,e[r]);return t},_=(t,e)=>Ofe(t,Ufe(e)),jfe=t=>Vf(t,"__esModule",{value:!0});var qr=(t,e)=>{var r={};for(var i in t)eb.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&hI)for(var i of hI(t))e.indexOf(i)<0&&lO.call(t,i)&&(r[i]=t[i]);return r},Yfe=(t,e)=>()=>(t&&(e=t(t=0)),e),I=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),it=(t,e)=>{for(var r in e)Vf(t,r,{get:e[r],enumerable:!0})},qfe=(t,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Hfe(e))!eb.call(t,i)&&i!=="default"&&Vf(t,i,{get:()=>e[i],enumerable:!(r=Kfe(e,i))||r.enumerable});return t},ie=t=>qfe(jfe(Vf(t!=null?Mfe(Gfe(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var MO=I((i$e,FO)=>{FO.exports=NO;NO.sync=Ahe;var LO=require("fs");function lhe(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var n=r[i].toLowerCase();if(n&&t.substr(-n.length).toLowerCase()===n)return!0}return!1}function TO(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:lhe(e,r)}function NO(t,e,r){LO.stat(t,function(i,n){r(i,i?!1:TO(n,t,e))})}function Ahe(t,e){return TO(LO.statSync(t),t,e)}});var GO=I((n$e,OO)=>{OO.exports=KO;KO.sync=che;var UO=require("fs");function KO(t,e,r){UO.stat(t,function(i,n){r(i,i?!1:HO(n,e))})}function che(t,e){return HO(UO.statSync(t),e)}function HO(t,e){return t.isFile()&&uhe(t,e)}function uhe(t,e){var r=t.mode,i=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),c=parseInt("001",8),u=a|l,g=r&c||r&l&&n===o||r&a&&i===s||r&u&&s===0;return g}});var YO=I((o$e,jO)=>{var s$e=require("fs"),xI;process.platform==="win32"||global.TESTING_WINDOWS?xI=MO():xI=GO();jO.exports=db;db.sync=ghe;function db(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){db(t,e||{},function(s,o){s?n(s):i(o)})})}xI(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function ghe(t,e){try{return xI.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var XO=I((a$e,qO)=>{var eu=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",JO=require("path"),fhe=eu?";":":",WO=YO(),zO=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),VO=(t,e)=>{let r=e.colon||fhe,i=t.match(/\//)||eu&&t.match(/\\/)?[""]:[...eu?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=eu?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=eu?n.split(r):[""];return eu&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},_O=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=VO(t,e),o=[],a=c=>new Promise((u,g)=>{if(c===i.length)return e.all&&o.length?u(o):g(zO(t));let f=i[c],h=/^".*"$/.test(f)?f.slice(1,-1):f,p=JO.join(h,t),d=!h&&/^\.[\\\/]/.test(t)?t.slice(0,2)+p:p;u(l(d,c,0))}),l=(c,u,g)=>new Promise((f,h)=>{if(g===n.length)return f(a(u+1));let p=n[g];WO(c+p,{pathExt:s},(d,m)=>{if(!d&&m)if(e.all)o.push(c+p);else return f(c+p);return f(l(c,u,g+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},hhe=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=VO(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=JO.join(l,t),u=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let g=0;g<i.length;g++){let f=u+i[g];try{if(WO.sync(f,{pathExt:n}))if(e.all)s.push(f);else return f}catch(h){}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw zO(t)};qO.exports=_O;_O.sync=hhe});var $O=I((A$e,Cb)=>{"use strict";var ZO=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};Cb.exports=ZO;Cb.exports.default=ZO});var iK=I((l$e,eK)=>{"use strict";var tK=require("path"),phe=XO(),dhe=$O();function rK(t,e){let r=t.options.env||process.env,i=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch(a){}let o;try{o=phe.sync(t.command,{path:r[dhe({env:r})],pathExt:e?tK.delimiter:void 0})}catch(a){}finally{s&&process.chdir(i)}return o&&(o=tK.resolve(n?t.options.cwd:"",o)),o}function Che(t){return rK(t)||rK(t,!0)}eK.exports=Che});var nK=I((c$e,mb)=>{"Line truncated
`:`
`)+r,n=i+1,i=t.indexOf(`
`,n)}while(i!==-1);return s+=t.substr(n),s};KK.exports={stringReplaceAll:zhe,stringEncaseCRLFWithFirstIndex:Vhe}});var qK=I((k$e,HK)=>{"use strict";var _he=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,GK=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Xhe=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Zhe=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,$he=new Map([["n",`
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function jK(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):$he.get(t)||t}function epe(t,e){let r=[],i=e.trim().split(/\s*,\s*/g),n;for(let s of i){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(n=s.match(Xhe))r.push(n[2].replace(Zhe,(a,l,c)=>l?jK(l):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function tpe(t){GK.lastIndex=0;let e=[],r;for(;(r=GK.exec(t))!==null;){let i=r[1];if(r[2]){let n=epe(i,r[2]);e.push([i].concat(n))}else e.push([i])}return e}function YK(t,e){let r={};for(let n of e)for(let s of n.styles)r[s[0]]=n.inverse?null:s.slice(1);let i=t;for(let[n,s]of Object.entries(r))if(!!Array.isArray(s)){if(!(n in i))throw new Error(`Unknown Chalk style: ${n}`);i=s.length>0?i[n](...s):i[n]}return i}HK.exports=(t,e)=>{let r=[],i=[],n=[];if(e.replace(_he,(s,o,a,l,c,u)=>{if(o)n.push(jK(o));else if(l){let g=n.join("");n=[],i.push(r.length===0?g:YK(t,r)(g)),r.push({inverse:a,styles:tpe(l)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(YK(t,r)(n.join(""))),n=[],r.pop()}else n.push(u)}),i.push(n.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return i.join("")}});var jb=I((P$e,JK)=>{"use strict";var fh=FK(),{stdout:Kb,stderr:Ub}=OK(),{stringReplaceAll:rpe,stringEncaseCRLFWithFirstIndex:ipe}=UK(),WK=["ansi","ansi","ansi256","ansi16m"],su=Object.create(null),npe=(t,e={})=>{if(e.level>3||e.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let r=Kb?Kb.level:0;t.level=e.level===void 0?r:e.level},zK=class{constructor(e){return VK(e)}},VK=t=>{let e={};return npe(e,t),e.template=(...r)=>spe(e.template,...r),Object.setPrototypeOf(e,DI.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=zK,e.template};function DI(t){return VK(t)}for(let[t,e]of Object.entries(fh))su[t]={get(){let r=RI(this,Hb(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};su.visible={get(){let t=RI(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var _K=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of _K)su[t]={get(){let{level:e}=this;return function(...r){let i=Hb(fh.color[WK[e]][t](...r),fh.color.close,this._styler);return RI(this,i,this._isEmpty)}}};for(let t of _K){let e="bg"+t[0].toUpperCase()+t.slice(1);su[e]={get(){let{level:r}=this;return function(...i){let n=Hb(fh.bgColor[WK[r]][t](...i),fh.bgColor.close,this._styler);return RI(this,n,this._isEmpty)}}}}var ope=Object.defineProperties(()=>{},_(P({},su),{level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}})),Hb=(t,e,r)=>{let i,n;return r===void 0?(i=t,n=e):(i=r.openAll+t,n=e+r.closeAll),{open:t,close:e,openAll:i,closeAll:n,parent:r}},RI=(t,e,r)=>{let i=(...n)=>ape(i,n.length===1?""+n[0]:n.join(" "));return i.__proto__=ope,i._generator=t,i._styler=e,i._isEmpty=r,i},ape=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:i,closeAll:n}=r;if(e.indexOf("")!==-1)for(;r!==void 0;)e=rpe(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
`);return s!==-1&&(e=ipe(e,n,i,s)),i+e+n},Gb,spe=(t,...e)=>{let[r]=e;if(!Array.isArray(r))return e.join(" ");let i=e.slice(1),n=[r.raw[0]];for(let s=1;s<r.length;s++)n.push(String(i[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Gb===void 0&&(Gb=qK()),Gb(t,n.join(""))};Object.defineProperties(DI.prototype,su);var hh=DI();hh.supportsColor=Kb;hh.stderr=DI({level:Ub?Ub.level:0});hh.stderr.supportsColor=Ub;hh.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};JK.exports=hh});var ZK=I((D$e,XK)=>{XK.exports=[{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",pr:"SYSTEM_PULLREQUEST_PULLREQUESTID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vercel",constant:"VERCEL",env:"NOW_BUILDER"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"}]});var ml=I(Dn=>{"use strict";var $K=ZK(),ro=process.env;Object.defineProperty(Dn,"_vendors",{value:$K.map(function(t){return t.constant})});Dn.name=null;Dn.isPR=null;$K.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(i){return e1(i)});if(Dn[t.constant]=r,r)switch(Dn.name=t.name,typeof t.pr){case"string":Dn.isPR=!!ro[t.pr];break;case"object":"env"in t.pr?Dn.isPR=t.pr.env in ro&&ro[t.pr.env]!==t.pr.ne:"any"in t.pr?Dn.isPR=t.pr.any.some(function(i){return!!ro[i]}):Dn.isPR=e1(t.pr);break;default:Dn.isPR=null}});Dn.isCI=!!(ro.CI||ro.CONTINUOUS_INTEGRATION||ro.BUILD_NUMBER||ro.RUN_ID||Dn.name);function e1(t){return typeof t=="string"?!!ro[t]:Object.keys(t).every(function(e){return ro[e]===t[e]})}});var FI=I(zn=>{"use strict";zn.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;zn.find=(t,e)=>t.nodes.find(r=>r.type===e);zn.exceedsLimit=(t,e,r=1,i)=>i===!1||!zn.isInteger(t)||!zn.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;zn.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];!i||(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};zn.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0==0?(t.invalid=!0,!0):!1;zn.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0==0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;zn.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;zn.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);zn.flatten=(...t)=> Line truncated
`,CHAR_NO_BREAK_SPACE:"\xA0",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:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var N1=I((H$e,P1)=>{"use strict";var Spe=NI(),{MAX_LENGTH:D1,CHAR_BACKSLASH:zb,CHAR_BACKTICK:xpe,CHAR_COMMA:kpe,CHAR_DOT:Ppe,CHAR_LEFT_PARENTHESES:Dpe,CHAR_RIGHT_PARENTHESES:Rpe,CHAR_LEFT_CURLY_BRACE:Fpe,CHAR_RIGHT_CURLY_BRACE:Npe,CHAR_LEFT_SQUARE_BRACKET:R1,CHAR_RIGHT_SQUARE_BRACKET:F1,CHAR_DOUBLE_QUOTE:Lpe,CHAR_SINGLE_QUOTE:Tpe,CHAR_NO_BREAK_SPACE:Mpe,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ope}=k1(),Kpe=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(D1,r.maxLength):D1;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,l=0,c=t.length,u=0,g=0,f,h={},p=()=>t[u++],d=m=>{if(m.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&m.type==="text"){a.value+=m.value;return}return o.nodes.push(m),m.parent=o,m.prev=a,a=m,m};for(d({type:"bos"});u<c;)if(o=s[s.length-1],f=p(),!(f===Ope||f===Mpe)){if(f===zb){d({type:"text",value:(e.keepEscaping?f:"")+p()});continue}if(f===F1){d({type:"text",value:"\\"+f});continue}if(f===R1){l++;let m=!0,E;for(;u<c&&(E=p());){if(f+=E,E===R1){l++;continue}if(E===zb){f+=p();continue}if(E===F1&&(l--,l===0))break}d({type:"text",value:f});continue}if(f===Dpe){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:f});continue}if(f===Rpe){if(o.type!=="paren"){d({type:"text",value:f});continue}o=s.pop(),d({type:"text",value:f}),o=s[s.length-1];continue}if(f===Lpe||f===Tpe||f===xpe){let m=f,E;for(e.keepQuotes!==!0&&(f="");u<c&&(E=p());){if(E===zb){f+=E+p();continue}if(E===m){e.keepQuotes===!0&&(f+=E);break}f+=E}d({type:"text",value:f});continue}if(f===Fpe){g++;let m=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=d({type:"brace",open:!0,close:!1,dollar:m,depth:g,commas:0,ranges:0,nodes:[]}),s.push(o),d({type:"open",value:f});continue}if(f===Npe){if(o.type!=="brace"){d({type:"text",value:f});continue}let m="close";o=s.pop(),o.close=!0,d({type:m,value:f}),g--,o=s[s.length-1];continue}if(f===kpe&&g>0){if(o.ranges>0){o.ranges=0;let m=o.nodes.shift();o.nodes=[m,{type:"text",value:Spe(o)}]}d({type:"comma",value:f}),o.commas++;continue}if(f===Ppe&&g>0&&o.commas===0){let m=o.nodes;if(g===0||m.length===0){d({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){m.pop();let E=m[m.length-1];E.value+=a.value+f,a=E,o.ranges--;continue}d({type:"dot",value:f});continue}d({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(B=>{B.nodes||(B.type==="open"&&(B.isOpen=!0),B.type==="close"&&(B.isClose=!0),B.nodes||(B.type="text"),B.invalid=!0)});let m=s[s.length-1],E=m.nodes.indexOf(o);m.nodes.splice(E,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),n};P1.exports=Kpe});var M1=I((G$e,L1)=>{"use strict";var T1=NI(),Upe=Q1(),Hpe=S1(),Gpe=N1(),Rn=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Rn.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Rn.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Rn.parse=(t,e={})=>Gpe(t,e);Rn.stringify=(t,e={})=>typeof t=="string"?T1(Rn.parse(t,e),e):T1(t,e);Rn.compile=(t,e={})=>(typeof t=="string"&&(t=Rn.parse(t,e)),Upe(t,e));Rn.expand=(t,e={})=>{typeof t=="string"&&(t=Rn.parse(t,e));let r=Hpe(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Rn.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Rn.compile(t,e):Rn.expand(t,e);L1.exports=Rn});var dh=I((j$e,O1)=>{"use strict";var jpe=require("path"),io="\\\\/",K1=`[^${io}]`,ea="\\.",Ype="\\+",qpe="\\?",TI="\\/",Jpe="(?=.)",U1="[^/]",Vb=`(?:${TI}|$)`,H1=`(?:^|${TI})`,_b=`${ea}{1,2}${Vb}`,Wpe=`(?!${ea})`,zpe=`(?!${H1}${_b})`,Vpe=`(?!${ea}{0,1}${Vb})`,_pe=`(?!${_b})`,Xpe=`[^.${TI}]`,Zpe=`${U1}*?`,G1={DOT_LITERAL:ea,PLUS_LITERAL:Ype,QMARK_LITERAL:qpe,SLASH_LITERAL:TI,ONE_CHAR:Jpe,QMARK:U1,END_ANCHOR:Vb,DOTS_SLASH:_b,NO_DOT:Wpe,NO_DOTS:zpe,NO_DOT_SLASH:Vpe,NO_DOTS_SLASH:_pe,QMARK_NO_DOT:Xpe,STAR:Zpe,START_ANCHOR:H1},$pe=_(P({},G1),{SLASH_LITERAL:`[${io}]`,QMARK:K1,STAR:`${K1}*?`,DOTS_SLASH:`${ea}{1,2}(?:[${io}]|$)`,NO_DOT:`(?!${ea})`,NO_DOTS:`(?!(?:^|[${io}])${ea}{1,2}(?:[${io}]|$))`,NO_DOT_SLASH:`(?!${ea}{0,1}(?:[${io}]|$))`,NO_DOTS_SLASH:`(?!${ea}{1,2}(?:[${io}]|$))`,QMARK_NO_DOT:`[^.${io}]`,START_ANCHOR:`(?:^|[${io}])`,END_ANCHOR:`(?:[${io}]|$)`}),ede={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@ Line truncated
`),n("\r"),n("\u2028"),n("\u2029")]}},t.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},t.prototype.decimalEscapeAtom=function(){var p=this.positiveInteger();return{type:"GroupBackReference",value:p}},t.prototype.characterClassEscape=function(){var p,d=!1;switch(this.popChar()){case"d":p=u;break;case"D":p=u,d=!0;break;case"s":p=f;break;case"S":p=f,d=!0;break;case"w":p=g;break;case"W":p=g,d=!0;break}return a(p),{type:"Set",value:p,complement:d}},t.prototype.controlEscapeAtom=function(){var p;switch(this.popChar()){case"f":p=n("\f");break;case"n":p=n(`
`);break;case"r":p=n("\r");break;case"t":p=n(" ");break;case"v":p=n("\v");break}return a(p),{type:"Character",value:p}},t.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var p=this.popChar();if(/[a-zA-Z]/.test(p)===!1)throw Error("Invalid ");var d=p.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:d}},t.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:n("\0")}},t.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},t.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},t.prototype.identityEscapeAtom=function(){var p=this.popChar();return{type:"Character",value:n(p)}},t.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case`
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var p=this.popChar();return{type:"Character",value:n(p)}}},t.prototype.characterClass=function(){var p=[],d=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),d=!0);this.isClassAtom();){var m=this.classAtom(),E=m.type==="Character";if(E&&this.isRangeDash()){this.consumeChar("-");var B=this.classAtom(),b=B.type==="Character";if(b){if(B.value<m.value)throw Error("Range out of order in character class");p.push({from:m.value,to:B.value})}else s(m.value,p),p.push(n("-")),s(B.value,p)}else s(m.value,p)}return this.consumeChar("]"),{type:"Set",complement:d,value:p}},t.prototype.classAtom=function(){switch(this.peekChar()){case"]":case`
`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},t.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:n("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},t.prototype.group=function(){var p=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),p=!1;break;default:this.groupIdx++;break}var d=this.disjunction();this.consumeChar(")");var m={type:"Group",capturing:p,value:d};return p&&(m.idx=this.groupIdx),m},t.prototype.positiveInteger=function(){var p=this.popChar();if(i.test(p)===!1)throw Error("Expecting a positive integer");for(;r.test(this.peekChar(0));)p+=this.popChar();return parseInt(p,10)},t.prototype.integerIncludingZero=function(){var p=this.popChar();if(r.test(p)===!1)throw Error("Expecting an integer");for(;r.test(this.peekChar(0));)p+=this.popChar();return parseInt(p,10)},t.prototype.patternCharacter=function(){var p=this.popChar();switch(p){case`
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:n(p)}}},t.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},t.prototype.isRangeDash=function(){return this.peekChar()==="-"&&this.isClassAtom(1)},t.prototype.isDigit=function(){return r.test(this.peekChar(0))},t.prototype.isClassAtom=function(p){switch(p===void 0&&(p=0),this.peekChar(p)){case"]":case`
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},t.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},t.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},t.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!");default:return!1}},t.prototype.isQuantifier=function(){var p=this.saveState();try{return this.quantifier(!0)!==void 0}catch(d){return!1}finally{this.restoreState(p)}},t.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},t.prototype.parseHexDigits=function(p){for(var d="",m=0;m<p;m++){var E=this.popChar();if(e.test(E)===!1)throw Error("Expecting a HexDecimal digits");d+=E}var B=parseInt(d,16);return{type:"Character",value:B}},t.prototype.peekChar=function(p){return p===void 0&&(p=0),this.input[this.idx+p]},t.prototype.popChar=function(){var p=this.peekChar(0);return this.consumeChar(),p},t.prototype.consumeChar=function(p){if(p!==void 0&&this.input[this.idx]!==p)throw Error("Expected: '"+p+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},t.prototype.loc=function(p){return{begin:p,end:this.idx}};var e=/[0-9a-fA-F]/,r=/[0-9]/,i=/[1-9]/;function n(p){return p.charCodeAt(0)}function s(p,d){p.length!==void 0?p.forEach(function(m){d.push(m)}):d.push(p)}function o(p,d){if(p[d]===!0)throw"duplicate flag "+d;p[d]=!0}function a(p){if(p===void 0)throw Error("Internal Error - Should never get here!")}function l(){throw Error("Internal Error - Should never get here!")}var c,u=[];for(c=n("0");c<=n("9");c++)u.push(c);var g=[n("_")].concat(u);for(c=n("a");c<=n("z");c++)g.push(c);for(c=n("A");c<=n("Z");c++)g.push(c);var f=[n(" "),n("\f"),n(`
`),n("\r"),n(" "),n("\v"),n(" "),n("\xA0"),n("\u1680"),n("\u2000"),n("\u2001"),n("\u2002"),n("\u2003"),n("\u2004"),n("\u2005"),n("\u2006"),n("\u2007"),n("\u2008"),n("\u2009"),n("\u200A"),n("\u2028"),n("\u2029"),n("\u202F"),n("\u205F"),n("\u3000"),n("\uFEFF")];function h(){}return h.prototype.visitChildren=function(p){for(var d in p){var m=p[d];p.hasOwnProperty(d)&&(m.type!==void 0?this.visit(m):Array.isArray(m)&&m.forEach(function(E){this.visit(E)},this))}},h.prototype.visit=function(p){switch(p.type){case"Pattern":this.visitPattern(p);break;case"Flags":this.visitFlags(p);break;case"Disjunction":this.visitDisjunction(p);break;case"Alternative":this.visitAlternative(p);break;case"StartAnchor":this.visitStartAnchor(p);break;case"EndAnchor":this.visitEndAnchor(p);break;case"WordBoundary":this.visitWordBoundary(p);break;case"NonWordBoundary":this.visitNonWordBoundary(p);break;case"Lookahead":this.visitLookahead(p);break;case"NegativeLookahead":this.visitNegativeLookahead(p);break;case"Character":this.visitCharacter(p);break;case"Set":this.visitSet(p);break;case"Group":this.visitGroup(p);break;case"GroupBackReference":this.visitGroupBackReference(p);break;case"Quantifier":this.visitQuantifier(p);break}this.visitChildren(p)},h.prototype.visitPattern=function(p){},h.prototype.visitFlags=function(p){},h.prototype.visitDisjunction=function(p){},h.prototype.visitAlternative=function(p){},h.prototype.visitStartAnchor=function(p){},h.prototype.visitEndAnchor=function(p){},h.prototype.visitWordBoundary=function(p){},h.prototype.visitNonWordBoundary=function(p){},h.prototype.visitLookahead=function(p){},h.prototype.visitNegativeLookahead=function(p){},h.prototype.visitCharacter=function(p){},h.prototype.visitSet=function(p){},h.prototype.visitGroup=function(p){},h.prototype.visitGroupBackReference=function(p){},h.prototype.visitQuantifier=function(p){},{RegExpParser:t,BaseRegExpVisitor:h,VERSION:"0.5.0"}})});var gE=I(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.clearRegExpParserCache=Iu.getRegExpAst=void 0;var FIe=cE(),uE={},NIe=new FIe.RegExpParser;function LIe(t){var e=t.toString();if(uE.hasOwnProperty(e))return uE[e];var r=NIe.pattern(e);return uE[e]=r,r}Iu.getRegExpAst=LIe;function TIe(){uE={}}Iu.clearRegExpParserCache=TIe});var VH=I(fn=>{"use strict";var MIe=fn&&fn.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(fn,"__esModule",{value:!0});fn.canMatchCharCode=fn.firstCharOptimizedIndices=fn.getOptimizedStartCodesIndices=fn.failedOptimizationPrefixMsg=void 0;var qH=cE(),$n=Dt(),JH=gE(),sa=Hv(),WH="Complement Sets are not supported for first char optimization";fn.failedOptimizationPrefixMsg=`Unable to use "first char" lexer optimizations:
`;function OIe(t,e){e===void 0&&(e=!1);try{var r=(0,JH.getRegExpAst)(t),i=fE(r.value,{},r.flags.ignoreCase);return i}catch(s){if(s.message===WH)e&&(0,$n.PRINT_WARNING)(""+fn.failedOptimizationPrefixMsg+(" Unable to optimize: < "+t.toString()+` >
`)+` Complement Sets cannot be automatically optimized.
This will disable the lexer's first char optimizations.
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{var n="";e&&(n=`
This will disable the lexer's first char optimizations.
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),(0,$n.PRINT_ERROR)(fn.failedOptimizationPrefixMsg+`
`+(" Failed parsing: < "+t.toString()+` >
`)+(" Using the regexp-to-ast library version: "+qH.VERSION+`
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+n)}}return[]}fn.getOptimizedStartCodesIndices=OIe;function fE(t,e,r){switch(t.type){case"Disjunction":for(var i=0;i<t.value.length;i++)fE(t.value[i],e,r);break;case"Alternative":for(var n=t.value,i=0;i<n.length;i++){var s=n[i];switch(s.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var o=s;switch(o.type){case"Character":hE(o.value,e,r);break;case"Set":if(o.complement===!0)throw Error(WH);(0,$n.forEach)(o.value,function(c){if(typeof c=="number")hE(c,e,r);else{var u=c;if(r===!0)for(var g=u.from;g<=u.to;g++)hE(g,e,r);else{for(var g=u.from;g<=u.to&&g<sa.minOptimizationVal;g++)hE(g,e,r);if(u.to>=sa.minOptimizationVal)for(var f=u.from>=sa.minOptimizationVal?u.from:sa.minOptimizationVal,h=u.to,p=(0,sa.charCodeToOptimizedIndex)(f),d=(0,sa.charCodeToOptimizedIndex)(h),m=p;m<=d;m++)e[m]=m}}});break;case"Group":fE(o.value,e,r);break;default:throw Error("Non Exhaustive Match")}var a=o.quantifier!==void 0&&o.quantifier.atLeast===0;if(o.type==="Group"&&Gv(o)===!1||o.type!=="Group"&&a===!1)break}break;default:throw Error("non exhaustive match!")}return(0,$n.values)(e)}fn.firstCharOptimizedIndices=fE;function hE(t,e,r){var i=(0,sa.charCodeToOptimizedIndex)(t);e[i]=i,r===!0&&KIe(t,e)}function KIe(t,e){var r=String.fromCharCode(t),i=r.toUpperCase();if(i!==r){var n=(0,sa.charCodeToOptimizedIndex)(i.charCodeAt(0));e[n]=n}else{var s=r.toLowerCase();if(s!==r){var n=(0,sa.charCodeToOptimizedIndex)(s.charCodeAt(0));e[n]=n}}}function zH(t,e){return(0,$n.find)(t.value,function(r){if(typeof r=="number")return(0,$n.contains)(e,r);var i=r;return(0,$n.find)(e,function(n){return i.from<=n&&n<=i.to})!==void 0})}function Gv(t){return t.quantifier&&t.quantifier.atLeast===0?!0:t.value?(0,$n.isArray)(t.value)?(0,$n.every)(t.value,Gv):Gv(t.value):!1}var UIe=function(t){MIe(e,t);function e(r){var i=t.call(this)||this;return i.targetCharCodes=r,i.found=!1,i}return e.prototype.visitChildren=function(r){if(this.found!==!0){switch(r.type){case"Lookahead":this.visitLookahead(r);return;case"NegativeLookahead":this.visitNegativeLookahead(r);return}t.prototype.visitChildren.call(this,r)}},e.prototype.visitCharacter=function(r){(0,$n.contains)(this.targetCharCodes,r.value)&&(this.found=!0)},e.prototype.visitSet=function(r){r.complement?zH(r,this.targetCharCodes)===void 0&&(this.found=!0):zH(r,this.targetCharCodes)!==void 0&&(this.found=!0)},e}(qH.BaseRegExpVisitor);function HIe(t,e){if(e instanceof RegExp){var r=(0,JH.getRegExpAst)(e),i=new UIe(t);return i.visit(r),i.found}else return(0,$n.find)(e,function(n){return(0,$n.contains)(t,n.charCodeAt(0))})!==void 0}fn.canMatchCharCode=HIe});var Hv=I(je=>{"use strict";var _H=je&&je.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(je,"__esModule",{value:!0});je.charCodeToOptimizedIndex=je.minOptimizationVal=je.buildLineBreakIssueMessage=je.LineTerminatorOptimizedTester=je.isShortPattern=je.isCustomPattern=je.cloneEmptyGroups=je.performWarningRuntimeChecks=je.performRuntimeChecks=je.addStickyFlag=je.addStartOfInput=je.findUnreachablePatterns=je.findModesThatDoNotExist=je.findInvalidGroupType=je.findDuplicatePatterns=je.findUnsupportedFlags=je.findStartOfInputAnchor=je.findEmptyMatchRegExps=je.findEndOfInputAnchor=je.findInvalidPatterns=je.findMissingPatterns=je.validatePatterns=je.analyzeTokenTypes=je.enableSticky=je.disableSticky=je.SUPPORT_STICKY=je.MODES=je.DEFAULT_MODE=void 0;var XH=cE(),zt=Gh(),Ee=Dt(),Eu=VH(),ZH=gE(),ao="PATTERN";je.DEFAULT_MODE="defaultMode";je.MODES="modes";je.SUPPORT_STICKY=typeof new RegExp("(?:)").sticky=="boolean";function GIe(){je.SUPPORT_STICKY=!1}je.disableSticky=GIe;function jIe(){je.SUPPORT_STICKY=!0}je.enableSticky=jIe;function qIe(t,e){e=(0,Ee.defaults)(e,{useSticky:je.SUPPORT_STICKY,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
`],tracer:function(B,b){return b()}});var r=e.tracer;r("initCharCodeToOptimizedIndexMap",function(){YIe()});var i;r("Reject Lexer.NA",function(){i=(0,Ee.reject)(t,function(B){return B[ao]===zt.Lexer.NA})});var n=!1,s;r("Transform Patterns",function(){n=!1,s=(0,Ee.map)(i,function(B){var b=B[ao];if((0,Ee.isRegExp)(b)){var R=b.source;return R.length===1&&R!=="^"&&R!=="$"&&R!=="."&&!b.ignoreCase?R:R.length===2&&R[0]==="\\"&&!(0,Ee.contains)(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],R[1])?R[1]:e.useSticky?Yv(b):jv(b)}else{if((0,Ee.isFunction)(b))return n=!0,{exec:b};if((0,Ee.has)(b,"exec"))return n=!0,b;if(typeof b=="string"){if(b.length===1)return b;var H=b.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),L=new RegExp(H);return e.useSticky?Yv(L):jv(L)}else throw Error("non exhaustive match")}})});var o,a,l,c,u;r("misc mapping",function(){o=(0,Ee.map)(i,function(B){return B.tokenTypeIdx}),a=(0,Ee.map)(i,function(B){var b=B.GROUP;if(b!==zt.Lexer.SKIPPED){if((0,Ee.isString)(b))return b;if((0,Ee.isUndefined)(b))return!1;throw Error("non exhaustive match")}}),l=(0,Ee.map)(i,function(B){var b=B.LONGER_ALT;if(b){var R=(0,Ee.isArray)(b)?(0,Ee.map)(b,function(H){return(0,Ee.indexOf)(i,H)}):[(0,Ee.indexOf)(i,b)];return R}}),c=(0,Ee.map)(i,function(B){return B.PUSH_MODE}),u=(0,Ee.map)(i,function(B){return(0,Ee.has)(B,"POP_MODE")})});var g;r("Line Terminator Handling",function(){var B=tG(e.lineTerminatorCharacters);g=(0,Ee.map)(i,function(b){return!1}),e.positionTracking!=="onlyOffset"&&(g=(0,Ee.map)(i,function(b){if((0,Ee.has)(b,"LINE_BREAKS"))return b.LINE_BREAKS;if(eG(b,B)===!1)return(0,Eu.canMatchCharCode)(B,b.PATTERN)}))});var f,h,p,d;r("Misc Mapping #2",function(){f=(0,Ee.map)(i,qv),h=(0,Ee.map)(s,$H),p=(0,Ee.reduce)(i,function(B,b){var R=b.GROUP;return(0,Ee.isString)(R)&&R!==zt.Lexer.SKIPPED&&(B[R]=[]),B},{}),d=(0,Ee.map)(s,function(B,b){return{pattern:s[b],longerAlt:l[b],canLineTerminator:g[b],isCustom:f[b],short:h[b],group:a[b],push:c[b],pop:u[b],tokenTypeIdx:o[b],tokenType:i[b]}})});var m=!0,E=[];return e.safeMode||r("First Char Optimization",function(){E=(0,Ee.reduce)(i,function(B,b,R){if(typeof b.PATTERN=="string"){var H=b.PATTERN.charCodeAt(0),L=Wv(H);Jv(B,L,d[R])}else if((0,Ee.isArray)(b.START_CHARS_HINT)){var K;(0,Ee.forEach)(b.START_CHARS_HINT,function(ne){var q=typeof ne=="string"?ne.charCodeAt(0):ne,A=Wv(q);K!==A&&(K=A,Jv(B,A,d[R]))})}else if((0,Ee.isRegExp)(b.PATTERN))if(b.PATTERN.unicode)m=!1,e.ensureOptimizations&&(0,Ee.PRINT_ERROR)(""+Eu.failedOptimizationPrefixMsg+(" Unable to analyze < "+b.PATTERN.toString()+` > pattern.
`)+` The regexp unicode flag is not currently supported by the regexp-to-ast library.
This will disable the lexer's first char optimizations.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var J=(0,Eu.getOptimizedStartCodesIndices)(b.PATTERN,e.ensureOptimizations);(0,Ee.isEmpty)(J)&&(m=!1),(0,Ee.forEach)(J,function(ne){Jv(B,ne,d[R])})}else e.ensureOptimizations&&(0,Ee.PRINT_ERROR)(""+Eu.failedOptimizationPrefixMsg+(" TokenType: <"+b.name+`> is using a custom token pattern without providing <start_chars_hint> parameter.
`)+` This will disable the lexer's first char optimizations.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),m=!1;return B},[])}),r("ArrayPacking",function(){E=(0,Ee.packArray)(E)}),{emptyGroups:p,patternIdxToConfig:d,charCodeToPatternIdxToConfig:E,hasCustom:n,canBeOptimized:m}}je.analyzeTokenTypes=qIe;function WIe(t,e){var r=[],i=rG(t);r=r.concat(i.errors);var n=iG(i.valid),s=n.valid;return r=r.concat(n.errors),r=r.concat(JIe(s)),r=r.concat(nG(s)),r=r.concat(sG(s,e)),r=r.concat(oG(s)),r}je.validatePatterns=WIe;function JIe(t){var e=[],r=(0,Ee.filter)(t,function(i){return(0,Ee.isRegExp)(i[ao])});return e=e.concat(aG(r)),e=e.concat(lG(r)),e=e.concat(cG(r)),e=e.concat(uG(r)),e=e.concat(AG(r)),e}function rG(t){var e=(0,Ee.filter)(t,function(n){return!(0,Ee.has)(n,ao)}),r=(0,Ee.map)(e,function(n){return{message:"Token Type: ->"+n.name+"<- missing static 'PATTERN' property",type:zt.LexerDefinitionErrorType.MISSING_PATTERN,tokenTypes:[n]}}),i=(0,Ee.difference)(t,e);return{errors:r,valid:i}}je.findMissingPatterns=rG;function iG(t){var e=(0,Ee.filter)(t,function(n){var s=n[ao];return!(0,Ee.isRegExp)(s)&&!(0,Ee.isFunction)(s)&&!(0,Ee.has)(s,"exec")&&!(0,Ee.isString)(s)}),r=(0,Ee.map)(e,function(n){return{message:"Token Type: ->"+n.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:zt.LexerDefinitionErrorType.INVALID_PATTERN,tokenTypes:[n]}}),i=(0,Ee.difference)(t,e);return{errors:r,valid:i}}je.findInvalidPatterns=iG;var zIe=/[^\\][\$]/;function aG(t){var e=function(n){_H(s,n);function s(){var o=n!==null&&n.apply(this,arguments)||this;return o.found=!1,o}return s.prototype.visitEndAnchor=function(o){this.found=!0},s}(XH.BaseRegExpVisitor),r=(0,Ee.filter)(t,function(n){var s=n[ao];try{var o=(0,ZH.getRegExpAst)(s),a=new e;return a.visit(o),a.found}catch(l){return zIe.test(s.source)}}),i=(0,Ee.map)(r,function(n){return{message:`Unexpected RegExp Anchor Error:
Token Type: ->`+n.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:zt.LexerDefinitionErrorType.EOI_ANCHOR_FOUND,tokenTypes:[n]}});return i}je.findEndOfInputAnchor=aG;function AG(t){var e=(0,Ee.filter)(t,function(i){var n=i[ao];return n.test("")}),r=(0,Ee.map)(e,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:zt.LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return r}je.findEmptyMatchRegExps=AG;var VIe=/[^\\[][\^]|^\^/;function lG(t){var e=function(n){_H(s,n);function s(){var o=n!==null&&n.apply(this,arguments)||this;return o.found=!1,o}return s.prototype.visitStartAnchor=function(o){this.found=!0},s}(XH.BaseRegExpVisitor),r=(0,Ee.filter)(t,function(n){var s=n[ao];try{var o=(0,ZH.getRegExpAst)(s),a=new e;return a.visit(o),a.found}catch(l){return VIe.test(s.source)}}),i=(0,Ee.map)(r,function(n){return{message:`Unexpected RegExp Anchor Error:
Token Type: ->`+n.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:zt.LexerDefinitionErrorType.SOI_ANCHOR_FOUND,tokenTypes:[n]}});return i}je.findStartOfInputAnchor=lG;function cG(t){var e=(0,Ee.filter)(t,function(i){var n=i[ao];return n instanceof RegExp&&(n.multiline||n.global)}),r=(0,Ee.map)(e,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:zt.LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return r}je.findUnsupportedFlags=cG;function uG(t){var e=[],r=(0,Ee.map)(t,function(s){return(0,Ee.reduce)(t,function(o,a){return s.PATTERN.source===a.PATTERN.source&&!(0,Ee.contains)(e,a)&&a.PATTERN!==zt.Lexer.NA&&(e.push(a),o.push(a)),o},[])});r=(0,Ee.compact)(r);var i=(0,Ee.filter)(r,function(s){return s.length>1}),n=(0,Ee.map)(i,function(s){var o=(0,Ee.map)(s,function(l){return l.name}),a=(0,Ee.first)(s).PATTERN;return{message:"The same RegExp pattern ->"+a+"<-"+("has been used in all of the following Token Types: "+o.join(", ")+" <-"),type:zt.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,tokenTypes:s}});return n}je.findDuplicatePatterns=uG;function nG(t){var e=(0,Ee.filter)(t,function(i){if(!(0,Ee.has)(i,"GROUP"))return!1;var n=i.GROUP;return n!==zt.Lexer.SKIPPED&&n!==zt.Lexer.NA&&!(0,Ee.isString)(n)}),r=(0,Ee.map)(e,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:zt.LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return r}je.findInvalidGroupType=nG;function sG(t,e){var r=(0,Ee.filter)(t,function(n){return n.PUSH_MODE!==void 0&&!(0,Ee.contains)(e,n.PUSH_MODE)}),i=(0,Ee.map)(r,function(n){var s="Token Type: ->"+n.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+n.PUSH_MODE+"<-which does not exist";return{message:s,type:zt.LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[n]}});return i}je.findModesThatDoNotExist=sG;function oG(t){var e=[],r=(0,Ee.reduce)(t,function(i,n,s){var o=n.PATTERN;return o===zt.Lexer.NA||((0,Ee.isString)(o)?i.push({str:o,idx:s,tokenType:n}):(0,Ee.isRegExp)(o)&&XIe(o)&&i.push({str:o.source,idx:s,tokenType:n})),i},[]);return(0,Ee.forEach)(t,function(i,n){(0,Ee.forEach)(r,function(s){var o=s.str,a=s.idx,l=s.tokenType;if(n<a&&_Ie(o,i.PATTERN)){var c="Token: ->"+l.name+`<- can never be matched.
`+("Because it appears AFTER the Token Type ->"+i.name+"<-")+`in the lexer's definition.
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;e.push({message:c,type:zt.LexerDefinitionErrorType.UNREACHABLE_PATTERN,tokenTypes:[i,l]})}})}),e}je.findUnreachablePatterns=oG;function _Ie(t,e){if((0,Ee.isRegExp)(e)){var r=e.exec(t);return r!==null&&r.index===0}else{if((0,Ee.isFunction)(e))return e(t,0,[],{});if((0,Ee.has)(e,"exec"))return e.exec(t,0,[],{});if(typeof e=="string")return e===t;throw Error("non exhaustive match")}}function XIe(t){var e=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return(0,Ee.find)(e,function(r){return t.source.indexOf(r)!==-1})===void 0}function jv(t){var e=t.ignoreCase?"i":"";return new RegExp("^(?:"+t.source+")",e)}je.addStartOfInput=jv;function Yv(t){var e=t.ignoreCase?"iy":"y";return new RegExp(""+t.source,e)}je.addStickyFlag=Yv;function ZIe(t,e,r){var i=[];return(0,Ee.has)(t,je.DEFAULT_MODE)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+je.DEFAULT_MODE+`> property in its definition
`,type:zt.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),(0,Ee.has)(t,je.MODES)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+je.MODES+`> property in its definition
`,type:zt.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),(0,Ee.has)(t,je.MODES)&&(0,Ee.has)(t,je.DEFAULT_MODE)&&!(0,Ee.has)(t.modes,t.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+je.DEFAULT_MODE+": <"+t.defaultMode+`>which does not exist
`,type:zt.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),(0,Ee.has)(t,je.MODES)&&(0,Ee.forEach)(t.modes,function(n,s){(0,Ee.forEach)(n,function(o,a){(0,Ee.isUndefined)(o)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+s+"> at index: <"+a+`>
`),type:zt.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}je.performRuntimeChecks=ZIe;function $Ie(t,e,r){var i=[],n=!1,s=(0,Ee.compact)((0,Ee.flatten)((0,Ee.mapValues)(t.modes,function(l){return l}))),o=(0,Ee.reject)(s,function(l){return l[ao]===zt.Lexer.NA}),a=tG(r);return e&&(0,Ee.forEach)(o,function(l){var c=eG(l,a);if(c!==!1){var u=gG(l,c),g={message:u,type:c.issue,tokenType:l};i.push(g)}else(0,Ee.has)(l,"LINE_BREAKS")?l.LINE_BREAKS===!0&&(n=!0):(0,Eu.canMatchCharCode)(a,l.PATTERN)&&(n=!0)}),e&&!n&&i.push({message:`Warning: No LINE_BREAKS Found.
This Lexer has been defined to track line and column information,
But none of the Token Types can be identified as matching a line terminator.
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
for details.`,type:zt.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS}),i}je.performWarningRuntimeChecks=$Ie;function eEe(t){var e={},r=(0,Ee.keys)(t);return(0,Ee.forEach)(r,function(i){var n=t[i];if((0,Ee.isArray)(n))e[i]=[];else throw Error("non exhaustive match")}),e}je.cloneEmptyGroups=eEe;function qv(t){var e=t.PATTERN;if((0,Ee.isRegExp)(e))return!1;if((0,Ee.isFunction)(e))return!0;if((0,Ee.has)(e,"exec"))return!0;if((0,Ee.isString)(e))return!1;throw Error("non exhaustive match")}je.isCustomPattern=qv;function $H(t){return(0,Ee.isString)(t)&&t.length===1?t.charCodeAt(0):!1}je.isShortPattern=$H;je.LineTerminatorOptimizedTester={test:function(t){for(var e=t.length,r=this.lastIndex;r<e;r++){var i=t.charCodeAt(r);if(i===10)return this.lastIndex=r+1,!0;if(i===13)return t.charCodeAt(r+1)===10?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},lastIndex:0};function eG(t,e){if((0,Ee.has)(t,"LINE_BREAKS"))return!1;if((0,Ee.isRegExp)(t.PATTERN)){try{(0,Eu.canMatchCharCode)(e,t.PATTERN)}catch(r){return{issue:zt.LexerDefinitionErrorType.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}else{if((0,Ee.isString)(t.PATTERN))return!1;if(qv(t))return{issue:zt.LexerDefinitionErrorType.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function gG(t,e){if(e.issue===zt.LexerDefinitionErrorType.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
`+(" The problem is in the <"+t.name+`> Token Type
`)+(" Root cause: "+e.errMsg+`.
`)+" For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(e.issue===zt.LexerDefinitionErrorType.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
`+(" The problem is in the <"+t.name+`> Token Type
`)+" For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}je.buildLineBreakIssueMessage=gG;function tG(t){var e=(0,Ee.map)(t,function(r){return(0,Ee.isString)(r)&&r.length>0?r.charCodeAt(0):r});return e}function Jv(t,e,r){t[e]===void 0?t[e]=[r]:t[e].push(r)}je.minOptimizationVal=256;var pE=[];function Wv(t){return t<je.minOptimizationVal?t:pE[t]}je.charCodeToOptimizedIndex=Wv;function YIe(){if((0,Ee.isEmpty)(pE)){pE=new Array(65536);for(var t=0;t<65536;t++)pE[t]=t>255?255+~~(t/255):t}}});var yu=I(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.isTokenType=Bt.hasExtendingTokensTypesMapProperty=Bt.hasExtendingTokensTypesProperty=Bt.hasCategoriesProperty=Bt.hasShortKeyProperty=Bt.singleAssignCategoriesToksMap=Bt.assignCategoriesMapProp=Bt.assignCategoriesTokensProp=Bt.assignTokenDefaultProps=Bt.expandCategories=Bt.augmentTokenTypes=Bt.tokenIdxToClass=Bt.tokenShortNameIdx=Bt.tokenStructuredMatcherNoCategories=Bt.tokenStructuredMatcher=void 0;var Kr=Dt();function tEe(t,e){var r=t.tokenTypeIdx;return r===e.tokenTypeIdx?!0:e.isParent===!0&&e.categoryMatchesMap[r]===!0}Bt.tokenStructuredMatcher=tEe;function rEe(t,e){return t.tokenTypeIdx===e.tokenTypeIdx}Bt.tokenStructuredMatcherNoCategories=rEe;Bt.tokenShortNameIdx=1;Bt.tokenIdxToClass={};function iEe(t){var e=fG(t);hG(e),dG(e),pG(e),(0,Kr.forEach)(e,function(r){r.isParent=r.categoryMatches.length>0})}Bt.augmentTokenTypes=iEe;function fG(t){for(var e=(0,Kr.cloneArr)(t),r=t,i=!0;i;){r=(0,Kr.compact)((0,Kr.flatten)((0,Kr.map)(r,function(s){return s.CATEGORIES})));var n=(0,Kr.difference)(r,e);e=e.concat(n),(0,Kr.isEmpty)(n)?i=!1:r=n}return e}Bt.expandCategories=fG;function hG(t){(0,Kr.forEach)(t,function(e){CG(e)||(Bt.tokenIdxToClass[Bt.tokenShortNameIdx]=e,e.tokenTypeIdx=Bt.tokenShortNameIdx++),zv(e)&&!(0,Kr.isArray)(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),zv(e)||(e.CATEGORIES=[]),mG(e)||(e.categoryMatches=[]),IG(e)||(e.categoryMatchesMap={})})}Bt.assignTokenDefaultProps=hG;function pG(t){(0,Kr.forEach)(t,function(e){e.categoryMatches=[],(0,Kr.forEach)(e.categoryMatchesMap,function(r,i){e.categoryMatches.push(Bt.tokenIdxToClass[i].tokenTypeIdx)})})}Bt.assignCategoriesTokensProp=pG;function dG(t){(0,Kr.forEach)(t,function(e){Vv([],e)})}Bt.assignCategoriesMapProp=dG;function Vv(t,e){(0,Kr.forEach)(t,function(r){e.categoryMatchesMap[r.tokenTypeIdx]=!0}),(0,Kr.forEach)(e.CATEGORIES,function(r){var i=t.concat(e);(0,Kr.contains)(i,r)||Vv(i,r)})}Bt.singleAssignCategoriesToksMap=Vv;function CG(t){return(0,Kr.has)(t,"tokenTypeIdx")}Bt.hasShortKeyProperty=CG;function zv(t){return(0,Kr.has)(t,"CATEGORIES")}Bt.hasCategoriesProperty=zv;function mG(t){return(0,Kr.has)(t,"categoryMatches")}Bt.hasExtendingTokensTypesProperty=mG;function IG(t){return(0,Kr.has)(t,"categoryMatchesMap")}Bt.hasExtendingTokensTypesMapProperty=IG;function nEe(t){return(0,Kr.has)(t,"tokenTypeIdx")}Bt.isTokenType=nEe});var _v=I(dE=>{"use strict";Object.defineProperty(dE,"__esModule",{value:!0});dE.defaultLexerErrorProvider=void 0;dE.defaultLexerErrorProvider={buildUnableToPopLexerModeMessage:function(t){return"Unable to pop Lexer Mode after encountering Token ->"+t.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(t,e,r,i,n){return"unexpected character: ->"+t.charAt(e)+"<- at offset: "+e+","+(" skipped "+r+" characters.")}}});var Gh=I(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.Lexer=Rl.LexerDefinitionErrorType=void 0;var Ps=Hv(),Vt=Dt(),sEe=yu(),oEe=_v(),aEe=gE(),AEe;(function(t){t[t.MISSING_PATTERN=0]="MISSING_PATTERN",t[t.INVALID_PATTERN=1]="INVALID_PATTERN",t[t.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",t[t.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",t[t.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",t[t.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",t[t.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",t[t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",t[t.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",t[t.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",t[t.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",t[t.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",t[t.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",t[t.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",t[t.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",t[t.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",t[t.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(AEe=Rl.LexerDefinitionErrorType||(Rl.LexerDefinitionErrorType={}));var jh={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:oEe.defaultLexerErrorProvider,traceInitPerf:!1,skipValidations:!1};Object.freeze(jh);var lEe=function(){function t(e,r){var i=this;if(r===void 0&&(r=jh),this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},typeof r=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
a boolean 2nd argument is no longer supported`);this.config=(0,Vt.merge)(jh,r);var n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=Infinity,this.traceInitPerf=!0):typeof n=="number"&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var s,o=!0;i.TRACE_INIT("Lexer Config handling",function(){if(i.config.lineTerminatorsPattern===jh.lineTerminatorsPattern)i.config.lineTerminatorsPattern=Ps.LineTerminatorOptimizedTester;else if(i.config.lineTerminatorCharacters===jh.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),(0,Vt.isArray)(e)?(s={modes:{}},s.modes[Ps.DEFAULT_MODE]=(0,Vt.cloneArr)(e),s[Ps.DEFAULT_MODE]=Ps.DEFAULT_MODE):(o=!1,s=(0,Vt.cloneObj)(e))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat((0,Ps.performRuntimeChecks)(s,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat((0,Ps.performWarningRuntimeChecks)(s,i.trackStartLines,i.config.lineTerminatorCharacters))})),s.modes=s.modes?s.modes:{},(0,Vt.forEach)(s.modes,function(u,g){s.modes[g]=(0,Vt.reject)(u,function(f){return(0,Vt.isUndefined)(f)})});var a=(0,Vt.keys)(s.modes);if((0,Vt.forEach)(s.modes,function(u,g){i.TRACE_INIT("Mode: <"+g+"> processing",function(){if(i.modes.push(g),i.config.skipValidations===!1&&i.TRACE_INIT("validatePatterns",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat((0,Ps.validatePatterns)(u,a))}),(0,Vt.isEmpty)(i.lexerDefinitionErrors)){(0,sEe.augmentTokenTypes)(u);var f;i.TRACE_INIT("analyzeTokenTypes",function(){f=(0,Ps.analyzeTokenTypes)(u,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[g]=f.patternIdxToConfig,i.charCodeToPatternIdxToConfig[g]=f.charCodeToPatternIdxToConfig,i.emptyGroups=(0,Vt.merge)(i.emptyGroups,f.emptyGroups),i.hasCustom=f.hasCustom||i.hasCustom,i.canModeBeOptimized[g]=f.canBeOptimized}})}),i.defaultMode=s.defaultMode,!(0,Vt.isEmpty)(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var l=(0,Vt.map)(i.lexerDefinitionErrors,function(u){return u.message}),c=l.join(`-----------------------
`);throw new Error(`Errors detected in definition of Lexer:
`+c)}(0,Vt.forEach)(i.lexerDefinitionWarning,function(u){(0,Vt.PRINT_WARNING)(u.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(Ps.SUPPORT_STICKY?(i.chopInput=Vt.IDENTITY,i.match=i.matchWithTest):(i.updateLastIndex=Vt.NOOP,i.match=i.matchWithExec),o&&(i.handleModes=Vt.NOOP),i.trackStartLines===!1&&(i.computeNewColumn=Vt.IDENTITY),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=Vt.NOOP),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid <positionTracking> config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var u=(0,Vt.reduce)(i.canModeBeOptimized,function(g,f,h){return f===!1&&g.push(h),g},[]);if(r.ensureOptimizations&&!(0,Vt.isEmpty)(u))throw Error("Lexer Modes: < "+u.join(", ")+` > cannot be optimized.
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){(0,aEe.clearRegExpParserCache)()}),i.TRACE_INIT("toFastProperties",function(){(0,Vt.toFastProperties)(i)})})}return t.prototype.tokenize=function(e,r){if(r===void 0&&(r=this.defaultMode),!(0,Vt.isEmpty)(this.lexerDefinitionErrors)){var i=(0,Vt.map)(this.lexerDefinitionErrors,function(o){return o.message}),n=i.join(`-----------------------
`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
`+n)}var s=this.tokenizeInternal(e,r);return s},t.prototype.tokenizeInternal=function(e,r){var i=this,n,s,o,a,l,c,u,g,f,h,p,d,m,E,B,b,R=e,H=R.length,L=0,K=0,J=this.hasCustom?0:Math.floor(e.length/10),ne=new Array(J),q=[],A=this.trackStartLines?1:void 0,V=this.trackStartLines?1:void 0,W=(0,Ps.cloneEmptyGroups)(this.emptyGroups),X=this.trackStartLines,F=this.config.lineTerminatorsPattern,D=0,he=[],pe=[],Ne=[],Pe=[];Object.freeze(Pe);var qe=void 0;function re(){return he}function se(wr){var Ui=(0,Ps.charCodeToOptimizedIndex)(wr),ws=pe[Ui];return ws===void 0?Pe:ws}var be=function(wr){if(Ne.length===1&&wr.tokenType.PUSH_MODE===void 0){var Ui=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(wr);q.push({offset:wr.startOffset,line:wr.startLine!==void 0?wr.startLine:void 0,column:wr.startColumn!==void 0?wr.startColumn:void 0,length:wr.image.length,message:Ui})}else{Ne.pop();var ws=(0,Vt.last)(Ne);he=i.patternIdxToConfig[ws],pe=i.charCodeToPatternIdxToConfig[ws],D=he.length;var Tf=i.canModeBeOptimized[ws]&&i.config.safeMode===!1;pe&&Tf?qe=se:qe=re}};function ae(wr){Ne.push(wr),pe=this.charCodeToPatternIdxToConfig[wr],he=this.patternIdxToConfig[wr],D=he.length,D=he.length;var Ui=this.canModeBeOptimized[wr]&&this.config.safeMode===!1;pe&&Ui?qe=se:qe=re}ae.call(this,r);for(var Ae;L<H;){c=null;var De=R.charCodeAt(L),$=qe(De),G=$.length;for(n=0;n<G;n++){Ae=$[n];var Ce=Ae.pattern;u=null;var ee=Ae.short;if(ee!==!1?De===ee&&(c=Ce):Ae.isCustom===!0?(b=Ce.exec(R,L,ne,W),b!==null?(c=b[0],b.payload!==void 0&&(u=b.payload)):c=null):(this.updateLastIndex(Ce,L),c=this.match(Ce,e,L)),c!==null){if(l=Ae.longerAlt,l!==void 0){var Ue=l.length;for(o=0;o<Ue;o++){var Oe=he[l[o]],vt=Oe.pattern;if(g=null,Oe.isCustom===!0?(b=vt.exec(R,L,ne,W),b!==null?(a=b[0],b.payload!==void 0&&(g=b.payload)):a=null):(this.updateLastIndex(vt,L),a=this.match(vt,e,L)),a&&a.length>c.length){c=a,u=g,Ae=Oe;break}}}break}}if(c!==null){if(f=c.length,h=Ae.group,h!==void 0&&(p=Ae.tokenTypeIdx,d=this.createTokenInstance(c,L,p,Ae.tokenType,A,V,f),this.handlePayload(d,u),h===!1?K=this.addToken(ne,K,d):W[h].push(d)),e=this.chopInput(e,f),L=L+f,V=this.computeNewColumn(V,f),X===!0&&Ae.canLineTerminator===!0){var dt=0,ri=void 0,ii=void 0;F.lastIndex=0;do ri=F.test(c),ri===!0&&(ii=F.lastIndex-1,dt++);while(ri===!0);dt!==0&&(A=A+dt,V=f-ii,this.updateTokenEndLineColumnLocation(d,h,ii,dt,A,V,f))}this.handleModes(Ae,be,ae,d)}else{for(var an=L,yr=A,Ki=V,Qi=!1;!Qi&&L<H;)for(E=R.charCodeAt(L),e=this.chopInput(e,1),L++,s=0;s<D;s++){var Go=he[s],Ce=Go.pattern,ee=Go.short;if(ee!==!1?R.charCodeAt(L)===ee&&(Qi=!0):Go.isCustom===!0?Qi=Ce.exec(R,L,ne,W)!==null:(this.updateLastIndex(Ce,L),Qi=Ce.exec(e)!==null),Qi===!0)break}m=L-an,B=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(R,an,m,yr,Ki),q.push({offset:an,line:yr,column:Ki,length:m,message:B})}}return this.hasCustom||(ne.length=K),{tokens:ne,groups:W,errors:q}},t.prototype.handleModes=function(e,r,i,n){if(e.pop===!0){var s=e.push;r(n),s!==void 0&&i.call(this,s)}else e.push!==void 0&&i.call(this,e.push)},t.prototype.chopInput=function(e,r){return e.substring(r)},t.prototype.updateLastIndex=function(e,r){e.lastIndex=r},t.prototype.updateTokenEndLineColumnLocation=function(e,r,i,n,s,o,a){var l,c;r!==void 0&&(l=i===a-1,c=l?-1:0,n===1&&l===!0||(e.endLine=s+c,e.endColumn=o-1+-c))},t.prototype.computeNewColumn=function(e,r){return e+r},t.prototype.createTokenInstance=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return null},t.prototype.createOffsetOnlyToken=function(e,r,i,n){return{image:e,startOffset:r,tokenTypeIdx:i,tokenType:n}},t.prototype.createStartOnlyToken=function(e,r,i,n,s,o){return{image:e,startOffset:r,startLine:s,startColumn:o,tokenTypeIdx:i,tokenType:n}},t.prototype.createFullToken=function(e,r,i,n,s,o,a){return{image:e,startOffset:r,endOffset:r+a-1,startLine:s,endLine:s,startColumn:o,endColumn:o+a-1,tokenTypeIdx:i,tokenType:n}},t.prototype.addToken=function(e,r,i){return 666},t.prototype.addTokenUsingPush=function(e,r,i){return e.push(i),r},t.prototype.addTokenUsingMemberAccess=function(e,r,i){return e[r]=i,r++,r},t.prototype.handlePayload=function(e,r){},t.prototype.handlePayloadNoCustom=function(e,r){},t.prototype.handlePayloadWithCustom=function(e,r){r!==null&&(e.payload=r)},t.prototype.match=function(e,r,i){return null},t.prototype.matchWithTest=function(e,r,i){var n=e.test(r);return n===!0?r.substring(i,e.lastIndex):null},t.prototype.matchWithExec=function(e,r){var i=e.exec(r);return i!==null?i[0]:i},t.prototype.TRACE_INIT=function(e,r){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+e+">");var n=(0,Vt.timer)(r),s=n.time,o=n.value,a=s>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(i+"<-- <"+e+"> time: "+s+"ms"),this.traceInitIndent--,o}else return r()},t.SKIPPED="This marks a skipped Token pattern, this means eac Line truncated
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return(0,Ds.has)(t,yG)&&(r.CATEGORIES=t[yG]),(0,Xv.augmentTokenTypes)([r]),(0,Ds.has)(t,wG)&&(r.LABEL=t[wG]),(0,Ds.has)(t,BG)&&(r.GROUP=t[BG]),(0,Ds.has)(t,bG)&&(r.POP_MODE=t[bG]),(0,Ds.has)(t,QG)&&(r.PUSH_MODE=t[QG]),(0,Ds.has)(t,vG)&&(r.LONGER_ALT=t[vG]),(0,Ds.has)(t,SG)&&(r.LINE_BREAKS=t[SG]),(0,Ds.has)(t,xG)&&(r.START_CHARS_HINT=t[xG]),r}Ci.EOF=kG({name:"EOF",pattern:cEe.Lexer.NA});(0,Xv.augmentTokenTypes)([Ci.EOF]);function pEe(t,e,r,i,n,s,o,a){return{image:e,startOffset:r,endOffset:i,startLine:n,endLine:s,startColumn:o,endColumn:a,tokenTypeIdx:t.tokenTypeIdx,tokenType:t}}Ci.createTokenInstance=pEe;function dEe(t,e){return(0,Xv.tokenStructuredMatcher)(t,e)}Ci.tokenMatcher=dEe});var hn=I(Tt=>{"use strict";var oa=Tt&&Tt.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.serializeProduction=Tt.serializeGrammar=Tt.Terminal=Tt.Alternation=Tt.RepetitionWithSeparator=Tt.Repetition=Tt.RepetitionMandatoryWithSeparator=Tt.RepetitionMandatory=Tt.Option=Tt.Alternative=Tt.Rule=Tt.NonTerminal=Tt.AbstractProduction=void 0;var $t=Dt(),CEe=nA(),Ao=function(){function t(e){this._definition=e}return Object.defineProperty(t.prototype,"definition",{get:function(){return this._definition},set:function(e){this._definition=e},enumerable:!1,configurable:!0}),t.prototype.accept=function(e){e.visit(this),(0,$t.forEach)(this.definition,function(r){r.accept(e)})},t}();Tt.AbstractProduction=Ao;var PG=function(t){oa(e,t);function e(r){var i=t.call(this,[])||this;return i.idx=1,(0,$t.assign)(i,(0,$t.pick)(r,function(n){return n!==void 0})),i}return Object.defineProperty(e.prototype,"definition",{get:function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},set:function(r){},enumerable:!1,configurable:!0}),e.prototype.accept=function(r){r.visit(this)},e}(Ao);Tt.NonTerminal=PG;var DG=function(t){oa(e,t);function e(r){var i=t.call(this,r.definition)||this;return i.orgText="",(0,$t.assign)(i,(0,$t.pick)(r,function(n){return n!==void 0})),i}return e}(Ao);Tt.Rule=DG;var RG=function(t){oa(e,t);function e(r){var i=t.call(this,r.definition)||this;return i.ignoreAmbiguities=!1,(0,$t.assign)(i,(0,$t.pick)(r,function(n){return n!==void 0})),i}return e}(Ao);Tt.Alternative=RG;var FG=function(t){oa(e,t);function e(r){var i=t.call(this,r.definition)||this;return i.idx=1,(0,$t.assign)(i,(0,$t.pick)(r,function(n){return n!==void 0})),i}return e}(Ao);Tt.Option=FG;var NG=function(t){oa(e,t);function e(r){var i=t.call(this,r.definition)||this;return i.idx=1,(0,$t.assign)(i,(0,$t.pick)(r,function(n){return n!==void 0})),i}return e}(Ao);Tt.RepetitionMandatory=NG;var LG=function(t){oa(e,t);function e(r){var i=t.call(this,r.definition)||this;return i.idx=1,(0,$t.assign)(i,(0,$t.pick)(r,function(n){return n!==void 0})),i}return e}(Ao);Tt.RepetitionMandatoryWithSeparator=LG;var TG=function(t){oa(e,t);function e(r){var i=t.call(this,r.definition)||this;return i.idx=1,(0,$t.assign)(i,(0,$t.pick)(r,function(n){return n!==void 0})),i}return e}(Ao);Tt.Repetition=TG;var MG=function(t){oa(e,t);function e(r){var i=t.call(this,r.definition)||this;return i.idx=1,(0,$t.assign)(i,(0,$t.pick)(r,function(n){return n!==void 0})),i}return e}(Ao);Tt.RepetitionWithSeparator=MG;var OG=function(t){oa(e,t);function e(r){var i=t.call(this,r.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,(0,$t.assign)(i,(0,$t.pick)(r,function(n){return n!==void 0})),i}return Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(r){this._definition=r},enumerable:!1,configurable:!0}),e}(Ao);Tt.Alternation=OG;var CE=function(){function t(e){this.idx=1,(0,$t.assign)(this,(0,$t.pick)(e,function(r){return r!==void 0}))}return t.prototype.accept=function(e){e.visit(this)},t}();Tt.Terminal=CE;function mEe(t){return(0,$t.map)(t,Yh)}Tt.serializeGrammar=mEe;function Yh(t){function e(s){return(0,$t.map)(s,Yh)}if(t instanceof PG){var r={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return(0,$t.isString)(t.label)&&(r.label=t.label),r}else{if(t instanceof RG)return{type:"Alternative",definition:e(t.definition)};if(t instanceof FG)return{type:"Option",idx:t.idx,definition:e(t.definition)};if(t instanceof NG)return{type:"RepetitionMandatory",idx:t.idx,definition:e(t.definition)};if(t instanceof LG)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:Yh(new CE({terminalType:t.separator})),definition:e(t.definition)};if(t instanceo Line truncated
but found: '`+a+"'";if(n)return o+n+l;var c=(0,Rs.reduce)(e,function(h,p){return h.concat(p)},[]),u=(0,Rs.map)(c,function(h){return"["+(0,Rs.map)(h,function(p){return(0,Bu.tokenLabel)(p)}).join(", ")+"]"}),g=(0,Rs.map)(u,function(h,p){return" "+(p+1)+". "+h}),f=`one of these possible Token sequences:
`+g.join(`
`);return o+f+l},buildEarlyExitMessage:function(t){var e=t.expectedIterationPaths,r=t.actual,i=t.customUserDescription,n=t.ruleName,s="Expecting: ",o=(0,Rs.first)(r).image,a=`
but found: '`+o+"'";if(i)return s+i+a;var l=(0,Rs.map)(e,function(u){return"["+(0,Rs.map)(u,function(g){return(0,Bu.tokenLabel)(g)}).join(",")+"]"}),c=`expecting at least one iteration which starts with one of these possible Token sequences::
`+("<"+l.join(" ,")+">");return s+c+a}};Object.freeze(aa.defaultParserErrorProvider);aa.defaultGrammarResolverErrorProvider={buildRuleNotFoundError:function(t,e){var r="Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<-
inside top level rule: ->`+t.name+"<-";return r}};aa.defaultGrammarValidatorErrorProvider={buildDuplicateFoundError:function(t,e){function r(u){return u instanceof iS.Terminal?u.terminalType.name:u instanceof iS.NonTerminal?u.nonTerminalName:""}var i=t.name,n=(0,Rs.first)(e),s=n.idx,o=(0,_G.getProductionDslName)(n),a=r(n),l=s>0,c="->"+o+(l?s:"")+"<- "+(a?"with argument: ->"+a+"<-":"")+`
appears more than once (`+e.length+" times) in the top level rule: ->"+i+`<-.
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
`;return c=c.replace(/[ \t]+/g," "),c=c.replace(/\s\s+/g,`
`),c},buildNamespaceConflictError:function(t){var e=`Namespace conflict found in grammar.
`+("The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+t.name+`>.
`)+`To resolve this make sure each Terminal and Non-Terminal names are unique
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
and Non-Terminal names start with a lower case letter.`;return e},buildAlternationPrefixAmbiguityError:function(t){var e=(0,Rs.map)(t.prefixPath,function(n){return(0,Bu.tokenLabel)(n)}).join(", "),r=t.alternation.idx===0?"":t.alternation.idx,i="Ambiguous alternatives: <"+t.ambiguityIndices.join(" ,")+`> due to common lookahead prefix
`+("in <OR"+r+"> inside <"+t.topLevelRule.name+`> Rule,
`)+("<"+e+`> may appears as a prefix path in all these alternatives.
`)+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
For Further details.`;return i},buildAlternationAmbiguityError:function(t){var e=(0,Rs.map)(t.prefixPath,function(n){return(0,Bu.tokenLabel)(n)}).join(", "),r=t.alternation.idx===0?"":t.alternation.idx,i="Ambiguous Alternatives Detected: <"+t.ambiguityIndices.join(" ,")+"> in <OR"+r+">"+(" inside <"+t.topLevelRule.name+`> Rule,
`)+("<"+e+`> may appears as a prefix path in all these alternatives.
`);return i=i+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details.`,i},buildEmptyRepetitionError:function(t){var e=(0,_G.getProductionDslName)(t.repetition);t.repetition.idx!==0&&(e+=t.repetition.idx);var r="The repetition <"+e+"> within Rule <"+t.topLevelRule.name+`> can never consume any tokens.
This could lead to an infinite loop.`;return r},buildTokenNameError:function(t){return"deprecated"},buildEmptyAlternationError:function(t){var e="Ambiguous empty alternative: <"+(t.emptyChoiceIdx+1)+">"+(" in <OR"+t.alternation.idx+"> inside <"+t.topLevelRule.name+`> Rule.
`)+"Only the last alternative may be an empty alternative.";return e},buildTooManyAlternativesError:function(t){var e=`An Alternation cannot have more than 256 alternatives:
`+("<OR"+t.alternation.idx+"> inside <"+t.topLevelRule.name+`> Rule.
has `+(t.alternation.definition.length+1)+" alternatives.");return e},buildLeftRecursionError:function(t){var e=t.topLevelRule.name,r=FEe.map(t.leftRecursionPath,function(s){return s.name}),i=e+" --> "+r.concat([e]).join(" --> "),n=`Left Recursion found in grammar.
`+("rule: <"+e+`> can be invoked from itself (directly or indirectly)
`)+(`without consuming any Tokens. The grammar path that causes this is:
`+i+`
`)+` To fix this refactor your grammar to remove the left recursion.
see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return n},buildInvalidRuleNameError:function(t){return"deprecated"},buildDuplicateRuleNameError:function(t){var e;t.topLevelRule instanceof iS.Rule?e=t.topLevelRule.name:e=t.topLevelRule;var r="Duplicate definition, rule: ->"+e+"<- is already defined in the grammar: ->"+t.grammarName+"<-";return r}}});var $G=I(sA=>{"use strict";var NEe=sA&&sA.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(sA,"__esModule",{value:!0});sA.GastRefResolverVisitor=sA.resolveGrammar=void 0;var LEe=Tn(),XG=Dt(),TEe=wu();function MEe(t,e){var r=new ZG(t,e);return r.resolveRefs(),r.errors}sA.resolveGrammar=MEe;var ZG=function(t){NEe(e,t);function e(r,i){var n=t.call(this)||this;return n.nameToTopRule=r,n.errMsgProvider=i,n.errors=[],n}return e.prototype.resolveRefs=function(){var r=this;(0,XG.forEach)((0,XG.values)(this.nameToTopRule),function(i){r.currTopLevel=i,i.accept(r)})},e.prototype.visitNonTerminal=function(r){var i=this.nameToTopRule[r.nonTerminalName];if(i)r.referencedRule=i;else{var n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,r);this.errors.push({message:n,type:LEe.ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:r.nonTerminalName})}},e}(TEe.GAstVisitor);sA.GastRefResolverVisitor=ZG});var Vh=I(Br=>{"use strict";var Fl=Br&&Br.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(Br,"__esModule",{value:!0});Br.nextPossibleTokensAfter=Br.possiblePathsFrom=Br.NextTerminalAfterAtLeastOneSepWalker=Br.NextTerminalAfterAtLeastOneWalker=Br.NextTerminalAfterManySepWalker=Br.NextTerminalAfterManyWalker=Br.AbstractNextTerminalAfterProductionWalker=Br.NextAfterTokenWalker=Br.AbstractNextPossibleTokensWalker=void 0;var ej=IE(),xt=Dt(),OEe=tS(),Et=hn(),tj=function(t){Fl(e,t);function e(r,i){var n=t.call(this)||this;return n.topProd=r,n.path=i,n.possibleTokTypes=[],n.nextProductionName="",n.nextProductionOccurrence=0,n.found=!1,n.isAtEndOfPath=!1,n}return e.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=(0,xt.cloneArr)(this.path.ruleStack).reverse(),this.occurrenceStack=(0,xt.cloneArr)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},e.prototype.walk=function(r,i){i===void 0&&(i=[]),this.found||t.prototype.walk.call(this,r,i)},e.prototype.walkProdRef=function(r,i,n){if(r.referencedRule.name===this.nextProductionName&&r.idx===this.nextProductionOccurrence){var s=i.concat(n);this.updateExpectedNext(),this.walk(r.referencedRule,s)}},e.prototype.updateExpectedNext=function(){(0,xt.isEmpty)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},e}(ej.RestWalker);Br.AbstractNextPossibleTokensWalker=tj;var KEe=function(t){Fl(e,t);function e(r,i){var n=t.call(this,r,i)||this;return n.path=i,n.nextTerminalName="",n.nextTerminalOccurrence=0,n.nextTerminalName=n.path.lastTok.name,n.nextTerminalOccurrence=n.path.lastTokOccurrence,n}return e.prototype.walkTerminal=function(r,i,n){if(this.isAtEndOfPath&&r.terminalType.name===this.nextTerminalName&&r.idx===this.nextTerminalOccurrence&&!this.found){var s=i.concat(n),o=new Et.Alternative({definition:s});this.possibleTokTypes=(0,OEe.first)(o),this.found=!0}},e}(tj);Br.NextAfterTokenWalker=KEe;var zh=function(t){Fl(e,t);function e(r,i){var n=t.call(this)||this;return n.topRule=r,n.occurrence=i,n.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},n}return e.prototype.startWalking=function(){return this.walk(this.topRule),this.result},e}(ej.RestWalker);Br.AbstractNextTerminalAfterProductionWalker=zh;var UEe=function(t){Fl(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.walkMany=function(r,i,n){if(r.idx===this.occurrence){var s=(0,xt.first)(i.concat(n));this.r Line truncated
`+(""+s.join(`
`).replace(/\n/g,`
`)))}}};return r.prototype=i,r.prototype.constructor=r,r._RULE_NAMES=e,r}mi.createBaseSemanticVisitorConstructor=Dye;function Rye(t,e,r){var i=function(){};(0,$h.defineNameProp)(i,t+"BaseSemanticsWithDefaults");var n=Object.create(r.prototype);return(0,rs.forEach)(e,function(s){n[s]=Fj}),i.prototype=n,i.prototype.constructor=i,i}mi.createBaseVisitorConstructorWithDefaults=Rye;var CS;(function(t){t[t.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",t[t.MISSING_METHOD=1]="MISSING_METHOD"})(CS=mi.CstVisitorDefinitionError||(mi.CstVisitorDefinitionError={}));function Nj(t,e){var r=Lj(t,e),i=Tj(t,e);return r.concat(i)}mi.validateVisitor=Nj;function Lj(t,e){var r=(0,rs.map)(e,function(i){if(!(0,rs.isFunction)(t[i]))return{msg:"Missing visitor method: <"+i+"> on "+(0,$h.functionName)(t.constructor)+" CST Visitor.",type:CS.MISSING_METHOD,methodName:i}});return(0,rs.compact)(r)}mi.validateMissingCstMethods=Lj;var Fye=["constructor","visit","validateVisitor"];function Tj(t,e){var r=[];for(var i in t)(0,rs.isFunction)(t[i])&&!(0,rs.contains)(Fye,i)&&!(0,rs.contains)(e,i)&&r.push({msg:"Redundant visitor method: <"+i+"> on "+(0,$h.functionName)(t.constructor)+` CST Visitor
There is no Grammar Rule corresponding to this method's name.
`,type:CS.REDUNDANT_METHOD,methodName:i});return r}mi.validateRedundantMethods=Tj});var Kj=I(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.TreeBuilder=void 0;var Su=Pj(),Ur=Dt(),Oj=Mj(),Nye=Tn(),Lye=function(){function t(){}return t.prototype.initTreeBuilder=function(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=(0,Ur.has)(e,"nodeLocationTracking")?e.nodeLocationTracking:Nye.DEFAULT_PARSER_CONFIG.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Ur.NOOP,this.cstFinallyStateUpdate=Ur.NOOP,this.cstPostTerminal=Ur.NOOP,this.cstPostNonTerminal=Ur.NOOP,this.cstPostRule=Ur.NOOP;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Su.setNodeLocationFull,this.setNodeLocationFromNode=Su.setNodeLocationFull,this.cstPostRule=Ur.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Ur.NOOP,this.setNodeLocationFromNode=Ur.NOOP,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Su.setNodeLocationOnlyOffset,this.setNodeLocationFromNode=Su.setNodeLocationOnlyOffset,this.cstPostRule=Ur.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Ur.NOOP,this.setNodeLocationFromNode=Ur.NOOP,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Ur.NOOP,this.setNodeLocationFromNode=Ur.NOOP,this.cstPostRule=Ur.NOOP,this.setInitialNodeLocation=Ur.NOOP;else throw Error('Invalid <nodeLocationTracking> config option: "'+e.nodeLocationTracking+'"')},t.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(e){e.location={startOffset:NaN,endOffset:NaN}},t.prototype.setInitialNodeLocationOnlyOffsetRegular=function(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},t.prototype.setInitialNodeLocationFullRecovery=function(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},t.prototype.setInitialNodeLocationFullRegular=function(e){var r=this.LA(1);e.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},t.prototype.cstInvocationStateUpdate=function(e,r){var i={name:e,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},t.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},t.prototype.cstPostRuleFull=function(e){var r=this.LA(0),i=e.location;i.startOffset<=r.startOffset?(i.endOffset=r.endOffset,i.endLine=r.endLine,i.endColumn=r.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},t.prototype.cstPostRuleOnlyOffset=function(e){var r=this.LA(0),i=e.location;i.startOffset<=r.startOffset?i.endOffset=r.endOffset:i.startOffset=NaN},t.prototype.cstPostTerminal=function(e,r){var i=this.CST_STACK[this.CST_STACK.length-1];(0,Su.addTerminalToCst)(i,r,e),this.setNodeLocationFromToken(i.location,r)},t.prototype.cstPostNonTerminal=function(e,r){var i=this.CST_STACK[this.CST_STACK.length-1];(0,Su.addNoneTerminalToCst)(i,r,e),this.setNodeLocationFromNode(i.location,e.location)},t.prototype.getBaseCstVisitorConstructor=function(){if((0,Ur.isUndefined)(this.baseCstVisitorConstructor)){var e=(0,Oj.createBaseSemanticVisitorConstructor)(this.className,(0,Ur.keys)(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor},t.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if((0,Ur.isUndefined)(this.baseCstVisitorWithDefaultsConstructor)){var e=(0,Oj.createBaseVisitorConstructorWithDefaults)(this.className,(0,Ur.keys)(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor},t.prototype.getLastExplicitRuleShortName=function(){var e=this.RULE_STACK;return e[e.length-1]},t.prototype.getPreviousExplicitRuleShortName=function(){var e=this.RULE_STACK;return e[e.length-2]},t.prototype.getLastExplicitRuleOccurrenceIndex=function(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]},t}();PE.TreeBuilder=Lye});var Hj=I(DE=>{"use strict";Object.defineProperty(DE,"__esModule",{value:!0});DE.LexerAdapter=void 0;var Uj=Tn(),Tye=function(){function t(){}return t.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(t.prototype,"input",{get:function(){return this.tokVector},set:function(e){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length},enumerable:!1,configurable:!0}),t.prototype.SKIP_TOKEN=function(){return this Line truncated
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
For Further details.`);if((0,Ir.isArray)(e)){if((0,Ir.isEmpty)(e))throw Error(`A Token Vocabulary cannot be empty.
Note that the first argument for the parser constructor
is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
For Further details.`)}if((0,Ir.isArray)(e))this.tokensMap=(0,Ir.reduce)(e,function(o,a){return o[a.name]=a,o},{});else if((0,Ir.has)(e,"modes")&&(0,Ir.every)((0,Ir.flatten)((0,Ir.values)(e.modes)),ep.isTokenType)){var i=(0,Ir.flatten)((0,Ir.values)(e.modes)),n=(0,Ir.uniq)(i);this.tokensMap=(0,Ir.reduce)(n,function(o,a){return o[a.name]=a,o},{})}else if((0,Ir.isObject)(e))this.tokensMap=(0,Ir.cloneObj)(e);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Jj.EOF;var s=(0,Ir.every)((0,Ir.values)(e),function(o){return(0,Ir.isEmpty)(o.categoryMatches)});this.tokenMatcher=s?ep.tokenStructuredMatcherNoCategories:ep.tokenStructuredMatcher,(0,ep.augmentTokenTypes)((0,Ir.values)(this.tokensMap))},t.prototype.defineRule=function(e,r,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+e+`> may not be defined after the 'performSelfAnalysis' method has been called'
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var n=(0,Ir.has)(i,"resyncEnabled")?i.resyncEnabled:qj.DEFAULT_RULE_CONFIG.resyncEnabled,s=(0,Ir.has)(i,"recoveryValueFunc")?i.recoveryValueFunc:qj.DEFAULT_RULE_CONFIG.recoveryValueFunc,o=this.ruleShortNameIdx<<Mn.BITS_FOR_METHOD_TYPE+Mn.BITS_FOR_OCCURRENCE_IDX;this.ruleShortNameIdx++,this.shortRuleNameToFull[o]=e,this.fullRuleNameToShort[e]=o;function a(u){try{if(this.outputCst===!0){r.apply(this,u);var g=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(g),g}else return r.apply(this,u)}catch(f){return this.invokeRuleCatch(f,n,s)}finally{this.ruleFinallyStateUpdate()}}var l=function(u,g){return u===void 0&&(u=0),this.ruleInvocationStateUpdate(o,e,u),a.call(this,g)},c="ruleName";return l[c]=e,l.originalGrammarAction=r,l},t.prototype.invokeRuleCatch=function(e,r,i){var n=this.RULE_STACK.length===1,s=r&&!this.isBackTracking()&&this.recoveryEnabled;if((0,NE.isRecognitionException)(e)){var o=e;if(s){var a=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(a))if(o.resyncedTokens=this.reSyncTo(a),this.outputCst){var l=this.CST_STACK[this.CST_STACK.length-1];return l.recoveredNode=!0,l}else return i();else{if(this.outputCst){var l=this.CST_STACK[this.CST_STACK.length-1];l.recoveredNode=!0,o.partialCstResult=l}throw o}}else{if(n)return this.moveToTerminatedState(),i();throw o}}else throw e},t.prototype.optionInternal=function(e,r){var i=this.getKeyForAutomaticLookahead(Mn.OPTION_IDX,r);return this.optionInternalLogic(e,r,i)},t.prototype.optionInternalLogic=function(e,r,i){var n=this,s=this.getLaFuncFromCache(i),o,a;if(e.DEF!==void 0){if(o=e.DEF,a=e.GATE,a!==void 0){var l=s;s=function(){return a.call(n)&&l.call(n)}}}else o=e;if(s.call(this)===!0)return o.call(this)},t.prototype.atLeastOneInternal=function(e,r){var i=this.getKeyForAutomaticLookahead(Mn.AT_LEAST_ONE_IDX,e);return this.atLeastOneInternalLogic(e,r,i)},t.prototype.atLeastOneInternalLogic=function(e,r,i){var n=this,s=this.getLaFuncFromCache(i),o,a;if(r.DEF!==void 0){if(o=r.DEF,a=r.GATE,a!==void 0){var l=s;s=function(){return a.call(n)&&l.call(n)}}}else o=r;if(s.call(this)===!0)for(var c=this.doSingleRepetition(o);s.call(this)===!0&&c===!0;)c=this.doSingleRepetition(o);else throw this.raiseEarlyExitException(e,Yj.PROD_TYPE.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],s,Mn.AT_LEAST_ONE_IDX,e,xu.NextTerminalAfterAtLeastOneWalker)},t.prototype.atLeastOneSepFirstInternal=function(e,r){var i=this.getKeyForAutomaticLookahead(Mn.AT_LEAST_ONE_SEP_IDX,e);this.atLeastOneSepFirstInternalLogic(e,r,i)},t.prototype.atLeastOneSepFirstInternalLogic=function(e,r,i){var n=this,s=r.DEF,o=r.SEP,a=this.getLaFuncFromCache(i);if(a.call(this)===!0){s.call(this);for(var l=function(){return n.tokenMatcher(n.LA(1),o)};this.tokenMatcher(this.LA(1),o)===!0;)this.CONSUME(o),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,o,l,s,xu.NextTerminalAfterAtLeastOneSepWalker],l,Mn.AT_LEAST_ONE_SEP_IDX,e,xu.NextTerminalAfterAtLeastOneSepWalker)}else throw this.raiseEarlyExitException(e,Yj.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)},t.prototype.manyInternal=function(e,r){var i=this.getKeyForAutomaticLookahead(Mn.MANY_IDX,e);return this.manyInternalLogic(e,r,i)},t.prototype.manyInternalLogic=function(e,r,i){var n=this,s=this.getLaFuncFromCache(i),o,a;if(r.DEF!==void 0){if(o=r.DEF,a=r.GATE,a!==void 0){var l=s;s=function(){return a.call(n)&&l.call(n)}}}else o=r;for(var c=!0;s.call(this)===!0&&c===!0;)c=this.doSingleRepetition(o);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],s,Mn.MANY_IDX,e,xu.NextTerminalAfterManyWalker,c)},t.prototype.manySepFirstInternal=function(e,r){var i=this.getKeyForAutomaticLookahead(Mn.MANY_SEP_IDX,e);this.manySepFirstInternalLogic(e,r,i)},t.prototype.manySepFirstInternalLogic=function(e,r,i){var n=this,s=r.DEF,o=r.SEP,a=this.getLaFuncFromCache(i);if(a.call(this)===!0){s.call(this);for(var l=function(){return n.tokenMatcher(n.LA(1),o)};this.tokenMatcher(this.LA(1),o)===!0;)this.CONSUME(o),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,o,l,s,xu.NextTerminalAfterManySepWalker],l,Mn.MANY_SEP_IDX,e,xu.NextTerminalAfterManySepWalker)}},t.prototype.repetitionSepSecondInternal=function(e,r,i,n,s){for(;i();)this.CONSUME(r),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,i,n,s],i,Mn.AT_LEAST_ONE_SEP_IDX,e,s)},t.prototype.doSingleRepetition=function(e){var r=this.getLexerPosition();e.call(this);var i=this.getLexerPosition();return i>r},t.prototype.orInternal=function(e,r){var i=this.getKeyForAutomaticLookahead(Mn.OR_IDX,r),n=(0,Ir.isArray)(e)?e:e.DEF,s=this.getLaFuncFromCache(i),o=s.call(this,n);if(o!==void 0){var a=n[o];return a.ALT.call(this)}this.raiseNoAltException(r,e.ERR_MSG)},t.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this. Line truncated
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(nY);var Xye={name:`This CSTNode indicates the Parser is in Recording Phase
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},$ye=function(){function t(){}return t.prototype.initGastRecorder=function(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1},t.prototype.enableRecording=function(){var e=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var r=function(n){var s=n>0?n:"";e["CONSUME"+s]=function(o,a){return this.consumeInternalRecord(o,n,a)},e["SUBRULE"+s]=function(o,a){return this.subruleInternalRecord(o,n,a)},e["OPTION"+s]=function(o){return this.optionInternalRecord(o,n)},e["OR"+s]=function(o){return this.orInternalRecord(o,n)},e["MANY"+s]=function(o){this.manyInternalRecord(n,o)},e["MANY_SEP"+s]=function(o){this.manySepFirstInternalRecord(n,o)},e["AT_LEAST_ONE"+s]=function(o){this.atLeastOneInternalRecord(n,o)},e["AT_LEAST_ONE_SEP"+s]=function(o){this.atLeastOneSepFirstInternalRecord(n,o)}},i=0;i<10;i++)r(i);e.consume=function(n,s,o){return this.consumeInternalRecord(s,n,o)},e.subrule=function(n,s,o){return this.subruleInternalRecord(s,n,o)},e.option=function(n,s){return this.optionInternalRecord(s,n)},e.or=function(n,s){return this.orInternalRecord(s,n)},e.many=function(n,s){this.manyInternalRecord(n,s)},e.atLeastOne=function(n,s){this.atLeastOneInternalRecord(n,s)},e.ACTION=e.ACTION_RECORD,e.BACKTRACK=e.BACKTRACK_RECORD,e.LA=e.LA_RECORD})},t.prototype.disableRecording=function(){var e=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var r=0;r<10;r++){var i=r>0?r:"";delete e["CONSUME"+i],delete e["SUBRULE"+i],delete e["OPTION"+i],delete e["OR"+i],delete e["MANY"+i],delete e["MANY_SEP"+i],delete e["AT_LEAST_ONE"+i],delete e["AT_LEAST_ONE_SEP"+i]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})},t.prototype.ACTION_RECORD=function(e){},t.prototype.BACKTRACK_RECORD=function(e,r){return function(){return!0}},t.prototype.LA_RECORD=function(e){return Vye.END_OF_FILE},t.prototype.topLevelRuleRecord=function(e,r){try{var i=new fo.Rule({definition:[],name:e});return i.name=e,this.recordingProdStack.push(i),r.call(this),this.recordingProdStack.pop(),i}catch(n){if(n.KNOWN_RECORDER_ERROR!==!0)try{n.message=n.message+`
This error was thrown during the "grammar recording phase" For more info see:
https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch(s){throw n}throw n}},t.prototype.optionInternalRecord=function(e,r){return tp.call(this,fo.Option,e,r)},t.prototype.atLeastOneInternalRecord=function(e,r){tp.call(this,fo.RepetitionMandatory,r,e)},t.prototype.atLeastOneSepFirstInternalRecord=function(e,r){tp.call(this,fo.RepetitionMandatoryWithSeparator,r,e,tY)},t.prototype.manyInternalRecord=function(e,r){tp.call(this,fo.Repetition,r,e)},t.prototype.manySepFirstInternalRecord=function(e,r){tp.call(this,fo.RepetitionWithSeparator,r,e,tY)},t.prototype.orInternalRecord=function(e,r){return Zye.call(this,e,r)},t.prototype.subruleInternalRecord=function(e,r,i){if(KE(r),!e||(0,Cn.has)(e,"ruleName")===!1){var n=new Error("<SUBRULE"+sY(r)+"> argument is invalid"+(" expecting a Parser method reference but got: <"+JSON.stringify(e)+">")+(`
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw n.KNOWN_RECORDER_ERROR=!0,n}var s=(0,Cn.peek)(this.recordingProdStack),o=e.ruleName,a=new fo.NonTerminal({idx:r,nonTerminalName:o,label:i==null?void 0:i.LABEL,referencedRule:void 0});return s.definition.push(a),this.outputCst?Xye:OE},t.prototype.consumeInternalRecord=function(e,r,i){if(KE(r),!(0,$j.hasShortKeyProperty)(e)){var n=new Error("<CONSUME"+sY(r)+"> argument is invalid"+(" expecting a TokenType reference but got: <"+JSON.stringify(e)+">")+(`
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw n.KNOWN_RECORDER_ERROR=!0,n}var s=(0,Cn.peek)(this.recordingProdStack),o=new fo.Terminal({idx:r,terminalType:e,label:i==null?void 0:i.LABEL});return s.definition.push(o),nY},t}();ME.GastRecorder=$ye;function tp(t,e,r,i){i===void 0&&(i=!1),KE(r);var n=(0,Cn.peek)(this.recordingProdStack),s=(0,Cn.isFunction)(e)?e:e.DEF,o=new t({definition:[],idx:r});return i&&(o.separator=e.SEP),(0,Cn.has)(e,"MAX_LOOKAHEAD")&&(o.maxLookahead=e.MAX_LOOKAHEAD),this.recordingProdStack.push(o),s.call(this),n.definition.push(o),this.recordingProdStack.pop(),OE}function Zye(t,e){var r=this;KE(e);var i=(0,Cn.peek)(this.recordingProdStack),n=(0,Cn.isArray)(t)===!1,s=n===!1?t:t.DEF,o=new fo.Alternation({definition:[],idx:e,ignoreAmbiguities:n&&t.IGNORE_AMBIGUITIES===!0});(0,Cn.has)(t,"MAX_LOOKAHEAD")&&(o.maxLookahead=t.MAX_LOOKAHEAD);var a=(0,Cn.some)(s,function(l){return(0,Cn.isFunction)(l.GATE)});return o.hasPredicates=a,i.definition.push(o),(0,Cn.forEach)(s,function(l){var c=new fo.Alternative({definition:[]});o.definition.push(c),(0,Cn.has)(l,"IGNORE_AMBIGUITIES")?c.ignoreAmbiguities=l.IGNORE_AMBIGUITIES:(0,Cn.has)(l,"GATE")&&(c.ignoreAmbiguities=!0),r.recordingProdStack.push(c),l.ALT.call(r),r.recordingProdStack.pop()}),OE}function sY(t){return t===0?"":""+t}function KE(t){if(t<0||t>rY){var e=new Error("Invalid DSL Method idx value: <"+t+`>
`+("Idx value must be a none negative value smaller than "+(rY+1)));throw e.KNOWN_RECORDER_ERROR=!0,e}}});var AY=I(UE=>{"use strict";Object.defineProperty(UE,"__esModule",{value:!0});UE.PerformanceTracer=void 0;var aY=Dt(),ewe=Tn(),twe=function(){function t(){}return t.prototype.initPerformanceTracer=function(e){if((0,aY.has)(e,"traceInitPerf")){var r=e.traceInitPerf,i=typeof r=="number";this.traceInitMaxIdent=i?r:Infinity,this.traceInitPerf=i?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=ewe.DEFAULT_PARSER_CONFIG.traceInitPerf;this.traceInitIndent=-1},t.prototype.TRACE_INIT=function(e,r){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+e+">");var n=(0,aY.timer)(r),s=n.time,o=n.value,a=s>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(i+"<-- <"+e+"> time: "+s+"ms"),this.traceInitIndent--,o}else return r()},t}();UE.PerformanceTracer=twe});var lY=I(HE=>{"use strict";Object.defineProperty(HE,"__esModule",{value:!0});HE.applyMixins=void 0;function rwe(t,e){e.forEach(function(r){var i=r.prototype;Object.getOwnPropertyNames(i).forEach(function(n){if(n!=="constructor"){var s=Object.getOwnPropertyDescriptor(i,n);s&&(s.get||s.set)?Object.defineProperty(t.prototype,n,s):t.prototype[n]=r.prototype[n]}})})}HE.applyMixins=rwe});var Tn=I(or=>{"use strict";var cY=or&&or.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(or,"__esModule",{value:!0});or.EmbeddedActionsParser=or.CstParser=or.Parser=or.EMPTY_ALT=or.ParserDefinitionErrorType=or.DEFAULT_RULE_CONFIG=or.DEFAULT_PARSER_CONFIG=or.END_OF_FILE=void 0;var Wi=Dt(),iwe=VG(),uY=nA(),gY=Wh(),fY=yj(),nwe=pS(),swe=kj(),owe=Kj(),awe=Hj(),Awe=jj(),lwe=Wj(),cwe=Vj(),uwe=Zj(),gwe=oY(),fwe=AY(),hwe=lY();or.END_OF_FILE=(0,uY.createTokenInstance)(uY.EOF,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(or.END_OF_FILE);or.DEFAULT_PARSER_CONFIG=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:gY.defaultParserErrorProvider,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1});or.DEFAULT_RULE_CONFIG=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});var pwe;(function(t){t[t.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",t[t.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",t[t.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",t[t.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",t[t.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",t[t.LEFT_RECURSION=5]="LEFT_RECURSION",t[t.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",t[t.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",t[t.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",t[t.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",t[t.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",t[t.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",t[t.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(pwe=or.ParserDefinitionErrorType||(or.ParserDefinitionErrorType={}));function dwe(t){return t===void 0&&(t=void 0),function(){return t}}or.EMPTY_ALT=dwe;var GE=function(){function t(e,r){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(r),i.initLexerAdapter(),i.initLooksAhead(r),i.initRecognizerEngine(e,r),i.initRecoverable(r),i.initTreeBuilder(r),i.initContentAssist(),i.initGastRecorder(r),i.initPerformanceTracer(r),(0,Wi.has)(r,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
For further details.`);this.skipValidations=(0,Wi.has)(r,"skipValidations")?r.skipValidations:or.DEFAULT_PARSER_CONFIG.skipValidations}return t.performSelfAnalysis=function(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},t.prototype.performSelfAnalysis=function(){var e=this;this.TRACE_INIT("performSelfAnalysis",function(){var r;e.selfAnalysisDone=!0;var i=e.className;e.TRACE_INIT("toFastProps",function(){(0,Wi.toFastProperties)(e)}),e.TRACE_INIT("Grammar Recording",function(){try{e.enableRecording(),(0,Wi.forEach)(e.definedRulesNames,function(s){var o=e[s],a=o.originalGrammarAction,l=void 0;e.TRACE_INIT(s+" Rule",function(){l=e.topLevelRuleRecord(s,a)}),e.gastProductionsCache[s]=l})}finally{e.disableRecording()}});var n=[];if(e.TRACE_INIT("Grammar Resolving",function(){n=(0,fY.resolveGrammar)({rules:(0,Wi.values)(e.gastProductionsCache)}),e.definitionErrors=e.definitionErrors.concat(n)}),e.TRACE_INIT("Grammar Validations",function(){if((0,Wi.isEmpty)(n)&&e.skipValidations===!1){var s=(0,fY.validateGrammar)({rules:(0,Wi.values)(e.gastProductionsCache),maxLookahead:e.maxLookahead,tokenTypes:(0,Wi.values)(e.tokensMap),errMsgProvider:gY.defaultGrammarValidatorErrorProvider,grammarName:i});e.definitionErrors=e.definitionErrors.concat(s)}}),(0,Wi.isEmpty)(e.definitionErrors)&&(e.recoveryEnabled&&e.TRACE_INIT("computeAllProdsFollows",function(){var s=(0,iwe.computeAllProdsFollows)((0,Wi.values)(e.gastProductionsCache));e.resyncFollows=s}),e.TRACE_INIT("ComputeLookaheadFunctions",function(){e.preComputeLookaheadFunctions((0,Wi.values)(e.gastProductionsCache))})),!t.DEFER_DEFINITION_ERRORS_HANDLING&&!(0,Wi.isEmpty)(e.definitionErrors))throw r=(0,Wi.map)(e.definitionErrors,function(s){return s.message}),new Error(`Parser Definition Errors detected:
`+r.join(`
-------------------------------
`))})},t.DEFER_DEFINITION_ERRORS_HANDLING=!1,t}();or.Parser=GE;(0,hwe.applyMixins)(GE,[nwe.Recoverable,swe.LooksAhead,owe.TreeBuilder,awe.LexerAdapter,lwe.RecognizerEngine,Awe.RecognizerApi,cwe.ErrorHandler,uwe.ContentAssist,gwe.GastRecorder,fwe.PerformanceTracer]);var Cwe=function(t){cY(e,t);function e(r,i){i===void 0&&(i=or.DEFAULT_PARSER_CONFIG);var n=this,s=(0,Wi.cloneObj)(i);return s.outputCst=!0,n=t.call(this,r,s)||this,n}return e}(GE);or.CstParser=Cwe;var mwe=function(t){cY(e,t);function e(r,i){i===void 0&&(i=or.DEFAULT_PARSER_CONFIG);var n=this,s=(0,Wi.cloneObj)(i);return s.outputCst=!1,n=t.call(this,r,s)||this,n}return e}(GE);or.EmbeddedActionsParser=mwe});var pY=I(jE=>{"use strict";Object.defineProperty(jE,"__esModule",{value:!0});jE.createSyntaxDiagramsCode=void 0;var hY=Uv();function Iwe(t,e){var r=e===void 0?{}:e,i=r.resourceBase,n=i===void 0?"https://unpkg.com/chevrotain@"+hY.VERSION+"/diagrams/":i,s=r.css,o=s===void 0?"https://unpkg.com/chevrotain@"+hY.VERSION+"/diagrams/diagrams.css":s,a=`
<!-- This is a generated file -->
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
background-color: hsl(30, 20%, 95%)
}
</style>
`,l=`
<link rel='stylesheet' href='`+o+`'>
`,c=`
<script src='`+n+`vendor/railroad-diagrams.js'></script>
<script src='`+n+`src/diagrams_builder.js'></script>
<script src='`+n+`src/diagrams_behavior.js'></script>
<script src='`+n+`src/main.js'></script>
`,u=`
<div id="diagrams" align="center"></div>
`,g=`
<script>
window.serializedGrammar = `+JSON.stringify(t,null," ")+`;
</script>
`,f=`
<script>
var diagramsDiv = document.getElementById("diagrams");
main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);
</script>
`;return a+l+c+u+g+f}jE.createSyntaxDiagramsCode=Iwe});var mY=I(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.Parser=He.createSyntaxDiagramsCode=He.clearCache=He.GAstVisitor=He.serializeProduction=He.serializeGrammar=He.Terminal=He.Rule=He.RepetitionWithSeparator=He.RepetitionMandatoryWithSeparator=He.RepetitionMandatory=He.Repetition=He.Option=He.NonTerminal=He.Alternative=He.Alternation=He.defaultLexerErrorProvider=He.NoViableAltException=He.NotAllInputParsedException=He.MismatchedTokenException=He.isRecognitionException=He.EarlyExitException=He.defaultParserErrorProvider=He.tokenName=He.tokenMatcher=He.tokenLabel=He.EOF=He.createTokenInstance=He.createToken=He.LexerDefinitionErrorType=He.Lexer=He.EMPTY_ALT=He.ParserDefinitionErrorType=He.EmbeddedActionsParser=He.CstParser=He.VERSION=void 0;var Ewe=Uv();Object.defineProperty(He,"VERSION",{enumerable:!0,get:function(){return Ewe.VERSION}});var YE=Tn();Object.defineProperty(He,"CstParser",{enumerable:!0,get:function(){return YE.CstParser}});Object.defineProperty(He,"EmbeddedActionsParser",{enumerable:!0,get:function(){return YE.EmbeddedActionsParser}});Object.defineProperty(He,"ParserDefinitionErrorType",{enumerable:!0,get:function(){return YE.ParserDefinitionErrorType}});Object.defineProperty(He,"EMPTY_ALT",{enumerable:!0,get:function(){return YE.EMPTY_ALT}});var dY=Gh();Object.defineProperty(He,"Lexer",{enumerable:!0,get:function(){return dY.Lexer}});Object.defineProperty(He,"LexerDefinitionErrorType",{enumerable:!0,get:function(){return dY.LexerDefinitionErrorType}});var ku=nA();Object.defineProperty(He,"createToken",{enumerable:!0,get:function(){return ku.createToken}});Object.defineProperty(He,"createTokenInstance",{enumerable:!0,get:function(){return ku.createTokenInstance}});Object.defineProperty(He,"EOF",{enumerable:!0,get:function(){return ku.EOF}});Object.defineProperty(He,"tokenLabel",{enumerable:!0,get:function(){return ku.tokenLabel}});Object.defineProperty(He,"tokenMatcher",{enumerable:!0,get:function(){return ku.tokenMatcher}});Object.defineProperty(He,"tokenName",{enumerable:!0,get:function(){return ku.tokenName}});var ywe=Wh();Object.defineProperty(He,"defaultParserErrorProvider",{enumerable:!0,get:function(){return ywe.defaultParserErrorProvider}});var rp=vu();Object.defineProperty(He,"EarlyExitException",{enumerable:!0,get:function(){return rp.EarlyExitException}});Object.defineProperty(He,"isRecognitionException",{enumerable:!0,get:function(){return rp.isRecognitionException}});Object.defineProperty(He,"MismatchedTokenException",{enumerable:!0,get:function(){return rp.MismatchedTokenException}});Object.defineProperty(He,"NotAllInputParsedException",{enumerable:!0,get:function(){return rp.NotAllInputParsedException}});Object.defineProperty(He,"NoViableAltException",{enumerable:!0,get:function(){return rp.NoViableAltException}});var wwe=_v();Object.defineProperty(He,"defaultLexerErrorProvider",{enumerable:!0,get:function(){return wwe.defaultLexerErrorProvider}});var ho=hn();Object.defineProperty(He,"Alternation",{enumerable:!0,get:function(){return ho.Alternation}});Object.defineProperty(He,"Alternative",{enumerable:!0,get:function(){return ho.Alternative}});Object.defineProperty(He,"NonTerminal",{enumerable:!0,get:function(){return ho.NonTerminal}});Object.defineProperty(He,"Option",{enumerable:!0,get:function(){return ho.Option}});Object.defineProperty(He,"Repetition",{enumerable:!0,get:function(){return ho.Repetition}});Object.defineProperty(He,"RepetitionMandatory",{enumerable:!0,get:function(){return ho.RepetitionMandatory}});Object.defineProperty(He,"RepetitionMandatoryWithSeparator",{enumerable:!0,get:function(){return ho.RepetitionMandatoryWithSeparator}});Object.defineProperty(He,"RepetitionWithSeparator",{enumerable:!0,get:function(){return ho.RepetitionWithSeparator}});Object.defineProperty(He,"Rule",{enumerable:!0,get:function(){return ho.Rule}});Object.defineProperty(He,"Terminal",{enumerable:!0,get:function(){return ho.Terminal}});var CY=hn();Object.defineProperty(He,"serializeGrammar",{enumerable:!0,get:function(){return CY.serializeGrammar}});Object.defineProperty(He,"serializeProduction",{enumerable:!0,get:function(){return CY.serializeProduction}});var Bwe=wu();Object.defineProperty(He,"GAstVisitor",{enumerable:!0,get:function(){return Bwe.GAstVisitor}});function Qwe(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
It performs no action other than printing this message.
Please avoid using it as it will be completely removed in the future`)}He.clearCache=Qwe;var bwe=pY();Object.defineProperty(He,"createSyntaxDiagramsCode",{enumerable:!0,get:function(){return bwe.createSyntaxDiagramsCode}});var vwe=function(){function t(){throw new Error(`The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return t}();He.Parser=vwe});var yY=I((Trt,IY)=>{var qE=mY(),ca=qE.createToken,EY=qE.tokenMatcher,yS=qE.Lexer,Swe=qE.EmbeddedActionsParser;IY.exports=t=>{let e=ca({name:"LogicalOperator",pattern:yS.NA}),r=ca({name:"Or",pattern:/\|/,categories:e}),i=ca({name:"Xor",pattern:/\^/,categories:e}),n=ca({name:"And",pattern:/&/,categories:e}),s=ca({name:"Not",pattern:/!/}),o=ca({name:"LParen",pattern:/\(/}),a=ca({name:"RParen",pattern:/\)/}),l=ca({name:"Query",pattern:t}),u=[ca({name:"WhiteSpace",pattern:/\s+/,group:yS.SKIPPED}),r,i,n,o,a,s,e,l],g=new yS(u);class f extends Swe{constructor(p){super(u);this.RULE("expression",()=>this.SUBRULE(this.logicalExpression)),this.RULE("logicalExpression",()=>{let m=this.SUBRULE(this.atomicExpression);return this.MANY(()=>{let E=m,B=this.CONSUME(e),b=this.SUBRULE2(this.atomicExpression);EY(B,r)?m=R=>E(R)||b(R):EY(B,i)?m=R=>!!(E(R)^b(R)):m=R=>E(R)&&b(R)}),m}),this.RULE("atomicExpression",()=>this.OR([{ALT:()=>this.SUBRULE(this.parenthesisExpression)},{ALT:()=>{let{image:d}=this.CONSUME(l);return m=>m(d)}},{ALT:()=>{this.CONSUME(s);let d=this.SUBRULE(this.atomicExpression);return m=>!d(m)}}])),this.RULE("parenthesisExpression",()=>{let d;return this.CONSUME(o),d=this.SUBRULE(this.expression),this.CONSUME(a),d}),this.performSelfAnalysis()}}return{TinylogicLexer:g,TinylogicParser:f}}});var wY=I(JE=>{var xwe=yY();JE.makeParser=(t=/[a-z]+/)=>{let{TinylogicLexer:e,TinylogicParser:r}=xwe(t),i=new r;return(n,s)=>{let o=e.tokenize(n);return i.input=o.tokens,i.expression()(s)}};JE.parse=JE.makeParser()});var QY=I((Ort,BY)=>{"use strict";BY.exports=(...t)=>[...new Set([].concat(...t))]});var wS=I((Krt,bY)=>{"use strict";var kwe=require("stream"),vY=kwe.PassThrough,Pwe=Array.prototype.slice;bY.exports=Dwe;function Dwe(){let t=[],e=!1,r=Pwe.call(arguments),i=r[r.length-1];i&&!Array.isArray(i)&&i.pipe==null?r.pop():i={};let n=i.end!==!1;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let s=vY(i);function o(){for(let c=0,u=arguments.length;c<u;c++)t.push(SY(arguments[c],i));return a(),this}function a(){if(e)return;e=!0;let c=t.shift();if(!c){process.nextTick(l);return}Array.isArray(c)||(c=[c]);let u=c.length+1;function g(){--u>0||(e=!1,a())}function f(h){function p(){h.removeListener("merge2UnpipeEnd",p),h.removeListener("end",p),g()}if(h._readableState.endEmitted)return g();h.on("merge2UnpipeEnd",p),h.on("end",p),h.pipe(s,{end:!1}),h.resume()}for(let h=0;h<c.length;h++)f(c[h]);g()}function l(){return e=!1,s.emit("queueDrain"),n&&s.end()}return s.setMaxListeners(0),s.add=o,s.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),r.length&&o.apply(null,r),s}function SY(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=SY(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(vY(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var xY=I(WE=>{"use strict";Object.defineProperty(WE,"__esModule",{value:!0});function Rwe(t){return t.reduce((e,r)=>[].concat(e,r),[])}WE.flatten=Rwe;function Fwe(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}WE.splitWhen=Fwe});var kY=I(BS=>{"use strict";Object.defineProperty(BS,"__esModule",{value:!0});function Nwe(t){return t.code==="ENOENT"}BS.isEnoentCodeError=Nwe});var DY=I(QS=>{"use strict";Object.defineProperty(QS,"__esModule",{value:!0});var PY=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Lwe(t,e){return new PY(t,e)}QS.createDirentFromStats=Lwe});var RY=I(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});var Twe=require("path"),Mwe=2,Owe=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Kwe(t){return t.replace(/\\/g,"/")}Pu.unixify=Kwe;function Uwe(t,e){return Twe.resolve(t,e)}Pu.makeAbsolute=Uwe;function Hwe(t){return t.replace(Owe,"\\$2")}Pu.escape=Hwe;function Gwe(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Mwe)}return t}Pu.removeLeadingDotSegment=Gwe});var NY=I((Yrt,FY)=>{FY.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var TY=I((qrt,LY)=>{var jwe=NY(),Ywe={"{":"}","(":")","[":"]"},qwe=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/,Jwe=/\\(.)|(^!|[*?{}()[\]]|\(\?)/;LY.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(jwe(e))return!0;var i=qwe,n;for(r&&r.strict===!1&&(i=Jwe);n=i.exec(e);){if(n[2])return!0;var s=n.index+n[0].length,o=n[1],a=o?Ywe[o]:null;if(o&&a){var l=e.indexOf(a,s);l!==-1&&(s=l+1)}e=e.slice(s)}return!1}});var OY=I((Jrt,MY)=>{"use strict";var Wwe= Line truncated
Please report this to https://github.com/szmarczak/http2-wrapper/`);p(d)}return}i[0].resolve(h);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...i),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let l=()=>{o in this.queue&&this.queue[o][a]===c&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},c=()=>{let u=`${a}:${o}`,g=!1;try{let f=dve.connect(e,P({createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(u)},r));f[_i]=0,f[Yu]=!1;let h=()=>f[_i]<f.remoteSettings.maxConcurrentStreams,p=!0;f.socket.once("session",m=>{this.tlsSessionCache.set(u,m)}),f.once("error",m=>{for(let{reject:E}of i)E(m);this.tlsSessionCache.delete(u)}),f.setTimeout(this.timeout,()=>{f.destroy()}),f.once("close",()=>{if(g){p&&this._freeSessionsCount--,this._sessionsCount--;let m=this.sessions[o];m.splice(m.indexOf(f),1),m.length===0&&delete this.sessions[o]}else{let m=new Error("Session closed without receiving a SETTINGS frame");m.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:E}of i)E(m);l()}this._tryToCreateNewSession(o,a)});let d=()=>{if(!(!(o in this.queue)||!h())){for(let m of f[ns])if(m in this.queue[o]){let{listeners:E}=this.queue[o][m];for(;E.length!==0&&h();)E.shift().resolve(f);let B=this.queue[o];if(B[m].listeners.length===0&&(delete B[m],Object.keys(B).length===0)){delete this.queue[o];break}if(!h())break}}};f.on("origin",()=>{f[ns]=f.originSet,!!h()&&(d(),ck(this.sessions[o],f))}),f.once("remoteSettings",()=>{if(f.ref(),f.unref(),this._sessionsCount++,c.destroyed){let m=new Error("Agent has been destroyed");for(let E of i)E.reject(m);f.destroy();return}f[ns]=f.originSet;{let m=this.sessions;if(o in m){let E=m[o];E.splice(Ive(E,f,Eve),0,f)}else m[o]=[f]}this._freeSessionsCount+=1,g=!0,this.emit("session",f),d(),l(),f[_i]===0&&this._freeSessionsCount>this.maxFreeSessions&&f.close(),i.length!==0&&(this.getSession(a,r,i),i.length=0),f.on("remoteSettings",()=>{d(),ck(this.sessions[o],f)})}),f[lW]=f.request,f.request=(m,E)=>{if(f[Yu])throw new Error("The session is gracefully closing. No new streams are allowed.");let B=f[lW](m,E);return f.ref(),++f[_i],f[_i]===f.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,B.once("close",()=>{if(p=h(),--f[_i],!f.destroyed&&!f.closed&&(yve(this.sessions[o],f),h()&&!f.closed)){p||(this._freeSessionsCount++,p=!0);let b=f[_i]===0;b&&f.unref(),b&&(this._freeSessionsCount>this.maxFreeSessions||f[Yu])?f.close():(ck(this.sessions[o],f),d())}}),B}}catch(f){for(let h of i)h.reject(f);l()}};c.listeners=i,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(e,r,i,n){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(i,n))}catch(l){o(l)}}}])})}createConnection(e,r){return ma.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let i=e.port||443,n=e.hostname||e.host;return typeof r.servername=="undefined"&&(r.servername=n),pve.connect(i,n,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[_i]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let i of r)i.destroy(e);for(let r of Object.values(this.queue))for(let i of Object.values(r))i.destroyed=!0;this.queue={}}get freeSessions(){return uW({agent:this,isFree:!0})}get busySessions(){return uW({agent:this,isFree:!1})}};ma.kCurrentStreamsCount=_i;ma.kGracefullyClosing=Yu;AW.exports={Agent:ma,globalAgent:new ma}});var gk=I((Nnt,gW)=>{"use strict";var{Readable:wve}=require("stream"),fW=class extends wve{constructor(e,r){super({highWaterMark:r,autoDestroy:!1});this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};gW.exports=fW});var fk=I((Lnt,hW)=>{"use strict";hW.exports=t=>{let e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var dW=I((Tnt,pW)=>{"use strict";pW.exports=(t,e,r)=>{for(let i of r)t.on(i,(...n)=>e.emit(i,...n))}});var mW=I((Mnt,CW)=>{"use strict";CW.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var EW=I((Knt,IW)=>{"use strict";var qu=(t,e,r)=>{IW.exports[e]=class extends t{constructor(...n){super(typeof r=="string"?r:r(n) Line truncated
`).reverse(),a=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
`).reverse();for(;a.length!==0&&a[0]===o[0];)o.shift();this.stack=`${this.stack.slice(0,s)}${o.reverse().join(`
`)}${a.reverse().join(`
`)}`}}};Rt.RequestError=_r;var Hk=class extends _r{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e);this.name="MaxRedirectsError"}};Rt.MaxRedirectsError=Hk;var Gk=class extends _r{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request);this.name="HTTPError"}};Rt.HTTPError=Gk;var jk=class extends _r{constructor(e,r){super(e.message,e,r);this.name="CacheError"}};Rt.CacheError=jk;var Yk=class extends _r{constructor(e,r){super(e.message,e,r);this.name="UploadError"}};Rt.UploadError=Yk;var qk=class extends _r{constructor(e,r,i){super(e.message,e,i);this.name="TimeoutError",this.event=e.event,this.timings=r}};Rt.TimeoutError=qk;var jy=class extends _r{constructor(e,r){super(e.message,e,r);this.name="ReadError"}};Rt.ReadError=jy;var Jk=class extends _r{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e);this.name="UnsupportedProtocolError"}};Rt.UnsupportedProtocolError=Jk;var kSe=["socket","connect","continue","information","upgrade","timeout"],Uk=class extends n8.Duplex{constructor(e,r={},i){super({autoDestroy:!1,highWaterMark:0});this[Wu]=0,this[Vu]=0,this.requestInitialized=!1,this[Hy]=new Set,this.redirects=[],this[_u]=!1,this[Gy]=!1,this[bp]=[],this.retryCount=0,this._progressCallbacks=[];let n=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",n),c.on("data",s),c.prependListener("end",n),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",n),c.off("data",s),c.off("end",n),c.off("end",s)}),this.on("pipe",c=>{c instanceof Tk.IncomingMessage&&(this.options.headers=P(P({},c.headers),this.options.headers))});let{json:o,body:a,form:l}=r;if((o||a||l)&&this._lockWrite(),Rt.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,i)}catch(c){ce.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof ASe.ReadStream&&await vSe(this.options.body);let{url:u}=this.options;if(!u)throw new TypeError("Missing `url` property");if(this.requestUrl=u.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(c=this[Ii])===null||c===void 0||c.destroy();return}for(let g of this[bp])g();this[bp].length=0,this.requestInitialized=!0}catch(u){if(u instanceof _r){this._beforeError(u);return}this.destroyed||this.destroy(u)}})()}static normalizeArguments(e,r,i){var n,s,o,a,l;let c=r;if(ce.default.object(e)&&!ce.default.urlInstance(e))r=P(P(P({},i),e),r);else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r=P(P({},i),r),e!==void 0&&(r.url=e),ce.default.urlInstance(r.url)&&(r.url=new dA.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),ce.assert.any([ce.default.string,ce.default.undefined],r.method),ce.assert.any([ce.default.object,ce.default.undefined],r.headers),ce.assert.any([ce.default.string,ce.default.urlInstance,ce.default.undefined],r.prefixUrl),ce.assert.any([ce.default.object,ce.default.undefined],r.cookieJar),ce.assert.any([ce.default.object,ce.default.string,ce.default.undefined],r.searchParams),ce.assert.any([ce.default.object,ce.default.string,ce.default.undefined],r.cache),ce.assert.any([ce.default.object,ce.default.number,ce.default.undefined],r.timeout),ce.assert.any([ce.default.object,ce.default.undefined],r.context),ce.assert.any([ce.default.object,ce.default.undefined],r.hooks),ce.assert.any([ce.default.boolean,ce.default.undefined],r.decompress),ce.assert.any([ce.default.boolean,ce.default.undefined],r.ignoreInvalidCookies),ce.assert.any([ce.default.boolean,ce.default.undefined],r.followRedirect),ce.assert.any([ce.default.number,ce.default.undefined],r.maxRedirects),ce.assert.any([ce.default.boolean,ce.default.undefined],r.throwHttpErrors),ce.assert.any([ce.default.boolean,ce.default.undefined],r.http2),ce.assert.any([ce.default.boolean,ce.default.undefined],r.allowGetBody),ce.assert.any([ce.default.string,ce.default.undefined],r.localAddress),ce.assert.any([c8.isDnsLookupIpVersion,ce.default.undefined],r.dnsLookupIpVersion),ce.assert.any([ce.default.object,ce.default.undefined],r.https),ce.assert.any([ce.default.boolean,ce.default.undefined],r.rejectUnauthorized),r.https&&(ce.assert.any([ce.default.boolean,ce.default.undefined],r.https.rejectUnauthorized),ce.assert.any([ce.default.function_,ce.default.undefined],r.https.checkServerIdentity),ce.assert.any([ce.default.string,ce.default.object,ce.default.array,ce.default.undefined],r.https.certificateAuthority),ce.assert.any([ce.default.string,ce.default.object,ce.default.array,ce.default.undefined],r.https.key),ce.assert.any([ce.default.string,ce.default.object,ce.default.array,ce.default.undefined],r.https.certificate),ce.assert.any([ce.default.string,ce.default.undefined],r.https.passphrase),ce.assert.any([ce.default.string,ce.default.buffer,ce.default.array,ce.default.undefined],r.httLine truncated
`,g.message,g.stack);var f=new Error("tunneling socket could not be established, cause="+g.message);f.code="ECONNRESET",e.request.emit("error",f),i.removeSocket(n)}};Ea.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createSocket(i,function(n){i.request.onSocket(n)})}};function O8(t,e){var r=this;Ea.prototype.createSocket.call(r,t,function(i){var n=t.request.getHeader("host"),s=eP({},r.options,{socket:i,servername:n?n.replace(/:.*$/,""):t.host}),o=txe.connect(0,s);r.sockets[r.sockets.indexOf(i)]=o,e(o)})}function K8(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function eP(t){for(var e=1,r=arguments.length;e<r;++e){var i=arguments[e];if(typeof i=="object")for(var n=Object.keys(i),s=0,o=n.length;s<o;++s){var a=n[s];i[a]!==void 0&&(t[a]=i[a])}}return t}var EA;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?EA=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:EA=function(){};Xu.debug=EA});var G8=I((dst,H8)=>{H8.exports=U8()});var bz=I((xot,sP)=>{var ez=Object.assign({},require("fs")),oe=typeof oe!="undefined"?oe:{},kp={},wA;for(wA in oe)oe.hasOwnProperty(wA)&&(kp[wA]=oe[wA]);var oP=[],tz="./this.program",rz=function(t,e){throw e},iz=!1,Wl=!0,Pp="";function dxe(t){return oe.locateFile?oe.locateFile(t,Pp):Pp+t}var Xy,aP,Zy,AP;Wl&&(iz?Pp=require("path").dirname(Pp)+"/":Pp=__dirname+"/",Xy=function(e,r){var i=sz(e);return i?r?i:i.toString():(Zy||(Zy=ez),AP||(AP=require("path")),e=AP.normalize(e),Zy.readFileSync(e,r?null:"utf8"))},aP=function(e){var r=Xy(e,!0);return r.buffer||(r=new Uint8Array(r)),nz(r.buffer),r},process.argv.length>1&&(tz=process.argv[1].replace(/\\/g,"/")),oP=process.argv.slice(2),typeof sP!="undefined"&&(sP.exports=oe),rz=function(t){process.exit(t)},oe.inspect=function(){return"[Emscripten Module object]"});var $y=oe.print||console.log.bind(console),Di=oe.printErr||console.warn.bind(console);for(wA in kp)kp.hasOwnProperty(wA)&&(oe[wA]=kp[wA]);kp=null;oe.arguments&&(oP=oe.arguments);oe.thisProgram&&(tz=oe.thisProgram);oe.quit&&(rz=oe.quit);var Cxe=16;function mxe(t,e){return e||(e=Cxe),Math.ceil(t/e)*e}var Ixe=0,Exe=function(t){Ixe=t},lP;oe.wasmBinary&&(lP=oe.wasmBinary);var Pst=oe.noExitRuntime||!0;typeof WebAssembly!="object"&&Gr("no native wasm support detected");function yxe(t,e,r){switch(e=e||"i8",e.charAt(e.length-1)==="*"&&(e="i32"),e){case"i1":return Zi[t>>0];case"i8":return Zi[t>>0];case"i16":return cP[t>>1];case"i32":return _e[t>>2];case"i64":return _e[t>>2];case"float":return oz[t>>2];case"double":return az[t>>3];default:Gr("invalid type for getValue: "+e)}return null}var ew,Az=!1,wxe;function nz(t,e){t||Gr("Assertion failed: "+e)}function lz(t){var e=oe["_"+t];return nz(e,"Cannot call unknown function "+t+", make sure it is exported"),e}function vxe(t,e,r,i,n){var s={string:function(h){var p=0;if(h!=null&&h!==0){var d=(h.length<<2)+1;p=gz(d),uz(h,p,d)}return p},array:function(h){var p=gz(h.length);return Bxe(h,p),p}};function o(h){return e==="string"?cz(h):e==="boolean"?Boolean(h):h}var a=lz(t),l=[],c=0;if(i)for(var u=0;u<i.length;u++){var g=s[r[u]];g?(c===0&&(c=Qxe()),l[u]=g(i[u])):l[u]=i[u]}var f=a.apply(null,l);return f=o(f),c!==0&&bxe(c),f}function Sxe(t,e,r,i){r=r||[];var n=r.every(function(o){return o==="number"}),s=e!=="string";return s&&n&&!i?lz(t):function(){return vxe(t,e,r,arguments,i)}}var fz=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):void 0;function Zu(t,e,r){for(var i=e+r,n=e;t[n]&&!(n>=i);)++n;if(n-e>16&&t.subarray&&fz)return fz.decode(t.subarray(e,n));for(var s="";e<n;){var o=t[e++];if(!(o&128)){s+=String.fromCharCode(o);continue}var a=t[e++]&63;if((o&224)==192){s+=String.fromCharCode((o&31)<<6|a);continue}var l=t[e++]&63;if((o&240)==224?o=(o&15)<<12|a<<6|l:o=(o&7)<<18|a<<12|l<<6|t[e++]&63,o<65536)s+=String.fromCharCode(o);else{var c=o-65536;s+=String.fromCharCode(55296|c>>10,56320|c&1023)}}return s}function cz(t,e){return t?Zu($u,t,e):""}function tw(t,e,r,i){if(!(i>0))return 0;for(var n=r,s=r+i-1,o=0;o<t.length;++o){var a=t.charCodeAt(o);if(a>=55296&&a<=57343){var l=t.charCodeAt(++o);a=65536+((a&1023)<<10)|l&1023}if(a<=127){if(r>=s)break;e[r++]=a}else if(a<=2047){if(r+1>=s)break;e[r++]=192|a>>6,e[r++]=128|a&63}else if(a<=65535){if(r+2>=s)break;e[r++]=224|a>>12,e[r++]=128|a>>6&63,e[r++]=128|a&63}else{if(r+3>=s)break;e[r++]=240|a>>18,e[r++]=128|a>>12&63,e[r++]=128|a>>6&63,e[r++]=128|a&63}}return e[r]=0,r-n}function uz(t,e,r){return tw(t,$u,e,r)}function rw(t){for(var e=0,r=0;r<t.length;++r){var i=t.charCodeAt(r);i>=55296&&i<=57343&&(i=65536+((i&1023)<<10)|t.charCodeAt(++r)&1023),i<=127?++e:i<=2047?e+=2:i<=65535?e+=3:e+=4}return e}function uP(t){var e=rw(t)+1,r=hz(e);return r&&tw(t,Zi,r,e),r}function Bxe(t,e){Zi.set(t,e)}function xxe(t,e){return t%e>0&&(t+=e-t%e),t}var gP,Zi,$u,cP,kxe,_e,Pxe,oz,az;function pz(t){gP=t,oe.HEAP8=Zi=ne Line truncated
`)):typeof readline=="function"&&(e=readline(),e!==null&&(e+=`
`));if(!e)return null;t.input=CP(e,!0)}return t.input.shift()},put_char:function(t,e){e===null||e===10?($y(Zu(t.output,0)),t.output=[]):e!=0&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&($y(Zu(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){e===null||e===10?(Di(Zu(t.output,0)),t.output=[]):e!=0&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(Di(Zu(t.output,0)),t.output=[])}}};function mP(t){for(var e=mxe(t,65536),r=hz(e);t<e;)Zi[r+t++]=0;return r}var pt={ops_table:null,mount:function(t){return pt.createNode(null,"/",16384|511,0)},createNode:function(t,e,r,i){if(y.isBlkdev(r)||y.isFIFO(r))throw new y.ErrnoError(63);pt.ops_table||(pt.ops_table={dir:{node:{getattr:pt.node_ops.getattr,setattr:pt.node_ops.setattr,lookup:pt.node_ops.lookup,mknod:pt.node_ops.mknod,rename:pt.node_ops.rename,unlink:pt.node_ops.unlink,rmdir:pt.node_ops.rmdir,readdir:pt.node_ops.readdir,symlink:pt.node_ops.symlink},stream:{llseek:pt.stream_ops.llseek}},file:{node:{getattr:pt.node_ops.getattr,setattr:pt.node_ops.setattr},stream:{llseek:pt.stream_ops.llseek,read:pt.stream_ops.read,write:pt.stream_ops.write,allocate:pt.stream_ops.allocate,mmap:pt.stream_ops.mmap,msync:pt.stream_ops.msync}},link:{node:{getattr:pt.node_ops.getattr,setattr:pt.node_ops.setattr,readlink:pt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:pt.node_ops.getattr,setattr:pt.node_ops.setattr},stream:y.chrdev_stream_ops}});var n=y.createNode(t,e,r,i);return y.isDir(n.mode)?(n.node_ops=pt.ops_table.dir.node,n.stream_ops=pt.ops_table.dir.stream,n.contents={}):y.isFile(n.mode)?(n.node_ops=pt.ops_table.file.node,n.stream_ops=pt.ops_table.file.stream,n.usedBytes=0,n.contents=null):y.isLink(n.mode)?(n.node_ops=pt.ops_table.link.node,n.stream_ops=pt.ops_table.link.stream):y.isChrdev(n.mode)&&(n.node_ops=pt.ops_table.chrdev.node,n.stream_ops=pt.ops_table.chrdev.stream),n.timestamp=Date.now(),t&&(t.contents[e]=n,t.timestamp=n.timestamp),n},getFileDataAsTypedArray:function(t){return t.contents?t.contents.subarray?t.contents.subarray(0,t.usedBytes):new Uint8Array(t.contents):new Uint8Array(0)},expandFileStorage:function(t,e){var r=t.contents?t.contents.length:0;if(!(r>=e)){var i=1024*1024;e=Math.max(e,r*(r<i?2:1.125)>>>0),r!=0&&(e=Math.max(e,256));var n=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(n.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e)if(e==0)t.contents=null,t.usedBytes=0;else{var r=t.contents;t.contents=new Uint8Array(e),r&&t.contents.set(r.subarray(0,Math.min(e,t.usedBytes))),t.usedBytes=e}},node_ops:{getattr:function(t){var e={};return e.dev=y.isChrdev(t.mode)?t.id:1,e.ino=t.id,e.mode=t.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=t.rdev,y.isDir(t.mode)?e.size=4096:y.isFile(t.mode)?e.size=t.usedBytes:y.isLink(t.mode)?e.size=t.link.length:e.size=0,e.atime=new Date(t.timestamp),e.mtime=new Date(t.timestamp),e.ctime=new Date(t.timestamp),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr:function(t,e){e.mode!==void 0&&(t.mode=e.mode),e.timestamp!==void 0&&(t.timestamp=e.timestamp),e.size!==void 0&&pt.resizeFileStorage(t,e.size)},lookup:function(t,e){throw y.genericErrors[44]},mknod:function(t,e,r,i){return pt.createNode(t,e,r,i)},rename:function(t,e,r){if(y.isDir(t.mode)){var i;try{i=y.lookupNode(e,r)}catch(s){}if(i)for(var n in i.contents)throw new y.ErrnoError(55)}delete t.parent.contents[t.name],t.parent.timestamp=Date.now(),t.name=r,e.contents[r]=t,e.timestamp=t.parent.timestamp,t.parent=e},unlink:function(t,e){delete t.contents[e],t.timestamp=Date.now()},rmdir:function(t,e){var r=y.lookupNode(t,e);for(var i in r.contents)throw new y.ErrnoError(55);delete t.contents[e],t.timestamp=Date.now()},readdir:function(t){var e=[".",".."];for(var r in t.contents)!t.contents.hasOwnProperty(r)||e.push(r);return e},symlink:function(t,e,r){var i=pt.createNode(t,e,511|40960,0);return i.link=r,i},readlink:function(t){if(!y.isLink(t.mode))throw new y.ErrnoError(28);return t.link}},stream_ops:{read:function(t,e,r,i,n){var s=t.node.contents;if(n>=t.node.usedBytes)return 0;var o=Math.min(t.node.usedBytes-n,i);if(o>8&&s.subarray)e.set(s.subarray(n,n+o),r);else for(var a=0;a<o;a++)e[r+a]=s[n+a];return o},write:function(t,e,r,i,n,s){if(e.buffer===Zi.buffer&&(s=!1),!i)return 0;var o=t.node;if(o.timestamp=Date.now(),e.subarray&&(!o.contents||o.contents.subarray)){if(s)return o.contents=e.subarray(r,r+i),o.usedBytes=i,i;if(o.usedBytes===0&&n===0)return o.contents=e.slice(r,r+i),o.usedBytes=i,i;if(n+i<=o.usedBytes)return o.contents.set(e.subarray(r,r+i),n),i}if(pt.expandFileStorage(o,n+i),o.contents.subarray&&e.subarray)o.contents.set(e.subarray(r,r+i),n);else for(var a=0;a<i;a++)o.contents[n+a]=e[r+a];return o.usedBytes=Math.max(o.usedBytes,n+i),i},llseek:function(t,e,r){var i=e;if(r===1?i+=t.position:r===2&&y.isFile(t.node.mode)&&(i+=t.node.usedBytes),i<0)throw new y.ErrnoError(28);return i},allocate:function(t,e,r){pt.expandFileStorage(t.node,e+r),t.node.usedByt Line truncated
`},xn="\\r",Hf=At("\\r",!1),Ye=function(){return"\r"},nl="\\t",Xm=At("\\t",!1),MM=function(){return" "},GQ="\\v",OM=At("\\v",!1),fr=function(){return"\v"},Bs="\\x",jQ=At("\\x",!1),Zm=function(C){return String.fromCharCode(parseInt(C,16))},Yo="\\u",$m=At("\\u",!1),_a="\\U",et=At("\\U",!1),YQ=function(C){return String.fromCodePoint(parseInt(C,16))},eI=/^[0-9a-fA-f]/,tI=Qs([["0","9"],["a","f"],["A","f"]],!1,!1),Xa=Cfe(),sl="-",ol=At("-",!1),al="+",qo=At("+",!1),Al=".",qQ=At(".",!1),rI=function(C,Q,k){return{type:"number",value:(C==="-"?-1:1)*parseFloat(Q.join("")+"."+k.join(""))}},iI=function(C,Q){return{type:"number",value:(C==="-"?-1:1)*parseInt(Q.join(""))}},JQ=function(C){return P({type:"variable"},C)},ll=function(C){return{type:"variable",name:C}},WQ=function(C){return C},nI="*",Gf=At("*",!1),_c="/",jf=At("/",!1),sI=function(C,Q,k){return{type:Q==="*"?"multiplication":"division",right:k}},cl=function(C,Q){return Q.reduce((k,N)=>P({left:k},N),C)},oI=function(C,Q,k){return{type:Q==="+"?"addition":"subtraction",right:k}},Yf="$((",Xc=At("$((",!1),xr="))",KM=At("))",!1),Jo=function(C){return C},Zs="$(",aI=At("$(",!1),Zc=function(C){return C},x="${",U=At("${",!1),le=":-",xe=At(":-",!1),Qe=function(C,Q){return{name:C,defaultValue:Q}},Ge=":-}",ct=At(":-}",!1),sr=function(C){return{name:C,defaultValue:[]}},Wo=function(C){return{name:C}},Afe="$",lfe=At("$",!1),cfe=function(C){return e.isGlobPattern(C)},ufe=function(C){return C},UM=/^[a-zA-Z0-9_]/,HM=Qs([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),GM=function(){return dfe()},jM=/^[$@*?#a-zA-Z0-9_\-]/,YM=Qs(["$","@","*","?","#",["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),gfe=/^[(){}<>$|&; \t"']/,ffe=Qs(["(",")","{","}","<",">","$","|","&",";"," "," ",'"',"'"],!1,!1),hfe=/^[<>&; \t"']/,pfe=Qs(["<",">","&",";"," "," ",'"',"'"],!1,!1),qM=/^[ \t]/,JM=Qs([" "," "],!1,!1),w=0,Re=0,AI=[{line:1,column:1}],$s=0,zQ=[],we=0,lI;if("startRule"in e){if(!(e.startRule in i))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');n=i[e.startRule]}function dfe(){return t.substring(Re,w)}function P_e(){return qf(Re,w)}function D_e(C,Q){throw Q=Q!==void 0?Q:qf(Re,w),zM([Ife(C)],t.substring(Re,w),Q)}function R_e(C,Q){throw Q=Q!==void 0?Q:qf(Re,w),Efe(C,Q)}function At(C,Q){return{type:"literal",text:C,ignoreCase:Q}}function Qs(C,Q,k){return{type:"class",parts:C,inverted:Q,ignoreCase:k}}function Cfe(){return{type:"any"}}function mfe(){return{type:"end"}}function Ife(C){return{type:"other",description:C}}function WM(C){var Q=AI[C],k;if(Q)return Q;for(k=C-1;!AI[k];)k--;for(Q=AI[k],Q={line:Q.line,column:Q.column};k<C;)t.charCodeAt(k)===10?(Q.line++,Q.column=1):Q.column++,k++;return AI[C]=Q,Q}function qf(C,Q){var k=WM(C),N=WM(Q);return{start:{offset:C,line:k.line,column:k.column},end:{offset:Q,line:N.line,column:N.column}}}function ve(C){w<$s||(w>$s&&($s=w,zQ=[]),zQ.push(C))}function Efe(C,Q){return new _l(C,null,null,Q)}function zM(C,Q,k){return new _l(_l.buildMessage(C,Q),C,Q,k)}function VM(){var C,Q;return C=w,Q=Jf(),Q===r&&(Q=null),Q!==r&&(Re=C,Q=s(Q)),C=Q,C}function Jf(){var C,Q,k,N,Z;if(C=w,Q=VQ(),Q!==r){for(k=[],N=ke();N!==r;)k.push(N),N=ke();k!==r?(N=_M(),N!==r?(Z=yfe(),Z===r&&(Z=null),Z!==r?(Re=C,Q=o(Q,N,Z),C=Q):(w=C,C=r)):(w=C,C=r)):(w=C,C=r)}else w=C,C=r;if(C===r)if(C=w,Q=VQ(),Q!==r){for(k=[],N=ke();N!==r;)k.push(N),N=ke();k!==r?(N=_M(),N===r&&(N=null),N!==r?(Re=C,Q=a(Q,N),C=Q):(w=C,C=r)):(w=C,C=r)}else w=C,C=r;return C}function yfe(){var C,Q,k,N,Z;for(C=w,Q=[],k=ke();k!==r;)Q.push(k),k=ke();if(Q!==r)if(k=Jf(),k!==r){for(N=[],Z=ke();Z!==r;)N.push(Z),Z=ke();N!==r?(Re=C,Q=l(k),C=Q):(w=C,C=r)}else w=C,C=r;else w=C,C=r;return C}function _M(){var C;return t.charCodeAt(w)===59?(C=c,w++):(C=r,we===0&&ve(u)),C===r&&(t.charCodeAt(w)===38?(C=g,w++):(C=r,we===0&&ve(f))),C}function VQ(){var C,Q,k;return C=w,Q=XM(),Q!==r?(k=wfe(),k===r&&(k=null),k!==r?(Re=C,Q=h(Q,k),C=Q):(w=C,C=r)):(w=C,C=r),C}function wfe(){var C,Q,k,N,Z,Ie,ot;for(C=w,Q=[],k=ke();k!==r;)Q.push(k),k=ke();if(Q!==r)if(k=Bfe(),k!==r){for(N=[],Z=ke();Z!==r;)N.push(Z),Z=ke();if(N!==r)if(Z=VQ(),Z!==r){for(Ie=[],ot=ke();ot!==r;)Ie.push(ot),ot=ke();Ie!==r?(Re=C,Q=p(k,Z),C=Q):(w=C,C=r)}else w=C,C=r;else w=C,C=r}else w=C,C=r;else w=C,C=r;return C}function Bfe(){var C;return t.substr(w,2)===d?(C=d,w+=2):(C=r,we===0&&ve(m)),C===r&&(t.substr(w,2)===E?(C=E,w+=2):(C=r,we===0&&ve(B))),C}function XM(){var C,Q,k;return C=w,Q=vfe(),Q!==r?(k=Qfe(),k===r&&(k=null),k!==r?(Re=C,Q=b(Q,k),C=Q):(w=C,C=r)):(w=C,C=r),C}function Qfe(){var C,Q,k,N,Z,Ie,ot;for(C=w,Q=[],k=ke();k!==r;)Q.push(k),k=ke();if(Q!==r)if(k=bfe(),k!==r){for(N=[],Z=ke();Z!==r;)N.push(Z),Z=ke();if(N!==r)if(Z=XM(),Z!==r){for(Ie=[],ot=ke();ot!==r;)Ie.push(ot),ot=ke();Ie!==r?(Re=C,Q=R(k,Z),C=Q):(w=C,C=r)}else w=C,C=r;else w=C,C=r}else w=C,C=r;else w=C,C=r;return C}function bfe(){var C;return t.substr(w,2)===H?(C=H,w+=2):(C=r,we===0&&ve(L)),C===r&&(t.charCodeAt(w)===124?(C=K,w++):(C=r,we===0&&ve(J))),C}function cI(){var C,Q,k,N,Z,Ie;if(C=w,Q=oO(),Q!==r)if(t.charCodeAt(w)===61?(k=Line truncated
\x85\u2028\u2029`.indexOf(this.buffer.charAt(n-1))===-1;)if(n-=1,this.position-n>r/2-1){i=" ... ",n+=5;break}for(s="",o=this.position;o<this.buffer.length&&`\0\r
\x85\u2028\u2029`.indexOf(this.buffer.charAt(o))===-1;)if(o+=1,o-this.position>r/2-1){s=" ... ",o-=5;break}return a=this.buffer.slice(n,o),Tz.repeat(" ",e)+i+a+s+`
`+Tz.repeat(" ",e+this.position-n+i.length)+"^"};kP.prototype.toString=function(e){var r,i="";return this.name&&(i+='in "'+this.name+'" '),i+="at line "+(this.line+1)+", column "+(this.column+1),e||(r=this.getSnippet(),r&&(i+=`:
`+r)),i};Lz.exports=kP});var Xr=I((_ot,Oz)=>{"use strict";var Kz=ng(),vke=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Ske=["scalar","sequence","mapping"];function xke(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function kke(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(vke.indexOf(r)===-1)throw new Kz('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=xke(e.styleAliases||null),Ske.indexOf(this.kind)===-1)throw new Kz('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}Oz.exports=kke});var ec=I((Xot,Uz)=>{"use strict";var Hz=$l(),hw=ng(),Pke=Xr();function PP(t,e,r){var i=[];return t.include.forEach(function(n){r=PP(n,e,r)}),t[e].forEach(function(n){r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&i.push(o)}),r.push(n)}),r.filter(function(n,s){return i.indexOf(s)===-1})}function Dke(){var t={scalar:{},sequence:{},mapping:{},fallback:{}},e,r;function i(n){t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function sg(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&e.loadKind!=="scalar")throw new hw("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=PP(this,"implicit",[]),this.compiledExplicit=PP(this,"explicit",[]),this.compiledTypeMap=Dke(this.compiledImplicit,this.compiledExplicit)}sg.DEFAULT=null;sg.create=function(){var e,r;switch(arguments.length){case 1:e=sg.DEFAULT,r=arguments[0];break;case 2:e=arguments[0],r=arguments[1];break;default:throw new hw("Wrong number of arguments for Schema.create function")}if(e=Hz.toArray(e),r=Hz.toArray(r),!e.every(function(i){return i instanceof sg}))throw new hw("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof Pke}))throw new hw("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new sg({include:e,explicit:r})};Uz.exports=sg});var jz=I((Zot,Gz)=>{"use strict";var Rke=Xr();Gz.exports=new Rke("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}})});var qz=I(($ot,Yz)=>{"use strict";var Fke=Xr();Yz.exports=new Fke("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}})});var Wz=I((eat,Jz)=>{"use strict";var Nke=Xr();Jz.exports=new Nke("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}})});var pw=I((tat,zz)=>{"use strict";var Lke=ec();zz.exports=new Lke({explicit:[jz(),qz(),Wz()]})});var _z=I((rat,Vz)=>{"use strict";var Tke=Xr();function Mke(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Oke(){return null}function Kke(t){return t===null}Vz.exports=new Tke("tag:yaml.org,2002:null",{kind:"scalar",resolve:Mke,construct:Oke,predicate:Kke,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var Zz=I((iat,Xz)=>{"use strict";var Uke=Xr();function Hke(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Gke(t){return t==="true"||t==="True"||t==="TRUE"}function jke(t){return Object.prototype.toString.call(t)==="[object Boolean]"}Xz.exports=new Uke("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Hke,construct:Gke,predicate:jke,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})});var e4=I((nat,$z)=>{"use strict";var Yke=$l(),qke=Xr();function Jke(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Wke(t){return 48<=t&&t<=55}function zke(t){return 48<=t&&t<=57}function Vke(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!Jke(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}for(;r<e;r++)if(n=t[r],n!=="_"){if(!Wke(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(n===":")break;if(!zke(t.charCodeAt(r)))return!1;i=!0}return!i||n==="_"?!1:n!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)) Line truncated
\r`;function hPe(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=FP;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8==0}function pPe(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=FP,o=0,a=[];for(e=0;e<n;e++)e%4==0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),tc?tc.from?tc.from(a):new tc(a):a}function dPe(t){var e="",r=0,i,n,s=t.length,o=FP;for(i=0;i<s;i++)i%3==0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function CPe(t){return tc&&tc.isBuffer(t)}g4.exports=new fPe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:hPe,construct:pPe,predicate:CPe,represent:dPe})});var d4=I((uat,p4)=>{"use strict";var mPe=Xr(),IPe=Object.prototype.hasOwnProperty,EPe=Object.prototype.toString;function yPe(t){if(t===null)return!0;var e=[],r,i,n,s,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,EPe.call(n)!=="[object Object]")return!1;for(s in n)if(IPe.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function wPe(t){return t!==null?t:[]}p4.exports=new mPe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:yPe,construct:wPe})});var m4=I((gat,C4)=>{"use strict";var BPe=Xr(),QPe=Object.prototype.toString;function bPe(t){if(t===null)return!0;var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],QPe.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function vPe(t){if(t===null)return[];var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}C4.exports=new BPe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:bPe,construct:vPe})});var E4=I((fat,I4)=>{"use strict";var SPe=Xr(),xPe=Object.prototype.hasOwnProperty;function kPe(t){if(t===null)return!0;var e,r=t;for(e in r)if(xPe.call(r,e)&&r[e]!==null)return!1;return!0}function PPe(t){return t!==null?t:{}}I4.exports=new SPe("tag:yaml.org,2002:set",{kind:"mapping",resolve:kPe,construct:PPe})});var og=I((hat,y4)=>{"use strict";var DPe=ec();y4.exports=new DPe({include:[RP()],implicit:[l4(),u4()],explicit:[h4(),d4(),m4(),E4()]})});var B4=I((pat,w4)=>{"use strict";var RPe=Xr();function FPe(){return!0}function NPe(){}function LPe(){return""}function TPe(t){return typeof t=="undefined"}w4.exports=new RPe("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:FPe,construct:NPe,predicate:TPe,represent:LPe})});var b4=I((dat,Q4)=>{"use strict";var MPe=Xr();function OPe(t){if(t===null||t.length===0)return!1;var e=t,r=/\/([gim]*)$/.exec(t),i="";return!(e[0]==="/"&&(r&&(i=r[1]),i.length>3||e[e.length-i.length-1]!=="/"))}function KPe(t){var e=t,r=/\/([gim]*)$/.exec(t),i="";return e[0]==="/"&&(r&&(i=r[1]),e=e.slice(1,e.length-i.length-1)),new RegExp(e,i)}function UPe(t){var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}function HPe(t){return Object.prototype.toString.call(t)==="[object RegExp]"}Q4.exports=new MPe("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:OPe,construct:KPe,predicate:HPe,represent:UPe})});var x4=I((Cat,v4)=>{"use strict";var dw;try{S4=require,dw=S4("esprima")}catch(t){typeof window!="undefined"&&(dw=window.esprima)}var S4,GPe=Xr();function jPe(t){if(t===null)return!1;try{var e="("+t+")",r=dw.parse(e,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch(i){return!1}}function YPe(t){var e="("+t+")",r=dw.parse(e,{range:!0}),i=[],n;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){i.push(s.name)}),n=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(i,e.slice(n[0]+1,n[1]-1)):new Function(i,"return "+e.slice(n[0],n[1]))}function qPe(t){return t.toString()}function JPe(t){return Object.prototype.toString.call(t)==="[object Function]"}v4.exports=new GPe("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:jPe,construct:YPe,predicate:JPe,represent:qPe})});var Tp=I((mat,k4)=>{"use strict";var P4=ec();k4.exports=P4.DEFAULT=new P4({include:[og()],explicit:[B4(),b4(),x4()]})});var V4=I((Iat,Mp)=>{"use strict";var Ba=$l(),D4=ng(),WPe=Mz(),R4=og(),zPe=Tp(),QA=Object.prototype.hasOwnProperty,Cw=1,F4=2,N4=3,mw=4,NP=1,VPe=2,L4=3,_Pe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFF Line truncated
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function rDe(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var U4=new Array(256),H4=new Array(256);for(var Ag=0;Ag<256;Ag++)U4[Ag]=K4(Ag)?1:0,H4[Ag]=K4(Ag);function iDe(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||zPe,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function G4(t,e){return new D4(e,new WPe(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}function st(t,e){throw G4(t,e)}function Iw(t,e){t.onWarning&&t.onWarning.call(null,G4(t,e))}var j4={YAML:function(e,r,i){var n,s,o;e.version!==null&&st(e,"duplication of %YAML directive"),i.length!==1&&st(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&st(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&st(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Iw(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&st(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],T4.test(n)||st(e,"ill-formed tag handle (first argument) of the TAG directive"),QA.call(e.tagMap,n)&&st(e,'there is a previously declared suffix for "'+n+'" tag handle'),M4.test(s)||st(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=s}};function bA(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||st(t,"expected valid JSON character");else _Pe.test(a)&&st(t,"the stream contains non-printable characters");t.result+=a}}function Y4(t,e,r,i){var n,s,o,a;for(Ba.isObject(r)||st(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],QA.call(e,s)||(e[s]=r[s],i[s]=!0)}function lg(t,e,r,i,n,s,o,a){var l,c;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),l=0,c=n.length;l<c;l+=1)Array.isArray(n[l])&&st(t,"nested arrays are not supported inside keys"),typeof n=="object"&&O4(n[l])==="[object Object]"&&(n[l]="[object Object]");if(typeof n=="object"&&O4(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,c=s.length;l<c;l+=1)Y4(t,e,s[l],r);else Y4(t,e,s,r);else!t.json&&!QA.call(r,n)&&QA.call(e,n)&&(t.line=o||t.line,t.position=a||t.position,st(t,"duplicated mapping key")),e[n]=s,delete r[n];return e}function LP(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):st(t,"a line break is expected"),t.line+=1,t.lineStart=t.position}function jr(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;rc(n);)n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(wo(n))for(LP(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&Iw(t,"deficient indentation"),i}function Ew(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||yn(r)))}function TP(t,e){e===1?t.result+=" ":e>1&&(t.result+=Ba.repeat(`
`,e-1))}function nDe(t,e,r){var i,n,s,o,a,l,c,u,g=t.kind,f=t.result,h;if(h=t.input.charCodeAt(t.position),yn(h)||ag(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(n=t.input.charCodeAt(t.position+1),yn(n)||r&&ag(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;h!==0;){if(h===58){if(n=t.input.charCodeAt(t.position+1),yn(n)||r&&ag(n))break}else if(h===35){if(i=t.input.charCodeAt(t.position-1),yn(i))break}else{if(t.position===t.lineStart&&Ew(t)||r&&ag(h))break;if(wo(h))if(l=t.line,c=t.lineStart,u=t.lineIndent,jr(t,!1,-1),t.lineIndent>=e){a=!0,h=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(bA(t,s,o,!1),TP(t,t.line-l),s=o=t.position,a=!1),rc(h)||(o=t.position+1),h=t.input.charCodeAt(++t.position)}return bA(t,s,o,!1),t.result?!0:(t.kind=g,t.result=f,!1)}function sDe(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(bA(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else wo(r)?(bA(t,i,n,!0),TP(t,jr(t,!1,e)),i=n=t.position):t.position===t.lineStart&&Ew(t)?st(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);st(t,"unexpected end of the stream within a single quoted scalar")}function oDe(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return bA(t,r,t.position,!0),t.position++,!0;if(a===92){if(bA(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),wo(a))jr(t,!1,e);else if(a<256&&U4[a])t.result+=H4[a],t.position++;else if((o=eDe(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=$Pe(a))>=0?s=(s<<4)+o:st(t,"expected hexadecimal character");t.result+=rDe(s),t.position++}else st(t,"unknown escape sequence");r=i=t.position}else wo(a)?(bA(t,r,i,!0),TP(t,jr(t,!1,e)),r=i=t.position):t.position===t.lineStart&&Ew(t)?st(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}st(t,"unexpected end of the stream within a double quoted scalar")}function aDe(t,e){var r=!0,i,n=t.tag,s,o=t.anchor,a,l,c,u,g,f={},h,p,d,m;if(m=t.input.charCodeAt(t.position),m===91)l=93,g=!1,s=[];else if(m===123)l=125,g=!0,s={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),m=t.input.charCodeAt(++t.position);m!==0;){if(jr(t,!0,e),m=t.input.charCodeAt(t.position),m===l)return t.position++,t.tag=n,t.anchor=o,t.kind=g?"mapping":"sequence",t.result=s,!0;r||st(t,"missed comma between flow collection entries"),p=h=d=null,c=u=!1,m===63&&(a=t.input.charCodeAt(t.position+1),yn(a)&&(c=u=!0,t.position++,jr(t,!0,e))),i=t.line,cg(t,e,Cw,!1,!0),p=t.tag,h=t.result,jr(t,!0,e),m=t.input.charCodeAt(t.position),(u||t.line===i)&&m===58&&(c=!0,m=t.input.charCodeAt(++t.position),jr(t,!0,e),cg(t,e,Cw,!1,!0),d=t.result),g?lg(t,s,f,p,h,d):c?s.push(lg(t,null,f,p,h,d)):s.push(h),jr(t,!0,e),m=t.input.charCodeAt(t.position),m===44?(r=!0,m=t.input.charCodeAt(++t.position)):r=!1}st(t,"unexpected end of the stream within a flow collection")}function ADe(t,e){var r,i,n=NP,s=!1,o=!1,a=e,l=0,c=!1,u,g;if(g=t.input.charCodeAt(t.position),g===124)i=!1;else if(g===62)i=!0;else return!1;for(t.kind="scalar",t.result="";g!==0;)if(g=t.input.charCodeAt(++t.position),g===43||g===45)NP===n?n=g===43?L4:VPe:st(t,"repeat of a chomping mode identifier");else if((u=tDe(g))>=0)u===0?st(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?st(t,"repeat of an indentation width identifier"):(a=e+u-1,o=!0);else break;if(rc(g)){do g=t.input.charCodeAt(++t.position);while(rc(g));if(g===35)do g=t.input.charCodeAt(++t.position);while(!wo(g)&&g!==0)}for(;g!==0;){for(LP(t),t.lineIndent=0,g=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&g===32;)t.lineIndent++,g=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),wo(g)){l++;continue}if(t.lineIndent<a){n===L4?t.result+=Ba.repeat(`
`,s?1+l:l):n===NP&&s&&(t.result+=`
`);break}for(i?rc(g)?(c=!0,t.result+=Ba.repeat(`
`,s?1+l:l)):c?(c=!1,t.result+=Ba.repeat(`
`,l+1)):l===0?s&&(t.result+=" "):t.result+=Ba.repeat(`
`,l):t.result+=Ba.repeat(`
`,s?1+l:l),s=!0,o=!0,l=0,r=t.position;!wo(g)&&g!==0;)g=t.input.charCodeAt(++t.position);bA(t,r,t.position,!1)}return!0}function q4(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,l;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&!(l!==45||(o=t.input.charCodeAt(t.position+1),!yn(o)));){if(a=!0,t.position++,jr(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,cg(t,e,N4,!1,!0),s.push(t.result),jr(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)st(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function lDe(t,e,r){var i,n,s,o,a=t.tag,l=t.anchor,c={},u={},g=null,f=null,h=null,p=!1,d=!1,m;for(t.anchor!==null&&(t.anchorMap[t.anchor]=c),m=t.input.charCodeAt(t.position);m!==0;){if(i=t.input.charCodeAt(t.position+1),s=t.line,o=t.position,(m===63||m===58)&&yn(i))m===63?(p&&(lg(t,c,u,g,f,null),g=f=h=null),d=!0,p=!0,n=!0):p?(p=!1,n=!0):st(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,m=i;else if(cg(t,r,F4,!1,!0))if(t.line===s){for(m=t.input.charCodeAt(t.position);rc(m);)m=t.input.charCodeAt(++t.position);if(m===58)m=t.input.charCodeAt(++t.position),yn(m)||st(t,"a whitespace character is expected after the key-value separator within a block mapping"),p&&(lg(t,c,u,g,f,null),g=f=h=null),d=!0,p=!1,n=!1,g=t.tag,f=t.result;else if(d)st(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=a,t.anchor=l,!0}else if(d)st(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=a,t.anchor=l,!0;else break;if((t.line===s||t.lineIndent>e)&&(cg(t,e,mw,!0,n)&&(p?f=t.result:h=t.result),p||(lg(t,c,u,g,f,h,s,o),g=f=h=null),jr(t,!0,-1),m=t.input.charCodeAt(t.position)),t.lineIndent>e&&m!==0)st(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return p&&lg(t,c,u,g,f,null),d&&(t.tag=a,t.anchor=l,t.kind="mapping",t.result=c),d}function cDe(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&st(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):st(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!yn(o);)o===33&&(i?st(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),T4.test(n)||st(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),ZPe.test(s)&&st(t,"tag suffix cannot contain flow indicator characters")}return s&&!M4.test(s)&&st(t,"tag name cannot contain such characters: "+s),r?t.tag=s:QA.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:st(t,'undeclared tag handle "'+n+'"'),!0}function uDe(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&st(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!yn(r)&&!ag(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&st(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function gDe(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!yn(i)&&!ag(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&st(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),QA.call(t.anchorMap,r)||st(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],jr(t,!0,-1),!0}function cg(t,e,r,i,n){var s,o,a,l=1,c=!1,u=!1,g,f,h,p,d;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=mw===r||N4===r,i&&jr(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;cDe(t)||uDe(t);)jr(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||mw===r)&&(Cw===r||F4===r?p=e:p=e+1,d=t.position-t.lineStart,l===1?a&&(q4(t,d)||lDe(t,d,p))||aDe(t,p)?u=!0:(o&&ADe(t,p)||sDe(t,p)||oDe(t,p)?u=!0:gDe(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&st(t,"alias node should not have any properties")):nDe(t,p,Cw===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&q4(t,d))),t.tag!==null&&t.tag!=="!")if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&st(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),g=0,f=t.implicitTypes.length;g<f;g+=1)if(h=t.implicitTypes[g],h.resolve(t.result)){t.result=h.construct(t.result),t.tag=h.tag Line truncated
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new iDe(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,st(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)fDe(r);return r.documents}function W4(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=J4(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function z4(t,e){var r=J4(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new D4("expected a single document in the stream, but found more")}}function hDe(t,e,r){return typeof e=="object"&&e!==null&&typeof r=="undefined"&&(r=e,e=null),W4(t,e,Ba.extend({schema:R4},r))}function pDe(t,e){return z4(t,Ba.extend({schema:R4},e))}Mp.exports.loadAll=W4;Mp.exports.load=z4;Mp.exports.safeLoadAll=hDe;Mp.exports.safeLoad=pDe});var m5=I((Eat,MP)=>{"use strict";var Op=$l(),Kp=ng(),dDe=Tp(),CDe=og(),_4=Object.prototype.toString,X4=Object.prototype.hasOwnProperty,mDe=9,Up=10,IDe=13,EDe=32,yDe=33,wDe=34,Z4=35,BDe=37,QDe=38,bDe=39,vDe=42,$4=44,SDe=45,e5=58,xDe=61,kDe=62,PDe=63,DDe=64,t5=91,r5=93,RDe=96,i5=123,FDe=124,n5=125,Ri={};Ri[0]="\\0";Ri[7]="\\a";Ri[8]="\\b";Ri[9]="\\t";Ri[10]="\\n";Ri[11]="\\v";Ri[12]="\\f";Ri[13]="\\r";Ri[27]="\\e";Ri[34]='\\"';Ri[92]="\\\\";Ri[133]="\\N";Ri[160]="\\_";Ri[8232]="\\L";Ri[8233]="\\P";var NDe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function LDe(t,e){var r,i,n,s,o,a,l;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=t.compiledTypeMap.fallback[o],l&&X4.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}function s5(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new Kp("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Op.repeat("0",i-e.length)+e}function TDe(t){this.schema=t.schema||dDe,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Op.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=LDe(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function o5(t,e){for(var r=Op.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
`,i),n===-1?(o=t.slice(i),i=a):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
`&&(s+=r),s+=o;return s}function OP(t,e){return`
`+Op.repeat(" ",t.indent*e)}function MDe(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function KP(t){return t===EDe||t===mDe}function ug(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==65279||65536<=t&&t<=1114111}function ODe(t){return ug(t)&&!KP(t)&&t!==65279&&t!==IDe&&t!==Up}function a5(t,e){return ug(t)&&t!==65279&&t!==$4&&t!==t5&&t!==r5&&t!==i5&&t!==n5&&t!==e5&&(t!==Z4||e&&ODe(e))}function KDe(t){return ug(t)&&t!==65279&&!KP(t)&&t!==SDe&&t!==PDe&&t!==e5&&t!==$4&&t!==t5&&t!==r5&&t!==i5&&t!==n5&&t!==Z4&&t!==QDe&&t!==vDe&&t!==yDe&&t!==FDe&&t!==xDe&&t!==kDe&&t!==bDe&&t!==wDe&&t!==BDe&&t!==DDe&&t!==RDe}function A5(t){var e=/^\n* /;return e.test(t)}var l5=1,c5=2,u5=3,g5=4,yw=5;function UDe(t,e,r,i,n){var s,o,a,l=!1,c=!1,u=i!==-1,g=-1,f=KDe(t.charCodeAt(0))&&!KP(t.charCodeAt(t.length-1));if(e)for(s=0;s<t.length;s++){if(o=t.charCodeAt(s),!ug(o))return yw;a=s>0?t.charCodeAt(s-1):null,f=f&&a5(o,a)}else{for(s=0;s<t.length;s++){if(o=t.charCodeAt(s),o===Up)l=!0,u&&(c=c||s-g-1>i&&t[g+1]!==" ",g=s);else if(!ug(o))return yw;a=s>0?t.charCodeAt(s-1):null,f=f&&a5(o,a)}c=c||u&&s-g-1>i&&t[g+1]!==" "}return!l&&!c?f&&!n(t)?l5:c5:r>9&&A5(t)?yw:c?g5:u5}function jDe(t,e,r,i){t.dump=function(){if(e.length===0)return"''";if(!t.noCompatMode&&NDe.indexOf(e)!==-1)return"'"+e+"'";var n=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-n),o=i||t.flowLevel>-1&&r>=t.flowLevel;function a(l){return MDe(t,l)}switch(UDe(e,o,t.indent,s,a)){case l5:return e;case c5:return"'"+e.replace(/'/g,"''")+"'";case u5:return"|"+f5(e,t.indent)+h5(o5(e,n));case g5:return">"+f5(e,t.indent)+h5(o5(HDe(e,s),n));case yw:return'"'+GDe(e,s)+'"';default:throw new Kp("impossible error: invalid scalar style")}}()}function f5(t,e){var r=A5(t)?String(e):"",i=t[t.length-1]===`
`,n=i&&(t[t.length-2]===`
`||t===`
`),s=n?"+":i?"":"-";return r+s+`
`}function h5(t){return t[t.length-1]===`
`?t.slice(0,-1):t}function HDe(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
`);return c=c!==-1?c:t.length,r.lastIndex=c,p5(t.slice(0,c),e)}(),n=t[0]===`
`||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],l=o[2];s=l[0]===" ",i+=a+(!n&&!s&&l!==""?`
`:"")+p5(l,e),n=s}return i}function p5(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,l="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,l+=`
`+t.slice(n,s),n=s+1),o=a;return l+=`
`,t.length-n>e&&o>n?l+=t.slice(n,o)+`
`+t.slice(o+1):l+=t.slice(n),l.slice(1)}function GDe(t){for(var e="",r,i,n,s=0;s<t.length;s++){if(r=t.charCodeAt(s),r>=55296&&r<=56319&&(i=t.charCodeAt(s+1),i>=56320&&i<=57343)){e+=s5((r-55296)*1024+i-56320+65536),s++;continue}n=Ri[r],e+=!n&&ug(r)?t[s]:n||s5(r)}return e}function YDe(t,e,r){var i="",n=t.tag,s,o;for(s=0,o=r.length;s<o;s+=1)ic(t,e,r[s],!1,!1)&&(s!==0&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function qDe(t,e,r,i){var n="",s=t.tag,o,a;for(o=0,a=r.length;o<a;o+=1)ic(t,e+1,r[o],!0,!0)&&((!i||o!==0)&&(n+=OP(t,e)),t.dump&&Up===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function JDe(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,l,c,u;for(o=0,a=s.length;o<a;o+=1)u="",o!==0&&(u+=", "),t.condenseFlow&&(u+='"'),l=s[o],c=r[l],!!ic(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),!!ic(t,e,c,!1,!1)&&(u+=t.dump,i+=u));t.tag=n,t.dump="{"+i+"}"}function WDe(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,l,c,u,g,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new Kp("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)f="",(!i||a!==0)&&(f+=OP(t,e)),c=o[a],u=r[c],!!ic(t,e+1,c,!0,!0,!0)&&(g=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,g&&(t.dump&&Up===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,g&&(f+=OP(t,e)),!!ic(t,e+1,u,!0,g)&&(t.dump&&Up===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function d5(t,e,r){var i,n,s,o,a,l;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(t.tag=r?a.tag:"?",a.represent){if(l=t.styleMap[a.tag]||a.defaultStyle,_4.call(a.represent)==="[object Function]")i=a.represent(e,l);else if(X4.call(a.represent,l))i=a.represent[l](e,l);else throw new Kp("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function ic(t,e,r,i,n,s){t.tag=null,t.dump=r,d5(t,r,!1)||d5(t,r,!0);var o=_4.call(t.dump);i&&(i=t.flowLevel<0||t.flowLevel>e);var a=o==="[object Object]"||o==="[object Array]",l,c;if(a&&(l=t.duplicates.indexOf(r),c=l!==-1),(t.tag!==null&&t.tag!=="?"||c||t.indent!==2&&e>0)&&(n=!1),c&&t.usedDuplicates[l])t.dump="*ref_"+l;else{if(a&&c&&!t.usedDuplicates[l]&&(t.usedDuplicates[l]=!0),o==="[object Object]")i&&Object.keys(t.dump).length!==0?(WDe(t,e,t.dump,n),c&&(t.dump="&ref_"+l+t.dump)):(JDe(t,e,t.dump),c&&(t.dump="&ref_"+l+" "+t.dump));else if(o==="[object Array]"){var u=t.noArrayIndent&&e>0?e-1:e;i&&t.dump.length!==0?(qDe(t,u,t.dump,n),c&&(t.dump="&ref_"+l+t.dump)):(YDe(t,u,t.dump),c&&(t.dump="&ref_"+l+" "+t.dump))}else if(o==="[object String]")t.tag!=="?"&&jDe(t,t.dump,e,s);else{if(t.skipInvalid)return!1;throw new Kp("unacceptable kind of an object to dump "+o)}t.tag!==null&&t.tag!=="?"&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}function zDe(t,e){var r=[],i=[],n,s;for(UP(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function UP(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)UP(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)UP(t[i[n]],e,r)}function C5(t,e){e=e||{};var r=new TDe(e);return r.noRefs||zDe(t,r),ic(r,0,t,!0,!0)?r.dump+`
`:""}function VDe(t,e){return C5(t,Op.extend({schema:CDe},e))}MP.exports.dump=C5;MP.exports.safeDump=VDe});var E5=I((yat,Qr)=>{"use strict";var ww=V4(),I5=m5();function Bw(t){return function(){throw new Error("Function "+t+" is deprecated and cannot be used.")}}Qr.exports.Type=Xr();Qr.exports.Schema=ec();Qr.exports.FAILSAFE_SCHEMA=pw();Qr.exports.JSON_SCHEMA=DP();Qr.exports.CORE_SCHEMA=RP();Qr.exports.DEFAULT_SAFE_SCHEMA=og();Qr.exports.DEFAULT_FULL_SCHEMA=Tp();Qr.exports.load=ww.load;Qr.exports.loadAll=ww.loadAll;Qr.exports.safeLoad=ww.safeLoad;Qr.exports.safeLoadAll=ww.safeLoadAll;Qr.exports.dump=I5.dump;Qr.exports.safeDump=I5.safeDump;Qr.exports.YAMLException=ng();Qr.exports.MINIMAL_SCHEMA=pw();Qr.exports.SAFE_SCHEMA=og();Qr.exports.DEFAULT_SCHEMA=Tp();Qr.exports.scan=Bw("scan");Qr.exports.parse=Bw("parse");Qr.exports.compose=Bw("compose");Qr.exports.addConstructor=Bw("addConstructor")});var w5=I((wat,y5)=>{"use strict";var _De=E5();y5.exports=_De});var Q5=I((Bat,B5)=>{"use strict";function XDe(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}function nc(t,e,r,i){this.message=t,this.expected=e,this.found=r,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,nc)}XDe(nc,Error);nc.buildMessage=function(t,e){var r={literal:function(c){return'"'+n(c.text)+'"'},class:function(c){var u="",g;for(g=0;g<c.parts.length;g++)u+=c.parts[g]instanceof Array?s(c.parts[g][0])+"-"+s(c.parts[g][1]):s(c.parts[g]);return"["+(c.inverted?"^":"")+u+"]"},any:function(c){return"any character"},end:function(c){return"end of input"},other:function(c){return c.description}};function i(c){return c.charCodeAt(0).toString(16).toUpperCase()}function n(c){return c.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+i(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+i(u)})}function s(c){return c.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+i(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+i(u)})}function o(c){return r[c.type](c)}function a(c){var u=new Array(c.length),g,f;for(g=0;g<c.length;g++)u[g]=o(c[g]);if(u.sort(),u.length>0){for(g=1,f=1;g<u.length;g++)u[g-1]!==u[g]&&(u[f]=u[g],f++);u.length=f}switch(u.length){case 1:return u[0];case 2:return u[0]+" or "+u[1];default:return u.slice(0,-1).join(", ")+", or "+u[u.length-1]}}function l(c){return c?'"'+n(c)+'"':"end of input"}return"Expected "+a(t)+" but "+l(e)+" found."};function ZDe(t,e){e=e!==void 0?e:{};var r={},i={Start:tI},n=tI,s=function(x){return[].concat(...x)},o="-",a=fr("-",!1),l=function(x){return x},c=function(x){return Object.assign({},...x)},u="#",g=fr("#",!1),f=jQ(),h=function(){return{}},p=":",d=fr(":",!1),m=function(x,U){return{[x]:U}},E=",",B=fr(",",!1),b=function(x,U){return U},R=function(x,U,le){return Object.assign({},...[x].concat(U).map(xe=>({[xe]:le})))},H=function(x){return x},L=function(x){return x},K=Yo("correct indentation"),J=" ",ne=fr(" ",!1),q=function(x){return x.length===Zc*aI},A=function(x){return x.length===(Zc+1)*aI},V=function(){return Zc++,!0},W=function(){return Zc--,!0},X=function(){return Xm()},F=Yo("pseudostring"),D=/^[^\r\n\t ?:,\][{}#&*!|>'"%@`\-]/,he=Bs(["\r",`
`," "," ","?",":",",","]","[","{","}","#","&","*","!","|",">","'",'"',"%","@","`","-"],!0,!1),pe=/^[^\r\n\t ,\][{}:#"']/,Ne=Bs(["\r",`
`," "," ",",","]","[","{","}",":","#",'"',"'"],!0,!1),Pe=function(){return Xm().replace(/^ *| *$/g,"")},qe="--",re=fr("--",!1),se=/^[a-zA-Z\/0-9]/,be=Bs([["a","z"],["A","Z"],"/",["0","9"]],!1,!1),ae=/^[^\r\n\t :,]/,Ae=Bs(["\r",`
`," "," ",":",","],!0,!1),De="null",$=fr("null",!1),G=function(){return null},Ce="true",ee=fr("true",!1),Ue=function(){return!0},Oe="false",vt=fr("false",!1),dt=function(){return!1},ri=Yo("string"),ii='"',an=fr('"',!1),yr=function(){return""},Ki=function(x){return x},Qi=function(x){return x.join("")},Go=/^[^"\\\0-\x1F\x7F]/,wr=Bs(['"',"\\",["\0",""],"\x7F"],!0,!1),Ui='\\"',ws=fr('\\"',!1),Tf=function(){return'"'},Mf="\\\\",Rm=fr("\\\\",!1),Fm=function(){return"\\"},Nm="\\/",DQ=fr("\\/",!1),RQ=function(){return"/"},Of="\\b",FQ=fr("\\b",!1),NQ=function(){return"\b"},Lm="\\f",LQ=fr("\\f",!1),Va=function(){return"\f"},jo="\\n",Tm=fr("\\n",!1),Mm=function(){return`
`},te="\\r",Om=fr("\\r",!1),Km=function(){return"\r"},il="\\t",Um=fr("\\t",!1),Hm=function(){return" "},Kf="\\u",Gm=fr("\\u",!1),jm=function(x,U,le,xe){return String.fromCharCode(parseInt(`0x${x}${U}${le}${xe}`))},TQ=/^[0-9a-fA-F]/,MQ=Bs([["0","9"],["a","f"],["A","F"]],!1,!1),Ym=Yo("blank space"),qm=/^[ \t]/,Jm=Bs([" "," "],!1,!1),Wm=Yo("white space"),zm=/^[ \t\n\r]/,Vm=Bs([" "," ",`
`,"\r"],!1,!1),Uf=`\r
`,OQ=fr(`\r
`,!1),KQ=`
`,_m=fr(`
`,!1),UQ="\r",HQ=fr("\r",!1),O=0,ht=0,Vc=[{line:1,column:1}],xn=0,Hf=[],Ye=0,nl;if("startRule"in e){if(!(e.startRule in i))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');n=i[e.startRule]}function Xm(){return t.substring(ht,O)}function MM(){return _a(ht,O)}function GQ(x,U){throw U=U!==void 0?U:_a(ht,O),eI([Yo(x)],t.substring(ht,O),U)}function OM(x,U){throw U=U!==void 0?U:_a(ht,O),YQ(x,U)}function fr(x,U){return{type:"literal",text:x,ignoreCase:U}}function Bs(x,U,le){return{type:"class",parts:x,inverted:U,ignoreCase:le}}function jQ(){return{type:"any"}}function Zm(){return{type:"end"}}function Yo(x){return{type:"other",description:x}}function $m(x){var U=Vc[x],le;if(U)return U;for(le=x-1;!Vc[le];)le--;for(U=Vc[le],U={line:U.line,column:U.column};le<x;)t.charCodeAt(le)===10?(U.line++,U.column=1):U.column++,le++;return Vc[x]=U,U}function _a(x,U){var le=$m(x),xe=$m(U);return{start:{offset:x,line:le.line,column:le.column},end:{offset:U,line:xe.line,column:xe.column}}}function et(x){O<xn||(O>xn&&(xn=O,Hf=[]),Hf.push(x))}function YQ(x,U){return new nc(x,null,null,U)}function eI(x,U,le){return new nc(nc.buildMessage(x,U),x,U,le)}function tI(){var x;return x=ol(),x}function Xa(){var x,U,le;for(x=O,U=[],le=sl();le!==r;)U.push(le),le=sl();return U!==r&&(ht=x,U=s(U)),x=U,x}function sl(){var x,U,le,xe,Qe;return x=O,U=Al(),U!==r?(t.charCodeAt(O)===45?(le=o,O++):(le=r,Ye===0&&et(a)),le!==r?(xe=xr(),xe!==r?(Qe=qo(),Qe!==r?(ht=x,U=l(Qe),x=U):(O=x,x=r)):(O=x,x=r)):(O=x,x=r)):(O=x,x=r),x}function ol(){var x,U,le;for(x=O,U=[],le=al();le!==r;)U.push(le),le=al();return U!==r&&(ht=x,U=c(U)),x=U,x}function al(){var x,U,le,xe,Qe,Ge,ct,sr,Wo;if(x=O,U=xr(),U===r&&(U=null),U!==r){if(le=O,t.charCodeAt(O)===35?(xe=u,O++):(xe=r,Ye===0&&et(g)),xe!==r){if(Qe=[],Ge=O,ct=O,Ye++,sr=Zs(),Ye--,sr===r?ct=void 0:(O=ct,ct=r),ct!==r?(t.length>O?(sr=t.charAt(O),O++):(sr=r,Ye===0&&et(f)),sr!==r?(ct=[ct,sr],Ge=ct):(O=Ge,Ge=r)):(O=Ge,Ge=r),Ge!==r)for(;Ge!==r;)Qe.push(Ge),Ge=O,ct=O,Ye++,sr=Zs(),Ye--,sr===r?ct=void 0:(O=ct,ct=r),ct!==r?(t.length>O?(sr=t.charAt(O),O++):(sr=r,Ye===0&&et(f)),sr!==r?(ct=[ct,sr],Ge=ct):(O=Ge,Ge=r)):(O=Ge,Ge=r);else Qe=r;Qe!==r?(xe=[xe,Qe],le=xe):(O=le,le=r)}else O=le,le=r;if(le===r&&(le=null),le!==r){if(xe=[],Qe=Jo(),Qe!==r)for(;Qe!==r;)xe.push(Qe),Qe=Jo();else xe=r;xe!==r?(ht=x,U=h(),x=U):(O=x,x=r)}else O=x,x=r}else O=x,x=r;if(x===r&&(x=O,U=Al(),U!==r?(le=JQ(),le!==r?(xe=xr(),xe===r&&(xe=null),xe!==r?(t.charCodeAt(O)===58?(Qe=p,O++):(Qe=r,Ye===0&&et(d)),Qe!==r?(Ge=xr(),Ge===r&&(Ge=null),Ge!==r?(ct=qo(),ct!==r?(ht=x,U=m(le,ct),x=U):(O=x,x=r)):(O=x,x=r)):(O=x,x=r)):(O=x,x=r)):(O=x,x=r)):(O=x,x=r),x===r&&(x=O,U=Al(),U!==r?(le=ll(),le!==r?(xe=xr(),xe===r&&(xe=null),xe!==r?(t.charCodeAt(O)===58?(Qe=p,O++):(Qe=r,Ye===0&&et(d)),Qe!==r?(Ge=xr(),Ge===r&&(Ge=null),Ge!==r?(ct=qo(),ct!==r?(ht=x,U=m(le,ct),x=U):(O=x,x=r)):(O=x,x=r)):(O=x,x=r)):(O=x,x=r)):(O=x,x=r)):(O=x,x=r),x===r))){if(x=O,U=Al(),U!==r)if(le=ll(),le!==r)if(xe=xr(),xe!==r)if(Qe=nI(),Qe!==r){if(Ge=[],ct=Jo(),ct!==r)for(;ct!==r;)Ge.push(ct),ct=Jo();else Ge=r;Ge!==r?(ht=x,U=m(le,Qe),x=U):(O=x,x=r)}else O=x,x=r;else O=x,x=r;else O=x,x=r;else O=x,x=r;if(x===r)if(x=O,U=Al(),U!==r)if(le=ll(),le!==r){if(xe=[],Qe=O,Ge=xr(),Ge===r&&(Ge=null),Ge!==r?(t.charCodeAt(O)===44?(ct=E,O++):(ct=r,Ye===0&&et(B)),ct!==r?(sr=xr(),sr===r&&(sr=null),sr!==r?(Wo=ll(),Wo!==r?(ht=Qe,Ge=b(le,Wo),Qe=Ge):(O=Qe,Qe=r)):(O=Qe,Qe=r)):(O=Qe,Qe=r)):(O=Qe,Qe=r),Qe!==r)for(;Qe!==r;)xe.push(Qe),Qe=O,Ge=xr(),Ge===r&&(Ge=null),Ge!==r?(t.charCodeAt(O)===44?(ct=E,O++):(ct=r,Ye===0&&et(B)),ct!==r?(sr=xr(),sr===r&&(sr=null),sr!==r?(Wo=ll(),Wo!==r?(ht=Qe,Ge=b(le,Wo),Qe=Ge):(O=Qe,Qe=r)):(O=Qe,Qe=r)):(O=Qe,Qe=r)):(O=Qe,Qe=r);else xe=r;xe!==r?(Qe=xr(),Qe===r&&(Qe=null),Qe!==r?(t.charCodeAt(O)===58?(Ge=p,O++):(Ge=r,Ye===0&&et(d)),Ge!==r?(ct=xr(),ct===r&&(ct=null),ct!==r?(sr=qo(),sr!==r?(ht=x,U=R(le,xe,sr),x=U):(O=x,x=r)):(O=x,x=r)):(O=x,x=r)):(O=x,x=r)):(O=x,x=r)}else O=x,x=r;else O=x,x=r}return x}function qo(){var x,U,le,xe,Qe,Ge,ct;if(x=O,U=O,Ye++,le=O,xe=Zs(),xe!==r?(Qe=qQ(),Qe!==r?(t.charCodeAt(O)===45?(Ge=o,O++):(Ge=r,Ye===0&&et(a)),Ge!==r?(ct=xr(),ct!==r?(xe=[xe,Qe,Ge,ct],le=xe):(O=le,le=r)):(O=le,le=r)):(O=le,le=r)):(O=le,le=r),Ye--,le!==r?(O=U,U=void 0):U=r,U!==r?(le=Jo(),le!==r?(xe=rI(),xe!==r?(Qe=Xa(),Qe!==r?(Ge=iI(),Ge!==r?(ht=x,U=H(Qe),x=U):(O=x,x=r)):(O=x,x=r)):(O=x,x=r)):(O=x,x=r)):(O=x,x=r),x===r&&(x=O,U=Zs(),U!==r?(le=rI(),le!==r?(xe=ol(),xe!==r?(Qe=iI(),Qe!==r?(ht=x,U=H(xe),x=U):(O=x,x=r)):(O=x,x=r)):(O=x,x=r)):(O=x,x=r),x===r))if(x=O,U=WQ(),U!==r){if(le=[],xe=Jo(),xe!==r)for(;xe!==r;)le.push(xe),xe=Jo();else le=r;le!==r?(ht=x,U=L(U),x=U):(O=x,x=r)}else O=x,x=r;return x}function Al(){var x,U,le;for(Ye++,x=O,U=[],t.charCodeAt(O)===32?(le=J,O++):(le=r,Ye===0&&et(ne));le!==r;)U.push(le),t.charCodeAt(O)===32?(le=J,O++):(le=r,Ye===0&&et(ne));return U!==r?(ht=O,le=q(U),le?le=void 0:le=r,le!==r?(U=[U,le],x=U):(O=x,x=r)):(O=x,x=r),Ye--,x===r&&(U=r,Ye===0&&et(K)),x}function qQ(){var x,U,le;forLine truncated
`,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};Ww.parse=(t,e,r)=>new Ww(dNe(CNe(t),e),r);var dNe=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,CNe=t=>t.replace(/\n$/,"").split(`
`).reduce(mNe,Object.create(null)),mNe=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.substr((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};q9.exports=Ww});var Vw=I((ylt,J9)=>{"use strict";J9.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var yD=I((wlt,W9)=>{"use strict";var _w=["|","<",">","?",":"],ED=_w.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),INe=new Map(_w.map((t,e)=>[t,ED[e]])),ENe=new Map(ED.map((t,e)=>[t,_w[e]]));W9.exports={encode:t=>_w.reduce((e,r)=>e.split(r).join(INe.get(r)),t),decode:t=>ED.reduce((e,r)=>e.split(r).join(ENe.get(r)),t)}});var V9=I((Blt,z9)=>{"use strict";z9.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&~18),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var xD=I((xlt,_9)=>{"use strict";var X9=hg(),Z9=zw(),$9=Cg(),Qlt=id(),bo=require("fs"),mg=require("path"),blt=rd(),yNe=16*1024*1024,e7=Symbol("process"),t7=Symbol("file"),r7=Symbol("directory"),wD=Symbol("symlink"),i7=Symbol("hardlink"),nd=Symbol("header"),Xw=Symbol("read"),BD=Symbol("lstat"),Zw=Symbol("onlstat"),QD=Symbol("onread"),bD=Symbol("onreadlink"),vD=Symbol("openfile"),SD=Symbol("onopenfile"),pc=Symbol("close"),$w=Symbol("mode"),n7=Vw(),wNe=yD(),s7=V9(),eB=n7(class extends X9{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=e,this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid(),this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||yNe,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=r.cwd||process.cwd(),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths&&mg.win32.isAbsolute(e)){let n=mg.win32.parse(e);this.path=e.substr(n.root.length),i=n.root}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=wNe.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=r.absolute||mg.resolve(this.cwd,e),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[Zw](this.statCache.get(this.absolute)):this[BD]()}[BD](){bo.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Zw](r)})}[Zw](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=BNe(e),this.emit("stat",e),this[e7]()}[e7](){switch(this.type){case"File":return this[t7]();case"Directory":return this[r7]();case"SymbolicLink":return this[wD]();default:return this.end()}}[$w](e){return s7(e,this.type==="Directory",this.portable)}[nd](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new $9({path:this.path,linkpath:this.linkpath,mode:this[$w](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&this.write(new Z9({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this.path,linkpath:this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),this.write(this.header.block)}[r7](){this.path.substr(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[nd](),this.end()}[wD](){bo.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[bD](r)})}[bD](e){this.linkpath=e.replace(/\\/g,"/"),this[nd](),this.end()}[i7](e){this.type="Link",this.linkpath=mg.relative(this.cwd,e).replace(/\\/g,"/"),this.stat.size=0,this[nd](),this.end()}[t7](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[i7](r)}this.linkCache.set(e,this.absolute)}if(this[nd](),this.stat.size===0)return this.end();this[vD]()}[vD](){bo.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[SD](r)})}[SD](e){let r=512*Math.ceil(this.stat.size/512),i=Math.min(r,th Line truncated
`}),a},i})});var x_=I((Uct,bR)=>{"use strict";var pTe=t=>{let e=!1,r=!1,i=!1;for(let n=0;n<t.length;n++){let s=t[n];e&&/[a-zA-Z]/.test(s)&&s.toUpperCase()===s?(t=t.slice(0,n)+"-"+t.slice(n),e=!1,i=r,r=!0,n++):r&&i&&/[a-zA-Z]/.test(s)&&s.toLowerCase()===s?(t=t.slice(0,n-1)+"-"+t.slice(n-1),i=r,r=!1,e=!0):(e=s.toLowerCase()===s&&s.toUpperCase()!==s,i=r,r=s.toUpperCase()===s&&s.toLowerCase()!==s)}return t},S_=(t,e)=>{if(!(typeof t=="string"||Array.isArray(t)))throw new TypeError("Expected the input to be `string | string[]`");e=Object.assign({pascalCase:!1},e);let r=n=>e.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n;return Array.isArray(t)?t=t.map(n=>n.trim()).filter(n=>n.length).join("-"):t=t.trim(),t.length===0?"":t.length===1?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=pTe(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(n,s)=>s.toUpperCase()).replace(/\d+(\w|$)/g,n=>n.toUpperCase()),r(t))};bR.exports=S_;bR.exports.default=S_});var Na=I(TR=>{"use strict";Object.defineProperty(TR,"__esModule",{value:!0});TR.default=L_;function L_(){}L_.prototype={diff:function(e,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=i.callback;typeof i=="function"&&(n=i,i={}),this.options=i;var s=this;function o(d){return n?(setTimeout(function(){n(void 0,d)},0),!0):d}e=this.castInput(e),r=this.castInput(r),e=this.removeEmpty(this.tokenize(e)),r=this.removeEmpty(this.tokenize(r));var a=r.length,l=e.length,c=1,u=a+l,g=[{newPos:-1,components:[]}],f=this.extractCommon(g[0],r,e,0);if(g[0].newPos+1>=a&&f+1>=l)return o([{value:this.join(r),count:r.length}]);function h(){for(var d=-1*c;d<=c;d+=2){var m=void 0,E=g[d-1],B=g[d+1],b=(B?B.newPos:0)-d;E&&(g[d-1]=void 0);var R=E&&E.newPos+1<a,H=B&&0<=b&&b<l;if(!R&&!H){g[d]=void 0;continue}if(!R||H&&E.newPos<B.newPos?(m=wTe(B),s.pushComponent(m.components,void 0,!0)):(m=E,m.newPos++,s.pushComponent(m.components,!0,void 0)),b=s.extractCommon(m,r,e,d),m.newPos+1>=a&&b+1>=l)return o(yTe(s,m.components,r,e,s.useLongestToken));g[d]=m}c++}if(n)(function d(){setTimeout(function(){if(c>u)return n();h()||d()},0)})();else for(;c<=u;){var p=h();if(p)return p}},pushComponent:function(e,r,i){var n=e[e.length-1];n&&n.added===r&&n.removed===i?e[e.length-1]={count:n.count+1,added:r,removed:i}:e.push({count:1,added:r,removed:i})},extractCommon:function(e,r,i,n){for(var s=r.length,o=i.length,a=e.newPos,l=a-n,c=0;a+1<s&&l+1<o&&this.equals(r[a+1],i[l+1]);)a++,l++,c++;return c&&e.components.push({count:c}),e.newPos=a,l},equals:function(e,r){return this.options.comparator?this.options.comparator(e,r):e===r||this.options.ignoreCase&&e.toLowerCase()===r.toLowerCase()},removeEmpty:function(e){for(var r=[],i=0;i<e.length;i++)e[i]&&r.push(e[i]);return r},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function yTe(t,e,r,i,n){for(var s=0,o=e.length,a=0,l=0;s<o;s++){var c=e[s];if(c.removed){if(c.value=t.join(i.slice(l,l+c.count)),l+=c.count,s&&e[s-1].added){var g=e[s-1];e[s-1]=e[s],e[s]=g}}else{if(!c.added&&n){var u=r.slice(a,a+c.count);u=u.map(function(h,p){var d=i[l+p];return d.length>h.length?d:h}),c.value=t.join(u)}else c.value=t.join(r.slice(a,a+c.count));a+=c.count,c.added||(l+=c.count)}}var f=e[o-1];return o>1&&typeof f.value=="string"&&(f.added||f.removed)&&t.equals("",f.value)&&(e[o-2].value+=f.value,e.pop()),e}function wTe(t){return{newPos:t.newPos,components:t.components.slice(0)}}});var M_=I(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.diffChars=BTe;Cd.characterDiff=void 0;var bTe=QTe(Na());function QTe(t){return t&&t.__esModule?t:{default:t}}var T_=new bTe.default;Cd.characterDiff=T_;function BTe(t,e,r){return T_.diff(t,e,r)}});var OR=I(MR=>{"use strict";Object.defineProperty(MR,"__esModule",{value:!0});MR.generateOptions=vTe;function vTe(t,e){if(typeof t=="function")e.callback=t;else if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}});var U_=I(Ng=>{"use strict";Object.defineProperty(Ng,"__esModule",{value:!0});Ng.diffWords=STe;Ng.diffWordsWithSpace=xTe;Ng.wordDiff=void 0;var PTe=kTe(Na()),DTe=OR();function kTe(t){return t&&t.__esModule?t:{default:t}}var O_=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,K_=/\S/,md=new PTe.default;Ng.wordDiff=md;md.equals=function(t,e){return this.options.ignoreCase&&(t=t.toLowerCase(),e=e.toLowerCase()),t===e||this.options.ignoreWhitespace&&!K_.test(t)&&!K_.test(e)};md.tokenize=function(t){for(var e=t.split(/(\s+|[()[\]{}'"]|\b)/),r=0;r<e.length-1;r++)!e[r+1]&&e[r+2]&&O_.test(e[r])&&O_.test(e[r+2])&&(e[r]+=e[r+2],e.splice(r+1,2),r--);return e};function STe(t,e,r){return r=(0,DTe.generateOptions)(r,{ignoreWhitespace:!0}),md.diff(t,e,r)}function xTe(t,e,r){return md.diff(t,e,r)}});var KB=I(Lg=>{"use strict";Object.defineProperty(Lg,"__esModule",{value:!0});Lg.diffLines=RTe;Lg.diffTrimmedLines=FTe;Lg.lineDiff=void 0;var LTe=NTe(Na()),TTe=OR();function NTe(t){return t&&t.__esModule?t:{default Line truncated
`),d==="+"?h++:d==="-"?p++:d===" "&&(h++,p++);else break}if(!h&&f.newLines===1&&(f.newLines=0),!p&&f.oldLines===1&&(f.oldLines=0),e.strict){if(h!==f.newLines)throw new Error("Added line count did not match for hunk at line "+(c+1));if(p!==f.oldLines)throw new Error("Removed line count did not match for hunk at line "+(c+1))}return f}for(;s<r.length;)o();return n}});var J_=I(GR=>{"use strict";Object.defineProperty(GR,"__esModule",{value:!0});GR.default=XTe;function XTe(t,e,r){var i=!0,n=!1,s=!1,o=1;return function a(){if(i&&!s){if(n?o++:i=!1,t+o<=r)return o;s=!0}if(!n)return s||(i=!0),e<=t-o?-o++:(n=!0,a())}}});var V_=I(jB=>{"use strict";Object.defineProperty(jB,"__esModule",{value:!0});jB.applyPatch=W_;jB.applyPatches=ZTe;var z_=GB(),eMe=$Te(J_());function $Te(t){return t&&t.__esModule?t:{default:t}}function W_(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string"&&(e=(0,z_.parsePatch)(e)),Array.isArray(e)){if(e.length>1)throw new Error("applyPatch only works with a single input.");e=e[0]}var i=t.split(/\r\n|[\n\v\f\r\x85]/),n=t.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=e.hunks,o=r.compareLine||function(F,D,he,pe){return D===pe},a=0,l=r.fuzzFactor||0,c=0,u=0,g,f;function h(F,D){for(var he=0;he<F.lines.length;he++){var pe=F.lines[he],Ne=pe.length>0?pe[0]:" ",Pe=pe.length>0?pe.substr(1):pe;if(Ne===" "||Ne==="-"){if(!o(D+1,i[D],Ne,Pe)&&(a++,a>l))return!1;D++}}return!0}for(var p=0;p<s.length;p++){for(var d=s[p],m=i.length-d.oldLines,E=0,B=u+d.oldStart-1,b=(0,eMe.default)(B,c,m);E!==void 0;E=b())if(h(d,B+E)){d.offset=u+=E;break}if(E===void 0)return!1;c=d.offset+d.oldStart+d.oldLines}for(var R=0,H=0;H<s.length;H++){var L=s[H],K=L.oldStart+L.offset+R-1;R+=L.newLines-L.oldLines,K<0&&(K=0);for(var J=0;J<L.lines.length;J++){var ne=L.lines[J],q=ne.length>0?ne[0]:" ",A=ne.length>0?ne.substr(1):ne,V=L.linedelimiters[J];if(q===" ")K++;else if(q==="-")i.splice(K,1),n.splice(K,1);else if(q==="+")i.splice(K,0,A),n.splice(K,0,V),K++;else if(q==="\\"){var W=L.lines[J-1]?L.lines[J-1][0]:null;W==="+"?g=!0:W==="-"&&(f=!0)}}}if(g)for(;!i[i.length-1];)i.pop(),n.pop();else f&&(i.push(""),n.push(`
`));for(var X=0;X<i.length-1;X++)i[X]=i[X]+n[X];return i.join("")}function ZTe(t,e){typeof t=="string"&&(t=(0,z_.parsePatch)(t));var r=0;function i(){var n=t[r++];if(!n)return e.complete();e.loadFile(n,function(s,o){if(s)return e.complete(s);var a=W_(o,n,e);e.patched(n,a,function(l){if(l)return e.complete(l);i()})})}i()}});var YR=I(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.structuredPatch=__;Bd.createTwoFilesPatch=X_;Bd.createPatch=tMe;var rMe=KB();function jR(t){return sMe(t)||nMe(t)||iMe()}function iMe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function nMe(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function sMe(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}function __(t,e,r,i,n,s,o){o||(o={}),typeof o.context=="undefined"&&(o.context=4);var a=(0,rMe.diffLines)(r,i,o);a.push({value:"",lines:[]});function l(E){return E.map(function(B){return" "+B})}for(var c=[],u=0,g=0,f=[],h=1,p=1,d=function(B){var b=a[B],R=b.lines||b.value.replace(/\n$/,"").split(`
`);if(b.lines=R,b.added||b.removed){var H;if(!u){var L=a[B-1];u=h,g=p,L&&(f=o.context>0?l(L.lines.slice(-o.context)):[],u-=f.length,g-=f.length)}(H=f).push.apply(H,jR(R.map(function(X){return(b.added?"+":"-")+X}))),b.added?p+=R.length:h+=R.length}else{if(u)if(R.length<=o.context*2&&B<a.length-2){var K;(K=f).push.apply(K,jR(l(R)))}else{var J,ne=Math.min(R.length,o.context);(J=f).push.apply(J,jR(l(R.slice(0,ne))));var q={oldStart:u,oldLines:h-u+ne,newStart:g,newLines:p-g+ne,lines:f};if(B>=a.length-2&&R.length<=o.context){var A=/\n$/.test(r),V=/\n$/.test(i),W=R.length==0&&f.length>q.oldLines;!A&&W&&f.splice(q.oldLines,0,"\\ No newline at end of file"),(!A&&!W||!V)&&f.push("\\ No newline at end of file")}c.push(q),u=0,g=0,f=[]}h+=R.length,p+=R.length}},m=0;m<a.length;m++)d(m);return{oldFileName:t,newFileName:e,oldHeader:n,newHeader:s,hunks:c}}function X_(t,e,r,i,n,s,o){var a=__(t,e,r,i,n,s,o),l=[];t==e&&l.push("Index: "+t),l.push("==================================================================="),l.push("--- "+a.oldFileName+(typeof a.oldHeader=="undefined"?"":" "+a.oldHeader)),l.push("+++ "+a.newFileName+(typeof a.newHeader=="undefined"?"":" "+a.newHeader));for(var c=0;c<a.hunks.length;c++){var u=a.hunks[c];l.push("@@ -"+u.oldStart+","+u.oldLines+" +"+u.newStart+","+u.newLines+" @@"),l.push.apply(l,u.lines)}return l.join(`
`)+`
`}function tMe(t,e,r,i,n,s){return X_(t,t,e,r,i,n,s)}});var $_=I(YB=>{"use strict";Object.defineProperty(YB,"__esModule",{value:!0});YB.arrayEqual=oMe;YB.arrayStartsWith=Z_;function oMe(t,e){return t.length!==e.length?!1:Z_(t,e)}function Z_(t,e){if(e.length>t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}});var cX=I(qB=>{"use strict";Object.defineProperty(qB,"__esModule",{value:!0});qB.calcLineCount=eX;qB.merge=aMe;var AMe=YR(),lMe=GB(),qR=$_();function Mg(t){return gMe(t)||uMe(t)||cMe()}function cMe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function uMe(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function gMe(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}function eX(t){var e=JR(t.lines),r=e.oldLines,i=e.newLines;r!==void 0?t.oldLines=r:delete t.oldLines,i!==void 0?t.newLines=i:delete t.newLines}function aMe(t,e,r){t=tX(t,r),e=tX(e,r);var i={};(t.index||e.index)&&(i.index=t.index||e.index),(t.newFileName||e.newFileName)&&(rX(t)?rX(e)?(i.oldFileName=JB(i,t.oldFileName,e.oldFileName),i.newFileName=JB(i,t.newFileName,e.newFileName),i.oldHeader=JB(i,t.oldHeader,e.oldHeader),i.newHeader=JB(i,t.newHeader,e.newHeader)):(i.oldFileName=t.oldFileName,i.newFileName=t.newFileName,i.oldHeader=t.oldHeader,i.newHeader=t.newHeader):(i.oldFileName=e.oldFileName||t.oldFileName,i.newFileName=e.newFileName||t.newFileName,i.oldHeader=e.oldHeader||t.oldHeader,i.newHeader=e.newHeader||t.newHeader)),i.hunks=[];for(var n=0,s=0,o=0,a=0;n<t.hunks.length||s<e.hunks.length;){var l=t.hunks[n]||{oldStart:Infinity},c=e.hunks[s]||{oldStart:Infinity};if(iX(l,c))i.hunks.push(nX(l,o)),n++,a+=l.newLines-l.oldLines;else if(iX(c,l))i.hunks.push(nX(c,a)),s++,o+=c.newLines-c.oldLines;else{var u={oldStart:Math.min(l.oldStart,c.oldStart),oldLines:0,newStart:Math.min(l.newStart+o,c.oldStart+a),newLines:0,lines:[]};fMe(u,l.oldStart,l.lines,c.oldStart,c.lines),s++,n++,i.hunks.push(u)}}return i}function tX(t,e){if(typeof t=="string"){if(/^@@/m.test(t)||/^Index:/m.test(t))return(0,lMe.parsePatch)(t)[0];if(!e)throw new Error("Must provide a base reference or pass in a patch");return(0,AMe.structuredPatch)(void 0,void 0,e,t)}return t}function rX(t){return t.newFileName&&t.newFileName!==t.oldFileName}function JB(t,e,r){return e===r?e:(t.conflict=!0,{mine:e,theirs:r})}function iX(t,e){return t.oldStart<e.oldStart&&t.oldStart+t.oldLines<e.oldStart}function nX(t,e){return{oldStart:t.oldStart,oldLines:t.oldLines,newStart:t.newStart+e,newLines:t.newLines,lines:t.lines}}function fMe(t,e,r,i,n){var s={offset:e,lines:r,index:0},o={offset:i,lines:n,index:0};for(oX(t,s,o),oX(t,o,s);s.index<s.lines.length&&o.index<o.lines.length;){var a=s.lines[s.index],l=o.lines[o.index];if((a[0]==="-"||a[0]==="+")&&(l[0]==="-"||l[0]==="+"))hMe(t,s,o);else if(a[0]==="+"&&l[0]===" "){var c;(c=t.lines).push.apply(c,Mg(vc(s)))}else if(l[0]==="+"&&a[0]===" "){var u;(u=t.lines).push.apply(u,Mg(vc(o)))}else a[0]==="-"&&l[0]===" "?sX(t,s,o):l[0]==="-"&&a[0]===" "?sX(t,o,s,!0):a===l?(t.lines.push(a),s.index++,o.index++):WR(t,vc(s),vc(o))}aX(t,s),aX(t,o),eX(t)}function hMe(t,e,r){var i=vc(e),n=vc(r);if(AX(i)&&AX(n)){if((0,qR.arrayStartsWith)(i,n)&&lX(r,i,i.length-n.length)){var s;(s=t.lines).push.apply(s,Mg(i));return}else if((0,qR.arrayStartsWith)(n,i)&&lX(e,n,n.length-i.length)){var o;(o=t.lines).push.apply(o,Mg(n));return}}else if((0,qR.arrayEqual)(i,n)){var a;(a=t.lines).push.apply(a,Mg(i));return}WR(t,i,n)}function sX(t,e,r,i){var n=vc(e),s=pMe(r,n);if(s.merged){var o;(o=t.lines).push.apply(o,Mg(s.merged))}else WR(t,i?s:n,i?n:s)}function WR(t,e,r){t.conflict=!0,t.lines.push({conflict:!0,mine:e,theirs:r})}function oX(t,e,r){for(;e.offset<r.offset&&e.index<e.lines.length;){var i=e.lines[e.index++];t.lines.push(i),e.offset++}}function aX(t,e){for(;e.index<e.lines.length;){var r=e.lines[e.index++];t.lines.push(r)}}function vc(t){for(var e=[],r=t.lines[t.index][0];t.index<t.lines.length;){var i=t.lines[t.index];if(r==="-"&&i[0]==="+"&&(r="+"),r===i[0])e.push(i),t.index++;else break}return e}function pMe(t,e){for(var r=[],i=[],n=0,s=!1,o=!1;n<e.length&&t.index<t.lines.length;){var a=t.lines[t.index],l=e[n];if(l[0]==="+")break;if(s=s||a[0]!==" ",i.push(l),n++,a[0]==="+")for(o=!0;a[0]==="+";)r.push(a),a=t.lines[++t.index];l.substr(1)===a.substr(1)?(r.push(a),t.index++):o=!0}if((e[n]||"")[0]==="+"&&s&&(o=!0),o)return r;for(;n<e.length;)i.push(e[n++]);return{merged:i,changes:r}}function AX(t){return t.reduce(function(e,r){return e&&r[0]==="-"},!0)}function lX(t,e,r){for(var i=0;i<r;i++){var n=e[e.length-r+i].substr(1);if(t.lines[t.index+i]!==" "+n)return!1}return t.index+=r,!0}function JR(t){var e=0,r=0;return t.forEach(function(i){if(typeof i!="string"){var n=JR(i.mine),s=JR(i.theirs);e!==void 0&&(n.oldLines===s.oldLines?e+=n.oldLines:e=void 0),r!==void 0&&(n.newLines===s.newLines?r+=n.newLines:r=void 0)}else r!==void 0& Line truncated
attempted value: ${s}
`+(o!==s?`result of cast: ${o}`:""))}return n}_cast(e,r){let i=e===void 0?e:this.transforms.reduce((n,s)=>s.call(this,n,e,this),e);return i===void 0&&(i=this.getDefault()),i}_validate(e,r={},i){let{sync:n,path:s,from:o=[],originalValue:a=e,strict:l=this.spec.strict,abortEarly:c=this.spec.abortEarly}=r,u=e;l||(u=this._cast(u,ds({assert:!1},r)));let g={value:u,path:s,options:r,originalValue:a,schema:this,label:this.spec.label,sync:n,from:o},f=[];this._typeError&&f.push(this._typeError),this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),(0,dre.default)({args:g,value:u,path:s,sync:n,tests:f,endEarly:c},h=>{if(h)return void i(h,u);(0,dre.default)({tests:this.tests,args:g,path:s,sync:n,value:u,endEarly:c},i)})}validate(e,r,i){let n=this.resolve(ds({},r,{value:e}));return typeof i=="function"?n._validate(e,r,i):new Promise((s,o)=>n._validate(e,r,(a,l)=>{a?o(a):s(l)}))}validateSync(e,r){let i=this.resolve(ds({},r,{value:e})),n;return i._validate(e,ds({},r,{sync:!0}),(s,o)=>{if(s)throw s;n=o}),n}isValid(e,r){return this.validate(e,r).then(()=>!0,i=>{if(mre.default.isError(i))return!1;throw i})}isValidSync(e,r){try{return this.validateSync(e,r),!0}catch(i){if(mre.default.isError(i))return!1;throw i}}_getDefault(){let e=this.spec.default;return e==null?e:typeof e=="function"?e.call(this):(0,pre.default)(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){var r=this.clone();return r.spec.strict=e,r}_isPresent(e){return e!=null}defined(e=Xg.mixed.defined){return this.test({message:e,name:"defined",exclusive:!0,test(r){return r!==void 0}})}required(e=Xg.mixed.required){return this.clone({presence:"required"}).withMutation(r=>r.test({message:e,name:"required",exclusive:!0,test(i){return this.schema._isPresent(i)}}))}notRequired(){var e=this.clone({presence:"optional"});return e.tests=e.tests.filter(r=>r.OPTIONS.name!=="required"),e}nullable(e=!0){var r=this.clone({nullable:e!==!1});return r}transform(e){var r=this.clone();return r.transforms.push(e),r}test(...e){let r;if(e.length===1?typeof e[0]=="function"?r={test:e[0]}:r=e[0]:e.length===2?r={name:e[0],test:e[1]}:r={name:e[0],message:e[1],test:e[2]},r.message===void 0&&(r.message=Xg.mixed.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let i=this.clone(),n=(0,B0.default)(r),s=r.exclusive||r.name&&i.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(i.exclusiveTests[r.name]=!!r.exclusive),i.tests=i.tests.filter(o=>!(o.OPTIONS.name===r.name&&(s||o.OPTIONS.test===n.OPTIONS.test))),i.tests.push(n),i}when(e,r){!Array.isArray(e)&&typeof e!="string"&&(r=e,e=".");let i=this.clone(),n=(0,nYe.default)(e).map(s=>new rYe.default(s));return n.forEach(s=>{s.isSibling&&i.deps.push(s.key)}),i.conditions.push(new tYe.default(n,r)),i}typeError(e){var r=this.clone();return r._typeError=(0,B0.default)({message:e,name:"typeError",test(i){return i!==void 0&&!this.schema.isType(i)?this.createError({params:{type:this.schema._type}}):!0}}),r}oneOf(e,r=Xg.mixed.oneOf){var i=this.clone();return e.forEach(n=>{i._whitelist.add(n),i._blacklist.delete(n)}),i._whitelistError=(0,B0.default)({message:r,name:"oneOf",test(n){if(n===void 0)return!0;let s=this.schema._whitelist;return s.has(n,this.resolve)?!0:this.createError({params:{values:s.toArray().join(", ")}})}}),i}notOneOf(e,r=Xg.mixed.notOneOf){var i=this.clone();return e.forEach(n=>{i._blacklist.add(n),i._whitelist.delete(n)}),i._blacklistError=(0,B0.default)({message:r,name:"notOneOf",test(n){let s=this.schema._blacklist;return s.has(n,this.resolve)?this.createError({params:{values:s.toArray().join(", ")}}):!0}}),i}strip(e=!0){let r=this.clone();return r.spec.strip=e,r}describe(){let e=this.clone(),{label:r,meta:i}=e.spec;return{meta:i,label:r,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(s=>({name:s.OPTIONS.name,params:s.OPTIONS.params})).filter((s,o,a)=>a.findIndex(l=>l.name===s.name)===o)}}};w0.default=Do;Do.prototype.__isYupSchema__=!0;for(let t of["validate","validateSync"])Do.prototype[`${t}At`]=function(e,r,i={}){let{parent:n,parentPath:s,schema:o}=(0,iYe.getIn)(this,e,r,i.context);return o[t](n&&n[s],ds({},i,{parent:n,path:e}))};for(let t of["equals","is"])Do.prototype[t]=Do.prototype.oneOf;for(let t of["not","nope"])Do.prototype[t]=Do.prototype.notOneOf;Do.prototype.optional=Do.prototype.notRequired});var yre=I(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.create=Ere;Wd.default=void 0;var oYe=sYe(Ma());function sYe(t){return t&&t.__esModule?t:{default:t}}var ZF=oYe.default,aYe=ZF;Wd.default=aYe;function Ere(){return new ZF}Ere.prototype=ZF.prototype});var Zg=I(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});Q0.default=void 0;var AYe=t=>t==null;Q0.defaul Line truncated
`),c=o.length;for(c>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());c-- >0;)a=r(t.styles[o[c]],a,l);return a},n=(s,o,a)=>{t.styles[s]=e({name:s,codes:o}),(t.keys[a]||(t.keys[a]=[])).push(s),Reflect.defineProperty(t,s,{configurable:!0,enumerable:!0,set(c){t.alias(s,c)},get(){let c=u=>i(u,c.stack);return Reflect.setPrototypeOf(c,t),c.stack=this.stack?this.stack.concat(s):[s],c}})};return n("reset",[0,0],"modifier"),n("bold",[1,22],"modifier"),n("dim",[2,22],"modifier"),n("italic",[3,23],"modifier"),n("underline",[4,24],"modifier"),n("inverse",[7,27],"modifier"),n("hidden",[8,28],"modifier"),n("strikethrough",[9,29],"modifier"),n("black",[30,39],"color"),n("red",[31,39],"color"),n("green",[32,39],"color"),n("yellow",[33,39],"color"),n("blue",[34,39],"color"),n("magenta",[35,39],"color"),n("cyan",[36,39],"color"),n("white",[37,39],"color"),n("gray",[90,39],"color"),n("grey",[90,39],"color"),n("bgBlack",[40,49],"bg"),n("bgRed",[41,49],"bg"),n("bgGreen",[42,49],"bg"),n("bgYellow",[43,49],"bg"),n("bgBlue",[44,49],"bg"),n("bgMagenta",[45,49],"bg"),n("bgCyan",[46,49],"bg"),n("bgWhite",[47,49],"bg"),n("blackBright",[90,39],"bright"),n("redBright",[91,39],"bright"),n("greenBright",[92,39],"bright"),n("yellowBright",[93,39],"bright"),n("blueBright",[94,39],"bright"),n("magentaBright",[95,39],"bright"),n("cyanBright",[96,39],"bright"),n("whiteBright",[97,39],"bright"),n("bgBlackBright",[100,49],"bgBright"),n("bgRedBright",[101,49],"bgBright"),n("bgGreenBright",[102,49],"bgBright"),n("bgYellowBright",[103,49],"bgBright"),n("bgBlueBright",[104,49],"bgBright"),n("bgMagentaBright",[105,49],"bgBright"),n("bgCyanBright",[106,49],"bgBright"),n("bgWhiteBright",[107,49],"bgBright"),t.ansiRegex=yJe,t.hasColor=t.hasAnsi=s=>(t.ansiRegex.lastIndex=0,typeof s=="string"&&s!==""&&t.ansiRegex.test(s)),t.alias=(s,o)=>{let a=typeof o=="string"?t[o]:o;if(typeof a!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");a.stack||(Reflect.defineProperty(a,"name",{value:s}),t.styles[s]=a,a.stack=[s]),Reflect.defineProperty(t,s,{configurable:!0,enumerable:!0,set(l){t.alias(s,l)},get(){let l=c=>i(c,l.stack);return Reflect.setPrototypeOf(l,t),l.stack=this.stack?this.stack.concat(a.stack):a.stack,l}})},t.theme=s=>{if(!EJe(s))throw new TypeError("Expected theme to be an object");for(let o of Object.keys(s))t.alias(o,s[o]);return t},t.alias("unstyle",s=>typeof s=="string"&&s!==""?(t.ansiRegex.lastIndex=0,s.replace(t.ansiRegex,"")):""),t.alias("noop",s=>s),t.none=t.clear=t.noop,t.stripColor=t.unstyle,t.symbols=Xie(),t.define=n,t};hN.exports=Zie();hN.exports.create=Zie});var Mi=I(bt=>{"use strict";var wJe=Object.prototype.toString,Cs=js(),$ie=!1,pN=[],ene={yellow:"blue",cyan:"red",green:"magenta",black:"white",blue:"yellow",red:"cyan",magenta:"green",white:"black"};bt.longest=(t,e)=>t.reduce((r,i)=>Math.max(r,e?i[e].length:i.length),0);bt.hasColor=t=>!!t&&Cs.hasColor(t);var N0=bt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);bt.nativeType=t=>wJe.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"");bt.isAsyncFn=t=>bt.nativeType(t)==="asyncfunction";bt.isPrimitive=t=>t!=null&&typeof t!="object"&&typeof t!="function";bt.resolve=(t,e,...r)=>typeof e=="function"?e.call(t,...r):e;bt.scrollDown=(t=[])=>[...t.slice(1),t[0]];bt.scrollUp=(t=[])=>[t.pop(),...t];bt.reorder=(t=[])=>{let e=t.slice();return e.sort((r,i)=>r.index>i.index?1:r.index<i.index?-1:0),e};bt.swap=(t,e,r)=>{let i=t.length,n=r===i?0:r<0?i-1:r,s=t[e];t[e]=t[n],t[n]=s};bt.width=(t,e=80)=>{let r=t&&t.columns?t.columns:e;return t&&typeof t.getWindowSize=="function"&&(r=t.getWindowSize()[0]),process.platform==="win32"?r-1:r};bt.height=(t,e=20)=>{let r=t&&t.rows?t.rows:e;return t&&typeof t.getWindowSize=="function"&&(r=t.getWindowSize()[1]),r};bt.wordWrap=(t,e={})=>{if(!t)return t;typeof e=="number"&&(e={width:e});let{indent:r="",newline:i=`
`+r,width:n=80}=e;n-=((i+r).match(/[^\S\n]/g)||[]).length;let o=`.{1,${n}}([\\s\\u200B]+|$)|[^\\s\\u200B]+?([\\s\\u200B]+|$)`,a=t.trim(),l=new RegExp(o,"g"),c=a.match(l)||[];return c=c.map(u=>u.replace(/\n$/,"")),e.padEnd&&(c=c.map(u=>u.padEnd(n," "))),e.padStart&&(c=c.map(u=>u.padStart(n," "))),r+c.join(i)};bt.unmute=t=>{let e=t.stack.find(i=>Cs.keys.color.includes(i));return e?Cs[e]:t.stack.find(i=>i.slice(2)==="bg")?Cs[e.slice(2)]:i=>i};bt.pascal=t=>t?t[0].toUpperCase()+t.slice(1):"";bt.inverse=t=>{if(!t||!t.stack)return t;let e=t.stack.find(i=>Cs.keys.color.includes(i));if(e){let i=Cs["bg"+bt.pascal(e)];return i?i.black:t}let r=t.stack.find(i=>i.slice(0,2)==="bg");return r?Cs[r.slice(2).toLowerCase()]||t:Cs.none};bt.complement=t=>{if(!t||!t.stack)return t;let e=t.stack.find(i=>Cs.keys.color.includes(i)),r=t.stack.find(i=>i.slice(0,2)==="bg");if(e&&!r)return Cs[ene[e]||e];if(r){let i=r.slice(2).toLowerCase(),n=ene[i];return n&&Cs["bg"+bt.pascal(n)]||t}return Cs.none};bt.meridiem=t=>{let e=t.getHours(),r=t.getMinutes(),i=e>=12?"pm":"am";e=e%12;let n=e===0?12:e,s=r<10?"0"+r:r;return n+":"+s+" "+i};bt.set=(t={},e="",r)=>e.split(".").reduce((i,n,s,o)=>{let a=o.length-1>s?i[n]||{}:r;return!bt.isObject(a)&&s<o.length-1&&(a={}),i[n]=a},t);bt.get=(t={},e="",r)=>{let i=t[e]==null?e.split(".").reduce((n,s)=>n&&n[s],t):t[e];return i==null?r:i};bt.mixin=(t,e)=>{if(!N0(t))return e;if(!N0(e))return t;for(let r of Object.keys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(i.hasOwnProperty("value"))if(t.hasOwnProperty(r)&&N0(i.value)){let n=Object.getOwnPropertyDescriptor(t,r);N0(n.value)?t[r]=bt.merge({},t[r],e[r]):Reflect.defineProperty(t,r,i)}else Reflect.defineProperty(t,r,i);else Reflect.defineProperty(t,r,i)}return t};bt.merge=(...t)=>{let e={};for(let r of t)bt.mixin(e,r);return e};bt.mixinEmitter=(t,e)=>{let r=e.constructor.prototype;for(let i of Object.keys(r)){let n=r[i];typeof n=="function"?bt.define(t,i,n.bind(e)):bt.define(t,i,n)}};bt.onExit=t=>{let e=(r,i)=>{$ie||($ie=!0,pN.forEach(n=>n()),r===!0&&process.exit(128+i))};pN.length===0&&(process.once("SIGTERM",e.bind(null,!0,15)),process.once("SIGINT",e.bind(null,!0,2)),process.once("exit",e)),pN.push(t)};bt.define=(t,e,r)=>{Reflect.defineProperty(t,e,{value:r})};bt.defineExport=(t,e,r)=>{let i;Reflect.defineProperty(t,e,{enumerable:!0,configurable:!0,set(n){i=n},get(){return i?i():r()}})}});var tne=I(nf=>{"use strict";nf.ctrl={a:"first",b:"backward",c:"cancel",d:"deleteForward",e:"last",f:"forward",g:"reset",i:"tab",k:"cutForward",l:"reset",n:"newItem",m:"cancel",j:"submit",p:"search",r:"remove",s:"save",u:"undo",w:"cutLeft",x:"toggleCursor",v:"paste"};nf.shift={up:"shiftUp",down:"shiftDown",left:"shiftLeft",right:"shiftRight",tab:"prev"};nf.fn={up:"pageUp",down:"pageDown",left:"pageLeft",right:"pageRight",delete:"deleteForward"};nf.option={b:"backward",f:"forward",d:"cutRight",left:"cutLeft",up:"altUp",down:"altDown"};nf.keys={pageup:"pageUp",pagedown:"pageDown",home:"home",end:"end",cancel:"cancel",delete:"deleteForward",backspace:"delete",down:"down",enter:"submit",escape:"cancel",left:"left",space:"space",number:"number",return:"submit",right:"right",tab:"next",up:"up"}});var nne=I((dCt,rne)=>{"use strict";var ine=require("readline"),BJe=tne(),QJe=/^(?:\x1b)([a-zA-Z0-9])$/,bJe=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,vJe={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"};function SJe(t){return["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(t)}function xJe(t){return["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(t)}var L0=(t="",e={})=>{let r,i=P({name:e.name,ctrl:!1,meta:!1,shift:!1,option:!1,sequence:t,raw:t},e);if(Buffer.isBuffer(t)?t[0]>127&&t[1]===void 0?(t[0]-=128,t=""+String(t)):t=String(t):t!==void 0&&typeof t!="string"?t=String(t):t||(t=i.sequence||""),i.sequence=i.sequence||t||i.name,t==="\r")i.raw=void 0,i.name="return";else if(t===`
`)i.name="enter";else if(t===" ")i.name="tab";else if(t==="\b"||t==="\x7F"||t==="\x7F"||t==="\b")i.name="backspace",i.meta=t.charAt(0)==="";else if(t===""||t==="")i.name="escape",i.meta=t.length===2;else if(t===" "||t===" ")i.name="space",i.meta=t.length===2;else if(t<="")i.name=String.fromCharCode(t.charCodeAt(0)+"a".charCodeAt(0)-1),i.ctrl=!0;else if(t.length===1&&t>="0"&&t<="9")i.name="number";else if(t.length===1&&t>="a"&&t<="z")i.name=t;else if(t.length===1&&t>="A"&&t<="Z")i.name=t.toLowerCase(),i.shift=!0;else if(r=QJe.exec(t))i.meta=!0,i.shift=/^[A-Z]$/.test(r[1]);else if(r=bJe.exec(t)){let n=[...t];n[0]===""&&n[1]===""&&(i.option=!0);let s=[r[1],r[2],r[4],r[6]].filter(Boolean).join(""),o=(r[3]||r[5]||1)-1;i.ctrl=!!(o&4),i.meta=!!(o&10),i.shift=!!(o&1),i.code=s,i.name=vJe[s],i.shift=SJe(s)||i.shift,i.ctrl=xJe(s)||i.ctrl}return i};L0.listen=(t={},e)=>{let{stdin:r}=t;if(!r||r!==process.stdin&&!r.isTTY)throw new Error("Invalid stream passed");let i=ine.createInterface({terminal:!0,input:r});ine.emitKeypressEvents(r,i);let n=(a,l)=>e(a,L0(a,l),i),s=r.isRaw;return r.isTTY&&r.setRawMode(!0),r.on("keypress",n),i.resume(),()=>{r.isTTY&&r.setRawMode(s),r.removeListener("keypress",n),i.pause(),i.close()}};L0.action=(t,e,r)=>{let i=P(P({},BJe),r);return e.ctrl?(e.action=i.ctrl[e.name],e):e.option&&i.option?(e.action=i.option[e.name],e):e.shift?(e.action=i.shift[e.name],e):(e.action=i.keys[e.name],e)};rne.exports=L0});var one=I((CCt,sne)=>{"use strict";sne.exports=t=>{t.timers=t.timers||{};let e=t.options.timers;if(!!e)for(let r of Object.keys(e)){let i=e[r];typeof i=="number"&&(i={interval:i}),kJe(t,r,i)}};function kJe(t,e,r={}){let i=t.timers[e]={name:e,start:Date.now(),ms:0,tick:0},n=r.interval||120;i.frames=r.frames||[],i.loading=!0;let s=setInterval(()=>{i.ms=Date.now()-i.start,i.tick++,t.render()},n);return i.stop=()=>{i.loading=!1,clearInterval(s)},Reflect.defineProperty(i,"interval",{value:s}),t.once("close",()=>i.stop()),i.stop}});var lne=I((mCt,ane)=>{"use strict";var{define:PJe,width:DJe}=Mi(),Ane=class{constructor(e){let r=e.options;PJe(this,"_prompt",e),this.type=e.type,this.name=e.name,this.message="",this.header="",this.footer="",this.error="",this.hint="",this.input="",this.cursor=0,this.index=0,this.lines=0,this.tick=0,this.prompt="",this.buffer="",this.width=DJe(r.stdout||process.stdout),Object.assign(this,r),this.name=this.name||this.message,this.message=this.message||this.name,this.symbols=e.symbols,this.styles=e.styles,this.required=new Set,this.cancelled=!1,this.submitted=!1}clone(){let e=P({},this);return e.status=this.status,e.buffer=Buffer.from(e.buffer),delete e.clone,e}set color(e){this._color=e}get color(){let e=this.prompt.styles;if(this.cancelled)return e.cancelled;if(this.submitted)return e.submitted;let r=this._color||e[this.status];return typeof r=="function"?r:e.pending}set loading(e){this._loading=e}get loading(){return typeof this._loading=="boolean"?this._loading:this.loadingChoices?"choices":!1}get status(){return this.cancelled?"cancelled":this.submitted?"submitted":"pending"}};ane.exports=Ane});var une=I((ICt,cne)=>{"use strict";var dN=Mi(),yi=js(),CN={default:yi.noop,noop:yi.noop,set inverse(t){this._inverse=t},get inverse(){return this._inverse||dN.inverse(this.primary)},set complement(t){this._complement=t},get complement(){return this._complement||dN.complement(this.primary)},primary:yi.cyan,success:yi.green,danger:yi.magenta,strong:yi.bold,warning:yi.yellow,muted:yi.dim,disabled:yi.gray,dark:yi.dim.gray,underline:yi.underline,set info(t){this._info=t},get info(){return this._info||this.primary},set em(t){this._em=t},get em(){return this._em||this.primary.underline},set heading(t){this._heading=t},get heading(){return this._heading||this.muted.underline},set pending(t){this._pending=t},get pending(){return this._pending||this.primary},set submitted(t){this._submitted=t},get submitted(){return this._submitted||this.success},set cancelled(t){this._cancelled=t},get cancelled(){return this._cancelled||this.danger},set typing(t){this._typing=t},get typing(){return this._typing||this.dim},set placeholder(t){this._placeholder=t},get placeholder(){return this._placeholder||this.primary.dim},set highlight(t){this._highlight=t},get highlight(){return this._highlight||this.inverse}};CN.merge=(t={})=>{t.styles&&typeof t.styles.enabled=="boolean"&&(yi.enabled=t.styles.enabled),t.styles&&typeof t.styles.visible=="boolean"&&(yi.visible=t.styles.visible);let e=dN.merge({},CN,t.styles);delete e.merge;for(let r of Object.keys(yi))e.hasOwnProperty(r)||Reflect.defineProperty(e,r,{get:()=>yi[r]});for(let r of Object.keys(yi.styles))e.hasOwnProperty(r)||Reflect.defineProperty(e,r,{get:()=>yi[r]});return e};cne.exports=CN});var fne=I((ECt,gne)=>{"use strict";var mN=process.platform==="win32",Ka=js(),RJe=Mi(),IN=_(P({},Ka.symbols),{upDownDoubleArrow:"\u21D5",upDownDoubleArrow2:"\u2B0D",upDownArrow:"\u2195",asterisk:"*",asterism:"\u2042",bulletWhite:"\u25E6",electricArrow:"\u2301",e Line truncated
`),c=l[0],u=l[l.length-1],f=(i+(r?" "+r:"")).length,h=f<c.length?c.slice(f+1):"";return{header:o,prompt:c,after:h,rest:l.slice(1),last:u}}async submit(){this.state.submitted=!0,this.state.validating=!0,this.options.onSubmit&&await this.options.onSubmit.call(this,this.name,this.value,this);let e=this.state.error||await this.validate(this.value,this.state);if(e!==!0){let r=`
`+this.symbols.pointer+" ";typeof e=="string"?r+=e.trim():r+="Invalid input",this.state.error=`
`+this.styles.danger(r),this.state.submitted=!1,await this.render(),await this.alert(),this.state.validating=!1,this.state.error=void 0;return}this.state.validating=!1,await this.render(),await this.close(),this.value=await this.result(this.value),this.emit("submit",this.value)}async cancel(e){this.state.cancelled=this.state.submitted=!0,await this.render(),await this.close(),typeof this.options.onCancel=="function"&&await this.options.onCancel.call(this,this.name,this.value,this),this.emit("cancel",await this.error(e))}async close(){this.state.closed=!0;try{let e=this.sections(),r=Math.ceil(e.prompt.length/this.width);e.rest&&this.write(Tc.cursor.down(e.rest.length)),this.write(`
`.repeat(r))}catch(e){}this.emit("close")}start(){!this.stop&&this.options.show!==!1&&(this.stop=BN.listen(this,this.keypress.bind(this)),this.once("close",this.stop))}async skip(){return this.skipped=this.options.skip===!0,typeof this.options.skip=="function"&&(this.skipped=await this.options.skip.call(this,this.name,this.value)),this.skipped}async initialize(){let{format:e,options:r,result:i}=this;if(this.format=()=>e.call(this,this.value),this.result=()=>i.call(this,this.value),typeof r.initial=="function"&&(this.initial=await r.initial.call(this,this)),typeof r.onRun=="function"&&await r.onRun.call(this,this),typeof r.onSubmit=="function"){let n=r.onSubmit.bind(this),s=this.submit.bind(this);delete this.options.onSubmit,this.submit=async()=>(await n(this.name,this.value,this),s())}await this.start(),await this.render()}render(){throw new Error("expected prompt to have a custom render method")}run(){return new Promise(async(e,r)=>{if(this.once("submit",e),this.once("cancel",r),await this.skip())return this.render=()=>{},this.submit();await this.initialize(),this.emit("run")})}async element(e,r,i){let{options:n,state:s,symbols:o,timers:a}=this,l=a&&a[e];s.timer=l;let c=n[e]||s[e]||o[e],u=r&&r[e]!=null?r[e]:await c;if(u==="")return u;let g=await this.resolve(u,s,r,i);return!g&&r&&r[e]?this.resolve(c,s,r,i):g}async prefix(){let e=await this.element("prefix")||this.symbols,r=this.timers&&this.timers.prefix,i=this.state;return i.timer=r,bn.isObject(e)&&(e=e[i.status]||e.pending),bn.hasColor(e)?e:(this.styles[i.status]||this.styles.pending)(e)}async message(){let e=await this.element("message");return bn.hasColor(e)?e:this.styles.strong(e)}async separator(){let e=await this.element("separator")||this.symbols,r=this.timers&&this.timers.separator,i=this.state;i.timer=r;let n=e[i.status]||e.pending||i.separator,s=await this.resolve(n,i);return bn.isObject(s)&&(s=s[i.status]||s.pending),bn.hasColor(s)?s:this.styles.muted(s)}async pointer(e,r){let i=await this.element("pointer",e,r);if(typeof i=="string"&&bn.hasColor(i))return i;if(i){let n=this.styles,s=this.index===r,o=s?n.primary:c=>c,a=await this.resolve(i[s?"on":"off"]||i,this.state),l=bn.hasColor(a)?a:o(a);return s?l:" ".repeat(a.length)}}async indicator(e,r){let i=await this.element("indicator",e,r);if(typeof i=="string"&&bn.hasColor(i))return i;if(i){let n=this.styles,s=e.enabled===!0,o=s?n.success:n.dark,a=i[s?"on":"off"]||i;return bn.hasColor(a)?a:o(a)}return""}body(){return null}footer(){if(this.state.status==="pending")return this.element("footer")}header(){if(this.state.status==="pending")return this.element("header")}async hint(){if(this.state.status==="pending"&&!this.isValue(this.state.input)){let e=await this.element("hint");return bn.hasColor(e)?e:this.styles.muted(e)}}error(e){return this.state.submitted?"":e||this.state.error}format(e){return e}result(e){return e}validate(e){return this.options.required===!0?this.isValue(e):!0}isValue(e){return e!=null&&e!==""}resolve(e,...r){return bn.resolve(this,e,...r)}get base(){return T0.prototype}get style(){return this.styles[this.state.status]}get height(){return this.options.rows||bn.height(this.stdout,25)}get width(){return this.options.columns||bn.width(this.stdout,80)}get size(){return{width:this.width,height:this.height}}set cursor(e){this.state.cursor=e}get cursor(){return this.state.cursor}set input(e){this.state.input=e}get input(){return this.state.input}set value(e){this.state.value=e}get value(){let{input:e,value:r}=this.state,i=[r,e].find(this.isValue.bind(this));return this.isValue(i)?i:this.initial}static get prompt(){return e=>new this(e).run()}};function HJe(t){let e=n=>t[n]===void 0||typeof t[n]=="function",r=["actions","choices","initial","margin","roles","styles","symbols","theme","timers","value"],i=["body","footer","error","header","hint","indicator","message","prefix","separator","skip"];for(let n of Object.keys(t.options)){if(r.includes(n)||/^on[A-Z]/.test(n))continue;let s=t.options[n];typeof s=="function"&&e(n)?i.includes(n)||(t[n]=s.bind(t)):typeof t[n]!="function"&&(t[n]=s)}}function GJe(t){typeof t=="number"&&(t=[t,t,t,t]);let e=[].concat(t||[]),r=n=>n%2==0?`
`:" ",i=[];for(let n=0;n<4;n++){let s=r(n);e[n]?i.push(s.repeat(e[n])):i.push("")}return i}yne.exports=T0});var bne=I((BCt,Bne)=>{"use strict";var jJe=Mi(),Qne={default(t,e){return e},checkbox(t,e){throw new Error("checkbox role is not implemented yet")},editable(t,e){throw new Error("editable role is not implemented yet")},expandable(t,e){throw new Error("expandable role is not implemented yet")},heading(t,e){return e.disabled="",e.indicator=[e.indicator," "].find(r=>r!=null),e.message=e.message||"",e},input(t,e){throw new Error("input role is not implemented yet")},option(t,e){return Qne.default(t,e)},radio(t,e){throw new Error("radio role is not implemented yet")},separator(t,e){return e.disabled="",e.indicator=[e.indicator," "].find(r=>r!=null),e.message=e.message||t.symbols.line.repeat(5),e},spacer(t,e){return e}};Bne.exports=(t,e={})=>{let r=jJe.merge({},Qne,e.roles);return r[t]||r.default}});var sC=I((QCt,vne)=>{"use strict";var YJe=js(),qJe=sf(),JJe=bne(),M0=Mi(),{reorder:QN,scrollUp:WJe,scrollDown:zJe,isObject:Sne,swap:VJe}=M0,xne=class extends qJe{constructor(e){super(e);this.cursorHide(),this.maxSelected=e.maxSelected||Infinity,this.multiple=e.multiple||!1,this.initial=e.initial||0,this.delay=e.delay||0,this.longest=0,this.num=""}async initialize(){typeof this.options.initial=="function"&&(this.initial=await this.options.initial.call(this)),await this.reset(!0),await super.initialize()}async reset(){let{choices:e,initial:r,autofocus:i,suggest:n}=this.options;if(this.state._choices=[],this.state.choices=[],this.choices=await Promise.all(await this.toChoices(e)),this.choices.forEach(s=>s.enabled=!1),typeof n!="function"&&this.selectable.length===0)throw new Error("At least one choice must be selectable");Sne(r)&&(r=Object.keys(r)),Array.isArray(r)?(i!=null&&(this.index=this.findIndex(i)),r.forEach(s=>this.enable(this.find(s))),await this.render()):(i!=null&&(r=i),typeof r=="string"&&(r=this.findIndex(r)),typeof r=="number"&&r>-1&&(this.index=Math.max(0,Math.min(r,this.choices.length)),this.enable(this.find(this.index)))),this.isDisabled(this.focused)&&await this.down()}async toChoices(e,r){this.state.loadingChoices=!0;let i=[],n=0,s=async(o,a)=>{typeof o=="function"&&(o=await o.call(this)),o instanceof Promise&&(o=await o);for(let l=0;l<o.length;l++){let c=o[l]=await this.toChoice(o[l],n++,a);i.push(c),c.choices&&await s(c.choices,c)}return i};return s(e,r).then(o=>(this.state.loadingChoices=!1,o))}async toChoice(e,r,i){if(typeof e=="function"&&(e=await e.call(this,this)),e instanceof Promise&&(e=await e),typeof e=="string"&&(e={name:e}),e.normalized)return e;e.normalized=!0;let n=e.value;if(e=JJe(e.role,this.options)(this,e),typeof e.disabled=="string"&&!e.hint&&(e.hint=e.disabled,e.disabled=!0),e.disabled===!0&&e.hint==null&&(e.hint="(disabled)"),e.index!=null)return e;e.name=e.name||e.key||e.title||e.value||e.message,e.message=e.message||e.name||"",e.value=[e.value,e.name].find(this.isValue.bind(this)),e.input="",e.index=r,e.cursor=0,M0.define(e,"parent",i),e.level=i?i.level+1:1,e.indent==null&&(e.indent=i?i.indent+" ":e.indent||""),e.path=i?i.path+"."+e.name:e.name,e.enabled=!!(this.multiple&&!this.isDisabled(e)&&(e.enabled||this.isSelected(e))),this.isDisabled(e)||(this.longest=Math.max(this.longest,YJe.unstyle(e.message).length));let o=P({},e);return e.reset=(a=o.input,l=o.value)=>{for(let c of Object.keys(o))e[c]=o[c];e.input=a,e.value=l},n==null&&typeof e.initial=="function"&&(e.input=await e.initial.call(this,this.state,e,r)),e}async onChoice(e,r){this.emit("choice",e,r,this),typeof e.onChoice=="function"&&await e.onChoice.call(this,this.state,e,r)}async addChoice(e,r,i){let n=await this.toChoice(e,r,i);return this.choices.push(n),this.index=this.choices.length-1,this.limit=this.choices.length,n}async newItem(e,r,i){let n=P({name:"New choice name?",editable:!0,newChoice:!0},e),s=await this.addChoice(n,r,i);return s.updateChoice=()=>{delete s.newChoice,s.name=s.message=s.input,s.input="",s.cursor=0},this.render()}indent(e){return e.indent==null?e.level>1?" ".repeat(e.level-1):"":e.indent}dispatch(e,r){if(this.multiple&&this[r.name])return this[r.name]();this.alert()}focus(e,r){return typeof r!="boolean"&&(r=e.enabled),r&&!e.enabled&&this.selected.length>=this.maxSelected?this.alert():(this.index=e.index,e.enabled=r&&!this.isDisabled(e),e)}space(){return this.multiple?(this.toggle(this.focused),this.render()):this.alert()}a(){if(this.maxSelected<this.choices.length)return this.alert();let e=this.selectable.every(r=>r.enabled);return this.choices.forEach(r=>r.enabled=!e),this.render()}i(){return this.choices.length-this.selected.length>this.maxSelected?this.alert():(this.choices.forEach(e=>e.enabled=!e.enabled),this.render())}g(e=this.focused){return this.choices.some(r=>!!r.parent)?(this.toggle(e.parent&&!e.choices?e.parent:e),this.render()):this.a()}toggle(e,r){if(!e.enabled&&this.selected.length>=this.maxSelected)return this.alert();typeof r!="boolean"&&(r=!e.enabled),e.enabled=r,e.choi Line truncated
`),n;return this.options.choicesHeader&&(n=await this.resolve(this.options.choicesHeader,this.state)),[n,i].filter(Boolean).join(`
`)}format(){return!this.state.submitted||this.state.cancelled?"":Array.isArray(this.selected)?this.selected.map(e=>this.styles.primary(e.name)).join(", "):this.styles.primary(this.selected.name)}async render(){let{submitted:e,size:r}=this.state,i="",n=await this.header(),s=await this.prefix(),o=await this.separator(),a=await this.message();this.options.promptLine!==!1&&(i=[s,a,o,""].join(" "),this.state.prompt=i);let l=await this.format(),c=await this.error()||await this.hint(),u=await this.renderChoices(),g=await this.footer();l&&(i+=l),c&&!i.includes(c)&&(i+=" "+c),e&&!l&&!u.trim()&&this.multiple&&this.emptyError!=null&&(i+=this.styles.danger(this.emptyError)),this.clear(r),this.write([n,i,u,g].filter(Boolean).join(`
`)),this.write(this.margin[2]),this.restore()}};Pne.exports=Dne});var Nne=I((vCt,Rne)=>{"use strict";var XJe=GA(),ZJe=(t,e)=>{let r=t.toLowerCase();return i=>{let s=i.toLowerCase().indexOf(r),o=e(i.slice(s,s+r.length));return s>=0?i.slice(0,s)+o+i.slice(s+r.length):i}},Fne=class extends XJe{constructor(e){super(e);this.cursorShow()}moveCursor(e){this.state.cursor+=e}dispatch(e){return this.append(e)}space(e){return this.options.multiple?super.space(e):this.append(e)}append(e){let{cursor:r,input:i}=this.state;return this.input=i.slice(0,r)+e+i.slice(r),this.moveCursor(1),this.complete()}delete(){let{cursor:e,input:r}=this.state;return r?(this.input=r.slice(0,e-1)+r.slice(e),this.moveCursor(-1),this.complete()):this.alert()}deleteForward(){let{cursor:e,input:r}=this.state;return r[e]===void 0?this.alert():(this.input=`${r}`.slice(0,e)+`${r}`.slice(e+1),this.complete())}number(e){return this.append(e)}async complete(){this.completing=!0,this.choices=await this.suggest(this.input,this.state._choices),this.state.limit=void 0,this.index=Math.min(Math.max(this.visible.length-1,0),this.index),await this.render(),this.completing=!1}suggest(e=this.input,r=this.state._choices){if(typeof this.options.suggest=="function")return this.options.suggest.call(this,e,r);let i=e.toLowerCase();return r.filter(n=>n.message.toLowerCase().includes(i))}pointer(){return""}format(){if(!this.focused)return this.input;if(this.options.multiple&&this.state.submitted)return this.selected.map(e=>this.styles.primary(e.message)).join(", ");if(this.state.submitted){let e=this.value=this.input=this.focused.value;return this.styles.primary(e)}return this.input}async render(){if(this.state.status!=="pending")return super.render();let e=this.options.highlight?this.options.highlight.bind(this):this.styles.placeholder,r=ZJe(this.input,e),i=this.choices;this.choices=i.map(n=>_(P({},n),{message:r(n.message)})),await super.render(),this.choices=i}submit(){return this.options.multiple&&(this.value=this.selected.map(e=>e.name)),super.submit()}};Rne.exports=Fne});var SN=I((SCt,Lne)=>{"use strict";var vN=Mi();Lne.exports=(t,e={})=>{t.cursorHide();let{input:r="",initial:i="",pos:n,showCursor:s=!0,color:o}=e,a=o||t.styles.placeholder,l=vN.inverse(t.styles.primary),c=d=>l(t.styles.black(d)),u=r,g=" ",f=c(g);if(t.blink&&t.blink.off===!0&&(c=d=>d,f=""),s&&n===0&&i===""&&r==="")return c(g);if(s&&n===0&&(r===i||r===""))return c(i[0])+a(i.slice(1));i=vN.isPrimitive(i)?`${i}`:"",r=vN.isPrimitive(r)?`${r}`:"";let h=i&&i.startsWith(r)&&i!==r,p=h?c(i[r.length]):f;if(n!==r.length&&s===!0&&(u=r.slice(0,n)+c(r[n])+r.slice(n+1),p=""),s===!1&&(p=""),h){let d=t.styles.unstyle(u+p);return u+p+a(i.slice(d.length))}return u+p}});var O0=I((xCt,Tne)=>{"use strict";var $Je=js(),e3e=GA(),t3e=SN(),Mne=class extends e3e{constructor(e){super(_(P({},e),{multiple:!0}));this.type="form",this.initial=this.options.initial,this.align=[this.options.align,"right"].find(r=>r!=null),this.emptyError="",this.values={}}async reset(e){return await super.reset(),e===!0&&(this._index=this.index),this.index=this._index,this.values={},this.choices.forEach(r=>r.reset&&r.reset()),this.render()}dispatch(e){return!!e&&this.append(e)}append(e){let r=this.focused;if(!r)return this.alert();let{cursor:i,input:n}=r;return r.value=r.input=n.slice(0,i)+e+n.slice(i),r.cursor++,this.render()}delete(){let e=this.focused;if(!e||e.cursor<=0)return this.alert();let{cursor:r,input:i}=e;return e.value=e.input=i.slice(0,r-1)+i.slice(r),e.cursor--,this.render()}deleteForward(){let e=this.focused;if(!e)return this.alert();let{cursor:r,input:i}=e;if(i[r]===void 0)return this.alert();let n=`${i}`.slice(0,r)+`${i}`.slice(r+1);return e.value=e.input=n,this.render()}right(){let e=this.focused;return e?e.cursor>=e.input.length?this.alert():(e.cursor++,this.render()):this.alert()}left(){let e=this.focused;return e?e.cursor<=0?this.alert():(e.cursor--,this.render()):this.alert()}space(e,r){return this.dispatch(e,r)}number(e,r){return this.dispatch(e,r)}next(){let e=this.focused;if(!e)return this.alert();let{initial:r,input:i}=e;return r&&r.startsWith(i)&&i!==r?(e.value=e.input=r,e.cursor=e.value.length,this.render()):super.next()}prev(){let e=this.focused;return e?e.cursor===0?super.prev():(e.value=e.input="",e.cursor=0,this.render()):this.alert()}separator(){return""}format(e){return this.state.submitted?"":super.format(e)}pointer(){return""}indicator(e){return e.input?"\u29BF":"\u2299"}async choiceSeparator(e,r){let i=await this.resolve(e.separator,this.state,e,r)||":";return i?" "+this.styles.disabled(i):""}async renderChoice(e,r){await this.onChoice(e,r);let{state:i,styles:n}=this,{cursor:s,initial:o="",name:a,hint:l,input:c=""}=e,{muted:u,submitted:g,primary:f,danger:h}=n,p=l,d=this.index===r,m=e.validate||(()=>!0),E=await this.choiceSeparator(e,r),B=e.message;this.align==="right"&&(B=B.padStart(this.longest+1," ")),this.align==="left"&&(B=B.padEnd(this.longest+1," "));let b=this.values[a]=c||o,R=c?"success":"dark";await m.c Line truncated
`)),this.restore()}set value(e){super.value=e}get value(){return this.cast(super.value)}};jne.exports=Yne});var Wne=I((RCt,qne)=>{"use strict";var l3e=K0(),Jne=class extends l3e{constructor(e){super(e);this.default=this.options.default||(this.initial?"(Y/n)":"(y/N)")}};qne.exports=Jne});var _ne=I((FCt,zne)=>{"use strict";var c3e=GA(),u3e=O0(),of=u3e.prototype,Vne=class extends c3e{constructor(e){super(_(P({},e),{multiple:!0}));this.align=[this.options.align,"left"].find(r=>r!=null),this.emptyError="",this.values={}}dispatch(e,r){let i=this.focused,n=i.parent||{};return!i.editable&&!n.editable&&(e==="a"||e==="i")?super[e]():of.dispatch.call(this,e,r)}append(e,r){return of.append.call(this,e,r)}delete(e,r){return of.delete.call(this,e,r)}space(e){return this.focused.editable?this.append(e):super.space()}number(e){return this.focused.editable?this.append(e):super.number(e)}next(){return this.focused.editable?of.next.call(this):super.next()}prev(){return this.focused.editable?of.prev.call(this):super.prev()}async indicator(e,r){let i=e.indicator||"",n=e.editable?i:super.indicator(e,r);return await this.resolve(n,this.state,e,r)||""}indent(e){return e.role==="heading"?"":e.editable?" ":" "}async renderChoice(e,r){return e.indent="",e.editable?of.renderChoice.call(this,e,r):super.renderChoice(e,r)}error(){return""}footer(){return this.state.error}async validate(){let e=!0;for(let r of this.choices){if(typeof r.validate!="function"||r.role==="heading")continue;let i=r.parent?this.value[r.parent.name]:this.value;if(r.editable?i=r.value===r.name?r.initial||"":r.value:this.isDisabled(r)||(i=r.enabled===!0),e=await r.validate(i,this.state),e!==!0)break}return e!==!0&&(this.state.error=typeof e=="string"?e:"Invalid Input"),e}submit(){if(this.focused.newChoice===!0)return super.submit();if(this.choices.some(e=>e.newChoice))return this.alert();this.value={};for(let e of this.choices){let r=e.parent?this.value[e.parent.name]:this.value;if(e.role==="heading"){this.value[e.name]={};continue}e.editable?r[e.name]=e.value===e.name?e.initial||"":e.value:this.isDisabled(e)||(r[e.name]=e.enabled===!0)}return this.base.submit.call(this)}};zne.exports=Vne});var Mc=I((NCt,Xne)=>{"use strict";var g3e=sf(),f3e=SN(),{isPrimitive:h3e}=Mi(),Zne=class extends g3e{constructor(e){super(e);this.initial=h3e(this.initial)?String(this.initial):"",this.initial&&this.cursorHide(),this.state.prevCursor=0,this.state.clipboard=[]}async keypress(e,r={}){let i=this.state.prevKeypress;return this.state.prevKeypress=r,this.options.multiline===!0&&r.name==="return"&&(!i||i.name!=="return")?this.append(`
`,r):super.keypress(e,r)}moveCursor(e){this.cursor+=e}reset(){return this.input=this.value="",this.cursor=0,this.render()}dispatch(e,r){if(!e||r.ctrl||r.code)return this.alert();this.append(e)}append(e){let{cursor:r,input:i}=this.state;this.input=`${i}`.slice(0,r)+e+`${i}`.slice(r),this.moveCursor(String(e).length),this.render()}insert(e){this.append(e)}delete(){let{cursor:e,input:r}=this.state;if(e<=0)return this.alert();this.input=`${r}`.slice(0,e-1)+`${r}`.slice(e),this.moveCursor(-1),this.render()}deleteForward(){let{cursor:e,input:r}=this.state;if(r[e]===void 0)return this.alert();this.input=`${r}`.slice(0,e)+`${r}`.slice(e+1),this.render()}cutForward(){let e=this.cursor;if(this.input.length<=e)return this.alert();this.state.clipboard.push(this.input.slice(e)),this.input=this.input.slice(0,e),this.render()}cutLeft(){let e=this.cursor;if(e===0)return this.alert();let r=this.input.slice(0,e),i=this.input.slice(e),n=r.split(" ");this.state.clipboard.push(n.pop()),this.input=n.join(" "),this.cursor=this.input.length,this.input+=i,this.render()}paste(){if(!this.state.clipboard.length)return this.alert();this.insert(this.state.clipboard.pop()),this.render()}toggleCursor(){this.state.prevCursor?(this.cursor=this.state.prevCursor,this.state.prevCursor=0):(this.state.prevCursor=this.cursor,this.cursor=0),this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.input.length-1,this.render()}next(){let e=this.initial!=null?String(this.initial):"";if(!e||!e.startsWith(this.input))return this.alert();this.input=this.initial,this.cursor=this.initial.length,this.render()}prev(){if(!this.input)return this.alert();this.reset()}backward(){return this.left()}forward(){return this.right()}right(){return this.cursor>=this.input.length?this.alert():(this.moveCursor(1),this.render())}left(){return this.cursor<=0?this.alert():(this.moveCursor(-1),this.render())}isValue(e){return!!e}async format(e=this.value){let r=await this.resolve(this.initial,this.state);return this.state.submitted?this.styles.submitted(e||r):f3e(this,{input:e,initial:r,pos:this.cursor})}async render(){let e=this.state.size,r=await this.prefix(),i=await this.separator(),n=await this.message(),s=[r,n,i].filter(Boolean).join(" ");this.state.prompt=s;let o=await this.header(),a=await this.format(),l=await this.error()||await this.hint(),c=await this.footer();l&&!a.includes(l)&&(a+=" "+l),s+=" "+a,this.clear(e),this.write([o,s,c].filter(Boolean).join(`
`)),this.restore()}};Xne.exports=Zne});var ese=I((LCt,$ne)=>{"use strict";var p3e=t=>t.filter((e,r)=>t.lastIndexOf(e)===r),U0=t=>p3e(t).filter(Boolean);$ne.exports=(t,e={},r="")=>{let{past:i=[],present:n=""}=e,s,o;switch(t){case"prev":case"undo":return s=i.slice(0,i.length-1),o=i[i.length-1]||"",{past:U0([r,...s]),present:o};case"next":case"redo":return s=i.slice(1),o=i[0]||"",{past:U0([...s,r]),present:o};case"save":return{past:U0([...i,r]),present:""};case"remove":return o=U0(i.filter(a=>a!==r)),n="",o.length&&(n=o.pop()),{past:o,present:n};default:throw new Error(`Invalid action: "${t}"`)}}});var kN=I((TCt,tse)=>{"use strict";var d3e=Mc(),rse=ese(),ise=class extends d3e{constructor(e){super(e);let r=this.options.history;if(r&&r.store){let i=r.values||this.initial;this.autosave=!!r.autosave,this.store=r.store,this.data=this.store.get("values")||{past:[],present:i},this.initial=this.data.present||this.data.past[this.data.past.length-1]}}completion(e){return this.store?(this.data=rse(e,this.data,this.input),this.data.present?(this.input=this.data.present,this.cursor=this.input.length,this.render()):this.alert()):this.alert()}altUp(){return this.completion("prev")}altDown(){return this.completion("next")}prev(){return this.save(),super.prev()}save(){!this.store||(this.data=rse("save",this.data,this.input),this.store.set("values",this.data))}submit(){return this.store&&this.autosave===!0&&this.save(),super.submit()}};tse.exports=ise});var ose=I((MCt,nse)=>{"use strict";var C3e=Mc(),sse=class extends C3e{format(){return""}};nse.exports=sse});var lse=I((OCt,ase)=>{"use strict";var m3e=Mc(),Ase=class extends m3e{constructor(e={}){super(e);this.sep=this.options.separator||/, */,this.initial=e.initial||""}split(e=this.value){return e?String(e).split(this.sep):[]}format(){let e=this.state.submitted?this.styles.primary:r=>r;return this.list.map(e).join(", ")}async submit(e){let r=this.state.error||await this.validate(this.list,this.state);return r!==!0?(this.state.error=r,super.submit()):(this.value=this.list,super.submit())}get list(){return this.split()}};ase.exports=Ase});var gse=I((KCt,cse)=>{"use strict";var I3e=GA(),use=class extends I3e{constructor(e){super(_(P({},e),{multiple:!0}))}};cse.exports=use});var PN=I((UCt,fse)=>{"use strict";var E3e=Mc(),hse=class extends E3e{constructor(e={}){super(P({style:"number"},e));this.min=this.isValue(e.min)?this.toNumber(e.min):-Infinity,this.max=this.isValue(e.max)?this.toNumber(e.max):Infinity,this.delay=e.delay!=null?e.delay:1e3,this.float=e.float!==!1,this.round=e.round===!0||e.float===!1,this.major=e.major||10,this.minor=e.minor||1,this.initial=e.initial!=null?e.initial:"",this.input=String(this.initial),this.cursor=this.input.length,this.cursorShow()}append(e){return!/[-+.]/.test(e)||e==="."&&this.input.includes(".")?this.alert("invalid number"):super.append(e)}number(e){return super.append(e)}next(){return this.input&&this.input!==this.initial?this.alert():this.isValue(this.initial)?(this.input=this.initial,this.cursor=String(this.initial).length,this.render()):this.alert()}up(e){let r=e||this.minor,i=this.toNumber(this.input);return i>this.max+r?this.alert():(this.input=`${i+r}`,this.render())}down(e){let r=e||this.minor,i=this.toNumber(this.input);return i<this.min-r?this.alert():(this.input=`${i-r}`,this.render())}shiftDown(){return this.down(this.major)}shiftUp(){return this.up(this.major)}format(e=this.input){return typeof this.options.format=="function"?this.options.format.call(this,e):this.styles.info(e)}toNumber(e=""){return this.float?+e:Math.round(+e)}isValue(e){return/^[-+]?[0-9]+((\.)|(\.[0-9]+))?$/.test(e)}submit(){let e=[this.input,this.initial].find(r=>this.isValue(r));return this.value=this.toNumber(e||0),super.submit()}};fse.exports=hse});var dse=I((HCt,pse)=>{pse.exports=PN()});var Ise=I((GCt,Cse)=>{"use strict";var y3e=Mc(),mse=class extends y3e{constructor(e){super(e);this.cursorShow()}format(e=this.input){return this.keypressed?(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(e.length)):""}};Cse.exports=mse});var Bse=I((jCt,Ese)=>{"use strict";var w3e=js(),B3e=sC(),yse=Mi(),wse=class extends B3e{constructor(e={}){super(e);this.widths=[].concat(e.messageWidth||50),this.align=[].concat(e.align||"left"),this.linebreak=e.linebreak||!1,this.edgeLength=e.edgeLength||3,this.newline=e.newline||`
`;let r=e.startNumber||1;typeof this.scale=="number"&&(this.scaleKey=!1,this.scale=Array(this.scale).fill(0).map((i,n)=>({name:n+r})))}async reset(){return this.tableized=!1,await super.reset(),this.render()}tableize(){if(this.tableized===!0)return;this.tableized=!0;let e=0;for(let r of this.choices){e=Math.max(e,r.message.length),r.scaleIndex=r.initial||2,r.scale=[];for(let i=0;i<this.scale.length;i++)r.scale.push({index:i})}this.widths[0]=Math.min(this.widths[0],e+3)}async dispatch(e,r){if(this.multiple)return this[r.name]?await this[r.name](e,r):await super.dispatch(e,r);this.alert()}heading(e,r,i){return this.styles.strong(e)}separator(){return this.styles.muted(this.symbols.ellipsis)}right(){let e=this.focused;return e.scaleIndex>=this.scale.length-1?this.alert():(e.scaleIndex++,this.render())}left(){let e=this.focused;return e.scaleIndex<=0?this.alert():(e.scaleIndex--,this.render())}indent(){return""}format(){return this.state.submitted?this.choices.map(r=>this.styles.info(r.index)).join(", "):""}pointer(){return""}renderScaleKey(){if(this.scaleKey===!1||this.state.submitted)return"";let e=this.scale.map(i=>` ${i.name} - ${i.message}`);return["",...e].map(i=>this.styles.muted(i)).join(`
`)}renderScaleHeading(e){let r=this.scale.map(l=>l.name);typeof this.options.renderScaleHeading=="function"&&(r=this.options.renderScaleHeading.call(this,e));let i=this.scaleLength-r.join("").length,n=Math.round(i/(r.length-1)),o=r.map(l=>this.styles.strong(l)).join(" ".repeat(n)),a=" ".repeat(this.widths[0]);return this.margin[3]+a+this.margin[1]+o}scaleIndicator(e,r,i){if(typeof this.options.scaleIndicator=="function")return this.options.scaleIndicator.call(this,e,r,i);let n=e.scaleIndex===r.index;return r.disabled?this.styles.hint(this.symbols.radio.disabled):n?this.styles.success(this.symbols.radio.on):this.symbols.radio.off}renderScale(e,r){let i=e.scale.map(s=>this.scaleIndicator(e,s,r)),n=this.term==="Hyper"?"":" ";return i.join(n+this.symbols.line.repeat(this.edgeLength))}async renderChoice(e,r){await this.onChoice(e,r);let i=this.index===r,n=await this.pointer(e,r),s=await e.hint;s&&!yse.hasColor(s)&&(s=this.styles.muted(s));let o=p=>this.margin[3]+p.replace(/\s+$/,"").padEnd(this.widths[0]," "),a=this.newline,l=this.indent(e),c=await this.resolve(e.message,this.state,e,r),u=await this.renderScale(e,r),g=this.margin[1]+this.margin[3];this.scaleLength=w3e.unstyle(u).length,this.widths[0]=Math.min(this.widths[0],this.width-this.scaleLength-g.length);let h=yse.wordWrap(c,{width:this.widths[0],newline:a}).split(`
`).map(p=>o(p)+this.margin[1]);return i&&(u=this.styles.info(u),h=h.map(p=>this.styles.info(p))),h[0]+=u,this.linebreak&&h.push(""),[l+n,h.join(`
`)].filter(Boolean)}async renderChoices(){if(this.state.submitted)return"";this.tableize();let e=this.visible.map(async(n,s)=>await this.renderChoice(n,s)),r=await Promise.all(e),i=await this.renderScaleHeading();return this.margin[0]+[i,...r.map(n=>n.join(" "))].join(`
`)}async render(){let{submitted:e,size:r}=this.state,i=await this.prefix(),n=await this.separator(),s=await this.message(),o="";this.options.promptLine!==!1&&(o=[i,s,n,""].join(" "),this.state.prompt=o);let a=await this.header(),l=await this.format(),c=await this.renderScaleKey(),u=await this.error()||await this.hint(),g=await this.renderChoices(),f=await this.footer(),h=this.emptyError;l&&(o+=l),u&&!o.includes(u)&&(o+=" "+u),e&&!l&&!g.trim()&&this.multiple&&h!=null&&(o+=this.styles.danger(h)),this.clear(r),this.write([a,o,c,g,f].filter(Boolean).join(`
`)),this.state.submitted||this.write(this.margin[2]),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIndex;return this.base.submit.call(this)}};Ese.exports=wse});var Sse=I((YCt,Qse)=>{"use strict";var bse=js(),Q3e=(t="")=>typeof t=="string"?t.replace(/^['"]|['"]$/g,""):"",vse=class{constructor(e){this.name=e.key,this.field=e.field||{},this.value=Q3e(e.initial||this.field.initial||""),this.message=e.message||this.name,this.cursor=0,this.input="",this.lines=[]}},b3e=async(t={},e={},r=i=>i)=>{let i=new Set,n=t.fields||[],s=t.template,o=[],a=[],l=[],c=1;typeof s=="function"&&(s=await s());let u=-1,g=()=>s[++u],f=()=>s[u+1],h=p=>{p.line=c,o.push(p)};for(h({type:"bos",value:""});u<s.length-1;){let p=g();if(/^[^\S\n ]$/.test(p)){h({type:"text",value:p});continue}if(p===`
`){h({type:"newline",value:p}),c++;continue}if(p==="\\"){p+=g(),h({type:"text",value:p});continue}if((p==="$"||p==="#"||p==="{")&&f()==="{"){p+=g();let E={type:"template",open:p,inner:"",close:"",value:p},B;for(;B=g();){if(B==="}"){f()==="}"&&(B+=g()),E.value+=B,E.close=B;break}B===":"?(E.initial="",E.key=E.inner):E.initial!==void 0&&(E.initial+=B),E.value+=B,E.inner+=B}E.template=E.open+(E.initial||E.inner)+E.close,E.key=E.key||E.inner,e.hasOwnProperty(E.key)&&(E.initial=e[E.key]),E=r(E),h(E),l.push(E.key),i.add(E.key);let b=a.find(R=>R.name===E.key);E.field=n.find(R=>R.name===E.key),b||(b=new vse(E),a.push(b)),b.lines.push(E.line-1);continue}let d=o[o.length-1];d.type==="text"&&d.line===c?d.value+=p:h({type:"text",value:p})}return h({type:"eos",value:""}),{input:s,tabstops:o,unique:i,keys:l,items:a}};Qse.exports=async t=>{let e=t.options,r=new Set(e.required===!0?[]:e.required||[]),i=P(P({},e.values),e.initial),{tabstops:n,items:s,keys:o}=await b3e(e,i),a=DN("result",t,e),l=DN("format",t,e),c=DN("validate",t,e,!0),u=t.isValue.bind(t);return async(g={},f=!1)=>{let h=0;g.required=r,g.items=s,g.keys=o,g.output="";let p=async(B,b,R,H)=>{let L=await c(B,b,R,H);return L===!1?"Invalid field "+R.name:L};for(let B of n){let b=B.value,R=B.key;if(B.type!=="template"){b&&(g.output+=b);continue}if(B.type==="template"){let H=s.find(q=>q.name===R);e.required===!0&&g.required.add(H.name);let L=[H.input,g.values[H.value],H.value,b].find(u),J=(H.field||{}).message||B.inner;if(f){let q=await p(g.values[R],g,H,h);if(q&&typeof q=="string"||q===!1){g.invalid.set(R,q);continue}g.invalid.delete(R);let A=await a(g.values[R],g,H,h);g.output+=bse.unstyle(A);continue}H.placeholder=!1;let ne=b;b=await l(b,g,H,h),L!==b?(g.values[R]=L,b=t.styles.typing(L),g.missing.delete(J)):(g.values[R]=void 0,L=`<${J}>`,b=t.styles.primary(L),H.placeholder=!0,g.required.has(R)&&g.missing.add(J)),g.missing.has(J)&&g.validating&&(b=t.styles.warning(L)),g.invalid.has(R)&&g.validating&&(b=t.styles.danger(L)),h===g.index&&(ne!==b?b=t.styles.underline(b):b=t.styles.heading(bse.unstyle(b))),h++}b&&(g.output+=b)}let d=g.output.split(`
`).map(B=>" "+B),m=s.length,E=0;for(let B of s)g.invalid.has(B.name)&&B.lines.forEach(b=>{d[b][0]===" "&&(d[b]=g.styles.danger(g.symbols.bullet)+d[b].slice(1))}),t.isValue(g.values[B.name])&&E++;return g.completed=(E/m*100).toFixed(0),g.output=d.join(`
`),g.output}};function DN(t,e,r,i){return(n,s,o,a)=>typeof o.field[t]=="function"?o.field[t].call(e,n,s,o,a):[i,n].find(l=>e.isValue(l))}});var Pse=I((qCt,xse)=>{"use strict";var v3e=js(),S3e=Sse(),x3e=sf(),kse=class extends x3e{constructor(e){super(e);this.cursorHide(),this.reset(!0)}async initialize(){this.interpolate=await S3e(this),await super.initialize()}async reset(e){this.state.keys=[],this.state.invalid=new Map,this.state.missing=new Set,this.state.completed=0,this.state.values={},e!==!0&&(await this.initialize(),await this.render())}moveCursor(e){let r=this.getItem();this.cursor+=e,r.cursor+=e}dispatch(e,r){if(!r.code&&!r.ctrl&&e!=null&&this.getItem()){this.append(e,r);return}this.alert()}append(e,r){let i=this.getItem(),n=i.input.slice(0,this.cursor),s=i.input.slice(this.cursor);this.input=i.input=`${n}${e}${s}`,this.moveCursor(1),this.render()}delete(){let e=this.getItem();if(this.cursor<=0||!e.input)return this.alert();let r=e.input.slice(this.cursor),i=e.input.slice(0,this.cursor-1);this.input=e.input=`${i}${r}`,this.moveCursor(-1),this.render()}increment(e){return e>=this.state.keys.length-1?0:e+1}decrement(e){return e<=0?this.state.keys.length-1:e-1}first(){this.state.index=0,this.render()}last(){this.state.index=this.state.keys.length-1,this.render()}right(){if(this.cursor>=this.input.length)return this.alert();this.moveCursor(1),this.render()}left(){if(this.cursor<=0)return this.alert();this.moveCursor(-1),this.render()}prev(){this.state.index=this.decrement(this.state.index),this.getItem(),this.render()}next(){this.state.index=this.increment(this.state.index),this.getItem(),this.render()}up(){this.prev()}down(){this.next()}format(e){let r=this.state.completed<100?this.styles.warning:this.styles.success;return this.state.submitted===!0&&this.state.completed!==100&&(r=this.styles.danger),r(`${this.state.completed}% completed`)}async render(){let{index:e,keys:r=[],submitted:i,size:n}=this.state,s=[this.options.newline,`
`].find(B=>B!=null),o=await this.prefix(),a=await this.separator(),l=await this.message(),c=[o,l,a].filter(Boolean).join(" ");this.state.prompt=c;let u=await this.header(),g=await this.error()||"",f=await this.hint()||"",h=i?"":await this.interpolate(this.state),p=this.state.key=r[e]||"",d=await this.format(p),m=await this.footer();d&&(c+=" "+d),f&&!d&&this.state.completed===0&&(c+=" "+f),this.clear(n);let E=[u,c,h,m,g.trim()];this.write(E.filter(Boolean).join(s)),this.restore()}getItem(e){let{items:r,keys:i,index:n}=this.state,s=r.find(o=>o.name===i[n]);return s&&s.input!=null&&(this.input=s.input,this.cursor=s.cursor),s}async submit(){typeof this.interpolate!="function"&&await this.initialize(),await this.interpolate(this.state,!0);let{invalid:e,missing:r,output:i,values:n}=this.state;if(e.size){let a="";for(let[l,c]of e)a+=`Invalid ${l}: ${c}
`;return this.state.error=a,super.submit()}if(r.size)return this.state.error="Required: "+[...r.keys()].join(", "),super.submit();let o=v3e.unstyle(i).split(`
`).map(a=>a.slice(1)).join(`
`);return this.value={values:n,result:o},super.submit()}};xse.exports=kse});var Fse=I((JCt,Dse)=>{"use strict";var k3e="(Use <shift>+<up/down> to sort)",P3e=GA(),Rse=class extends P3e{constructor(e){super(_(P({},e),{reorder:!1,sort:!0,multiple:!0}));this.state.hint=[this.options.hint,k3e].find(this.isValue.bind(this))}indicator(){return""}async renderChoice(e,r){let i=await super.renderChoice(e,r),n=this.symbols.identicalTo+" ",s=this.index===r&&this.sorting?this.styles.muted(n):" ";return this.options.drag===!1&&(s=""),this.options.numbered===!0?s+`${r+1} - `+i:s+i}get selected(){return this.choices}submit(){return this.value=this.choices.map(e=>e.value),super.submit()}};Dse.exports=Rse});var Tse=I((WCt,Nse)=>{"use strict";var D3e=sC(),Lse=class extends D3e{constructor(e={}){super(e);if(this.emptyError=e.emptyError||"No items were selected",this.term=process.env.TERM_PROGRAM,!this.options.header){let r=["","4 - Strongly Agree","3 - Agree","2 - Neutral","1 - Disagree","0 - Strongly Disagree",""];r=r.map(i=>this.styles.muted(i)),this.state.header=r.join(`
`)}}async toChoices(...e){if(this.createdScales)return!1;this.createdScales=!0;let r=await super.toChoices(...e);for(let i of r)i.scale=R3e(5,this.options),i.scaleIdx=2;return r}dispatch(){this.alert()}space(){let e=this.focused,r=e.scale[e.scaleIdx],i=r.selected;return e.scale.forEach(n=>n.selected=!1),r.selected=!i,this.render()}indicator(){return""}pointer(){return""}separator(){return this.styles.muted(this.symbols.ellipsis)}right(){let e=this.focused;return e.scaleIdx>=e.scale.length-1?this.alert():(e.scaleIdx++,this.render())}left(){let e=this.focused;return e.scaleIdx<=0?this.alert():(e.scaleIdx--,this.render())}indent(){return" "}async renderChoice(e,r){await this.onChoice(e,r);let i=this.index===r,n=this.term==="Hyper",s=n?9:8,o=n?"":" ",a=this.symbols.line.repeat(s),l=" ".repeat(s+(n?0:1)),c=b=>(b?this.styles.success("\u25C9"):"\u25EF")+o,u=r+1+".",g=i?this.styles.heading:this.styles.noop,f=await this.resolve(e.message,this.state,e,r),h=this.indent(e),p=h+e.scale.map((b,R)=>c(R===e.scaleIdx)).join(a),d=b=>b===e.scaleIdx?g(b):b,m=h+e.scale.map((b,R)=>d(R)).join(l),E=()=>[u,f].filter(Boolean).join(" "),B=()=>[E(),p,m," "].filter(Boolean).join(`
`);return i&&(p=this.styles.cyan(p),m=this.styles.cyan(m)),B()}async renderChoices(){if(this.state.submitted)return"";let e=this.visible.map(async(i,n)=>await this.renderChoice(i,n)),r=await Promise.all(e);return r.length||r.push(this.styles.danger("No matching choices")),r.join(`
`)}format(){return this.state.submitted?this.choices.map(r=>this.styles.info(r.scaleIdx)).join(", "):""}async render(){let{submitted:e,size:r}=this.state,i=await this.prefix(),n=await this.separator(),s=await this.message(),o=[i,s,n].filter(Boolean).join(" ");this.state.prompt=o;let a=await this.header(),l=await this.format(),c=await this.error()||await this.hint(),u=await this.renderChoices(),g=await this.footer();(l||!c)&&(o+=" "+l),c&&!o.includes(c)&&(o+=" "+c),e&&!l&&!u&&this.multiple&&this.type!=="form"&&(o+=this.styles.danger(this.emptyError)),this.clear(r),this.write([o,a,u,g].filter(Boolean).join(`
`)),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIdx;return this.base.submit.call(this)}};function R3e(t,e={}){if(Array.isArray(e.scale))return e.scale.map(i=>P({},i));let r=[];for(let i=1;i<t+1;i++)r.push({i,selected:!1});return r}Nse.exports=Lse});var Ose=I((zCt,Mse)=>{Mse.exports=kN()});var Hse=I((VCt,Kse)=>{"use strict";var F3e=K0(),Use=class extends F3e{async initialize(){await super.initialize(),this.value=this.initial=!!this.options.initial,this.disabled=this.options.disabled||"no",this.enabled=this.options.enabled||"yes",await this.render()}reset(){this.value=this.initial,this.render()}delete(){this.alert()}toggle(){this.value=!this.value,this.render()}enable(){if(this.value===!0)return this.alert();this.value=!0,this.render()}disable(){if(this.value===!1)return this.alert();this.value=!1,this.render()}up(){this.toggle()}down(){this.toggle()}right(){this.toggle()}left(){this.toggle()}next(){this.toggle()}prev(){this.toggle()}dispatch(e="",r){switch(e.toLowerCase()){case" ":return this.toggle();case"1":case"y":case"t":return this.enable();case"0":case"n":case"f":return this.disable();default:return this.alert()}}format(){let e=i=>this.styles.primary.underline(i);return[this.value?this.disabled:e(this.disabled),this.value?e(this.enabled):this.enabled].join(this.styles.muted(" / "))}async render(){let{size:e}=this.state,r=await this.header(),i=await this.prefix(),n=await this.separator(),s=await this.message(),o=await this.format(),a=await this.error()||await this.hint(),l=await this.footer(),c=[i,s,n,o].join(" ");this.state.prompt=c,a&&!c.includes(a)&&(c+=" "+a),this.clear(e),this.write([r,c,l].filter(Boolean).join(`
`)),this.write(this.margin[2]),this.restore()}};Kse.exports=Use});var Yse=I((_Ct,Gse)=>{"use strict";var N3e=GA(),jse=class extends N3e{constructor(e){super(e);if(typeof this.options.correctChoice!="number"||this.options.correctChoice<0)throw new Error("Please specify the index of the correct answer from the list of choices")}async toChoices(e,r){let i=await super.toChoices(e,r);if(i.length<2)throw new Error("Please give at least two choices to the user");if(this.options.correctChoice>i.length)throw new Error("Please specify the index of the correct answer from the list of choices");return i}check(e){return e.index===this.options.correctChoice}async result(e){return{selectedAnswer:e,correctAnswer:this.options.choices[this.options.correctChoice].value,correct:await this.check(this.state)}}};Gse.exports=jse});var Jse=I(RN=>{"use strict";var qse=Mi(),ti=(t,e)=>{qse.defineExport(RN,t,e),qse.defineExport(RN,t.toLowerCase(),e)};ti("AutoComplete",()=>Nne());ti("BasicAuth",()=>Gne());ti("Confirm",()=>Wne());ti("Editable",()=>_ne());ti("Form",()=>O0());ti("Input",()=>kN());ti("Invisible",()=>ose());ti("List",()=>lse());ti("MultiSelect",()=>gse());ti("Numeral",()=>dse());ti("Password",()=>Ise());ti("Scale",()=>Bse());ti("Select",()=>GA());ti("Snippet",()=>Pse());ti("Sort",()=>Fse());ti("Survey",()=>Tse());ti("Text",()=>Ose());ti("Toggle",()=>Hse());ti("Quiz",()=>Yse())});var zse=I((ZCt,Wse)=>{Wse.exports={ArrayPrompt:sC(),AuthPrompt:xN(),BooleanPrompt:K0(),NumberPrompt:PN(),StringPrompt:Mc()}});var aC=I(($Ct,Vse)=>{"use strict";var _se=require("assert"),FN=require("events"),jA=Mi(),No=class extends FN{constructor(e,r){super();this.options=jA.merge({},e),this.answers=P({},r)}register(e,r){if(jA.isObject(e)){for(let n of Object.keys(e))this.register(n,e[n]);return this}_se.equal(typeof r,"function","expected a function");let i=e.toLowerCase();return r.prototype instanceof this.Prompt?this.prompts[i]=r:this.prompts[i]=r(this.Prompt,this),this}async prompt(e=[]){for(let r of[].concat(e))try{typeof r=="function"&&(r=await r.call(this)),await this.ask(jA.merge({},this.options,r))}catch(i){return Promise.reject(i)}return this.answers}async ask(e){typeof e=="function"&&(e=await e.call(this));let r=jA.merge({},this.options,e),{type:i,name:n}=e,{set:s,get:o}=jA;if(typeof i=="function"&&(i=await i.call(this,e,this.answers)),!i)return this.answers[n];_se(this.prompts[i],`Prompt "${i}" is not registered`);let a=new this.prompts[i](r),l=o(this.answers,n);a.state.answers=this.answers,a.enquirer=this,n&&a.on("submit",u=>{this.emit("answer",n,u,a),s(this.answers,n,u)});let c=a.emit.bind(a);return a.emit=(...u)=>(this.emit.call(this,...u),c(...u)),this.emit("prompt",a,this),r.autofill&&l!=null?(a.value=a.input=l,r.autofill==="show"&&await a.submit()):l=a.value=await a.run(),l}use(e){return e.call(this,this),this}set Prompt(e){this._Prompt=e}get Prompt(){return this._Prompt||this.constructor.Prompt}get prompts(){return this.constructor.prompts}static set Prompt(e){this._Prompt=e}static get Prompt(){return this._Prompt||sf()}static get prompts(){return Jse()}static get types(){return zse()}static get prompt(){let e=(r,...i)=>{let n=new this(...i),s=n.emit.bind(n);return n.emit=(...o)=>(e.emit(...o),s(...o)),n.prompt(r)};return jA.mixinEmitter(e,new FN),e}};jA.mixinEmitter(No,new FN);var NN=No.prompts;for(let t of Object.keys(NN)){let e=t.toLowerCase(),r=i=>new NN[t](i).run();No.prompt[e]=r,No[e]=r,No[t]||Reflect.defineProperty(No,t,{get:()=>NN[t]})}var oC=t=>{jA.defineExport(No,t,()=>No.types[t])};oC("ArrayPrompt");oC("AuthPrompt");oC("BooleanPrompt");oC("NumberPrompt");oC("StringPrompt");Vse.exports=No});var loe=I((Gmt,Aoe)=>{function K3e(t,e){for(var r=-1,i=t==null?0:t.length;++r<i&&e(t[r],r,t)!==!1;);return t}Aoe.exports=K3e});var Af=I((jmt,coe)=>{var U3e=XB(),H3e=jg();function G3e(t,e,r,i){var n=!r;r||(r={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=i?i(r[a],t[a],a,r,t):void 0;l===void 0&&(l=t[a]),n?H3e(r,a,l):U3e(r,a,l)}return r}coe.exports=G3e});var goe=I((Ymt,uoe)=>{var j3e=Af(),Y3e=zg();function q3e(t,e){return t&&j3e(e,Y3e(e),t)}uoe.exports=q3e});var hoe=I((qmt,foe)=>{function J3e(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}foe.exports=J3e});var doe=I((Jmt,poe)=>{var W3e=Gs(),z3e=u0(),V3e=hoe(),_3e=Object.prototype,X3e=_3e.hasOwnProperty;function Z3e(t){if(!W3e(t))return V3e(t);var e=z3e(t),r=[];for(var i in t)i=="constructor"&&(e||!X3e.call(t,i))||r.push(i);return r}poe.exports=Z3e});var lf=I((Wmt,Coe)=>{var $3e=bF(),eWe=doe(),tWe=Hd();function rWe(t){return tWe(t)?$3e(t,!0):eWe(t)}Coe.exports=rWe});var Ioe=I((zmt,moe)=>{var iWe=Af(),nWe=lf();function sWe(t,e){return t&&iWe(e,nWe(e),t)}moe.exports=sWe});var UN=I((hC,cf)=>{var oWe=Ks(),Eoe=typeof hC=="object"&&hC&&!hC.nodeType&&hC,yoe=Eoe&&typeof cf=="object"&&cf&&!cf.nodeType&&cf,aWe=yoe&&yoe.exports===Eoe,woe=aWe?oWe.Buffer:void 0,Boe=woe?woe.allocUnsafe:void 0;function AWe(t,e){if(e)return t.slice();var r=t.length,i=Boe?Boe(r):new t.constructor(r);re Line truncated
`:"";return o?g+=`@IF EXIST ${o} (\r
${o} ${l} ${n} ${u}%*\r
) ELSE (\r
@SETLOCAL\r
@SET PATHEXT=%PATHEXT:;.JS;=;%\r
${a} ${l} ${n} ${u}%*\r
)\r
`:g+=`@${a} ${l} ${n} ${u}%*\r
`,g}function P6e(t,e,r){let i=Is.relative(Is.dirname(e),t),n=r.prog&&r.prog.split("\\").join("/"),s;i=i.split("\\").join("/");let o=Is.isAbsolute(i)?`"${i}"`:`"$basedir/${i}"`,a=r.args||"",l=cT(r.nodePath).posix;n?(s=`"$basedir/${r.prog}"`,i=o):(n=o,a="",i="");let c=r.progArgs?`${r.progArgs.join(" ")} `:"",u=`#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\\\,/,g')")
case \`uname\` in
*CYGWIN*) basedir=\`cygpath -w "$basedir"\`;;
esac
`,g=r.nodePath?`export NODE_PATH="${l}"
`:"";return s?u+=`${g}if [ -x ${s} ]; then
exec ${s} ${a} ${i} ${c}"$@"
else
exec ${n} ${a} ${i} ${c}"$@"
fi
`:u+=`${g}${n} ${a} ${i} ${c}"$@"
exit $?
`,u}function D6e(t,e,r){let i=Is.relative(Is.dirname(e),t),n=r.prog&&r.prog.split("\\").join("/"),s=n&&`"${n}$exe"`,o;i=i.split("\\").join("/");let a=Is.isAbsolute(i)?`"${i}"`:`"$basedir/${i}"`,l=r.args||"",c=cT(r.nodePath),u=c.win32,g=c.posix;s?(o=`"$basedir/${r.prog}$exe"`,i=a):(s=a,l="",i="");let f=r.progArgs?`${r.progArgs.join(" ")} `:"",h=`#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
${r.nodePath?`$env_node_path=$env:NODE_PATH
$env:NODE_PATH="${u}"
`:""}if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}`;return r.nodePath&&(h+=` else {
$env:NODE_PATH="${g}"
}`),o?h+=`
$ret=0
if (Test-Path ${o}) {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & ${o} ${l} ${i} ${f}$args
} else {
& ${o} ${l} ${i} ${f}$args
}
$ret=$LASTEXITCODE
} else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & ${s} ${l} ${i} ${f}$args
} else {
& ${s} ${l} ${i} ${f}$args
}
$ret=$LASTEXITCODE
}
${r.nodePath?`$env:NODE_PATH=$env_node_path
`:""}exit $ret
`:h+=`
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & ${s} ${l} ${i} ${f}$args
} else {
& ${s} ${l} ${i} ${f}$args
}
${r.nodePath?`$env:NODE_PATH=$env_node_path
`:""}exit $LASTEXITCODE
`,h}function F6e(t,e){return e.fs_.chmod(t,493)}function cT(t){if(!t)return{win32:"",posix:""};let e=typeof t=="string"?t.split(Is.delimiter):Array.from(t),r={};for(let i=0;i<e.length;i++){let n=e[i].split("/").join("\\"),s=hce()?e[i].split("\\").join("/").replace(/^([^:\\/]*):/,(o,a)=>`/mnt/${a.toLowerCase()}`):e[i];r.win32=r.win32?`${r.win32};${n}`:n,r.posix=r.posix?`${r.posix}:${s}`:s,r[i]={win32:n,posix:s}}return r}fce.exports=lT});var PT=I((fPt,Nce)=>{Nce.exports=require("stream")});var Oce=I((hPt,Lce)=>{"use strict";function Tce(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function e9e(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Tce(Object(r),!0).forEach(function(i){$6e(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tce(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function $6e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function t9e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mce(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r9e(t,e,r){return e&&Mce(t.prototype,e),r&&Mce(t,r),t}var i9e=require("buffer"),iQ=i9e.Buffer,n9e=require("util"),DT=n9e.inspect,s9e=DT&&DT.custom||"inspect";function o9e(t,e,r){iQ.prototype.copy.call(t,e,r)}Lce.exports=function(){function t(){t9e(this,t),this.head=null,this.tail=null,this.length=0}return r9e(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return iQ.alloc(0);for(var i=iQ.allocUnsafe(r>>>0),n=this.head,s=0;n;)o9e(n.data,i,s),s+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,s=i.data;for(r-=s.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++n}return this.length-=n,s}},{key:"_getBuffer",value:function(r){var i=iQ.allocUnsafe(r),n=this.head,s=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,a),r-=a,r===0){a===o.length?(++s,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++s}return this.length-=s,i}},{key:s9e,value:function(r,i){return DT(this,e9e({},i,{depth:0,customInspect:!1}))}}]),t}()});var FT=I((pPt,Kce)=>{"use strict";function a9e(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(RT,this,t)):process.nextTick(RT,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(nQ,r):(r._writableState.errorEmitted=!0,process.nextTick(Uce,r,s)):process.nextTick(Uce,r,s):e?(process.nextTick(nQ,r),e(s)):process.nextTick(nQ,r)}),this)}function Uce(t,e){RT(t,e),nQ(t)}function nQ(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function A9e(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function RT(t,e){t.emit("error",e)}function l9e(t,e){var r=t._readableState,i=t._wr Line truncated
`)),t.linkname&&(e+=AM(" linkpath="+t.linkname+`
`));var r=t.pax;if(r)for(var i in r)e+=AM(" "+i+"="+r[i]+`
`);return Buffer.from(e)};vf.decodePax=function(t){for(var e={};t.length;){for(var r=0;r<t.length&&t[r]!==32;)r++;var i=parseInt(t.slice(0,r).toString(),10);if(!i)return e;var n=t.slice(r+1,i-1).toString(),s=n.indexOf("=");if(s===-1)return e;e[n.slice(0,s)]=n.slice(s+1),t=t.slice(i)}return e};vf.encode=function(t){var e=tVe(512),r=t.name,i="";if(t.typeflag===5&&r[r.length-1]!=="/"&&(r+="/"),Buffer.byteLength(r)!==r.length)return null;for(;Buffer.byteLength(r)>100;){var n=r.indexOf("/");if(n===-1)return null;i+=i?"/"+r.slice(0,n):r.slice(0,n),r=r.slice(n+1)}return Buffer.byteLength(r)>100||Buffer.byteLength(i)>155||t.linkname&&Buffer.byteLength(t.linkname)>100?null:(e.write(r),e.write(tl(t.mode&aVe,6),100),e.write(tl(t.uid,6),108),e.write(tl(t.gid,6),116),e.write(tl(t.size,11),124),e.write(tl(t.mtime.getTime()/1e3|0,11),136),e[156]=Uue+cVe(t.type),t.linkname&&e.write(t.linkname,157),Hue.copy(e,cm),nVe.copy(e,aM),t.uname&&e.write(t.uname,265),t.gname&&e.write(t.gname,297),e.write(tl(t.devmajor||0,6),329),e.write(tl(t.devminor||0,6),337),i&&e.write(i,345),e.write(tl(jue(e),6),148),e)};vf.decode=function(t,e,r){var i=t[156]===0?0:t[156]-Uue,n=Sf(t,0,100,e),s=rl(t,100,8),o=rl(t,108,8),a=rl(t,116,8),l=rl(t,124,12),c=rl(t,136,12),u=lVe(i),g=t[157]===0?null:Sf(t,157,100,e),f=Sf(t,265,32),h=Sf(t,297,32),p=rl(t,329,8),d=rl(t,337,8),m=jue(t);if(m===8*32)return null;if(m!==rl(t,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(Hue.compare(t,cm,cm+6)===0)t[345]&&(n=Sf(t,345,155,e)+"/"+n);else if(!(sVe.compare(t,cm,cm+6)===0&&oVe.compare(t,aM,aM+2)===0)){if(!r)throw new Error("Invalid tar header: unknown format.")}return i===0&&n&&n[n.length-1]==="/"&&(i=5),{name:n,mode:s,uid:o,gid:a,size:l,mtime:new Date(1e3*c),type:u,linkname:g,uname:f,gname:h,devmajor:p,devminor:d}}});var _ue=I((LPt,Yue)=>{var que=require("util"),gVe=Kue(),um=lM(),Jue=bf().Writable,Wue=bf().PassThrough,zue=function(){},Vue=function(t){return t&=511,t&&512-t},fVe=function(t,e){var r=new IQ(t,e);return r.end(),r},hVe=function(t,e){return e.path&&(t.name=e.path),e.linkpath&&(t.linkname=e.linkpath),e.size&&(t.size=parseInt(e.size,10)),t.pax=e,t},IQ=function(t,e){this._parent=t,this.offset=e,Wue.call(this,{autoDestroy:!1})};que.inherits(IQ,Wue);IQ.prototype.destroy=function(t){this._parent.destroy(t)};var Wa=function(t){if(!(this instanceof Wa))return new Wa(t);Jue.call(this,t),t=t||{},this._offset=0,this._buffer=gVe(),this._missing=0,this._partial=!1,this._onparse=zue,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var e=this,r=e._buffer,i=function(){e._continue()},n=function(f){if(e._locked=!1,f)return e.destroy(f);e._stream||i()},s=function(){e._stream=null;var f=Vue(e._header.size);f?e._parse(f,o):e._parse(512,g),e._locked||i()},o=function(){e._buffer.consume(Vue(e._header.size)),e._parse(512,g),i()},a=function(){var f=e._header.size;e._paxGlobal=um.decodePax(r.slice(0,f)),r.consume(f),s()},l=function(){var f=e._header.size;e._pax=um.decodePax(r.slice(0,f)),e._paxGlobal&&(e._pax=Object.assign({},e._paxGlobal,e._pax)),r.consume(f),s()},c=function(){var f=e._header.size;this._gnuLongPath=um.decodeLongPath(r.slice(0,f),t.filenameEncoding),r.consume(f),s()},u=function(){var f=e._header.size;this._gnuLongLinkPath=um.decodeLongPath(r.slice(0,f),t.filenameEncoding),r.consume(f),s()},g=function(){var f=e._offset,h;try{h=e._header=um.decode(r.slice(0,512),t.filenameEncoding,t.allowUnknownFormat)}catch(p){e.emit("error",p)}if(r.consume(512),!h){e._parse(512,g),i();return}if(h.type==="gnu-long-path"){e._parse(h.size,c),i();return}if(h.type==="gnu-long-link-path"){e._parse(h.size,u),i();return}if(h.type==="pax-global-header"){e._parse(h.size,a),i();return}if(h.type==="pax-header"){e._parse(h.size,l),i();return}if(e._gnuLongPath&&(h.name=e._gnuLongPath,e._gnuLongPath=null),e._gnuLongLinkPath&&(h.linkname=e._gnuLongLinkPath,e._gnuLongLinkPath=null),e._pax&&(e._header=h=hVe(h,e._pax),e._pax=null),e._locked=!0,!h.size||h.type==="directory"){e._parse(512,g),e.emit("entry",h,fVe(e,f),n);return}e._stream=new IQ(e,f),e.emit("entry",h,e._stream,n),e._parse(h.size,s),i()};this._onheader=g,this._parse(512,g)};que.inherits(Wa,Jue);Wa.prototype.destroy=function(t){this._destroyed||(this._destroyed=!0,t&&this.emit("error",t),this.emit("close"),this._stream&&this._stream.emit("close"))};Wa.prototype._parse=function(t,e){this._destroyed||(this._offset+=t,this._missing=t,e===this._onheader&&(this._partial=!1),this._onparse=e)};Wa.prototype._continue=function(){if(!this._destroyed){var t=this._cb;this._cb=zue,this._overflow?this._write(this._overflow,void 0,t):t()}};Wa.prototype._write=function(t,e,r){if(!this._destroyed){var i=this._stream,n=this._buffer,s=this._missing;if(t.length&&(this._partial=!0),t.length<s)return this._missing-=t.length,this._overflow=null,i?i.write(t,r):(n.appen Line truncated
Wanted: ${r.size}
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${i}: Wanted ${e}, but got ${s}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=s,a.expected=e,a.algorithm=i,a.sri=e,a}}Ko.exports.checkStream=JVe;function JVe(t,e,r){r=on(r);let i=r.Promise||Promise,n=EM(r.concat({integrity:e}));return new i((s,o)=>{t.pipe(n),t.on("error",o),n.on("error",o);let a;n.on("verified",l=>{a=l}),n.on("end",()=>s(a)),n.on("data",()=>{})})}Ko.exports.integrityStream=EM;function EM(t){t=on(t);let e=t.integrity&&Uo(t.integrity,t),r=e&&Object.keys(e).length,i=r&&e.pickAlgorithm(t),n=r&&e[i],s=Array.from(new Set(t.algorithms.concat(i?[i]:[]))),o=s.map(hm.createHash),a=0,l=new TVe({transform(c,u,g){a+=c.length,o.forEach(f=>f.update(c,u)),g(null,c,u)}}).on("end",()=>{let c=t.options&&t.options.length?`?${t.options.join("?")}`:"",u=Uo(o.map((f,h)=>`${s[h]}-${f.digest("base64")}${c}`).join(" "),t),g=r&&u.match(e,t);if(typeof t.size=="number"&&a!==t.size){let f=new Error(`stream size mismatch when checking ${e}.
Wanted: ${t.size}
Found: ${a}`);f.code="EBADSIZE",f.found=a,f.expected=t.size,f.sri=e,l.emit("error",f)}else if(t.integrity&&!g){let f=new Error(`${e} integrity checksum failed when using ${i}: wanted ${n} but got ${u}. (${a} bytes)`);f.code="EINTEGRITY",f.found=u,f.expected=n,f.algorithm=i,f.sri=e,l.emit("error",f)}else l.emit("size",a),l.emit("integrity",u),g&&l.emit("verified",g)});return l}Ko.exports.create=WVe;function WVe(t){t=on(t);let e=t.algorithms,r=t.options.length?`?${t.options.join("?")}`:"",i=e.map(hm.createHash);return{update:function(n,s){return i.forEach(o=>o.update(n,s)),this},digest:function(n){return e.reduce((o,a)=>{let l=i.shift().digest("base64"),c=new zc(`${a}-${l}${r}`,t);if(c.algorithm&&c.digest){let u=c.algorithm;o[u]||(o[u]=[]),o[u].push(c)}return o},new Df)}}}var zVe=new Set(hm.getHashes()),Ige=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>zVe.has(t));function HVe(t,e){return Ige.indexOf(t.toLowerCase())>=Ige.indexOf(e.toLowerCase())?t:e}});var Fd={};it(Fd,{BuildType:()=>Gn,Cache:()=>Qt,Configuration:()=>fe,DEFAULT_LOCK_FILENAME:()=>DR,DEFAULT_RC_FILENAME:()=>PR,FormatType:()=>ps,InstallMode:()=>li,LightReport:()=>Fa,LinkType:()=>gt,Manifest:()=>Ze,MessageName:()=>z,PackageExtensionStatus:()=>ki,PackageExtensionType:()=>oi,Project:()=>Ke,ProjectLookup:()=>KA,Report:()=>Xi,ReportError:()=>nt,SettingsType:()=>ge,StreamReport:()=>Fe,TAG_REGEXP:()=>Rg,TelemetryManager:()=>Rd,ThrowReport:()=>ei,VirtualFetcher:()=>dd,Workspace:()=>Dd,WorkspaceResolver:()=>Yr,YarnVersion:()=>Zr,execUtils:()=>hr,folderUtils:()=>Pb,formatUtils:()=>ue,hashUtils:()=>mn,httpUtils:()=>Zt,miscUtils:()=>de,scriptUtils:()=>Kt,semverUtils:()=>qt,structUtils:()=>S,tgzUtils:()=>Ai,treeUtils:()=>Hs});var hr={};it(hr,{EndStrategy:()=>Pn,execvp:()=>Nhe,pipevp:()=>to});var ch={};it(ch,{AliasFS:()=>Xo,CwdFS:()=>Ft,DEFAULT_COMPRESSION_LEVEL:()=>pl,FakeFS:()=>eA,Filename:()=>wt,JailFS:()=>Zo,LazyFS:()=>oh,LinkStrategy:()=>eh,NoFS:()=>bI,NodeFS:()=>Wt,PortablePath:()=>Se,PosixFS:()=>ah,ProxiedFS:()=>fi,VirtualFS:()=>Pr,ZipFS:()=>Jr,ZipOpenFS:()=>Jn,constants:()=>mr,extendFs:()=>SI,normalizeLineEndings:()=>ul,npath:()=>M,opendir:()=>wI,patchFs:()=>pb,ppath:()=>v,statUtils:()=>rb,toFilename:()=>kr,xfs:()=>T});var mr={};it(mr,{SAFE_TIME:()=>tb,S_IFDIR:()=>zo,S_IFLNK:()=>_o,S_IFMT:()=>kn,S_IFREG:()=>Vo});var kn=61440,zo=16384,Vo=32768,_o=40960,tb=456789e3;var rb={};it(rb,{BigIntStatsEntry:()=>Xf,DEFAULT_MODE:()=>_f,DirEntry:()=>uO,StatEntry:()=>Za,areStatsEqual:()=>nb,clearStats:()=>pI,convertToBigIntStats:()=>dI,makeDefaultStats:()=>Zf,makeEmptyStats:()=>Jfe});var ib=ie(require("util"));var _f=Vo|420,uO=class{constructor(){this.name="";this.mode=0}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&kn)===zo}isFIFO(){return!1}isFile(){return(this.mode&kn)===Vo}isSocket(){return!1}isSymbolicLink(){return(this.mode&kn)===_o}},Za=class{constructor(){this.uid=0;this.gid=0;this.size=0;this.blksize=0;this.atimeMs=0;this.mtimeMs=0;this.ctimeMs=0;this.birthtimeMs=0;this.atime=new Date(0);this.mtime=new Date(0);this.ctime=new Date(0);this.birthtime=new Date(0);this.dev=0;this.ino=0;this.mode=_f;this.nlink=1;this.rdev=0;this.blocks=1}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&kn)===zo}isFIFO(){return!1}isFile(){return(this.mode&kn)===Vo}isSocket(){return!1}isSymbolicLink(){return(this.mode&kn)===_o}},Xf=class{constructor(){this.uid=BigInt(0);this.gid=BigInt(0);this.size=BigInt(0);this.blksize=BigInt(0);this.atimeMs=BigInt(0);this.mtimeMs=BigInt(0);this.ctimeMs=BigInt(0);this.birthtimeMs=BigInt(0);this.atimeNs=BigInt(0);this.mtimeNs=BigInt(0);this.ctimeNs=BigInt(0);this.birthtimeNs=BigInt(0);this.atime=new Date(0);this.mtime=new Date(0);this.ctime=new Date(0);this.birthtime=new Date(0);this.dev=BigInt(0);this.ino=BigInt(0);this.mode=BigInt(_f);this.nlink=BigInt(1);this.rdev=BigInt(0);this.blocks=BigInt(1)}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&BigInt(kn))===BigInt(zo)}isFIFO(){return!1}isFile(){return(this.mode&BigInt(kn))===BigInt(Vo)}isSocket(){return!1}isSymbolicLink(){return(this.mode&BigInt(kn))===BigInt(_o)}};function Zf(){return new Za}function Jfe(){return pI(Zf())}function pI(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let r=t[e];typeof r=="number"?t[e]=0:typeof r=="bigint"?t[e]=BigInt(0):ib.types.isDate(r)&&(t[e]=new Date(0))}return t}function dI(t){let e=new Xf;for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let i=t[r];typeof i=="number"?e[r]=BigInt(i):ib.types.isDate(i)&&(e[r]=new Date(i))}return e.atimeNs=e.atimeMs*BigInt(1e6),e.mtimeNs=e.mtimeMs*BigInt(1e6),e.ctimeNs=e.ctimeMs*BigInt(1e6),e.birthtimeNs=e.birthtimeMs*BigInt(1e6),e}function nb(t,e){if(t.atimeMs!==e.atimeMs||t.birthtimeMs!==e.birthtimeMs||t.blksize!==e.blksize||t.blocks!==e.blocks||t.ctimeMs!==e.ctimeMs||t.dev!==e.dev||t.gid Line truncated
`)}writeJsonSync(e,r){return this.writeFileSync(e,`${JSON.stringify(r,null,2)}
`)}async preserveTimePromise(e,r){let i=await this.lstatPromise(e),n=await r();typeof n!="undefined"&&(e=n),this.lutimesPromise?await this.lutimesPromise(e,i.atime,i.mtime):i.isSymbolicLink()||await this.utimesPromise(e,i.atime,i.mtime)}async preserveTimeSync(e,r){let i=this.lstatSync(e),n=r();typeof n!="undefined"&&(e=n),this.lutimesSync?this.lutimesSync(e,i.atime,i.mtime):i.isSymbolicLink()||this.utimesSync(e,i.atime,i.mtime)}},gl=class extends eA{constructor(){super(v)}};function rhe(t){let e=t.match(/\r?\n/g);if(e===null)return EO.EOL;let r=e.filter(n=>n===`\r
`).length,i=e.length-r;return r>i?`\r
`:`
`}function ul(t,e){return e.replace(/\r?\n/g,rhe(t))}var $c=ie(require("fs")),cb=ie(require("stream")),QO=ie(require("util")),ub=ie(require("zlib"));var yO=ie(require("fs"));var Wt=class extends gl{constructor(e=yO.default){super();this.realFs=e,typeof this.realFs.lutimes!="undefined"&&(this.lutimesPromise=this.lutimesPromiseImpl,this.lutimesSync=this.lutimesSyncImpl)}getExtractHint(){return!1}getRealPath(){return Se.root}resolve(e){return v.resolve(e)}async openPromise(e,r,i){return await new Promise((n,s)=>{this.realFs.open(M.fromPortablePath(e),r,i,this.makeCallback(n,s))})}openSync(e,r,i){return this.realFs.openSync(M.fromPortablePath(e),r,i)}async opendirPromise(e,r){return await new Promise((i,n)=>{typeof r!="undefined"?this.realFs.opendir(M.fromPortablePath(e),r,this.makeCallback(i,n)):this.realFs.opendir(M.fromPortablePath(e),this.makeCallback(i,n))}).then(i=>Object.defineProperty(i,"path",{value:e,configurable:!0,writable:!0}))}opendirSync(e,r){let i=typeof r!="undefined"?this.realFs.opendirSync(M.fromPortablePath(e),r):this.realFs.opendirSync(M.fromPortablePath(e));return Object.defineProperty(i,"path",{value:e,configurable:!0,writable:!0})}async readPromise(e,r,i=0,n=0,s=-1){return await new Promise((o,a)=>{this.realFs.read(e,r,i,n,s,(l,c)=>{l?a(l):o(c)})})}readSync(e,r,i,n,s){return this.realFs.readSync(e,r,i,n,s)}async writePromise(e,r,i,n,s){return await new Promise((o,a)=>typeof r=="string"?this.realFs.write(e,r,i,this.makeCallback(o,a)):this.realFs.write(e,r,i,n,s,this.makeCallback(o,a)))}writeSync(e,r,i,n,s){return typeof r=="string"?this.realFs.writeSync(e,r,i):this.realFs.writeSync(e,r,i,n,s)}async closePromise(e){await new Promise((r,i)=>{this.realFs.close(e,this.makeCallback(r,i))})}closeSync(e){this.realFs.closeSync(e)}createReadStream(e,r){let i=e!==null?M.fromPortablePath(e):e;return this.realFs.createReadStream(i,r)}createWriteStream(e,r){let i=e!==null?M.fromPortablePath(e):e;return this.realFs.createWriteStream(i,r)}async realpathPromise(e){return await new Promise((r,i)=>{this.realFs.realpath(M.fromPortablePath(e),{},this.makeCallback(r,i))}).then(r=>M.toPortablePath(r))}realpathSync(e){return M.toPortablePath(this.realFs.realpathSync(M.fromPortablePath(e),{}))}async existsPromise(e){return await new Promise(r=>{this.realFs.exists(M.fromPortablePath(e),r)})}accessSync(e,r){return this.realFs.accessSync(M.fromPortablePath(e),r)}async accessPromise(e,r){return await new Promise((i,n)=>{this.realFs.access(M.fromPortablePath(e),r,this.makeCallback(i,n))})}existsSync(e){return this.realFs.existsSync(M.fromPortablePath(e))}async statPromise(e,r){return await new Promise((i,n)=>{r?this.realFs.stat(M.fromPortablePath(e),r,this.makeCallback(i,n)):this.realFs.stat(M.fromPortablePath(e),this.makeCallback(i,n))})}statSync(e,r){return r?this.realFs.statSync(M.fromPortablePath(e),r):this.realFs.statSync(M.fromPortablePath(e))}async fstatPromise(e,r){return await new Promise((i,n)=>{r?this.realFs.fstat(e,r,this.makeCallback(i,n)):this.realFs.fstat(e,this.makeCallback(i,n))})}fstatSync(e,r){return r?this.realFs.fstatSync(e,r):this.realFs.fstatSync(e)}async lstatPromise(e,r){return await new Promise((i,n)=>{r?this.realFs.lstat(M.fromPortablePath(e),r,this.makeCallback(i,n)):this.realFs.lstat(M.fromPortablePath(e),this.makeCallback(i,n))})}lstatSync(e,r){return r?this.realFs.lstatSync(M.fromPortablePath(e),r):this.realFs.lstatSync(M.fromPortablePath(e))}async chmodPromise(e,r){return await new Promise((i,n)=>{this.realFs.chmod(M.fromPortablePath(e),r,this.makeCallback(i,n))})}chmodSync(e,r){return this.realFs.chmodSync(M.fromPortablePath(e),r)}async chownPromise(e,r,i){return await new Promise((n,s)=>{this.realFs.chown(M.fromPortablePath(e),r,i,this.makeCallback(n,s))})}chownSync(e,r,i){return this.realFs.chownSync(M.fromPortablePath(e),r,i)}async renamePromise(e,r){return await new Promise((i,n)=>{this.realFs.rename(M.fromPortablePath(e),M.fromPortablePath(r),this.makeCallback(i,n))})}renameSync(e,r){return this.realFs.renameSync(M.fromPortablePath(e),M.fromPortablePath(r))}async copyFilePromise(e,r,i=0){return await new Promise((n,s)=>{this.realFs.copyFile(M.fromPortablePath(e),M.fromPortablePath(r),i,this.makeCallback(n,s))})}copyFileSync(e,r,i=0){return this.realFs.copyFileSync(M.fromPortablePath(e),M.fromPortablePath(r),i)}async appendFilePromise(e,r,i){return await new Promise((n,s)=>{let o=typeof e=="string"?M.fromPortablePath(e):e;i?this.realFs.appendFile(o,r,i,this.makeCallback(n,s)):this.realFs.appendFile(o,r,this.makeCallback(n,s))})}appendFileSync(e,r,i){let n=typeof e=="string"?M.fromPortablePath(e):e;i?this.realFs.appendFileSync(n,r,i):this.realFs.appendFileSync(n,r)}async writeFilePromise(e,r,i){return await new Promise((n,s)=>{let o=typeof e=="string"?M.fromPortablePath(e):e;i?this.realFs.writeFile(o,r,i,this.makeCallback(n,s)):this.realFs.writeFile(o,r,this.makeCallback(n,s))})}writeFileSync(e,r,i){let n=typeof e=="string"?M.fromPortablePath(e):e;i?this.realFs.writeFileSync(n,r,i Line truncated
${m}`),{code:kb(h,p),stdout:d,stderr:m}))})})}var Lhe=new Map([["SIGINT",2],["SIGQUIT",3],["SIGKILL",9],["SIGTERM",15]]);function kb(t,e){let r=Lhe.get(e);return typeof r!="undefined"?128+r:t!=null?t:1}var Pb={};it(Pb,{getDefaultGlobalFolder:()=>Rb,getHomeFolder:()=>uh,isFolderInside:()=>Fb});var Db=ie(require("os"));function Rb(){if(process.platform==="win32"){let t=M.toPortablePath(process.env.LOCALAPPDATA||M.join((0,Db.homedir)(),"AppData","Local"));return v.resolve(t,"Yarn/Berry")}if(process.env.XDG_DATA_HOME){let t=M.toPortablePath(process.env.XDG_DATA_HOME);return v.resolve(t,"yarn/berry")}return v.resolve(uh(),".yarn/berry")}function uh(){return M.toPortablePath((0,Db.homedir)()||"/usr/local/share")}function Fb(t,e){let r=v.relative(e,t);return r&&!r.startsWith("..")&&!v.isAbsolute(r)}var ue={};it(ue,{LogLevel:()=>Ts,Style:()=>Gl,Type:()=>Le,addLogFilterSupport:()=>Cp,applyColor:()=>On,applyHyperlink:()=>Ku,applyStyle:()=>Py,json:()=>Uu,mark:()=>xx,pretty:()=>Ve,prettyField:()=>Yl,prettyList:()=>Kx,supportsColor:()=>xy,supportsHyperlinks:()=>Mx,tuple:()=>jl});var pp=ie(jb()),dp=ie(ml()),o3=ie(Nn()),a3=ie(gU());var z;(function(te){te[te.UNNAMED=0]="UNNAMED",te[te.EXCEPTION=1]="EXCEPTION",te[te.MISSING_PEER_DEPENDENCY=2]="MISSING_PEER_DEPENDENCY",te[te.CYCLIC_DEPENDENCIES=3]="CYCLIC_DEPENDENCIES",te[te.DISABLED_BUILD_SCRIPTS=4]="DISABLED_BUILD_SCRIPTS",te[te.BUILD_DISABLED=5]="BUILD_DISABLED",te[te.SOFT_LINK_BUILD=6]="SOFT_LINK_BUILD",te[te.MUST_BUILD=7]="MUST_BUILD",te[te.MUST_REBUILD=8]="MUST_REBUILD",te[te.BUILD_FAILED=9]="BUILD_FAILED",te[te.RESOLVER_NOT_FOUND=10]="RESOLVER_NOT_FOUND",te[te.FETCHER_NOT_FOUND=11]="FETCHER_NOT_FOUND",te[te.LINKER_NOT_FOUND=12]="LINKER_NOT_FOUND",te[te.FETCH_NOT_CACHED=13]="FETCH_NOT_CACHED",te[te.YARN_IMPORT_FAILED=14]="YARN_IMPORT_FAILED",te[te.REMOTE_INVALID=15]="REMOTE_INVALID",te[te.REMOTE_NOT_FOUND=16]="REMOTE_NOT_FOUND",te[te.RESOLUTION_PACK=17]="RESOLUTION_PACK",te[te.CACHE_CHECKSUM_MISMATCH=18]="CACHE_CHECKSUM_MISMATCH",te[te.UNUSED_CACHE_ENTRY=19]="UNUSED_CACHE_ENTRY",te[te.MISSING_LOCKFILE_ENTRY=20]="MISSING_LOCKFILE_ENTRY",te[te.WORKSPACE_NOT_FOUND=21]="WORKSPACE_NOT_FOUND",te[te.TOO_MANY_MATCHING_WORKSPACES=22]="TOO_MANY_MATCHING_WORKSPACES",te[te.CONSTRAINTS_MISSING_DEPENDENCY=23]="CONSTRAINTS_MISSING_DEPENDENCY",te[te.CONSTRAINTS_INCOMPATIBLE_DEPENDENCY=24]="CONSTRAINTS_INCOMPATIBLE_DEPENDENCY",te[te.CONSTRAINTS_EXTRANEOUS_DEPENDENCY=25]="CONSTRAINTS_EXTRANEOUS_DEPENDENCY",te[te.CONSTRAINTS_INVALID_DEPENDENCY=26]="CONSTRAINTS_INVALID_DEPENDENCY",te[te.CANT_SUGGEST_RESOLUTIONS=27]="CANT_SUGGEST_RESOLUTIONS",te[te.FROZEN_LOCKFILE_EXCEPTION=28]="FROZEN_LOCKFILE_EXCEPTION",te[te.CROSS_DRIVE_VIRTUAL_LOCAL=29]="CROSS_DRIVE_VIRTUAL_LOCAL",te[te.FETCH_FAILED=30]="FETCH_FAILED",te[te.DANGEROUS_NODE_MODULES=31]="DANGEROUS_NODE_MODULES",te[te.NODE_GYP_INJECTED=32]="NODE_GYP_INJECTED",te[te.AUTHENTICATION_NOT_FOUND=33]="AUTHENTICATION_NOT_FOUND",te[te.INVALID_CONFIGURATION_KEY=34]="INVALID_CONFIGURATION_KEY",te[te.NETWORK_ERROR=35]="NETWORK_ERROR",te[te.LIFECYCLE_SCRIPT=36]="LIFECYCLE_SCRIPT",te[te.CONSTRAINTS_MISSING_FIELD=37]="CONSTRAINTS_MISSING_FIELD",te[te.CONSTRAINTS_INCOMPATIBLE_FIELD=38]="CONSTRAINTS_INCOMPATIBLE_FIELD",te[te.CONSTRAINTS_EXTRANEOUS_FIELD=39]="CONSTRAINTS_EXTRANEOUS_FIELD",te[te.CONSTRAINTS_INVALID_FIELD=40]="CONSTRAINTS_INVALID_FIELD",te[te.AUTHENTICATION_INVALID=41]="AUTHENTICATION_INVALID",te[te.PROLOG_UNKNOWN_ERROR=42]="PROLOG_UNKNOWN_ERROR",te[te.PROLOG_SYNTAX_ERROR=43]="PROLOG_SYNTAX_ERROR",te[te.PROLOG_EXISTENCE_ERROR=44]="PROLOG_EXISTENCE_ERROR",te[te.STACK_OVERFLOW_RESOLUTION=45]="STACK_OVERFLOW_RESOLUTION",te[te.AUTOMERGE_FAILED_TO_PARSE=46]="AUTOMERGE_FAILED_TO_PARSE",te[te.AUTOMERGE_IMMUTABLE=47]="AUTOMERGE_IMMUTABLE",te[te.AUTOMERGE_SUCCESS=48]="AUTOMERGE_SUCCESS",te[te.AUTOMERGE_REQUIRED=49]="AUTOMERGE_REQUIRED",te[te.DEPRECATED_CLI_SETTINGS=50]="DEPRECATED_CLI_SETTINGS",te[te.PLUGIN_NAME_NOT_FOUND=51]="PLUGIN_NAME_NOT_FOUND",te[te.INVALID_PLUGIN_REFERENCE=52]="INVALID_PLUGIN_REFERENCE",te[te.CONSTRAINTS_AMBIGUITY=53]="CONSTRAINTS_AMBIGUITY",te[te.CACHE_OUTSIDE_PROJECT=54]="CACHE_OUTSIDE_PROJECT",te[te.IMMUTABLE_INSTALL=55]="IMMUTABLE_INSTALL",te[te.IMMUTABLE_CACHE=56]="IMMUTABLE_CACHE",te[te.INVALID_MANIFEST=57]="INVALID_MANIFEST",te[te.PACKAGE_PREPARATION_FAILED=58]="PACKAGE_PREPARATION_FAILED",te[te.INVALID_RANGE_PEER_DEPENDENCY=59]="INVALID_RANGE_PEER_DEPENDENCY",te[te.INCOMPATIBLE_PEER_DEPENDENCY=60]="INCOMPATIBLE_PEER_DEPENDENCY",te[te.DEPRECATED_PACKAGE=61]="DEPRECATED_PACKAGE",te[te.INCOMPATIBLE_OS=62]="INCOMPATIBLE_OS",te[te.INCOMPATIBLE_CPU=63]="INCOMPATIBLE_CPU",te[te.FROZEN_ARTIFACT_EXCEPTION=64]="FROZEN_ARTIFACT_EXCEPTION",te[te.TELEMETRY_NOTICE=65]="TELEMETRY_NOTICE",te[te.PATCH_HUNK_FAILED=66]="PATCH_HUNK_FAILED",te[te.INVALID_CONFIGURATION_VALUE=67]="INVALID_CONFIGURATION_VALUE",te[te.UNUSED_PACKAGE_EXTENSION=68]="UNUSED_PACKAGE_EXTENSION",te[te.REDUNDANT_PACKAGE_EXTENSION=69]="REDUNDANT_PACKAGE_EXTENSION",te[t Line truncated
${this.candidates.map(({usage:n})=>`$ ${n}`).join(`
`)}`}else if(this.candidates.length===1){let[{usage:i}]=this.candidates;this.message=`Command not found; did you mean:
$ ${i}
${lv(e)}`}else this.message=`Command not found; did you mean one of:
${this.candidates.map(({usage:i},n)=>`${`${n}.`.padStart(4)} ${i}`).join(`
`)}
${lv(e)}`}},cv=class extends Error{constructor(e,r){super();this.input=e,this.usages=r,this.clipanion={type:"none"},this.name="AmbiguousSyntaxError",this.message=`Cannot find which to pick amongst the following alternatives:
${this.usages.map((i,n)=>`${`${n}.`.padStart(4)} ${i}`).join(`
`)}
${lv(e)}`}},lv=t=>`While running ${t.filter(e=>e!==hi).map(e=>{let r=JSON.stringify(e);return e.match(/\s/)||e.length===0||r!==`"${e}"`?r:e}).join(" ")}`;var yh=Symbol("clipanion/isOption");function ji(t){return _(P({},t),{[yh]:!0})}function so(t,e){return typeof t=="undefined"?[t,e]:typeof t=="object"&&t!==null&&!Array.isArray(t)?[void 0,t]:[t,e]}function HI(t,e=!1){let r=t.replace(/^\.: /,"");return e&&(r=r[0].toLowerCase()+r.slice(1)),r}function wh(t,e){return e.length===1?new me(`${t}: ${HI(e[0],!0)}`):new me(`${t}:
${e.map(r=>`
- ${HI(r)}`).join("")}`)}function Bh(t,e,r){if(typeof r=="undefined")return e;let i=[],n=[],s=a=>{let l=e;return e=a,s.bind(null,l)};if(!r(e,{errors:i,coercions:n,coercion:s}))throw wh(`Invalid value for ${t}`,i);for(let[,a]of n)a();return e}var ye=class{constructor(){this.help=!1}static Usage(e){return e}async catch(e){throw e}async validateAndExecute(){let r=this.constructor.schema;if(typeof r!="undefined"){let{isDict:n,isUnknown:s,applyCascade:o}=await Promise.resolve().then(()=>(Ss(),lu)),a=o(n(s()),r),l=[],c=[];if(!a(this,{errors:l,coercions:c}))throw wh("Invalid option schema",l);for(let[,g]of c)g()}let i=await this.execute();return typeof i!="undefined"?i:0}};ye.isOption=yh;ye.Default=[];function un(t){Av&&console.log(t)}var BU={candidateUsage:null,requiredOptions:[],errorMessage:null,ignoreOptions:!1,path:[],positionals:[],options:[],remainder:null,selectedIndex:Au};function QU(){return{nodes:[qi(),qi(),qi()]}}function nCe(t){let e=QU(),r=[],i=e.nodes.length;for(let n of t){r.push(i);for(let s=0;s<n.nodes.length;++s)bU(s)||e.nodes.push(iCe(n.nodes[s],i));i+=n.nodes.length-2}for(let n of r)cu(e,yl,n);return e}function xs(t,e){return t.nodes.push(e),t.nodes.length-1}function sCe(t){let e=new Set,r=i=>{if(e.has(i))return;e.add(i);let n=t.nodes[i];for(let o of Object.values(n.statics))for(let{to:a}of o)r(a);for(let[,{to:o}]of n.dynamics)r(o);for(let{to:o}of n.shortcuts)r(o);let s=new Set(n.shortcuts.map(({to:o})=>o));for(;n.shortcuts.length>0;){let{to:o}=n.shortcuts.shift(),a=t.nodes[o];for(let[l,c]of Object.entries(a.statics)){let u=Object.prototype.hasOwnProperty.call(n.statics,l)?n.statics[l]:n.statics[l]=[];for(let g of c)u.some(({to:f})=>g.to===f)||u.push(g)}for(let[l,c]of a.dynamics)n.dynamics.some(([u,{to:g}])=>l===u&&c.to===g)||n.dynamics.push([l,c]);for(let l of a.shortcuts)s.has(l.to)||(n.shortcuts.push(l),s.add(l.to))}};r(yl)}function oCe(t,{prefix:e=""}={}){if(Av){un(`${e}Nodes are:`);for(let r=0;r<t.nodes.length;++r)un(`${e} ${r}: ${JSON.stringify(t.nodes[r])}`)}}function vU(t,e,r=!1){un(`Running a vm on ${JSON.stringify(e)}`);let i=[{node:yl,state:{candidateUsage:null,requiredOptions:[],errorMessage:null,ignoreOptions:!1,options:[],path:[],positionals:[],remainder:null,selectedIndex:null}}];oCe(t,{prefix:" "});let n=[sv,...e];for(let s=0;s<n.length;++s){let o=n[s];un(` Processing ${JSON.stringify(o)}`);let a=[];for(let{node:l,state:c}of i){un(` Current node is ${l}`);let u=t.nodes[l];if(l===Gi){a.push({node:l,state:c});continue}console.assert(u.shortcuts.length===0,"Shortcuts should have been eliminated by now");let g=Object.prototype.hasOwnProperty.call(u.statics,o);if(!r||s<n.length-1||g)if(g){let f=u.statics[o];for(let{to:h,reducer:p}of f)a.push({node:h,state:typeof p!="undefined"?jI(dv,p,c,o):c}),un(` Static transition to ${h} found`)}else un(" No static transition found");else{let f=!1;for(let h of Object.keys(u.statics))if(!!h.startsWith(o)){if(o===h)for(let{to:p,reducer:d}of u.statics[h])a.push({node:p,state:typeof d!="undefined"?jI(dv,d,c,o):c}),un(` Static transition to ${p} found`);else for(let{to:p}of u.statics[h])a.push({node:p,state:_(P({},c),{remainder:h.slice(o.length)})}),un(` Static transition to ${p} found (partial match)`);f=!0}f||un(" No partial static transition found")}if(o!==hi)for(let[f,{to:h,reducer:p}]of u.dynamics)jI(YI,f,c,o)&&(a.push({node:h,state:typeof p!="undefined"?jI(dv,p,c,o):c}),un(` Dynamic transition to ${h} found (via ${f})`))}if(a.length===0&&o===hi&&e.length===1)return[{node:yl,state:BU}];if(a.length===0)throw new Eh(e,i.filter(({node:l})=>l!==Gi).map(({state:l})=>({usage:l.candidateUsage,reason:null})));if(a.every(({node:l})=>l===Gi))throw new Eh(e,a.map(({state:l})=>({usage:l.candidateUsage,reason:l.errorMessage})));i=aCe(a)}if(i.length>0){un(" Results:");for(let s of i)un(` - ${s.node} -> ${JSON.stringify(s.state)}`)}else un(" No results");return i}function ACe(t,e){if(e.selectedIndex!==null)return!0;if(Object.prototype.hasOwnProperty.call(t.statics,hi)){for(let{to:r}of t.statics[hi])if(r===Ih)return!0}return!1}function cCe(t,e,r){let i=r&&e.length>0?[""]:[],n=vU(t,e,r),s=[],o=new Set,a=(l,c,u=!0)=>{let g=[c];for(;g.length>0;){let h=g;g=[];for(let p of h){let d=t.nodes[p],m=Object.keys(d.statics);for(let E of Object.keys(d.statics)){let B=m[0];for(let{to:b,reducer:R}of d.statics[B])R==="pushPath"&&(u||l.push(B),g.push(b))}}u=!1}let f=JSON.stringify(l);o.has(f)||(s.push(l),o.add(f))};for(let{node:l,state:c}of n){if(c.remainder!==null){a([c.remainder],l);continue}let u=t.nodes[l],g=ACe(u,c);for(let[f,h]of Object.entries(u.statics))(g&&f!==hi||!f.startsWith("-")&&h.some(({reducer:p})=>p==="pushPath"))&&a([...i,f],l);if(!!g)for(let[f,{to:h}]of u.dynamics){if(h===Gi)continue;let p=lCe(f,c);if(p!==null)for(let d of p)a([...i,d],l)}}return[...s].sort()}function gCe(t,e){let r=vU(t,[...e,hi]);return uCe(e,r.map(({state:i})=>i))}function aCe(t){let e=0;for(let{state:r}of t)r.path.length>e&&(e=r.path.length);returnLine truncated
`),r=e.filter(n=>n.match(/\S/)),i=r.length>0?r.reduce((n,s)=>Math.min(n,s.length-s.trimStart().length),Number.MAX_VALUE):0;return e.map(n=>n.slice(i).trimRight()).join(`
`)}function Vn(t,{format:e,paragraphs:r}){return t=t.replace(/\r\n?/g,`
`),t=hCe(t),t=t.replace(/^\n+|\n+$/g,""),t=t.replace(/^(\s*)-([^\n]*?)\n+/gm,`$1-$2
`),t=t.replace(/\n(\n)?\n*/g,"$1"),r&&(t=t.split(/\n/).map(i=>{let n=i.match(/^\s*[*-][\t ]+(.*)/);if(!n)return i.match(/(.{1,80})(?: |$)/g).join(`
`);let s=i.length-i.trimStart().length;return n[1].match(new RegExp(`(.{1,${78-s}})(?: |$)`,"g")).map((o,a)=>" ".repeat(s)+(a===0?"- ":" ")+o).join(`
`)}).join(`
`)),t=t.replace(/(`+)((?:.|[\n])*?)\1/g,(i,n,s)=>e.code(n+s+n)),t=t.replace(/(\*\*)((?:.|[\n])*?)\1/g,(i,n,s)=>e.bold(n+s+n)),t?`${t}
`:""}var bh=class extends ye{constructor(e){super();this.contexts=e,this.commands=[]}static from(e,r){let i=new bh(r);i.path=e.path;for(let n of e.options)switch(n.name){case"-c":i.commands.push(Number(n.value));break;case"-i":i.index=Number(n.value);break}return i}async execute(){let e=this.commands;if(typeof this.index!="undefined"&&this.index>=0&&this.index<e.length&&(e=[e[this.index]]),e.length===0)this.context.stdout.write(this.cli.usage());else if(e.length===1)this.context.stdout.write(this.cli.usage(this.contexts[e[0]].commandClass,{detailed:!0}));else if(e.length>1){this.context.stdout.write(`Multiple commands match your selection:
`),this.context.stdout.write(`
`);let r=0;for(let i of this.commands)this.context.stdout.write(this.cli.usage(this.contexts[i].commandClass,{prefix:`${r++}. `.padStart(5)}));this.context.stdout.write(`
`),this.context.stdout.write(`Run again with -h=<index> to see the longer details of any of those commands.
`)}}};var DU=Symbol("clipanion/errorCommand");function pCe(){return process.env.FORCE_COLOR==="0"?!1:!!(process.env.FORCE_COLOR==="1"||typeof process.stdout!="undefined"&&process.stdout.isTTY)}var oo=class{constructor({binaryLabel:e,binaryName:r="...",binaryVersion:i,enableColors:n=pCe()}={}){this.registrations=new Map,this.builder=new Qh({binaryName:r}),this.binaryLabel=e,this.binaryName=r,this.binaryVersion=i,this.enableColors=n}static from(e,r={}){let i=new oo(r);for(let n of e)i.register(n);return i}register(e){var r;let i=new Map,n=new e;for(let l in n){let c=n[l];typeof c=="object"&&c!==null&&c[ye.isOption]&&i.set(l,c)}let s=this.builder.command(),o=s.cliIndex,a=(r=e.paths)!==null&&r!==void 0?r:n.paths;if(typeof a!="undefined")for(let l of a)s.addPath(l);this.registrations.set(e,{specs:i,builder:s,index:o});for(let[l,{definition:c}]of i.entries())c(s,l);s.setContext({commandClass:e})}process(e){let{contexts:r,process:i}=this.builder.compile(),n=i(e);switch(n.selectedIndex){case Au:return bh.from(n,r);default:{let{commandClass:s}=r[n.selectedIndex],o=this.registrations.get(s);if(typeof o=="undefined")throw new Error("Assertion failed: Expected the command class to have been registered.");let a=new s;a.path=n.path;try{for(let[l,{transformer:c}]of o.specs.entries())a[l]=c(o.builder,l,n);return a}catch(l){throw l[DU]=a,l}}break}}async run(e,r){let i;if(!Array.isArray(e))i=e;else try{i=this.process(e)}catch(s){return r.stdout.write(this.error(s)),1}if(i.help)return r.stdout.write(this.usage(i,{detailed:!0})),0;i.context=r,i.cli={binaryLabel:this.binaryLabel,binaryName:this.binaryName,binaryVersion:this.binaryVersion,enableColors:this.enableColors,definitions:()=>this.definitions(),error:(s,o)=>this.error(s,o),process:s=>this.process(s),run:(s,o)=>this.run(s,P(P({},r),o)),usage:(s,o)=>this.usage(s,o)};let n;try{n=await i.validateAndExecute().catch(s=>i.catch(s).then(()=>0))}catch(s){return r.stdout.write(this.error(s,{command:i})),1}return n}async runExit(e,r){process.exitCode=await this.run(e,r)}suggest(e,r){let{suggest:i}=this.builder.compile();return i(e,r)}definitions({colored:e=!1}={}){let r=[];for(let[i,{index:n}]of this.registrations){if(typeof i.usage=="undefined")continue;let{usage:s}=this.getUsageByIndex(n,{detailed:!1}),{usage:o,options:a}=this.getUsageByIndex(n,{detailed:!0,inlineOptions:!1}),l=typeof i.usage.category!="undefined"?Vn(i.usage.category,{format:this.format(e),paragraphs:!1}):void 0,c=typeof i.usage.description!="undefined"?Vn(i.usage.description,{format:this.format(e),paragraphs:!1}):void 0,u=typeof i.usage.details!="undefined"?Vn(i.usage.details,{format:this.format(e),paragraphs:!0}):void 0,g=typeof i.usage.examples!="undefined"?i.usage.examples.map(([f,h])=>[Vn(f,{format:this.format(e),paragraphs:!1}),h.replace(/\$0/g,this.binaryName)]):void 0;r.push({path:s,usage:o,category:l,description:c,details:u,examples:g,options:a})}return r}usage(e=null,{colored:r,detailed:i=!1,prefix:n="$ "}={}){var s;if(e===null){for(let l of this.registrations.keys()){let c=l.paths,u=typeof l.usage!="undefined";if(!c||c.length===0||c.length===1&&c[0].length===0||((s=c==null?void 0:c.some(h=>h.length===0))!==null&&s!==void 0?s:!1))if(e){e=null;break}else e=l;else if(u){e=null;continue}}e&&(i=!0)}let o=e!==null&&e instanceof ye?e.constructor:e,a="";if(o)if(i){let{description:l="",details:c="",examples:u=[]}=o.usage||{};l!==""&&(a+=Vn(l,{format:this.format(r),paragraphs:!1}).replace(/^./,h=>h.toUpperCase()),a+=`
`),(c!==""||u.length>0)&&(a+=`${this.format(r).header("Usage")}
`,a+=`
`);let{usage:g,options:f}=this.getUsageByRegistration(o,{inlineOptions:!1});if(a+=`${this.format(r).bold(n)}${g}
`,f.length>0){a+=`
`,a+=`${Iv.header("Options")}
`;let h=f.reduce((p,d)=>Math.max(p,d.definition.length),0);a+=`
`;for(let{definition:p,description:d}of f)a+=` ${this.format(r).bold(p.padEnd(h))} ${Vn(d,{format:this.format(r),paragraphs:!1})}`}if(c!==""&&(a+=`
`,a+=`${this.format(r).header("Details")}
`,a+=`
`,a+=Vn(c,{format:this.format(r),paragraphs:!0})),u.length>0){a+=`
`,a+=`${this.format(r).header("Examples")}
`;for(let[h,p]of u)a+=`
`,a+=Vn(h,{format:this.format(r),paragraphs:!1}),a+=`${p.replace(/^/m,` ${this.format(r).bold(n)}`).replace(/\$0/g,this.binaryName)}
`}}else{let{usage:l}=this.getUsageByRegistration(o);a+=`${this.format(r).bold(n)}${l}
`}else{let l=new Map;for(let[f,{index:h}]of this.registrations.entries()){if(typeof f.usage=="undefined")continue;let p=typeof f.usage.category!="undefined"?Vn(f.usage.category,{format:this.format(r),paragraphs:!1}):null,d=l.get(p);typeof d=="undefined"&&l.set(p,d=[]);let{usage:m}=this.getUsageByIndex(h);d.push({commandClass:f,usage:m})}let c=Array.from(l.keys()).sort((f,h)=>f===null?-1:h===null?1:f.localeCompare(h,"en",{usage:"sort",caseFirst:"upper"})),u=typeof this.binaryLabel!="undefined",g=typeof this.binaryVersion!="undefined";u||g?(u&&g?a+=`${this.format(r).header(`${this.binaryLabel} - ${this.binaryVersion}`)}
`:u?a+=`${this.format(r).header(`${this.binaryLabel}`)}
`:a+=`${this.format(r).header(`${this.binaryVersion}`)}
`,a+=` ${this.format(r).bold(n)}${this.binaryName} <command>
`):a+=`${this.format(r).bold(n)}${this.binaryName} <command>
`;for(let f of c){let h=l.get(f).slice().sort((d,m)=>d.usage.localeCompare(m.usage,"en",{usage:"sort",caseFirst:"upper"})),p=f!==null?f.trim():"General commands";a+=`
`,a+=`${this.format(r).header(`${p}`)}
`;for(let{commandClass:d,usage:m}of h){let E=d.usage.description||"undocumented";a+=`
`,a+=` ${this.format(r).bold(m)}
`,a+=` ${Vn(E,{format:this.format(r),paragraphs:!1})}`}}a+=`
`,a+=Vn("You can also print more details about any of these commands by calling them with the `-h,--help` flag right after the command name.",{format:this.format(r),paragraphs:!0})}return a}error(e,r){var i,{colored:n,command:s=(i=e[DU])!==null&&i!==void 0?i:null}=r===void 0?{}:r;e instanceof Error||(e=new Error(`Execution failed with a non-error rejection (rejected value: ${JSON.stringify(e)})`));let o="",a=e.name.replace(/([a-z])([A-Z])/g,"$1 $2");a==="Error"&&(a="Internal Error"),o+=`${this.format(n).error(a)}: ${e.message}
`;let l=e.clipanion;return typeof l!="undefined"?l.type==="usage"&&(o+=`
`,o+=this.usage(s)):e.stack&&(o+=`${e.stack.replace(/^.*\n/,"")}
`),o}getUsageByRegistration(e,r){let i=this.registrations.get(e);if(typeof i=="undefined")throw new Error("Assertion failed: Unregistered command");return this.getUsageByIndex(i.index,r)}getUsageByIndex(e,r){return this.builder.getBuilderByIndex(e).usage(r)}format(e=this.enableColors){return e?Iv:PU}};oo.defaultContext={stdin:process.stdin,stdout:process.stdout,stderr:process.stderr};var Ev={};it(Ev,{DefinitionsCommand:()=>qI,HelpCommand:()=>JI,VersionCommand:()=>WI});var qI=class extends ye{async execute(){this.context.stdout.write(`${JSON.stringify(this.cli.definitions(),null,2)}
`)}};qI.paths=[["--clipanion=definitions"]];var JI=class extends ye{async execute(){this.context.stdout.write(this.cli.usage())}};JI.paths=[["-h"],["--help"]];var WI=class extends ye{async execute(){var e;this.context.stdout.write(`${(e=this.cli.binaryVersion)!==null&&e!==void 0?e:"<unknown>"}
`)}};WI.paths=[["-v"],["--version"]];var Y={};it(Y,{Array:()=>RU,Boolean:()=>FU,Counter:()=>NU,Proxy:()=>LU,Rest:()=>TU,String:()=>MU,applyValidator:()=>Bh,cleanValidationError:()=>HI,formatError:()=>wh,isOptionSymbol:()=>yh,makeCommandOption:()=>ji,rerouteArguments:()=>so});function RU(t,e,r){let[i,n]=so(e,r!=null?r:{}),{arity:s=1}=n,o=t.split(","),a=new Set(o);return ji({definition(l){l.addOption({names:o,arity:s,hidden:n==null?void 0:n.hidden,description:n==null?void 0:n.description,required:n.required})},transformer(l,c,u){let g=typeof i!="undefined"?[...i]:void 0;for(let{name:f,value:h}of u.options)!a.has(f)||(g=g!=null?g:[],g.push(h));return g}})}function FU(t,e,r){let[i,n]=so(e,r!=null?r:{}),s=t.split(","),o=new Set(s);return ji({definition(a){a.addOption({names:s,allowBinding:!1,arity:0,hidden:n.hidden,description:n.description,required:n.required})},transformer(a,l,c){let u=i;for(let{name:g,value:f}of c.options)!o.has(g)||(u=f);return u}})}function NU(t,e,r){let[i,n]=so(e,r!=null?r:{}),s=t.split(","),o=new Set(s);return ji({definition(a){a.addOption({names:s,allowBinding:!1,arity:0,hidden:n.hidden,description:n.description,required:n.required})},transformer(a,l,c){let u=i;for(let{name:g,value:f}of c.options)!o.has(g)||(u!=null||(u=0),f?u+=1:u=0);return u}})}function LU(t={}){return ji({definition(e,r){var i;e.addProxy({name:(i=t.name)!==null&&i!==void 0?i:r,required:t.required})},transformer(e,r,i){return i.positionals.map(({value:n})=>n)}})}function TU(t={}){return ji({definition(e,r){var i;e.addRest({name:(i=t.name)!==null&&i!==void 0?i:r,required:t.required})},transformer(e,r,i){let n=o=>{let a=i.positionals[o];return a.extra===Ln||a.extra===!1&&o<e.arity.leading.length},s=0;for(;s<i.positionals.length&&n(s);)s+=1;return i.positionals.splice(0,s).map(({value:o})=>o)}})}function dCe(t,e,r){let[i,n]=so(e,r!=null?r:{}),{arity:s=1}=n,o=t.split(","),a=new Set(o);return ji({definition(l){l.addOption({names:o,arity:n.tolerateBoolean?0:s,hidden:n.hidden,description:n.description,required:n.required})},transformer(l,c,u){let g,f=i;for(let{name:h,value:p}of u.options)!a.has(h)||(g=h,f=p);return typeof f=="string"?Bh(g!=null?g:c,f,n.validator):f}})}function CCe(t={}){let{required:e=!0}=t;return ji({definition(r,i){var n;r.addPositional({name:(n=t.name)!==null&&n!==void 0?n:i,required:t.required})},transformer(r,i,n){var s;for(let o=0;o<n.positionals.length;++o){if(n.positionals[o].extra===Ln||e&&n.positionals[o].extra===!0||!e&&n.positionals[o].extra===!1)continue;let[a]=n.positionals.splice(o,1);return Bh((s=t.name)!==null&&s!==void 0?s:i,a.value,t.validator)}}})}function MU(t,...e){return typeof t=="string"?dCe(t,...e):CCe(t)}var FH=ie(Nn()),NH=ie(Or()),Fv=ie(require("stream"));function vIe(t){return NH.default.valid(t)&&t.match(/^[^-]+(-rc\.[0-9]+)?$/)}function SIe(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Nv(t){}function Lv(t){throw new Error(`Assertion failed: Unexpected object '${t}'`)}function xIe(t,e){let r=Object.values(t);if(!r.includes(e))throw new me(`Invalid value for enumeration: ${JSON.stringify(e)} (expected one of ${r.map(i=>JSON.stringify(i)).join(", ")})`);return e}function kl(t,e){let r=[];for(let i of t){let n=e(i);n!==LH&&r.push(n)}return r}var LH=Symbol();kl.skip=LH;function MH(t,e){for(let r of t){let i=e(r);if(i!==TH)return i}}var TH=Symbol();MH.skip=TH;function Tv(t){return typeof t=="object"&&t!==null}function aE(t){if(t instanceof Map&&(t=Object.fromEntries(t)),Tv(t))for(let e of Object.keys(t)){let r=t[e];Tv(r)&&(t[e]=aE(r))}return t}function na(t,e,r){let i=t.get(e);return typeof i=="undefined"&&t.set(e,i=r()),i}function hu(t,e){let r=t.get(e);return typeof r=="undefined"&&t.set(e,r=[]),r}function Pl(t,e){let r=t.get(e);return typeof r=="undefined"&&t.set(e,r=new Set),r}function pu(t,e){let r=t.get(e);return typeof r=="undefined"&&t.set(e,r=new Map),r}async function kIe(t,e){if(e==null)return await t();try{return await t()}finally{await e()}}async function du(t,e){try{return await t()}catch(r){throw r.message=e(r.message),r}}function Mv(t,e){try{return t()}catch(r){throw r.message=e(r.message),r}}async function Cu(t){return await new Promise((e,r)=>{let i=[];t.on("error",n=>{r(n)}),t.on("data",n=>{i.push(n)}),t.on("end",()=>{e(Buffer.concat(i))})})}var OH=class extends Fv.Transform{constructor(){super(...arguments);this.chunks=[]}_transform(e,r,i){if(r!=="buffer"||!Buffer.isBuffer(e))throw new Error("Assertion failed: BufferStream only accept buffers");this.chunks.push(e),i(null,null)}_flush(e){e(null,Buffer.concat(this.chunks))}},KH=class extends Fv.Transform{constructor(e=Buffer.alloc(0)){super();this.active=!0;this.ifEmpty=e}_transform(e,r,i){if(r!=="buffer"||!Buffer.isBuffer(e))throw new Error("Assertion failed: DefaultStream only accept buffers");this.active=!1,i(null,e)}_flush(e){this.active&&this.ifEmpty.length>0?e(null,this.ifEmpty):e(null)}},Uh=eval("require");function UH(t){return Uh(M.fromPortablePath(t))}function HH(path){let physicalPath=M.fromPo Line truncated
`),a!==-1){let l=n+o.substr(0,a);o=o.substr(a+1),n="",e!==null?this.reportInfo(null,`${e} ${l}`):this.reportInfo(null,l)}while(a!==-1);n+=o}),r.on("end",()=>{let s=i.end();s!==""&&(e!==null?this.reportInfo(null,`${e} ${s}`):this.reportInfo(null,s))}),r}};var z8=ie(zy()),V8=new Map,_8=new Map,lxe=new W8.Agent({keepAlive:!0}),cxe=new J8.Agent({keepAlive:!0});function X8(t){let e=new Vy.URL(t),r={host:e.hostname,headers:{}};return e.port&&(r.port=Number(e.port)),{proxy:r}}async function uxe(t){return na(_8,t,()=>T.readFilePromise(t).then(e=>(_8.set(t,e),e)))}function gxe({statusCode:t,statusMessage:e},r){let i=Ve(r,t,Le.NUMBER),n=`https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/${t}`;return Ku(r,`${i}${e?` (${e})`:""}`,n)}async function _y(t,{configuration:e,customErrorMessage:r}){var i,n;try{return await t}catch(s){if(s.name!=="HTTPError")throw s;let o=(n=r==null?void 0:r(s))!=null?n:(i=s.response.body)==null?void 0:i.error;o==null&&(s.message.startsWith("Response code")?o="The remote server failed to provide the requested resource":o=s.message),s instanceof q8.TimeoutError&&s.event==="socket"&&(o+=`(can be increased via ${Ve(e,"httpTimeout",Le.SETTING)})`);let a=new nt(z.NETWORK_ERROR,o,l=>{s.response&&l.reportError(z.NETWORK_ERROR,` ${Yl(e,{label:"Response Code",value:jl(Le.NO_HINT,gxe(s.response,e))})}`),s.request&&(l.reportError(z.NETWORK_ERROR,` ${Yl(e,{label:"Request Method",value:jl(Le.NO_HINT,s.request.options.method)})}`),l.reportError(z.NETWORK_ERROR,` ${Yl(e,{label:"Request URL",value:jl(Le.URL,s.request.requestUrl)})}`)),s.request.redirects.length>0&&l.reportError(z.NETWORK_ERROR,` ${Yl(e,{label:"Request Redirects",value:jl(Le.NO_HINT,Kx(e,s.request.redirects,Le.URL))})}`),s.request.retryCount===s.request.options.retry.limit&&l.reportError(z.NETWORK_ERROR,` ${Yl(e,{label:"Request Retry Count",value:jl(Le.NO_HINT,`${Ve(e,s.request.retryCount,Le.NUMBER)} (can be increased via ${Ve(e,"httpRetry",Le.SETTING)})`)})}`)});throw a.originalError=s,a}}function Z8(t,e){let r=[...e.configuration.get("networkSettings")].sort(([o],[a])=>a.length-o.length),i={enableNetwork:void 0,caFilePath:void 0,httpProxy:void 0,httpsProxy:void 0},n=Object.keys(i),s=typeof t=="string"?new Vy.URL(t):t;for(let[o,a]of r)if(tP.default.isMatch(s.hostname,o))for(let l of n){let c=a.get(l);c!==null&&typeof i[l]=="undefined"&&(i[l]=c)}for(let o of n)typeof i[o]=="undefined"&&(i[o]=e.configuration.get(o));return i}var Jl;(function(n){n.GET="GET",n.PUT="PUT",n.POST="POST",n.DELETE="DELETE"})(Jl||(Jl={}));async function xp(t,e,{configuration:r,headers:i,jsonRequest:n,jsonResponse:s,method:o=Jl.GET}){let a=typeof t=="string"?new Vy.URL(t):t,l=Z8(a,{configuration:r});if(l.enableNetwork===!1)throw new Error(`Request to '${a.href}' has been blocked because of your configuration settings`);if(a.protocol==="http:"&&!tP.default.isMatch(a.hostname,r.get("unsafeHttpWhitelist")))throw new Error(`Unsafe http requests must be explicitly whitelisted in your configuration (${a.hostname})`);let u={agent:{http:l.httpProxy?rP.default.httpOverHttp(X8(l.httpProxy)):lxe,https:l.httpsProxy?rP.default.httpsOverHttp(X8(l.httpsProxy)):cxe},headers:i,method:o};u.responseType=s?"json":"buffer",e!==null&&(Buffer.isBuffer(e)||!n&&typeof e=="string"?u.body=e:u.json=e);let g=r.get("httpTimeout"),f=r.get("httpRetry"),h=r.get("enableStrictSsl"),p=l.caFilePath,{default:d}=await Promise.resolve().then(()=>ie(zy())),m=p?await uxe(p):void 0,E=d.extend(P({timeout:{socket:g},retry:f,https:{rejectUnauthorized:h,certificateAuthority:m}},u));return r.getLimit("networkConcurrency")(()=>E(a))}async function fxe(t,n){var s=n,{configuration:e,jsonResponse:r}=s,i=qr(s,["configuration","jsonResponse"]);let o=na(V8,t,()=>_y(xp(t,null,P({configuration:e},i)),{configuration:e}).then(a=>(V8.set(t,a.body),a.body)));return Buffer.isBuffer(o)===!1&&(o=await o),r?JSON.parse(o.toString()):o}async function hxe(t,e,n){var s=n,{customErrorMessage:r}=s,i=qr(s,["customErrorMessage"]);return(await _y(xp(t,e,_(P({},i),{method:Jl.PUT})),i)).body}async function iP(t,e,n){var s=n,{customErrorMessage:r}=s,i=qr(s,["customErrorMessage"]);return(await _y(xp(t,e,_(P({},i),{method:Jl.POST})),i)).body}async function pxe(t,i){var n=i,{customErrorMessage:e}=n,r=qr(n,["customErrorMessage"]);return(await _y(xp(t,null,_(P({},r),{method:Jl.DELETE})),r)).body}var Kt={};it(Kt,{PackageManager:()=>tn,detectPackageManager:()=>a9,executePackageAccessibleBinary:()=>g9,executePackageScript:()=>Uw,executePackageShellcode:()=>rD,executeWorkspaceAccessibleBinary:()=>qFe,executeWorkspaceLifecycleScript:()=>u9,executeWorkspaceScript:()=>c9,getPackageAccessibleBinaries:()=>Hw,getWorkspaceAccessibleBinaries:()=>l9,hasPackageScript:()=>GFe,hasWorkspaceScript:()=>tD,makeScriptEnv:()=>Vp,maybeExecuteWorkspaceLifecycleScript:()=>YFe,prepareExternalProject:()=>HFe});var Fp={};it(Fp,{getLibzipPromise:()=>$i,getLibzipSync:()=>vz});var yA=["number","number"],nP;(function(D){D[D.ZIP_ER_OK=0]="ZIP_ER_OK",D[D.ZIP_ER_MULTIDISK Line truncated
`;if(typeof t=="number"||typeof t=="boolean")return`${t.toString()}
`;if(typeof t=="string")return`${S5(t)}
`;if(Array.isArray(t)){if(t.length===0)return`[]
`;let i=" ".repeat(e);return`
${t.map(s=>`${i}- ${GP(s,e+1,!1)}`).join("")}`}if(typeof t=="object"&&t){let i,n;t instanceof HP?(i=t.data,n=!1):(i=t,n=!0);let s=" ".repeat(e),o=Object.keys(i);n&&o.sort((l,c)=>{let u=v5.indexOf(l),g=v5.indexOf(c);return u===-1&&g===-1?l<c?-1:l>c?1:0:u!==-1&&g===-1?-1:u===-1&&g!==-1?1:u-g});let a=o.filter(l=>!x5(i[l])).map((l,c)=>{let u=i[l],g=S5(l),f=GP(u,e+1,!0),h=c>0||r?s:"";return f.startsWith(`
`)?`${h}${g}:${f}`:`${h}${g}: ${f}`}).join(e===0?`
`:"")||`
`;return r?`
${a}`:`${a}`}throw new Error(`Unsupported value type (${t})`)}function Qa(t){try{let e=GP(t,0,!1);return e!==`
`?e:""}catch(e){throw e.location&&(e.message=e.message.replace(/(\.)?$/,` (line ${e.location.start.line}, column ${e.location.start.column})$1`)),e}}Qa.PreserveOrdering=HP;function eRe(t){return t.endsWith(`
`)||(t+=`
`),(0,b5.parse)(t)}var tRe=/^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i;function rRe(t){if(tRe.test(t))return eRe(t);let e=(0,Qw.safeLoad)(t,{schema:Qw.FAILSAFE_SCHEMA,json:!0});if(e==null)return{};if(typeof e!="object")throw new Error(`Expected an indexed object, got a ${typeof e} instead. Does your file follow Yaml's rules?`);if(Array.isArray(e))throw new Error("Expected an indexed object, got an array instead. Does your file follow Yaml's rules?");return e}function Ei(t){return rRe(t)}var U5=ie(jb()),H5=ie(require("os")),Kn=ie(require("stream")),G5=ie(require("util"));var as=class extends Error{constructor(e){super(e);this.name="ShellError"}};var bw={};it(bw,{fastGlobOptions:()=>D5,isBraceExpansion:()=>R5,isGlobPattern:()=>iRe,match:()=>nRe,micromatchOptions:()=>Sw});var k5=ie(gy()),P5=ie(require("fs")),vw=ie(Nn()),Sw={strictBrackets:!0},D5={onlyDirectories:!1,onlyFiles:!1};function iRe(t){if(!vw.default.scan(t,Sw).isGlob)return!1;try{vw.default.parse(t,Sw)}catch{return!1}return!0}function nRe(t,{cwd:e,baseFs:r}){return(0,k5.default)(t,_(P({},D5),{cwd:M.fromPortablePath(e),fs:SI(P5.default,new ah(r))}))}function R5(t){return vw.default.scan(t,Sw).isBrace}var F5=ie(bb()),Bo=ie(require("stream")),N5=ie(require("string_decoder")),wn;(function(i){i[i.STDIN=0]="STDIN",i[i.STDOUT=1]="STDOUT",i[i.STDERR=2]="STDERR"})(wn||(wn={}));var sc=new Set;function jP(){}function YP(){for(let t of sc)t.kill()}function L5(t,e,r,i){return n=>{let s=n[0]instanceof Bo.Transform?"pipe":n[0],o=n[1]instanceof Bo.Transform?"pipe":n[1],a=n[2]instanceof Bo.Transform?"pipe":n[2],l=(0,F5.default)(t,e,_(P({},i),{stdio:[s,o,a]}));return sc.add(l),sc.size===1&&(process.on("SIGINT",jP),process.on("SIGTERM",YP)),n[0]instanceof Bo.Transform&&n[0].pipe(l.stdin),n[1]instanceof Bo.Transform&&l.stdout.pipe(n[1],{end:!1}),n[2]instanceof Bo.Transform&&l.stderr.pipe(n[2],{end:!1}),{stdin:l.stdin,promise:new Promise(c=>{l.on("error",u=>{switch(sc.delete(l),sc.size===0&&(process.off("SIGINT",jP),process.off("SIGTERM",YP)),u.code){case"ENOENT":n[2].write(`command not found: ${t}
`),c(127);break;case"EACCES":n[2].write(`permission denied: ${t}
`),c(128);break;default:n[2].write(`uncaught error: ${u.message}
`),c(1);break}}),l.on("exit",u=>{sc.delete(l),sc.size===0&&(process.off("SIGINT",jP),process.off("SIGTERM",YP)),c(u!==null?u:129)})})}}}function T5(t){return e=>{let r=e[0]==="pipe"?new Bo.PassThrough:e[0];return{stdin:r,promise:Promise.resolve().then(()=>t({stdin:r,stdout:e[1],stderr:e[2]}))}}}var Os=class{constructor(e){this.stream=e}close(){}get(){return this.stream}},M5=class{constructor(){this.stream=null}close(){if(this.stream===null)throw new Error("Assertion failed: No stream attached");this.stream.end()}attach(e){this.stream=e}get(){if(this.stream===null)throw new Error("Assertion failed: No stream attached");return this.stream}},Gp=class{constructor(e,r){this.stdin=null;this.stdout=null;this.stderr=null;this.pipe=null;this.ancestor=e,this.implementation=r}static start(e,{stdin:r,stdout:i,stderr:n}){let s=new Gp(null,e);return s.stdin=r,s.stdout=i,s.stderr=n,s}pipeTo(e,r=1){let i=new Gp(this,e),n=new M5;return i.pipe=n,i.stdout=this.stdout,i.stderr=this.stderr,(r&1)==1?this.stdout=n:this.ancestor!==null&&(this.stderr=this.ancestor.stdout),(r&2)==2?this.stderr=n:this.ancestor!==null&&(this.stderr=this.ancestor.stderr),i}async exec(){let e=["ignore","ignore","ignore"];if(this.pipe)e[0]="pipe";else{if(this.stdin===null)throw new Error("Assertion failed: No input stream registered");e[0]=this.stdin.get()}let r;if(this.stdout===null)throw new Error("Assertion failed: No output stream registered");r=this.stdout,e[1]=r.get();let i;if(this.stderr===null)throw new Error("Assertion failed: No error stream registered");i=this.stderr,e[2]=i.get();let n=this.implementation(e);return this.pipe&&this.pipe.attach(n.stdin),await n.promise.then(s=>(r.close(),i.close(),s))}async run(){let e=[];for(let i=this;i;i=i.ancestor)e.push(i.exec());return(await Promise.all(e))[0]}};function xw(t,e){return Gp.start(t,e)}function O5(t,e=null){let r=new Bo.PassThrough,i=new N5.StringDecoder,n="";return r.on("data",s=>{let o=i.write(s),a;do if(a=o.indexOf(`
`),a!==-1){let l=n+o.substr(0,a);o=o.substr(a+1),n="",t(e!==null?`${e} ${l}`:l)}while(a!==-1);n+=o}),r.on("end",()=>{let s=i.end();s!==""&&t(e!==null?`${e} ${s}`:s)}),r}function K5(t,{prefix:e}){return{stdout:O5(r=>t.stdout.write(`${r}
`),t.stdout.isTTY?e:null),stderr:O5(r=>t.stderr.write(`${r}
`),t.stderr.isTTY?e:null)}}var sRe=(0,G5.promisify)(setTimeout);var Fi;(function(r){r[r.Readable=1]="Readable",r[r.Writable=2]="Writable"})(Fi||(Fi={}));function j5(t,e,r){let i=new Kn.PassThrough({autoDestroy:!0});switch(t){case wn.STDIN:(e&1)==1&&r.stdin.pipe(i,{end:!1}),(e&2)==2&&r.stdin instanceof Kn.Writable&&i.pipe(r.stdin,{end:!1});break;case wn.STDOUT:(e&1)==1&&r.stdout.pipe(i,{end:!1}),(e&2)==2&&i.pipe(r.stdout,{end:!1});break;case wn.STDERR:(e&1)==1&&r.stderr.pipe(i,{end:!1}),(e&2)==2&&i.pipe(r.stderr,{end:!1});break;default:throw new as(`Bad file descriptor: "${t}"`)}return i}function kw(t,e={}){let r=P(P({},t),e);return r.environment=P(P({},t.environment),e.environment),r.variables=P(P({},t.variables),e.variables),r}var oRe=new Map([["cd",async([t=(0,H5.homedir)(),...e],r,i)=>{let n=v.resolve(i.cwd,M.toPortablePath(t));if(!(await r.baseFs.statPromise(n).catch(o=>{throw o.code==="ENOENT"?new as(`cd: no such file or directory: ${t}`):o})).isDirectory())throw new as(`cd: not a directory: ${t}`);return i.cwd=n,0}],["pwd",async(t,e,r)=>(r.stdout.write(`${M.fromPortablePath(r.cwd)}
`),0)],[":",async(t,e,r)=>0],["true",async(t,e,r)=>0],["false",async(t,e,r)=>1],["exit",async([t,...e],r,i)=>i.exitCode=parseInt(t!=null?t:i.variables["?"],10)],["echo",async(t,e,r)=>(r.stdout.write(`${t.join(" ")}
`),0)],["sleep",async([t],e,r)=>{if(typeof t=="undefined")throw new as("sleep: missing operand");let i=Number(t);if(Number.isNaN(i))throw new as(`sleep: invalid time interval '${t}'`);return await sRe(1e3*i,0)}],["__ysh_run_procedure",async(t,e,r)=>{let i=r.procedures[t[0]];return await xw(i,{stdin:new Os(r.stdin),stdout:new Os(r.stdout),stderr:new Os(r.stderr)}).run()}],["__ysh_set_redirects",async(t,e,r)=>{let i=r.stdin,n=r.stdout,s=r.stderr,o=[],a=[],l=[],c=0;for(;t[c]!=="--";){let g=t[c++],{type:f,fd:h}=JSON.parse(g),p=B=>{switch(h){case null:case 0:o.push(B);break;default:throw new Error(`Unsupported file descriptor: "${h}"`)}},d=B=>{switch(h){case null:case 1:a.push(B);break;case 2:l.push(B);break;default:throw new Error(`Unsupported file descriptor: "${h}"`)}},m=Number(t[c++]),E=c+m;for(let B=c;B<E;++c,++B)switch(f){case"<":p(()=>e.baseFs.createReadStream(v.resolve(r.cwd,M.toPortablePath(t[B]))));break;case"<<<":p(()=>{let b=new Kn.PassThrough;return process.nextTick(()=>{b.write(`${t[B]}
`),b.end()}),b});break;case"<&":p(()=>j5(Number(t[B]),1,r));break;case">":case">>":{let b=v.resolve(r.cwd,M.toPortablePath(t[B]));d(b==="/dev/null"?new Kn.Writable({autoDestroy:!0,emitClose:!0,write(R,H,L){setImmediate(L)}}):e.baseFs.createWriteStream(b,f===">>"?{flags:"a"}:void 0))}break;case">&":d(j5(Number(t[B]),2,r));break;default:throw new Error(`Assertion failed: Unsupported redirection type: "${f}"`)}}if(o.length>0){let g=new Kn.PassThrough;i=g;let f=h=>{if(h===o.length)g.end();else{let p=o[h]();p.pipe(g,{end:!1}),p.on("end",()=>{f(h+1)})}};f(0)}if(a.length>0){let g=new Kn.PassThrough;n=g;for(let f of a)g.pipe(f)}if(l.length>0){let g=new Kn.PassThrough;s=g;for(let f of l)g.pipe(f)}let u=await xw(Yp(t.slice(c+1),e,r),{stdin:new Os(i),stdout:new Os(n),stderr:new Os(s)}).run();return await Promise.all(a.map(g=>new Promise((f,h)=>{g.on("error",p=>{h(p)}),g.on("close",()=>{f()}),g.end()}))),await Promise.all(l.map(g=>new Promise((f,h)=>{g.on("error",p=>{h(p)}),g.on("close",()=>{f()}),g.end()}))),u}]]);async function aRe(t,e,r){let i=[],n=new Kn.PassThrough;return n.on("data",s=>i.push(s)),await Pw(t,e,kw(r,{stdout:n})),Buffer.concat(i).toString().replace(/[\r\n]+$/,"")}async function Y5(t,e,r){let i=t.map(async s=>{let o=await oc(s.args,e,r);return{name:s.name,value:o.join(" ")}});return(await Promise.all(i)).reduce((s,o)=>(s[o.name]=o.value,s),{})}function Dw(t){return t.match(/[^ \r\n\t]+/g)||[]}async function q5(t,e,r,i,n=i){switch(t.name){case"$":i(String(process.pid));break;case"#":i(String(e.args.length));break;case"@":if(t.quoted)for(let s of e.args)n(s);else for(let s of e.args){let o=Dw(s);for(let a=0;a<o.length-1;++a)n(o[a]);i(o[o.length-1])}break;case"*":{let s=e.args.join(" ");if(t.quoted)i(s);else for(let o of Dw(s))n(o)}break;case"PPID":i(String(process.ppid));break;case"RANDOM":i(String(Math.floor(Math.random()*32768)));break;default:{let s=parseInt(t.name,10),o;if(Number.isFinite(s))if(s>=0&&s<e.args.length)o=e.args[s];else if(t.defaultValue)o=(await oc(t.defaultValue,e,r)).join(" ");else throw new as(`Unbound argument #${s}`);else if(Object.prototype.hasOwnProperty.call(r.variables,t.name))o=r.variables[t.name];else if(Object.prototype.hasOwnProperty.call(r.environment,t.name))o=r.environment[t.name];else if(t.defaultValue)o=(await oc(t.defaultValue,e,r)).join(" ");else throw new as(`Unbound variable "${t.name}"`);if(t.quoted)i(o);else{let a=Dw(o);for(let c=0;c<a.length-1;++c)n(a[c]);let l=a[a.length-1];typeof l!="undefined"&&i(l)}}break}}var ARe={addition:(t,e)=>t+e,subtraction:(t,e)=>t-e,multiplication:(t,e)=>t*e,division:(t,e)=>Math.trunc(t/e)};async function qp(t,e,r){if(t.type==="number"){if(Number.isInteger(t.value))return t.value;throw new Error(`Invalid number: "${t.value}", only integers are allowed`)}else if(t.type==="variable"){let i=[];await q5(_(P({},t),{quoted:!0}),e,r,s=>i.push(s));let n=Number(i.join(" "));return Number.isNaN(n)?qp({type:"variable",name:i.join(" ")},e,r):qp({type:"number",value:n},e,r)}else return ARe[t.type](await qp(t.left,e,r),await qp(t.right,e,r))}async function oc(t,e,r){let i=new Map,n=[],s=[],o=u=>{s.push(u)},a=()=>{s.length>0&&n.push(s.join("")),s=[]},l=u=>{o(u),a()},c=(u,g,f)=>{let h=JSON.stringify({type:u,fd:g}),p=i.get(h);typeof p=="undefined"&&i.set(h,p=[]),p.push(f)};for(let u of t){let g=!1;switch(u.type){case"redirection":{let f=await oc(u.args,e,r);for(let h of f)c(u.subtype,u.fd,h)}break;case"argument":for(let f of u.segments)switch(f.type){case"text":o(f.text);break;case"glob":o(f.pattern),g=!0;break;case"shell":{let h=await aRe(f.shell,e,r);if(f.quoted)o(h);else{let p=Dw(h);for(let d=0;d<p.length-1;++d)l(p[d]);o(p[p.length-1])}}break;case"variable":await q5(f,e,r,o,l);break;case"arithmetic":o(String(await qp(f.arithmetic,e,r)));break}break}if(a(),g){let f=n.pop();if(typeof f=="undefined")throw new Error("Assertion failed: Expected a glob pattern to have been set");let h=await e.glob.match(f,{cwd:r.cwd,baseFs:e.baseFs});if(h.length===0){let p=R5(f)?". Note: Brace expansion of arbitrary strings isn't currently supported. For more details, please read this issue: https://github.com/yarnpkg/berry/issues/22":"";throw new as(`No matches found: "${f}"${p}`)}for(let p of h.sort())l(p)}}if(i.size>0){let u=[];for(let[g,f]of i.entries())u.splice(u.length,0,g,String(f.length),...f);n.splice(0,0,"__ysh_set_redirects",...u,"--")}return n}function Yp(t,e,r){e.builtins.has(t[0])||(t=["command",...t]);let i=M.fromPortablePath(r.cwd),n=r.environment;typeof n.PWD!="undefined"&&(n=_(P({},n),{PWD:i}));let[s,...o]=t;if(s==="command")return L5(o[0],o.slice(1),e,{cwd:i,env:n});let a=e.builtins.get(s);if(typeof a=="undefined")throw new Error(`Assertion failed: A builtin should exist for "${s}"`);return T5(async({stdin:l,stdout:c,stderr:u})=>{let{stdin:g,stdout:f,stderr:h}=r;r.stdin=l,r.stdout=c,r.stderr=u;try{return await a(o,e,r)}finally{r.stdin=g,r.stdout=f,r.stderr=h}})}function lRe(t,e,r){return i=>{let n=new Kn.PassThrough,s=Pw(t,e,kw(r,{stdin:n}));return Line truncated
`)).finally(()=>{r.stdout.isTTY&&r.stdout.write(`Job ${l}, '${o(rg(t))}' has ended
`)})),0}return await W5(t,e,r)}async function gRe(t,e,r,{background:i=!1}={}){let n,s=a=>{n=a,r.variables["?"]=String(a)},o=async a=>{try{return await uRe(a.chain,e,r,{background:i&&typeof a.then=="undefined"})}catch(l){if(!(l instanceof as))throw l;return r.stderr.write(`${l.message}
`),1}};for(s(await o(t));t.then;){if(r.exitCode!==null)return r.exitCode;switch(t.then.type){case"&&":n===0&&s(await o(t.then.line));break;case"||":n!==0&&s(await o(t.then.line));break;default:throw new Error(`Assertion failed: Unsupported command type: "${t.then.type}"`)}t=t.then.line}return n}async function Pw(t,e,r){let i=r.backgroundJobs;r.backgroundJobs=[];let n=0;for(let{command:s,type:o}of t){if(n=await gRe(s,e,r,{background:o==="&"}),r.exitCode!==null)return r.exitCode;r.variables["?"]=String(n)}return await Promise.all(r.backgroundJobs),r.backgroundJobs=i,n}function z5(t){switch(t.type){case"variable":return t.name==="@"||t.name==="#"||t.name==="*"||Number.isFinite(parseInt(t.name,10))||"defaultValue"in t&&!!t.defaultValue&&t.defaultValue.some(e=>Rw(e));case"arithmetic":return qP(t.arithmetic);case"shell":return JP(t.shell);default:return!1}}function Rw(t){switch(t.type){case"redirection":return t.args.some(e=>Rw(e));case"argument":return t.segments.some(e=>z5(e));default:throw new Error(`Assertion failed: Unsupported argument type: "${t.type}"`)}}function qP(t){switch(t.type){case"variable":return z5(t);case"number":return!1;default:return qP(t.left)||qP(t.right)}}function JP(t){return t.some(({command:e})=>{for(;e;){let r=e.chain;for(;r;){let i;switch(r.type){case"subshell":i=JP(r.subshell);break;case"command":i=r.envs.some(n=>n.args.some(s=>Rw(s)))||r.args.some(n=>Rw(n));break}if(i)return!0;if(!r.then)break;r=r.then.chain}if(!e.then)break;e=e.then.line}return!1})}async function Fw(t,e=[],{baseFs:r=new Wt,builtins:i={},cwd:n=M.toPortablePath(process.cwd()),env:s=process.env,stdin:o=process.stdin,stdout:a=process.stdout,stderr:l=process.stderr,variables:c={},glob:u=bw}={}){let g={};for(let[p,d]of Object.entries(s))typeof d!="undefined"&&(g[p]=d);let f=new Map(oRe);for(let[p,d]of Object.entries(i))f.set(p,d);o===null&&(o=new Kn.PassThrough,o.end());let h=Aw(t,u);if(!JP(h)&&h.length>0&&e.length>0){let{command:p}=h[h.length-1];for(;p.then;)p=p.then.line;let d=p.chain;for(;d.then;)d=d.then.chain;d.type==="command"&&(d.args=d.args.concat(e.map(m=>({type:"argument",segments:[{type:"text",text:m}]}))))}return await Pw(h,{args:e,baseFs:r,builtins:f,initialStdin:o,initialStdout:a,initialStderr:l,glob:u},{cwd:n,environment:g,exitCode:null,procedures:{},stdin:o,stdout:a,stderr:l,variables:Object.assign({},c,{["?"]:0}),nextBackgroundJobIndex:1,backgroundJobs:[]})}var s9=ie(ZP()),o9=ie(Wp()),cc=ie(require("stream"));var J6=ie(Or());var zp=class{supportsDescriptor(e,r){return!!(e.range.startsWith(zp.protocol)||r.project.tryWorkspaceByDescriptor(e)!==null)}supportsLocator(e,r){return!!e.reference.startsWith(zp.protocol)}shouldPersistResolution(e,r){return!1}bindDescriptor(e,r,i){return e}getResolutionDependencies(e,r){return[]}async getCandidates(e,r,i){return[i.project.getWorkspaceByDescriptor(e).anchoredLocator]}async getSatisfying(e,r,i){return null}async resolve(e,r){let i=r.project.getWorkspaceByCwd(e.reference.slice(zp.protocol.length));return _(P({},e),{version:i.manifest.version||"0.0.0",languageName:"unknown",linkType:gt.SOFT,conditions:null,dependencies:new Map([...i.manifest.dependencies,...i.manifest.devDependencies]),peerDependencies:new Map([...i.manifest.peerDependencies]),dependenciesMeta:i.manifest.dependenciesMeta,peerDependenciesMeta:i.manifest.peerDependenciesMeta,bin:i.manifest.bin})}},Yr=zp;Yr.protocol="workspace:";var qt={};it(qt,{SemVer:()=>j6.SemVer,satisfiesWithPrereleases:()=>lc,validRange:()=>Us});var Lw=ie(Or()),j6=ie(Or()),Y6=new Map;function lc(t,e,r=!1){if(!t)return!1;let i=`${e}${r}`,n=Y6.get(i);if(typeof n=="undefined")try{n=new Lw.default.Range(e,{includePrerelease:!0,loose:r})}catch{return!1}finally{Y6.set(i,n||null)}else if(n===null)return!1;let s;try{s=new Lw.default.SemVer(t,n)}catch(o){return!1}return n.test(s)?!0:(s.prerelease&&(s.prerelease=[]),n.set.some(o=>{for(let a of o)a.semver.prerelease&&(a.semver.prerelease=[]);return o.every(a=>a.test(s))}))}var q6=new Map;function Us(t){if(t.indexOf(":")!==-1)return null;let e=q6.get(t);if(typeof e!="undefined")return e;try{e=new Lw.default.Range(t)}catch{e=null}return q6.set(t,e),e}var vA=class{constructor(){this.indent=" ";this.name=null;this.version=null;this.os=null;this.cpu=null;this.type=null;this.packageManager=null;this.private=!1;this.license=null;this.main=null;this.module=null;this.browser=null;this.languageName=null;this.bin=new Map;this.scripts=new Map;this.dependencies=new Map;this.devDependencies=new Map;this.peerDependencies=new Map;this.workspaceDefinitions=[];this.dependenciesMeta=new Map;this.peerDependenciesMeta=new Map;this.resolutions=[];this.files=null;this.publishConfig=null;this.installConfig=null;this.preferUnplugged=null;this.raw={};this.errors=[]}static async tryFind(e,{baseFs:r=new Wt}={}){let i=v.join(e,"package.json");return await r.existsPromise(i)?await vA.fromFile(i,{baseFs:r}):null}static async find(e,{baseFs:r}={}){let i=await vA.tryFind(e,{baseFs:r});if(i===null)throw new Error("Manifest n Line truncated
`,end:t=>`::endgroup::
`}:Ow.default.TRAVIS?{start:t=>`travis_fold:start:${t}
`,end:t=>`travis_fold:end:${t}
`}:Ow.default.GITLAB?{start:t=>`section_start:${Math.floor(Date.now()/1e3)}:${t.toLowerCase().replace(/\W+/g,"_")}[collapsed=true]\r${t}
`,end:t=>`section_end:${Math.floor(Date.now()/1e3)}:${t.toLowerCase().replace(/\W+/g,"_")}\r`}:null,i9=new Date,TFe=["iTerm.app","Apple_Terminal"].includes(process.env.TERM_PROGRAM)||!!process.env.WT_SESSION,MFe=t=>t,Kw=MFe({patrick:{date:[17,3],chars:["\u{1F340}","\u{1F331}"],size:40},simba:{date:[19,7],chars:["\u{1F981}","\u{1F334}"],size:40},jack:{date:[31,10],chars:["\u{1F383}","\u{1F987}"],size:40},hogsfather:{date:[31,12],chars:["\u{1F389}","\u{1F384}"],size:40},default:{chars:["=","-"],size:80}}),OFe=TFe&&Object.keys(Kw).find(t=>{let e=Kw[t];return!(e.date&&(e.date[0]!==i9.getDate()||e.date[1]!==i9.getMonth()+1))})||"default";function n9(t,{configuration:e,json:r}){if(!e.get("enableMessageNames"))return"";let n=KI(t===null?0:t);return!r&&t===null?Ve(e,n,"grey"):n}function eD(t,{configuration:e,json:r}){let i=n9(t,{configuration:e,json:r});if(!i||t===null||t===z.UNNAMED)return i;let n=z[t],s=`https://yarnpkg.com/advanced/error-codes#${i}---${n}`.toLowerCase();return Ku(e,i,s)}var Fe=class extends Xi{constructor({configuration:e,stdout:r,json:i=!1,includeFooter:n=!0,includeLogs:s=!i,includeInfos:o=s,includeWarnings:a=s,forgettableBufferSize:l=LFe,forgettableNames:c=new Set}){super();this.uncommitted=new Set;this.cacheHitCount=0;this.cacheMissCount=0;this.lastCacheMiss=null;this.warningCount=0;this.errorCount=0;this.startTime=Date.now();this.indent=0;this.progress=new Map;this.progressTime=0;this.progressFrame=0;this.progressTimeout=null;this.forgettableLines=[];Cp(this,{configuration:e}),this.configuration=e,this.forgettableBufferSize=l,this.forgettableNames=new Set([...c,...NFe]),this.includeFooter=n,this.includeInfos=o,this.includeWarnings=a,this.json=i,this.stdout=r;let u=this.configuration.get("progressBarStyle")||OFe;if(!Object.prototype.hasOwnProperty.call(Kw,u))throw new Error("Assertion failed: Invalid progress bar style");this.progressStyle=Kw[u];let g="\u27A4 YN0000: \u250C ".length,f=Math.max(0,Math.min(process.stdout.columns-g,80));this.progressMaxScaledSize=Math.floor(this.progressStyle.size*f/80)}static async start(e,r){let i=new this(e),n=process.emitWarning;process.emitWarning=(s,o)=>{if(typeof s!="string"){let l=s;s=l.message,o=o!=null?o:l.name}let a=typeof o!="undefined"?`${o}: ${s}`:s;i.reportWarning(z.UNNAMED,a)};try{await r(i)}catch(s){i.reportExceptionOnce(s)}finally{await i.finalize(),process.emitWarning=n}return i}hasErrors(){return this.errorCount>0}exitCode(){return this.hasErrors()?1:0}reportCacheHit(e){this.cacheHitCount+=1}reportCacheMiss(e,r){this.lastCacheMiss=e,this.cacheMissCount+=1,typeof r!="undefined"&&!this.configuration.get("preferAggregateCacheInfo")&&this.reportInfo(z.FETCH_NOT_CACHED,r)}startTimerSync(e,r,i){let n=typeof r=="function"?{}:r,s=typeof r=="function"?r:i,o={committed:!1,action:()=>{this.reportInfo(null,`\u250C ${e}`),this.indent+=1,SA!==null&&!this.json&&this.includeInfos&&this.stdout.write(SA.start(e))}};n.skipIfEmpty?this.uncommitted.add(o):(o.action(),o.committed=!0);let a=Date.now();try{return s()}catch(l){throw this.reportExceptionOnce(l),l}finally{let l=Date.now();this.uncommitted.delete(o),o.committed&&(this.indent-=1,SA!==null&&!this.json&&this.includeInfos&&this.stdout.write(SA.end(e)),this.configuration.get("enableTimers")&&l-a>200?this.reportInfo(null,`\u2514 Completed in ${Ve(this.configuration,l-a,Le.DURATION)}`):this.reportInfo(null,"\u2514 Completed"))}}async startTimerPromise(e,r,i){let n=typeof r=="function"?{}:r,s=typeof r=="function"?r:i,o={committed:!1,action:()=>{this.reportInfo(null,`\u250C ${e}`),this.indent+=1,SA!==null&&!this.json&&this.includeInfos&&this.stdout.write(SA.start(e))}};n.skipIfEmpty?this.uncommitted.add(o):(o.action(),o.committed=!0);let a=Date.now();try{return await s()}catch(l){throw this.reportExceptionOnce(l),l}finally{let l=Date.now();this.uncommitted.delete(o),o.committed&&(this.indent-=1,SA!==null&&!this.json&&this.includeInfos&&this.stdout.write(SA.end(e)),this.configuration.get("enableTimers")&&l-a>200?this.reportInfo(null,`\u2514 Completed in ${Ve(this.configuration,l-a,Le.DURATION)}`):this.reportInfo(null,"\u2514 Completed"))}}async startCacheReport(e){let r=this.configuration.get("preferAggregateCacheInfo")?{cacheHitCount:this.cacheHitCount,cacheMissCount:this.cacheMissCount}:null;try{return await e()}catch(i){throw this.reportExceptionOnce(i),i}finally{r!==null&&this.reportCacheChanges(r)}}reportSeparator(){this.indent===0?this.writeLineWithForgettableReset(""):this.reportInfo(null,"")}reportInfo(e,r){if(!this.includeInfos)return;this.commit();let i=this.formatNameWithHyperlink(e),n=i?`${i}: `:"",s=`${Ve(this.configuration,"\u27A4","blueBright")} ${n}${this.formatIndent()}${r}`;if(this.json)this.reportJson({type:"info",name:e,displayName:this.formatName(e),indent:this.formatIndent(),data:r});else if(this.forgettableNames.has(e))if(this.forgettableLines.push(s),this.forgettableLines.length>this.forgettableBufferSize){for(;this.forgettableLines.length>this.forgettableBufferSize;)this.forgettableL Line truncated
`),this.writeProgress()}writeLineWithForgettableReset(e,{truncate:r}={}){this.forgettableLines=[],this.writeLine(e,{truncate:r})}writeLines(e,{truncate:r}={}){this.clearProgress({delta:e.length});for(let i of e)this.stdout.write(`${this.truncate(i,{truncate:r})}
`);this.writeProgress()}reportCacheChanges({cacheHitCount:e,cacheMissCount:r}){let i=this.cacheHitCount-e,n=this.cacheMissCount-r;if(i===0&&n===0)return;let s="";this.cacheHitCount>1?s+=`${this.cacheHitCount} packages were already cached`:this.cacheHitCount===1?s+=" - one package was already cached":s+="No packages were cached",this.cacheHitCount>0?this.cacheMissCount>1?s+=`, ${this.cacheMissCount} had to be fetched`:this.cacheMissCount===1&&(s+=`, one had to be fetched (${lt(this.configuration,this.lastCacheMiss)})`):this.cacheMissCount>1?s+=` - ${this.cacheMissCount} packages had to be fetched`:this.cacheMissCount===1&&(s+=` - one package had to be fetched (${lt(this.configuration,this.lastCacheMiss)})`),this.reportInfo(z.FETCH_NOT_CACHED,s)}commit(){let e=this.uncommitted;this.uncommitted=new Set;for(let r of e)r.committed=!0,r.action()}clearProgress({delta:e=0,clear:r=!1}){!this.configuration.get("enableProgressBars")||this.json||this.progress.size+e>0&&(this.stdout.write(`[${this.progress.size+e}A`),(e>0||r)&&this.stdout.write(""))}writeProgress(){if(!this.configuration.get("enableProgressBars")||this.json||(this.progressTimeout!==null&&clearTimeout(this.progressTimeout),this.progressTimeout=null,this.progress.size===0))return;let e=Date.now();e-this.progressTime>r9&&(this.progressFrame=(this.progressFrame+1)%t9.length,this.progressTime=e);let r=t9[this.progressFrame];for(let i of this.progress.values()){let n=this.progressStyle.chars[0].repeat(i.lastScaledSize),s=this.progressStyle.chars[1].repeat(this.progressMaxScaledSize-i.lastScaledSize),o=this.formatName(null),a=o?`${o}: `:"";this.stdout.write(`${Ve(this.configuration,"\u27A4","blueBright")} ${a}${r} ${n}${s}
`)}this.progressTimeout=setTimeout(()=>{this.refreshProgress()},r9)}refreshProgress(e=0){let r=!1;if(this.progress.size===0)r=!0;else for(let i of this.progress.values()){let n=Math.trunc(this.progressMaxScaledSize*i.definition.progress),s=i.lastScaledSize;if(i.lastScaledSize=n,n!==s){r=!0;break}}r&&(this.clearProgress({delta:e}),this.writeProgress())}truncate(e,{truncate:r}={}){return this.configuration.get("enableProgressBars")||(r=!1),typeof r=="undefined"&&(r=this.configuration.get("preferTruncatedLines")),r&&(e=(0,e9.default)(e,0,process.stdout.columns-1)),e}formatName(e){return n9(e,{configuration:this.configuration,json:this.json})}formatNameWithHyperlink(e){return eD(e,{configuration:this.configuration,json:this.json})}formatIndent(){return"\u2502 ".repeat(this.indent)}};var Zr="3.1.0";var tn;(function(n){n.Yarn1="Yarn Classic",n.Yarn2="Yarn",n.Npm="npm",n.Pnpm="pnpm"})(tn||(tn={}));async function ba(t,e,r,i=[]){if(process.platform==="win32"){let n=`@goto #_undefined_# 2>NUL || @title %COMSPEC% & @setlocal & @"${r}" ${i.map(s=>`"${s.replace('"','""')}"`).join(" ")} %*`;await T.writeFilePromise(v.format({dir:t,name:e,ext:".cmd"}),n)}await T.writeFilePromise(v.join(t,e),`#!/bin/sh
exec "${r}" ${i.map(n=>`'${n.replace(/'/g,`'"'"'`)}'`).join(" ")} "$@"
`,{mode:493})}async function a9(t){let e=await Ze.tryFind(t);if(e==null?void 0:e.packageManager){let i=Qy(e.packageManager);if(i==null?void 0:i.name){let n=`found ${JSON.stringify({packageManager:e.packageManager})} in manifest`,[s]=i.reference.split(".");switch(i.name){case"yarn":return{packageManager:Number(s)===1?tn.Yarn1:tn.Yarn2,reason:n};case"npm":return{packageManager:tn.Npm,reason:n};case"pnpm":return{packageManager:tn.Pnpm,reason:n}}}}let r;try{r=await T.readFilePromise(v.join(t,wt.lockfile),"utf8")}catch{}return r!==void 0?r.match(/^__metadata:$/m)?{packageManager:tn.Yarn2,reason:'"__metadata" key found in yarn.lock'}:{packageManager:tn.Yarn1,reason:'"__metadata" key not found in yarn.lock, must be a Yarn classic lockfile'}:T.existsSync(v.join(t,"package-lock.json"))?{packageManager:tn.Npm,reason:`found npm's "package-lock.json" lockfile`}:T.existsSync(v.join(t,"pnpm-lock.yaml"))?{packageManager:tn.Pnpm,reason:`found pnpm's "pnpm-lock.yaml" lockfile`}:null}async function Vp({project:t,locator:e,binFolder:r,lifecycleScript:i}){var l,c;let n={};for(let[u,g]of Object.entries(process.env))typeof g!="undefined"&&(n[u.toLowerCase()!=="path"?u:"PATH"]=g);let s=M.fromPortablePath(r);n.BERRY_BIN_FOLDER=M.fromPortablePath(s);let o=process.env.COREPACK_ROOT?M.join(process.env.COREPACK_ROOT,"dist/yarn.js"):process.argv[1];if(await Promise.all([ba(r,"node",process.execPath),...Zr!==null?[ba(r,"run",process.execPath,[o,"run"]),ba(r,"yarn",process.execPath,[o]),ba(r,"yarnpkg",process.execPath,[o]),ba(r,"node-gyp",process.execPath,[o,"run","--top-level","node-gyp"])]:[]]),t&&(n.INIT_CWD=M.fromPortablePath(t.configuration.startingCwd),n.PROJECT_CWD=M.fromPortablePath(t.cwd)),n.PATH=n.PATH?`${s}${M.delimiter}${n.PATH}`:`${s}`,n.npm_execpath=`${s}${M.sep}yarn`,n.npm_node_execpath=`${s}${M.sep}node`,e){if(!t)throw new Error("Assertion failed: Missing project");let u=t.tryWorkspaceByLocator(e),g=u?(l=u.manifest.version)!=null?l:"":(c=t.storedPackages.get(e.locatorHash).version)!=null?c:"";n.npm_package_name=St(e),n.npm_package_version=g}let a=Zr!==null?`yarn/${Zr}`:`yarn/${mu("@yarnpkg/core").version}-core`;return n.npm_config_user_agent=`${a} npm/? node/${process.versions.node} ${process.platform} ${process.arch}`,i&&(n.npm_lifecycle_event=i),t&&await t.configuration.triggerHook(u=>u.setupScriptEnvironment,t,n,async(u,g,f)=>await ba(r,kr(u),g,f)),n}var KFe=2,UFe=(0,o9.default)(KFe);async function HFe(t,e,{configuration:r,report:i,workspace:n=null,locator:s=null}){await UFe(async()=>{await T.mktempPromise(async o=>{let a=v.join(o,"pack.log"),l=null,{stdout:c,stderr:u}=r.getSubprocessStreams(a,{prefix:M.fromPortablePath(t),report:i}),g=s&&Eo(s)?lp(s):s,f=g?is(g):"an external project";c.write(`Packing ${f} from sources
`);let h=await a9(t),p;h!==null?(c.write(`Using ${h.packageManager} for bootstrap. Reason: ${h.reason}
`),p=h.packageManager):(c.write(`No package manager configuration detected; defaulting to Yarn
`),p=tn.Yarn2),await T.mktempPromise(async d=>{let m=await Vp({binFolder:d}),B=new Map([[tn.Yarn1,async()=>{let R=n!==null?["workspace",n]:[],H=await to("yarn",["set","version","classic","--only-if-needed"],{cwd:t,env:m,stdin:l,stdout:c,stderr:u,end:Pn.ErrorCode});if(H.code!==0)return H.code;await T.appendFilePromise(v.join(t,".npmignore"),`/.yarn
`),c.write(`
`);let L=await to("yarn",["install"],{cwd:t,env:m,stdin:l,stdout:c,stderr:u,end:Pn.ErrorCode});if(L.code!==0)return L.code;c.write(`
`);let K=await to("yarn",[...R,"pack","--filename",M.fromPortablePath(e)],{cwd:t,env:m,stdin:l,stdout:c,stderr:u});return K.code!==0?K.code:0}],[tn.Yarn2,async()=>{let R=n!==null?["workspace",n]:[];m.YARN_ENABLE_INLINE_BUILDS="1";let H=v.join(t,wt.lockfile);await T.existsPromise(H)||await T.writeFilePromise(H,"");let L=await to("yarn",[...R,"pack","--install-if-needed","--filename",M.fromPortablePath(e)],{cwd:t,env:m,stdin:l,stdout:c,stderr:u});return L.code!==0?L.code:0}],[tn.Npm,async()=>{if(n!==null){let A=new cc.PassThrough,V=Cu(A);A.pipe(c,{end:!1});let W=await to("npm",["--version"],{cwd:t,env:m,stdin:l,stdout:A,stderr:u,end:Pn.Never});if(A.end(),W.code!==0)return c.end(),u.end(),W.code;let X=(await V).toString().trim();if(!lc(X,">=7.x")){let F=Io(null,"npm"),D=Yt(F,X),he=Yt(F,">=7.x");throw new Error(`Workspaces aren't supported by ${Xt(r,D)}; please upgrade to ${Xt(r,he)} (npm has been detected as the primary package manager for ${Ve(r,t,Le.PATH)})`)}}let R=n!==null?["--workspace",n]:[];delete m.npm_config_user_agent;let H=await to("npm",["install"],{cwd:t,env:m,stdin:l,stdout:c,stderr:u,end:Pn.ErrorCode});if(H.code!==0)return H.code;let L=new cc.PassThrough,K=Cu(L);L.pipe(c);let J=await to("npm",["pack","--silent",...R],{cwd:t,env:m,stdin:l,stdout:L,stderr:u});if(J.code!==0)return J.code;let ne=(await K).toString().trim().replace(/^.*\n/s,""),q=v.resolve(t,M.toPortablePath(ne));return await T.renamePromise(q,e),0}]]).get(p);if(typeof B=="undefined")throw new Error("Assertion failed: Unsupported workflow");let b=await B();if(!(b===0||typeof b=="undefined"))throw T.detachTemp(o),new nt(z.PACKAGE_PREPARATION_FAILED,`Packing the package failed (exit code ${b}, logs can be found here: ${Ve(r,a,Le.PATH)})`)})})})}async function GFe(t,e,{project:r}){let i=r.tryWorkspaceByLocator(t);if(i!==null)return tD(i,e);let n=r.storedPackages.get(t.locatorHash);if(!n)throw new Error(`Package for ${lt(r.configuration,t)} not found in the project`);return await Jn.openPromise(async s=>{let o=r.configuration,a=r.configuration.getLinkers(),l={project:r,report:new Fe({stdout:new cc.PassThrough,configuration:o})},c=a.find(h=>h.supportsPackage(n,l));if(!c)throw new Error(`The package ${lt(r.configuration,n)} isn't supported by any of the available linkers`);let u=await c.findPackageLocation(n,l),g=new Ft(u,{baseFs:s});return(await Ze.find(Se.dot,{baseFs:g})).scripts.has(e)},{libzip:await $i()})}async function Uw(t,e,r,{cwd:i,project:n,stdin:s,stdout:o,stderr:a}){return await T.mktempPromise(async l=>{let{manifest:c,env:u,cwd:g}=await A9(t,{project:n,binFolder:l,cwd:i,lifecycleScript:e}),f=c.scripts.get(e);if(typeof f=="undefined")return 1;let h=async()=>await Fw(f,r,{cwd:g,env:u,stdin:s,stdout:o,stderr:a});return await(await n.configuration.reduceHook(d=>d.wrapScriptExecution,h,n,t,e,{script:f,args:r,cwd:g,env:u,stdin:s,stdout:o,stderr:a}))()})}async function rD(t,e,r,{cwd:i,project:n,stdin:s,stdout:o,stderr:a}){return await T.mktempPromise(async l=>{let{env:c,cwd:u}=await A9(t,{project:n,binFolder:l,cwd:i});return await Fw(e,r,{cwd:u,env:c,stdin:s,stdout:o,stderr:a})})}async function jFe(t,{binFolder:e,cwd:r,lifecycleScript:i}){let n=await Vp({project:t.project,locator:t.anchoredLocator,binFolder:e,lifecycleScript:i});return await Promise.all(Array.from(await l9(t),([s,[,o]])=>ba(e,kr(s),process.execPath,[o]))),typeof r=="undefined"&&(r=v.dirname(await T.realpathPromise(v.join(t.cwd,"package.json")))),{manifest:t.manifest,binFolder:e,env:n,cwd:r}}async function A9(t,{project:e,binFolder:r,cwd:i,lifecycleScript:n}){let s=e.tryWorkspaceByLocator(t);if(s!==null)return jFe(s,{binFolder:r,cwd:i,lifecycleScript:n});let o=e.storedPackages.get(t.locatorHash);if(!o)throw new Error(`Package for ${lt(e.configuration,t)} not found in the project`);return await Jn.openPromise(async a=>{let l=e.configuration,c=e.configuration.getLinkers(),u={project:e,report:new Fe({stdout:new cc.PassThrough,configuration:l})},g=c.find(m=>m.supportsPackage(o,u));if(!g)throw new Error(`The package ${lt(e.configuration,o)} isn't supported by any of the available linkers`);let f=await Vp({project:e,locator:t,binFolder:r,lifecycleScript:n});await Promise.all(Array.from(await Hw(t,{project:e}),([m,[,E]])=>ba(r,kr(m),process.execPath,[E])));let h=await g.findPackageLocation(o,u),p=new Ft(h,{baseFs:a}),d=await Ze.find(Se.dot,{baseFs:p});return typeof i=="undefined"&&(i=h),{manifest:d,binFolder:r,env:f,cwd:i}},{libzip:await $i()})}async function c9(t,e,r,{cwd:i,stdin:n,stdout:s,stderr:o}){return await Uw(t.anchoredLocator,e,r,{cwd:i,project:t.project,stdin:n,stdout:s,stderr:o})}function tD(t,e){return t.manifest.scripts.has(e)}async function u9(t,e,{cwd:r,report:i}){let{configuration:n}=t.project,s=null;await T.mktempPromise(async o=>{let a=v.join(o,`${e}.log`),l=`# This file contains the result of Yarn calling the "${e}" lifecycle script inside a workspace ("${M.fromPortablePath(t.cwd)}")
`,{stdout:c,stderr:u}=n.getSubprocessStreams(a,{report:i,prefix:lt(n,t.anchoredLocator),header:l});i.reportInfo(z.LIFECYCLE_SCRIPT,`Calling the "${e}" lifecycle script`);let g=await c9(t,e,[],{cwd:r,stdin:s,stdout:c,stderr:u});if(c.end(),u.end(),g!==0)throw T.detachTemp(o),new nt(z.LIFECYCLE_SCRIPT,`${(0,s9.default)(e)} script failed (exit code ${Ve(n,g,Le.NUMBER)}, logs can be found here: ${Ve(n,a,Le.PATH)}); run ${Ve(n,`yarn ${e}`,Le.CODE)} to investigate`)})}async function YFe(t,e,r){tD(t,e)&&await u9(t,e,r)}async function Hw(t,{project:e}){let r=e.configuration,i=new Map,n=e.storedPackages.get(t.locatorHash);if(!n)throw new Error(`Package for ${lt(r,t)} not found in the project`);let s=new cc.Writable,o=r.getLinkers(),a={project:e,report:new Fe({configuration:r,stdout:s})},l=new Set([t.locatorHash]);for(let u of n.dependencies.values()){let g=e.storedResolutions.get(u.descriptorHash);if(!g)throw new Error(`Assertion failed: The resolution (${Xt(r,u)}) should have been registered`);l.add(g)}let c=await Promise.all(Array.from(l,async u=>{let g=e.storedPackages.get(u);if(!g)throw new Error(`Assertion failed: The package (${u}) should have been registered`);if(g.bin.size===0)return kl.skip;let f=o.find(p=>p.supportsPackage(g,a));if(!f)return kl.skip;let h=null;try{h=await f.findPackageLocation(g,a)}catch(p){if(p.code==="LOCATOR_NOT_INSTALLED")return kl.skip;throw p}return{dependency:g,packageLocation:h}}));for(let u of c){if(u===kl.skip)continue;let{dependency:g,packageLocation:f}=u;for(let[h,p]of g.bin)i.set(h,[g,M.fromPortablePath(v.resolve(f,p))])}return i}async function l9(t){return await Hw(t.anchoredLocator,{project:t.project})}async function g9(t,e,r,{cwd:i,project:n,stdin:s,stdout:o,stderr:a,nodeArgs:l=[],packageAccessibleBinaries:c}){c!=null||(c=await Hw(t,{project:n}));let u=c.get(e);if(!u)throw new Error(`Binary not found (${e}) for ${lt(n.configuration,t)}`);return await T.mktempPromise(async g=>{let[,f]=u,h=await Vp({project:n,locator:t,binFolder:g});await Promise.all(Array.from(c,([d,[,m]])=>ba(h.BERRY_BIN_FOLDER,kr(d),process.execPath,[m])));let p;try{p=await to(process.execPath,[...l,f,...r],{cwd:i,env:h,stdin:s,stdout:o,stderr:a})}finally{await T.removePromise(h.BERRY_BIN_FOLDER)}return p.code})}async function qFe(t,e,r,{cwd:i,stdin:n,stdout:s,stderr:o,packageAccessibleBinaries:a}){return await g9(t.anchoredLocator,e,r,{project:t.project,cwd:i,stdin:n,stdout:s,stderr:o,packageAccessibleBinaries:a})}var Ai={};it(Ai,{convertToZip:()=>lTe,extractArchiveTo:()=>uTe,makeArchiveFromDirectory:()=>ATe});var d_=ie(require("stream")),C_=ie(ZV());var u_=ie(require("os")),g_=ie(c_()),f_=ie(require("worker_threads")),ER=class{constructor(e){this.source=e;this.pool=[];this.queue=new g_.default({concurrency:Math.max(1,(0,u_.cpus)().length)});let r=setTimeout(()=>{if(!(this.queue.size!==0||this.queue.pending!==0)){for(let i of this.pool)i.terminate();this.pool=[]}},1e3).unref();this.queue.on("idle",()=>{r.refresh()})}run(e){return this.queue.add(()=>{var i;let r=(i=this.pool.pop())!=null?i:new f_.Worker(this.source,{eval:!0,execArgv:[...process.execArgv,"--unhandled-rejections=strict"]});return r.ref(),new Promise((n,s)=>{let o=a=>{a!==0&&s(new Error(`Worker exited with code ${a}`))};r.once("message",a=>{this.pool.push(r),r.unref(),r.off("error",s),r.off("exit",o),n(a)}),r.once("error",s),r.once("exit",o),r.postMessage(e)})})}};var m_=ie(p_());async function ATe(t,{baseFs:e=new Wt,prefixPath:r=Se.root,compressionLevel:i,inMemory:n=!1}={}){let s=await $i(),o;if(n)o=new Jr(null,{libzip:s,level:i});else{let l=await T.mktempPromise(),c=v.join(l,"archive.zip");o=new Jr(c,{create:!0,libzip:s,level:i})}let a=v.resolve(Se.root,r);return await o.copyPromise(a,t,{baseFs:e,stableTime:!0,stableSort:!0}),o}var I_;async function lTe(t,e){let r=await T.mktempPromise(),i=v.join(r,"archive.zip");return I_||(I_=new ER((0,m_.getContent)())),await I_.run({tmpFile:i,tgz:t,opts:e}),new Jr(i,{libzip:await $i(),level:e.compressionLevel})}async function*cTe(t){let e=new C_.default.Parse,r=new d_.PassThrough({objectMode:!0,autoDestroy:!0,emitClose:!0});e.on("entry",i=>{r.write(i)}),e.on("error",i=>{r.destroy(i)}),e.on("close",()=>{r.destroyed||r.end()}),e.end(t);for await(let i of r){let n=i;yield n,n.resume()}}async function uTe(t,e,{stripComponents:r=0,prefixPath:i=Se.dot}={}){var s,o;function n(a){if(a.path[0]==="/")return!0;let l=a.path.split(/\//g);return!!(l.some(c=>c==="..")||l.length<=r)}for await(let a of cTe(t)){if(n(a))continue;let l=v.normalize(M.toPortablePath(a.path)).replace(/\/$/,"").split(/\//g);if(l.length<=r)continue;let c=l.slice(r).join("/"),u=v.join(i,c),g=420;switch((a.type==="Directory"||(((s=a.mode)!=null?s:0)&73)!=0)&&(g|=73),a.type){case"Directory":e.mkdirpSync(v.dirname(u),{chmod:493,utimes:[mr.SAFE_TIME,mr.SAFE_TIME]}),e.mkdirSync(u,{mode:g}),e.utimesSync(u,mr.SAFE_TIME,mr.SAFE_TIME);break;case"OldFile":case"File":e.mkdirpSync(v.dirname(u),{chmod:493,utimes:[mr.SAFE_TIME,mr.SAFE_TIME]}),e.writeFileSync( Line truncated
`);return}let s=(0,w_.asTree)(B_(t,{configuration:e}),!1,!1);if(n>=1&&(s=s.replace(/^([├└]─)/gm,`\u2502
$1`).replace(/^│\n/,"")),n>=2)for(let a=0;a<2;++a)s=s.replace(/^([│ ].{2}[├│ ].{2}[^\n]+\n)(([│ ]).{2}[├└].{2}[^\n]*\n[│ ].{2}[│ ].{2}[├└]─)/gm,`$1$3 \u2502
$2`).replace(/^│\n/,"");if(n>=3)throw new Error("Only the first two levels are accepted by treeUtils.emitTree");r.write(s)}var v_=ie(require("crypto")),BR=ie(require("fs"));var fTe=8,Qt=class{constructor(e,{configuration:r,immutable:i=r.get("enableImmutableCache"),check:n=!1}){this.markedFiles=new Set;this.mutexes=new Map;this.cacheId=`-${(0,v_.randomBytes)(8).toString("hex")}.tmp`;this.configuration=r,this.cwd=e,this.immutable=i,this.check=n;let s=r.get("cacheKeyOverride");if(s!==null)this.cacheKey=`${s}`;else{let o=r.get("compressionLevel"),a=o!==pl?`c${o}`:"";this.cacheKey=[fTe,a].join("")}}static async find(e,{immutable:r,check:i}={}){let n=new Qt(e.get("cacheFolder"),{configuration:e,immutable:r,check:i});return await n.setup(),n}get mirrorCwd(){if(!this.configuration.get("enableMirror"))return null;let e=`${this.configuration.get("globalFolder")}/cache`;return e!==this.cwd?e:null}getVersionFilename(e){return`${Mu(e)}-${this.cacheKey}.zip`}getChecksumFilename(e,r){let n=hTe(r).slice(0,10);return`${Mu(e)}-${n}.zip`}getLocatorPath(e,r,i={}){var s;return this.mirrorCwd===null||((s=i.unstablePackages)==null?void 0:s.has(e.locatorHash))?v.resolve(this.cwd,this.getVersionFilename(e)):r===null||QR(r)!==this.cacheKey?null:v.resolve(this.cwd,this.getChecksumFilename(e,r))}getLocatorMirrorPath(e){let r=this.mirrorCwd;return r!==null?v.resolve(r,this.getVersionFilename(e)):null}async setup(){if(!this.configuration.get("enableGlobalCache"))if(this.immutable){if(!await T.existsPromise(this.cwd))throw new nt(z.IMMUTABLE_CACHE,"Cache path does not exist.")}else{await T.mkdirPromise(this.cwd,{recursive:!0});let e=v.resolve(this.cwd,".gitignore");await T.changeFilePromise(e,`/.gitignore
*.flock
*.tmp
`)}(this.mirrorCwd||!this.immutable)&&await T.mkdirPromise(this.mirrorCwd||this.cwd,{recursive:!0})}async fetchPackageFromCache(e,r,a){var l=a,{onHit:i,onMiss:n,loader:s}=l,o=qr(l,["onHit","onMiss","loader"]);var A;let c=this.getLocatorMirrorPath(e),u=new Wt,g=()=>{let V=new Jr(null,{libzip:H}),W=v.join(Se.root,Lx(e));return V.mkdirSync(W,{recursive:!0}),V.writeJsonSync(v.join(W,wt.manifest),{name:St(e),mocked:!0}),V},f=async(V,W=null)=>{let X=!o.skipIntegrityCheck||!r?`${this.cacheKey}/${await Iy(V)}`:r;if(W!==null){let F=!o.skipIntegrityCheck||!r?`${this.cacheKey}/${await Iy(W)}`:r;if(X!==F)throw new nt(z.CACHE_CHECKSUM_MISMATCH,"The remote archive doesn't match the local checksum - has the local cache been corrupted?")}if(r!==null&&X!==r){let F;switch(this.check?F="throw":QR(r)!==QR(X)?F="update":F=this.configuration.get("checksumBehavior"),F){case"ignore":return r;case"update":return X;default:case"throw":throw new nt(z.CACHE_CHECKSUM_MISMATCH,"The remote archive doesn't match the expected checksum")}}return X},h=async V=>{if(!s)throw new Error(`Cache check required but no loader configured for ${lt(this.configuration,e)}`);let W=await s(),X=W.getRealPath();return W.saveAndClose(),await T.chmodPromise(X,420),await f(V,X)},p=async()=>{if(c===null||!await T.existsPromise(c)){let V=await s(),W=V.getRealPath();return V.saveAndClose(),{source:"loader",path:W}}return{source:"mirror",path:c}},d=async()=>{if(!s)throw new Error(`Cache entry required but missing for ${lt(this.configuration,e)}`);if(this.immutable)throw new nt(z.IMMUTABLE_CACHE,`Cache entry required but missing for ${lt(this.configuration,e)}`);let{path:V,source:W}=await p(),X=await f(V),F=this.getLocatorPath(e,X,o);if(!F)throw new Error("Assertion failed: Expected the cache path to be available");let D=[];W!=="mirror"&&c!==null&&D.push(async()=>{let pe=`${c}${this.cacheId}`;await T.copyFilePromise(V,pe,BR.default.constants.COPYFILE_FICLONE),await T.chmodPromise(pe,420),await T.renamePromise(pe,c)}),(!o.mirrorWriteOnly||c===null)&&D.push(async()=>{let pe=`${F}${this.cacheId}`;await T.copyFilePromise(V,pe,BR.default.constants.COPYFILE_FICLONE),await T.chmodPromise(pe,420),await T.renamePromise(pe,F)});let he=o.mirrorWriteOnly&&c!=null?c:F;return await Promise.all(D.map(pe=>pe())),[!1,he,X]},m=async()=>{let W=(async()=>{var Ne;let X=this.getLocatorPath(e,r,o),F=X!==null?await u.existsPromise(X):!1,D=!!((Ne=o.mockedPackages)==null?void 0:Ne.has(e.locatorHash))&&(!this.check||!F),he=D||F,pe=he?i:n;if(pe&&pe(),he){let Pe=null,qe=X;return D||(Pe=this.check?await h(qe):await f(qe)),[D,qe,Pe]}else return d()})();this.mutexes.set(e.locatorHash,W);try{return await W}finally{this.mutexes.delete(e.locatorHash)}};for(let V;V=this.mutexes.get(e.locatorHash);)await V;let[E,B,b]=await m();this.markedFiles.add(B);let R,H=await $i(),L=E?()=>g():()=>new Jr(B,{baseFs:u,libzip:H,readOnly:!0}),K=new oh(()=>Mv(()=>R=L(),V=>`Failed to open the cache entry for ${lt(this.configuration,e)}: ${V}`),v),J=new Xo(B,{baseFs:K,pathUtils:v}),ne=()=>{R==null||R.discardAndClose()},q=((A=o.unstablePackages)==null?void 0:A.has(e.locatorHash))?null:b;return[J,ne,q]}};function QR(t){let e=t.indexOf("/");return e!==-1?t.slice(0,e):null}function hTe(t){let e=t.indexOf("/");return e!==-1?t.slice(e+1):t}var F_=ie(x_()),NB=ie(ml());var N_=ie(Wp()),kR=ie(require("stream"));var k_={hooks:{reduceDependency:(t,e,r,i,{resolver:n,resolveOptions:s})=>{for(let{pattern:o,reference:a}of e.topLevelWorkspace.manifest.resolutions){if(o.from&&o.from.fullName!==St(r)||o.from&&o.from.description&&o.from.description!==r.reference||o.descriptor.fullName!==St(t)||o.descriptor.description&&o.descriptor.description!==t.range)continue;return n.bindDescriptor(Yt(t,a),e.topLevelWorkspace.anchoredLocator,s)}return t},validateProject:async(t,e)=>{for(let r of t.workspaces){let i=hp(t.configuration,r);await t.configuration.triggerHook(n=>n.validateWorkspace,r,{reportWarning:(n,s)=>e.reportWarning(n,`${i}: ${s}`),reportError:(n,s)=>e.reportError(n,`${i}: ${s}`)})}},validateWorkspace:async(t,e)=>{let{manifest:r}=t;r.resolutions.length&&t.cwd!==t.project.cwd&&r.errors.push(new Error("Resolutions field will be ignored"));for(let i of r.errors)e.reportWarning(z.INVALID_MANIFEST,i.message)}}};var vR=class{constructor(e){this.fetchers=e}supports(e,r){return!!this.tryFetcher(e,r)}getLocalPath(e,r){return this.getFetcher(e,r).getLocalPath(e,r)}async fetch(e,r){return await this.getFetcher(e,r).fetch(e,r)}tryFetcher(e,r){let i=this.fetchers.find(n=>n.supports(e,r));return i||null}getFetcher(e,r){let i=this.fetchers.find(n=>n.supports(e,r));if(!i)throw new nt(z.FETCHER_NOT_FOUND,`${lt(r.project.configuration,e)} isn't supported by any available fetcher`);return i}};var pd=class{constructor(e){this.resolvers=e.filter(r=>r)}supportsDescriptor(e,r){return!!this.tryResolverByDescriptor(e,r)}supportsLocator(e,r){return!!this.tryResolverByLocator(e,r)}shouldPersistResolution(e,r){return this.getResolverByLocator(e,r).shouldPersistRes Line truncated
`);return{stdout:s,stderr:o}}makeResolver(){let e=[];for(let r of this.plugins.values())for(let i of r.resolvers||[])e.push(new i);return new pd([new FB,new Yr,new SR,...e])}makeFetcher(){let e=[];for(let r of this.plugins.values())for(let i of r.fetchers||[])e.push(new i);return new vR([new dd,new xR,...e])}getLinkers(){let e=[];for(let r of this.plugins.values())for(let i of r.linkers||[])e.push(new i);return e}getSupportedArchitectures(){let e=this.get("supportedArchitectures"),r=e.get("os");r!==null&&(r=r.map(n=>n==="current"?process.platform:n));let i=e.get("cpu");return i!==null&&(i=i.map(n=>n==="current"?process.arch:n)),{os:r,cpu:i}}async refreshPackageExtensions(){this.packageExtensions=new Map;let e=this.packageExtensions,r=(i,n,{userProvided:s=!1}={})=>{if(!Us(i.range))throw new Error("Only semver ranges are allowed as keys for the packageExtensions setting");let o=new Ze;o.load(n,{yamlCompatibilityMode:!0});let a=hu(e,i.identHash),l=[];a.push([i.range,l]);let c={status:ki.Inactive,userProvided:s,parentDescriptor:i};for(let u of o.dependencies.values())l.push(_(P({},c),{type:oi.Dependency,descriptor:u}));for(let u of o.peerDependencies.values())l.push(_(P({},c),{type:oi.PeerDependency,descriptor:u}));for(let[u,g]of o.peerDependenciesMeta)for(let[f,h]of Object.entries(g))l.push(_(P({},c),{type:oi.PeerDependencyMeta,selector:u,key:f,value:h}))};await this.triggerHook(i=>i.registerPackageExtensions,this,r);for(let[i,n]of this.get("packageExtensions"))r(pA(i,!0),aE(n),{userProvided:!0})}normalizePackage(e){let r=ap(e);if(this.packageExtensions==null)throw new Error("refreshPackageExtensions has to be called before normalizing packages");let i=this.packageExtensions.get(e.identHash);if(typeof i!="undefined"){let s=e.version;if(s!==null){for(let[o,a]of i)if(!!lc(s,o))for(let l of a)switch(l.status===ki.Inactive&&(l.status=ki.Redundant),l.type){case oi.Dependency:typeof r.dependencies.get(l.descriptor.identHash)=="undefined"&&(l.status=ki.Active,r.dependencies.set(l.descriptor.identHash,l.descriptor));break;case oi.PeerDependency:typeof r.peerDependencies.get(l.descriptor.identHash)=="undefined"&&(l.status=ki.Active,r.peerDependencies.set(l.descriptor.identHash,l.descriptor));break;case oi.PeerDependencyMeta:{let c=r.peerDependenciesMeta.get(l.selector);(typeof c=="undefined"||!Object.prototype.hasOwnProperty.call(c,l.key)||c[l.key]!==l.value)&&(l.status=ki.Active,na(r.peerDependenciesMeta,l.selector,()=>({}))[l.key]=l.value)}break;default:Lv(l);break}}}let n=s=>s.scope?`${s.scope}__${s.name}`:`${s.name}`;for(let s of r.peerDependenciesMeta.keys()){let o=In(s);r.peerDependencies.has(o.identHash)||r.peerDependencies.set(o.identHash,Yt(o,"*"))}for(let s of r.peerDependencies.values()){if(s.scope==="types")continue;let o=n(s),a=Io("types",o),l=St(a);r.peerDependencies.has(a.identHash)||r.peerDependenciesMeta.has(l)||(r.peerDependencies.set(a.identHash,Yt(a,"*")),r.peerDependenciesMeta.set(l,{optional:!0}))}return r.dependencies=new Map(gn(r.dependencies,([,s])=>En(s))),r.peerDependencies=new Map(gn(r.peerDependencies,([,s])=>En(s))),r}getLimit(e){return na(this.limits,e,()=>(0,N_.default)(this.get(e)))}async triggerHook(e,...r){for(let i of this.plugins.values()){let n=i.hooks;if(!n)continue;let s=e(n);!s||await s(...r)}}async triggerMultipleHooks(e,r){for(let i of r)await this.triggerHook(e,...i)}async reduceHook(e,r,...i){let n=r;for(let s of this.plugins.values()){let o=s.hooks;if(!o)continue;let a=e(o);!a||(n=await a(n,...i))}return n}async firstHook(e,...r){for(let i of this.plugins.values()){let n=i.hooks;if(!n)continue;let s=e(n);if(!s)continue;let o=await s(...r);if(typeof o!="undefined")return o}return null}},fe=Ra;fe.telemetry=null;var Gn;(function(r){r[r.SCRIPT=0]="SCRIPT",r[r.SHELLCODE=1]="SHELLCODE"})(Gn||(Gn={}));var Fa=class extends Xi{constructor({configuration:e,stdout:r,suggestInstall:i=!0}){super();this.errorCount=0;Cp(this,{configuration:e}),this.configuration=e,this.stdout=r,this.suggestInstall=i}static async start(e,r){let i=new this(e);try{await r(i)}catch(n){i.reportExceptionOnce(n)}finally{await i.finalize()}return i}hasErrors(){return this.errorCount>0}exitCode(){return this.hasErrors()?1:0}reportCacheHit(e){}reportCacheMiss(e){}startTimerSync(e,r,i){return(typeof r=="function"?r:i)()}async startTimerPromise(e,r,i){return await(typeof r=="function"?r:i)()}async startCacheReport(e){return await e()}reportSeparator(){}reportInfo(e,r){}reportWarning(e,r){}reportError(e,r){this.errorCount+=1,this.stdout.write(`${Ve(this.configuration,"\u27A4","redBright")} ${this.formatNameWithHyperlink(e)}: ${r}
`)}reportProgress(e){let r=Promise.resolve().then(async()=>{for await(let{}of e);}),i=()=>{};return _(P({},r),{stop:i})}reportJson(e){}async finalize(){this.errorCount>0&&(this.stdout.write(`
`),this.stdout.write(`${Ve(this.configuration,"\u27A4","redBright")} Errors happened when preparing the environment required to run this command.
`),this.suggestInstall&&this.stdout.write(`${Ve(this.configuration,"\u27A4","redBright")} This might be caused by packages being missing from the lockfile, in which case running "yarn install" might help.
`))}formatNameWithHyperlink(e){return eD(e,{configuration:this.configuration,json:!1})}};var t0=ie(require("crypto")),v$=ie(CX()),r0=ie(Q$()),S$=ie(Wp()),x$=ie(Or()),lF=ie(require("util")),cF=ie(require("v8")),uF=ie(require("zlib"));var iUe=[[/^(git(?:\+(?:https|ssh))?:\/\/.*(?:\.git)?)#(.*)$/,(t,e,r,i)=>`${r}#commit=${i}`],[/^https:\/\/((?:[^/]+?)@)?codeload\.github\.com\/([^/]+\/[^/]+)\/tar\.gz\/([0-9a-f]+)$/,(t,e,r="",i,n)=>`https://${r}github.com/${i}.git#commit=${n}`],[/^https:\/\/((?:[^/]+?)@)?github\.com\/([^/]+\/[^/]+?)(?:\.git)?#([0-9a-f]+)$/,(t,e,r="",i,n)=>`https://${r}github.com/${i}.git#commit=${n}`],[/^https?:\/\/[^/]+\/(?:[^/]+\/)*(?:@.+(?:\/|(?:%2f)))?([^/]+)\/(?:-|download)\/\1-[^/]+\.tgz(?:#|$)/,t=>`npm:${t}`],[/^https:\/\/npm\.pkg\.github\.com\/download\/(?:@[^/]+)\/(?:[^/]+)\/(?:[^/]+)\/(?:[0-9a-f]+)(?:#|$)/,t=>`npm:${t}`],[/^https:\/\/npm\.fontawesome\.com\/(?:@[^/]+)\/([^/]+)\/-\/([^/]+)\/\1-\2.tgz(?:#|$)/,t=>`npm:${t}`],[/^https?:\/\/(?:[^\\.]+)\.jfrog\.io\/.*\/(@[^/]+)\/([^/]+)\/-\/\1\/\2-(?:[.\d\w-]+)\.tgz(?:#|$)/,(t,e)=>by({protocol:"npm:",source:null,selector:t,params:{__archiveUrl:e}})],[/^[^/]+\.tgz#[0-9a-f]+$/,t=>`npm:${t}`]],oF=class{constructor(){this.resolutions=null}async setup(e,{report:r}){let i=v.join(e.cwd,e.configuration.get("lockfileFilename"));if(!T.existsSync(i))return;let n=await T.readFilePromise(i,"utf8"),s=Ei(n);if(Object.prototype.hasOwnProperty.call(s,"__metadata"))return;let o=this.resolutions=new Map;for(let a of Object.keys(s)){let l=gp(a);if(!l){r.reportWarning(z.YARN_IMPORT_FAILED,`Failed to parse the string "${a}" into a proper descriptor`);continue}Us(l.range)&&(l=Yt(l,`npm:${l.range}`));let{version:c,resolved:u}=s[a];if(!u)continue;let g;for(let[h,p]of iUe){let d=u.match(h);if(d){g=p(c,...d);break}}if(!g){r.reportWarning(z.YARN_IMPORT_FAILED,`${Xt(e.configuration,l)}: Only some patterns can be imported from legacy lockfiles (not "${u}")`);continue}let f=l;try{let h=Tu(l.range),p=gp(h.selector,!0);p&&(f=p)}catch{}o.set(l.descriptorHash,Vi(f,g))}}supportsDescriptor(e,r){return this.resolutions?this.resolutions.has(e.descriptorHash):!1}supportsLocator(e,r){return!1}shouldPersistResolution(e,r){throw new Error("Assertion failed: This resolver doesn't support resolving locators to packages")}bindDescriptor(e,r,i){return e}getResolutionDependencies(e,r){return[]}async getCandidates(e,r,i){if(!this.resolutions)throw new Error("Assertion failed: The resolution store should have been setup");let n=this.resolutions.get(e.descriptorHash);if(!n)throw new Error("Assertion failed: The resolution should have been registered");return[n]}async getSatisfying(e,r,i){return null}async resolve(e,r){throw new Error("Assertion failed: This resolver doesn't support resolving locators to packages")}};var aF=class{constructor(e){this.resolver=e}supportsDescriptor(e,r){return!!(r.project.storedResolutions.get(e.descriptorHash)||r.project.originalPackages.has(By(e).locatorHash))}supportsLocator(e,r){return!!(r.project.originalPackages.has(e.locatorHash)&&!r.project.lockfileNeedsRefresh)}shouldPersistResolution(e,r){throw new Error("The shouldPersistResolution method shouldn't be called on the lockfile resolver, which would always answer yes")}bindDescriptor(e,r,i){return e}getResolutionDependencies(e,r){return this.resolver.getResolutionDependencies(e,r)}async getCandidates(e,r,i){let n=i.project.originalPackages.get(By(e).locatorHash);if(n)return[n];let s=i.project.storedResolutions.get(e.descriptorHash);if(!s)throw new Error("Expected the resolution to have been successful - resolution not found");if(n=i.project.originalPackages.get(s),!n)throw new Error("Expected the resolution to have been successful - package not found");return[n]}async getSatisfying(e,r,i){return null}async resolve(e,r){let i=r.project.originalPackages.get(e.locatorHash);if(!i)throw new Error("The lockfile resolver isn't meant to resolve packages - they should already have been stored into a cache");return i}};var AF=class{constructor(e){this.resolver=e}supportsDescriptor(e,r){return this.resolver.supportsDescriptor(e,r)}supportsLocator(e,r){return this.resolver.supportsLocator(e,r)}shouldPersistResolution(e,r){return this.resolver.shouldPersistResolution(e,r)}bindDescriptor(e,r,i){return this.resolver.bindDescriptor(e,r,i)}getResolutionDependencies(e,r){return this.resolver.getResolutionDependencies(e,r)}async getCandidates(e,r,i){throw new nt(z.MISSING_LOCKFILE_ENTRY,`This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile`)}async getSatisfying(e,r,i){throw new nt(z.MISSING_LOCKFILE_ENTRY,`This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile`)}async resolve(e,r){throw new nt(z.MISSING_LOCKFILE_ENTRY,`This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile`)}};var ei=class extends Xi{reportCacheHit(e){}reportCacheMiss(e){}startTimerSync(e,r,i){return(typeof r=="function"?r Line truncated
`;await T.changeFilePromise(r,i,{automaticNewlines:!0}),this.manifest.raw=e}};var k$=5,nUe=1,sUe=/ *, */g,P$=/\/$/,oUe=32,aUe=(0,lF.promisify)(uF.default.gzip),AUe=(0,lF.promisify)(uF.default.gunzip),li;(function(r){r.UpdateLockfile="update-lockfile",r.SkipBuild="skip-build"})(li||(li={}));var gF={restoreInstallersCustomData:["installersCustomData"],restoreResolutions:["accessibleLocators","conditionalLocators","disabledLocators","optionalBuilds","storedDescriptors","storedResolutions","storedPackages","lockFileChecksum"],restoreBuildState:["storedBuildState"]},D$=t=>zi(`${nUe}`,t),Ke=class{constructor(e,{configuration:r}){this.resolutionAliases=new Map;this.workspaces=[];this.workspacesByCwd=new Map;this.workspacesByIdent=new Map;this.storedResolutions=new Map;this.storedDescriptors=new Map;this.storedPackages=new Map;this.storedChecksums=new Map;this.storedBuildState=new Map;this.accessibleLocators=new Set;this.conditionalLocators=new Set;this.disabledLocators=new Set;this.originalPackages=new Map;this.optionalBuilds=new Set;this.lockfileNeedsRefresh=!1;this.peerRequirements=new Map;this.installersCustomData=new Map;this.lockFileChecksum=null;this.installStateChecksum=null;this.configuration=r,this.cwd=e}static async find(e,r){var c,u,g;if(!e.projectCwd)throw new me(`No project found in ${r}`);let i=e.projectCwd,n=r,s=null;for(;s!==e.projectCwd;){if(s=n,T.existsSync(v.join(s,wt.manifest))){i=s;break}n=v.dirname(s)}let o=new Ke(e.projectCwd,{configuration:e});(c=fe.telemetry)==null||c.reportProject(o.cwd),await o.setupResolutions(),await o.setupWorkspaces(),(u=fe.telemetry)==null||u.reportWorkspaceCount(o.workspaces.length),(g=fe.telemetry)==null||g.reportDependencyCount(o.workspaces.reduce((f,h)=>f+h.manifest.dependencies.size+h.manifest.devDependencies.size,0));let a=o.tryWorkspaceByCwd(i);if(a)return{project:o,workspace:a,locator:a.anchoredLocator};let l=await o.findLocatorForLocation(`${i}/`,{strict:!0});if(l)return{project:o,locator:l,workspace:null};throw new me(`The nearest package directory (${Ve(e,i,Le.PATH)}) doesn't seem to be part of the project declared in ${Ve(e,o.cwd,Le.PATH)}.
- If the project directory is right, it might be that you forgot to list ${Ve(e,v.relative(o.cwd,i),Le.PATH)} as a workspace.
- If it isn't, it's likely because you have a yarn.lock or package.json file there, confusing the project root detection.`)}async setupResolutions(){var i;this.storedResolutions=new Map,this.storedDescriptors=new Map,this.storedPackages=new Map,this.lockFileChecksum=null;let e=v.join(this.cwd,this.configuration.get("lockfileFilename")),r=this.configuration.get("defaultLanguageName");if(T.existsSync(e)){let n=await T.readFilePromise(e,"utf8");this.lockFileChecksum=D$(n);let s=Ei(n);if(s.__metadata){let o=s.__metadata.version,a=s.__metadata.cacheKey;this.lockfileNeedsRefresh=o<k$;for(let l of Object.keys(s)){if(l==="__metadata")continue;let c=s[l];if(typeof c.resolution=="undefined")throw new Error(`Assertion failed: Expected the lockfile entry to have a resolution field (${l})`);let u=Hl(c.resolution,!0),g=new Ze;g.load(c,{yamlCompatibilityMode:!0});let f=g.version,h=g.languageName||r,p=c.linkType.toUpperCase(),d=(i=c.conditions)!=null?i:null,m=g.dependencies,E=g.peerDependencies,B=g.dependenciesMeta,b=g.peerDependenciesMeta,R=g.bin;if(c.checksum!=null){let L=typeof a!="undefined"&&!c.checksum.includes("/")?`${a}/${c.checksum}`:c.checksum;this.storedChecksums.set(u.locatorHash,L)}let H=_(P({},u),{version:f,languageName:h,linkType:p,conditions:d,dependencies:m,peerDependencies:E,dependenciesMeta:B,peerDependenciesMeta:b,bin:R});this.originalPackages.set(H.locatorHash,H);for(let L of l.split(sUe)){let K=pA(L);this.storedDescriptors.set(K.descriptorHash,K),this.storedResolutions.set(K.descriptorHash,u.locatorHash)}}}}}async setupWorkspaces(){this.workspaces=[],this.workspacesByCwd=new Map,this.workspacesByIdent=new Map;let e=[this.cwd];for(;e.length>0;){let r=e;e=[];for(let i of r){if(this.workspacesByCwd.has(i))continue;let n=await this.addWorkspace(i),s=this.storedPackages.get(n.anchoredLocator.locatorHash);s&&(n.dependencies=s.dependencies);for(let o of n.workspacesCwds)e.push(o)}}}async addWorkspace(e){let r=new Dd(e,{project:this});await r.setup();let i=this.workspacesByIdent.get(r.locator.identHash);if(typeof i!="undefined")throw new Error(`Duplicate workspace name ${Vr(this.configuration,r.locator)}: ${M.fromPortablePath(e)} conflicts with ${M.fromPortablePath(i.cwd)}`);return this.workspaces.push(r),this.workspacesByCwd.set(e,r),this.workspacesByIdent.set(r.locator.identHash,r),r}get topLevelWorkspace(){return this.getWorkspaceByCwd(this.cwd)}tryWorkspaceByCwd(e){v.isAbsolute(e)||(e=v.resolve(this.cwd,e)),e=v.normalize(e).replace(/\/+$/,"");let r=this.workspacesByCwd.get(e);return r||null}getWorkspaceByCwd(e){let r=this.tryWorkspaceByCwd(e);if(!r)throw new Error(`Workspace not found (${e})`);return r}tryWorkspaceByFilePath(e){let r=null;for(let i of this.workspaces)v.relative(i.cwd,e).startsWith("../")||r&&r.cwd.length>=i.cwd.length||(r=i);return r||null}getWorkspaceByFilePath(e){let r=this.tryWorkspaceByFilePath(e);if(!r)throw new Error(`Workspace not found (${e})`);return r}tryWorkspaceByIdent(e){let r=this.workspacesByIdent.get(e.identHash);return typeof r=="undefined"?null:r}getWorkspaceByIdent(e){let r=this.tryWorkspaceByIdent(e);if(!r)throw new Error(`Workspace not found (${Vr(this.configuration,e)})`);return r}tryWorkspaceByDescriptor(e){let r=this.tryWorkspaceByIdent(e);return r===null||(hA(e)&&(e=Ap(e)),!r.accepts(e.range))?null:r}getWorkspaceByDescriptor(e){let r=this.tryWorkspaceByDescriptor(e);if(r===null)throw new Error(`Workspace not found (${Xt(this.configuration,e)})`);return r}tryWorkspaceByLocator(e){let r=this.tryWorkspaceByIdent(e);return r===null||(Eo(e)&&(e=lp(e)),r.locator.locatorHash!==e.locatorHash&&r.anchoredLocator.locatorHash!==e.locatorHash)?null:r}getWorkspaceByLocator(e){let r=this.tryWorkspaceByLocator(e);if(!r)throw new Error(`Workspace not found (${lt(this.configuration,e)})`);return r}refreshWorkspaceDependencies(){for(let e of this.workspaces){let r=this.storedPackages.get(e.anchoredLocator.locatorHash);if(!r)throw new Error(`Assertion failed: Expected workspace ${hp(this.configuration,e)} (${Ve(this.configuration,v.join(e.cwd,wt.manifest),Le.PATH)}) to have been resolved. Run "yarn install" to update the lockfile`);e.dependencies=new Map(r.dependencies)}}forgetResolution(e){let r=n=>{this.storedResolutions.delete(n),this.storedDescriptors.delete(n)},i=n=>{this.originalPackages.delete(n),this.storedPackages.delete(n),this.accessibleLocators.delete(n)};if("descriptorHash"in e){let n=this.storedResolutions.get(e.descriptorHash);r(e.descriptorHash);let s=new Set(this.storedResolutions.values());typeof n!="undefined"&&!s.has(n)&&i(n)}if("locatorHash"in e){i(e.locatorHash);for(let[n,s]of this.storedResolutions)s===e.locatorHash&&r(n)}}forgetTransientResolutions(){let e=this.configuration.makeResolver();for(let r of this.originalPackages.values()){let i;try{i=e.shouldPersistResolution(r,{project:this,resolver:e})}catch{i=!1}i||this.forgetResolution(r)}}forgetVirtualResolutions(){for(let e of this.storedPackages.values())for(let[r,i]of e.dependencies)hA(i)&&e.dependencies.s Line truncated
`;switch(re){case Gn.SCRIPT:be+=`# Script name: ${se}
`;break;case Gn.SHELLCODE:be+=`# Script code: ${se}
`;break}let ae=null;if(!await T.mktempPromise(async De=>{let $=v.join(De,"build.log"),{stdout:G,stderr:Ce}=this.configuration.getSubprocessStreams($,{header:be,prefix:lt(this.configuration,he),report:r}),ee;try{switch(re){case Gn.SCRIPT:ee=await Uw(he,se,[],{cwd:qe,project:this,stdin:ae,stdout:G,stderr:Ce});break;case Gn.SHELLCODE:ee=await rD(he,se,[],{cwd:qe,project:this,stdin:ae,stdout:G,stderr:Ce});break}}catch(Oe){Ce.write(Oe.stack),ee=1}if(G.end(),Ce.end(),ee===0)return ne.set(he.locatorHash,Pe),!0;T.detachTemp(De);let Ue=`${lt(this.configuration,he)} couldn't be built successfully (exit code ${Ve(this.configuration,ee,Le.NUMBER)}, logs can be found here: ${Ve(this.configuration,$,Le.PATH)})`;return this.optionalBuilds.has(he.locatorHash)?(r.reportInfo(z.BUILD_FAILED,Ue),ne.set(he.locatorHash,Pe),!0):(r.reportError(z.BUILD_FAILED,Ue),!1)}))return}})())}}if(await Promise.all(F),X===b.size){let D=Array.from(b).map(he=>{let pe=this.storedPackages.get(he);if(!pe)throw new Error("Assertion failed: The package should have been registered");return lt(this.configuration,pe)}).join(", ");r.reportError(z.CYCLIC_DEPENDENCIES,`Some packages have circular dependencies that make their build order unsatisfiable - as a result they won't be built (affected packages are: ${D})`);break}}this.storedBuildState=ne}async install(e){var a,l;let r=this.configuration.get("nodeLinker");(a=fe.telemetry)==null||a.reportInstall(r),await e.report.startTimerPromise("Project validation",{skipIfEmpty:!0},async()=>{await this.configuration.triggerHook(c=>c.validateProject,this,{reportWarning:e.report.reportWarning.bind(e.report),reportError:e.report.reportError.bind(e.report)})});for(let c of this.configuration.packageExtensions.values())for(let[,u]of c)for(let g of u)g.status=ki.Inactive;let i=v.join(this.cwd,this.configuration.get("lockfileFilename")),n=null;if(e.immutable)try{n=await T.readFilePromise(i,"utf8")}catch(c){throw c.code==="ENOENT"?new nt(z.FROZEN_LOCKFILE_EXCEPTION,"The lockfile would have been created by this install, which is explicitly forbidden."):c}await e.report.startTimerPromise("Resolution step",async()=>{await this.resolveEverything(e)}),await e.report.startTimerPromise("Post-resolution validation",{skipIfEmpty:!0},async()=>{for(let[,c]of this.configuration.packageExtensions)for(let[,u]of c)for(let g of u)if(g.userProvided){let f=Ve(this.configuration,g,Le.PACKAGE_EXTENSION);switch(g.status){case ki.Inactive:e.report.reportWarning(z.UNUSED_PACKAGE_EXTENSION,`${f}: No matching package in the dependency tree; you may not need this rule anymore.`);break;case ki.Redundant:e.report.reportWarning(z.REDUNDANT_PACKAGE_EXTENSION,`${f}: This rule seems redundant when applied on the original package; the extension may have been applied upstream.`);break}}if(n!==null){let c=ul(n,this.generateLockfile());if(c!==n){let u=(0,v$.structuredPatch)(i,i,n,c);e.report.reportSeparator();for(let g of u.hunks){e.report.reportInfo(null,`@@ -${g.oldStart},${g.oldLines} +${g.newStart},${g.newLines} @@`);for(let f of g.lines)f.startsWith("+")?e.report.reportError(z.FROZEN_LOCKFILE_EXCEPTION,Ve(this.configuration,f,Le.ADDED)):f.startsWith("-")?e.report.reportError(z.FROZEN_LOCKFILE_EXCEPTION,Ve(this.configuration,f,Le.REMOVED)):e.report.reportInfo(null,Ve(this.configuration,f,"grey"))}throw e.report.reportSeparator(),new nt(z.FROZEN_LOCKFILE_EXCEPTION,"The lockfile would have been modified by this install, which is explicitly forbidden.")}}});for(let c of this.configuration.packageExtensions.values())for(let[,u]of c)for(let g of u)g.userProvided&&g.status===ki.Active&&((l=fe.telemetry)==null||l.reportPackageExtension(Uu(g,Le.PACKAGE_EXTENSION)));await e.report.startTimerPromise("Fetch step",async()=>{await this.fetchEverything(e),(typeof e.persistProject=="undefined"||e.persistProject)&&e.mode!==li.UpdateLockfile&&await this.cacheCleanup(e)});let s=e.immutable?[...new Set(this.configuration.get("immutablePatterns"))].sort():[],o=await Promise.all(s.map(async c=>Ey(c,{cwd:this.cwd})));(typeof e.persistProject=="undefined"||e.persistProject)&&await this.persist(),await e.report.startTimerPromise("Link step",async()=>{if(e.mode===li.UpdateLockfile){e.report.reportWarning(z.UPDATE_LOCKFILE_ONLY_SKIP_LINK,`Skipped due to ${Ve(this.configuration,"mode=update-lockfile",Le.CODE)}`);return}await this.linkEverything(e);let c=await Promise.all(s.map(async u=>Ey(u,{cwd:this.cwd})));for(let u=0;u<s.length;++u)o[u]!==c[u]&&e.report.reportError(z.FROZEN_ARTIFACT_EXCEPTION,`The checksum for ${s[u]} has been modified by this install, which is explicitly forbidden.`)}),await this.persistInstallStateFile(),await this.configuration.triggerHook(c=>c.afterAllInstalled,this,e)}generateLockfile(){let e=new Map;for(let[n,s]of this.storedResolutions.entries()){let o=e.get(s);o||e.set(s,o=new Set),o.add(n)}let r={};r.__metadata={version:k$,cacheKey:void 0};for(let[n,s]of e.entries()){let o=this.originalPackages.get(n);if(!o)continue;let a=[];for(let f of s){let h=th Line truncated
`,`# Manual changes might be lost - proceed with caution!
`].join("")}
`+Qa(r)}async persistLockfile(){let e=v.join(this.cwd,this.configuration.get("lockfileFilename")),r="";try{r=await T.readFilePromise(e,"utf8")}catch(s){}let i=this.generateLockfile(),n=ul(r,i);n!==r&&(await T.writeFilePromise(e,n),this.lockFileChecksum=D$(n),this.lockfileNeedsRefresh=!1)}async persistInstallStateFile(){let e=[];for(let o of Object.values(gF))e.push(...o);let r=(0,r0.default)(this,e),i=cF.default.serialize(r),n=zi(i);if(this.installStateChecksum===n)return;let s=this.configuration.get("installStatePath");await T.mkdirPromise(v.dirname(s),{recursive:!0}),await T.writeFilePromise(s,await aUe(i)),this.installStateChecksum=n}async restoreInstallState({restoreInstallersCustomData:e=!0,restoreResolutions:r=!0,restoreBuildState:i=!0}={}){let n=this.configuration.get("installStatePath");if(!T.existsSync(n)){r&&await this.applyLightResolution();return}let s=await AUe(await T.readFilePromise(n));this.installStateChecksum=zi(s);let o=cF.default.deserialize(s);e&&typeof o.installersCustomData!="undefined"&&(this.installersCustomData=o.installersCustomData),i&&Object.assign(this,(0,r0.default)(o,gF.restoreBuildState)),r&&(o.lockFileChecksum===this.lockFileChecksum?(Object.assign(this,(0,r0.default)(o,gF.restoreResolutions)),this.refreshWorkspaceDependencies()):await this.applyLightResolution())}async applyLightResolution(){await this.resolveEverything({lockfileOnly:!0,report:new ei}),await this.persistInstallStateFile()}async persist(){await this.persistLockfile();for(let e of this.workspacesByCwd.values())await e.persistManifest()}async cacheCleanup({cache:e,report:r}){let i=new Set([".gitignore"]);if(!Fb(e.cwd,this.cwd)||!await T.existsPromise(e.cwd))return;let n=this.configuration.get("preferAggregateCacheInfo"),s=0,o=null;for(let a of await T.readdirPromise(e.cwd)){if(i.has(a))continue;let l=v.resolve(e.cwd,a);e.markedFiles.has(l)||(o=a,e.immutable?r.reportError(z.IMMUTABLE_CACHE,`${Ve(this.configuration,v.basename(l),"magenta")} appears to be unused and would be marked for deletion, but the cache is immutable`):(n?s+=1:r.reportInfo(z.UNUSED_CACHE_ENTRY,`${Ve(this.configuration,v.basename(l),"magenta")} appears to be unused - removing`),await T.removePromise(l)))}n&&s!==0&&r.reportInfo(z.UNUSED_CACHE_ENTRY,s>1?`${s} packages appeared to be unused and were removed`:`${o} appeared to be unused and was removed`),e.markedFiles.clear()}};function lUe({project:t,allDescriptors:e,allResolutions:r,allPackages:i,accessibleLocators:n=new Set,optionalBuilds:s=new Set,volatileDescriptors:o=new Set,peerRequirements:a=new Map,report:l,tolerateMissingPackages:c=!1}){var ne;let u=new Map,g=[],f=new Map,h=new Map,p=new Map,d=new Map,m=new Map,E=new Map(t.workspaces.map(q=>{let A=q.anchoredLocator.locatorHash,V=i.get(A);if(typeof V=="undefined"){if(c)return[A,null];throw new Error("Assertion failed: The workspace should have an associated package")}return[A,ap(V)]})),B=()=>{let q=T.mktempSync(),A=v.join(q,"stacktrace.log"),V=String(g.length+1).length,W=g.map((X,F)=>`${`${F+1}.`.padStart(V," ")} ${is(X)}
`).join("");throw T.writeFileSync(A,W),T.detachTemp(q),new nt(z.STACK_OVERFLOW_RESOLUTION,`Encountered a stack overflow when resolving peer dependencies; cf ${M.fromPortablePath(A)}`)},b=q=>{let A=r.get(q.descriptorHash);if(typeof A=="undefined")throw new Error("Assertion failed: The resolution should have been registered");let V=i.get(A);if(!V)throw new Error("Assertion failed: The package could not be found");return V},R=(q,A,V,{top:W,optional:X})=>{g.length>1e3&&B(),g.push(A);let F=H(q,A,V,{top:W,optional:X});return g.pop(),F},H=(q,A,V,{top:W,optional:X})=>{if(n.has(A.locatorHash))return;n.add(A.locatorHash),X||s.delete(A.locatorHash);let F=i.get(A.locatorHash);if(!F){if(c)return;throw new Error(`Assertion failed: The package (${lt(t.configuration,A)}) should have been registered`)}let D=[],he=[],pe=[],Ne=[],Pe=[];for(let re of Array.from(F.dependencies.values())){if(F.peerDependencies.has(re.identHash)&&F.locatorHash!==W)continue;if(hA(re))throw new Error("Assertion failed: Virtual packages shouldn't be encountered when virtualizing a branch");o.delete(re.descriptorHash);let se=X;if(!se){let ee=F.dependenciesMeta.get(St(re));if(typeof ee!="undefined"){let Ue=ee.get(null);typeof Ue!="undefined"&&Ue.optional&&(se=!0)}}let be=r.get(re.descriptorHash);if(!be){if(c)continue;throw new Error(`Assertion failed: The resolution (${Xt(t.configuration,re)}) should have been registered`)}let ae=E.get(be)||i.get(be);if(!ae)throw new Error(`Assertion failed: The package (${be}, resolved from ${Xt(t.configuration,re)}) should have been registered`);if(ae.peerDependencies.size===0){R(re,ae,new Map,{top:W,optional:se});continue}let Ae=u.get(ae.locatorHash);typeof Ae=="number"&&Ae>=2&&B();let De,$,G=new Set,Ce;he.push(()=>{De=kx(re,A.locatorHash),$=Px(ae,A.locatorHash),F.dependencies.delete(re.identHash),F.dependencies.set(De.identHash,De),r.set(De.descriptorHash,$.locatorHash),e.set(De.descriptorHash,De),i.set($.locatorHash,$),D.push([ae,De,$])}),pe.push(()=>{var ee;Ce=new Map;for(let Ue of $.peerDependencies.values()){let Oe=F.dependencies.get(Ue.identHash);if(!Oe&&cp(A,Ue)&&(Oe=q),(!Oe||Oe.range==="missing:")&&$.dependencies.has(Ue.identHash)){$.peerDependencies.delete(Ue.identHash);continue}Oe||(Oe=Yt(Ue,"missing:")),$.dependencies.set(Oe.identHash,Oe),hA(Oe)&&Pl(p,Oe.descriptorHash).add($.locatorHash),f.set(Oe.identHash,Oe),Oe.range==="missing:"&&G.add(Oe.identHash),Ce.set(Ue.identHash,(ee=V.get(Ue.identHash))!=null?ee:$.locatorHash)}$.dependencies=new Map(gn($.dependencies,([Ue,Oe])=>St(Oe)))}),Ne.push(()=>{if(!i.has($.locatorHash))return;let ee=u.get(ae.locatorHash),Ue=typeof ee!="undefined"?ee+1:1;u.set(ae.locatorHash,Ue),R(De,$,Ce,{top:W,optional:se}),u.set(ae.locatorHash,Ue-1)}),Pe.push(()=>{let ee=F.dependencies.get(re.identHash);if(typeof ee=="undefined")throw new Error("Assertion failed: Expected the peer dependency to have been turned into a dependency");let Ue=r.get(ee.descriptorHash);if(typeof Ue=="undefined")throw new Error("Assertion failed: Expected the descriptor to be registered");if(Pl(m,Ue).add(A.locatorHash),!!i.has($.locatorHash)){for(let Oe of $.peerDependencies.values()){let vt=Ce.get(Oe.identHash);if(typeof vt=="undefined")throw new Error("Assertion failed: Expected the peer dependency ident to be registered");hu(pu(d,vt),St(Oe)).push($.locatorHash)}for(let Oe of G)$.dependencies.delete(Oe)}})}for(let re of[...he,...pe])re();let qe;do{qe=!0;for(let[re,se,be]of D){if(!i.has(be.locatorHash))continue;let ae=pu(h,re.locatorHash),Ae=zi(...[...be.dependencies.values()].map(Ce=>{let ee=Ce.range!=="missing:"?r.get(Ce.descriptorHash):"missing:";if(typeof ee=="undefined")throw new Error(`Assertion failed: Expected the resolution for ${Xt(t.configuration,Ce)} to have been registered`);return ee===W?`${ee} (top)`:ee}),se.identHash),De=ae.get(Ae);if(typeof De=="undefined"){ae.set(Ae,se);continue}if(De===se)continue;qe=!1,i.delete(be.locatorHash),e.delete(se.descriptorHash),r.delete(se.descriptorHash),n.delete(be.locatorHash);let $=p.get(se.descriptorHash)||[],G=[F.locatorHash,...$];p.delete(se.descriptorHash);for(let Ce of G){let ee=i.get(Ce);typeof ee!="undefined"&&ee.dependencies.set(se.identHash,De)}}}while(!qe);for(let re of[...Ne,...Pe])re()};for(let q of t.workspaces){let A=q.anchoredLocator;o.delete(q.anchoredDescriptor.descriptorHash),R(q.anchoredDescriptor,A,new Map,{top:A.locatorHash,optional:!1})}var L;(function(V){V[V.NotProvided=0]="NotProvided",V[V.NotCompatible=1]="NotCompatible"})(L||(L={}));let K=[];for(let[q,A]of m){let V=i.get(q);if(typeof V=="undefined")throw new Error("Assertion failed: Expected the root to be registered");let W=d.get(q);if(typeof W!="undefined")for(let X of A){let F=i.get(X);if(typeof F!="undefined")for(let[D,he]of W){let pe=In(D);if(F.peerDependencies.has(pe.identHash))continue;let Ne=`p${zi(X,D,q).slice(0,5)}`;a.set(Ne,{subject:X,requested:pe,rootRequester:q,allRequesters:he});let Pe=V.dependencies.get(pe.identHash);if(typeof Pe!="undefined"){let qe=b(Pe),re=(ne=qe. Line truncated
`),(await Fe.start({configuration:e,json:this.json,stdout:this.context.stdout,includeLogs:!this.context.quiet},async m=>{await r.install({cache:n,report:m,mode:this.mode})})).exitCode()}};cC.paths=[["add"]],cC.usage=ye.Usage({description:"add dependencies to the project",details:"\n This command adds a package to the package.json for the nearest workspace.\n\n - If it didn't exist before, the package will by default be added to the regular `dependencies` field, but this behavior can be overriden thanks to the `-D,--dev` flag (which will cause the dependency to be added to the `devDependencies` field instead) and the `-P,--peer` flag (which will do the same but for `peerDependencies`).\n\n - If the package was already listed in your dependencies, it will by default be upgraded whether it's part of your `dependencies` or `devDependencies` (it won't ever update `peerDependencies`, though).\n\n - If set, the `--prefer-dev` flag will operate as a more flexible `-D,--dev` in that it will add the package to your `devDependencies` if it isn't already listed in either `dependencies` or `devDependencies`, but it will also happily upgrade your `dependencies` if that's what you already use (whereas `-D,--dev` would throw an exception).\n\n - If set, the `-O,--optional` flag will add the package to the `optionalDependencies` field and, in combination with the `-P,--peer` flag, it will add the package as an optional peer dependency. If the package was already listed in your `dependencies`, it will be upgraded to `optionalDependencies`. If the package was already listed in your `peerDependencies`, in combination with the `-P,--peer` flag, it will be upgraded to an optional peer dependency: `\"peerDependenciesMeta\": { \"<package>\": { \"optional\": true } }`\n\n - If the added package doesn't specify a range at all its `latest` tag will be resolved and the returned version will be used to generate a new semver range (using the `^` modifier by default unless otherwise configured via the `defaultSemverRangePrefix` configuration, or the `~` modifier if `-T,--tilde` is specified, or no modifier at all if `-E,--exact` is specified). Two exceptions to this rule: the first one is that if the package is a workspace then its local version will be used, and the second one is that if you use `-P,--peer` the default range will be `*` and won't be resolved at all.\n\n - If the added package specifies a range (such as `^1.0.0`, `latest`, or `rc`), Yarn will add this range as-is in the resulting package.json entry (in particular, tags such as `rc` will be encoded as-is rather than being converted into a semver range).\n\n If the `--cached` option is used, Yarn will preferably reuse the highest version already used somewhere within the project, even if through a transitive dependency.\n\n If the `-i,--interactive` option is used (or if the `preferInteractive` settings is toggled on) the command will first try to check whether other workspaces in the project use the specified package and, if so, will offer to reuse them.\n\n If the `--mode=<mode>` option is set, Yarn will change which artifacts are generated. The modes currently supported are:\n\n - `skip-build` will not run the build scripts at all. Note that this is different from setting `enableScripts` to false because the later will disable build scripts, and thus affect the content of the artifacts generated on disk, whereas the former will just disable the build step - but not the scripts themselves, which just won't run.\n\n - `update-lockfile` will skip the link step altogether, and only fetch packages that are missing from the lockfile (or that have no associated checksums). This mode is typically used by tools like Renovate or Dependabot to keep a lockfile up-to-date without incurring the full install cost.\n\n For a compilation of all the supported protocols, please consult the dedicated page from our website: https://yarnpkg.com/features/protocols.\n ",examples:[["Add a regular package to the current workspace","$0 add lodash"],["Add a specific version for a package to the current workspace","$0 add lodash@1.2.3"],["Add a package from a GitHub repository (the master branch) to the current workspace using a URL","$0 add lodash@https://github.com/lodash/lodash"],["Add a package from a GitHub repository (the master branch) to the current workspace using the GitHub protocol","$0 add lodash@github:lodash/lodash"],["Add a package from a GitHub repository (the master branch) to the current workspace using the GitHub protocol (shorthand)","$0 add lodash@lodash/lodash"],["Add a package from a specific branch of a GitHub repository to the current workspace using the GitHub protocol (shorthand)","$0 add lodash-es@lodash/lodash#es"]]});var ioe=cC;function O3e(t,e,{dev:r,peer:i,preferDev:n,optional:s}){let o=t.manifest[vr.REGULAR].has(e.identHash),a=t.manifest[vr.DEVELOPMENT].has(e.identHash),l=t.manifest[vr.PEER].has(e.Line truncated
`),0}return(await Fe.start({configuration:e,json:this.json,stdout:this.context.stdout},async s=>{let o=await Kt.getPackageAccessibleBinaries(i,{project:r}),l=Array.from(o.keys()).reduce((c,u)=>Math.max(c,u.length),0);for(let[c,[u,g]]of o)s.reportJson({name:c,source:S.stringifyIdent(u),path:g});if(this.verbose)for(let[c,[u]]of o)s.reportInfo(null,`${c.padEnd(l," ")} ${S.prettyLocator(e,u)}`);else for(let c of o.keys())s.reportInfo(null,c)})).exitCode()}};uC.paths=[["bin"]],uC.usage=ye.Usage({description:"get the path to a binary script",details:`
When used without arguments, this command will print the list of all the binaries available in the current workspace. Adding the \`-v,--verbose\` flag will cause the output to contain both the binary name and the locator of the package that provides the binary.
When an argument is specified, this command will just print the path to the binary on the standard output and exit. Note that the reported path may be stored within a zip archive.
`,examples:[["List all the available binaries","$0 bin"],["Print the path to a specific binary","$0 bin eslint"]]});var noe=uC;var gC=class extends Be{constructor(){super(...arguments);this.mirror=Y.Boolean("--mirror",!1,{description:"Remove the global cache files instead of the local cache files"});this.all=Y.Boolean("--all",!1,{description:"Remove both the global cache files and the local cache files of the current project"})}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),r=await Qt.find(e);return(await Fe.start({configuration:e,stdout:this.context.stdout},async()=>{let n=(this.all||this.mirror)&&r.mirrorCwd!==null,s=!this.mirror;n&&(await T.removePromise(r.mirrorCwd),await e.triggerHook(o=>o.cleanGlobalArtifacts,e)),s&&await T.removePromise(r.cwd)})).exitCode()}};gC.paths=[["cache","clean"],["cache","clear"]],gC.usage=ye.Usage({description:"remove the shared cache files",details:`
This command will remove all the files from the cache.
`,examples:[["Remove all the local archives","$0 cache clean"],["Remove all the archives stored in the ~/.yarn directory","$0 cache clean --mirror"]]});var soe=gC;var ooe=ie(p0()),KN=ie(require("util")),fC=class extends Be{constructor(){super(...arguments);this.json=Y.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.unsafe=Y.Boolean("--no-redacted",!1,{description:"Don't redact secrets (such as tokens) from the output"});this.name=Y.String()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),r=this.name.replace(/[.[].*$/,""),i=this.name.replace(/^[^.[]*/,"");if(typeof e.settings.get(r)=="undefined")throw new me(`Couldn't find a configuration settings named "${r}"`);let s=e.getSpecial(r,{hideSecrets:!this.unsafe,getNativePaths:!0}),o=de.convertMapsToIndexableObjects(s),a=i?(0,ooe.default)(o,i):o,l=await Fe.start({configuration:e,includeFooter:!1,json:this.json,stdout:this.context.stdout},async c=>{c.reportJson(a)});if(!this.json){if(typeof a=="string")return this.context.stdout.write(`${a}
`),l.exitCode();KN.inspect.styles.name="cyan",this.context.stdout.write(`${(0,KN.inspect)(a,{depth:Infinity,colors:e.get("enableColors"),compact:!1})}
`)}return l.exitCode()}};fC.paths=[["config","get"]],fC.usage=ye.Usage({description:"read a configuration settings",details:`
This command will print a configuration setting.
Secrets (such as tokens) will be redacted from the output by default. If this behavior isn't desired, set the \`--no-redacted\` to get the untransformed value.
`,examples:[["Print a simple configuration setting","yarn config get yarnPath"],["Print a complex configuration setting","yarn config get packageExtensions"],["Print a nested field from the configuration",`yarn config get 'npmScopes["my-company"].npmRegistryServer'`],["Print a token from the configuration","yarn config get npmAuthToken --no-redacted"],["Print a configuration setting as JSON","yarn config get packageExtensions --json"]]});var aoe=fC;var Iae=ie(qN()),Eae=ie(p0()),yae=ie(mae()),JN=ie(require("util")),pC=class extends Be{constructor(){super(...arguments);this.json=Y.Boolean("--json",!1,{description:"Set complex configuration settings to JSON values"});this.home=Y.Boolean("-H,--home",!1,{description:"Update the home configuration instead of the project configuration"});this.name=Y.String();this.value=Y.String()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),r=()=>{if(!e.projectCwd)throw new me("This command must be run from within a project folder");return e.projectCwd},i=this.name.replace(/[.[].*$/,""),n=this.name.replace(/^[^.[]*\.?/,"");if(typeof e.settings.get(i)=="undefined")throw new me(`Couldn't find a configuration settings named "${i}"`);if(i==="enableStrictSettings")throw new me("This setting only affects the file it's in, and thus cannot be set from the CLI");let o=this.json?JSON.parse(this.value):this.value;await(this.home?h=>fe.updateHomeConfiguration(h):h=>fe.updateConfiguration(r(),h))(h=>{if(n){let p=(0,Iae.default)(h);return(0,yae.default)(p,this.name,o),p}else return _(P({},h),{[i]:o})});let c=(await fe.find(this.context.cwd,this.context.plugins)).getSpecial(i,{hideSecrets:!0,getNativePaths:!0}),u=de.convertMapsToIndexableObjects(c),g=n?(0,Eae.default)(u,n):u;return(await Fe.start({configuration:e,includeFooter:!1,stdout:this.context.stdout},async h=>{JN.inspect.styles.name="cyan",h.reportInfo(z.UNNAMED,`Successfully set ${this.name} to ${(0,JN.inspect)(g,{depth:Infinity,colors:e.get("enableColors"),compact:!1})}`)})).exitCode()}};pC.paths=[["config","set"]],pC.usage=ye.Usage({description:"change a configuration settings",details:`
This command will set a configuration setting.
When used without the \`--json\` flag, it can only set a simple configuration setting (a string, a number, or a boolean).
When used with the \`--json\` flag, it can set both simple and complex configuration settings, including Arrays and Objects.
`,examples:[["Set a simple configuration setting (a string, a number, or a boolean)","yarn config set initScope myScope"],["Set a simple configuration setting (a string, a number, or a boolean) using the `--json` flag",'yarn config set initScope --json \\"myScope\\"'],["Set a complex configuration setting (an Array) using the `--json` flag",`yarn config set unsafeHttpWhitelist --json '["*.example.com", "example.com"]'`],["Set a complex configuration setting (an Object) using the `--json` flag",`yarn config set packageExtensions --json '{ "@babel/parser@*": { "dependencies": { "@babel/types": "*" } } }'`],["Set a nested configuration setting",'yarn config set npmScopes.company.npmRegistryServer "https://npm.example.com"'],["Set a nested configuration setting using indexed access for non-simple keys",`yarn config set 'npmRegistries["//npm.example.com"].npmAuthToken' "ffffffff-ffff-ffff-ffff-ffffffffffff"`]]});var wae=pC;var Dae=ie(qN()),Rae=ie(Ld()),Fae=ie(Pae()),dC=class extends Be{constructor(){super(...arguments);this.home=Y.Boolean("-H,--home",!1,{description:"Update the home configuration instead of the project configuration"});this.name=Y.String()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),r=()=>{if(!e.projectCwd)throw new me("This command must be run from within a project folder");return e.projectCwd},i=this.name.replace(/[.[].*$/,""),n=this.name.replace(/^[^.[]*\.?/,"");if(typeof e.settings.get(i)=="undefined")throw new me(`Couldn't find a configuration settings named "${i}"`);let o=this.home?l=>fe.updateHomeConfiguration(l):l=>fe.updateConfiguration(r(),l);return(await Fe.start({configuration:e,includeFooter:!1,stdout:this.context.stdout},async l=>{let c=!1;await o(u=>{if(!(0,Rae.default)(u,this.name))return l.reportWarning(z.UNNAMED,`Configuration doesn't contain setting ${this.name}; there is nothing to unset`),c=!0,u;let g=n?(0,Dae.default)(u):P({},u);return(0,Fae.default)(g,this.name),g}),c||l.reportInfo(z.UNNAMED,`Successfully unset ${this.name}`)})).exitCode()}};dC.paths=[["config","unset"]],dC.usage=ye.Usage({description:"unset a configuration setting",details:`
This command will unset a configuration setting.
`,examples:[["Unset a simple configuration setting","yarn config unset initScope"],["Unset a complex configuration setting","yarn config unset packageExtensions"],["Unset a nested configuration setting","yarn config unset npmScopes.company.npmRegistryServer"]]});var Nae=dC;var WN=ie(require("util")),CC=class extends Be{constructor(){super(...arguments);this.verbose=Y.Boolean("-v,--verbose",!1,{description:"Print the setting description on top of the regular key/value information"});this.why=Y.Boolean("--why",!1,{description:"Print the reason why a setting is set a particular way"});this.json=Y.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"})}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins,{strict:!1});return(await Fe.start({configuration:e,json:this.json,stdout:this.context.stdout},async i=>{if(e.invalid.size>0&&!this.json){for(let[n,s]of e.invalid)i.reportError(z.INVALID_CONFIGURATION_KEY,`Invalid configuration key "${n}" in ${s}`);i.reportSeparator()}if(this.json){let n=de.sortMap(e.settings.keys(),s=>s);for(let s of n){let o=e.settings.get(s),a=e.getSpecial(s,{hideSecrets:!0,getNativePaths:!0}),l=e.sources.get(s);this.verbose?i.reportJson({key:s,effective:a,source:l}):i.reportJson(P({key:s,effective:a,source:l},o))}}else{let n=de.sortMap(e.settings.keys(),a=>a),s=n.reduce((a,l)=>Math.max(a,l.length),0),o={breakLength:Infinity,colors:e.get("enableColors"),maxArrayLength:2};if(this.why||this.verbose){let a=n.map(c=>{let u=e.settings.get(c);if(!u)throw new Error(`Assertion failed: This settings ("${c}") should have been registered`);let g=this.why?e.sources.get(c)||"<default>":u.description;return[c,g]}),l=a.reduce((c,[,u])=>Math.max(c,u.length),0);for(let[c,u]of a)i.reportInfo(null,`${c.padEnd(s," ")} ${u.padEnd(l," ")} ${(0,WN.inspect)(e.getSpecial(c,{hideSecrets:!0,getNativePaths:!0}),o)}`)}else for(let a of n)i.reportInfo(null,`${a.padEnd(s," ")} ${(0,WN.inspect)(e.getSpecial(a,{hideSecrets:!0,getNativePaths:!0}),o)}`)}})).exitCode()}};CC.paths=[["config"]],CC.usage=ye.Usage({description:"display the current configuration",details:`
This command prints the current active configuration settings.
`,examples:[["Print the active configuration settings","$0 config"]]});var Lae=CC;Ss();var zN={};it(zN,{Strategy:()=>Oc,acceptedStrategies:()=>Hze,dedupe:()=>VN});var Tae=ie(Nn()),Oc;(function(e){e.HIGHEST="highest"})(Oc||(Oc={}));var Hze=new Set(Object.values(Oc)),Gze={highest:async(t,e,{resolver:r,fetcher:i,resolveOptions:n,fetchOptions:s})=>{let o=new Map;for(let[a,l]of t.storedResolutions){let c=t.storedDescriptors.get(a);if(typeof c=="undefined")throw new Error(`Assertion failed: The descriptor (${a}) should have been registered`);de.getSetWithDefault(o,c.identHash).add(l)}return Array.from(t.storedDescriptors.values(),async a=>{if(e.length&&!Tae.default.isMatch(S.stringifyIdent(a),e))return null;let l=t.storedResolutions.get(a.descriptorHash);if(typeof l=="undefined")throw new Error(`Assertion failed: The resolution (${a.descriptorHash}) should have been registered`);let c=t.originalPackages.get(l);if(typeof c=="undefined"||!r.shouldPersistResolution(c,n))return null;let u=o.get(a.identHash);if(typeof u=="undefined")throw new Error(`Assertion failed: The resolutions (${a.identHash}) should have been registered`);if(u.size===1)return null;let g=[...u].map(m=>{let E=t.originalPackages.get(m);if(typeof E=="undefined")throw new Error(`Assertion failed: The package (${m}) should have been registered`);return E.reference}),f=await r.getSatisfying(a,g,n),h=f==null?void 0:f[0];if(typeof h=="undefined")return null;let p=h.locatorHash,d=t.originalPackages.get(p);if(typeof d=="undefined")throw new Error(`Assertion failed: The package (${p}) should have been registered`);return p===l?null:{descriptor:a,currentPackage:c,updatedPackage:d}})}};async function VN(t,{strategy:e,patterns:r,cache:i,report:n}){let{configuration:s}=t,o=new ei,a=s.makeResolver(),l=s.makeFetcher(),c={cache:i,checksums:t.storedChecksums,fetcher:l,project:t,report:o,skipIntegrityCheck:!0,cacheOptions:{skipIntegrityCheck:!0}},u={project:t,resolver:a,report:o,fetchOptions:c};return await n.startTimerPromise("Deduplication step",async()=>{let f=await Gze[e](t,r,{resolver:a,resolveOptions:u,fetcher:l,fetchOptions:c}),h=Xi.progressViaCounter(f.length);n.reportProgress(h);let p=0;await Promise.all(f.map(E=>E.then(B=>{if(B===null)return;p++;let{descriptor:b,currentPackage:R,updatedPackage:H}=B;n.reportInfo(z.UNNAMED,`${S.prettyDescriptor(s,b)} can be deduped from ${S.prettyLocator(s,R)} to ${S.prettyLocator(s,H)}`),n.reportJson({descriptor:S.stringifyDescriptor(b),currentResolution:S.stringifyLocator(R),updatedResolution:S.stringifyLocator(H)}),t.storedResolutions.set(b.descriptorHash,H.locatorHash)}).finally(()=>h.tick())));let d;switch(p){case 0:d="No packages";break;case 1:d="One package";break;default:d=`${p} packages`}let m=ue.pretty(s,e,ue.Type.CODE);return n.reportInfo(z.UNNAMED,`${d} can be deduped using the ${m} strategy`),p})}var mC=class extends Be{constructor(){super(...arguments);this.strategy=Y.String("-s,--strategy",Oc.HIGHEST,{description:"The strategy to use when deduping dependencies",validator:Yi(Oc)});this.check=Y.Boolean("-c,--check",!1,{description:"Exit with exit code 1 when duplicates are found, without persisting the dependency tree"});this.json=Y.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.mode=Y.String("--mode",{description:"Change what artifacts installs generate",validator:Yi(li)});this.patterns=Y.Rest()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r}=await Ke.find(e,this.context.cwd),i=await Qt.find(e);await r.restoreInstallState({restoreResolutions:!1});let n=0,s=await Fe.start({configuration:e,includeFooter:!1,stdout:this.context.stdout,json:this.json},async o=>{n=await VN(r,{strategy:this.strategy,patterns:this.patterns,cache:i,report:o})});return s.hasErrors()?s.exitCode():this.check?n?1:0:(await Fe.start({configuration:e,stdout:this.context.stdout,json:this.json},async a=>{await r.install({cache:i,report:a,mode:this.mode})})).exitCode()}};mC.paths=[["dedupe"]],mC.usage=ye.Usage({description:"deduplicate dependencies with overlapping ranges",details:"\n Duplicates are defined as descriptors with overlapping ranges being resolved and locked to different locators. They are a natural consequence of Yarn's deterministic installs, but they can sometimes pile up and unnecessarily increase the size of your project.\n\n This command dedupes dependencies in the current project using different strategies (only one is implemented at the moment):\n\n - `highest`: Reuses (where possible) the locators with the highest versions. This means that dependencies can only be upgraded, never downgraded. It's also guaranteed that it never takes more than a single pass to dedupe the entire dependency tree.\n\n **Note:** Even though it never produces a wrong dependency tree, this command should be used with caution, as it modifies the dependency tree, which can sometimes cause problems when packages don't strictly follow semver recommendations Line truncated
`)}};Y0.paths=[["--clipanion=definitions"]];var Uae=Y0;var q0=class extends Be{async execute(){this.context.stdout.write(this.cli.usage(null))}};q0.paths=[["help"],["--help"],["-h"]];var Hae=q0;var _N=class extends Be{constructor(){super(...arguments);this.leadingArgument=Y.String();this.args=Y.Proxy()}async execute(){if(this.leadingArgument.match(/[\\/]/)&&!S.tryParseIdent(this.leadingArgument)){let e=v.resolve(this.context.cwd,M.toPortablePath(this.leadingArgument));return await this.cli.run(this.args,{cwd:e})}else return await this.cli.run(["run",this.leadingArgument,...this.args])}},Gae=_N;var J0=class extends Be{async execute(){this.context.stdout.write(`${Zr||"<unknown>"}
`)}};J0.paths=[["-v"],["--version"]];var jae=J0;var IC=class extends Be{constructor(){super(...arguments);this.commandName=Y.String();this.args=Y.Proxy()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,locator:i}=await Ke.find(e,this.context.cwd);return await r.restoreInstallState(),await Kt.executePackageShellcode(i,this.commandName,this.args,{cwd:this.context.cwd,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr,project:r})}};IC.paths=[["exec"]],IC.usage=ye.Usage({description:"execute a shell script",details:`
This command simply executes a shell script within the context of the root directory of the active workspace using the portable shell.
It also makes sure to call it in a way that's compatible with the current project (for example, on PnP projects the environment will be setup in such a way that PnP will be correctly injected into the environment).
`,examples:[["Execute a single shell command","$0 exec echo Hello World"],["Execute a shell script",'$0 exec "tsc & babel src --out-dir lib"']]});var Yae=IC;Ss();var EC=class extends Be{constructor(){super(...arguments);this.hash=Y.String({required:!1,validator:fv(gv(),[hv(/^p[0-9a-f]{5}$/)])})}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r}=await Ke.find(e,this.context.cwd);return await r.restoreInstallState({restoreResolutions:!1}),await r.applyLightResolution(),typeof this.hash!="undefined"?await jze(this.hash,r,{stdout:this.context.stdout}):(await Fe.start({configuration:e,stdout:this.context.stdout,includeFooter:!1},async n=>{var o;let s=[([,a])=>S.stringifyLocator(r.storedPackages.get(a.subject)),([,a])=>S.stringifyIdent(a.requested)];for(let[a,l]of de.sortMap(r.peerRequirements,s)){let c=r.storedPackages.get(l.subject);if(typeof c=="undefined")throw new Error("Assertion failed: Expected the subject package to have been registered");let u=r.storedPackages.get(l.rootRequester);if(typeof u=="undefined")throw new Error("Assertion failed: Expected the root package to have been registered");let g=(o=c.dependencies.get(l.requested.identHash))!=null?o:null,f=ue.pretty(e,a,ue.Type.CODE),h=S.prettyLocator(e,c),p=S.prettyIdent(e,l.requested),d=S.prettyIdent(e,u),m=l.allRequesters.length-1,E=`descendant${m===1?"":"s"}`,B=m>0?` and ${m} ${E}`:"",b=g!==null?"provides":"doesn't provide";n.reportInfo(null,`${f} \u2192 ${h} ${b} ${p} to ${d}${B}`)}})).exitCode()}};EC.paths=[["explain","peer-requirements"]],EC.usage=ye.Usage({description:"explain a set of peer requirements",details:`
A set of peer requirements represents all peer requirements that a dependent must satisfy when providing a given peer request to a requester and its descendants.
When the hash argument is specified, this command prints a detailed explanation of all requirements of the set corresponding to the hash and whether they're satisfied or not.
When used without arguments, this command lists all sets of peer requirements and the corresponding hash that can be used to get detailed information about a given set.
**Note:** A hash is a six-letter p-prefixed code that can be obtained from peer dependency warnings or from the list of all peer requirements (\`yarn explain peer-requirements\`).
`,examples:[["Explain the corresponding set of peer requirements for a hash","$0 explain peer-requirements p1a4ed"],["List all sets of peer requirements","$0 explain peer-requirements"]]});var qae=EC;async function jze(t,e,r){let{configuration:i}=e,n=e.peerRequirements.get(t);if(typeof n=="undefined")throw new Error(`No peerDependency requirements found for hash: "${t}"`);return(await Fe.start({configuration:i,stdout:r.stdout,includeFooter:!1},async o=>{var E,B;let a=e.storedPackages.get(n.subject);if(typeof a=="undefined")throw new Error("Assertion failed: Expected the subject package to have been registered");let l=e.storedPackages.get(n.rootRequester);if(typeof l=="undefined")throw new Error("Assertion failed: Expected the root package to have been registered");let c=(E=a.dependencies.get(n.requested.identHash))!=null?E:null,u=c!==null?e.storedResolutions.get(c.descriptorHash):null;if(typeof u=="undefined")throw new Error("Assertion failed: Expected the resolution to have been registered");let g=u!==null?e.storedPackages.get(u):null;if(typeof g=="undefined")throw new Error("Assertion failed: Expected the provided package to have been registered");let f=[...n.allRequesters.values()].map(b=>{let R=e.storedPackages.get(b);if(typeof R=="undefined")throw new Error("Assertion failed: Expected the package to be registered");let H=S.devirtualizeLocator(R),L=e.storedPackages.get(H.locatorHash);if(typeof L=="undefined")throw new Error("Assertion failed: Expected the package to be registered");let K=L.peerDependencies.get(n.requested.identHash);if(typeof K=="undefined")throw new Error("Assertion failed: Expected the peer dependency to be registered");return{pkg:R,peerDependency:K}});if(g!==null){let b=f.every(({peerDependency:R})=>qt.satisfiesWithPrereleases(g.version,R.range));o.reportInfo(z.UNNAMED,`${S.prettyLocator(i,a)} provides ${S.prettyLocator(i,g)} with version ${S.prettyReference(i,(B=g.version)!=null?B:"<missing>")}, which ${b?"satisfies":"doesn't satisfy"} the following requirements:`)}else o.reportInfo(z.UNNAMED,`${S.prettyLocator(i,a)} doesn't provide ${S.prettyIdent(i,n.requested)}, breaking the following requirements:`);o.reportSeparator();let h=ue.mark(i),p=[];for(let{pkg:b,peerDependency:R}of de.sortMap(f,H=>S.stringifyLocator(H.pkg))){let L=(g!==null?qt.satisfiesWithPrereleases(g.version,R.range):!1)?h.Check:h.Cross;p.push({stringifiedLocator:S.stringifyLocator(b),prettyLocator:S.prettyLocator(i,b),prettyRange:S.prettyRange(i,R.range),mark:L})}let d=Math.max(...p.map(({stringifiedLocator:b})=>b.length)),m=Math.max(...p.map(({prettyRange:b})=>b.length));for(let{stringifiedLocator:b,prettyLocator:R,prettyRange:H,mark:L}of de.sortMap(p,({stringifiedLocator:K})=>K))o.reportInfo(null,`${R.padEnd(d+(R.length-b.length)," ")} \u2192 ${H.padEnd(m," ")} ${L}`);p.length>1&&(o.reportSeparator(),o.reportInfo(z.UNNAMED,`Note: these requirements start with ${S.prettyLocator(e.configuration,l)}`))})).exitCode()}var Jae=ie(Nn()),yC=class extends Be{constructor(){super(...arguments);this.all=Y.Boolean("-A,--all",!1,{description:"Print versions of a package from the whole project"});this.recursive=Y.Boolean("-R,--recursive",!1,{description:"Print information for all packages, including transitive dependencies"});this.extra=Y.Array("-X,--extra",[],{description:"An array of requests of extra data provided by plugins"});this.cache=Y.Boolean("--cache",!1,{description:"Print information about the cache entry of a package (path, size, checksum)"});this.dependents=Y.Boolean("--dependents",!1,{description:"Print all dependents for each matching package"});this.manifest=Y.Boolean("--manifest",!1,{description:"Print data obtained by looking at the package archive (license, homepage, ...)"});this.nameOnly=Y.Boolean("--name-only",!1,{description:"Only print the name for the matching packages"});this.virtuals=Y.Boolean("--virtuals",!1,{description:"Print each instance of the virtual packages"});this.json=Y.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.patterns=Y.Rest()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ke.find(e,this.context.cwd),n=await Qt.find(e);if(!i&&!this.all)throw new rt(r.cwd,this.context.cwd);await r.restoreInstallState();let s=new Set(this.extra);this.cache&&s.add("cache"),this.dependents&&s.add("dependents"),this.manifest&&s.add("manifest");let o=(b,{recursive:R})=>{let H=b.anchoredLocator.locatorHash,L=new Map,K=[H];for(;K.length>0;){let J=K.shift();if(L.has(J))continue;let ne=r.storedPackages.get(J);if(typeof ne=="undefined")throw new Error("Assertion failed: Expected the package to be registered");if(L.set(J,ne),S.isVirtualLocator(ne)&&K.push(S.devirtualizeLocator(ne).locatorHash),!(!R&&J!==H))for(let q of ne.dependencies.values()){let A=r.storedResolutions.get(q.descriptorHash);if(typeof A=="undefined")throw new Error("Assertion failed: Expected the resolution to be registered");K.push(A)}}return L.values Line truncated
This command sets up your project if needed. The installation is split into four different steps that each have their own characteristics:
- **Resolution:** First the package manager will resolve your dependencies. The exact way a dependency version is privileged over another isn't standardized outside of the regular semver guarantees. If a package doesn't resolve to what you would expect, check that all dependencies are correctly declared (also check our website for more information: ).
- **Fetch:** Then we download all the dependencies if needed, and make sure that they're all stored within our cache (check the value of \`cacheFolder\` in \`yarn config\` to see where the cache files are stored).
- **Link:** Then we send the dependency tree information to internal plugins tasked with writing them on the disk in some form (for example by generating the .pnp.cjs file you might know).
- **Build:** Once the dependency tree has been written on the disk, the package manager will now be free to run the build scripts for all packages that might need it, in a topological order compatible with the way they depend on one another. See https://yarnpkg.com/advanced/lifecycle-scripts for detail.
Note that running this command is not part of the recommended workflow. Yarn supports zero-installs, which means that as long as you store your cache and your .pnp.cjs file inside your repository, everything will work without requiring any install right after cloning your repository or switching branches.
If the \`--immutable\` option is set (defaults to true on CI), Yarn will abort with an error exit code if the lockfile was to be modified (other paths can be added using the \`immutablePatterns\` configuration setting). For backward compatibility we offer an alias under the name of \`--frozen-lockfile\`, but it will be removed in a later release.
If the \`--immutable-cache\` option is set, Yarn will abort with an error exit code if the cache folder was to be modified (either because files would be added, or because they'd be removed).
If the \`--check-cache\` option is set, Yarn will always refetch the packages and will ensure that their checksum matches what's 1/ described in the lockfile 2/ inside the existing cache files (if present). This is recommended as part of your CI workflow if you're both following the Zero-Installs model and accepting PRs from third-parties, as they'd otherwise have the ability to alter the checked-in packages before submitting them.
If the \`--inline-builds\` option is set, Yarn will verbosely print the output of the build steps of your dependencies (instead of writing them into individual files). This is likely useful mostly for debug purposes only when using Docker-like environments.
If the \`--mode=<mode>\` option is set, Yarn will change which artifacts are generated. The modes currently supported are:
- \`skip-build\` will not run the build scripts at all. Note that this is different from setting \`enableScripts\` to false because the later will disable build scripts, and thus affect the content of the artifacts generated on disk, whereas the former will just disable the build step - but not the scripts themselves, which just won't run.
- \`update-lockfile\` will skip the link step altogether, and only fetch packages that are missing from the lockfile (or that have no associated checksums). This mode is typically used by tools like Renovate or Dependabot to keep a lockfile up-to-date without incurring the full install cost.
`,examples:[["Install the project","$0 install"],["Validate a project when using Zero-Installs","$0 install --immutable --immutable-cache"],["Validate a project when using Zero-Installs (slightly safer if you accept external PRs)","$0 install --immutable --immutable-cache --check-cache"]]});var zae=wC,qze="|||||||",Jze=">>>>>>>",Wze="=======",Vae="<<<<<<<";async function Yze(t,e){if(!t.projectCwd)return!1;let r=v.join(t.projectCwd,t.get("lockfileFilename"));if(!await T.existsPromise(r))return!1;let i=await T.readFilePromise(r,"utf8");if(!i.includes(Vae))return!1;if(e)throw new nt(z.AUTOMERGE_IMMUTABLE,"Cannot autofix a lockfile when running an immutable install");let[n,s]=zze(i),o,a;try{o=Ei(n),a=Ei(s)}catch(c){throw new nt(z.AUTOMERGE_FAILED_TO_PARSE,"The individual variants of the lockfile failed to parse")}let l=P(P({},o),a);for(let[c,u]of Object.entries(l))typeof u=="string"&&delete l[c];return await T.changeFilePromise(r,Qa(l),{automaticNewlines:!0}),!0}function zze(t){let e=[[],[]],r=t.split(/\r?\n/g),i=!1;for(;r.length>0;){let n=r.shift();if(typeof n=="undefined")throw new Error("Assertion failed: Some lines should remain");if(n.startsWith(Vae)){for(;r.length>0;){let s=r.shift();if(typeof s=="undefined")throw new Error("Assertion failed: Some lines should remain");if(s===Wze){i=!1;break}else if(i||s.startsWith(qze)){i=!0;continue}else e[0].push(s)}for(;r.length>0;){let s=r.shift();if(typeof s=="undefined")throw new Error("Assertion failed: Some lines should remain");if(s.startsWith(Jze))break;e[1].push(s)}}else e[0].push(n),e[1].push(n)}return[e[0].join(`
`),e[1].join(`
`)]}var BC=class extends Be{constructor(){super(...arguments);this.all=Y.Boolean("-A,--all",!1,{description:"Link all workspaces belonging to the target project to the current one"});this.private=Y.Boolean("-p,--private",!1,{description:"Also link private workspaces belonging to the target project to the current one"});this.relative=Y.Boolean("-r,--relative",!1,{description:"Link workspaces using relative paths instead of absolute paths"});this.destination=Y.String()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ke.find(e,this.context.cwd),n=await Qt.find(e);if(!i)throw new rt(r.cwd,this.context.cwd);await r.restoreInstallState({restoreResolutions:!1});let s=v.resolve(this.context.cwd,M.toPortablePath(this.destination)),o=await fe.find(s,this.context.plugins,{useRc:!1,strict:!1}),{project:a,workspace:l}=await Ke.find(o,s);if(r.cwd===a.cwd)throw new me("Invalid destination; Can't link the project to itself");if(!l)throw new rt(a.cwd,s);let c=r.topLevelWorkspace,u=[];if(this.all){for(let f of a.workspaces)f.manifest.name&&(!f.manifest.private||this.private)&&u.push(f);if(u.length===0)throw new me("No workspace found to be linked in the target project")}else{if(!l.manifest.name)throw new me("The target workspace doesn't have a name and thus cannot be linked");if(l.manifest.private&&!this.private)throw new me("The target workspace is marked private - use the --private flag to link it anyway");u.push(l)}for(let f of u){let h=S.stringifyIdent(f.locator),p=this.relative?v.relative(r.cwd,f.cwd):f.cwd;c.manifest.resolutions.push({pattern:{descriptor:{fullName:h}},reference:`portal:${p}`})}return(await Fe.start({configuration:e,stdout:this.context.stdout},async f=>{await r.install({cache:n,report:f})})).exitCode()}};BC.paths=[["link"]],BC.usage=ye.Usage({description:"connect the local project to another one",details:"\n This command will set a new `resolutions` field in the project-level manifest and point it to the workspace at the specified location (even if part of another project).\n ",examples:[["Register a remote workspace for use in the current project","$0 link ~/ts-loader"],["Register all workspaces from a remote project for use in the current project","$0 link ~/jest --all"]]});var _ae=BC;var QC=class extends Be{constructor(){super(...arguments);this.args=Y.Proxy()}async execute(){return this.cli.run(["exec","node",...this.args])}};QC.paths=[["node"]],QC.usage=ye.Usage({description:"run node with the hook already setup",details:`
This command simply runs Node. It also makes sure to call it in a way that's compatible with the current project (for example, on PnP projects the environment will be setup in such a way that PnP will be correctly injected into the environment).
The Node process will use the exact same version of Node as the one used to run Yarn itself, which might be a good way to ensure that your commands always use a consistent Node version.
`,examples:[["Run a Node script","$0 node ./my-script.js"]]});var Xae=QC;var lAe=ie(require("os"));var rAe=ie(require("os"));var Vze="https://raw.githubusercontent.com/yarnpkg/berry/master/plugins.yml";async function Kc(t){let e=await Zt.get(Vze,{configuration:t});return Ei(e.toString())}var bC=class extends Be{constructor(){super(...arguments);this.json=Y.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"})}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins);return(await Fe.start({configuration:e,json:this.json,stdout:this.context.stdout},async i=>{let n=await Kc(e);for(let s of Object.entries(n)){let[l,o]=s,a=o,{experimental:c}=a,u=qr(a,["experimental"]);let g=l;c&&(g+=" [experimental]"),i.reportJson(P({name:l,experimental:c},u)),i.reportInfo(null,g)}})).exitCode()}};bC.paths=[["plugin","list"]],bC.usage=ye.Usage({category:"Plugin-related commands",description:"list the available official plugins",details:"\n This command prints the plugins available directly from the Yarn repository. Only those plugins can be referenced by name in `yarn plugin import`.\n ",examples:[["List the official plugins","$0 plugin list"]]});var Zae=bC;var $ae=ie(Or()),vC=class extends Be{constructor(){super(...arguments);this.onlyIfNeeded=Y.Boolean("--only-if-needed",!1,{description:"Only lock the Yarn version if it isn't already locked"});this.version=Y.String()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins);if(e.get("yarnPath")&&this.onlyIfNeeded)return 0;let r=()=>{if(typeof Zr=="undefined")throw new me("The --install flag can only be used without explicit version specifier from the Yarn CLI");return`file://${process.argv[1]}`},i;if(this.version==="self")i=r();else if(this.version==="latest"||this.version==="berry"||this.version==="stable")i=`https://repo.yarnpkg.com/${await eAe(e,"stable")}/packages/yarnpkg-cli/bin/yarn.js`;else if(this.version==="canary")i=`https://repo.yarnpkg.com/${await eAe(e,"canary")}/packages/yarnpkg-cli/bin/yarn.js`;else if(this.version==="classic")i="https://nightly.yarnpkg.com/latest.js";else if(this.version.match(/^\.{0,2}[\\/]/)||M.isAbsolute(this.version))i=`file://${M.resolve(this.version)}`;else if(qt.satisfiesWithPrereleases(this.version,">=2.0.0"))i=`https://repo.yarnpkg.com/${this.version}/packages/yarnpkg-cli/bin/yarn.js`;else if(qt.satisfiesWithPrereleases(this.version,"^0.x || ^1.x"))i=`https://github.com/yarnpkg/yarn/releases/download/v${this.version}/yarn-${this.version}.js`;else if(qt.validRange(this.version))i=`https://repo.yarnpkg.com/${await _ze(e,this.version)}/packages/yarnpkg-cli/bin/yarn.js`;else throw new me(`Invalid version descriptor "${this.version}"`);return(await Fe.start({configuration:e,stdout:this.context.stdout,includeLogs:!this.context.quiet},async s=>{let o="file://",a;i.startsWith(o)?(s.reportInfo(z.UNNAMED,`Downloading ${ue.pretty(e,i,ps.URL)}`),a=await T.readFilePromise(M.toPortablePath(i.slice(o.length)))):(s.reportInfo(z.UNNAMED,`Retrieving ${ue.pretty(e,i,ps.PATH)}`),a=await Zt.get(i,{configuration:e})),await XN(e,null,a,{report:s})})).exitCode()}};vC.paths=[["set","version"]],vC.usage=ye.Usage({description:"lock the Yarn version used by the project",details:"\n This command will download a specific release of Yarn directly from the Yarn GitHub repository, will store it inside your project, and will change the `yarnPath` settings from your project `.yarnrc.yml` file to point to the new file.\n\n A very good use case for this command is to enforce the version of Yarn used by the any single member of your team inside a same project - by doing this you ensure that you have control on Yarn upgrades and downgrades (including on your deployment servers), and get rid of most of the headaches related to someone using a slightly different version and getting a different behavior than you.\n\n The version specifier can be:\n\n - a tag:\n - `latest` / `berry` / `stable` -> the most recent stable berry (`>=2.0.0`) release\n - `canary` -> the most recent canary (release candidate) berry (`>=2.0.0`) release\n - `classic` -> the most recent classic (`^0.x || ^1.x`) release\n\n - a semver range (e.g. `2.x`) -> the most recent version satisfying the range (limited to berry releases)\n\n - a semver version (e.g. `2.4.1`, `1.22.1`)\n\n - a local file referenced through either a relative or absolute path\n\n - `self` -> the version used to invoke the command\n ",examples:[["Download the latest release from the Yarn repository","$0 set version latest"],["Download the latest canary release from the Yarn repository","$0 set version canary"],["Download the latest classic release from the Yarn repository","$0 set version classic"],["Download the most recent Yarn 3 build","$0 set version 3.x"],["Download a specific Yarn 2 build","$0 set version 2.0.0-rc.30"],["Switch back to a specific Yarn 1 release","$0 set version 1.22.1"],["Use a relea Line truncated
${e}`)});let n=(g=t.projectCwd)!=null?g:t.startingCwd,s=v.resolve(n,".yarn/releases"),o=v.resolve(s,`yarn-${e}.cjs`),a=v.relative(t.startingCwd,o),l=v.relative(n,o),c=t.get("yarnPath"),u=c===null||c.startsWith(`${s}/`);if(i.reportInfo(z.UNNAMED,`Saving the new release in ${ue.pretty(t,a,"magenta")}`),await T.removePromise(v.dirname(o)),await T.mkdirPromise(v.dirname(o),{recursive:!0}),await T.writeFilePromise(o,r,{mode:493}),u){await fe.updateConfiguration(n,{yarnPath:l});let f=await Ze.tryFind(n)||new Ze;e&&de.isTaggedYarnVersion(e)&&(f.packageManager=`yarn@${e}`);let h={};f.exportTo(h);let p=v.join(n,Ze.fileName),d=`${JSON.stringify(h,null,f.indent)}
`;await T.changeFilePromise(p,d,{automaticNewlines:!0})}}var Xze=/^[0-9]+$/;function iAe(t){return Xze.test(t)?`pull/${t}/head`:t}var Zze=({repository:t,branch:e},r)=>[["git","init",M.fromPortablePath(r)],["git","remote","add","origin",t],["git","fetch","origin",iAe(e)],["git","reset","--hard","FETCH_HEAD"]],$ze=({branch:t})=>[["git","fetch","origin",iAe(t),"--force"],["git","reset","--hard","FETCH_HEAD"],["git","clean","-dfx"]],e4e=({plugins:t,noMinify:e},r)=>[["yarn","build:cli",...new Array().concat(...t.map(i=>["--plugin",v.resolve(r,i)])),...e?["--no-minify"]:[],"|"]],SC=class extends Be{constructor(){super(...arguments);this.installPath=Y.String("--path",{description:"The path where the repository should be cloned to"});this.repository=Y.String("--repository","https://github.com/yarnpkg/berry.git",{description:"The repository that should be cloned"});this.branch=Y.String("--branch","master",{description:"The branch of the repository that should be cloned"});this.plugins=Y.Array("--plugin",[],{description:"An array of additional plugins that should be included in the bundle"});this.noMinify=Y.Boolean("--no-minify",!1,{description:"Build a bundle for development (debugging) - non-minified and non-mangled"});this.force=Y.Boolean("-f,--force",!1,{description:"Always clone the repository instead of trying to fetch the latest commits"});this.skipPlugins=Y.Boolean("--skip-plugins",!1,{description:"Skip updating the contrib plugins"})}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r}=await Ke.find(e,this.context.cwd),i=typeof this.installPath!="undefined"?v.resolve(this.context.cwd,M.toPortablePath(this.installPath)):v.resolve(M.toPortablePath((0,rAe.tmpdir)()),"yarnpkg-sources",mn.makeHash(this.repository).slice(0,6));return(await Fe.start({configuration:e,stdout:this.context.stdout},async s=>{await $N(this,{configuration:e,report:s,target:i}),s.reportSeparator(),s.reportInfo(z.UNNAMED,"Building a fresh bundle"),s.reportSeparator(),await xC(e4e(this,i),{configuration:e,context:this.context,target:i}),s.reportSeparator();let o=v.resolve(i,"packages/yarnpkg-cli/bundles/yarn.js"),a=await T.readFilePromise(o);await XN(e,"sources",a,{report:s}),this.skipPlugins||await t4e(this,{project:r,report:s,target:i})})).exitCode()}};SC.paths=[["set","version","from","sources"]],SC.usage=ye.Usage({description:"build Yarn from master",details:`
This command will clone the Yarn repository into a temporary folder, then build it. The resulting bundle will then be copied into the local project.
By default, it also updates all contrib plugins to the same commit the bundle is built from. This behavior can be disabled by using the \`--skip-plugins\` flag.
`,examples:[["Build Yarn from master","$0 set version from sources"]]});var nAe=SC;async function xC(t,{configuration:e,context:r,target:i}){for(let[n,...s]of t){let o=s[s.length-1]==="|";if(o&&s.pop(),o)await hr.pipevp(n,s,{cwd:i,stdin:r.stdin,stdout:r.stdout,stderr:r.stderr,strict:!0});else{r.stdout.write(`${ue.pretty(e,` $ ${[n,...s].join(" ")}`,"grey")}
`);try{await hr.execvp(n,s,{cwd:i,strict:!0})}catch(a){throw r.stdout.write(a.stdout||a.stack),a}}}}async function $N(t,{configuration:e,report:r,target:i}){let n=!1;if(!t.force&&T.existsSync(v.join(i,".git"))){r.reportInfo(z.UNNAMED,"Fetching the latest commits"),r.reportSeparator();try{await xC($ze(t),{configuration:e,context:t.context,target:i}),n=!0}catch(s){r.reportSeparator(),r.reportWarning(z.UNNAMED,"Repository update failed; we'll try to regenerate it")}}n||(r.reportInfo(z.UNNAMED,"Cloning the remote repository"),r.reportSeparator(),await T.removePromise(i),await T.mkdirPromise(i,{recursive:!0}),await xC(Zze(t,i),{configuration:e,context:t.context,target:i}))}async function t4e(t,{project:e,report:r,target:i}){let n=await Kc(e.configuration),s=new Set(Object.keys(n));for(let o of e.configuration.plugins.keys())!s.has(o)||await ZN(o,t,{project:e,report:r,target:i})}var sAe=ie(Or()),oAe=ie(require("url")),aAe=ie(require("vm"));var kC=class extends Be{constructor(){super(...arguments);this.name=Y.String()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins);return(await Fe.start({configuration:e,stdout:this.context.stdout},async i=>{let{project:n}=await Ke.find(e,this.context.cwd),s,o;if(this.name.match(/^\.{0,2}[\\/]/)||M.isAbsolute(this.name)){let a=v.resolve(this.context.cwd,M.toPortablePath(this.name));i.reportInfo(z.UNNAMED,`Reading ${ue.pretty(e,a,ue.Type.PATH)}`),s=v.relative(n.cwd,a),o=await T.readFilePromise(a)}else{let a;if(this.name.match(/^https?:/)){try{new oAe.URL(this.name)}catch{throw new nt(z.INVALID_PLUGIN_REFERENCE,`Plugin specifier "${this.name}" is neither a plugin name nor a valid url`)}s=this.name,a=this.name}else{let l=S.parseLocator(this.name.replace(/^((@yarnpkg\/)?plugin-)?/,"@yarnpkg/plugin-"));if(l.reference!=="unknown"&&!sAe.default.valid(l.reference))throw new nt(z.UNNAMED,"Official plugins only accept strict version references. Use an explicit URL if you wish to download them from another location.");let c=S.stringifyIdent(l),u=await Kc(e);if(!Object.prototype.hasOwnProperty.call(u,c))throw new nt(z.PLUGIN_NAME_NOT_FOUND,`Couldn't find a plugin named "${c}" on the remote registry. Note that only the plugins referenced on our website (https://github.com/yarnpkg/berry/blob/master/plugins.yml) can be referenced by their name; any other plugin will have to be referenced through its public url (for example https://github.com/yarnpkg/berry/raw/master/packages/plugin-typescript/bin/%40yarnpkg/plugin-typescript.js).`);s=c,a=u[c].url,l.reference!=="unknown"?a=a.replace(/\/master\//,`/${c}/${l.reference}/`):Zr!==null&&(a=a.replace(/\/master\//,`/@yarnpkg/cli/${Zr}/`))}i.reportInfo(z.UNNAMED,`Downloading ${ue.pretty(e,a,"green")}`),o=await Zt.get(a,{configuration:e})}await eL(s,o,{project:n,report:i})})).exitCode()}};kC.paths=[["plugin","import"]],kC.usage=ye.Usage({category:"Plugin-related commands",description:"download a plugin",details:`
This command downloads the specified plugin from its remote location and updates the configuration to reference it in further CLI invocations.
Three types of plugin references are accepted:
- If the plugin is stored within the Yarn repository, it can be referenced by name.
- Third-party plugins can be referenced directly through their public urls.
- Local plugins can be referenced by their path on the disk.
Plugins cannot be downloaded from the npm registry, and aren't allowed to have dependencies (they need to be bundled into a single file, possibly thanks to the \`@yarnpkg/builder\` package).
`,examples:[['Download and activate the "@yarnpkg/plugin-exec" plugin',"$0 plugin import @yarnpkg/plugin-exec"],['Download and activate the "@yarnpkg/plugin-exec" plugin (shorthand)',"$0 plugin import exec"],["Download and activate a community plugin","$0 plugin import https://example.org/path/to/plugin.js"],["Activate a local plugin","$0 plugin import ./path/to/plugin.js"]]});var AAe=kC;async function eL(t,e,{project:r,report:i}){let{configuration:n}=r,s={},o={exports:s};(0,aAe.runInNewContext)(e.toString(),{module:o,exports:s});let a=o.exports.name,l=`.yarn/plugins/${a}.cjs`,c=v.resolve(r.cwd,l);i.reportInfo(z.UNNAMED,`Saving the new plugin in ${ue.pretty(n,l,"magenta")}`),await T.mkdirPromise(v.dirname(c),{recursive:!0}),await T.writeFilePromise(c,e);let u={path:l,spec:t};await fe.updateConfiguration(r.cwd,g=>{let f=[],h=!1;for(let p of g.plugins||[]){let d=typeof p!="string"?p.path:p,m=v.resolve(r.cwd,M.toPortablePath(d)),{name:E}=de.dynamicRequire(m);E!==a?f.push(p):(f.push(u),h=!0)}return h||f.push(u),_(P({},g),{plugins:f})})}var r4e=({pluginName:t,noMinify:e},r)=>[["yarn",`build:${t}`,...e?["--no-minify"]:[],"|"]],PC=class extends Be{constructor(){super(...arguments);this.installPath=Y.String("--path",{description:"The path where the repository should be cloned to"});this.repository=Y.String("--repository","https://github.com/yarnpkg/berry.git",{description:"The repository that should be cloned"});this.branch=Y.String("--branch","master",{description:"The branch of the repository that should be cloned"});this.noMinify=Y.Boolean("--no-minify",!1,{description:"Build a plugin for development (debugging) - non-minified and non-mangled"});this.force=Y.Boolean("-f,--force",!1,{description:"Always clone the repository instead of trying to fetch the latest commits"});this.name=Y.String()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),r=typeof this.installPath!="undefined"?v.resolve(this.context.cwd,M.toPortablePath(this.installPath)):v.resolve(M.toPortablePath((0,lAe.tmpdir)()),"yarnpkg-sources",mn.makeHash(this.repository).slice(0,6));return(await Fe.start({configuration:e,stdout:this.context.stdout},async n=>{let{project:s}=await Ke.find(e,this.context.cwd),o=S.parseIdent(this.name.replace(/^((@yarnpkg\/)?plugin-)?/,"@yarnpkg/plugin-")),a=S.stringifyIdent(o),l=await Kc(e);if(!Object.prototype.hasOwnProperty.call(l,a))throw new nt(z.PLUGIN_NAME_NOT_FOUND,`Couldn't find a plugin named "${a}" on the remote registry. Note that only the plugins referenced on our website (https://github.com/yarnpkg/berry/blob/master/plugins.yml) can be built and imported from sources.`);let c=a;await $N(this,{configuration:e,report:n,target:r}),await ZN(c,this,{project:s,report:n,target:r})})).exitCode()}};PC.paths=[["plugin","import","from","sources"]],PC.usage=ye.Usage({category:"Plugin-related commands",description:"build a plugin from sources",details:`
This command clones the Yarn repository into a temporary folder, builds the specified contrib plugin and updates the configuration to reference it in further CLI invocations.
The plugins can be referenced by their short name if sourced from the official Yarn repository.
`,examples:[['Build and activate the "@yarnpkg/plugin-exec" plugin',"$0 plugin import from sources @yarnpkg/plugin-exec"],['Build and activate the "@yarnpkg/plugin-exec" plugin (shorthand)',"$0 plugin import from sources exec"]]});var cAe=PC;async function ZN(t,{context:e,noMinify:r},{project:i,report:n,target:s}){let o=t.replace(/@yarnpkg\//,""),{configuration:a}=i;n.reportSeparator(),n.reportInfo(z.UNNAMED,`Building a fresh ${o}`),n.reportSeparator(),await xC(r4e({pluginName:o,noMinify:r},s),{configuration:a,context:e,target:s}),n.reportSeparator();let l=v.resolve(s,`packages/${o}/bundles/${t}.js`),c=await T.readFilePromise(l);await eL(t,c,{project:i,report:n})}var DC=class extends Be{constructor(){super(...arguments);this.name=Y.String()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r}=await Ke.find(e,this.context.cwd);return(await Fe.start({configuration:e,stdout:this.context.stdout},async n=>{let s=this.name,o=S.parseIdent(s);if(!e.plugins.has(s))throw new me(`${S.prettyIdent(e,o)} isn't referenced by the current configuration`);let a=`.yarn/plugins/${s}.cjs`,l=v.resolve(r.cwd,a);T.existsSync(l)&&(n.reportInfo(z.UNNAMED,`Removing ${ue.pretty(e,a,ue.Type.PATH)}...`),await T.removePromise(l)),n.reportInfo(z.UNNAMED,"Updating the configuration..."),await fe.updateConfiguration(r.cwd,c=>{if(!Array.isArray(c.plugins))return c;let u=c.plugins.filter(g=>g.path!==a);return c.plugins.length===u.length?c:_(P({},c),{plugins:u})})})).exitCode()}};DC.paths=[["plugin","remove"]],DC.usage=ye.Usage({category:"Plugin-related commands",description:"remove a plugin",details:`
This command deletes the specified plugin from the .yarn/plugins folder and removes it from the configuration.
**Note:** The plugins have to be referenced by their name property, which can be obtained using the \`yarn plugin runtime\` command. Shorthands are not allowed.
`,examples:[["Remove a plugin imported from the Yarn repository","$0 plugin remove @yarnpkg/plugin-typescript"],["Remove a plugin imported from a local file","$0 plugin remove my-local-plugin"]]});var uAe=DC;var RC=class extends Be{constructor(){super(...arguments);this.json=Y.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"})}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins);return(await Fe.start({configuration:e,json:this.json,stdout:this.context.stdout},async i=>{for(let n of e.plugins.keys()){let s=this.context.plugins.plugins.has(n),o=n;s&&(o+=" [builtin]"),i.reportJson({name:n,builtin:s}),i.reportInfo(null,`${o}`)}})).exitCode()}};RC.paths=[["plugin","runtime"]],RC.usage=ye.Usage({category:"Plugin-related commands",description:"list the active plugins",details:`
This command prints the currently active plugins. Will be displayed both builtin plugins and external plugins.
`,examples:[["List the currently active plugins","$0 plugin runtime"]]});var gAe=RC;var FC=class extends Be{constructor(){super(...arguments);this.idents=Y.Rest()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ke.find(e,this.context.cwd),n=await Qt.find(e);if(!i)throw new rt(r.cwd,this.context.cwd);let s=new Set;for(let a of this.idents)s.add(S.parseIdent(a).identHash);if(await r.restoreInstallState({restoreResolutions:!1}),await r.resolveEverything({cache:n,report:new ei}),s.size>0)for(let a of r.storedPackages.values())s.has(a.identHash)&&r.storedBuildState.delete(a.locatorHash);else r.storedBuildState.clear();return(await Fe.start({configuration:e,stdout:this.context.stdout,includeLogs:!this.context.quiet},async a=>{await r.install({cache:n,report:a})})).exitCode()}};FC.paths=[["rebuild"]],FC.usage=ye.Usage({description:"rebuild the project's native packages",details:`
This command will automatically cause Yarn to forget about previous compilations of the given packages and to run them again.
Note that while Yarn forgets the compilation, the previous artifacts aren't erased from the filesystem and may affect the next builds (in good or bad). To avoid this, you may remove the .yarn/unplugged folder, or any other relevant location where packages might have been stored (Yarn may offer a way to do that automatically in the future).
By default all packages will be rebuilt, but you can filter the list by specifying the names of the packages you want to clear from memory.
`,examples:[["Rebuild all packages","$0 rebuild"],["Rebuild fsevents only","$0 rebuild fsevents"]]});var fAe=FC;var tL=ie(Nn());Ss();var NC=class extends Be{constructor(){super(...arguments);this.all=Y.Boolean("-A,--all",!1,{description:"Apply the operation to all workspaces from the current project"});this.mode=Y.String("--mode",{description:"Change what artifacts installs generate",validator:Yi(li)});this.patterns=Y.Rest()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ke.find(e,this.context.cwd),n=await Qt.find(e);if(!i)throw new rt(r.cwd,this.context.cwd);await r.restoreInstallState({restoreResolutions:!1});let s=this.all?r.workspaces:[i],o=[vr.REGULAR,vr.DEVELOPMENT,vr.PEER],a=[],l=!1,c=[];for(let h of this.patterns){let p=!1,d=S.parseIdent(h);for(let m of s){let E=[...m.manifest.peerDependenciesMeta.keys()];for(let B of(0,tL.default)(E,h))m.manifest.peerDependenciesMeta.delete(B),l=!0,p=!0;for(let B of o){let b=m.manifest.getForScope(B),R=[...b.values()].map(H=>S.stringifyIdent(H));for(let H of(0,tL.default)(R,S.stringifyIdent(d))){let{identHash:L}=S.parseIdent(H),K=b.get(L);if(typeof K=="undefined")throw new Error("Assertion failed: Expected the descriptor to be registered");m.manifest[B].delete(L),c.push([m,B,K]),l=!0,p=!0}}}p||a.push(h)}let u=a.length>1?"Patterns":"Pattern",g=a.length>1?"don't":"doesn't",f=this.all?"any":"this";if(a.length>0)throw new me(`${u} ${ue.prettyList(e,a,ps.CODE)} ${g} match any packages referenced by ${f} workspace`);return l?(await e.triggerMultipleHooks(p=>p.afterWorkspaceDependencyRemoval,c),(await Fe.start({configuration:e,stdout:this.context.stdout},async p=>{await r.install({cache:n,report:p,mode:this.mode})})).exitCode()):0}};NC.paths=[["remove"]],NC.usage=ye.Usage({description:"remove dependencies from the project",details:`
This command will remove the packages matching the specified patterns from the current workspace.
If the \`--mode=<mode>\` option is set, Yarn will change which artifacts are generated. The modes currently supported are:
- \`skip-build\` will not run the build scripts at all. Note that this is different from setting \`enableScripts\` to false because the later will disable build scripts, and thus affect the content of the artifacts generated on disk, whereas the former will just disable the build step - but not the scripts themselves, which just won't run.
- \`update-lockfile\` will skip the link step altogether, and only fetch packages that are missing from the lockfile (or that have no associated checksums). This mode is typically used by tools like Renovate or Dependabot to keep a lockfile up-to-date without incurring the full install cost.
This command accepts glob patterns as arguments (if valid Idents and supported by [micromatch](https://github.com/micromatch/micromatch)). Make sure to escape the patterns, to prevent your own shell from trying to expand them.
`,examples:[["Remove a dependency from the current project","$0 remove lodash"],["Remove a dependency from all workspaces at once","$0 remove lodash --all"],["Remove all dependencies starting with `eslint-`","$0 remove 'eslint-*'"],["Remove all dependencies with the `@babel` scope","$0 remove '@babel/*'"],["Remove all dependencies matching `react-dom` or `react-helmet`","$0 remove 'react-{dom,helmet}'"]]});var hAe=NC;var pAe=ie(require("util")),z0=class extends Be{async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ke.find(e,this.context.cwd);if(!i)throw new rt(r.cwd,this.context.cwd);return(await Fe.start({configuration:e,stdout:this.context.stdout},async s=>{let o=i.manifest.scripts,a=de.sortMap(o.keys(),u=>u),l={breakLength:Infinity,colors:e.get("enableColors"),maxArrayLength:2},c=a.reduce((u,g)=>Math.max(u,g.length),0);for(let[u,g]of o.entries())s.reportInfo(null,`${u.padEnd(c," ")} ${(0,pAe.inspect)(g,l)}`)})).exitCode()}};z0.paths=[["run"]];var dAe=z0;var LC=class extends Be{constructor(){super(...arguments);this.inspect=Y.String("--inspect",!1,{tolerateBoolean:!0,description:"Forwarded to the underlying Node process when executing a binary"});this.inspectBrk=Y.String("--inspect-brk",!1,{tolerateBoolean:!0,description:"Forwarded to the underlying Node process when executing a binary"});this.topLevel=Y.Boolean("-T,--top-level",!1,{description:"Check the root workspace for scripts and/or binaries instead of the current one"});this.binariesOnly=Y.Boolean("-B,--binaries-only",!1,{description:"Ignore any user defined scripts and only check for binaries"});this.silent=Y.Boolean("--silent",{hidden:!0});this.scriptName=Y.String();this.args=Y.Proxy()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i,locator:n}=await Ke.find(e,this.context.cwd);await r.restoreInstallState();let s=this.topLevel?r.topLevelWorkspace.anchoredLocator:n;if(!this.binariesOnly&&await Kt.hasPackageScript(s,this.scriptName,{project:r}))return await Kt.executePackageScript(s,this.scriptName,this.args,{project:r,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr});let o=await Kt.getPackageAccessibleBinaries(s,{project:r});if(o.get(this.scriptName)){let l=[];return this.inspect&&(typeof this.inspect=="string"?l.push(`--inspect=${this.inspect}`):l.push("--inspect")),this.inspectBrk&&(typeof this.inspectBrk=="string"?l.push(`--inspect-brk=${this.inspectBrk}`):l.push("--inspect-brk")),await Kt.executePackageAccessibleBinary(s,this.scriptName,this.args,{cwd:this.context.cwd,project:r,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr,nodeArgs:l,packageAccessibleBinaries:o})}if(!this.topLevel&&!this.binariesOnly&&i&&this.scriptName.includes(":")){let c=(await Promise.all(r.workspaces.map(async u=>u.manifest.scripts.has(this.scriptName)?u:null))).filter(u=>u!==null);if(c.length===1)return await Kt.executeWorkspaceScript(c[0],this.scriptName,this.args,{stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr})}if(this.topLevel)throw this.scriptName==="node-gyp"?new me(`Couldn't find a script name "${this.scriptName}" in the top-level (used by ${S.prettyLocator(e,n)}). This typically happens because some package depends on "node-gyp" to build itself, but didn't list it in their dependencies. To fix that, please run "yarn add node-gyp" into your top-level workspace. You also can open an issue on the repository of the specified package to suggest them to use an optional peer dependency.`):new me(`Couldn't find a script name "${this.scriptName}" in the top-level (used by ${S.prettyLocator(e,n)}).`);{if(this.scriptName==="global")throw new me("The 'yarn global' commands have been removed in 2.x - consider using 'yarn dlx' or a third-party plugin instead");let l=[this.scriptName].concat(this.args);for(let[c,u]of Yg)for(let g of u)if(l.length>=g.length&&JSON.stringify(l.slice(0,g.length))===JSON.stringify(g))throw new me(`Couldn't find a script named "${this.scriptName}", but a matching command can be found in the ${c} plugin. You can install it with "yarn plugin import ${c}".`);throw new me(`Couldn't find a script named "${this.scriptName}".`)}}};LC.paths=[["run"]],LC.usage=ye.Usage({description:"run a script defined in the package.json",details:`
This command will run a tool. The exact tool that will be executed will depend on the current state of your workspace:
- If the \`scripts\` field from your local package.json contains a matching script name, its definition will get executed.
- Otherwise, if one of the local workspace's dependencies exposes a binary with a matching name, this binary will get executed.
- Otherwise, if the specified name contains a colon character and if one of the workspaces in the project contains exactly one script with a matching name, then this script will get executed.
Whatever happens, the cwd of the spawned process will be the workspace that declares the script (which makes it possible to call commands cross-workspaces using the third syntax).
`,examples:[["Run the tests from the local workspace","$0 run test"],['Same thing, but without the "run" keyword',"$0 test"],["Inspect Webpack while running","$0 run --inspect-brk webpack"]]});var CAe=LC;var TC=class extends Be{constructor(){super(...arguments);this.save=Y.Boolean("-s,--save",!1,{description:"Persist the resolution inside the top-level manifest"});this.descriptor=Y.String();this.resolution=Y.String()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ke.find(e,this.context.cwd),n=await Qt.find(e);if(await r.restoreInstallState({restoreResolutions:!1}),!i)throw new rt(r.cwd,this.context.cwd);let s=S.parseDescriptor(this.descriptor,!0),o=S.makeDescriptor(s,this.resolution);return r.storedDescriptors.set(s.descriptorHash,s),r.storedDescriptors.set(o.descriptorHash,o),r.resolutionAliases.set(s.descriptorHash,o.descriptorHash),(await Fe.start({configuration:e,stdout:this.context.stdout},async l=>{await r.install({cache:n,report:l})})).exitCode()}};TC.paths=[["set","resolution"]],TC.usage=ye.Usage({description:"enforce a package resolution",details:'\n This command updates the resolution table so that `descriptor` is resolved by `resolution`.\n\n Note that by default this command only affect the current resolution table - meaning that this "manual override" will disappear if you remove the lockfile, or if the package disappear from the table. If you wish to make the enforced resolution persist whatever happens, add the `-s,--save` flag which will also edit the `resolutions` field from your top-level manifest.\n\n Note that no attempt is made at validating that `resolution` is a valid resolution entry for `descriptor`.\n ',examples:[["Force all instances of lodash@npm:^1.2.3 to resolve to 1.5.0","$0 set resolution lodash@npm:^1.2.3 1.5.0"]]});var mAe=TC;var IAe=ie(Nn()),MC=class extends Be{constructor(){super(...arguments);this.all=Y.Boolean("-A,--all",!1,{description:"Unlink all workspaces belonging to the target project from the current one"});this.leadingArguments=Y.Rest()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ke.find(e,this.context.cwd),n=await Qt.find(e);if(!i)throw new rt(r.cwd,this.context.cwd);let s=r.topLevelWorkspace,o=new Set;if(this.leadingArguments.length===0&&this.all)for(let{pattern:l,reference:c}of s.manifest.resolutions)c.startsWith("portal:")&&o.add(l.descriptor.fullName);if(this.leadingArguments.length>0)for(let l of this.leadingArguments){let c=v.resolve(this.context.cwd,M.toPortablePath(l));if(de.isPathLike(l)){let u=await fe.find(c,this.context.plugins,{useRc:!1,strict:!1}),{project:g,workspace:f}=await Ke.find(u,c);if(!f)throw new rt(g.cwd,c);if(this.all){for(let h of g.workspaces)h.manifest.name&&o.add(S.stringifyIdent(h.locator));if(o.size===0)throw new me("No workspace found to be unlinked in the target project")}else{if(!f.manifest.name)throw new me("The target workspace doesn't have a name and thus cannot be unlinked");o.add(S.stringifyIdent(f.locator))}}else{let u=[...s.manifest.resolutions.map(({pattern:g})=>g.descriptor.fullName)];for(let g of(0,IAe.default)(u,l))o.add(g)}}return s.manifest.resolutions=s.manifest.resolutions.filter(({pattern:l})=>!o.has(l.descriptor.fullName)),(await Fe.start({configuration:e,stdout:this.context.stdout},async l=>{await r.install({cache:n,report:l})})).exitCode()}};MC.paths=[["unlink"]],MC.usage=ye.Usage({description:"disconnect the local project from another one",details:`
This command will remove any resolutions in the project-level manifest that would have been added via a yarn link with similar arguments.
`,examples:[["Unregister a remote workspace in the current project","$0 unlink ~/ts-loader"],["Unregister all workspaces from a remote project in the current project","$0 unlink ~/jest --all"],["Unregister all previously linked workspaces","$0 unlink --all"],["Unregister all workspaces matching a glob","$0 unlink '@babel/*' 'pkg-{a,b}'"]]});var EAe=MC;var yAe=ie(aC()),rL=ie(Nn());Ss();var uf=class extends Be{constructor(){super(...arguments);this.interactive=Y.Boolean("-i,--interactive",{description:"Offer various choices, depending on the detected upgrade paths"});this.exact=Y.Boolean("-E,--exact",!1,{description:"Don't use any semver modifier on the resolved range"});this.tilde=Y.Boolean("-T,--tilde",!1,{description:"Use the `~` semver modifier on the resolved range"});this.caret=Y.Boolean("-C,--caret",!1,{description:"Use the `^` semver modifier on the resolved range"});this.recursive=Y.Boolean("-R,--recursive",!1,{description:"Resolve again ALL resolutions for those packages"});this.mode=Y.String("--mode",{description:"Change what artifacts installs generate",validator:Yi(li)});this.patterns=Y.Rest()}async execute(){return this.recursive?await this.executeUpRecursive():await this.executeUpClassic()}async executeUpRecursive(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ke.find(e,this.context.cwd),n=await Qt.find(e);if(!i)throw new rt(r.cwd,this.context.cwd);await r.restoreInstallState({restoreResolutions:!1});let s=[...r.storedDescriptors.values()],o=s.map(u=>S.stringifyIdent(u)),a=new Set;for(let u of this.patterns){if(S.parseDescriptor(u).range!=="unknown")throw new me("Ranges aren't allowed when using --recursive");for(let g of(0,rL.default)(o,u)){let f=S.parseIdent(g);a.add(f.identHash)}}let l=s.filter(u=>a.has(u.identHash));for(let u of l)r.storedDescriptors.delete(u.descriptorHash),r.storedResolutions.delete(u.descriptorHash);return(await Fe.start({configuration:e,stdout:this.context.stdout},async u=>{await r.install({cache:n,report:u})})).exitCode()}async executeUpClassic(){var d;let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ke.find(e,this.context.cwd),n=await Qt.find(e);if(!i)throw new rt(r.cwd,this.context.cwd);await r.restoreInstallState({restoreResolutions:!1});let s=(d=this.interactive)!=null?d:e.get("preferInteractive"),o=AC(this,r),a=s?[Fr.KEEP,Fr.REUSE,Fr.PROJECT,Fr.LATEST]:[Fr.PROJECT,Fr.LATEST],l=[],c=[];for(let m of this.patterns){let E=!1,B=S.parseDescriptor(m);for(let b of r.workspaces)for(let R of[vr.REGULAR,vr.DEVELOPMENT]){let L=[...b.manifest.getForScope(R).values()].map(K=>S.stringifyIdent(K));for(let K of(0,rL.default)(L,S.stringifyIdent(B))){let J=S.parseIdent(K),ne=b.manifest[R].get(J.identHash);if(typeof ne=="undefined")throw new Error("Assertion failed: Expected the descriptor to be registered");let q=S.makeDescriptor(J,B.range);l.push(Promise.resolve().then(async()=>[b,R,ne,await lC(q,{project:r,workspace:b,cache:n,target:R,modifier:o,strategies:a})])),E=!0}}E||c.push(m)}if(c.length>1)throw new me(`Patterns ${ue.prettyList(e,c,ps.CODE)} don't match any packages referenced by any workspace`);if(c.length>0)throw new me(`Pattern ${ue.prettyList(e,c,ps.CODE)} doesn't match any packages referenced by any workspace`);let u=await Promise.all(l),g=await Fa.start({configuration:e,stdout:this.context.stdout,suggestInstall:!1},async m=>{for(let[,,E,{suggestions:B,rejections:b}]of u){let R=B.filter(H=>H.descriptor!==null);if(R.length===0){let[H]=b;if(typeof H=="undefined")throw new Error("Assertion failed: Expected an error to have been set");let L=this.cli.error(H);r.configuration.get("enableNetwork")?m.reportError(z.CANT_SUGGEST_RESOLUTIONS,`${S.prettyDescriptor(e,E)} can't be resolved to a satisfying range
${L}`):m.reportError(z.CANT_SUGGEST_RESOLUTIONS,`${S.prettyDescriptor(e,E)} can't be resolved to a satisfying range (note: network resolution has been disabled)
${L}`)}else R.length>1&&!s&&m.reportError(z.CANT_SUGGEST_RESOLUTIONS,`${S.prettyDescriptor(e,E)} has multiple possible upgrade strategies; use -i to disambiguate manually`)}});if(g.hasErrors())return g.exitCode();let f=!1,h=[];for(let[m,E,,{suggestions:B}]of u){let b,R=B.filter(J=>J.descriptor!==null),H=R[0].descriptor,L=R.every(J=>S.areDescriptorsEqual(J.descriptor,H));R.length===1||L?b=H:(f=!0,{answer:b}=await(0,yAe.prompt)({type:"select",name:"answer",message:`Which range to you want to use in ${S.prettyWorkspace(e,m)} \u276F ${E}?`,choices:B.map(({descriptor:J,name:ne,reason:q})=>J?{name:ne,hint:q,descriptor:J}:{name:ne,hint:q,disabled:!0}),onCancel:()=>process.exit(130),result(J){return this.find(J,"descriptor")},stdin:this.context.stdin,stdout:this.context.stdout}));let K=m.manifest[E].get(b.identHash);if(typeof K=="undefined")throw new Error("Assertion failed: This descriptor should have a matching entry");if(K.descriptorHash!==b.descriptorHash)m.manifest[E].set(b.identHash,b),h.push([m,E,K,b]);else{let J=e.makeResolver(),ne={project:r,resolver:J},q=J.bindDescriptor(K,m.anchoredLocator,ne);r.forgetResolution(q)}}return await e.triggerMultipleHooks(m=>m.afterWorkspaceDependencyReplacement,h),f&&this.context.stdout.write(`
`),(await Fe.start({configuration:e,stdout:this.context.stdout},async m=>{await r.install({cache:n,report:m,mode:this.mode})})).exitCode()}};uf.paths=[["up"]],uf.usage=ye.Usage({description:"upgrade dependencies across the project",details:"\n This command upgrades the packages matching the list of specified patterns to their latest available version across the whole project (regardless of whether they're part of `dependencies` or `devDependencies` - `peerDependencies` won't be affected). This is a project-wide command: all workspaces will be upgraded in the process.\n\n If `-R,--recursive` is set the command will change behavior and no other switch will be allowed. When operating under this mode `yarn up` will force all ranges matching the selected packages to be resolved again (often to the highest available versions) before being stored in the lockfile. It however won't touch your manifests anymore, so depending on your needs you might want to run both `yarn up` and `yarn up -R` to cover all bases.\n\n If `-i,--interactive` is set (or if the `preferInteractive` settings is toggled on) the command will offer various choices, depending on the detected upgrade paths. Some upgrades require this flag in order to resolve ambiguities.\n\n The, `-C,--caret`, `-E,--exact` and `-T,--tilde` options have the same meaning as in the `add` command (they change the modifier used when the range is missing or a tag, and are ignored when the range is explicitly set).\n\n If the `--mode=<mode>` option is set, Yarn will change which artifacts are generated. The modes currently supported are:\n\n - `skip-build` will not run the build scripts at all. Note that this is different from setting `enableScripts` to false because the later will disable build scripts, and thus affect the content of the artifacts generated on disk, whereas the former will just disable the build step - but not the scripts themselves, which just won't run.\n\n - `update-lockfile` will skip the link step altogether, and only fetch packages that are missing from the lockfile (or that have no associated checksums). This mode is typically used by tools like Renovate or Dependabot to keep a lockfile up-to-date without incurring the full install cost.\n\n Generally you can see `yarn up` as a counterpart to what was `yarn upgrade --latest` in Yarn 1 (ie it ignores the ranges previously listed in your manifests), but unlike `yarn upgrade` which only upgraded dependencies in the current workspace, `yarn up` will upgrade all workspaces at the same time.\n\n This command accepts glob patterns as arguments (if valid Descriptors and supported by [micromatch](https://github.com/micromatch/micromatch)). Make sure to escape the patterns, to prevent your own shell from trying to expand them.\n\n **Note:** The ranges have to be static, only the package scopes and names can contain glob patterns.\n ",examples:[["Upgrade all instances of lodash to the latest release","$0 up lodash"],["Upgrade all instances of lodash to the latest release, but ask confirmation for each","$0 up lodash -i"],["Upgrade all instances of lodash to 1.2.3","$0 up lodash@1.2.3"],["Upgrade all instances of packages with the `@babel` scope to the latest release","$0 up '@babel/*'"],["Upgrade all instances of packages containing the word `jest` to the latest release","$0 up '*jest*'"],["Upgrade all instances of packages with the `@babel` scope to 7.0.0","$0 up '@babel/*@7.0.0'"]]}),uf.schema=[pv("recursive",Bl.Forbids,["interactive","exact","tilde","caret"],{ignore:[void 0,!1]})];var wAe=uf;var OC=class extends Be{constructor(){super(...arguments);this.recursive=Y.Boolean("-R,--recursive",!1,{description:"List, for each workspace, what are all the paths that lead to the dependency"});this.json=Y.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.peers=Y.Boolean("--peers",!1,{description:"Also print the peer dependencies that match the specified name"});this.package=Y.String()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ke.find(e,this.context.cwd);if(!i)throw new rt(r.cwd,this.context.cwd);await r.restoreInstallState();let n=S.parseIdent(this.package).identHash,s=this.recursive?n4e(r,n,{configuration:e,peers:this.peers}):i4e(r,n,{configuration:e,peers:this.peers});Hs.emitTree(s,{configuration:e,stdout:this.context.stdout,json:this.json,separators:1})}};OC.paths=[["why"]],OC.usage=ye.Usage({description:"display the reason why a package is needed",details:`
This command prints the exact reasons why a package appears in the dependency tree.
If \`-R,--recursive\` is set, the listing will go in depth and will list, for each workspaces, what are all the paths that lead to the dependency. Note that the display is somewhat optimized in that it will not print the package listing twice for a single package, so if you see a leaf named "Foo" when looking for "Bar", it means that "Foo" already got printed higher in the tree.
`,examples:[["Explain why lodash is used in your project","$0 why lodash"]]});var BAe=OC;function i4e(t,e,{configuration:r,peers:i}){let n=de.sortMap(t.storedPackages.values(),a=>S.stringifyLocator(a)),s={},o={children:s};for(let a of n){let l={},c=null;for(let u of a.dependencies.values()){if(!i&&a.peerDependencies.has(u.identHash))continue;let g=t.storedResolutions.get(u.descriptorHash);if(!g)throw new Error("Assertion failed: The resolution should have been registered");let f=t.storedPackages.get(g);if(!f)throw new Error("Assertion failed: The package should have been registered");if(f.identHash!==e)continue;if(c===null){let p=S.stringifyLocator(a);s[p]={value:[a,ue.Type.LOCATOR],children:l}}let h=S.stringifyLocator(f);l[h]={value:[{descriptor:u,locator:f},ue.Type.DEPENDENT]}}}return o}function n4e(t,e,{configuration:r,peers:i}){let n=de.sortMap(t.workspaces,f=>S.stringifyLocator(f.anchoredLocator)),s=new Set,o=new Set,a=f=>{if(s.has(f.locatorHash))return o.has(f.locatorHash);if(s.add(f.locatorHash),f.identHash===e)return o.add(f.locatorHash),!0;let h=!1;f.identHash===e&&(h=!0);for(let p of f.dependencies.values()){if(!i&&f.peerDependencies.has(p.identHash))continue;let d=t.storedResolutions.get(p.descriptorHash);if(!d)throw new Error("Assertion failed: The resolution should have been registered");let m=t.storedPackages.get(d);if(!m)throw new Error("Assertion failed: The package should have been registered");a(m)&&(h=!0)}return h&&o.add(f.locatorHash),h};for(let f of n){let h=t.storedPackages.get(f.anchoredLocator.locatorHash);if(!h)throw new Error("Assertion failed: The package should have been registered");a(h)}let l=new Set,c={},u={children:c},g=(f,h,p)=>{if(!o.has(f.locatorHash))return;let d=p!==null?ue.tuple(ue.Type.DEPENDENT,{locator:f,descriptor:p}):ue.tuple(ue.Type.LOCATOR,f),m={},E={value:d,children:m},B=S.stringifyLocator(f);if(h[B]=E,!l.has(f.locatorHash)&&(l.add(f.locatorHash),!(p!==null&&t.tryWorkspaceByLocator(f))))for(let b of f.dependencies.values()){if(!i&&f.peerDependencies.has(b.identHash))continue;let R=t.storedResolutions.get(b.descriptorHash);if(!R)throw new Error("Assertion failed: The resolution should have been registered");let H=t.storedPackages.get(R);if(!H)throw new Error("Assertion failed: The package should have been registered");g(H,m,b)}};for(let f of n){let h=t.storedPackages.get(f.anchoredLocator.locatorHash);if(!h)throw new Error("Assertion failed: The package should have been registered");g(h,c,null)}return u}var fL={};it(fL,{default:()=>w4e,gitUtils:()=>Uc});var Uc={};it(Uc,{TreeishProtocols:()=>vn,clone:()=>cL,fetchBase:()=>jAe,fetchChangedFiles:()=>YAe,fetchChangedWorkspaces:()=>E4e,fetchRoot:()=>GAe,isGitUrl:()=>ff,lsRemote:()=>HAe,normalizeLocator:()=>AL,normalizeRepoUrl:()=>KC,resolveUrl:()=>lL,splitRepoUrl:()=>UC});var oL=ie(OAe()),gf=ie(require("querystring")),aL=ie(Or()),KAe=ie(require("url"));function UAe(){return _(P({},process.env),{GIT_SSH_COMMAND:"ssh -o BatchMode=yes"})}var I4e=[/^ssh:/,/^git(?:\+[^:]+)?:/,/^(?:git\+)?https?:[^#]+\/[^#]+(?:\.git)(?:#.*)?$/,/^git@[^#]+\/[^#]+\.git(?:#.*)?$/,/^(?:github:|https:\/\/github\.com\/)?(?!\.{1,2}\/)([a-zA-Z._0-9-]+)\/(?!\.{1,2}(?:#|$))([a-zA-Z._0-9-]+?)(?:\.git)?(?:#.*)?$/,/^https:\/\/github\.com\/(?!\.{1,2}\/)([a-zA-Z0-9._-]+)\/(?!\.{1,2}(?:#|$))([a-zA-Z0-9._-]+?)\/tarball\/(.+)?$/],vn;(function(n){n.Commit="commit",n.Head="head",n.Tag="tag",n.Semver="semver"})(vn||(vn={}));function ff(t){return t?I4e.some(e=>!!t.match(e)):!1}function UC(t){t=KC(t);let e=t.indexOf("#");if(e===-1)return{repo:t,treeish:{protocol:vn.Head,request:"HEAD"},extra:{}};let r=t.slice(0,e),i=t.slice(e+1);if(i.match(/^[a-z]+=/)){let n=gf.default.parse(i);for(let[l,c]of Object.entries(n))if(typeof c!="string")throw new Error(`Assertion failed: The ${l} parameter must be a literal string`);let s=Object.values(vn).find(l=>Object.prototype.hasOwnProperty.call(n,l)),o,a;typeof s!="undefined"?(o=s,a=n[s]):(o=vn.Head,a="HEAD");for(let l of Object.values(vn))delete n[l];return{repo:r,treeish:{protocol:o,request:a},extra:n}}else{let n=i.indexOf(":"),s,o;return n===-1?(s=null,o=i):(s=i.slice(0,n),o=i.slice(n+1)),{repo:r,treeish:{protocol:s,request:o},extra:{}}}}function KC(t,{git:e=!1}={}){var r;if(t=t.replace(/^git\+https:/,"https:"),t=t.replace(/^(?:github:|https:\/\/github\.com\/)?(?!\.{1,2}\/)([a-zA-Z0-9._-]+)\/(?!\.{1,2}(?:#|$))([a-zA-Z0-9._-]+?)(?:\.git)?(#.*)?$/,"https://github.com/$1/$2.git$3"),t=t.replace(/^https:\/\/github\.com\/(?!\.{1,2}\/)([a-zA-Z0-9._-]+)\/(?!\.{1,2}(?:#|$))([a-zA-Z0-9._-]+?)\/tarball\/(.+)?$/,"https://github.com/$1/$2.git#$3"),e){t=t.replace(/^git\+([^:]+):/,"$1:");let i;try{i=KAe.default.parse(t)}catch{i=null}i&&i.protocol==="ssh:"&&((r=i.path)==null?void 0:r.startsWith("/:"))&&(t=t.replace(/^ssh:\/\//,""))}return t}function AL(t){return S.makeLocator(t,KC(t.reference))}async function HAe(t,e){let r=KC(t,{git:!0});if(!Zt.getNetworkSettings(`https://${(0,oL.default)(r).resource}`,{configuration:e}).enableNetwork)t Line truncated
- ${a.join(`
- `)}?`)}return this.cli.run([this.commandName,...this.args],{cwd:o.cwd})}};GC.paths=[["workspace"]],GC.usage=ye.Usage({category:"Workspace-related commands",description:"run a command within the specified workspace",details:`
This command will run a given sub-command on a single workspace.
`,examples:[["Add a package to a single workspace","yarn workspace components add -D react"],["Run build script on a single workspace","yarn workspace components run build"]]});var JAe=GC;var B4e={configuration:{enableImmutableInstalls:{description:"If true (the default on CI), prevents the install command from modifying the lockfile",type:ge.BOOLEAN,default:WAe.isCI},defaultSemverRangePrefix:{description:"The default save prefix: '^', '~' or ''",type:ge.STRING,values:["^","~",""],default:Lo.CARET}},commands:[soe,aoe,wae,Nae,mAe,nAe,tAe,qAe,Uae,Hae,Gae,jae,ioe,noe,Lae,Mae,Yae,qae,Wae,zae,_ae,EAe,Xae,cAe,AAe,uAe,Zae,gAe,fAe,hAe,dAe,CAe,wAe,BAe,JAe]},Q4e=B4e;var mL={};it(mL,{default:()=>v4e});var Me={optional:!0},zAe=[["@tailwindcss/aspect-ratio@<0.2.1",{peerDependencies:{tailwindcss:"^2.0.2"}}],["@tailwindcss/line-clamp@<0.2.1",{peerDependencies:{tailwindcss:"^2.0.2"}}],["@fullhuman/postcss-purgecss@3.1.3 || 3.1.3-alpha.0",{peerDependencies:{postcss:"^8.0.0"}}],["@samverschueren/stream-to-observable@<0.3.1",{peerDependenciesMeta:{rxjs:Me,zenObservable:Me}}],["any-observable@<0.5.1",{peerDependenciesMeta:{rxjs:Me,zenObservable:Me}}],["@pm2/agent@<1.0.4",{dependencies:{debug:"*"}}],["debug@<4.2.0",{peerDependenciesMeta:{["supports-color"]:Me}}],["got@<11",{dependencies:{["@types/responselike"]:"^1.0.0",["@types/keyv"]:"^3.1.1"}}],["cacheable-lookup@<4.1.2",{dependencies:{["@types/keyv"]:"^3.1.1"}}],["http-link-dataloader@*",{peerDependencies:{graphql:"^0.13.1 || ^14.0.0"}}],["typescript-language-server@*",{dependencies:{["vscode-jsonrpc"]:"^5.0.1",["vscode-languageserver-protocol"]:"^3.15.0"}}],["postcss-syntax@*",{peerDependenciesMeta:{["postcss-html"]:Me,["postcss-jsx"]:Me,["postcss-less"]:Me,["postcss-markdown"]:Me,["postcss-scss"]:Me}}],["jss-plugin-rule-value-function@<=10.1.1",{dependencies:{["tiny-warning"]:"^1.0.2"}}],["ink-select-input@<4.1.0",{peerDependencies:{react:"^16.8.2"}}],["license-webpack-plugin@<2.3.18",{peerDependenciesMeta:{webpack:Me}}],["snowpack@>=3.3.0",{dependencies:{["node-gyp"]:"^7.1.0"}}],["promise-inflight@*",{peerDependenciesMeta:{bluebird:Me}}],["reactcss@*",{peerDependencies:{react:"*"}}],["react-color@<=2.19.0",{peerDependencies:{react:"*"}}],["gatsby-plugin-i18n@*",{dependencies:{ramda:"^0.24.1"}}],["useragent@^2.0.0",{dependencies:{request:"^2.88.0",yamlparser:"0.0.x",semver:"5.5.x"}}],["@apollographql/apollo-tools@*",{peerDependencies:{graphql:"^14.2.1 || ^15.0.0"}}],["material-table@^2.0.0",{dependencies:{"@babel/runtime":"^7.11.2"}}],["@babel/parser@*",{dependencies:{"@babel/types":"^7.8.3"}}],["fork-ts-checker-webpack-plugin@<=6.3.4",{peerDependencies:{eslint:">= 6",typescript:">= 2.7",webpack:">= 4","vue-template-compiler":"*"},peerDependenciesMeta:{eslint:Me,"vue-template-compiler":Me}}],["rc-animate@<=3.1.1",{peerDependencies:{react:">=16.9.0","react-dom":">=16.9.0"}}],["react-bootstrap-table2-paginator@*",{dependencies:{classnames:"^2.2.6"}}],["react-draggable@<=4.4.3",{peerDependencies:{react:">= 16.3.0","react-dom":">= 16.3.0"}}],["apollo-upload-client@<14",{peerDependencies:{graphql:"14 - 15"}}],["react-instantsearch-core@<=6.7.0",{peerDependencies:{algoliasearch:">= 3.1 < 5"}}],["react-instantsearch-dom@<=6.7.0",{dependencies:{"react-fast-compare":"^3.0.0"}}],["ws@<7.2.1",{peerDependencies:{bufferutil:"^4.0.1","utf-8-validate":"^5.0.2"},peerDependenciesMeta:{bufferutil:Me,"utf-8-validate":Me}}],["react-portal@*",{peerDependencies:{"react-dom":"^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0"}}],["react-scripts@<=4.0.1",{peerDependencies:{react:"*"}}],["testcafe@<=1.10.1",{dependencies:{"@babel/plugin-transform-for-of":"^7.12.1","@babel/runtime":"^7.12.5"}}],["testcafe-legacy-api@<=4.2.0",{dependencies:{"testcafe-hammerhead":"^17.0.1","read-file-relative":"^1.2.0"}}],["@google-cloud/firestore@<=4.9.3",{dependencies:{protobufjs:"^6.8.6"}}],["gatsby-source-apiserver@*",{dependencies:{["babel-polyfill"]:"^6.26.0"}}],["@webpack-cli/package-utils@<=1.0.1-alpha.4",{dependencies:{["cross-spawn"]:"^7.0.3"}}],["gatsby-remark-prismjs@<3.3.28",{dependencies:{lodash:"^4"}}],["gatsby-plugin-favicon@*",{peerDependencies:{webpack:"*"}}],["gatsby-plugin-sharp@*",{dependencies:{debug:"^4.3.1"}}],["gatsby-react-router-scroll@*",{dependencies:{["prop-types"]:"^15.7.2"}}],["@rebass/forms@*",{dependencies:{["@styled-system/should-forward-prop"]:"^5.0.0"},peerDependencies:{react:"^16.8.6"}}],["rebass@*",{peerDependencies:{react:"^16.8.6"}}],["@ant-design/react-slick@<=0.28.3",{peerDependencies:{react:">=16.0.0"}}],["mqtt@<4.2.7",{dependencies:{duplexify:"^4.1.1"}}],["vue-cli-plugin-vuetify@<=2.0.3",{dependencies:{semver:"^6.3.0"},peerDependenciesMeta:{"sass-loader":Me,"vuetify-loader":Me}}],["vue-cli-plugin-vuetify@<=2.0.4",{dependencies:{"null-loader":"^3.0.0"}}],["@vuetify/cli-plugin-utils@<=0.0.4",{dependencies:{semver:"^6.3.0"},peerDependenciesMeta:{"sass-loader":Me}}],["@vue/cli-plugin-typescript@<=5.0.0-alpha.0",{dependencies:{"babel-loader":"^8.1.0"}}],["@vue/cli-plugin-typescript@<=5 Line truncated
`),await T.writeFilePromise(v.join(r,"yarn.lock"),"");let i=v.join(r,".yarnrc.yml"),n=await fe.findProjectCwd(this.context.cwd,wt.lockfile),s=!(await fe.find(this.context.cwd,null,{strict:!1})).get("enableGlobalCache"),o=n!==null?v.join(n,".yarnrc.yml"):null;o!==null&&T.existsSync(o)?(await T.copyFilePromise(o,i),await fe.updateConfiguration(r,d=>{let m=_(P({},d),{enableGlobalCache:s,enableTelemetry:!1});return Array.isArray(d.plugins)&&(m.plugins=d.plugins.map(E=>{let B=typeof E=="string"?E:E.path,b=M.isAbsolute(B)?B:M.resolve(M.fromPortablePath(n),B);return typeof E=="string"?b:{path:b,spec:E.spec}})),m})):await T.writeFilePromise(i,`enableGlobalCache: ${s}
enableTelemetry: false
`);let a=(p=this.packages)!=null?p:[this.command],l=S.parseDescriptor(this.command).name,c=await this.cli.run(["add","--",...a],{cwd:r,quiet:this.quiet});if(c!==0)return c;this.quiet||this.context.stdout.write(`
`);let u=await fe.find(r,this.context.plugins),{project:g,workspace:f}=await Ke.find(u,r);if(f===null)throw new rt(g.cwd,r);await g.restoreInstallState();let h=await Kt.getWorkspaceAccessibleBinaries(f);return h.has(l)===!1&&h.size===1&&typeof this.packages=="undefined"&&(l=Array.from(h)[0][0]),await Kt.executeWorkspaceAccessibleBinary(f,l,this.args,{packageAccessibleBinaries:h,cwd:this.context.cwd,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr})})}};jC.paths=[["dlx"]],jC.usage=ye.Usage({description:"run a package in a temporary environment",details:"\n This command will install a package within a temporary environment, and run its binary script if it contains any. The binary will run within the current cwd.\n\n By default Yarn will download the package named `command`, but this can be changed through the use of the `-p,--package` flag which will instruct Yarn to still run the same command but from a different package.\n\n Using `yarn dlx` as a replacement of `yarn add` isn't recommended, as it makes your project non-deterministic (Yarn doesn't keep track of the packages installed through `dlx` - neither their name, nor their version).\n ",examples:[["Use create-react-app to create a new React app","yarn dlx create-react-app ./my-app"],["Install multiple packages for a single command",`yarn dlx -p typescript -p ts-node ts-node --transpile-only -e "console.log('hello!')"`]]});var ele=jC;var S4e={commands:[$Ae,ele]},x4e=S4e;var xL={};it(xL,{default:()=>D4e,fileUtils:()=>EL});var hf=/^(?:[a-zA-Z]:[\\/]|\.{0,2}\/)/,YC=/^[^?]*\.(?:tar\.gz|tgz)(?:::.*)?$/,Nr="file:";var EL={};it(EL,{makeArchiveFromLocator:()=>_0,makeBufferFromLocator:()=>BL,makeLocator:()=>wL,makeSpec:()=>tle,parseSpec:()=>yL});function yL(t){let{params:e,selector:r}=S.parseRange(t),i=M.toPortablePath(r);return{parentLocator:e&&typeof e.locator=="string"?S.parseLocator(e.locator):null,path:i}}function tle({parentLocator:t,path:e,folderHash:r,protocol:i}){let n=t!==null?{locator:S.stringifyLocator(t)}:{},s=typeof r!="undefined"?{hash:r}:{};return S.makeRange({protocol:i,source:e,selector:e,params:P(P({},s),n)})}function wL(t,{parentLocator:e,path:r,folderHash:i,protocol:n}){return S.makeLocator(t,tle({parentLocator:e,path:r,folderHash:i,protocol:n}))}async function _0(t,{protocol:e,fetchOptions:r,inMemory:i=!1}){let{parentLocator:n,path:s}=S.parseFileStyleRange(t.reference,{protocol:e}),o=v.isAbsolute(s)?{packageFs:new Ft(Se.root),prefixPath:Se.dot,localPath:Se.root}:await r.fetcher.fetch(n,r),a=o.localPath?{packageFs:new Ft(Se.root),prefixPath:v.relative(Se.root,o.localPath)}:o;o!==a&&o.releaseFs&&o.releaseFs();let l=a.packageFs,c=v.join(a.prefixPath,s);return await de.releaseAfterUseAsync(async()=>await Ai.makeArchiveFromDirectory(c,{baseFs:l,prefixPath:S.getIdentVendorPath(t),compressionLevel:r.project.configuration.get("compressionLevel"),inMemory:i}),a.releaseFs)}async function BL(t,{protocol:e,fetchOptions:r}){return(await _0(t,{protocol:e,fetchOptions:r,inMemory:!0})).getBufferAndClose()}var QL=class{supports(e,r){return!!e.reference.startsWith(Nr)}getLocalPath(e,r){let{parentLocator:i,path:n}=S.parseFileStyleRange(e.reference,{protocol:Nr});if(v.isAbsolute(n))return n;let s=r.fetcher.getLocalPath(i,r);return s===null?null:v.resolve(s,n)}async fetch(e,r){let i=r.checksums.get(e.locatorHash)||null,[n,s,o]=await r.cache.fetchPackageFromCache(e,i,P({onHit:()=>r.report.reportCacheHit(e),onMiss:()=>r.report.reportCacheMiss(e,`${S.prettyLocator(r.project.configuration,e)} can't be found in the cache and will be fetched from the disk`),loader:()=>this.fetchFromDisk(e,r),skipIntegrityCheck:r.skipIntegrityCheck},r.cacheOptions));return{packageFs:n,releaseFs:s,prefixPath:S.getIdentVendorPath(e),localPath:this.getLocalPath(e,r),checksum:o}}async fetchFromDisk(e,r){return _0(e,{protocol:Nr,fetchOptions:r})}};var k4e=2,bL=class{supportsDescriptor(e,r){return e.range.match(hf)?!0:!!e.range.startsWith(Nr)}supportsLocator(e,r){return!!e.reference.startsWith(Nr)}shouldPersistResolution(e,r){return!1}bindDescriptor(e,r,i){return hf.test(e.range)&&(e=S.makeDescriptor(e,`${Nr}${e.range}`)),S.bindDescriptor(e,{locator:S.stringifyLocator(r)})}getResolutionDependencies(e,r){return[]}async getCandidates(e,r,i){if(!i.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let{path:n,parentLocator:s}=yL(e.range);if(s===null)throw new Error("Assertion failed: The descriptor should have been bound");let o=await BL(S.makeLocator(e,S.makeRange({protocol:Nr,source:n,selector:n,params:{locator:S.stringifyLocator(s)}})),{protocol:Nr,fetchOptions:i.fetchOptions}),a=mn.makeHash(`${k4e}`,o).slice(0,6);return[wL(e,{parentLocator:s,path:n,folderHash:a,protocol:Nr})]}async getSatisfying(e,r,i){return null}async resolve(e,r){if(!r.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let i=await r.fetchOptions.fetcher.fet Line truncated
`);let o=v.join(this.context.cwd,Ze.fileName);await T.changeFilePromise(o,`${JSON.stringify(s,null,2)}
`,{automaticNewlines:!0});let a=v.join(this.context.cwd,"README.md");if(T.existsSync(a)||await T.writeFilePromise(a,`# ${S.stringifyIdent(i.name)}
`),!r||r.cwd===this.context.cwd){let c=v.join(this.context.cwd,wt.lockfile);T.existsSync(c)||await T.writeFilePromise(c,"");let g=["/.yarn/*","!/.yarn/patches","!/.yarn/plugins","!/.yarn/releases","!/.yarn/sdks","","# Swap the comments on the following lines if you don't wish to use zero-installs","# Documentation here: https://yarnpkg.com/features/zero-installs","!/.yarn/cache","#/.pnp.*"].map(m=>`${m}
`).join(""),f=v.join(this.context.cwd,".gitignore");T.existsSync(f)||await T.writeFilePromise(f,g);let h={["*"]:{endOfLine:"lf",insertFinalNewline:!0},["*.{js,json,yml}"]:{charset:"utf-8",indentStyle:"space",indentSize:2}};(0,Rle.default)(h,e.get("initEditorConfig"));let p=`root = true
`;for(let[m,E]of Object.entries(h)){p+=`
[${m}]
`;for(let[B,b]of Object.entries(E))p+=`${B.replace(/[A-Z]/g,H=>`_${H.toLowerCase()}`)} = ${b}
`}let d=v.join(this.context.cwd,".editorconfig");T.existsSync(d)||await T.writeFilePromise(d,p),T.existsSync(v.join(this.context.cwd,".git"))||await hr.execvp("git",["init"],{cwd:this.context.cwd})}}};WC.paths=[["init"]],WC.usage=ye.Usage({description:"create a new package",details:"\n This command will setup a new package in your local directory.\n\n If the `-p,--private` or `-w,--workspace` options are set, the package will be private by default.\n\n If the `-w,--workspace` option is set, the package will be configured to accept a set of workspaces in the `packages/` directory.\n\n If the `-i,--install` option is given a value, Yarn will first download it using `yarn set version` and only then forward the init call to the newly downloaded bundle. Without arguments, the downloaded bundle will be `latest`.\n\n The initial settings of the manifest can be changed by using the `initScope` and `initFields` configuration values. Additionally, Yarn will generate an EditorConfig file whose rules can be altered via `initEditorConfig`, and will initialize a Git repository in the current directory.\n ",examples:[["Create a new package in the local directory","yarn init"],["Create a new private package in the local directory","yarn init -p"],["Create a new package and store the Yarn release inside","yarn init -i=latest"],["Create a new private package and defines it as a workspace root","yarn init -w"]]});var Fle=WC;var T5e={configuration:{initScope:{description:"Scope used when creating packages via the init command",type:ge.STRING,default:null},initFields:{description:"Additional fields to set when creating packages via the init command",type:ge.MAP,valueDefinition:{description:"",type:ge.ANY}},initEditorConfig:{description:"Extra rules to define in the generator editorconfig",type:ge.MAP,valueDefinition:{description:"",type:ge.ANY}}},commands:[Fle]},M5e=T5e;var GL={};it(GL,{default:()=>K5e});var Ua="portal:",Ha="link:";var OL=class{supports(e,r){return!!e.reference.startsWith(Ua)}getLocalPath(e,r){let{parentLocator:i,path:n}=S.parseFileStyleRange(e.reference,{protocol:Ua});if(v.isAbsolute(n))return n;let s=r.fetcher.getLocalPath(i,r);return s===null?null:v.resolve(s,n)}async fetch(e,r){var c;let{parentLocator:i,path:n}=S.parseFileStyleRange(e.reference,{protocol:Ua}),s=v.isAbsolute(n)?{packageFs:new Ft(Se.root),prefixPath:Se.dot,localPath:Se.root}:await r.fetcher.fetch(i,r),o=s.localPath?{packageFs:new Ft(Se.root),prefixPath:v.relative(Se.root,s.localPath),localPath:Se.root}:s;s!==o&&s.releaseFs&&s.releaseFs();let a=o.packageFs,l=v.resolve((c=o.localPath)!=null?c:o.packageFs.getRealPath(),o.prefixPath,n);return s.localPath?{packageFs:new Ft(l,{baseFs:a}),releaseFs:o.releaseFs,prefixPath:Se.dot,localPath:l}:{packageFs:new Zo(l,{baseFs:a}),releaseFs:o.releaseFs,prefixPath:Se.dot}}};var KL=class{supportsDescriptor(e,r){return!!e.range.startsWith(Ua)}supportsLocator(e,r){return!!e.reference.startsWith(Ua)}shouldPersistResolution(e,r){return!1}bindDescriptor(e,r,i){return S.bindDescriptor(e,{locator:S.stringifyLocator(r)})}getResolutionDependencies(e,r){return[]}async getCandidates(e,r,i){let n=e.range.slice(Ua.length);return[S.makeLocator(e,`${Ua}${M.toPortablePath(n)}`)]}async getSatisfying(e,r,i){return null}async resolve(e,r){if(!r.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let i=await r.fetchOptions.fetcher.fetch(e,r.fetchOptions),n=await de.releaseAfterUseAsync(async()=>await Ze.find(i.prefixPath,{baseFs:i.packageFs}),i.releaseFs);return _(P({},e),{version:n.version||"0.0.0",languageName:n.languageName||r.project.configuration.get("defaultLanguageName"),linkType:gt.SOFT,conditions:n.getConditions(),dependencies:new Map([...n.dependencies]),peerDependencies:n.peerDependencies,dependenciesMeta:n.dependenciesMeta,peerDependenciesMeta:n.peerDependenciesMeta,bin:n.bin})}};var UL=class{supports(e,r){return!!e.reference.startsWith(Ha)}getLocalPath(e,r){let{parentLocator:i,path:n}=S.parseFileStyleRange(e.reference,{protocol:Ha});if(v.isAbsolute(n))return n;let s=r.fetcher.getLocalPath(i,r);return s===null?null:v.resolve(s,n)}async fetch(e,r){var c;let{parentLocator:i,path:n}=S.parseFileStyleRange(e.reference,{protocol:Ha}),s=v.isAbsolute(n)?{packageFs:new Ft(Se.root),prefixPath:Se.dot,localPath:Se.root}:await r.fetcher.fetch(i,r),o=s.localPath?{packageFs:new Ft(Se.root),prefixPath:v.relative(Se.root,s.localPath),localPath:Se.root}:s;s!==o&&s.releaseFs&&s.releaseFs();let a=o.packageFs,l=v.resolve((c=o.localPath)!=null?c:o.packageFs.getRealPath(),o.prefixPath,n);return s.localPath?{packageFs:new Ft(l,{baseFs:a}),releaseFs:o.releaseFs,prefixPath:Se.dot,discardFromLookup:!0,localPath:l}:{packageFs:new Zo(l,{baseFs:a}),releaseFs:o.releaseFs,prefixPath:Se.dot,discardFromLookup:!0}}};var HL=class{supportsDescriptor(e,r){return!!e.range.startsWith(Ha)}supportsLocator(e,r){return!!e.reference.startsWith(Ha)}shouldPersistResolution(e,r){ Line truncated
${u}, next tree:
${zC(a)}`);let f=Lle(a);if(f)throw new Error(`${f}, after hoisting finished:
${zC(a)}`)}return s.debugLevel>=2&&console.log(zC(a)),H5e(a)},G5e=t=>{let e=t[t.length-1],r=new Map,i=new Set,n=s=>{if(!i.has(s)){i.add(s);for(let o of s.hoistedDependencies.values())r.set(o.name,o);for(let o of s.dependencies.values())s.peerNames.has(o.name)||n(o)}};return n(e),r},j5e=t=>{let e=t[t.length-1],r=new Map,i=new Set,n=new Set,s=(o,a)=>{if(i.has(o))return;i.add(o);for(let c of o.hoistedDependencies.values())if(!a.has(c.name)){let u;for(let g of t)u=g.dependencies.get(c.name),u&&r.set(u.name,u)}let l=new Set;for(let c of o.dependencies.values())l.add(c.name);for(let c of o.dependencies.values())o.peerNames.has(c.name)||s(c,l)};return s(e,n),r},Mle=(t,e)=>{if(e.decoupled)return e;let{name:r,references:i,ident:n,locator:s,dependencies:o,originalDependencies:a,hoistedDependencies:l,peerNames:c,reasons:u,isHoistBorder:g,hoistPriority:f,isWorkspace:h,hoistedFrom:p,hoistedTo:d}=e,m={name:r,references:new Set(i),ident:n,locator:s,dependencies:new Map(o),originalDependencies:new Map(a),hoistedDependencies:new Map(l),peerNames:new Set(c),reasons:new Map(u),decoupled:!0,isHoistBorder:g,hoistPriority:f,isWorkspace:h,hoistedFrom:new Map(p),hoistedTo:new Map(d)},E=m.dependencies.get(r);return E&&E.ident==m.ident&&m.dependencies.set(r,m),t.dependencies.set(m.name,m),m},Y5e=(t,e)=>{let r=new Map([[t.name,[t.ident]]]);for(let n of t.dependencies.values())t.peerNames.has(n.name)||r.set(n.name,[n.ident]);let i=Array.from(e.keys());i.sort((n,s)=>{let o=e.get(n),a=e.get(s);return a.hoistPriority!==o.hoistPriority?a.hoistPriority-o.hoistPriority:a.peerDependents.size!==o.peerDependents.size?a.peerDependents.size-o.peerDependents.size:a.dependents.size-o.dependents.size});for(let n of i){let s=n.substring(0,n.indexOf("@",1)),o=n.substring(s.length+1);if(!t.peerNames.has(s)){let a=r.get(s);a||(a=[],r.set(s,a)),a.indexOf(o)<0&&a.push(o)}}return r},qL=t=>{let e=new Set,r=(i,n=new Set)=>{if(!n.has(i)){n.add(i);for(let s of i.peerNames)if(!t.peerNames.has(s)){let o=t.dependencies.get(s);o&&!e.has(o)&&r(o,n)}e.add(i)}};for(let i of t.dependencies.values())t.peerNames.has(i.name)||r(i);return e},YL=(t,e,r,i,n,s=new Set)=>{let o=e[e.length-1];if(s.has(o))return{anotherRoundNeeded:!1,isGraphChanged:!1};s.add(o);let a=J5e(o),l=Y5e(o,a),c=t==o?new Map:n.fastLookupPossible?G5e(e):j5e(e),u,g=!1,f=!1,h=new Map(Array.from(l.entries()).map(([d,m])=>[d,m[0]])),p=new Map;do{let d=q5e(t,e,r,c,h,l,i,p,n);d.isGraphChanged&&(f=!0),d.anotherRoundNeeded&&(g=!0),u=!1;for(let[m,E]of l)E.length>1&&!o.dependencies.has(m)&&(h.delete(m),E.shift(),h.set(m,E[0]),u=!0)}while(u);for(let d of o.dependencies.values())if(!o.peerNames.has(d.name)&&!r.has(d.locator)){r.add(d.locator);let m=YL(t,[...e,d],r,p,n);m.isGraphChanged&&(f=!0),m.anotherRoundNeeded&&(g=!0),r.delete(d.locator)}return{anotherRoundNeeded:g,isGraphChanged:f}},W5e=(t,e,r,i,n,s,o,a,{outputReason:l,fastLookupPossible:c})=>{let u,g=null,f=new Set;l&&(u=`${Array.from(e).map(m=>wi(m)).join("\u2192")}`);let h=r[r.length-1],d=!(i.ident===h.ident);if(l&&!d&&(g="- self-reference"),d&&(d=!i.isWorkspace,l&&!d&&(g="- workspace")),d&&(d=!h.isWorkspace||h.hoistedFrom.has(i.name)||e.size===1,l&&!d&&(g=h.reasons.get(i.name))),d&&(d=!t.peerNames.has(i.name),l&&!d&&(g=`- cannot shadow peer: ${wi(t.originalDependencies.get(i.name).locator)} at ${u}`)),d){let m=!1,E=n.get(i.name);if(m=!E||E.ident===i.ident,l&&!m&&(g=`- filled by: ${wi(E.locator)} at ${u}`),m)for(let B=r.length-1;B>=1;B--){let R=r[B].dependencies.get(i.name);if(R&&R.ident!==i.ident){m=!1;let H=a.get(h);H||(H=new Set,a.set(h,H)),H.add(i.name),l&&(g=`- filled by ${wi(R.locator)} at ${r.slice(0,B).map(L=>wi(L.locator)).join("\u2192")}`);break}}d=m}if(d&&(d=s.get(i.name)===i.ident,l&&!d&&(g=`- filled by: ${wi(o.get(i.name)[0])} at ${u}`)),d){let m=!0,E=new Set(i.peerNames);for(let B=r.length-1;B>=1;B--){let b=r[B];for(let R of E){if(b.peerNames.has(R)&&b.originalDependencies.has(R))continue;let H=b.dependencies.get(R);H&&t.dependencies.get(R)!==H&&(B===r.length-1?f.add(H):(f=null,m=!1,l&&(g=`- peer dependency ${wi(H.locator)} from parent ${wi(b.locator)} was not hoisted to ${u}`))),E.delete(R)}if(!m)break}d=m}if(d&&!c)for(let m of i.hoistedDependencies.values()){let E=n.get(m.name);if(!E||m.ident!==E.ident){d=!1,l&&(g=`- previously hoisted dependency mismatch, needed: ${wi(m.locator)}, available: ${wi(E==null?void 0:E.locator)}`);break}}return f!==null&&f.size>0?{isHoistable:2,dependsOn:f,reason:g}:{isHoistable:d?0:1,reason:g}},q5e=(t,e,r,i,n,s,o,a,l)=>{let c=e[e.length-1],u=new Set,g=!1,f=!1,h=(m,E,B,b)=>{if(u.has(B))return;let R=[...E,B.locator],H=new Map,L=new Map;for(let q of qL(B)){let A=W5e(c,r,[c,...m,B],q,i,n,s,a,{outputReason:l.debugLevel>=2,fastLookupPossible:l.fastLookupPossible});if(L.set(q,A),A.isHoistable===2)for(let V of A.dependsOn){let W=H.get(V.name)||new Set;W.add(q.name),H.set(V.name,W)}}let K=new Set,J=(q,A,V)=>{if(!K.has(q)){K.add(q),L.set(q,{isHoistable:1,reason:V});for(let W of H.get(q.name)||[])J(B.dependencies.get(W),A Line truncated
${zC(t)}`)}let ne=qL(B);for(let q of ne)if(K.has(q)){let A=L.get(q);if((n.get(q.name)===q.ident||!B.reasons.has(q.name))&&A.isHoistable!==0&&B.reasons.set(q.name,A.reason),!q.isHoistBorder&&R.indexOf(q.locator)<0){u.add(B);let W=Mle(B,q);h([...m,B],[...E,B.locator],W,d),u.delete(B)}}},p,d=new Set(qL(c));do{p=d,d=new Set;for(let m of p){if(m.locator===c.locator||m.isHoistBorder)continue;let E=Mle(c,m);h([],Array.from(r),E,d)}}while(d.size>0);return{anotherRoundNeeded:g,isGraphChanged:f}},Lle=t=>{let e=[],r=new Set,i=new Set,n=(s,o,a)=>{if(r.has(s)||(r.add(s),i.has(s)))return;let l=new Map(o);for(let c of s.dependencies.values())s.peerNames.has(c.name)||l.set(c.name,c);for(let c of s.originalDependencies.values()){let u=l.get(c.name),g=()=>`${Array.from(i).concat([s]).map(f=>wi(f.locator)).join("\u2192")}`;if(s.peerNames.has(c.name)){let f=o.get(c.name);(f!==u||!f||f.ident!==c.ident)&&e.push(`${g()} - broken peer promise: expected ${c.ident} but found ${f&&f.ident}`)}else{let f=a.hoistedFrom.get(s.name),h=s.hoistedTo.get(c.name),p=`${f?` hoisted from ${f.join(", ")}`:""}`,d=`${h?` hoisted to ${h}`:""}`,m=`${g()}${p}`;u?u.ident!==c.ident&&e.push(`${m} - broken require promise for ${c.name}${d}: expected ${c.ident}, but found: ${u.ident}`):e.push(`${m} - broken require promise: no required dependency ${c.name}${d} found`)}}i.add(s);for(let c of s.dependencies.values())s.peerNames.has(c.name)||n(c,l,s);i.delete(s)};return n(t,t.dependencies,t),e.join(`
`)},U5e=(t,e)=>{let{identName:r,name:i,reference:n,peerNames:s}=t,o={name:i,references:new Set([n]),locator:jL(r,n),ident:Nle(r,n),dependencies:new Map,originalDependencies:new Map,hoistedDependencies:new Map,peerNames:new Set(s),reasons:new Map,decoupled:!0,isHoistBorder:!0,hoistPriority:0,isWorkspace:!0,hoistedFrom:new Map,hoistedTo:new Map},a=new Map([[t,o]]),l=(c,u)=>{let g=a.get(c),f=!!g;if(!g){let{name:h,identName:p,reference:d,peerNames:m,hoistPriority:E,isWorkspace:B}=c,b=e.hoistingLimits.get(u.locator);g={name:h,references:new Set([d]),locator:jL(p,d),ident:Nle(p,d),dependencies:new Map,originalDependencies:new Map,hoistedDependencies:new Map,peerNames:new Set(m),reasons:new Map,decoupled:!0,isHoistBorder:b?b.has(h):!1,hoistPriority:E||0,isWorkspace:B||!1,hoistedFrom:new Map,hoistedTo:new Map},a.set(c,g)}if(u.dependencies.set(c.name,g),u.originalDependencies.set(c.name,g),f){let h=new Set,p=d=>{if(!h.has(d)){h.add(d),d.decoupled=!1;for(let m of d.dependencies.values())d.peerNames.has(m.name)||p(m)}};p(g)}else for(let h of c.dependencies)l(h,g)};for(let c of t.dependencies)l(c,o);return o},JL=t=>t.substring(0,t.indexOf("@",1)),H5e=t=>{let e={name:t.name,identName:JL(t.locator),references:new Set(t.references),dependencies:new Set},r=new Set([t]),i=(n,s,o)=>{let a=r.has(n),l;if(s===n)l=o;else{let{name:c,references:u,locator:g}=n;l={name:c,identName:JL(g),references:u,dependencies:new Set}}if(o.dependencies.add(l),!a){r.add(n);for(let c of n.dependencies.values())n.peerNames.has(c.name)||i(c,n,l);r.delete(n)}};for(let n of t.dependencies.values())i(n,t,e);return e},J5e=t=>{let e=new Map,r=new Set([t]),i=o=>`${o.name}@${o.ident}`,n=o=>{let a=i(o),l=e.get(a);return l||(l={dependents:new Set,peerDependents:new Set,hoistPriority:0},e.set(a,l)),l},s=(o,a)=>{let l=!!r.has(a);if(n(a).dependents.add(o.ident),!l){r.add(a);for(let u of a.dependencies.values()){let g=n(u);g.hoistPriority=Math.max(g.hoistPriority,u.hoistPriority),a.peerNames.has(u.name)?g.peerDependents.add(a.ident):s(a,u)}}};for(let o of t.dependencies.values())t.peerNames.has(o.name)||s(t,o);return e},wi=t=>{if(!t)return"none";let e=t.indexOf("@",1),r=t.substring(0,e);r.endsWith("$wsroot$")&&(r=`wh:${r.replace("$wsroot$","")}`);let i=t.substring(e+1);if(i==="workspace:.")return".";if(i){let n=(i.indexOf("#")>0?i.split("#")[1]:i).replace("npm:","");return i.startsWith("virtual")&&(r=`v:${r}`),n.startsWith("workspace")&&(r=`w:${r}`,n=""),`${r}${n?`@${n}`:""}`}else return`${r}`},Ole=5e4,zC=t=>{let e=0,r=(n,s,o="")=>{if(e>Ole||s.has(n))return"";e++;let a=Array.from(n.dependencies.values()).sort((c,u)=>c.name.localeCompare(u.name)),l="";s.add(n);for(let c=0;c<a.length;c++){let u=a[c];if(!n.peerNames.has(u.name)&&u!==n){let g=n.reasons.get(u.name),f=JL(u.locator),h=n.hoistedFrom.get(u.name)||[];l+=`${o}${c<a.length-1?"\u251C\u2500":"\u2514\u2500"}${(s.has(u)?">":"")+(f!==u.name?`a:${u.name}:`:"")+wi(u.locator)+(g?` ${g}`:"")+(u!==n&&h.length>0?`, hoisted from: ${h.join(", ")}`:"")}
`,l+=r(u,s,`${o}${c<a.length-1?"\u2502 ":" "}`)}}return s.delete(n),l};return r(t,new Set)+(e>Ole?`
Tree is too large, part of the tree has been dunped
`:"")};var Js;(function(r){r.HARD="HARD",r.SOFT="SOFT"})(Js||(Js={}));var Sn;(function(i){i.WORKSPACES="workspaces",i.DEPENDENCIES="dependencies",i.NONE="none"})(Sn||(Sn={}));var Kle="node_modules",Hc="$wsroot$";var VC=(t,e)=>{let{packageTree:r,hoistingLimits:i,errors:n,preserveSymlinksRequired:s}=z5e(t,e),o=null;if(n.length===0){let a=Tle(r,{hoistingLimits:i});o=V5e(t,a,e)}return{tree:o,errors:n,preserveSymlinksRequired:s}},ms=t=>`${t.name}@${t.reference}`,WL=t=>{let e=new Map;for(let[r,i]of t.entries())if(!i.dirList){let n=e.get(i.locator);n||(n={target:i.target,linkType:i.linkType,locations:[],aliases:i.aliases},e.set(i.locator,n)),n.locations.push(r)}for(let r of e.values())r.locations=r.locations.sort((i,n)=>{let s=i.split(v.delimiter).length,o=n.split(v.delimiter).length;return s!==o?o-s:n.localeCompare(i)});return e},Ule=(t,e)=>{let r=S.isVirtualLocator(t)?S.devirtualizeLocator(t):t,i=S.isVirtualLocator(e)?S.devirtualizeLocator(e):e;return S.areLocatorsEqual(r,i)},zL=(t,e,r,i)=>{if(t.linkType!==Js.SOFT)return!1;let n=M.toPortablePath(r.resolveVirtual&&e.reference&&e.reference.startsWith("virtual:")?r.resolveVirtual(t.packageLocation):t.packageLocation);return v.contains(i,n)===null},_5e=t=>{let e=t.getPackageInformation(t.topLevel);if(e===null)throw new Error("Assertion failed: Expected the top-level package to have been registered");if(t.findPackageLocator(e.packageLocation)===null)throw new Error("Assertion failed: Expected the top-level package to have a physical locator");let i=M.toPortablePath(e.packageLocation.slice(0,-1)),n=new Map,s={children:new Map},o=t.getDependencyTreeRoots(),a=new Map,l=new Set,c=(f,h)=>{let p=ms(f);if(l.has(p))return;l.add(p);let d=t.getPackageInformation(f);if(d){let m=h?ms(h):"";if(ms(f)!==m&&d.linkType===Js.SOFT&&!zL(d,f,t,i)){let E=Hle(d,f,t);(!a.get(E)||f.reference.startsWith("workspace:"))&&a.set(E,f)}for(let[E,B]of d.packageDependencies)B!==null&&(d.packagePeers.has(E)||c(t.getLocator(E,B),f))}};for(let f of o)c(f,null);let u=i.split(v.sep);for(let f of a.values()){let h=t.getPackageInformation(f),d=M.toPortablePath(h.packageLocation.slice(0,-1)).split(v.sep).slice(u.length),m=s;for(let E of d){let B=m.children.get(E);B||(B={children:new Map},m.children.set(E,B)),m=B}m.workspaceLocator=f}let g=(f,h)=>{if(f.workspaceLocator){let p=ms(h),d=n.get(p);d||(d=new Set,n.set(p,d)),d.add(f.workspaceLocator)}for(let p of f.children.values())g(p,f.workspaceLocator||h)};for(let f of s.children.values())g(f,s.workspaceLocator);return n},z5e=(t,e)=>{let r=[],i=!1,n=new Map,s=_5e(t),o=t.getPackageInformation(t.topLevel);if(o===null)throw new Error("Assertion failed: Expected the top-level package to have been registered");let a=t.findPackageLocator(o.packageLocation);if(a===null)throw new Error("Assertion failed: Expected the top-level package to have a physical locator");let l=M.toPortablePath(o.packageLocation.slice(0,-1)),c={name:a.name,identName:a.name,reference:a.reference,peerNames:o.packagePeers,dependencies:new Set,isWorkspace:!0},u=new Map,g=(h,p)=>`${ms(p)}:${h}`,f=(h,p,d,m,E,B,b,R)=>{var X,F;let H=g(h,d),L=u.get(H),K=!!L;!K&&d.name===a.name&&d.reference===a.reference&&(L=c,u.set(H,c));let J=zL(p,d,t,l);if(!L){let D=p.linkType===Js.SOFT&&d.name.endsWith(Hc);L={name:h,identName:d.name,reference:d.reference,dependencies:new Set,peerNames:D?new Set:p.packagePeers,isWorkspace:D},u.set(H,L)}let ne;if(J?ne=2:E.linkType===Js.SOFT?ne=1:ne=0,L.hoistPriority=Math.max(L.hoistPriority||0,ne),R&&!J){let D=ms({name:m.identName,reference:m.reference}),he=n.get(D)||new Set;n.set(D,he),he.add(L.name)}let q=new Map(p.packageDependencies);if(e.project){let D=e.project.workspacesByCwd.get(M.toPortablePath(p.packageLocation.slice(0,-1)));if(D){let he=new Set([...Array.from(D.manifest.peerDependencies.values(),pe=>S.stringifyIdent(pe)),...Array.from(D.manifest.peerDependenciesMeta.keys())]);for(let pe of he)q.has(pe)||(q.set(pe,B.get(pe)||null),L.peerNames.add(pe))}}let A=ms({name:d.name.replace(Hc,""),reference:d.reference}),V=s.get(A);if(V)for(let D of V)q.set(`${D.name}${Hc}`,D.reference);(p!==E||p.linkType!==Js.SOFT||!e.selfReferencesByCwd||e.selfReferencesByCwd.get(b))&&m.dependencies.add(L);let W=d!==a&&p.linkType===Js.SOFT&&!d.name.endsWith(Hc)&&!J;if(!K&&!W){let D=new Map;for(let[he,pe]of q)if(pe!==null){let Ne=t.getLocator(he,pe),Pe=t.getLocator(he.replace(Hc,""),pe),qe=t.getPackageInformation(Pe);if(qe===null)throw new Error("Assertion failed: Expected the package to have been registered");let re=zL(qe,Ne,t,l);if(e.validateExternalSoftLinks&&e.project&&re){qe.packageDependencies.size>0&&(i=!0);for(let[De,$]of qe.packageDependencies)if($!==null){let G=S.parseLocator(Array.isArray($)?`${$[0]}@${$[1]}`:`${De}@${$}`);if(ms(G)!==ms(Ne)){let Ce=q.get(De);if(Ce){let ee=S.parseLocator(Array.isArray(Ce)?`${Ce[0]}@${Ce[1]}`:`${De}@${Ce}`);Ule(ee,G)||r.push({messageName:z.NM_CANT_INSTALL_EXTERNAL_SOFT_LINK,text:`Cannot link ${S.prettyIdent(e.project.configuration,S.parseIdent(Ne.name))} intLine truncated
`;for(let s=0,o=t.length;s<o;++s)n+=i+X0(String(s),t[s],e,i).replace(/^ +/,""),s+1<o&&(n+=","),n+=`
`;return n+=r,n+="]",n}function e6e(t,e,r){let i=Object.keys(t),n="";n+="{";for(let s=0,o=i.length;s<o;++s){let a=i[s],l=t[a];typeof l!="undefined"&&(n+=JSON.stringify(a),n+=": ",n+=X0(a,l,e,r).replace(/^ +/g,""),s+1<o&&(n+=", "))}return n+="}",n}function t6e(t,e,r){let i=Object.keys(t),n=`${r} `,s="";s+=r,s+=`{
`;for(let o=0,a=i.length;o<a;++o){let l=i[o],c=t[l];typeof c!="undefined"&&(s+=n,s+=JSON.stringify(l),s+=": ",s+=X0(l,c,e,n).replace(/^ +/g,""),o+1<a&&(s+=","),s+=`
`)}return s+=r,s+="}",s}function X0(t,e,r,i){let{next:n}=jle[r],s=n[t]||n["*"];return Yle(e,s,i)}function Yle(t,e,r){let{collapsed:i}=jle[e];return Array.isArray(t)?i?Z5e(t,e,r):$5e(t,e,r):typeof t=="object"&&t!==null?i?e6e(t,e,r):t6e(t,e,r):JSON.stringify(t)}function qle(t){return Yle(t,Ht.TOP_LEVEL,"")}function _C(t,e){let r=Array.from(t);Array.isArray(e)||(e=[e]);let i=[];for(let s of e)i.push(r.map(o=>s(o)));let n=r.map((s,o)=>o);return n.sort((s,o)=>{for(let a of i){let l=a[s]<a[o]?-1:a[s]>a[o]?1:0;if(l!==0)return l}return 0}),n.map(s=>r[s])}function r6e(t){let e=new Map,r=_C(t.fallbackExclusionList||[],[({name:i,reference:n})=>i,({name:i,reference:n})=>n]);for(let{name:i,reference:n}of r){let s=e.get(i);typeof s=="undefined"&&e.set(i,s=new Set),s.add(n)}return Array.from(e).map(([i,n])=>[i,Array.from(n)])}function i6e(t){return _C(t.fallbackPool||[],([e])=>e)}function n6e(t){let e=[];for(let[r,i]of _C(t.packageRegistry,([n])=>n===null?"0":`1${n}`)){let n=[];e.push([r,n]);for(let[s,{packageLocation:o,packageDependencies:a,packagePeers:l,linkType:c,discardFromLookup:u}]of _C(i,([g])=>g===null?"0":`1${g}`)){let g=[];r!==null&&s!==null&&!a.has(r)&&g.push([r,s]);for(let[p,d]of _C(a.entries(),([m])=>m))g.push([p,d]);let f=l&&l.size>0?Array.from(l):void 0,h=u||void 0;n.push([s,{packageLocation:o,packageDependencies:g,packagePeers:f,linkType:c,discardFromLookup:h}])}}return e}function XC(t){return{__info:["This file is automatically generated. Do not touch it, or risk","your modifications being lost. We also recommend you not to read","it either without using the @yarnpkg/pnp package, as the data layout","is entirely unspecified and WILL change from a version to another."],dependencyTreeRoots:t.dependencyTreeRoots,enableTopLevelFallback:t.enableTopLevelFallback||!1,ignorePatternData:t.ignorePattern||null,fallbackExclusionList:r6e(t),fallbackPool:i6e(t),packageRegistryData:n6e(t)}}var zle=ie(Wle());function Vle(t,e){return[t?`${t}
`:"",`/* eslint-disable */
`,`try {
`,` Object.freeze({}).detectStrictMode = true;
`,`} catch (error) {
`," throw new Error(`The whole PnP file got strict-mode-ified, which is known to break (Emscripten libraries aren't strict mode). This usually happens when the file goes through Babel.`);\n",`}
`,`
`,`var __non_webpack_module__ = module;
`,`
`,`function $$SETUP_STATE(hydrateRuntimeState, basePath) {
`,e.replace(/^/gm," "),`}
`,`
`,(0,zle.default)()].join("")}function s6e(t){return JSON.stringify(t,null,2)}function o6e(t){return[`return hydrateRuntimeState(${qle(t)}, {basePath: basePath || __dirname});
`].join("")}function a6e(t){return[`var path = require('path');
`,`var dataLocation = path.resolve(__dirname, ${JSON.stringify(t)});
`,`return hydrateRuntimeState(require(dataLocation), {basePath: basePath || path.dirname(dataLocation)});
`].join("")}function _le(t){let e=XC(t),r=o6e(e);return Vle(t.shebang,r)}function Xle(t){let e=XC(t),r=a6e(t.dataLocation),i=Vle(t.shebang,r);return{dataFile:s6e(e),loaderFile:i}}var tce=ie(require("fs")),u6e=ie(require("path")),rce=ie(require("util"));function _L(t,{basePath:e}){let r=M.toPortablePath(e),i=v.resolve(r),n=t.ignorePatternData!==null?new RegExp(t.ignorePatternData):null,s=new Map,o=new Map(t.packageRegistryData.map(([g,f])=>[g,new Map(f.map(([h,p])=>{var b;if(g===null!=(h===null))throw new Error("Assertion failed: The name and reference should be null, or neither should");let d=(b=p.discardFromLookup)!=null?b:!1,m={name:g,reference:h},E=s.get(p.packageLocation);E?(E.discardFromLookup=E.discardFromLookup&&d,d||(E.locator=m)):s.set(p.packageLocation,{locator:m,discardFromLookup:d});let B=null;return[h,{packageDependencies:new Map(p.packageDependencies),packagePeers:new Set(p.packagePeers),linkType:p.linkType,discardFromLookup:d,get packageLocation(){return B||(B=v.join(i,p.packageLocation))}}]}))])),a=new Map(t.fallbackExclusionList.map(([g,f])=>[g,new Set(f)])),l=new Map(t.fallbackPool),c=t.dependencyTreeRoots,u=t.enableTopLevelFallback;return{basePath:r,dependencyTreeRoots:c,enableTopLevelFallback:u,fallbackExclusionList:a,fallbackPool:l,ignorePattern:n,packageLocatorsByLocations:s,packageRegistry:o}}var df=ie(require("module")),ece=ie($le()),ZL=ie(require("util"));var ur;(function(l){l.API_ERROR="API_ERROR",l.BUILTIN_NODE_RESOLUTION_FAILED="BUILTIN_NODE_RESOLUTION_FAILED",l.MISSING_DEPENDENCY="MISSING_DEPENDENCY",l.MISSING_PEER_DEPENDENCY="MISSING_PEER_DEPENDENCY",l.QUALIFIED_PATH_RESOLUTION_FAILED="QUALIFIED_PATH_RESOLUTION_FAILED",l.INTERNAL="INTERNAL",l.UNDECLARED_DEPENDENCY="UNDECLARED_DEPENDENCY",l.UNSUPPORTED="UNSUPPORTED"})(ur||(ur={}));var c6e=new Set([ur.BUILTIN_NODE_RESOLUTION_FAILED,ur.MISSING_DEPENDENCY,ur.MISSING_PEER_DEPENDENCY,ur.QUALIFIED_PATH_RESOLUTION_FAILED,ur.UNDECLARED_DEPENDENCY]);function ui(t,e,r={}){let i=c6e.has(t)?"MODULE_NOT_FOUND":t,n={configurable:!0,writable:!0,enumerable:!1};return Object.defineProperties(new Error(e),{code:_(P({},n),{value:i}),pnpCode:_(P({},n),{value:t}),data:_(P({},n),{value:r})})}function YA(t){return M.normalize(M.fromPortablePath(t))}function $L(t,e){let r=Number(process.env.PNP_ALWAYS_WARN_ON_FALLBACK)>0,i=Number(process.env.PNP_DEBUG_LEVEL),n=new Set(df.Module.builtinModules||Object.keys(process.binding("natives"))),s=re=>n.has(re)||re.startsWith("node:"),o=/^(?![a-zA-Z]:[\\/]|\\\\|\.{0,2}(?:\/|$))((?:node:)?(?:@[^/]+\/)?[^/]+)\/*(.*|)$/,a=/^(\/|\.{1,2}(\/|$))/,l=/\/$/,c=/^\.{0,2}\//,u={name:null,reference:null},g=[],f=new Set;if(t.enableTopLevelFallback===!0&&g.push(u),e.compatibilityMode!==!1)for(let re of["react-scripts","gatsby"]){let se=t.packageRegistry.get(re);if(se)for(let be of se.keys()){if(be===null)throw new Error("Assertion failed: This reference shouldn't be null");g.push({name:re,reference:be})}}let{ignorePattern:h,packageRegistry:p,packageLocatorsByLocations:d}=t;function m(re,se){return{fn:re,args:se,error:null,result:null}}function E(re){var De,$,G,Ce,ee,Ue;let se=(G=($=(De=process.stderr)==null?void 0:De.hasColors)==null?void 0:$.call(De))!=null?G:process.stdout.isTTY,be=(Oe,vt)=>`[${Oe}m${vt}`,ae=re.error;console.error(ae?be("31;1",`\u2716 ${(Ce=re.error)==null?void 0:Ce.message.replace(/\n.*/s,"")}`):be("33;1","\u203C Resolution")),re.args.length>0&&console.error();for(let Oe of re.args)console.error(` ${be("37;1","In \u2190")} ${(0,ZL.inspect)(Oe,{colors:se,compact:!0})}`);re.result&&(console.error(),console.error(` ${be("37;1","Out \u2192")} ${(0,ZL.inspect)(re.result,{colors:se,compact:!0})}`));let Ae=(Ue=(ee=new Error().stack.match(/(?<=^ +)at.*/gm))==null?void 0:ee.slice(2))!=null?Ue:[];if(Ae.length>0){console.error();for(let Oe of Ae)console.error(` ${be("38;5;244",Oe)}`)}console.error()}function B(re,se){if(e.allowDebug===!1)return se;if(Number.isFinite(i)){if(i>=2)return(...be)=>{let ae=m(re,be);try{return ae.result=se(...be)}catch(Ae){throw ae.error=Ae}finally{E(ae)}};if(i>=1)return(...be)=>{try{return se(...be)}catch(ae){let Ae=m(re,be);throw Ae.error=ae,E(Ae),ae}}}return se}function b(re){let se=W(re);if(!se)throw ui(ur.INTERNAL,"Couldn't find a matching entry in the dependency tree for the specified parent (this is probably an internal error)");return se}function R(re){if(re.name===null)return!0;for(let se of t.dependencyTreeRoots)if(se.name===re.name&&se.reference===re.reference)return!0;return!1}let H=new Set(["default","node","require"]);function L(re,se=H){let be=D(v.join(re,"internal.js"),{resolveIgnored:!0,includeDiscardFromLookup:!0});if(be===null)throw ui(ur.INTERNAL,`The locator that owns the "${re}" path can't be found inside the dependency tree (this is probably an internal error)`);let{packageLocation:ae}=b(be),Ae=v.join(ae,wt.manifest);if(!e.fakeFs.existsSync(Ae))return null;let De=JSON.parse(e.fakeFs.readFileSync(Ae,"utf8")),$=v.contains(ae,re);if($===null)throw ui(ur.INTERNAL,"uLine truncated
Require request: "${ae}"
Required by: ${Ae}
`,{request:ae,issuer:Ae});return M.toPortablePath(G)}let De,$=re.match(o);if($){if(!se)throw ui(ur.API_ERROR,"The resolveToUnqualified function must be called with a valid issuer when the path isn't a builtin nor absolute",{request:ae,issuer:Ae});let[,G,Ce]=$,ee=D(se);if(!ee){let yr=ne(re,se);if(yr===!1)throw ui(ur.BUILTIN_NODE_RESOLUTION_FAILED,`The builtin node resolution algorithm was unable to resolve the requested module (it didn't go through the pnp resolver because the issuer doesn't seem to be part of the Yarn-managed dependency tree).
Require path: "${ae}"
Required by: ${Ae}
`,{request:ae,issuer:Ae});return M.toPortablePath(yr)}let Oe=b(ee).packageDependencies.get(G),vt=null;if(Oe==null&&ee.name!==null){let yr=t.fallbackExclusionList.get(ee.name);if(!yr||!yr.has(ee.reference)){for(let Qi=0,Go=g.length;Qi<Go;++Qi){let Ui=b(g[Qi]).packageDependencies.get(G);if(Ui!=null){r?vt=Ui:Oe=Ui;break}}if(t.enableTopLevelFallback&&Oe==null&&vt===null){let Qi=t.fallbackPool.get(G);Qi!=null&&(vt=Qi)}}}let dt=null;if(Oe===null)if(R(ee))dt=ui(ur.MISSING_PEER_DEPENDENCY,`Your application tried to access ${G} (a peer dependency); this isn't allowed as there is no ancestor to satisfy the requirement. Use a devDependency if needed.
Required package: ${G}${G!==ae?` (via "${ae}")`:""}
Required by: ${Ae}
`,{request:ae,issuer:Ae,dependencyName:G});else{let yr=F(G,ee);yr.every(Ki=>R(Ki))?dt=ui(ur.MISSING_PEER_DEPENDENCY,`${ee.name} tried to access ${G} (a peer dependency) but it isn't provided by your application; this makes the require call ambiguous and unsound.
Required package: ${G}${G!==ae?` (via "${ae}")`:""}
Required by: ${ee.name}@${ee.reference} (via ${Ae})
${yr.map(Ki=>`Ancestor breaking the chain: ${Ki.name}@${Ki.reference}
`).join("")}
`,{request:ae,issuer:Ae,issuerLocator:Object.assign({},ee),dependencyName:G,brokenAncestors:yr}):dt=ui(ur.MISSING_PEER_DEPENDENCY,`${ee.name} tried to access ${G} (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.
Required package: ${G}${G!==ae?` (via "${ae}")`:""}
Required by: ${ee.name}@${ee.reference} (via ${Ae})
${yr.map(Ki=>`Ancestor breaking the chain: ${Ki.name}@${Ki.reference}
`).join("")}
`,{request:ae,issuer:Ae,issuerLocator:Object.assign({},ee),dependencyName:G,brokenAncestors:yr})}else Oe===void 0&&(!be&&s(re)?R(ee)?dt=ui(ur.UNDECLARED_DEPENDENCY,`Your application tried to access ${G}. While this module is usually interpreted as a Node builtin, your resolver is running inside a non-Node resolution context where such builtins are ignored. Since ${G} isn't otherwise declared in your dependencies, this makes the require call ambiguous and unsound.
Required package: ${G}${G!==ae?` (via "${ae}")`:""}
Required by: ${Ae}
`,{request:ae,issuer:Ae,dependencyName:G}):dt=ui(ur.UNDECLARED_DEPENDENCY,`${ee.name} tried to access ${G}. While this module is usually interpreted as a Node builtin, your resolver is running inside a non-Node resolution context where such builtins are ignored. Since ${G} isn't otherwise declared in ${ee.name}'s dependencies, this makes the require call ambiguous and unsound.
Required package: ${G}${G!==ae?` (via "${ae}")`:""}
Required by: ${Ae}
`,{request:ae,issuer:Ae,issuerLocator:Object.assign({},ee),dependencyName:G}):R(ee)?dt=ui(ur.UNDECLARED_DEPENDENCY,`Your application tried to access ${G}, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.
Required package: ${G}${G!==ae?` (via "${ae}")`:""}
Required by: ${Ae}
`,{request:ae,issuer:Ae,dependencyName:G}):dt=ui(ur.UNDECLARED_DEPENDENCY,`${ee.name} tried to access ${G}, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: ${G}${G!==ae?` (via "${ae}")`:""}
Required by: ${ee.name}@${ee.reference} (via ${Ae})
`,{request:ae,issuer:Ae,issuerLocator:Object.assign({},ee),dependencyName:G}));if(Oe==null){if(vt===null||dt===null)throw dt||new Error("Assertion failed: Expected an error to have been set");Oe=vt;let yr=dt.message.replace(/\n.*/g,"");dt.message=yr,!f.has(yr)&&i!==0&&(f.add(yr),process.emitWarning(dt))}let ri=Array.isArray(Oe)?{name:Oe[0],reference:Oe[1]}:{name:G,reference:Oe},ii=b(ri);if(!ii.packageLocation)throw ui(ur.MISSING_DEPENDENCY,`A dependency seems valid but didn't get installed for some reason. This might be caused by a partial install, such as dev vs prod.
Required package: ${ri.name}@${ri.reference}${ri.name!==ae?` (via "${ae}")`:""}
Required by: ${ee.name}@${ee.reference} (via ${Ae})
`,{request:ae,issuer:Ae,dependencyLocator:Object.assign({},ri)});let an=ii.packageLocation;Ce?De=v.join(an,Ce):De=an}else if(v.isAbsolute(re))De=v.normalize(re);else{if(!se)throw ui(ur.API_ERROR,"The resolveToUnqualified function must be called with a valid issuer when the path isn't a builtin nor absolute",{request:ae,issuer:Ae});let G=v.resolve(se);se.match(l)?De=v.normalize(v.join(G,re)):De=v.normalize(v.join(v.dirname(G),re))}return v.normalize(De)}function pe(re,se,be=H){if(a.test(re))return se;let ae=L(se,be);return ae?v.normalize(ae):se}function Ne(re,{extensions:se=Object.keys(df.Module._extensions)}={}){let be=[],ae=K(re,be,{extensions:se});if(ae)return v.normalize(ae);{let Ae=YA(re),De=D(re);if(De){let{packageLocation:$}=b(De);if(!e.fakeFs.existsSync($)){let G=$.includes("/unplugged/")?"Required unplugged package missing from disk. This may happen when switching branches without running installs (unplugged packages must be fully materialized on disk to work).":"Required package missing from disk. If you keep your packages inside your repository then restarting the Node process may be enough. Otherwise, try to run an install first.";throw ui(ur.QUALIFIED_PATH_RESOLUTION_FAILED,`${G}
Missing package: ${De.name}@${De.reference}
Expected package location: ${YA($)}
`,{unqualifiedPath:Ae})}}throw ui(ur.QUALIFIED_PATH_RESOLUTION_FAILED,`Qualified path resolution failed - none of those files can be found on the disk.
Source path: ${Ae}
${be.map($=>`Not found: ${YA($)}
`).join("")}`,{unqualifiedPath:Ae})}}function Pe(re,se,{considerBuiltins:be,extensions:ae,conditions:Ae}={}){let De=he(re,se,{considerBuiltins:be});if(re==="pnpapi")return De;if(De===null)return null;let $=()=>se!==null?q(se):!1,G=(!be||!s(re))&&!$()?pe(re,De,Ae):De;try{return Ne(G,{extensions:ae})}catch(Ce){throw Ce.pnpCode==="QUALIFIED_PATH_RESOLUTION_FAILED"&&Object.assign(Ce.data,{request:YA(re),issuer:se&&YA(se)}),Ce}}function qe(re){let se=v.normalize(re),be=Pr.resolveVirtual(se);return be!==se?be:null}return{VERSIONS:A,topLevel:V,getLocator:(re,se)=>Array.isArray(se)?{name:se[0],reference:se[1]}:{name:re,reference:se},getDependencyTreeRoots:()=>[...t.dependencyTreeRoots],getAllLocators(){let re=[];for(let[se,be]of p)for(let ae of be.keys())se!==null&&ae!==null&&re.push({name:se,reference:ae});return re},getPackageInformation:re=>{let se=W(re);if(se===null)return null;let be=M.fromPortablePath(se.packageLocation);return _(P({},se),{packageLocation:be})},findPackageLocator:re=>D(M.toPortablePath(re)),resolveToUnqualified:B("resolveToUnqualified",(re,se,be)=>{let ae=se!==null?M.toPortablePath(se):null,Ae=he(M.toPortablePath(re),ae,be);return Ae===null?null:M.fromPortablePath(Ae)}),resolveUnqualified:B("resolveUnqualified",(re,se)=>M.fromPortablePath(Ne(M.toPortablePath(re),se))),resolveRequest:B("resolveRequest",(re,se,be)=>{let ae=se!==null?M.toPortablePath(se):null,Ae=Pe(M.toPortablePath(re),ae,be);return Ae===null?null:M.fromPortablePath(Ae)}),resolveVirtual:B("resolveVirtual",re=>{let se=qe(M.toPortablePath(re));return se!==null?M.fromPortablePath(se):null})}}var ESt=(0,rce.promisify)(tce.readFile);var ice=(t,e,r)=>{let i=XC(t),n=_L(i,{basePath:e}),s=M.join(e,wt.pnpCjs);return $L(n,{fakeFs:r,pnpapiResolution:s})};var tT=ie(sce());var Ws={};it(Ws,{checkAndReportManifestCompatibility:()=>oce,extractBuildScripts:()=>Z0,getExtractHint:()=>rT,hasBindingGyp:()=>iT});function oce(t,e,{configuration:r,report:i}){return S.isPackageCompatible(t,{os:[process.platform],cpu:[process.arch]})?!0:(i==null||i.reportWarningOnce(z.INCOMPATIBLE_ARCHITECTURE,`${S.prettyLocator(r,t)} The ${process.platform}-${process.arch} architecture is incompatible with this module, ${e} skipped.`),!1)}function Z0(t,e,r,{configuration:i,report:n}){let s=[];for(let a of["preinstall","install","postinstall"])e.manifest.scripts.has(a)&&s.push([Gn.SCRIPT,a]);return!e.manifest.scripts.has("install")&&e.misc.hasBindingGyp&&s.push([Gn.SHELLCODE,"node-gyp rebuild"]),s.length===0?[]:t.linkType!==gt.HARD?(n==null||n.reportWarningOnce(z.SOFT_LINK_BUILD,`${S.prettyLocator(i,t)} lists build scripts, but is referenced through a soft link. Soft links don't support build scripts, so they'll be ignored.`),[]):r&&r.built===!1?(n==null||n.reportInfoOnce(z.BUILD_DISABLED,`${S.prettyLocator(i,t)} lists build scripts, but its build has been explicitly disabled through configuration.`),[]):!i.get("enableScripts")&&!r.built?(n==null||n.reportWarningOnce(z.DISABLED_BUILD_SCRIPTS,`${S.prettyLocator(i,t)} lists build scripts, but all build scripts have been disabled.`),[]):oce(t,"build",{configuration:i,report:n})?s:[]}var g6e=new Set([".exe",".h",".hh",".hpp",".c",".cc",".cpp",".java",".jar",".node"]);function rT(t){return t.packageFs.getExtractHint({relevantExtensions:g6e})}function iT(t){let e=v.join(t.prefixPath,"binding.gyp");return t.packageFs.existsSync(e)}var nT={};it(nT,{getUnpluggedPath:()=>ZC});function ZC(t,{configuration:e}){return v.resolve(e.get("pnpUnpluggedFolder"),S.slugifyLocator(t))}var f6e=new Set([S.makeIdent(null,"nan").identHash,S.makeIdent(null,"node-gyp").identHash,S.makeIdent(null,"node-pre-gyp").identHash,S.makeIdent(null,"node-addon-api").identHash,S.makeIdent(null,"fsevents").identHash]),jc=class{constructor(){this.mode="strict";this.pnpCache=new Map}supportsPackage(e,r){return!(r.project.configuration.get("nodeLinker")!=="pnp"||r.project.configuration.get("pnpMode")!==this.mode)}async findPackageLocation(e,r){let i=qA(r.project).cjs;if(!T.existsSync(i))throw new me(`The project in ${ue.pretty(r.project.configuration,`${r.project.cwd}/package.json`,ue.Type.PATH)} doesn't seem to have been installed - running an install there might help`);let n=de.getFactoryWithDefault(this.pnpCache,i,()=>de.dynamicRequire(i,{cachingStrategy:de.CachingStrategy.FsTime})),s={name:S.stringifyIdent(e),reference:e.reference},o=n.getPackageInformation(s);if(!o)throw new me(`Couldn't find ${S.prettyLocator(r.project.configuration,e)} in the currently installed PnP map - running an install might help`);return M.toPortablePath(o.packageLocation)}async findPackageLocator(e,r){let i=qA(r.project).cjs;if(!T.existsSync(i))return null;let s=de.getFactoryWithDefault(this.pnpCache,i,()=>de.dynamicRequire(i,{cachingStrategy:de.CachingStrategy.FsTime})).findPackageLocator(M.fromPortablePath(e));return s?S.makeLocator(S.parseIdent(s.name),s.reference):null}makeInstaller(e){return new Cf(e)}},Cf=class{constructor(e){this.opts=e;this.mode="strict";this.packageRegistry=Line truncated
`,n+=`# cause your node_modules installation to become invalidated.
`,n+=`
`,n+=`__metadata:
`,n+=` version: ${Ice}
`,n+=` nmMode: ${i.value}
`;let s=Array.from(e.keys()).sort(),o=S.stringifyLocator(t.topLevelWorkspace.anchoredLocator);for(let c of s){let u=e.get(c);n+=`
`,n+=`${JSON.stringify(c)}:
`,n+=` locations:
`;for(let g of u.locations){let f=v.contains(t.cwd,g);if(f===null)throw new Error(`Assertion failed: Expected the path to be within the project (${g})`);n+=` - ${JSON.stringify(f)}
`}if(u.aliases.length>0){n+=` aliases:
`;for(let g of u.aliases)n+=` - ${JSON.stringify(g)}
`}if(c===o&&r.size>0){n+=` bin:
`;for(let[g,f]of r){let h=v.contains(t.cwd,g);if(h===null)throw new Error(`Assertion failed: Expected the path to be within the project (${g})`);n+=` ${JSON.stringify(h)}:
`;for(let[p,d]of f){let m=v.relative(v.join(g,gi),d);n+=` ${JSON.stringify(p)}: ${JSON.stringify(m)}
`}}}}let a=t.cwd,l=v.join(a,gi,Ece);await T.changeFilePromise(l,n,{automaticNewlines:!0})}async function hT(t,{unrollAliases:e=!1}={}){let r=t.cwd,i=v.join(r,gi,Ece);if(!T.existsSync(i))return null;let n=Ei(await T.readFilePromise(i,"utf8"));if(n.__metadata.version>Ice)return null;let s=n.__metadata.nmMode||Bi.CLASSIC,o=new Map,a=new Map;delete n.__metadata;for(let[l,c]of Object.entries(n)){let u=c.locations.map(f=>v.join(r,f)),g=c.bin;if(g)for(let[f,h]of Object.entries(g)){let p=v.join(r,M.toPortablePath(f)),d=de.getMapWithDefault(a,p);for(let[m,E]of Object.entries(h))d.set(kr(m),M.toPortablePath([p,gi,E].join(v.delimiter)))}if(o.set(l,{target:Se.dot,linkType:gt.HARD,locations:u,aliases:c.aliases||[]}),e&&c.aliases)for(let f of c.aliases){let{scope:h,name:p}=S.parseLocator(l),d=S.makeLocator(S.makeIdent(h,p),f),m=S.stringifyLocator(d);o.set(m,{target:Se.dot,linkType:gt.HARD,locations:u,aliases:[]})}}return{locatorMap:o,binSymlinks:a,locationTree:Bce(o,{skipPrefix:t.cwd}),nmMode:s}}var If=async(t,e)=>{if(t.split(v.sep).indexOf(gi)<0)throw new Error(`Assertion failed: trying to remove dir that doesn't contain node_modules: ${t}`);try{if(!e.innerLoop&&(await T.lstatPromise(t)).isSymbolicLink()){await T.unlinkPromise(t);return}let r=await T.readdirPromise(t,{withFileTypes:!0});for(let i of r){let n=v.join(t,kr(i.name));i.isDirectory()?(i.name!==gi||e&&e.innerLoop)&&await If(n,{innerLoop:!0,contentsOnly:!1}):await T.unlinkPromise(n)}e.contentsOnly||await T.rmdirPromise(t)}catch(r){if(r.code!=="ENOENT"&&r.code!=="ENOTEMPTY")throw r}},Qce=4,$0=(t,{skipPrefix:e})=>{let r=v.contains(e,t);if(r===null)throw new Error(`Assertion failed: Writing attempt prevented to ${t} which is outside project root: ${e}`);let i=r.split(v.sep).filter(l=>l!==""),n=i.indexOf(gi),s=i.slice(0,n).join(v.sep),o=v.join(e,s),a=i.slice(n);return{locationRoot:o,segments:a}},Bce=(t,{skipPrefix:e})=>{let r=new Map;if(t===null)return r;let i=()=>({children:new Map,linkType:gt.HARD});for(let[n,s]of t.entries()){if(s.linkType===gt.SOFT&&v.contains(e,s.target)!==null){let a=de.getFactoryWithDefault(r,s.target,i);a.locator=n,a.linkType=s.linkType}for(let o of s.locations){let{locationRoot:a,segments:l}=$0(o,{skipPrefix:e}),c=de.getFactoryWithDefault(r,a,i);for(let u=0;u<l.length;++u){let g=l[u];if(g!=="."){let f=de.getFactoryWithDefault(c.children,g,i);c.children.set(g,f),c=f}u===l.length-1&&(c.locator=n,c.linkType=s.linkType)}}}return r},pT=async(t,e)=>{let r;try{process.platform==="win32"&&(r=await T.lstatPromise(t))}catch(i){}process.platform=="win32"&&(!r||r.isDirectory())?await T.symlinkPromise(t,e,"junction"):await T.symlinkPromise(v.relative(v.dirname(e),t),e)};async function bce(t,e,r){let i=v.join(t,kr(`${uT.default.randomBytes(16).toString("hex")}.tmp`));try{await T.writeFilePromise(i,r);try{await T.linkPromise(i,e)}catch(n){}}finally{await T.unlinkPromise(i)}}async function O6e({srcPath:t,dstPath:e,srcMode:r,globalHardlinksStore:i,baseFs:n,nmMode:s,digest:o}){if(s.value===Bi.HARDLINKS_GLOBAL&&i&&o){let l=v.join(i,o.substring(0,2),`${o.substring(2)}.dat`),c;try{if(await mn.checksumFile(l,{baseFs:T,algorithm:"sha1"})!==o){let g=v.join(i,kr(`${uT.default.randomBytes(16).toString("hex")}.tmp`));await T.renamePromise(l,g);let f=await n.readFilePromise(t);await T.writeFilePromise(g,f);try{await T.linkPromise(g,l),await T.unlinkPromise(g)}catch(h){}}await T.linkPromise(l,e),c=!0}catch(u){c=!1}if(!c){let u=await n.readFilePromise(t);await bce(i,l,u);try{await T.linkPromise(l,e)}catch(g){g&&g.code&&g.code=="EXDEV"&&(s.value=Bi.HARDLINKS_LOCAL,await n.copyFilePromise(t,e))}}}else await n.copyFilePromise(t,e);let a=r&511;a!==420&&await T.chmodPromise(e,a)}var JA;(function(i){i.FILE="file",i.DIRECTORY="directory",i.SYMLINK="symlink"})(JA||(JA={}));var K6e=async(t,e,{baseFs:r,globalHardlinksStore:i,nmMode:n,packageChecksum:s})=>{await T.mkdirPromise(t,{recursive:!0});let o=async(l=Se.dot)=>{let c=v.join(e,l),u=await r.readdirPromise(c,{withFileTypes:!0}),g=new Map;for(let f of u){let h=v.join(l,f.name),p,d=v.join(c,f.name);if(f.isFile()){if(p={kind:JA.FILE,mode:(await r.lstatPromise(d)).mode},n.value===Bi.HARDLINKS_GLOBAL){let m=await mn.checksumFile(d,{baseFs:r,algorithm:"sha1"});p.digest=m}}else if(f.isDirectory())p={kind:JA.DIRECTORY};else if(f.isSymbolicLink())p={kind:JA.SYMLINK,symlinkTo:await r.readlinkPromise(d)};else throw new Error(`Unsupported file type (file: ${d}, mode: 0o${await r.statSync(d).mode.toString(8).padStart(6,"0")})`);if(g.set(h,p),f.isDirectory()&&h!==gi){let m=await o(h);for(let[E,B]of m)g.set(E,B)}}return g},a;if(n.value===Bi.HARDLINKS_GLOBAL&&i&&s){let l=v.join(i,s.substring(0,2),`${s.substring(2)}.json`);try{a=new Map(Object.entries(JSON.parse(await T.readFilePromise(l,"utf8"))))}catch(c){a=await o(),await bce(i,l,Buffer.from(JSON.stringify(Object.fromEntries(a))))}}else a=await o();for(let[l,c]of a){let u=v.join(e,l),g=v.join(t,l);c.kind===JA.DIRECTORY?await T.mkdirPromise(g,{recursive:!0}):c.kind===JA.FILE?await O6e({src Line truncated
This command checks for known security reports on the packages you use. The reports are by default extracted from the npm registry, and may or may not be relevant to your actual program (not all vulnerabilities affect all code paths).
For consistency with our other commands the default is to only check the direct dependencies for the active workspace. To extend this search to all workspaces, use \`-A,--all\`. To extend this search to both direct and transitive dependencies, use \`-R,--recursive\`.
Applying the \`--severity\` flag will limit the audit table to vulnerabilities of the corresponding severity and above. Valid values are ${vQ.map(e=>`\`${e}\``).join(", ")}.
If the \`--json\` flag is set, Yarn will print the output exactly as received from the registry. Regardless of this flag, the process will exit with a non-zero exit code if a report is found for the selected packages.
To understand the dependency tree requiring vulnerable packages, check the raw report with the \`--json\` flag or use \`yarn why <package>\` to get more information as to who depends on them.
`,examples:[["Checks for known security issues with the installed packages. The output is a list of known issues.","yarn npm audit"],["Audit dependencies in all workspaces","yarn npm audit --all"],["Limit auditing to `dependencies` (excludes `devDependencies`)","yarn npm audit --environment production"],["Show audit report as valid JSON","yarn npm audit --json"],["Audit all direct and transitive dependencies","yarn npm audit --recursive"],["Output moderate (or more severe) vulnerabilities","yarn npm audit --severity moderate"]]});var Rge=dm;var BM=ie(Or()),QM=ie(require("util")),Cm=class extends Be{constructor(){super(...arguments);this.fields=Y.String("-f,--fields",{description:"A comma-separated list of manifest fields that should be displayed"});this.json=Y.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.packages=Y.Rest()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r}=await Ke.find(e,this.context.cwd),i=typeof this.fields!="undefined"?new Set(["name",...this.fields.split(/\s*,\s*/)]):null,n=[],s=!1,o=await Fe.start({configuration:e,includeFooter:!1,json:this.json,stdout:this.context.stdout},async a=>{for(let l of this.packages){let c;if(l==="."){let b=r.topLevelWorkspace;if(!b.manifest.name)throw new me(`Missing 'name' field in ${M.fromPortablePath(v.join(b.cwd,wt.manifest))}`);c=S.makeDescriptor(b.manifest.name,"unknown")}else c=S.parseDescriptor(l);let u=Lt.getIdentUrl(c),g=bM(await Lt.get(u,{configuration:e,ident:c,jsonResponse:!0,customErrorMessage:Lt.customPackageError})),f=Object.keys(g.versions).sort(BM.default.compareLoose),p=g["dist-tags"].latest||f[f.length-1],d=qt.validRange(c.range);if(d){let b=BM.default.maxSatisfying(f,d);b!==null?p=b:(a.reportWarning(z.UNNAMED,`Unmet range ${S.prettyRange(e,c.range)}; falling back to the latest version`),s=!0)}else c.range!=="unknown"&&(a.reportWarning(z.UNNAMED,`Invalid range ${S.prettyRange(e,c.range)}; falling back to the latest version`),s=!0);let m=g.versions[p],E=_(P(P({},g),m),{version:p,versions:f}),B;if(i!==null){B={};for(let b of i){let R=E[b];if(typeof R!="undefined")B[b]=R;else{a.reportWarning(z.EXCEPTION,`The '${b}' field doesn't exist inside ${S.prettyIdent(e,c)}'s informations`),s=!0;continue}}}else this.json||(delete E.dist,delete E.readme,delete E.users),B=E;a.reportJson(B),this.json||n.push(B)}});QM.inspect.styles.name="cyan";for(let a of n)(a!==n[0]||s)&&this.context.stdout.write(`
`),this.context.stdout.write(`${(0,QM.inspect)(a,{depth:Infinity,colors:!0,compact:!1})}
`);return o.exitCode()}};Cm.paths=[["npm","info"]],Cm.usage=ye.Usage({category:"Npm-related commands",description:"show information about a package",details:"\n This command will fetch information about a package from the npm registry, and prints it in a tree format.\n\n The package does not have to be installed locally, but needs to have been published (in particular, local changes will be ignored even for workspaces).\n\n Append `@<range>` to the package argument to provide information specific to the latest version that satisfies the range. If the range is invalid or if there is no version satisfying the range, the command will print a warning and fall back to the latest version.\n\n If the `-f,--fields` option is set, it's a comma-separated list of fields which will be used to only display part of the package informations.\n\n By default, this command won't return the `dist`, `readme`, and `users` fields, since they are often very long. To explicitly request those fields, explicitly list them with the `--fields` flag or request the output in JSON mode.\n ",examples:[["Show all available information about react (except the `dist`, `readme`, and `users` fields)","yarn npm info react"],["Show all available information about react as valid JSON (including the `dist`, `readme`, and `users` fields)","yarn npm info react --json"],["Show all available information about react 16.12.0","yarn npm info react@16.12.0"],["Show the description of react","yarn npm info react --fields description"],["Show all available versions of react","yarn npm info react --fields versions"],["Show the readme of react","yarn npm info react --fields readme"],["Show a few fields of react","yarn npm info react --fields homepage,repository"]]});var Fge=Cm;function bM(t){if(Array.isArray(t)){let e=[];for(let r of t)r=bM(r),r&&e.push(r);return e}else if(typeof t=="object"&&t!==null){let e={};for(let r of Object.keys(t)){if(r.startsWith("_"))continue;let i=bM(t[r]);i&&(e[r]=i)}return e}else return t||null}var Nge=ie(aC()),mm=class extends Be{constructor(){super(...arguments);this.scope=Y.String("-s,--scope",{description:"Login to the registry configured for a given scope"});this.publish=Y.Boolean("--publish",!1,{description:"Login to the publish registry"})}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),r=await SQ({configuration:e,cwd:this.context.cwd,publish:this.publish,scope:this.scope});return(await Fe.start({configuration:e,stdout:this.context.stdout},async n=>{let s=await i_e({registry:r,report:n,stdin:this.context.stdin,stdout:this.context.stdout}),o=`/-/user/org.couchdb.user:${encodeURIComponent(s.name)}`,a=await Lt.put(o,s,{attemptedAs:s.name,configuration:e,registry:r,jsonResponse:!0,authType:Lt.AuthType.NO_AUTH});return await r_e(r,a.token,{configuration:e,scope:this.scope}),n.reportInfo(z.UNNAMED,"Successfully logged in")})).exitCode()}};mm.paths=[["npm","login"]],mm.usage=ye.Usage({category:"Npm-related commands",description:"store new login info to access the npm registry",details:"\n This command will ask you for your username, password, and 2FA One-Time-Password (when it applies). It will then modify your local configuration (in your home folder, never in the project itself) to reference the new tokens thus generated.\n\n Adding the `-s,--scope` flag will cause the authentication to be done against whatever registry is configured for the associated scope (see also `npmScopes`).\n\n Adding the `--publish` flag will cause the authentication to be done against the registry used when publishing the package (see also `publishConfig.registry` and `npmPublishRegistry`).\n ",examples:[["Login to the default registry","yarn npm login"],["Login to the registry linked to the @my-scope registry","yarn npm login --scope my-scope"],["Login to the publish registry for the current package","yarn npm login --publish"]]});var Lge=mm;async function SQ({scope:t,publish:e,configuration:r,cwd:i}){return t&&e?gr.getScopeRegistry(t,{configuration:r,type:gr.RegistryType.PUBLISH_REGISTRY}):t?gr.getScopeRegistry(t,{configuration:r}):e?gr.getPublishRegistry((await rf(r,i)).manifest,{configuration:r}):gr.getDefaultRegistry({configuration:r})}async function r_e(t,e,{configuration:r,scope:i}){let n=o=>a=>{let l=de.isIndexableObject(a)?a:{},c=l[o],u=de.isIndexableObject(c)?c:{};return _(P({},l),{[o]:_(P({},u),{npmAuthToken:e})})},s=i?{npmScopes:n(i)}:{npmRegistries:n(t)};return await fe.updateHomeConfiguration(s)}async function i_e({registry:t,report:e,stdin:r,stdout:i}){if(process.env.TEST_ENV)return{name:process.env.TEST_NPM_USER||"",password:process.env.TEST_NPM_PASSWORD||""};e.reportInfo(z.UNNAMED,`Logging in to ${t}`);let n=!1;t.match(/^https:\/\/npm\.pkg\.github\.com(\/|$)/)&&(e.reportInfo(z.UNNAMED,"You seem to be using the GitHub Package Registry. Tokens must be generated with the 'repo', 'write:packages', and 'read:packages' permissions."),n=!0),e.reportSeparator();let{userLine truncated
This command will list all tags of a package from the npm registry.
If the package is not specified, Yarn will default to the current workspace.
`,examples:[["List all tags of package `my-pkg`","yarn npm tag list my-pkg"]]});var Kge=ym;async function wm(t,e){let r=`/-/package${Lt.getIdentUrl(t)}/dist-tags`;return Lt.get(r,{configuration:e,ident:t,jsonResponse:!0,customErrorMessage:Lt.customPackageError})}var Bm=class extends Be{constructor(){super(...arguments);this.package=Y.String();this.tag=Y.String()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ke.find(e,this.context.cwd);if(!i)throw new rt(r.cwd,this.context.cwd);let n=S.parseDescriptor(this.package,!0),s=n.range;if(!Uge.default.valid(s))throw new me(`The range ${ue.pretty(e,n.range,ue.Type.RANGE)} must be a valid semver version`);let o=gr.getPublishRegistry(i.manifest,{configuration:e}),a=ue.pretty(e,n,ue.Type.IDENT),l=ue.pretty(e,s,ue.Type.RANGE),c=ue.pretty(e,this.tag,ue.Type.CODE);return(await Fe.start({configuration:e,stdout:this.context.stdout},async g=>{let f=await wm(n,e);Object.prototype.hasOwnProperty.call(f,this.tag)&&f[this.tag]===s&&g.reportWarning(z.UNNAMED,`Tag ${c} is already set to version ${l}`);let h=`/-/package${Lt.getIdentUrl(n)}/dist-tags/${encodeURIComponent(this.tag)}`;await Lt.put(h,s,{configuration:e,registry:o,ident:n,jsonRequest:!0,jsonResponse:!0}),g.reportInfo(z.UNNAMED,`Tag ${c} added to version ${l} of package ${a}`)})).exitCode()}};Bm.paths=[["npm","tag","add"]],Bm.usage=ye.Usage({category:"Npm-related commands",description:"add a tag for a specific version of a package",details:`
This command will add a tag to the npm registry for a specific version of a package. If the tag already exists, it will be overwritten.
`,examples:[["Add a `beta` tag for version `2.3.4-beta.4` of package `my-pkg`","yarn npm tag add my-pkg@2.3.4-beta.4 beta"]]});var Hge=Bm;var Qm=class extends Be{constructor(){super(...arguments);this.package=Y.String();this.tag=Y.String()}async execute(){if(this.tag==="latest")throw new me("The 'latest' tag cannot be removed.");let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ke.find(e,this.context.cwd);if(!i)throw new rt(r.cwd,this.context.cwd);let n=S.parseIdent(this.package),s=gr.getPublishRegistry(i.manifest,{configuration:e}),o=ue.pretty(e,this.tag,ue.Type.CODE),a=ue.pretty(e,n,ue.Type.IDENT),l=await wm(n,e);if(!Object.prototype.hasOwnProperty.call(l,this.tag))throw new me(`${o} is not a tag of package ${a}`);return(await Fe.start({configuration:e,stdout:this.context.stdout},async u=>{let g=`/-/package${Lt.getIdentUrl(n)}/dist-tags/${encodeURIComponent(this.tag)}`;await Lt.del(g,{configuration:e,registry:s,ident:n,jsonResponse:!0}),u.reportInfo(z.UNNAMED,`Tag ${o} removed from package ${a}`)})).exitCode()}};Qm.paths=[["npm","tag","remove"]],Qm.usage=ye.Usage({category:"Npm-related commands",description:"remove a tag from a package",details:`
This command will remove a tag from a package from the npm registry.
`,examples:[["Remove the `beta` tag from package `my-pkg`","yarn npm tag remove my-pkg beta"]]});var Gge=Qm;var bm=class extends Be{constructor(){super(...arguments);this.scope=Y.String("-s,--scope",{description:"Print username for the registry configured for a given scope"});this.publish=Y.Boolean("--publish",!1,{description:"Print username for the publish registry"})}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),r;return this.scope&&this.publish?r=gr.getScopeRegistry(this.scope,{configuration:e,type:gr.RegistryType.PUBLISH_REGISTRY}):this.scope?r=gr.getScopeRegistry(this.scope,{configuration:e}):this.publish?r=gr.getPublishRegistry((await rf(e,this.context.cwd)).manifest,{configuration:e}):r=gr.getDefaultRegistry({configuration:e}),(await Fe.start({configuration:e,stdout:this.context.stdout},async n=>{var o,a;let s;try{s=await Lt.get("/-/whoami",{configuration:e,registry:r,authType:Lt.AuthType.ALWAYS_AUTH,jsonResponse:!0,ident:this.scope?S.makeIdent(this.scope,""):void 0})}catch(l){if(((o=l.response)==null?void 0:o.statusCode)===401||((a=l.response)==null?void 0:a.statusCode)===403){n.reportError(z.AUTHENTICATION_INVALID,"Authentication failed - your credentials may have expired");return}else throw l}n.reportInfo(z.UNNAMED,s.username)})).exitCode()}};bm.paths=[["npm","whoami"]],bm.usage=ye.Usage({category:"Npm-related commands",description:"display the name of the authenticated user",details:"\n Print the username associated with the current authentication settings to the standard output.\n\n When using `-s,--scope`, the username printed will be the one that matches the authentication settings of the registry associated with the given scope (those settings can be overriden using the `npmRegistries` map, and the registry associated with the scope is configured via the `npmScopes` map).\n\n When using `--publish`, the registry we'll select will by default be the one used when publishing packages (`publishConfig.registry` or `npmPublishRegistry` if available, otherwise we'll fallback to the regular `npmRegistryServer`).\n ",examples:[["Print username for the default registry","yarn npm whoami"],["Print username for the registry on a given scope","yarn npm whoami --scope company"]]});var jge=bm;var o_e={configuration:{npmPublishAccess:{description:"Default access of the published packages",type:ge.STRING,default:null}},commands:[Rge,Fge,Lge,Mge,Oge,Hge,Kge,Gge,jge]},a_e=o_e;var NM={};it(NM,{default:()=>B_e,patchUtils:()=>SM});var SM={};it(SM,{applyPatchFile:()=>PQ,diffFolders:()=>DM,extractPackageToDisk:()=>PM,extractPatchFlags:()=>Xge,isParentRequired:()=>kM,loadPatchFiles:()=>km,makeDescriptor:()=>E_e,makeLocator:()=>xM,parseDescriptor:()=>Sm,parseLocator:()=>xm,parsePatchFile:()=>kQ});var vm=class extends Error{constructor(e,r){super(`Cannot apply hunk #${e+1}`);this.hunk=r}};var A_e=/^@@ -(\d+)(,(\d+))? \+(\d+)(,(\d+))? @@.*/;function Nf(t){return v.relative(Se.root,v.resolve(Se.root,M.toPortablePath(t)))}function l_e(t){let e=t.trim().match(A_e);if(!e)throw new Error(`Bad header line: '${t}'`);return{original:{start:Math.max(Number(e[1]),1),length:Number(e[3]||1)},patched:{start:Math.max(Number(e[4]),1),length:Number(e[6]||1)}}}var c_e=420,u_e=493,Lr;(function(i){i.Context="context",i.Insertion="insertion",i.Deletion="deletion"})(Lr||(Lr={}));var Yge=()=>({semverExclusivity:null,diffLineFromPath:null,diffLineToPath:null,oldMode:null,newMode:null,deletedFileMode:null,newFileMode:null,renameFrom:null,renameTo:null,beforeHash:null,afterHash:null,fromPath:null,toPath:null,hunks:null}),g_e=t=>({header:l_e(t),parts:[]}),f_e={["@"]:"header",["-"]:Lr.Deletion,["+"]:Lr.Insertion,[" "]:Lr.Context,["\\"]:"pragma",undefined:Lr.Context};function p_e(t){let e=[],r=Yge(),i="parsing header",n=null,s=null;function o(){n&&(s&&(n.parts.push(s),s=null),r.hunks.push(n),n=null)}function a(){o(),e.push(r),r=Yge()}for(let l=0;l<t.length;l++){let c=t[l];if(i==="parsing header")if(c.startsWith("@@"))i="parsing hunks",r.hunks=[],l-=1;else if(c.startsWith("diff --git ")){r&&r.diffLineFromPath&&a();let u=c.match(/^diff --git a\/(.*?) b\/(.*?)\s*$/);if(!u)throw new Error(`Bad diff line: ${c}`);r.diffLineFromPath=u[1],r.diffLineToPath=u[2]}else if(c.startsWith("old mode "))r.oldMode=c.slice("old mode ".length).trim();else if(c.startsWith("new mode "))r.newMode=c.slice("new mode ".length).trim();else if(c.startsWith("deleted file mode "))r.deletedFileMode=c.slice("deleted file mode ".length).trim();else if(c.startsWith("new file mode "))r.newFileMode=c.slice("new file mode ".length).trim();else if(c.startsWith("rename from "))r.renameFrom=c.slice("rename from ".length).trim();else if(c.startsWith("rename to "))r.renameTo=c.slice("rename to ".length).trim();else if(c.startsWith("index ")){let u=c.match(/(\w+)\.\.(\w+)/);if(!u)continue;r.beforeHash=u[1],r.afterHash=u[2]}else c.startsWith("semver exclusivity ")?r.semverExclusivity=c.slice("semver exclusivity ".length).trim():c.startsWith Line truncated
`)+(n.hunk.parts[0].noNewlineAtEndOfFile?"":`
`):"";await e.mkdirpPromise(v.dirname(n.path),{chmod:493,utimes:[mr.SAFE_TIME,mr.SAFE_TIME]}),await e.writeFilePromise(n.path,s,{mode:n.mode}),await e.utimesPromise(n.path,mr.SAFE_TIME,mr.SAFE_TIME)}break;case"patch":await Lf(e,n.path,async()=>{await C_e(n,{baseFs:e,dryRun:r})});break;case"mode change":{let o=(await e.statPromise(n.path)).mode;if(qge(n.newMode)!==qge(o))continue;await Lf(e,n.path,async()=>{await e.chmodPromise(n.path,n.newMode)})}break;default:de.assertNever(n);break}}function qge(t){return(t&64)>0}function Jge(t){return t.replace(/\s+$/,"")}function m_e(t,e){return Jge(t)===Jge(e)}async function C_e({hunks:t,path:e},{baseFs:r,dryRun:i=!1}){let n=await r.statSync(e).mode,o=(await r.readFileSync(e,"utf8")).split(/\n/),a=[],l=0,c=0;for(let g of t){let f=Math.max(c,g.header.patched.start+l),h=Math.max(0,f-c),p=Math.max(0,o.length-f-g.header.original.length),d=Math.max(h,p),m=0,E=0,B=null;for(;m<=d;){if(m<=h&&(E=f-m,B=Wge(g,o,E),B!==null)){m=-m;break}if(m<=p&&(E=f+m,B=Wge(g,o,E),B!==null))break;m+=1}if(B===null)throw new vm(t.indexOf(g),g);a.push(B),l+=m,c=E+g.header.original.length}if(i)return;let u=0;for(let g of a)for(let f of g)switch(f.type){case"splice":{let h=f.index+u;o.splice(h,f.numToDelete,...f.linesToInsert),u+=f.linesToInsert.length-f.numToDelete}break;case"pop":o.pop();break;case"push":o.push(f.line);break;default:de.assertNever(f);break}await r.writeFilePromise(e,o.join(`
`),{mode:n})}function Wge(t,e,r){let i=[];for(let n of t.parts)switch(n.type){case Lr.Context:case Lr.Deletion:{for(let s of n.lines){let o=e[r];if(o==null||!m_e(o,s))return null;r+=1}n.type===Lr.Deletion&&(i.push({type:"splice",index:r-n.lines.length,numToDelete:n.lines.length,linesToInsert:[]}),n.noNewlineAtEndOfFile&&i.push({type:"push",line:""}))}break;case Lr.Insertion:i.push({type:"splice",index:r,numToDelete:0,linesToInsert:n.lines}),n.noNewlineAtEndOfFile&&i.push({type:"pop"});break;default:de.assertNever(n.type);break}return i}var I_e=/^builtin<([^>]+)>$/;function zge(t,e){let{source:r,selector:i,params:n}=S.parseRange(t);if(r===null)throw new Error("Patch locators must explicitly define their source");let s=i?i.split(/&/).map(c=>M.toPortablePath(c)):[],o=n&&typeof n.locator=="string"?S.parseLocator(n.locator):null,a=n&&typeof n.version=="string"?n.version:null,l=e(r);return{parentLocator:o,sourceItem:l,patchPaths:s,sourceVersion:a}}function Sm(t){let i=zge(t.range,S.parseDescriptor),{sourceItem:e}=i,r=qr(i,["sourceItem"]);return _(P({},r),{sourceDescriptor:e})}function xm(t){let i=zge(t.reference,S.parseLocator),{sourceItem:e}=i,r=qr(i,["sourceItem"]);return _(P({},r),{sourceLocator:e})}function Vge({parentLocator:t,sourceItem:e,patchPaths:r,sourceVersion:i,patchHash:n},s){let o=t!==null?{locator:S.stringifyLocator(t)}:{},a=typeof i!="undefined"?{version:i}:{},l=typeof n!="undefined"?{hash:n}:{};return S.makeRange({protocol:"patch:",source:s(e),selector:r.join("&"),params:P(P(P({},a),l),o)})}function E_e(t,{parentLocator:e,sourceDescriptor:r,patchPaths:i}){return S.makeLocator(t,Vge({parentLocator:e,sourceItem:r,patchPaths:i},S.stringifyDescriptor))}function xM(t,{parentLocator:e,sourcePackage:r,patchPaths:i,patchHash:n}){return S.makeLocator(t,Vge({parentLocator:e,sourceItem:r,sourceVersion:r.version,patchPaths:i,patchHash:n},S.stringifyLocator))}function _ge({onAbsolute:t,onRelative:e,onBuiltin:r},i){i.startsWith("~")&&(i=i.slice(1));let s=i.match(I_e);return s!==null?r(s[1]):v.isAbsolute(i)?t(i):e(i)}function Xge(t){let e=t.startsWith("~");return e&&(t=t.slice(1)),{optional:e}}function kM(t){return _ge({onAbsolute:()=>!1,onRelative:()=>!0,onBuiltin:()=>!1},t)}async function km(t,e,r){let i=t!==null?await r.fetcher.fetch(t,r):null,n=i&&i.localPath?{packageFs:new Ft(Se.root),prefixPath:v.relative(Se.root,i.localPath)}:i;i&&i!==n&&i.releaseFs&&i.releaseFs();let s=await de.releaseAfterUseAsync(async()=>await Promise.all(e.map(async o=>{let a=Xge(o),l=await _ge({onAbsolute:async()=>await T.readFilePromise(o,"utf8"),onRelative:async()=>{if(n===null)throw new Error("Assertion failed: The parent locator should have been fetched");return await n.packageFs.readFilePromise(v.join(n.prefixPath,o),"utf8")},onBuiltin:async c=>await r.project.configuration.firstHook(u=>u.getBuiltinPatch,r.project,c)},o);return _(P({},a),{source:l})})));for(let o of s)typeof o.source=="string"&&(o.source=o.source.replace(/\r\n?/g,`
`));return s}async function PM(t,{cache:e,project:r}){let i=r.storedPackages.get(t.locatorHash);if(typeof i=="undefined")throw new Error("Assertion failed: Expected the package to be registered");let n=r.storedChecksums,s=new ei,o=r.configuration.makeFetcher(),a=await o.fetch(t,{cache:e,project:r,fetcher:o,checksums:n,report:s}),l=await T.mktempPromise(),c=v.join(l,"source"),u=v.join(l,"user"),g=v.join(l,".yarn-patch.json");return await Promise.all([T.copyPromise(c,a.prefixPath,{baseFs:a.packageFs}),T.copyPromise(u,a.prefixPath,{baseFs:a.packageFs}),T.writeJsonPromise(g,{locator:S.stringifyLocator(t),version:i.version})]),T.detachTemp(l),u}async function DM(t,e){let r=M.fromPortablePath(t).replace(/\\/g,"/"),i=M.fromPortablePath(e).replace(/\\/g,"/"),{stdout:n,stderr:s}=await hr.execvp("git",["-c","core.safecrlf=false","diff","--src-prefix=a/","--dst-prefix=b/","--ignore-cr-at-eol","--full-index","--no-index","--text",r,i],{cwd:M.toPortablePath(process.cwd()),env:_(P({},process.env),{GIT_CONFIG_NOSYSTEM:"1",HOME:"",XDG_CONFIG_HOME:"",USERPROFILE:""})});if(s.length>0)throw new Error(`Unable to diff directories. Make sure you have a recent version of 'git' available in PATH.
The following error was reported by 'git':
${s}`);let o=r.startsWith("/")?a=>a.slice(1):a=>a;return n.replace(new RegExp(`(a|b)(${de.escapeRegExp(`/${o(r)}/`)})`,"g"),"$1/").replace(new RegExp(`(a|b)${de.escapeRegExp(`/${o(i)}/`)}`,"g"),"$1/").replace(new RegExp(de.escapeRegExp(`${r}/`),"g"),"").replace(new RegExp(de.escapeRegExp(`${i}/`),"g"),"")}function Zge(t,{configuration:e,report:r}){for(let i of t.parts)for(let n of i.lines)switch(i.type){case Lr.Context:r.reportInfo(null,` ${ue.pretty(e,n,"grey")}`);break;case Lr.Deletion:r.reportError(z.FROZEN_LOCKFILE_EXCEPTION,`- ${ue.pretty(e,n,ue.Type.REMOVED)}`);break;case Lr.Insertion:r.reportError(z.FROZEN_LOCKFILE_EXCEPTION,`+ ${ue.pretty(e,n,ue.Type.ADDED)}`);break;default:de.assertNever(i.type)}}var RM=class{supports(e,r){return!!e.reference.startsWith("patch:")}getLocalPath(e,r){return null}async fetch(e,r){let i=r.checksums.get(e.locatorHash)||null,[n,s,o]=await r.cache.fetchPackageFromCache(e,i,P({onHit:()=>r.report.reportCacheHit(e),onMiss:()=>r.report.reportCacheMiss(e,`${S.prettyLocator(r.project.configuration,e)} can't be found in the cache and will be fetched from the disk`),loader:()=>this.patchPackage(e,r),skipIntegrityCheck:r.skipIntegrityCheck},r.cacheOptions));return{packageFs:n,releaseFs:s,prefixPath:S.getIdentVendorPath(e),localPath:this.getLocalPath(e,r),checksum:o}}async patchPackage(e,r){let{parentLocator:i,sourceLocator:n,sourceVersion:s,patchPaths:o}=xm(e),a=await km(i,o,r),l=await T.mktempPromise(),c=v.join(l,"current.zip"),u=await r.fetcher.fetch(n,r),g=S.getIdentVendorPath(e),f=await $i(),h=new Jr(c,{libzip:f,create:!0,level:r.project.configuration.get("compressionLevel")});await de.releaseAfterUseAsync(async()=>{await h.copyPromise(g,u.prefixPath,{baseFs:u.packageFs,stableSort:!0})},u.releaseFs),h.saveAndClose();for(let{source:p,optional:d}of a){if(p===null)continue;let m=new Jr(c,{libzip:f,level:r.project.configuration.get("compressionLevel")}),E=new Ft(v.resolve(Se.root,g),{baseFs:m});try{await PQ(kQ(p),{baseFs:E,version:s})}catch(B){if(!(B instanceof vm))throw B;let b=r.project.configuration.get("enableInlineHunks"),R=!b&&!d?" (set enableInlineHunks for details)":"",H=`${S.prettyLocator(r.project.configuration,e)}: ${B.message}${R}`,L=K=>{!b||Zge(B.hunk,{configuration:r.project.configuration,report:K})};if(m.discardAndClose(),d){r.report.reportWarningOnce(z.PATCH_HUNK_FAILED,H,{reportExtra:L});continue}else throw new nt(z.PATCH_HUNK_FAILED,H,L)}m.saveAndClose()}return new Jr(c,{libzip:f,level:r.project.configuration.get("compressionLevel")})}};var y_e=3,FM=class{supportsDescriptor(e,r){return!!e.range.startsWith("patch:")}supportsLocator(e,r){return!!e.reference.startsWith("patch:")}shouldPersistResolution(e,r){return!1}bindDescriptor(e,r,i){let{patchPaths:n}=Sm(e);return n.every(s=>!kM(s))?e:S.bindDescriptor(e,{locator:S.stringifyLocator(r)})}getResolutionDependencies(e,r){let{sourceDescriptor:i}=Sm(e);return[i]}async getCandidates(e,r,i){if(!i.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let{parentLocator:n,sourceDescriptor:s,patchPaths:o}=Sm(e),a=await km(n,o,i.fetchOptions),l=r.get(s.descriptorHash);if(typeof l=="undefined")throw new Error("Assertion failed: The dependency should have been resolved");let c=mn.makeHash(`${y_e}`,...a.map(u=>JSON.stringify(u))).slice(0,6);return[xM(e,{parentLocator:n,sourcePackage:l,patchPaths:o,patchHash:c})]}async getSatisfying(e,r,i){return null}async resolve(e,r){let{sourceLocator:i}=xm(e),n=await r.resolver.resolve(i,r);return P(P({},n),e)}};var Pm=class extends Be{constructor(){super(...arguments);this.save=Y.Boolean("-s,--save",!1,{description:"Add the patch to your resolution entries"});this.patchFolder=Y.String()}async execute(){let e=await fe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ke.find(e,this.context.cwd);if(!i)throw new rt(r.cwd,this.context.cwd);await r.restoreInstallState();let n=v.resolve(this.context.cwd,M.toPortablePath(this.patchFolder)),s=v.join(n,"../source"),o=v.join(n,"../.yarn-patch.json");if(!T.existsSync(s))throw new me("The argument folder didn't get created by 'yarn patch'");let a=await DM(s,n),l=await T.readJsonPromise(o),c=S.parseLocator(l.locator,!0);if(!r.storedPackages.has(c.locatorHash))throw new me("No package found in the project for the given locator");if(!this.save){this.context.stdout.write(a);return}let u=e.get("patchFolder"),g=v.join(u,S.slugifyLocator(c));await T.mkdirPromise(u,{recursive:!0}),await T.writeFilePromise(g,a);let f=v.relative(r.cwd,g);r.topLevelWorkspace.manifest.resolutions.push({pattern:{descriptor:{fullName:S.stringifyIdent(c),description:l.version}},reference:`patch:${S.stringifyLocator(c)}#${f}`}),await r.persist()}};Pm.paths=[["patch-commit"]],Pm.usage=ye.Usage({description:"generate a patch out of a directory",details:"\n This will print a patchfile on stdout based on the diff between the folder passed in and the original version of the package. Such file is suitable fLine truncated
${o.map(a=>`
- ${S.prettyLocator(e,a)}`).join("")}`);s=o[0]}if(!r.storedPackages.has(s.locatorHash))throw new me("No package found in the project for the given locator");await Fe.start({configuration:e,json:this.json,stdout:this.context.stdout},async o=>{let a=await PM(s,{cache:n,project:r});o.reportJson({locator:S.stringifyLocator(s),path:M.fromPortablePath(a)}),o.reportInfo(z.UNNAMED,`Package ${S.prettyLocator(e,s)} got extracted with success!`),o.reportInfo(z.UNNAMED,`You can now edit the following folder: ${ue.pretty(e,M.fromPortablePath(a),"magenta")}`),o.reportInfo(z.UNNAMED,`Once you are done run ${ue.pretty(e,`yarn patch-commit ${process.platform==="win32"?'"':""}${M.fromPortablePath(a)}${process.platform==="win32"?'"':""}`,"cyan")} and Yarn will store a patchfile based on your changes.`)})}};Dm.paths=[["patch"]],Dm.usage=ye.Usage({description:"prepare a package for patching",details:'\n This command will cause a package to be extracted in a temporary directory (under a folder named "patch-workdir"). This folder will be editable at will; running `yarn patch` inside it will then cause Yarn to generate a patchfile and register it into your top-level manifest (cf the `patch:` protocol).\n '});var efe=Dm;var w_e={configuration:{enableInlineHunks:{description:"If true, the installs will print unmatched patch hunks",type:ge.BOOLEAN,default:!1},patchFolder:{description:"Folder where the patch files must be written",type:ge.ABSOLUTE_PATH,default:"./.yarn/patches"}},commands:[$ge,efe],fetchers:[RM],resolvers:[FM]},B_e=w_e;var TM={};it(TM,{default:()=>S_e});var tfe=ie(Wp()),LM=class{supportsPackage(e,r){return r.project.configuration.get("nodeLinker")==="pnpm"}async findPackageLocation(e,r){return nfe(e,{project:r.project})}async findPackageLocator(e,r){let i=ife(),n=r.project.installersCustomData.get(i);if(!n)throw new me(`The project in ${ue.pretty(r.project.configuration,`${r.project.cwd}/package.json`,ue.Type.PATH)} doesn't seem to have been installed - running an install there might help`);let s=e.match(/(^.*\/node_modules\/(@[^/]*\/)?[^/]+)(\/.*$)/);if(s){let l=n.locatorByPath.get(s[1]);if(l)return l}let o=e,a=e;do{a=o,o=v.dirname(a);let l=n.locatorByPath.get(a);if(l)return l}while(o!==a);return null}makeInstaller(e){return new rfe(e)}},rfe=class{constructor(e){this.opts=e;this.asyncActions=new afe;this.packageLocations=new Map;this.customData={locatorByPath:new Map}}getCustomDataKey(){return ife()}attachCustomData(e){this.customData=e}async installPackage(e,r,i){switch(e.linkType){case gt.SOFT:return this.installPackageSoft(e,r,i);case gt.HARD:return this.installPackageHard(e,r,i)}throw new Error("Assertion failed: Unsupported package link type")}async installPackageSoft(e,r,i){let n=v.resolve(r.packageFs.getRealPath(),r.prefixPath);return this.packageLocations.set(e.locatorHash,n),{packageLocation:n,buildDirective:null}}async installPackageHard(e,r,i){var u;let n=nfe(e,{project:this.opts.project});this.customData.locatorByPath.set(n,S.stringifyLocator(e)),this.packageLocations.set(e.locatorHash,n),i.holdFetchResult(this.asyncActions.set(e.locatorHash,async()=>{await T.mkdirPromise(n,{recursive:!0}),await T.copyPromise(n,r.prefixPath,{baseFs:r.packageFs,overwrite:!1})}));let o=S.isVirtualLocator(e)?S.devirtualizeLocator(e):e,a={manifest:(u=await Ze.tryFind(r.prefixPath,{baseFs:r.packageFs}))!=null?u:new Ze,misc:{hasBindingGyp:Ws.hasBindingGyp(r)}},l=this.opts.project.getDependencyMeta(o,e.version),c=Ws.extractBuildScripts(e,a,l,{configuration:this.opts.project.configuration,report:this.opts.report});return{packageLocation:n,buildDirective:c}}async attachInternalDependencies(e,r){this.opts.project.configuration.get("nodeLinker")==="pnpm"&&(!ofe(e,{project:this.opts.project})||this.asyncActions.reduce(e.locatorHash,async i=>{await i;let n=this.packageLocations.get(e.locatorHash);if(typeof n=="undefined")throw new Error(`Assertion failed: Expected the package to have been registered (${S.stringifyLocator(e)})`);let s=v.join(n,wt.nodeModules);r.length>0&&await T.mkdirpPromise(s);let o=await Q_e(s),a=[];for(let[l,c]of r){let u=c;ofe(c,{project:this.opts.project})||(this.opts.report.reportWarning(z.UNNAMED,"The pnpm linker doesn't support providing different versions to workspaces' peer dependencies"),u=S.devirtualizeLocator(c));let g=this.packageLocations.get(u.locatorHash);if(typeof g=="undefined")throw new Error(`Assertion failed: Expected the package to have been registered (${S.stringifyLocator(c)})`);let f=S.stringifyIdent(l),h=v.join(s,f),p=v.relative(v.dirname(h),g),d=o.get(f);o.delete(f),a.push(Promise.resolve().then(async()=>{if(d){if(d.isSymbolicLink()&&await T.readlinkPromise(h)===p)return;await T.removePromise(h)}await T.mkdirpPromise(v.dirname(h)),process.platform=="win32"?await T.symlinkPromise(g,h,"junction"):await T.symlinkPromise(p,h)}))}for(let l of o.keys())a.push(T.removePromise(v.join(s,l)));await Promise.all(a)}))}async attachExternalDependents(e,r){throw new Error("External dependencies hLine truncated
/*!
* buildToken
* Builds OAuth token prefix (helper function)
*
* @name buildToken
* @function
* @param {GitUrl} obj The parsed Git url object.
* @return {String} token prefix
*/
/*!
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*/
/*!
* is-extglob <https://github.com/jonschlinkert/is-extglob>
*
* Copyright (c) 2014-2016, Jon Schlinkert.
* Licensed under the MIT License.
*/
/*!
* is-glob <https://github.com/jonschlinkert/is-glob>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/
/*!
* is-windows <https://github.com/jonschlinkert/is-windows>
*
* Copyright © 2015-2018, Jon Schlinkert.
* Released under the MIT License.
*/
/*!
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*/
+6
View File
@@ -0,0 +1,6 @@
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-3.1.0.cjs
enableScripts: false
enableTelemetry: false
-202
View File
@@ -1,202 +0,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 [yyyy] [name of copyright owner]
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.
+11 -9
View File
@@ -1,13 +1,17 @@
SHELL := bash
NAME := accounts
include ../.make/recursion.mk
.PHONY: test-acceptance-webui
test-acceptance-webui:
./ui/tests/run-acceptance-test.sh $(FEATURE_PATH)
############ tooling ############
ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI
include ../.bingo/Variables.mk
endif
############ go tooling ############
include ../.make/go.mk
@@ -18,6 +22,9 @@ include ../.make/release.mk
############ docs generate ############
include ../.make/docs.mk
############ l10n ############
include ../.make/l10n.mk
.PHONY: docs-generate
docs-generate: config-docs-generate \
grpc-docs-generate
@@ -27,7 +34,6 @@ include ../.make/generate.mk
.PHONY: ci-go-generate
ci-go-generate: protobuf # CI runs ci-node-generate automatically before this target
@go generate $(GENERATE)
.PHONY: ci-node-generate
ci-node-generate: yarn-build
@@ -40,17 +46,13 @@ yarn-build: node_modules
.PHONY: node_modules
node_modules:
yarn install --frozen-lockfile
yarn install --immutable
############ protobuf ############
include ../.make/protobuf.mk
PROTO_VERSION := v0
PROTO_SRC := pkg/proto/$(PROTO_VERSION)
include ../.make/protobuf.mk
.PHONY: protobuf
protobuf: $(PROTO_SRC)/${NAME}.pb.go \
$(PROTO_SRC)/${NAME}.pb.micro.go \
$(PROTO_SRC)/${NAME}.pb.web.go \
$(PROTO_SRC)/${NAME}.swagger.json \
../docs/extensions/${NAME}/grpc.md
protobuf: buf-generate
+9
View File
@@ -0,0 +1,9 @@
package accounts
import (
"embed"
)
//go:generate make generate
//go:embed assets/*
var Assets embed.FS
View File
Whitespace-only changes.
+29
View File
@@ -0,0 +1,29 @@
version: v1
plugins:
- name: go
path: ../.bingo/protoc-gen-go
out: pkg/
opt:
- paths=source_relative
- name: micro
path: ../.bingo/protoc-gen-micro
out: pkg/
opt:
- paths=source_relative
- name: microweb
path: ../.bingo/protoc-gen-microweb
out: pkg/
opt:
- paths=source_relative
- name: openapiv2
path: ../.bingo/protoc-gen-openapiv2
out: pkg/
- name: doc
path: ../.bingo/protoc-gen-doc
out: ../docs/extensions/accounts
opt:
- ./templates/GRPC.tmpl,grpc.md
+17
View File
@@ -0,0 +1,17 @@
# Generated by buf. DO NOT EDIT.
version: v1
deps:
- remote: buf.build
owner: googleapis
repository: googleapis
branch: main
commit: ca45b9d9c51849e898845743a28b0eb0
digest: b1--B2JdvzLV2KI5pYMG9AHJHFGznqXfZKjKwcqBuXhGgw=
create_time: 2021-10-14T15:09:30.598677Z
- remote: buf.build
owner: grpc-ecosystem
repository: grpc-gateway
branch: main
commit: 462ede5f3dee45569df6317bda220b1b
digest: b1-4FNKWjnS2yafyeOdqW8u-s7w1pJBHjz0Z6CbOL-Ipk0=
create_time: 2021-10-14T01:55:03.476639Z
+10
View File
@@ -0,0 +1,10 @@
version: v1
lint:
use:
- DEFAULT
deps:
- buf.build/googleapis/googleapis
- buf.build/grpc-ecosystem/grpc-gateway
breaking:
use:
- FILE
+2 -1
View File
@@ -4,10 +4,11 @@ import (
"os"
"github.com/owncloud/ocis/accounts/pkg/command"
"github.com/owncloud/ocis/accounts/pkg/config"
)
func main() {
if err := command.Execute(); err != nil {
if err := command.Execute(config.DefaultConfig()); err != nil {
os.Exit(1)
}
}
-49
View File
@@ -1,49 +0,0 @@
module github.com/owncloud/ocis/accounts
go 1.15
require (
contrib.go.opencensus.io/exporter/jaeger v0.2.1
contrib.go.opencensus.io/exporter/ocagent v0.6.0
contrib.go.opencensus.io/exporter/zipkin v0.1.1
github.com/asim/go-micro/plugins/client/grpc/v3 v3.0.0-20210217182006-0f0ace1a44a9
github.com/asim/go-micro/v3 v3.5.1-0.20210217182006-0f0ace1a44a9
github.com/cs3org/go-cs3apis v0.0.0-20210209082852-35ace33082f5
github.com/cs3org/reva v1.6.1-0.20210223065028-53f39499762e
github.com/go-chi/chi v4.1.2+incompatible
github.com/go-chi/render v1.0.1
github.com/gofrs/uuid v3.3.0+incompatible
github.com/golang/protobuf v1.4.3
github.com/grpc-ecosystem/grpc-gateway/v2 v2.2.0
github.com/mattn/go-runewidth v0.0.10 // indirect
github.com/mennanov/fieldmask-utils v0.3.3
github.com/micro/cli/v2 v2.1.2
github.com/oklog/run v1.1.0
github.com/olekukonko/tablewriter v0.0.4
github.com/openzipkin/zipkin-go v0.2.2
github.com/owncloud/ocis/ocis-pkg v0.0.0-20210216094451-dc73176dc62d
github.com/owncloud/ocis/settings v0.0.0-20210216094451-dc73176dc62d
github.com/prometheus/client_golang v1.7.1
github.com/rivo/uniseg v0.2.0 // indirect
github.com/rs/zerolog v1.20.0
github.com/spf13/viper v1.7.0
github.com/stretchr/testify v1.7.0
go.opencensus.io v0.22.6
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
golang.org/x/net v0.0.0-20210119194325-5f4716e94777
golang.org/x/text v0.3.5 // indirect
google.golang.org/genproto v0.0.0-20210207032614-bba0dbe2a9ea
google.golang.org/grpc v1.35.0
google.golang.org/protobuf v1.25.0
gopkg.in/yaml.v2 v2.4.0 // indirect
)
replace (
github.com/owncloud/ocis/ocis-pkg => ../ocis-pkg
github.com/owncloud/ocis/settings => ../settings
// taken from https://github.com/asim/go-micro/blob/master/plugins/registry/etcd/go.mod#L14-L16
go.etcd.io/etcd/api/v3 => go.etcd.io/etcd/api/v3 v3.0.0-20210204162551-dae29bb719dd
go.etcd.io/etcd/pkg/v3 => go.etcd.io/etcd/pkg/v3 v3.0.0-20210204162551-dae29bb719dd
// latest version compatible with etcd
google.golang.org/grpc => google.golang.org/grpc v1.29.1
)
-1980
View File
File diff suppressed because it is too large. Load diff
+10
View File
@@ -0,0 +1,10 @@
[main]
host = https://www.transifex.com
[owncloud.ocis-accounts]
file_filter = locale/<lang>/LC_MESSAGES/app.po
minimum_perc = 0
source_file = template.pot
source_lang = en
type = PO
+1
View File
@@ -0,0 +1 @@
{"ar":{"Account is activated":"تم تفعيل الحساب","Account is blocked":"تم حظر الحساب","Accounts":"حسابات","Activate":"فعل","Activated":"مُفعّلة","Admin":"المسؤول","Block":"حظر","Cancel":"إلغاء","Clear selection":"اختيار واضحة","Confirm":"تأكيد","Create":"إنشاء","Create new account":"إنشاء حساب جديد","Creating":"إنشاء","Delete":"حذف","Display name":"اسم العرض","Email":"البريد الإلكتروني","Email cannot be empty":"لا يمكن للبريد الإلكتروني أن يكون فارغا","Failed to change role.":"فشل في تغيير الدور","Guest":"ضيف","Invalid email address":"عنوان بريد إلكتروني غير صالح","Invalid username":"اسم مستخدم غير صالح","Loading":"تحميل","msg":"ام اس جي","Password":"كلمة المرور","Password cannot be empty":"لا يمكن أن تكون كلمة المرور فارغة","Role":"الدور","Select all users":"تحديد كل المستخدمين","Select role":"تحديد الدور","User":"المستخدم","Username":"اسم المستخدم","Username cannot be empty":"لا يمكن أن يكون إسم المستخدم فارغا","You don't have permissions to manage accounts.":"ليس لديك صلاحيات لإدارة الحسابات"},"de":{"%{ amount } selected user":["%{ amount } ausgewählter Benutzer","%{ amount } ausgewählte Benutzer"],"Account is activated":"Konto ist aktiviert","Account is blocked":"Konto ist geblockt","Accounts":"Konten","Activate":"Aktivieren","Activated":"Aktiviert","Admin":"Administration","Block":"Blockieren","Cancel":"Abbrechen","Clear selection":"Auswahl aufheben","Confirm":"Bestätigen","Create":"Erstellen","Create new account":"Neues Konto erstellen","Creating":"Erstelle","Delete":"Löschen","Delete the selected account?":["Ausgewählten Account löschen?","Ausgewählte Accounts löschen?"],"Display name":"Anzeigename","Email":"E-Mail","Email cannot be empty":"E-Mail darf nicht leer sein","Failed to change role.":"Ändern der Rolle fehlgeschlagen.","Guest":"Gast","Invalid email address":"Ungültige E-Mail-Adresse","Invalid username":"Ungültiger Benutzername","Loading":"Lade","msg":"msg","Password":"Passwort","Password cannot be empty":"Das Passwort darf nicht leer sein","Role":"Rolle","Select %{ account }":" %{ account } auswählen","Select all users":"Alle Benutzer auswählen","Select role":"Rolle auswählen","User":"Benutzer","Username":"Benutzername","Username cannot be empty":"Benutzername darf nicht leer sein","You don't have permissions to manage accounts.":"Keine Berechtigungen um Konten zu verwalten"},"el":{"%{ amount } selected user":["%{ amount } επιλεγμένος χρήστης","%{ amount } επιλεγμένοι χρήστες"],"Account is activated":"Ο λογαριασμός είναι ενεργοποιημένος.","Account is blocked":"Ο λογαριασμός είναι αποκλεισμένος","Accounts":"Λογαριασμοί","Activate":"Ενεργοποίηση","Activated":"Ενεργοποιημένο","Admin":"Διαχειριστής","Block":"Αποκλεισμός","Cancel":"Aκύρωση","Clear selection":"Εκκαθάριση επιλογής","Confirm":"Επιβεβαίωση","Create":"Δημιουργία","Create new account":"Δημιουργία νέου λογαριασμού","Creating":"Γίνεται δημιουργία","Delete":"Διαγραφή","Delete the selected account?":["Διαγραφή του επιλεγμένου λογαριασμού;","Διαγραφή των επιλεγμένων λογαριασμών;"],"Display name":"Εμφανιζόμενο όνομα","Email":"Ηλεκτρονική αλληλογραφία","Email cannot be empty":"Η διεύθυνση ηλεκτρονικού ταχυδρομείου δεν μπορεί να είναι κενή","Failed to change role.":"Αποτυχία αλλαγής ρόλου.","Guest":"Επισκέπτης","Invalid email address":"Μη έγκυρη διεύθυνση ηλεκτρονικού ταχυδρομείου","Invalid username":"Μη έγκυρο όνομα χρήστη","Loading":"Γίνεται φόρτωση","msg":"μνμ","Password":"Συνθηματικό","Password cannot be empty":"Το συνθηματικό δεν πρέπει να είναι κενό","Role":"Ρόλος","Select %{ account }":"Επιλογή %{ account }","Select all users":"Επιλογή όλων των χρηστών","Select role":"Επιλογή ρόλου","User":"Χρήστης","Username":"Όνομα χρήστη","Username cannot be empty":"Το όνομα χρήστη δεν μπορεί να είναι κενό","You don't have permissions to manage accounts.":"Δεν έχετε δικαιώματα να διαχειριστείτε λογαριασμούς."},"es":{"%{ amount } selected user":["%{ amount } usuario seleccionado","%{ aLine truncated
+5 -7
View File
@@ -1,11 +1,9 @@
const path = require('path')
const WEB_PATH = process.env.WEB_PATH
const TEST_INFRA_DIRECTORY = process.env.TEST_INFRA_DIRECTORY
const config = require(path.join(WEB_PATH, 'nightwatch.conf.js'))
const config = require(path.join(TEST_INFRA_DIRECTORY, 'nightwatch.conf.js'))
config.page_objects_path = [WEB_PATH + '/tests/acceptance/pageObjects', 'ui/tests/acceptance/pageobjects']
config.custom_commands_path = WEB_PATH + '/tests/acceptance/customCommands'
config.page_objects_path = [TEST_INFRA_DIRECTORY + '/pageObjects', 'ui/tests/acceptance/pageobjects']
config.custom_commands_path = TEST_INFRA_DIRECTORY + '/customCommands'
module.exports = {
...config
}
module.exports = config
+68 -66
View File
@@ -1,84 +1,86 @@
{
"private": true,
"name": "ocis-accounts",
"version": "0.0.0",
"private": true,
"description": "",
"homepage": "https://github.com/owncloud/ocis-accounts#readme",
"license": "Apache-2.0",
"author": "ownCloud GmbH <devops@owncloud.com>",
"repository": "https://github.com/owncloud/ocis-accounts.git",
"bugs": {
"url": "https://github.com/owncloud/ocis/accounts/issues",
"url": "https://github.com/owncloud/ocis/issues",
"email": "support@owncloud.com"
},
"repository": "https://github.com/owncloud/ocis-accounts.git",
"license": "Apache-2.0",
"author": "ownCloud GmbH <devops@owncloud.com>",
"scripts": {
"lint": "eslint ui/**/*.vue ui/**/*.js --color --global requirejs --global require",
"acceptance-tests": "cucumber-js --retry 1 --require-module @babel/register --require-module @babel/polyfill --require ${TEST_INFRA_DIRECTORY}/setup.js --require ui/tests/acceptance/stepDefinitions --require ${TEST_INFRA_DIRECTORY}/stepDefinitions --format @cucumber/pretty-formatter -t \"${TEST_TAGS:-not @skip and not @skipOnOC10}\"",
"build": "rollup -c",
"watch": "rollup -c -w",
"test": "echo 'Not implemented'",
"generate-api": "node node_modules/swagger-vue-generator/bin/generate-api.js --package-version v0 --source pkg/proto/v0/accounts.swagger.json --moduleName accounts --destination ui/client/accounts/index.js",
"acceptance-tests": "cucumber-js --retry 1 --require-module @babel/register --require-module @babel/polyfill --require ${TEST_INFRA_DIRECTORY}/acceptance/setup.js --require ui/tests/acceptance/stepDefinitions --require ${TEST_INFRA_DIRECTORY}/acceptance/stepDefinitions --format node_modules/cucumber-pretty -t \"${TEST_TAGS:-not @skip and not @skipOnOC10}\""
},
"devDependencies": {
"@babel/core": "^7.7.7",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-export-default-from": "^7.7.4",
"@babel/plugin-proposal-object-rest-spread": "^7.7.7",
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
"@babel/plugin-transform-runtime": "^7.8.0",
"@babel/polyfill": "^7.10.1",
"@babel/preset-env": "^7.7.7",
"@babel/register": "7.12.13",
"@erquhart/rollup-plugin-node-builtins": "^2.1.5",
"@rollup/plugin-commonjs": "^11.0.1",
"@rollup/plugin-json": "^4.0.1",
"@rollup/plugin-replace": "^2.3.0",
"archiver": "^5.2.0",
"axios": "^0.21.1",
"core-js": "3",
"cross-env": "^7.0.3",
"cucumber": "^6.0.5",
"cucumber-pretty": ">=6.0.0",
"debounce": "^1.2.0",
"easygettext": "^2.7.0",
"eslint": "6.8.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^5.0.0",
"eslint-plugin-vue": "^7.6.0",
"fs-extra": "^9.0.1",
"join-path": "^1.1.1",
"ldapjs": "^2.2.3",
"nightwatch": "^1.3.6",
"nightwatch-api": "^3.0.1",
"nightwatch-vrt": "^0.2.10",
"node-fetch": "^2.6.1",
"qs": "^6.9.1",
"rimraf": "^3.0.0",
"rollup": "^2.39.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-filesize": "^9.1.0",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^5.1.3",
"rollup-plugin-vue": "^5.1.4",
"swagger-vue-generator": "^1.0.6",
"url-search-params-polyfill": "^8.1.0",
"vue-template-compiler": "^2.6.11",
"vuex": "^3.5.1",
"xml-js": "^1.6.11"
"lint": "eslint ui/**/*.vue ui/**/*.js --color --global requirejs --global require",
"test": "echo 'Not implemented'",
"watch": "rollup -c -w"
},
"browserslist": [
"> 1%",
"not dead"
],
"peerDependencies": {
"owncloud-design-system": "^1.7.0"
},
"dependencies": {
"validator": "^13.1.1"
}
"axios": "^0.21.4",
"core-js": "^3.17.3",
"debounce": "^1.2.1",
"validator": "^13.1.1",
"vuex": "^3.5.1"
},
"devDependencies": {
"@babel/core": "^7.15.5",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-export-default-from": "^7.7.4",
"@babel/plugin-proposal-object-rest-spread": "^7.15.6",
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/polyfill": "^7.10.1",
"@babel/preset-env": "^7.13.12",
"@babel/register": "^7.14.5",
"@cucumber/cucumber": "^7.3.1",
"@cucumber/pretty-formatter": "^1.0.0-alpha.1",
"@erquhart/rollup-plugin-node-builtins": "^2.1.5",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-json": "^4.0.1",
"@rollup/plugin-replace": "^2.3.0",
"archiver": "^5.3.0",
"chromedriver": "^93.0.1",
"cross-env": "^7.0.3",
"easygettext": "^2.17.0",
"eslint": "7.24.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^5.0.0",
"eslint-plugin-vue": "^7.8.0",
"fs-extra": "^9.0.1",
"join-path": "^1.1.1",
"ldapjs": "^2.2.3",
"nightwatch": "1.7.11",
"nightwatch-api": "3.0.2",
"nightwatch-vrt": "^0.2.10",
"node-fetch": "^2.6.1",
"qs": "^6.10.1",
"rimraf": "^3.0.0",
"rollup": "^2.55.1",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-filesize": "^9.1.0",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-vue": "^5.1.4",
"swagger-vue-generator": "^1.0.6",
"url-search-params-polyfill": "^8.1.0",
"vue-template-compiler": "^2.6.11",
"xml-js": "^1.6.11"
},
"peerDependencies": {
"owncloud-design-system": "^11.0.0"
},
"packageManager": "yarn@3.1.0"
}
-66
View File
@@ -1,66 +0,0 @@
package assets
import (
"net/http"
"os"
"path"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/ocis-pkg/log"
// Fake the import to make the dep tree happy.
_ "golang.org/x/net/context"
// Fake the import to make the dep tree happy.
_ "golang.org/x/net/webdav"
)
//go:generate make -C ../.. embed.yml
// assets gets initialized by New and provides the handler.
type assets struct {
logger log.Logger
config *config.Config
}
// Open just implements the HTTP filesystem interface.
func (a assets) Open(original string) (http.File, error) {
if a.config.Asset.Path != "" {
if stat, err := os.Stat(a.config.Asset.Path); err == nil && stat.IsDir() {
custom := path.Join(
a.config.Asset.Path,
original,
)
if _, err := os.Stat(custom); !os.IsNotExist(err) {
f, err := os.Open(custom)
if err != nil {
return nil, err
}
return f, nil
}
} else {
a.logger.Warn().
Str("path", a.config.Asset.Path).
Msg("Assets directory doesn't exist")
}
}
return FS.OpenFile(
CTX,
original,
os.O_RDONLY,
0644,
)
}
// New returns a new http filesystem to serve assets.
func New(opts ...Option) http.FileSystem {
options := newOptions(opts...)
return assets{
config: options.Config,
}
}
-173
View File
@@ -1,173 +0,0 @@
// Code generated by fileb0x at "2021-03-04 20:39:03.472300386 +0100 CET m=+0.014524045" from config file "embed.yml" DO NOT EDIT.
// modification hash(2da0b5efdd6831d3c6c6fe0c3348f8e9.8058aec596c5fb73022d09bb97af796e)
package assets
import (
"bytes"
"compress/gzip"
"context"
"io"
"net/http"
"os"
"path"
"golang.org/x/net/webdav"
)
var (
// CTX is a context for webdav vfs
CTX = context.Background()
// FS is a virtual memory file system
FS = webdav.NewMemFS()
// Handler is used to server files through a http handler
Handler *webdav.Handler
// HTTP is the http file system
HTTP http.FileSystem = new(HTTPFS)
)
// HTTPFS implements http.FileSystem
type HTTPFS struct {
// Prefix allows to limit the path of all requests. F.e. a prefix "css" would allow only calls to /css/*
Prefix string
}
// FileAccountsJs is "accounts.js"
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xfd\xe9\x92\x1b\xb7\xf6\x20\x88\x7f\xfe\xf7\x53\x90\x79\xed\xfc\x01\xe6\x29\x16\x59\x5a\x6c\x27\x05\xf1\x6a\x97\x6c\x6d\xd6\x62\x5b\xa6\x78\x2b\xb2\x92\x20\x2b\x25\x12\xa0\x91\x60\x2d\x26\xb3\x23\xfe\xfd\x36\xf3\x71\x3e\xcc\x0b\xcc\x13\x74\xbf\xd1\x04\x0e\x80\xdc\x98\x94\x7c\xbb\x7f\x3d\x11\x13\x52\x14\x33\x91\x58\x0f\x80\xb3\xe3\x60\xc6\xe7\xa9\xe0\x84\xcc\x37\x22\xd1\xa9\x14\x84\x6e\x83\x4d\xc6\x3b\x99\x56\x69\xa2\x83\xd1\x45\xac\x3a\x9a\x05\x1b\x61\x33\xce\x82\x2e\xd3\xd7\x6b\x2e\xe7\x9d\xc5\x52\x9e\xc5\xcb\x77\xe7\x69\x36\x2e\x1f\xa3\xb6\x9c\x97\xa9\x98\xc9\xcb\xb1\xfd\x69\xcd\x61\x2b\x70\xf5\xb4\xe6\xc8\xf8\x72\x3e\x36\x7f\xa2\x6d\x3e\xf2\x9d\xed\x70\xa2\x81\xd3\xad\xe2\x7a\xa3\x44\x47\x13\xce\xb6\xfc\x6a\x2d\x95\xce\xa2\x6d\x9e\x03\xef\xbb\x37\x5a\x3e\xe6\xd5\xc1\x6a\xba\x35\x03\xe4\x6c\x3f\xe5\xd5\xd9\x27\x9e\xe8\xfe\x5a\x49\x2d\x4d\x1f\x40\x30\xde\x3f\x8f\xb3\x57\x97\xe2\xb5\x92\x6b\xae\xf4\x35\x28\x16\xf8\x82\x01\xf3\x3d\x7d\x7b\xbd\x3a\x93\xcb\xb1\xfd\x89\xb6\x39\x48\xa6\xfa\xa9\xe6\x2a\xd6\x52\xed\x76\xc1\x3f\xff\xe9\x5f\x02\x48\x99\xea\xc7\xd9\xb5\x48\x9e\x55\xbf\xd7\x52\x02\x88\x99\xea\x6b\xf9\x56\xab\x54\x2c\xde\xc5\x0b\xcc\x52\x79\x0f\x4a\x70\x64\x06\x1c\x20\x0a\x80\xb8\x31\x58\x60\xfa\x5e\x63\x9e\xed\x45\xbc\xdc\xf0\x48\x00\x17\x9b\x15\x57\xf1\xd9\x92\x47\xdd\x01\x24\x52\xcc\xd3\xc5\xa6\x78\xbf\x54\xa9\x76\xcf\x39\x05\x3d\xe1\xd3\x5c\xab\xeb\x6d\x46\xb6\x39\x04\x01\xcd\x93\x58\x27\xe7\x06\x66\x59\x05\x82\xb5\x2e\x98\x32\x4c\xe4\x79\xd1\xc7\xc4\x66\x00\x65\x01\x2d\x19\x0f\x43\x5e\x82\xb9\x93\x8a\x4c\xc7\x22\x31\x90\x9c\x8f\x79\x34\x87\xd4\x4f\x45\xa2\x78\xac\x39\x91\x65\x66\x0a\x31\x13\xfc\xb2\x73\x45\xd4\x6e\x37\x99\xd2\x91\x6b\x34\xed\x9f\xa6\xe2\x42\x7e\xe6\x7b\xbd\x32\x4d\x2a\x16\x64\x9b\x6c\xcd\xc5\x8c\xcf\xde\xea\x58\xe9\xc0\x97\x2b\x72\x4b\x48\xe9\x36\x9d\x93\x80\x5f\xf1\x64\xa3\x53\xb1\x08\x18\x63\x8a\xea\x73\x25\x2f\x3b\xa6\xc9\x47\x4a\x49\x45\x82\x27\x5c\xd8\x69\xea\xa4\x59\x27\x5e\x2a\x1e\xcf\xae\x3b\x6a\x23\x84\x29\x42\x47\xa6\x8a\x44\xae\xd6\x4b\xae\xf9\xcc\x56\x81\xd5\x62\x3d\xe6\x5d\xba\x2a\x53\xdf\x85\x53\x42\xf3\xb9\x54\x44\xf4\x57\x5c\x9f\xcb\x19\x93\x20\xfa\xb1\x5a\xb0\x74\x34\xb2\xdd\x8f\x99\xe8\xcf\xf8\x92\x2f\x62\xcd\x4d\x03\xb1\x4d\xce\xd8\x25\x89\x41\x60\x9b\x19\xb6\x92\x31\xc6\x96\x34\x91\x42\xa7\x62\xc3\x7d\x03\x59\x9e\x9b\x1e\x08\x7e\xa5\x4d\x07\x7c\x3b\x54\xf4\x33\x2e\x34\x13\xfd\x53\xf7\x1b\xab\xc5\x88\x2f\x33\xde\xa9\x75\xb8\xc8\x8f\xe3\x68\xc0\xb1\x02\x23\xc5\x2a\x03\xb7\x43\x18\x89\xfe\x2c\xcd\xd6\x66\xc9\x3c\xba\x4a\xf8\x1a\x21\x8d\x5f\x68\x6e\x1a\x0a\x6c\x0f\xab\xad\x84\xa1\xe8\xc7\x67\x6a\xb3\xd6\xc4\x7f\xb5\x75\xd1\x91\x62\x95\xc9\x41\x34\x95\xb0\x8d\x9b\x66\x84\xbb\x90\x6a\x15\x2f\x4d\x6d\x49\x1f\x17\x8b\xe9\xb1\x32\xc0\x93\x82\x8f\x2b\xbd\x8b\xca\x61\x7c\x48\xf9\x72\x16\x40\x82\x10\x6f\x81\x9e\xdb\x36\xf8\x1d\x4c\x3d\x91\xad\x2e\xcf\x4b\x08\xd9\xd6\xc2\x90\x34\x41\xe0\x26\xd4\xe5\x74\xd3\x9a\xd8\xf1\xe7\x39\xd1\x20\x20\xa6\x90\x96\x5b\xc5\x0f\x67\x6b\xf6\x9c\xeb\x80\xa9\x3b\xf2\x63\x83\x58\x2d\x22\xdd\x4f\xe2\xe5\x92\x98\x8c\x79\xb9\x21\x6b\xd9\x5d\x8b\x98\x3b\xcf\x73\xdd\xbf\x54\xf1\x9a\x25\x08\xb5\x25\xab\x22\xd4\x39\xa1\xdb\xb2\x03\xb3\xda\xdb\xda\xbc\x99\x22\xe7\xa6\xc8\xf9\x44\x4e\x59\x85\x6a\xf8\xfd\x7e\x9e\x66\x39\x56\xbc\xf2\xfb\x76\xc1\xf5\x6b\xbf\x63\x5f\xcd\x61\xc1\x56\x61\xb8\x22\x2b\xf2\x8a\x4c\xa6\x94\xd2\xd1\x22\x0c\x17\x5d\x66\xf0\x80\xb0\x43\x59\x80\xa4\x61\x48\xce\xd9\x82\x62\x4d\xd7\x6c\x5d\xee\x79\x36\xaf\x3c\xd7\x31\xc3\x39\x2d\x07\x72\x61\x80\x30\xb1\xcb\x1c\x3c\x00\xfc\x1a\x9a\xf6\xe7\x52\x3d\x8a\x93\xf3\x0a\x29\xe0\x74\x6b\xd1\x67\x8d\x3a\x54\x46\xe5\x71\x0a\xe1\xa0\x69\x4e\xf1\x7f\xd1\xdc\x99\x25\x44\x88\x5e\x46\xd5\xdc\xac\x8e\x53\x8a\x02\x71\x09\x32\x83\x4e\xaa\x44\x49\x41\x4c\xb7\xdd\x22\xa7\x32\x25\x21\x86\xcc\x56\x8f\xab\x7c\x22\xa7\xa0\x21\xb5\x0b\xdd\x0e\xae\x5b\xae\x73\x3b\xad\x76\x91\xce\xd9\xb2\x8f\x8b\xb6\xc0\x71\x61\x18\x48\x04\x5b\x49\xb2\xe6\x05\xe8\xe7\x10\x9c\x9e\xc6\x97\x71\xaa\x03\x3a\xe6\x7d\xc5\x33\xb9\xbc\xe0\x64\xde\x77\xa9\xb4\xaf\xcf\xb9\xa8\x53\x50\xe5\xb0\x09\x68\xec\x65\x4e\xa1\xf9\xd9\x81\xdf\x7f\xa7\x51\xa5\xe6\xb6\x1a\x5d\x97\x99\x86\x98\x2c\xf7\x2b\xb4\x03\x69\xa9\x37\xcf\x88\xdb\x4f\x08\x33\x03\x48\x93\xea\x0b\x30\x35\x56\xb6\xb5\x18\x62\x1a\xc5\x84\x56\xe8\xd2\x65\x39\x83\x82\xe9\x82\x60\x4f\xb8\xdb\xb7\x53\x03\xeb\x0b\x99\xce\x3a\x03\x83\xa0\x10\x9b\xf0\x02\x11\x33\xb1\x59\x2e\xa1\x44\x02\xbc\x8a\x26\xcb\xda\xfa\xb6\x2b\x61\x48\x78\x81\x0e\x3c\x5e\xe3\x88\x0f\x6c\x0b\x60\x7b\xd3\x56\x21\x75\xa3\x59\x8e\x78\x13\xa3\xd8\x1a\xcc\x72\x7a\x77\xbd\xe6\x8e\x42\xbd\x3b\xe7\x1d\xdf\x7c\x67\x26\x79\xd6\x11\x52\x77\xd6\x4a\x5e\xa4\x33\xde\x89\x3b\xff\x81\x85\xff\xa3\x63\xeb\x0a\x0a\x68\x2d\x73\x4b\x2b\x37\x44\x40\x39\x00\xdb\x46\x75\xdd\x19\x9c\x6f\xd7\x9d\x2b\x78\xa0\x5b\x0a\x97\x63\x13\x62\xcb\x91\x65\x02\xf0\xab\x5f\xa2\x72\x2c\x2d\x92\x26\x7c\xa2\xcd\x4a\xd9\x2c\xf5\xcb\x78\xc5\xa7\x4c\xda\x85\x01\xbc\x6f\x56\x1c\xd3\xf8\xf3\x5c\xLine truncated
func init() {
err := CTX.Err()
if err != nil {
panic(err)
}
var f webdav.File
var rb *bytes.Reader
var r *gzip.Reader
rb = bytes.NewReader(FileAccountsJs)
r, err = gzip.NewReader(rb)
if err != nil {
panic(err)
}
err = r.Close()
if err != nil {
panic(err)
}
f, err = FS.OpenFile(CTX, "accounts.js", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
if err != nil {
panic(err)
}
_, err = io.Copy(f, r)
if err != nil {
panic(err)
}
err = f.Close()
if err != nil {
panic(err)
}
Handler = &webdav.Handler{
FileSystem: FS,
LockSystem: webdav.NewMemLS(),
}
}
// Open a file
func (hfs *HTTPFS) Open(path string) (http.File, error) {
path = hfs.Prefix + path
f, err := FS.OpenFile(CTX, path, os.O_RDONLY, 0644)
if err != nil {
return nil, err
}
return f, nil
}
// ReadFile is adapTed from ioutil
func ReadFile(path string) ([]byte, error) {
f, err := FS.OpenFile(CTX, path, os.O_RDONLY, 0644)
if err != nil {
return nil, err
}
buf := bytes.NewBuffer(make([]byte, 0, bytes.MinRead))
// If the buffer overflows, we will get bytes.ErrTooLarge.
// Return that as an error. Any other panic remains.
defer func() {
e := recover()
if e == nil {
return
}
if panicErr, ok := e.(error); ok && panicErr == bytes.ErrTooLarge {
err = panicErr
} else {
panic(e)
}
}()
_, err = buf.ReadFrom(f)
return buf.Bytes(), err
}
// WriteFile is adapTed from ioutil
func WriteFile(filename string, data []byte, perm os.FileMode) error {
f, err := FS.OpenFile(CTX, filename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, perm)
if err != nil {
return err
}
n, err := f.Write(data)
if err == nil && n < len(data) {
err = io.ErrShortWrite
}
if err1 := f.Close(); err == nil {
err = err1
}
return err
}
// WalkDirs looks for files in the given dir and returns a list of files in it
// usage for all files in the b0x: WalkDirs("", false)
func WalkDirs(name string, includeDirsInList bool, files ...string) ([]string, error) {
f, err := FS.OpenFile(CTX, name, os.O_RDONLY, 0)
if err != nil {
return nil, err
}
fileInfos, err := f.Readdir(0)
if err != nil {
return nil, err
}
err = f.Close()
if err != nil {
return nil, err
}
for _, info := range fileInfos {
filename := path.Join(name, info.Name())
if includeDirsInList || !info.IsDir() {
files = append(files, filename)
}
if info.IsDir() {
files, err = WalkDirs(filename, includeDirsInList, files...)
if err != nil {
return nil, err
}
}
}
return files, nil
}
-17
View File
@@ -1,17 +0,0 @@
---
pkg: "assets"
dest: "."
output: "embed.go"
fmt: true
noprefix: true
compression:
compress: true
custom:
- files:
- "../../assets/"
base: "../../assets/"
prefix: ""
...
+10
View File
@@ -1,10 +1,20 @@
package assets
import (
"net/http"
"github.com/owncloud/ocis/accounts"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/ocis-pkg/assetsfs"
"github.com/owncloud/ocis/ocis-pkg/log"
)
// New returns a new http filesystem to serve assets.
func New(opts ...Option) http.FileSystem {
options := newOptions(opts...)
return assetsfs.New(accounts.Assets, options.Config.Asset.Path, options.Logger)
}
// Option defines a single option function.
type Option func(o *Options)
+2 -2
View File
@@ -3,11 +3,11 @@ package command
import (
"fmt"
"github.com/asim/go-micro/plugins/client/grpc/v3"
"github.com/micro/cli/v2"
"github.com/asim/go-micro/plugins/client/grpc/v4"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/urfave/cli/v2"
)
// AddAccount command creates a new account
+4 -3
View File
@@ -5,12 +5,13 @@ import (
"os"
"strconv"
"github.com/asim/go-micro/plugins/client/grpc/v3"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/accounts/pkg/flagset"
"github.com/asim/go-micro/plugins/client/grpc/v4"
tw "github.com/olekukonko/tablewriter"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/urfave/cli/v2"
)
// InspectAccount command shows detailed information about a specific account.
+4 -3
View File
@@ -5,12 +5,13 @@ import (
"os"
"strconv"
"github.com/asim/go-micro/plugins/client/grpc/v3"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/accounts/pkg/flagset"
"github.com/asim/go-micro/plugins/client/grpc/v4"
tw "github.com/olekukonko/tablewriter"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/urfave/cli/v2"
)
// ListAccounts command lists all accounts
+3 -3
View File
@@ -4,11 +4,11 @@ import (
"context"
"fmt"
"github.com/asim/go-micro/plugins/client/grpc/v3"
merrors "github.com/asim/go-micro/v3/errors"
"github.com/micro/cli/v2"
"github.com/asim/go-micro/plugins/client/grpc/v4"
"github.com/owncloud/ocis/accounts/pkg/config"
index "github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/urfave/cli/v2"
merrors "go-micro.dev/v4/errors"
)
// RebuildIndex rebuilds the entire configured index.
+4 -3
View File
@@ -4,11 +4,12 @@ import (
"fmt"
"os"
"github.com/asim/go-micro/plugins/client/grpc/v3"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
"github.com/asim/go-micro/plugins/client/grpc/v4"
"github.com/owncloud/ocis/accounts/pkg/config"
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/urfave/cli/v2"
)
// RemoveAccount command deletes an existing account.
+45 -60
View File
@@ -1,41 +1,31 @@
package command
import (
"context"
"os"
"strings"
"github.com/owncloud/ocis/accounts/pkg/flagset"
"github.com/owncloud/ocis/ocis-pkg/shared"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/version"
"github.com/owncloud/ocis/ocis-pkg/log"
"github.com/spf13/viper"
)
var (
defaultConfigPaths = []string{"/etc/ocis", "$HOME/.ocis", "./config"}
defaultFilename = "accounts"
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
"github.com/owncloud/ocis/ocis-pkg/version"
"github.com/thejerf/suture/v4"
"github.com/urfave/cli/v2"
)
// Execute is the entry point for the ocis-accounts command.
func Execute() error {
cfg := config.New()
func Execute(cfg *config.Config) error {
app := &cli.App{
Name: "ocis-accounts",
Version: version.String,
Usage: "Provide accounts and groups for oCIS",
Compiled: version.Compiled(),
Authors: []*cli.Author{
{
Name: "ownCloud GmbH",
Email: "support@owncloud.com",
},
},
Flags: flagset.RootWithConfig(cfg),
Before: func(c *cli.Context) error {
cfg.Server.Version = version.String
return ParseConfig(c, cfg)
@@ -66,54 +56,49 @@ func Execute() error {
return app.Run(os.Args)
}
// NewLogger initializes a service-specific logger instance.
func NewLogger(cfg *config.Config) log.Logger {
return log.NewLogger(
log.Name("accounts"),
log.Level(cfg.Log.Level),
log.Pretty(cfg.Log.Pretty),
log.Color(cfg.Log.Color),
)
// ParseConfig loads accounts configuration from known paths.
func ParseConfig(c *cli.Context, cfg *config.Config) error {
conf, err := ociscfg.BindSourcesToStructs("accounts", cfg)
if err != nil {
return err
}
// provide with defaults for shared logging, since we need a valid destination address for BindEnv.
if cfg.Log == nil && cfg.Commons != nil && cfg.Commons.Log != nil {
cfg.Log = &shared.Log{
Level: cfg.Commons.Log.Level,
Pretty: cfg.Commons.Log.Pretty,
Color: cfg.Commons.Log.Color,
File: cfg.Commons.Log.File,
}
} else if cfg.Log == nil && cfg.Commons == nil {
cfg.Log = &shared.Log{}
}
// load all env variables relevant to the config in the current context.
conf.LoadOSEnv(config.GetEnv(cfg), false)
bindings := config.StructMappings(cfg)
return ociscfg.BindEnv(conf, bindings)
}
// ParseConfig loads accounts configuration from Viper known paths.
func ParseConfig(c *cli.Context, cfg *config.Config) error {
logger := NewLogger(cfg)
// SutureService allows for the accounts command to be embedded and supervised by a suture supervisor tree.
type SutureService struct {
cfg *config.Config
}
viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
viper.SetEnvPrefix("ACCOUNTS")
viper.AutomaticEnv()
if c.IsSet("config-file") {
viper.SetConfigFile(c.String("config-file"))
} else {
viper.SetConfigName(defaultFilename)
for _, v := range defaultConfigPaths {
viper.AddConfigPath(v)
}
// NewSutureService creates a new accounts.SutureService
func NewSutureService(cfg *ociscfg.Config) suture.Service {
cfg.Accounts.Commons = cfg.Commons
return SutureService{
cfg: cfg.Accounts,
}
}
if err := viper.ReadInConfig(); err != nil {
switch err.(type) {
case viper.ConfigFileNotFoundError:
logger.Debug().
Msg("no config found on preconfigured location")
case viper.UnsupportedConfigError:
logger.Fatal().
Err(err).
Msg("Unsupported config type")
default:
logger.Fatal().
Err(err).
Msg("Failed to read config")
}
}
if err := viper.Unmarshal(&cfg); err != nil {
logger.Fatal().
Err(err).
Msg("Failed to parse config")
func (s SutureService) Serve(ctx context.Context) error {
s.cfg.Context = ctx
if err := Execute(s.cfg); err != nil {
return err
}
return nil
+55 -146
View File
@@ -2,26 +2,18 @@ package command
import (
"context"
"os"
"os/signal"
"strings"
"time"
"contrib.go.opencensus.io/exporter/jaeger"
"contrib.go.opencensus.io/exporter/ocagent"
"contrib.go.opencensus.io/exporter/zipkin"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/ocis-pkg/log"
"github.com/oklog/run"
openzipkin "github.com/openzipkin/zipkin-go"
zipkinhttp "github.com/openzipkin/zipkin-go/reporter/http"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
"github.com/owncloud/ocis/accounts/pkg/metrics"
"github.com/owncloud/ocis/accounts/pkg/server/grpc"
"github.com/owncloud/ocis/accounts/pkg/server/http"
svc "github.com/owncloud/ocis/accounts/pkg/service/v0"
"go.opencensus.io/stats/view"
"go.opencensus.io/trace"
"github.com/owncloud/ocis/accounts/pkg/tracing"
"github.com/urfave/cli/v2"
)
// Server is the entry point for the server command.
@@ -30,94 +22,28 @@ func Server(cfg *config.Config) *cli.Command {
Name: "server",
Usage: "Start ocis accounts service",
Description: "uses an LDAP server as the storage backend",
Flags: flagset.ServerWithConfig(cfg),
Before: func(ctx *cli.Context) error {
if cfg.HTTP.Root != "/" {
cfg.HTTP.Root = strings.TrimSuffix(cfg.HTTP.Root, "/")
}
// When running on single binary mode the before hook from the root command won't get called. We manually
// call this before hook from ocis command, so the configuration can be loaded.
return ParseConfig(ctx, cfg)
cfg.Repo.Backend = strings.ToLower(cfg.Repo.Backend)
if err := ParseConfig(ctx, cfg); err != nil {
return err
}
return nil
},
Action: func(c *cli.Context) error {
logger := NewLogger(cfg)
if cfg.Tracing.Enabled {
switch t := cfg.Tracing.Type; t {
case "agent":
exporter, err := ocagent.NewExporter(
ocagent.WithReconnectionPeriod(5*time.Second),
ocagent.WithAddress(cfg.Tracing.Endpoint),
ocagent.WithServiceName(cfg.Tracing.Service),
)
if err != nil {
logger.Error().
Err(err).
Str("endpoint", cfg.Tracing.Endpoint).
Str("collector", cfg.Tracing.Collector).
Msg("Failed to create agent tracing")
return err
}
trace.RegisterExporter(exporter)
view.RegisterExporter(exporter)
case "jaeger":
exporter, err := jaeger.NewExporter(
jaeger.Options{
AgentEndpoint: cfg.Tracing.Endpoint,
CollectorEndpoint: cfg.Tracing.Collector,
Process: jaeger.Process{
ServiceName: cfg.Tracing.Service,
},
},
)
if err != nil {
logger.Error().
Err(err).
Str("endpoint", cfg.Tracing.Endpoint).
Str("collector", cfg.Tracing.Collector).
Msg("Failed to create jaeger tracing")
return err
}
trace.RegisterExporter(exporter)
case "zipkin":
endpoint, err := openzipkin.NewEndpoint(
cfg.Tracing.Service,
cfg.Tracing.Endpoint,
)
if err != nil {
logger.Error().
Err(err).
Str("endpoint", cfg.Tracing.Endpoint).
Str("collector", cfg.Tracing.Collector).
Msg("Failed to create zipkin tracing")
return err
}
exporter := zipkin.NewExporter(
zipkinhttp.NewReporter(
cfg.Tracing.Collector,
),
endpoint,
)
trace.RegisterExporter(exporter)
default:
logger.Warn().
Str("type", t).
Msg("Unknown tracing backend")
}
trace.ApplyConfig(
trace.Config{
DefaultSampler: trace.AlwaysSample(),
},
)
} else {
logger.Debug().
Msg("Tracing is not enabled")
logger := log.LoggerFromConfig("accounts", *cfg.Log)
err := tracing.Configure(cfg)
if err != nil {
return err
}
var (
gr = run.Group{}
ctx, cancel = context.WithCancel(context.Background())
mtrcs = metrics.New()
)
gr := run.Group{}
ctx, cancel := defineContext(cfg)
mtrcs := metrics.New()
defer cancel()
@@ -125,67 +51,50 @@ func Server(cfg *config.Config) *cli.Command {
handler, err := svc.New(svc.Logger(logger), svc.Config(cfg))
if err != nil {
logger.Fatal().Err(err).Msg("could not initialize service handler")
logger.Error().Err(err).Msg("handler init")
return err
}
{
server := http.Server(
http.Logger(logger),
http.Name(cfg.Server.Name),
http.Context(ctx),
http.Config(cfg),
http.Metrics(mtrcs),
http.Flags(flagset.RootWithConfig(config.New())),
http.Flags(flagset.ServerWithConfig(config.New())),
http.Handler(handler),
)
httpServer := http.Server(
http.Config(cfg),
http.Logger(logger),
http.Name(cfg.Server.Name),
http.Context(ctx),
http.Metrics(mtrcs),
http.Handler(handler),
)
gr.Add(server.Run, func(_ error) {
logger.Info().
Str("server", "http").
Msg("Shutting down server")
gr.Add(httpServer.Run, func(_ error) {
logger.Info().Str("server", "http").Msg("shutting down server")
cancel()
})
cancel()
})
}
grpcServer := grpc.Server(
grpc.Config(cfg),
grpc.Logger(logger),
grpc.Name(cfg.Server.Name),
grpc.Context(ctx),
grpc.Metrics(mtrcs),
grpc.Handler(handler),
)
{
server := grpc.Server(
grpc.Logger(logger),
grpc.Name(cfg.Server.Name),
grpc.Context(ctx),
grpc.Config(cfg),
grpc.Metrics(mtrcs),
grpc.Handler(handler),
)
gr.Add(func() error {
return server.Run()
}, func(_ error) {
logger.Info().
Str("server", "grpc").
Msg("Shutting down server")
cancel()
})
}
{
stop := make(chan os.Signal, 1)
gr.Add(func() error {
signal.Notify(stop, os.Interrupt)
<-stop
return nil
}, func(err error) {
close(stop)
cancel()
})
}
gr.Add(grpcServer.Run, func(_ error) {
logger.Info().Str("server", "grpc").Msg("shutting down server")
cancel()
})
return gr.Run()
},
}
}
// defineContext sets the context for the extension. If there is a context configured it will create a new child from it,
// if not, it will create a root context that can be cancelled.
func defineContext(cfg *config.Config) (context.Context, context.CancelFunc) {
return func() (context.Context, context.CancelFunc) {
if cfg.Context == nil {
return context.WithCancel(context.Background())
}
return context.WithCancel(cfg.Context)
}()
}
+4 -4
View File
@@ -4,11 +4,12 @@ import (
"errors"
"fmt"
"github.com/asim/go-micro/plugins/client/grpc/v3"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
"github.com/asim/go-micro/plugins/client/grpc/v4"
"github.com/owncloud/ocis/accounts/pkg/config"
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/urfave/cli/v2"
"google.golang.org/genproto/protobuf/field_mask"
)
@@ -24,7 +25,6 @@ func UpdateAccount(cfg *config.Config) *cli.Command {
Flags: flagset.UpdateAccountWithConfig(cfg, a),
Before: func(c *cli.Context) error {
if len(c.StringSlice("password_policies")) > 0 {
// StringSliceFlag doesn't support Destination
a.PasswordProfile.PasswordPolicies = c.StringSlice("password_policies")
}
+1 -3
View File
@@ -6,10 +6,9 @@ import (
"github.com/owncloud/ocis/ocis-pkg/registry"
"github.com/micro/cli/v2"
tw "github.com/olekukonko/tablewriter"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
"github.com/urfave/cli/v2"
)
// PrintVersion prints the service versions of all running instances.
@@ -17,7 +16,6 @@ func PrintVersion(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "version",
Usage: "Print the versions of the running instances",
Flags: flagset.ListAccountsWithConfig(cfg),
Action: func(c *cli.Context) error {
reg := registry.GetRegistry()
services, err := reg.GetService(cfg.GRPC.Namespace + "." + cfg.Server.Name)
+155 -63
View File
@@ -1,129 +1,221 @@
// Package config should be moved to internal
package config
import (
"context"
"path"
"github.com/owncloud/ocis/ocis-pkg/shared"
"github.com/owncloud/ocis/ocis-pkg/config/defaults"
)
// LDAP defines the available ldap configuration.
type LDAP struct {
Hostname string
Port int
BaseDN string
UserFilter string
GroupFilter string
BindDN string
BindPassword string
IDP string
Schema LDAPSchema
Hostname string `ocisConfig:"hostname"`
Port int `ocisConfig:"port"`
BaseDN string `ocisConfig:"base_dn"`
UserFilter string `ocisConfig:"user_filter"`
GroupFilter string `ocisConfig:"group_filter"`
BindDN string `ocisConfig:"bind_dn"`
BindPassword string `ocisConfig:"bind_password"`
IDP string `ocisConfig:"idp"`
Schema LDAPSchema `ocisConfig:"schema"`
}
// LDAPSchema defines the available ldap schema configuration.
type LDAPSchema struct {
AccountID string
Identities string
Username string
DisplayName string
Mail string
Groups string
AccountID string `ocisConfig:"account_id"`
Identities string `ocisConfig:"identities"`
Username string `ocisConfig:"username"`
DisplayName string `ocisConfig:"display_name"`
Mail string `ocisConfig:"mail"`
Groups string `ocisConfig:"groups"`
}
// CORS defines the available cors configuration.
type CORS struct {
AllowedOrigins []string `ocisConfig:"allowed_origins"`
AllowedMethods []string `ocisConfig:"allowed_methods"`
AllowedHeaders []string `ocisConfig:"allowed_headers"`
AllowCredentials bool `ocisConfig:"allowed_credentials"`
}
// HTTP defines the available http configuration.
type HTTP struct {
Addr string
Namespace string
Root string
CacheTTL int
Addr string `ocisConfig:"addr"`
Namespace string `ocisConfig:"namespace"`
Root string `ocisConfig:"root"`
CacheTTL int `ocisConfig:"cache_ttl"`
CORS CORS `ocisConfig:"cors"`
}
// GRPC defines the available grpc configuration.
type GRPC struct {
Addr string
Namespace string
Addr string `ocisConfig:"addr"`
Namespace string `ocisConfig:"namespace"`
}
// Server configures a server.
type Server struct {
Version string
Name string
HashDifficulty int
Version string `ocisConfig:"version"`
Name string `ocisConfig:"name"`
HashDifficulty int `ocisConfig:"hash_difficulty"`
DemoUsersAndGroups bool `ocisConfig:"demo_users_and_groups"`
}
// Asset defines the available asset configuration.
type Asset struct {
Path string
Path string `ocisConfig:"path"`
}
// TokenManager is the config for using the reva token manager
type TokenManager struct {
JWTSecret string
}
// Log defines the available logging configuration.
type Log struct {
Level string
Pretty bool
Color bool
JWTSecret string `ocisConfig:"jwt_secret"`
}
// Repo defines which storage implementation is to be used.
type Repo struct {
Disk Disk
CS3 CS3
Backend string `ocisConfig:"backend"`
Disk Disk `ocisConfig:"disk"`
CS3 CS3 `ocisConfig:"cs3"`
}
// Disk is the local disk implementation of the storage.
type Disk struct {
Path string
Path string `ocisConfig:"path"`
}
// CS3 is the cs3 implementation of the storage.
type CS3 struct {
ProviderAddr string
DataURL string
DataPrefix string
JWTSecret string
ProviderAddr string `ocisConfig:"provider_addr"`
JWTSecret string `ocisConfig:"jwt_secret"`
}
// ServiceUser defines the user required for EOS.
type ServiceUser struct {
UUID string
Username string
UID int64
GID int64
UUID string `ocisConfig:"uuid"`
Username string `ocisConfig:"username"`
UID int64 `ocisConfig:"uid"`
GID int64 `ocisConfig:"gid"`
}
// Index defines config for indexes.
type Index struct {
UID, GID Bound
UID Bound `ocisConfig:"uid"`
GID Bound `ocisConfig:"gid"`
}
// Bound defines a lower and upper bound.
type Bound struct {
Lower, Upper int64
Lower int64 `ocisConfig:"lower"`
Upper int64 `ocisConfig:"upper"`
}
// Tracing defines the available tracing configuration.
type Tracing struct {
Enabled bool
Type string
Endpoint string
Collector string
Service string
Enabled bool `ocisConfig:"enabled"`
Type string `ocisConfig:"type"`
Endpoint string `ocisConfig:"endpoint"`
Collector string `ocisConfig:"collector"`
Service string `ocisConfig:"service"`
}
// Config merges all Account config parameters.
type Config struct {
LDAP LDAP
HTTP HTTP
GRPC GRPC
Server Server
Asset Asset
Log Log
TokenManager TokenManager
Repo Repo
Index Index
ServiceUser ServiceUser
Tracing Tracing
*shared.Commons
LDAP LDAP `ocisConfig:"ldap"`
HTTP HTTP `ocisConfig:"http"`
GRPC GRPC `ocisConfig:"grpc"`
Server Server `ocisConfig:"server"`
Asset Asset `ocisConfig:"asset"`
Log *shared.Log `ocisConfig:"log"`
TokenManager TokenManager `ocisConfig:"token_manager"`
Repo Repo `ocisConfig:"repo"`
Index Index `ocisConfig:"index"`
ServiceUser ServiceUser `ocisConfig:"service_user"`
Tracing Tracing `ocisConfig:"tracing"`
Context context.Context
Supervised bool
}
// New returns a new config.
func New() *Config {
return &Config{}
return &Config{
Log: &shared.Log{},
}
}
func DefaultConfig() *Config {
return &Config{
LDAP: LDAP{},
HTTP: HTTP{
Addr: "127.0.0.1:9181",
Namespace: "com.owncloud.web",
Root: "/",
CacheTTL: 604800, // 7 days
CORS: CORS{
AllowedOrigins: []string{"*"},
AllowedMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
AllowedHeaders: []string{"Authorization", "Origin", "Content-Type", "Accept", "X-Requested-With"},
AllowCredentials: true,
},
},
GRPC: GRPC{
Addr: "127.0.0.1:9180",
Namespace: "com.owncloud.api",
},
Server: Server{
Name: "accounts",
HashDifficulty: 11,
DemoUsersAndGroups: true,
},
Asset: Asset{},
TokenManager: TokenManager{
JWTSecret: "Pive-Fumkiu4",
},
Repo: Repo{
Backend: "CS3",
Disk: Disk{
Path: path.Join(defaults.BaseDataPath(), "accounts"),
},
CS3: CS3{
ProviderAddr: "localhost:9215",
JWTSecret: "Pive-Fumkiu4",
},
},
Index: Index{
UID: Bound{
Lower: 0,
Upper: 1000,
},
GID: Bound{
Lower: 0,
Upper: 1000,
},
},
ServiceUser: ServiceUser{
UUID: "95cb8724-03b2-11eb-a0a6-c33ef8ef53ad",
Username: "",
UID: 0,
GID: 0,
},
Tracing: Tracing{
Type: "jaeger",
Service: "accounts",
},
}
}
// GetEnv fetches a list of known env variables for this extension. It is to be used by gookit, as it provides a list
// with all the environment variables an extension supports.
func GetEnv(cfg *Config) []string {
var r = make([]string, len(structMappings(cfg)))
for i := range structMappings(cfg) {
r = append(r, structMappings(cfg)[i].EnvVars...)
}
return r
}
+140
View File
@@ -0,0 +1,140 @@
package config
import "github.com/owncloud/ocis/ocis-pkg/shared"
// StructMappings binds a set of environment variables to a destination on cfg. Iterating over this set and editing the
// Destination value of a binding will alter the original value, as it is a pointer to its memory address. This lets
// us propagate changes easier.
func StructMappings(cfg *Config) []shared.EnvBinding {
return structMappings(cfg)
}
// structMappings binds a set of environment variables to a destination on cfg.
func structMappings(cfg *Config) []shared.EnvBinding {
return []shared.EnvBinding{
{
EnvVars: []string{"OCIS_LOG_FILE", "ACCOUNTS_LOG_FILE"},
Destination: &cfg.Log.File,
},
{
EnvVars: []string{"OCIS_LOG_COLOR", "ACCOUNTS_LOG_COLOR"},
Destination: &cfg.Log.Color,
},
{
EnvVars: []string{"OCIS_LOG_PRETTY", "ACCOUNTS_LOG_PRETTY"},
Destination: &cfg.Log.Pretty,
},
{
EnvVars: []string{"OCIS_TRACING_ENABLED", "ACCOUNTS_TRACING_ENABLED"},
Destination: &cfg.Tracing.Enabled,
},
{
EnvVars: []string{"OCIS_TRACING_TYPE", "ACCOUNTS_TRACING_TYPE"},
Destination: &cfg.Tracing.Type,
},
{
EnvVars: []string{"OCIS_TRACING_ENDPOINT", "ACCOUNTS_TRACING_ENDPOINT"},
Destination: &cfg.Tracing.Endpoint,
},
{
EnvVars: []string{"OCIS_TRACING_COLLECTOR", "ACCOUNTS_TRACING_COLLECTOR"},
Destination: &cfg.Tracing.Collector,
},
{
EnvVars: []string{"ACCOUNTS_TRACING_SERVICE"},
Destination: &cfg.Tracing.Service,
},
{
EnvVars: []string{"ACCOUNTS_HTTP_NAMESPACE"},
Destination: &cfg.HTTP.Namespace,
},
{
EnvVars: []string{"ACCOUNTS_HTTP_ADDR"},
Destination: &cfg.HTTP.Addr,
},
{
EnvVars: []string{"ACCOUNTS_HTTP_ROOT"},
Destination: &cfg.HTTP.Root,
},
{
EnvVars: []string{"ACCOUNTS_CACHE_TTL"},
Destination: &cfg.HTTP.CacheTTL,
},
{
EnvVars: []string{"ACCOUNTS_GRPC_NAMESPACE"},
Destination: &cfg.GRPC.Namespace,
},
{
EnvVars: []string{"ACCOUNTS_GRPC_ADDR"},
Destination: &cfg.GRPC.Addr,
},
{
EnvVars: []string{"ACCOUNTS_NAME"},
Destination: &cfg.Server.Name,
},
{
EnvVars: []string{"ACCOUNTS_HASH_DIFFICULTY"},
Destination: &cfg.Server.HashDifficulty,
},
{
EnvVars: []string{"ACCOUNTS_DEMO_USERS_AND_GROUPS"},
Destination: &cfg.Server.DemoUsersAndGroups,
},
{
EnvVars: []string{"ACCOUNTS_ASSET_PATH"},
Destination: &cfg.Asset.Path,
},
{
EnvVars: []string{"OCIS_JWT_SECRET", "ACCOUNTS_JWT_SECRET"},
Destination: &cfg.TokenManager.JWTSecret,
},
{
EnvVars: []string{"ACCOUNTS_STORAGE_BACKEND"},
Destination: &cfg.Repo.Backend,
},
{
EnvVars: []string{"ACCOUNTS_STORAGE_DISK_PATH"},
Destination: &cfg.Repo.Disk.Path,
},
{
EnvVars: []string{"ACCOUNTS_STORAGE_CS3_PROVIDER_ADDR"},
Destination: &cfg.Repo.CS3.ProviderAddr,
},
{
EnvVars: []string{"OCIS_JWT_SECRET", "ACCOUNTS_STORAGE_CS3_JWT_SECRET"},
Destination: &cfg.Repo.CS3.JWTSecret,
},
{
EnvVars: []string{"ACCOUNTS_SERVICE_USER_UUID"},
Destination: &cfg.ServiceUser.UUID,
},
{
EnvVars: []string{"ACCOUNTS_SERVICE_USER_USERNAME"},
Destination: &cfg.ServiceUser.Username,
},
{
EnvVars: []string{"ACCOUNTS_SERVICE_USER_UID"},
Destination: &cfg.ServiceUser.UID,
},
{
EnvVars: []string{"ACCOUNTS_SERVICE_USER_GID"},
Destination: &cfg.ServiceUser.GID,
},
{
EnvVars: []string{"ACCOUNTS_UID_INDEX_LOWER_BOUND"},
Destination: &cfg.Index.UID.Lower,
},
{
EnvVars: []string{"ACCOUNTS_GID_INDEX_LOWER_BOUND"},
Destination: &cfg.Index.GID.Lower,
},
{
EnvVars: []string{"ACCOUNTS_UID_INDEX_UPPER_BOUND"},
Destination: &cfg.Index.UID.Upper,
},
{
EnvVars: []string{"ACCOUNTS_GID_INDEX_UPPER_BOUND"},
Destination: &cfg.Index.GID.Upper,
},
}
}
+12 -239
View File
@@ -1,239 +1,12 @@
package flagset
import (
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/accounts/pkg/config"
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/owncloud/ocis/ocis-pkg/flags"
"github.com/urfave/cli/v2"
)
// RootWithConfig applies cfg to the root flagset
func RootWithConfig(cfg *config.Config) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{
Name: "log-level",
Value: "info",
Usage: "Set logging level",
EnvVars: []string{"ACCOUNTS_LOG_LEVEL"},
Destination: &cfg.Log.Level,
},
&cli.BoolFlag{
Value: true,
Name: "log-pretty",
Usage: "Enable pretty logging",
EnvVars: []string{"ACCOUNTS_LOG_PRETTY"},
Destination: &cfg.Log.Pretty,
},
&cli.BoolFlag{
Value: true,
Name: "log-color",
Usage: "Enable colored logging",
EnvVars: []string{"ACCOUNTS_LOG_COLOR"},
Destination: &cfg.Log.Color,
},
}
}
// ServerWithConfig applies cfg to the root flagset
func ServerWithConfig(cfg *config.Config) []cli.Flag {
return []cli.Flag{
&cli.BoolFlag{
Name: "tracing-enabled",
Usage: "Enable sending traces",
EnvVars: []string{"ACCOUNTS_TRACING_ENABLED"},
Destination: &cfg.Tracing.Enabled,
},
&cli.StringFlag{
Name: "tracing-type",
Value: "jaeger",
Usage: "Tracing backend type",
EnvVars: []string{"ACCOUNTS_TRACING_TYPE"},
Destination: &cfg.Tracing.Type,
},
&cli.StringFlag{
Name: "tracing-endpoint",
Value: "",
Usage: "Endpoint for the agent",
EnvVars: []string{"ACCOUNTS_TRACING_ENDPOINT"},
Destination: &cfg.Tracing.Endpoint,
},
&cli.StringFlag{
Name: "tracing-collector",
Value: "",
Usage: "Endpoint for the collector",
EnvVars: []string{"ACCOUNTS_TRACING_COLLECTOR"},
Destination: &cfg.Tracing.Collector,
},
&cli.StringFlag{
Name: "tracing-service",
Value: "accounts",
Usage: "Service name for tracing",
EnvVars: []string{"ACCOUNTS_TRACING_SERVICE"},
Destination: &cfg.Tracing.Service,
},
&cli.StringFlag{
Name: "http-namespace",
Value: "com.owncloud.web",
Usage: "Set the base namespace for the http namespace",
EnvVars: []string{"ACCOUNTS_HTTP_NAMESPACE"},
Destination: &cfg.HTTP.Namespace,
},
&cli.StringFlag{
Name: "http-addr",
Value: "0.0.0.0:9181",
Usage: "Address to bind http server",
EnvVars: []string{"ACCOUNTS_HTTP_ADDR"},
Destination: &cfg.HTTP.Addr,
},
&cli.StringFlag{
Name: "http-root",
Value: "/",
Usage: "Root path of http server",
EnvVars: []string{"ACCOUNTS_HTTP_ROOT"},
Destination: &cfg.HTTP.Root,
},
&cli.IntFlag{
Name: "http-cache-ttl",
Value: 604800, // 7 days
Usage: "Set the static assets caching duration in seconds",
EnvVars: []string{"ACCOUNTS_CACHE_TTL"},
Destination: &cfg.HTTP.CacheTTL,
},
&cli.StringFlag{
Name: "grpc-namespace",
Value: "com.owncloud.api",
Usage: "Set the base namespace for the grpc namespace",
EnvVars: []string{"ACCOUNTS_GRPC_NAMESPACE"},
Destination: &cfg.GRPC.Namespace,
},
&cli.StringFlag{
Name: "grpc-addr",
Value: "0.0.0.0:9180",
Usage: "Address to bind grpc server",
EnvVars: []string{"ACCOUNTS_GRPC_ADDR"},
Destination: &cfg.GRPC.Addr,
},
&cli.StringFlag{
Name: "name",
Value: "accounts",
Usage: "service name",
EnvVars: []string{"ACCOUNTS_NAME"},
Destination: &cfg.Server.Name,
},
&cli.IntFlag{
Name: "accounts-hash-difficulty",
Value: 11,
Usage: "accounts password hash difficulty",
EnvVars: []string{"ACCOUNTS_HASH_DIFFICULTY"},
Destination: &cfg.Server.HashDifficulty,
},
&cli.StringFlag{
Name: "asset-path",
Value: "",
Usage: "Path to custom assets",
EnvVars: []string{"ACCOUNTS_ASSET_PATH"},
Destination: &cfg.Asset.Path,
},
&cli.StringFlag{
Name: "jwt-secret",
Value: "Pive-Fumkiu4",
Usage: "Used to create JWT to talk to reva, should equal reva's jwt-secret",
EnvVars: []string{"ACCOUNTS_JWT_SECRET", "OCIS_JWT_SECRET"},
Destination: &cfg.TokenManager.JWTSecret,
},
&cli.StringFlag{
Name: "storage-disk-path",
Value: "",
Usage: "Path on the local disk, e.g. /var/tmp/ocis/accounts",
EnvVars: []string{"ACCOUNTS_STORAGE_DISK_PATH"},
Destination: &cfg.Repo.Disk.Path,
},
&cli.StringFlag{
Name: "storage-cs3-provider-addr",
Value: "localhost:9215",
Usage: "bind address for the metadata storage provider",
EnvVars: []string{"ACCOUNTS_STORAGE_CS3_PROVIDER_ADDR"},
Destination: &cfg.Repo.CS3.ProviderAddr,
},
&cli.StringFlag{
Name: "storage-cs3-data-url",
Value: "http://localhost:9216",
Usage: "http endpoint of the metadata storage",
EnvVars: []string{"ACCOUNTS_STORAGE_CS3_DATA_URL"},
Destination: &cfg.Repo.CS3.DataURL,
},
&cli.StringFlag{
Name: "storage-cs3-data-prefix",
Value: "data",
Usage: "path prefix for the http endpoint of the metadata storage, without leading slash",
EnvVars: []string{"ACCOUNTS_STORAGE_CS3_DATA_PREFIX"},
Destination: &cfg.Repo.CS3.DataPrefix,
},
&cli.StringFlag{
Name: "storage-cs3-jwt-secret",
Value: "Pive-Fumkiu4",
Usage: "Used to create JWT to talk to reva, should equal reva's jwt-secret",
EnvVars: []string{"ACCOUNTS_STORAGE_CS3_JWT_SECRET", "OCIS_JWT_SECRET"},
Destination: &cfg.Repo.CS3.JWTSecret,
},
&cli.StringFlag{
Name: "service-user-uuid",
Value: "95cb8724-03b2-11eb-a0a6-c33ef8ef53ad",
Usage: "uuid of the internal service user (required on EOS)",
EnvVars: []string{"ACCOUNTS_SERVICE_USER_UUID"},
Destination: &cfg.ServiceUser.UUID,
},
&cli.StringFlag{
Name: "service-user-username",
Value: "",
Usage: "username of the internal service user (required on EOS)",
EnvVars: []string{"ACCOUNTS_SERVICE_USER_USERNAME"},
Destination: &cfg.ServiceUser.Username,
},
&cli.Int64Flag{
Name: "service-user-uid",
Value: 0,
Usage: "uid of the internal service user (required on EOS)",
EnvVars: []string{"ACCOUNTS_SERVICE_USER_UID"},
Destination: &cfg.ServiceUser.UID,
},
&cli.Int64Flag{
Name: "service-user-gid",
Value: 0,
Usage: "gid of the internal service user (required on EOS)",
EnvVars: []string{"ACCOUNTS_SERVICE_USER_GID"},
Destination: &cfg.ServiceUser.GID,
},
&cli.Int64Flag{
Name: "uid-index-lower-bound",
Value: 0,
Usage: "define a starting point for the account UID",
EnvVars: []string{"ACCOUNTS_UID_INDEX_LOWER_BOUND"},
Destination: &cfg.Index.UID.Lower,
},
&cli.Int64Flag{
Name: "gid-index-lower-bound",
Value: 1000,
Usage: "define a starting point for the account GID",
EnvVars: []string{"ACCOUNTS_GID_INDEX_LOWER_BOUND"},
Destination: &cfg.Index.GID.Lower,
},
&cli.Int64Flag{
Name: "uid-index-upper-bound",
Value: 0,
Usage: "define an ending point for the account UID",
EnvVars: []string{"ACCOUNTS_UID_INDEX_UPPER_BOUND"},
Destination: &cfg.Index.UID.Upper,
},
&cli.Int64Flag{
Name: "gid-index-upper-bound",
Value: 1000,
Usage: "define an ending point for the account GID",
EnvVars: []string{"ACCOUNTS_GID_INDEX_UPPER_BOUND"},
Destination: &cfg.Index.GID.Upper,
},
}
}
// UpdateAccountWithConfig applies update command flags to cfg
func UpdateAccountWithConfig(cfg *config.Config, a *accounts.Account) []cli.Flag {
if a.PasswordProfile == nil {
@@ -243,14 +16,14 @@ func UpdateAccountWithConfig(cfg *config.Config, a *accounts.Account) []cli.Flag
return []cli.Flag{
&cli.StringFlag{
Name: "grpc-namespace",
Value: "com.owncloud.api",
Value: flags.OverrideDefaultString(cfg.GRPC.Namespace, "com.owncloud.api"),
Usage: "Set the base namespace for the grpc namespace",
EnvVars: []string{"ACCOUNTS_GRPC_NAMESPACE"},
Destination: &cfg.GRPC.Namespace,
},
&cli.StringFlag{
Name: "name",
Value: "accounts",
Value: flags.OverrideDefaultString(cfg.Server.Name, "accounts"),
Usage: "service name",
EnvVars: []string{"ACCOUNTS_NAME"},
Destination: &cfg.Server.Name,
@@ -327,14 +100,14 @@ func AddAccountWithConfig(cfg *config.Config, a *accounts.Account) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{
Name: "grpc-namespace",
Value: "com.owncloud.api",
Value: flags.OverrideDefaultString(cfg.GRPC.Namespace, "com.owncloud.api"),
Usage: "Set the base namespace for the grpc namespace",
EnvVars: []string{"ACCOUNTS_GRPC_NAMESPACE"},
Destination: &cfg.GRPC.Namespace,
},
&cli.StringFlag{
Name: "name",
Value: "accounts",
Value: flags.OverrideDefaultString(cfg.Server.Name, "accounts"),
Usage: "service name",
EnvVars: []string{"ACCOUNTS_NAME"},
Destination: &cfg.Server.Name,
@@ -411,14 +184,14 @@ func ListAccountsWithConfig(cfg *config.Config) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{
Name: "grpc-namespace",
Value: "com.owncloud.api",
Value: flags.OverrideDefaultString(cfg.GRPC.Namespace, "com.owncloud.api"),
Usage: "Set the base namespace for the grpc namespace",
EnvVars: []string{"ACCOUNTS_GRPC_NAMESPACE"},
Destination: &cfg.GRPC.Namespace,
},
&cli.StringFlag{
Name: "name",
Value: "accounts",
Value: flags.OverrideDefaultString(cfg.Server.Name, "accounts"),
Usage: "service name",
EnvVars: []string{"ACCOUNTS_NAME"},
Destination: &cfg.Server.Name,
@@ -431,14 +204,14 @@ func RemoveAccountWithConfig(cfg *config.Config) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{
Name: "grpc-namespace",
Value: "com.owncloud.api",
Value: flags.OverrideDefaultString(cfg.GRPC.Namespace, "com.owncloud.api"),
Usage: "Set the base namespace for the grpc namespace",
EnvVars: []string{"ACCOUNTS_GRPC_NAMESPACE"},
Destination: &cfg.GRPC.Namespace,
},
&cli.StringFlag{
Name: "name",
Value: "accounts",
Value: flags.OverrideDefaultString(cfg.Server.Name, "accounts"),
Usage: "service name",
EnvVars: []string{"ACCOUNTS_NAME"},
Destination: &cfg.Server.Name,
@@ -451,14 +224,14 @@ func InspectAccountWithConfig(cfg *config.Config) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{
Name: "grpc-namespace",
Value: "com.owncloud.api",
Value: flags.OverrideDefaultString(cfg.GRPC.Namespace, "com.owncloud.api"),
Usage: "Set the base namespace for the grpc namespace",
EnvVars: []string{"ACCOUNTS_GRPC_NAMESPACE"},
Destination: &cfg.GRPC.Namespace,
},
&cli.StringFlag{
Name: "name",
Value: "accounts",
Value: flags.OverrideDefaultString(cfg.Server.Name, "accounts"),
Usage: "service name",
EnvVars: []string{"ACCOUNTS_NAME"},
Destination: &cfg.Server.Name,
+3 -3
View File
@@ -3,13 +3,13 @@ package proto
import (
context "context"
client "github.com/asim/go-micro/v3/client"
empty "github.com/golang/protobuf/ptypes/empty"
client "go-micro.dev/v4/client"
empty "google.golang.org/protobuf/types/known/emptypb"
)
// MockAccountsService can be used to write tests
/*
To creata a mock overwrite the functions of an instance like this:
To create a mock overwrite the functions of an instance like this:
```go
func mockAccSvc(retErr bool) proto.AccountsService {
File diff suppressed because it is too large. Load diff
+34 -40
View File
@@ -1,24 +1,24 @@
// Code generated by protoc-gen-micro. DO NOT EDIT.
// source: accounts.proto
// source: proto/v0/accounts.proto
package proto
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
_ "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
_ "google.golang.org/genproto/googleapis/api/annotations"
_ "google.golang.org/genproto/protobuf/field_mask"
proto "google.golang.org/protobuf/proto"
emptypb "google.golang.org/protobuf/types/known/emptypb"
_ "google.golang.org/protobuf/types/known/fieldmaskpb"
_ "google.golang.org/protobuf/types/known/timestamppb"
math "math"
)
import (
context "context"
api "github.com/asim/go-micro/v3/api"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
api "go-micro.dev/v4/api"
client "go-micro.dev/v4/client"
server "go-micro.dev/v4/server"
)
// Reference imports to suppress errors if they are not otherwise used.
@@ -26,12 +26,6 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Reference imports to suppress errors if they are not otherwise used.
var _ api.Endpoint
var _ context.Context
@@ -42,35 +36,35 @@ var _ server.Option
func NewAccountsServiceEndpoints() []*api.Endpoint {
return []*api.Endpoint{
&api.Endpoint{
{
Name: "AccountsService.ListAccounts",
Path: []string{"/api/v0/accounts/accounts-list"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",
},
&api.Endpoint{
{
Name: "AccountsService.GetAccount",
Path: []string{"/api/v0/accounts/accounts-get"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",
},
&api.Endpoint{
{
Name: "AccountsService.CreateAccount",
Path: []string{"/api/v0/accounts/accounts-create"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",
},
&api.Endpoint{
{
Name: "AccountsService.UpdateAccount",
Path: []string{"/api/v0/accounts/accounts-update"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",
},
&api.Endpoint{
{
Name: "AccountsService.DeleteAccount",
Path: []string{"/api/v0/accounts/accounts-delete"},
Method: []string{"POST"},
@@ -92,7 +86,7 @@ type AccountsService interface {
// Updates an account
UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...client.CallOption) (*Account, error)
// Deletes an account
DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...client.CallOption) (*empty.Empty, error)
DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...client.CallOption) (*emptypb.Empty, error)
}
type accountsService struct {
@@ -147,9 +141,9 @@ func (c *accountsService) UpdateAccount(ctx context.Context, in *UpdateAccountRe
return out, nil
}
func (c *accountsService) DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...client.CallOption) (*empty.Empty, error) {
func (c *accountsService) DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...client.CallOption) (*emptypb.Empty, error) {
req := c.c.NewRequest(c.name, "AccountsService.DeleteAccount", in)
out := new(empty.Empty)
out := new(emptypb.Empty)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
@@ -169,7 +163,7 @@ type AccountsServiceHandler interface {
// Updates an account
UpdateAccount(context.Context, *UpdateAccountRequest, *Account) error
// Deletes an account
DeleteAccount(context.Context, *DeleteAccountRequest, *empty.Empty) error
DeleteAccount(context.Context, *DeleteAccountRequest, *emptypb.Empty) error
}
func RegisterAccountsServiceHandler(s server.Server, hdlr AccountsServiceHandler, opts ...server.HandlerOption) error {
@@ -178,7 +172,7 @@ func RegisterAccountsServiceHandler(s server.Server, hdlr AccountsServiceHandler
GetAccount(ctx context.Context, in *GetAccountRequest, out *Account) error
CreateAccount(ctx context.Context, in *CreateAccountRequest, out *Account) error
UpdateAccount(ctx context.Context, in *UpdateAccountRequest, out *Account) error
DeleteAccount(ctx context.Context, in *DeleteAccountRequest, out *empty.Empty) error
DeleteAccount(ctx context.Context, in *DeleteAccountRequest, out *emptypb.Empty) error
}
type AccountsService struct {
accountsService
@@ -242,7 +236,7 @@ func (h *accountsServiceHandler) UpdateAccount(ctx context.Context, in *UpdateAc
return h.AccountsServiceHandler.UpdateAccount(ctx, in, out)
}
func (h *accountsServiceHandler) DeleteAccount(ctx context.Context, in *DeleteAccountRequest, out *empty.Empty) error {
func (h *accountsServiceHandler) DeleteAccount(ctx context.Context, in *DeleteAccountRequest, out *emptypb.Empty) error {
return h.AccountsServiceHandler.DeleteAccount(ctx, in, out)
}
@@ -250,56 +244,56 @@ func (h *accountsServiceHandler) DeleteAccount(ctx context.Context, in *DeleteAc
func NewGroupsServiceEndpoints() []*api.Endpoint {
return []*api.Endpoint{
&api.Endpoint{
{
Name: "GroupsService.ListGroups",
Path: []string{"/api/v0/accounts/groups-list"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",
},
&api.Endpoint{
{
Name: "GroupsService.GetGroup",
Path: []string{"/api/v0/accounts/groups-get"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",
},
&api.Endpoint{
{
Name: "GroupsService.CreateGroup",
Path: []string{"/api/v0/accounts/groups-create"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",
},
&api.Endpoint{
{
Name: "GroupsService.UpdateGroup",
Path: []string{"/api/v0/accounts/groups-update"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",
},
&api.Endpoint{
{
Name: "GroupsService.DeleteGroup",
Path: []string{"/api/v0/accounts/groups-delete"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",
},
&api.Endpoint{
{
Name: "GroupsService.AddMember",
Path: []string{"/api/v0/groups/{group_id=*}/members/$ref"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",
},
&api.Endpoint{
{
Name: "GroupsService.RemoveMember",
Path: []string{"/api/v0/groups/{group_id=*}/members/{account_id}/$ref"},
Method: []string{"POST"},
Body: "*",
Handler: "rpc",
},
&api.Endpoint{
{
Name: "GroupsService.ListMembers",
Path: []string{"/api/v0/groups/{id=*}/members/$ref"},
Method: []string{"POST"},
@@ -321,7 +315,7 @@ type GroupsService interface {
// Updates a group
UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...client.CallOption) (*Group, error)
// Deletes a group
DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...client.CallOption) (*empty.Empty, error)
DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...client.CallOption) (*emptypb.Empty, error)
// group:addmember https://docs.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0&tabs=http
AddMember(ctx context.Context, in *AddMemberRequest, opts ...client.CallOption) (*Group, error)
// group:removemember https://docs.microsoft.com/en-us/graph/api/group-delete-members?view=graph-rest-1.0
@@ -382,9 +376,9 @@ func (c *groupsService) UpdateGroup(ctx context.Context, in *UpdateGroupRequest,
return out, nil
}
func (c *groupsService) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...client.CallOption) (*empty.Empty, error) {
func (c *groupsService) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...client.CallOption) (*emptypb.Empty, error) {
req := c.c.NewRequest(c.name, "GroupsService.DeleteGroup", in)
out := new(empty.Empty)
out := new(emptypb.Empty)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
@@ -434,7 +428,7 @@ type GroupsServiceHandler interface {
// Updates a group
UpdateGroup(context.Context, *UpdateGroupRequest, *Group) error
// Deletes a group
DeleteGroup(context.Context, *DeleteGroupRequest, *empty.Empty) error
DeleteGroup(context.Context, *DeleteGroupRequest, *emptypb.Empty) error
// group:addmember https://docs.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0&tabs=http
AddMember(context.Context, *AddMemberRequest, *Group) error
// group:removemember https://docs.microsoft.com/en-us/graph/api/group-delete-members?view=graph-rest-1.0
@@ -449,7 +443,7 @@ func RegisterGroupsServiceHandler(s server.Server, hdlr GroupsServiceHandler, op
GetGroup(ctx context.Context, in *GetGroupRequest, out *Group) error
CreateGroup(ctx context.Context, in *CreateGroupRequest, out *Group) error
UpdateGroup(ctx context.Context, in *UpdateGroupRequest, out *Group) error
DeleteGroup(ctx context.Context, in *DeleteGroupRequest, out *empty.Empty) error
DeleteGroup(ctx context.Context, in *DeleteGroupRequest, out *emptypb.Empty) error
AddMember(ctx context.Context, in *AddMemberRequest, out *Group) error
RemoveMember(ctx context.Context, in *RemoveMemberRequest, out *Group) error
ListMembers(ctx context.Context, in *ListMembersRequest, out *ListMembersResponse) error
@@ -537,7 +531,7 @@ func (h *groupsServiceHandler) UpdateGroup(ctx context.Context, in *UpdateGroupR
return h.GroupsServiceHandler.UpdateGroup(ctx, in, out)
}
func (h *groupsServiceHandler) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, out *empty.Empty) error {
func (h *groupsServiceHandler) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, out *emptypb.Empty) error {
return h.GroupsServiceHandler.DeleteGroup(ctx, in, out)
}
@@ -557,7 +551,7 @@ func (h *groupsServiceHandler) ListMembers(ctx context.Context, in *ListMembersR
func NewIndexServiceEndpoints() []*api.Endpoint {
return []*api.Endpoint{
&api.Endpoint{
{
Name: "IndexService.RebuildIndex",
Path: []string{"/api/v0/index/rebuild"},
Method: []string{"POST"},
+11 -10
View File
@@ -10,18 +10,17 @@ import (
"path/filepath"
"testing"
mgrpcc "github.com/asim/go-micro/plugins/client/grpc/v3"
"github.com/asim/go-micro/v3/client"
merrors "github.com/asim/go-micro/v3/errors"
"github.com/golang/protobuf/ptypes/empty"
"github.com/owncloud/ocis/accounts/pkg/command"
mgrpcc "github.com/asim/go-micro/plugins/client/grpc/v4"
empty "github.com/golang/protobuf/ptypes/empty"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
svc "github.com/owncloud/ocis/accounts/pkg/service/v0"
oclog "github.com/owncloud/ocis/ocis-pkg/log"
"github.com/owncloud/ocis/ocis-pkg/service/grpc"
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
"github.com/stretchr/testify/assert"
"go-micro.dev/v4/client"
merrors "go-micro.dev/v4/errors"
"google.golang.org/genproto/protobuf/field_mask"
"google.golang.org/protobuf/types/known/timestamppb"
)
@@ -80,11 +79,13 @@ func init() {
)
cfg := config.New()
cfg.Repo.Backend = "disk"
cfg.Repo.Disk.Path = dataPath
cfg.Server.DemoUsersAndGroups = true
var hdlr *svc.Service
var err error
if hdlr, err = svc.New(svc.Logger(command.NewLogger(cfg)), svc.Config(cfg), svc.RoleService(buildRoleServiceMock())); err != nil {
if hdlr, err = svc.New(svc.Logger(oclog.LoggerFromConfig("accounts", *cfg.Log)), svc.Config(cfg), svc.RoleService(buildRoleServiceMock())); err != nil {
log.Fatalf("Could not create new service")
}
@@ -391,7 +392,7 @@ func deleteGroup(t *testing.T, id string) (*empty.Empty, error) {
// createTmpDir creates a temporary dir for tests data.
func createTmpDir() string {
name, err := ioutil.TempDir("/var/tmp", "ocis-accounts-store-")
name, err := ioutil.TempDir("/tmp", "ocis-accounts-store-")
if err != nil {
panic(err)
}
@@ -543,7 +544,7 @@ func TestUpdateAccount(t *testing.T) {
resp, err := updateAccount(t, tt.userAccount, updateMask)
if tt.expectedErrOnUpdate != nil {
assert.Error(t, err)
assert.Equal(t, tt.expectedErrOnUpdate, err)
assert.Equal(t, tt.expectedErrOnUpdate.Error(), err.Error())
} else {
assert.NoError(t, err)
assert.IsType(t, &proto.Account{}, resp)
@@ -616,7 +617,7 @@ func TestUpdateNonUpdatableFieldsInAccount(t *testing.T) {
errMsg := fmt.Sprintf("can not update field %s, either unknown or readonly", tt.updateMask[0])
assert.Equal(t, errMsg, e.Detail)
} else {
t.Fatal("Expected merror errors but found something else.")
t.Fatal("Expected merrors errors but found something else.")
}
})
}
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"encoding/json"
"net/http"
"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
"github.com/go-chi/render"
"github.com/golang/protobuf/jsonpb"
+114 -144
View File
@@ -43,7 +43,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsAccount"
"$ref": "#/definitions/v0Account"
}
},
"default": {
@@ -59,7 +59,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsCreateAccountRequest"
"$ref": "#/definitions/v0CreateAccountRequest"
}
}
],
@@ -92,7 +92,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsDeleteAccountRequest"
"$ref": "#/definitions/v0DeleteAccountRequest"
}
}
],
@@ -109,7 +109,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsAccount"
"$ref": "#/definitions/v0Account"
}
},
"default": {
@@ -125,7 +125,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsGetAccountRequest"
"$ref": "#/definitions/v0GetAccountRequest"
}
}
],
@@ -142,7 +142,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsListAccountsResponse"
"$ref": "#/definitions/v0ListAccountsResponse"
}
},
"default": {
@@ -158,7 +158,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsListAccountsRequest"
"$ref": "#/definitions/v0ListAccountsRequest"
}
}
],
@@ -175,7 +175,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsAccount"
"$ref": "#/definitions/v0Account"
}
},
"default": {
@@ -191,7 +191,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsUpdateAccountRequest"
"$ref": "#/definitions/v0UpdateAccountRequest"
}
}
],
@@ -208,7 +208,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsGroup"
"$ref": "#/definitions/v0Group"
}
},
"default": {
@@ -224,7 +224,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsCreateGroupRequest"
"$ref": "#/definitions/v0CreateGroupRequest"
}
}
],
@@ -257,7 +257,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsDeleteGroupRequest"
"$ref": "#/definitions/v0DeleteGroupRequest"
}
}
],
@@ -274,7 +274,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsGroup"
"$ref": "#/definitions/v0Group"
}
},
"default": {
@@ -290,7 +290,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsGetGroupRequest"
"$ref": "#/definitions/v0GetGroupRequest"
}
}
],
@@ -307,7 +307,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsListGroupsResponse"
"$ref": "#/definitions/v0ListGroupsResponse"
}
},
"default": {
@@ -323,7 +323,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsListGroupsRequest"
"$ref": "#/definitions/v0ListGroupsRequest"
}
}
],
@@ -340,7 +340,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsGroup"
"$ref": "#/definitions/v0Group"
}
},
"default": {
@@ -356,7 +356,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsUpdateGroupRequest"
"$ref": "#/definitions/v0UpdateGroupRequest"
}
}
],
@@ -373,7 +373,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsGroup"
"$ref": "#/definitions/v0Group"
}
},
"default": {
@@ -396,7 +396,13 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsAddMemberRequest"
"type": "object",
"properties": {
"accountId": {
"type": "string",
"title": "The account id to add"
}
}
}
}
],
@@ -413,7 +419,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsGroup"
"$ref": "#/definitions/v0Group"
}
},
"default": {
@@ -443,7 +449,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsRemoveMemberRequest"
"type": "object"
}
}
],
@@ -460,7 +466,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsListMembersResponse"
"$ref": "#/definitions/v0ListMembersResponse"
}
},
"default": {
@@ -483,7 +489,26 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsListMembersRequest"
"type": "object",
"properties": {
"pageSize": {
"type": "integer",
"format": "int32"
},
"pageToken": {
"type": "string",
"title": "Optional. A pagination token returned from a previous call to `Get`\nthat indicates from where search should continue"
},
"fieldMask": {
"type": "string",
"description": "Optional. Used to specify a subset of fields that should be\nreturned by a get operation or modified by an update operation."
},
"query": {
"type": "string",
"description": "TODO update query language\nQuery expressions can be used to restrict results based upon\nthe account properties where the operators `=`, `NOT`, `AND` and `OR`\ncan be used along with the suffix wildcard symbol `*`.\n\nThe string properties in a query expression should use escaped quotes\nfor values that include whitespace to prevent unexpected behavior.\n\nSome example queries are:\n\n* Query `display_name=Th*` returns accounts whose display_name\nstarts with \"Th\"\n* Query `display_name=\\\\\"Test String\\\\\"` returns groups with\ndisplay names that include both \"Test\" and \"String\"",
"title": "Optional. Search criteria used to select the groups to return.\nIf no search criteria is specified then all groups will be\nreturned"
}
}
}
}
],
@@ -499,7 +524,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsRebuildIndexResponse"
"$ref": "#/definitions/v0RebuildIndexResponse"
}
},
"default": {
@@ -515,7 +540,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsRebuildIndexRequest"
"$ref": "#/definitions/v0RebuildIndexRequest"
}
}
],
@@ -526,7 +551,34 @@
}
},
"definitions": {
"accountsAccount": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
},
"v0Account": {
"type": "object",
"properties": {
"id": {
@@ -548,7 +600,7 @@
"identities": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsIdentities"
"$ref": "#/definitions/v0Identities"
},
"description": "Represents the identities that can be used to sign in to this account.\nAn identity can be provided by oCIS (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and is tied to an account.\nMay contain multiple items with the same signInType value. Supports $filter."
},
@@ -579,13 +631,13 @@
"title": "A description, useful for resource accounts\nposixaccount MAY description"
},
"passwordProfile": {
"$ref": "#/definitions/accountsPasswordProfile",
"$ref": "#/definitions/v0PasswordProfile",
"title": "Specifies the password profile for the user.\nThe profile contains the user’s password. This property is required when a user is created.\nThe password in the profile must satisfy minimum requirements as specified by the passwordPolicies property.\nBy default, a strong password is required.\nposixaccount MAY authPassword"
},
"memberOf": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsGroup"
"$ref": "#/definitions/v0Group"
},
"title": "The groups, directory roles and administrative units that the user is a member of. Read-only. Nullable.\nshould we only respond with repeated strings of ids? no clients should a proper filter mask!"
},
@@ -635,7 +687,7 @@
"onPremisesProvisioningErrors": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsOnPremisesProvisioningError"
"$ref": "#/definitions/v0OnPremisesProvisioningError"
},
"description": "Errors when using synchronization during provisioning."
},
@@ -659,40 +711,27 @@
"description": "Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get\nan error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph).\nIf this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint.\nRead-only. Use revokeSignInSessions to reset."
}
},
"title": "Account follows the properties of the ms graph api user resuorce.\nSee https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties"
"title": "Account follows the properties of the ms graph api user resource.\nSee https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties"
},
"accountsAddMemberRequest": {
"type": "object",
"properties": {
"groupId": {
"type": "string",
"title": "The id of the group to add a member to"
},
"accountId": {
"type": "string",
"title": "The account id to add"
}
}
},
"accountsCreateAccountRequest": {
"v0CreateAccountRequest": {
"type": "object",
"properties": {
"account": {
"$ref": "#/definitions/accountsAccount",
"$ref": "#/definitions/v0Account",
"title": "The account resource to create"
}
}
},
"accountsCreateGroupRequest": {
"v0CreateGroupRequest": {
"type": "object",
"properties": {
"group": {
"$ref": "#/definitions/accountsGroup",
"$ref": "#/definitions/v0Group",
"title": "The account resource to create"
}
}
},
"accountsDeleteAccountRequest": {
"v0DeleteAccountRequest": {
"type": "object",
"properties": {
"id": {
@@ -700,7 +739,7 @@
}
}
},
"accountsDeleteGroupRequest": {
"v0DeleteGroupRequest": {
"type": "object",
"properties": {
"id": {
@@ -708,7 +747,7 @@
}
}
},
"accountsGetAccountRequest": {
"v0GetAccountRequest": {
"type": "object",
"properties": {
"id": {
@@ -716,7 +755,7 @@
}
}
},
"accountsGetGroupRequest": {
"v0GetGroupRequest": {
"type": "object",
"properties": {
"id": {
@@ -724,7 +763,7 @@
}
}
},
"accountsGroup": {
"v0Group": {
"type": "object",
"properties": {
"id": {
@@ -738,14 +777,14 @@
"members": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsAccount"
"$ref": "#/definitions/v0Account"
},
"title": "Users, contacts, and groups that are members of this group. HTTP Methods: GET (supported for all groups), POST (supported for security groups and mail-enabled security groups), DELETE (supported only for security groups) Read-only. Nullable.\nTODO accounts (users) only for now, we can add groups with the dedicated message using oneof construct later"
},
"owners": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsAccount"
"$ref": "#/definitions/v0Account"
},
"title": "groupofnames MAY businessCategory\ngroupofnames MAY o\ngroupofnames MAY ou\ngroupofnames MAY owner, SINGLE-VALUE but there might be multiple owners"
},
@@ -816,13 +855,13 @@
"onPremisesProvisioningErrors": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsOnPremisesProvisioningError"
"$ref": "#/definitions/v0OnPremisesProvisioningError"
},
"description": "Errors when using synchronization during provisioning."
}
}
},
"accountsIdentities": {
"v0Identities": {
"type": "object",
"properties": {
"signInType": {
@@ -840,7 +879,7 @@
},
"description": "Identities Represents an identity used to sign in to a user account.\nAn identity can be provided by oCIS, by organizations, or by social identity providers such as Facebook, Google, or Microsoft, that are tied to a user account.\nThis enables the user to sign in to the user account with any of those associated identities.\nThey are also used to keep a history of old usernames."
},
"accountsListAccountsRequest": {
"v0ListAccountsRequest": {
"type": "object",
"properties": {
"pageSize": {
@@ -863,13 +902,13 @@
}
}
},
"accountsListAccountsResponse": {
"v0ListAccountsResponse": {
"type": "object",
"properties": {
"accounts": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsAccount"
"$ref": "#/definitions/v0Account"
},
"title": "The field name should match the noun \"accounts\" in the method name. There\nwill be a maximum number of items returned based on the page_size field\nin the request"
},
@@ -879,7 +918,7 @@
}
}
},
"accountsListGroupsRequest": {
"v0ListGroupsRequest": {
"type": "object",
"properties": {
"pageSize": {
@@ -902,13 +941,13 @@
}
}
},
"accountsListGroupsResponse": {
"v0ListGroupsResponse": {
"type": "object",
"properties": {
"groups": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsGroup"
"$ref": "#/definitions/v0Group"
},
"title": "The field name should match the noun \"group\" in the method name. There\nwill be a maximum number of items returned based on the page_size field\nin the request"
},
@@ -918,39 +957,13 @@
}
}
},
"accountsListMembersRequest": {
"type": "object",
"properties": {
"pageSize": {
"type": "integer",
"format": "int32"
},
"pageToken": {
"type": "string",
"title": "Optional. A pagination token returned from a previous call to `Get`\nthat indicates from where search should continue"
},
"fieldMask": {
"type": "string",
"description": "Optional. Used to specify a subset of fields that should be\nreturned by a get operation or modified by an update operation."
},
"query": {
"type": "string",
"description": "TODO update query language\nQuery expressions can be used to restrict results based upon\nthe account properties where the operators `=`, `NOT`, `AND` and `OR`\ncan be used along with the suffix wildcard symbol `*`.\n\nThe string properties in a query expression should use escaped quotes\nfor values that include whitespace to prevent unexpected behavior.\n\nSome example queries are:\n\n* Query `display_name=Th*` returns accounts whose display_name\nstarts with \"Th\"\n* Query `display_name=\\\\\"Test String\\\\\"` returns groups with\ndisplay names that include both \"Test\" and \"String\"",
"title": "Optional. Search criteria used to select the groups to return.\nIf no search criteria is specified then all groups will be\nreturned"
},
"id": {
"type": "string",
"title": "The id of the group to list members from"
}
}
},
"accountsListMembersResponse": {
"v0ListMembersResponse": {
"type": "object",
"properties": {
"members": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsAccount"
"$ref": "#/definitions/v0Account"
},
"title": "The field name should match the noun \"members\" in the method name. There\nwill be a maximum number of items returned based on the page_size field\nin the request"
},
@@ -960,7 +973,7 @@
}
}
},
"accountsOnPremisesProvisioningError": {
"v0OnPremisesProvisioningError": {
"type": "object",
"properties": {
"category": {
@@ -982,7 +995,7 @@
}
}
},
"accountsPasswordProfile": {
"v0PasswordProfile": {
"type": "object",
"properties": {
"password": {
@@ -1011,30 +1024,17 @@
}
}
},
"accountsRebuildIndexRequest": {
"v0RebuildIndexRequest": {
"type": "object"
},
"accountsRebuildIndexResponse": {
"v0RebuildIndexResponse": {
"type": "object"
},
"accountsRemoveMemberRequest": {
"type": "object",
"properties": {
"groupId": {
"type": "string",
"title": "The id of the group to remove a member from"
},
"accountId": {
"type": "string",
"title": "The account id to remove"
}
}
},
"accountsUpdateAccountRequest": {
"v0UpdateAccountRequest": {
"type": "object",
"properties": {
"account": {
"$ref": "#/definitions/accountsAccount",
"$ref": "#/definitions/v0Account",
"title": "The account resource which replaces the resource on the server"
},
"updateMask": {
@@ -1043,11 +1043,11 @@
}
}
},
"accountsUpdateGroupRequest": {
"v0UpdateGroupRequest": {
"type": "object",
"properties": {
"group": {
"$ref": "#/definitions/accountsGroup",
"$ref": "#/definitions/v0Group",
"title": "The group resource which replaces the resource on the server"
},
"updateMask": {
@@ -1055,40 +1055,10 @@
"title": "The update mask applies to the resource. For the `FieldMask` definition,\nsee https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask"
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"typeUrl": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
},
"externalDocs": {
"description": "Developer Manual",
"url": "https://owncloud.github.io/extensions/accounts/"
"url": "https://owncloud.dev/extensions/accounts/"
}
}
-1
View File
@@ -1 +0,0 @@
checks = ["all", "-ST1003", "-ST1000", "-SA1019"]
+1 -1
View File
@@ -3,11 +3,11 @@ package grpc
import (
"context"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/metrics"
svc "github.com/owncloud/ocis/accounts/pkg/service/v0"
"github.com/owncloud/ocis/ocis-pkg/log"
"github.com/urfave/cli/v2"
)
// Option defines a single option function.
-1
View File
@@ -30,6 +30,5 @@ func Server(opts ...Option) grpc.Service {
options.Logger.Fatal().Err(err).Msg("could not register index handler")
}
service.Init()
return service
}
+1 -1
View File
@@ -3,11 +3,11 @@ package http
import (
"context"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/metrics"
svc "github.com/owncloud/ocis/accounts/pkg/service/v0"
"github.com/owncloud/ocis/ocis-pkg/log"
"github.com/urfave/cli/v2"
)
// Option defines a single option function.
+15 -7
View File
@@ -1,14 +1,16 @@
package http
import (
"github.com/asim/go-micro/v3"
"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
chimiddleware "github.com/go-chi/chi/v5/middleware"
"github.com/owncloud/ocis/accounts/pkg/assets"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/owncloud/ocis/accounts/pkg/version"
"github.com/owncloud/ocis/ocis-pkg/account"
"github.com/owncloud/ocis/ocis-pkg/cors"
"github.com/owncloud/ocis/ocis-pkg/middleware"
"github.com/owncloud/ocis/ocis-pkg/service/http"
"github.com/owncloud/ocis/ocis-pkg/version"
"go-micro.dev/v4"
)
// Server initializes the http service and server.
@@ -28,10 +30,17 @@ func Server(opts ...Option) http.Service {
mux := chi.NewMux()
mux.Use(middleware.RealIP)
mux.Use(middleware.RequestID)
mux.Use(chimiddleware.RealIP)
mux.Use(chimiddleware.RequestID)
mux.Use(middleware.TraceContext)
mux.Use(middleware.NoCache)
mux.Use(middleware.Cors)
mux.Use(middleware.Cors(
cors.Logger(options.Logger),
cors.AllowedOrigins(options.Config.HTTP.CORS.AllowedOrigins),
cors.AllowedMethods(options.Config.HTTP.CORS.AllowedMethods),
cors.AllowedHeaders(options.Config.HTTP.CORS.AllowedHeaders),
cors.AllowCredentials(options.Config.HTTP.CORS.AllowCredentials),
))
mux.Use(middleware.Secure)
mux.Use(middleware.ExtractAccountUUID(
account.Logger(options.Logger),
@@ -66,6 +75,5 @@ func Server(opts ...Option) http.Service {
options.Logger.Fatal().Err(err).Msg("failed to register the handler")
}
service.Init()
return service
}
+52 -8
View File
@@ -12,23 +12,26 @@ import (
"strconv"
"time"
"github.com/owncloud/ocis/ocis-pkg/sync"
"golang.org/x/crypto/bcrypt"
"go.opentelemetry.io/otel/trace"
"github.com/owncloud/ocis/ocis-pkg/log"
"go.opentelemetry.io/otel/attribute"
merrors "github.com/asim/go-micro/v3/errors"
"github.com/asim/go-micro/v3/metadata"
"github.com/gofrs/uuid"
"github.com/golang/protobuf/ptypes/empty"
fieldmask_utils "github.com/mennanov/fieldmask-utils"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/owncloud/ocis/accounts/pkg/storage"
accTracing "github.com/owncloud/ocis/accounts/pkg/tracing"
"github.com/owncloud/ocis/ocis-pkg/log"
"github.com/owncloud/ocis/ocis-pkg/middleware"
"github.com/owncloud/ocis/ocis-pkg/roles"
"github.com/owncloud/ocis/ocis-pkg/sync"
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
settings_svc "github.com/owncloud/ocis/settings/pkg/service/v0"
"github.com/rs/zerolog"
merrors "go-micro.dev/v4/errors"
"go-micro.dev/v4/metadata"
"golang.org/x/crypto/bcrypt"
"google.golang.org/genproto/protobuf/field_mask"
p "google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/timestamppb"
@@ -124,6 +127,15 @@ func (s Service) getInMemoryServiceUser() proto.Account {
// ListAccounts implements the AccountsServiceHandler interface
// the query contains account properties
func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest, out *proto.ListAccountsResponse) (err error) {
var span trace.Span
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.ListAccounts")
defer span.End()
span.SetAttributes(
attribute.KeyValue{Key: "page_size", Value: attribute.Int64Value(int64(in.PageSize))},
attribute.KeyValue{Key: "page_token", Value: attribute.StringValue(in.PageToken)},
)
hasSelf := s.hasSelfManagementPermissions(ctx)
hasManagement := s.hasAccountManagementPermissions(ctx)
if !hasSelf && !hasManagement {
@@ -264,11 +276,20 @@ func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest
}
func (s Service) findAccountsByQuery(ctx context.Context, query string) ([]string, error) {
return s.index.Query(&proto.Account{}, query)
return s.index.Query(ctx, &proto.Account{}, query)
}
// GetAccount implements the AccountsServiceHandler interface
func (s Service) GetAccount(ctx context.Context, in *proto.GetAccountRequest, out *proto.Account) (err error) {
var span trace.Span
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.GetAccount")
defer span.End()
span.SetAttributes(
attribute.KeyValue{Key: "account_id", Value: attribute.StringValue(in.Id)},
)
hasSelf := s.hasSelfManagementPermissions(ctx)
hasManagement := s.hasAccountManagementPermissions(ctx)
if !hasSelf && !hasManagement {
@@ -317,6 +338,15 @@ func (s Service) GetAccount(ctx context.Context, in *proto.GetAccountRequest, ou
// CreateAccount implements the AccountsServiceHandler interface
func (s Service) CreateAccount(ctx context.Context, in *proto.CreateAccountRequest, out *proto.Account) (err error) {
var span trace.Span
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.CreateAccount")
defer span.End()
span.SetAttributes(
attribute.KeyValue{Key: "account", Value: attribute.StringValue(in.Account.String())},
)
if !s.hasAccountManagementPermissions(ctx) {
return merrors.Forbidden(s.id, "no permission for CreateAccount")
}
@@ -449,6 +479,15 @@ func (s Service) rollbackCreateAccount(ctx context.Context, acc *proto.Account)
// read only fields are ignored
// TODO how can we unset specific values? using the update mask
func (s Service) UpdateAccount(ctx context.Context, in *proto.UpdateAccountRequest, out *proto.Account) (err error) {
var span trace.Span
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.UpdateAccount")
defer span.End()
span.SetAttributes(
attribute.KeyValue{Key: "account", Value: attribute.StringValue(in.Account.String())},
)
hasSelf := s.hasSelfManagementPermissions(ctx)
hasManagement := s.hasAccountManagementPermissions(ctx)
if !hasSelf && !hasManagement {
@@ -586,7 +625,7 @@ func (s Service) UpdateAccount(ctx context.Context, in *proto.UpdateAccountReque
return
}
// whitelist of all paths/fields which can be updated by users themself
// whitelist of all paths/fields which can be updated by users themselves
var selfUpdatableAccountPaths = map[string]struct{}{
"DisplayName": {},
"Description": {},
@@ -615,6 +654,11 @@ var updatableAccountPaths = map[string]struct{}{
// DeleteAccount implements the AccountsServiceHandler interface
func (s Service) DeleteAccount(ctx context.Context, in *proto.DeleteAccountRequest, out *empty.Empty) (err error) {
var span trace.Span
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.DeleteAccount")
defer span.End()
if !s.hasAccountManagementPermissions(ctx) {
return merrors.Forbidden(s.id, "no permission for DeleteAccount")
}
@@ -697,7 +741,7 @@ func validateAccountEmail(serviceID string, a *proto.Account) error {
return nil
}
// We want to allow email addresses as usernames so they show up when using them in ACLs on storages that allow intergration with our glauth LDAP service
// We want to allow email addresses as usernames so they show up when using them in ACLs on storages that allow integration with our glauth LDAP service
// so we are adding a few restrictions from https://stackoverflow.com/questions/6949667/what-are-the-real-rules-for-linux-usernames-on-centos-6-and-rhel-6
// names should not start with numbers
var usernameRegex = regexp.MustCompile("^[a-zA-Z_][a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]*(@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)*$")
@@ -9,9 +9,6 @@ import (
"testing"
"time"
"github.com/asim/go-micro/v3/client"
merrors "github.com/asim/go-micro/v3/errors"
"github.com/asim/go-micro/v3/metadata"
"github.com/golang/protobuf/ptypes/empty"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
@@ -21,9 +18,12 @@ import (
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
ssvc "github.com/owncloud/ocis/settings/pkg/service/v0"
"github.com/stretchr/testify/assert"
"go-micro.dev/v4/client"
merrors "go-micro.dev/v4/errors"
"go-micro.dev/v4/metadata"
)
const dataPath = "/var/tmp/ocis-accounts-tests"
const dataPath = "/tmp/ocis-accounts-tests"
var (
roleServiceMock settings.RoleService
@@ -33,6 +33,7 @@ var (
func init() {
cfg := config.New()
cfg.Server.Name = "accounts"
cfg.Repo.Backend = "disk"
cfg.Repo.Disk.Path = dataPath
logger := olog.NewLogger(olog.Color(true), olog.Pretty(true))
roleServiceMock = buildRoleServiceMock()
+3 -3
View File
@@ -5,11 +5,11 @@ import (
"path"
"strconv"
merrors "github.com/asim/go-micro/v3/errors"
"github.com/gofrs/uuid"
"github.com/golang/protobuf/ptypes/empty"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/owncloud/ocis/accounts/pkg/storage"
merrors "go-micro.dev/v4/errors"
p "google.golang.org/protobuf/proto"
)
@@ -88,7 +88,7 @@ func (s Service) ListGroups(ctx context.Context, in *proto.ListGroupsRequest, ou
return
}
func (s Service) findGroupsByQuery(ctx context.Context, query string) ([]string, error) {
return s.index.Query(&proto.Group{}, query)
return s.index.Query(ctx, &proto.Group{}, query)
}
// GetGroup implements the GroupsServiceHandler interface
@@ -270,7 +270,7 @@ func (s Service) AddMember(c context.Context, in *proto.AddMemberRequest, out *p
break
}
}
// only store the reference to prevent recurision when marshaling json
// only store the reference to prevent recursion when marshaling json
gref := &proto.Group{
Id: g.Id,
}
+2 -2
View File
@@ -63,11 +63,11 @@ func recreateContainers(idx *indexer.Indexer, cfg *config.Config) error {
}
// Groups
if err := idx.AddIndex(&proto.Group{}, "OnPremisesSamAccountName", "Id", "groups", "unique", nil, true); err != nil {
if err := idx.AddIndex(&proto.Group{}, "OnPremisesSamAccountName", "Id", "groups", "unique", nil, false); err != nil {
return err
}
if err := idx.AddIndex(&proto.Group{}, "DisplayName", "Id", "groups", "non_unique", nil, true); err != nil {
if err := idx.AddIndex(&proto.Group{}, "DisplayName", "Id", "groups", "non_unique", nil, false); err != nil {
return err
}
+84 -63
View File
@@ -2,13 +2,16 @@ package service
import (
"context"
"errors"
"path"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/owncloud/ocis/ocis-pkg/shared"
"github.com/pkg/errors"
"github.com/owncloud/ocis/ocis-pkg/service/grpc"
"github.com/owncloud/ocis/accounts/pkg/storage"
@@ -48,33 +51,25 @@ func New(opts ...Option) (s *Service, err error) {
roleManager = &m
}
storage, err := createMetadataStorage(cfg, logger)
if err != nil {
return nil, errors.Wrap(err, "could not create metadata storage")
}
s = &Service{
id: cfg.GRPC.Namespace + "." + cfg.Server.Name,
log: logger,
Config: cfg,
RoleService: roleService,
RoleManager: roleManager,
repo: createMetadataStorage(cfg, logger),
repo: storage,
}
retries := 20
var current int
r := oreg.GetRegistry()
if cfg.Repo.Disk.Path == "" {
for {
if current >= retries {
panic("metadata service failed to start.")
}
s, err := r.GetService("com.owncloud.storage.metadata")
if err != nil {
logger.Error().Err(err).Msg("error getting metadata service from service registry")
}
if len(s) > 0 {
break
}
logger.Info().Msg("accounts blocked waiting for metadata service to be up and running...")
time.Sleep(2 * time.Second)
current++
if cfg.Repo.Backend == "cs3" {
if _, err := r.GetService("com.owncloud.storage.metadata"); err != nil {
logger.Error().Err(err).Msg("index: storage-metadata service not present")
return nil, err
}
}
@@ -86,11 +81,11 @@ func New(opts ...Option) (s *Service, err error) {
return nil, err
}
if err = s.createDefaultAccounts(); err != nil {
if err = s.createDefaultAccounts(cfg.Server.DemoUsersAndGroups); err != nil {
return nil, err
}
if err = s.createDefaultGroups(); err != nil {
if err = s.createDefaultGroups(cfg.Server.DemoUsersAndGroups); err != nil {
return nil, err
}
return
@@ -116,6 +111,10 @@ func (s Service) buildIndex() (*indexer.Indexer, error) {
func configFromSvc(cfg *config.Config) (*idxcfg.Config, error) {
c := idxcfg.New()
if cfg.Log == nil {
cfg.Log = &shared.Log{}
}
defer func(cfg *config.Config) {
l := log.NewLogger(log.Color(cfg.Log.Color), log.Pretty(cfg.Log.Pretty), log.Level(cfg.Log.Level))
if r := recover(); r != nil {
@@ -126,46 +125,45 @@ func configFromSvc(cfg *config.Config) (*idxcfg.Config, error) {
}
}(cfg)
if (config.Repo{}) != cfg.Repo {
if (config.Disk{}) != cfg.Repo.Disk {
c.Repo = idxcfg.Repo{
Disk: idxcfg.Disk{
Path: cfg.Repo.Disk.Path,
},
}
switch cfg.Repo.Backend {
case "disk":
c.Repo = idxcfg.Repo{
Backend: cfg.Repo.Backend,
Disk: idxcfg.Disk{
Path: cfg.Repo.Disk.Path,
},
}
case "cs3":
c.Repo = idxcfg.Repo{
Backend: cfg.Repo.Backend,
CS3: idxcfg.CS3{
ProviderAddr: cfg.Repo.CS3.ProviderAddr,
JWTSecret: cfg.Repo.CS3.JWTSecret,
},
}
default:
return nil, errors.New("index backend " + cfg.Repo.Backend + " is not supported")
}
if (config.CS3{}) != cfg.Repo.CS3 {
c.Repo = idxcfg.Repo{
CS3: idxcfg.CS3{
ProviderAddr: cfg.Repo.CS3.ProviderAddr,
DataURL: cfg.Repo.CS3.DataURL,
DataPrefix: cfg.Repo.CS3.DataPrefix,
JWTSecret: cfg.Repo.CS3.JWTSecret,
},
}
if (config.Index{}) != cfg.Index {
c.Index = idxcfg.Index{
UID: idxcfg.Bound{
Lower: cfg.Index.UID.Lower,
},
GID: idxcfg.Bound{
Lower: cfg.Index.GID.Lower,
},
}
}
if (config.Index{}) != cfg.Index {
c.Index = idxcfg.Index{
UID: idxcfg.Bound{
Lower: cfg.Index.UID.Lower,
},
GID: idxcfg.Bound{
Lower: cfg.Index.GID.Lower,
},
}
}
if (config.ServiceUser{}) != cfg.ServiceUser {
c.ServiceUser = cfg.ServiceUser
}
if (config.ServiceUser{}) != cfg.ServiceUser {
c.ServiceUser = cfg.ServiceUser
}
return c, nil
}
func (s Service) createDefaultAccounts() (err error) {
func (s Service) createDefaultAccounts(withDemoAccounts bool) (err error) {
accounts := []proto.Account{
{
Id: "4c510ada-c86b-4815-8820-42cdf82c3d51",
@@ -291,8 +289,19 @@ func (s Service) createDefaultAccounts() (err error) {
},
},
}
mustHaveAccounts := map[string]bool{
"bc596f3c-c955-4328-80a0-60d018b4ad57": true, // Reva IOP
"820ba2a1-3f54-4538-80a4-2d73007e30bf": true, // Kopano IDP
"ddc2004c-0977-11eb-9d3f-a793888cd0f8": true, // admin
}
// this only deals with the metadata service.
for i := range accounts {
if !withDemoAccounts && !mustHaveAccounts[accounts[i].Id] {
continue
}
a := &proto.Account{}
err := s.repo.LoadAccount(context.Background(), accounts[i].Id, a)
if !storage.IsNotFoundErr(err) {
@@ -336,7 +345,7 @@ func (s Service) createDefaultAccounts() (err error) {
return nil
}
func (s Service) createDefaultGroups() (err error) {
func (s Service) createDefaultGroups(withDemoGroups bool) (err error) {
groups := []proto.Group{
{Id: "34f38767-c937-4eb6-b847-1c175829a2a0", GidNumber: 15000, OnPremisesSamAccountName: "sysusers", DisplayName: "Technical users", Description: "A group for technical users. They should not show up in sharing dialogs.", Members: []*proto.Account{
{Id: "820ba2a1-3f54-4538-80a4-2d73007e30bf"}, // idp
@@ -371,7 +380,17 @@ func (s Service) createDefaultGroups() (err error) {
{Id: "932b4540-8d16-481e-8ef4-588e4b6b151c"}, // feynman
}},
}
mustHaveGroups := map[string]bool{
"34f38767-c937-4eb6-b847-1c175829a2a0": true, // sysusers
"509a9dcd-bb37-4f4f-a01a-19dca27d9cfa": true, // users
}
for i := range groups {
if !withDemoGroups && !mustHaveGroups[groups[i].Id] {
continue
}
g := &proto.Group{}
err := s.repo.LoadGroup(context.Background(), groups[i].Id, g)
if !storage.IsNotFoundErr(err) {
@@ -409,17 +428,19 @@ func (s Service) createDefaultGroups() (err error) {
return nil
}
func createMetadataStorage(cfg *config.Config, logger log.Logger) storage.Repo {
// for now we detect the used storage implementation based on which storage is configured
// the config with defaults needs to be checked last
if cfg.Repo.Disk.Path != "" {
return storage.NewDiskRepo(cfg, logger)
func createMetadataStorage(cfg *config.Config, logger log.Logger) (storage.Repo, error) {
switch cfg.Repo.Backend {
case "disk":
return storage.NewDiskRepo(cfg, logger), nil
case "cs3":
repo, err := storage.NewCS3Repo(cfg)
if err != nil {
return nil, errors.Wrap(err, "cs3 backend was configured but failed to start")
}
return repo, nil
default:
return nil, errors.New("backend type " + cfg.Repo.Backend + " is not supported")
}
repo, err := storage.NewCS3Repo(cfg)
if err != nil {
logger.Fatal().Err(err).Msg("cs3 storage was configured but failed to start")
}
return repo
}
// Service implements the AccountsServiceHandler interface
-76
View File
@@ -1,76 +0,0 @@
package service
import (
"context"
"github.com/golang/protobuf/ptypes/empty"
v0proto "github.com/owncloud/ocis/accounts/pkg/proto/v0"
"go.opencensus.io/trace"
)
// NewTracing returns a service that instruments traces.
func NewTracing(next v0proto.AccountsServiceHandler) v0proto.AccountsServiceHandler {
return tracing{
next: next,
}
}
type tracing struct {
next v0proto.AccountsServiceHandler
}
func (t tracing) ListAccounts(ctx context.Context, req *v0proto.ListAccountsRequest, rsp *v0proto.ListAccountsResponse) error {
ctx, span := trace.StartSpan(ctx, "Accounts.ListAccounts")
defer span.End()
span.Annotate([]trace.Attribute{
trace.Int64Attribute("page_size", int64(req.PageSize)),
trace.StringAttribute("page_token", req.PageToken),
trace.StringAttribute("field_mask", req.FieldMask.String()),
}, "Execute Accounts.ListAccount handler")
return t.next.ListAccounts(ctx, req, rsp)
}
func (t tracing) GetAccount(ctx context.Context, req *v0proto.GetAccountRequest, acc *v0proto.Account) error {
ctx, span := trace.StartSpan(ctx, "Accounts.GetAccount")
defer span.End()
span.Annotate([]trace.Attribute{
trace.StringAttribute("id", req.Id),
}, "Execute Accounts.GetAccount handler")
return t.next.GetAccount(ctx, req, acc)
}
func (t tracing) CreateAccount(ctx context.Context, req *v0proto.CreateAccountRequest, acc *v0proto.Account) error {
ctx, span := trace.StartSpan(ctx, "Accounts.CreateAccount")
defer span.End()
span.Annotate([]trace.Attribute{
trace.StringAttribute("account", req.Account.String()),
}, "Execute Accounts.CreateAccount handler")
return t.next.CreateAccount(ctx, req, acc)
}
func (t tracing) UpdateAccount(ctx context.Context, req *v0proto.UpdateAccountRequest, acc *v0proto.Account) error {
ctx, span := trace.StartSpan(ctx, "Accounts.UpdateAccount")
defer span.End()
span.Annotate([]trace.Attribute{
trace.StringAttribute("account", req.Account.String()),
}, "Execute Accounts.UpdateAccount handler")
return t.next.UpdateAccount(ctx, req, acc)
}
func (t tracing) DeleteAccount(ctx context.Context, req *v0proto.DeleteAccountRequest, e *empty.Empty) error {
ctx, span := trace.StartSpan(ctx, "Accounts.DeleteAccount")
defer span.End()
span.Annotate([]trace.Attribute{
trace.StringAttribute("id", req.Id),
}, "Execute Accounts.DeleteAccout handler")
return t.next.DeleteAccount(ctx, req, e)
}
+67 -139
View File
@@ -1,36 +1,37 @@
package storage
import (
"bytes"
"context"
"encoding/json"
"io"
"io/ioutil"
"net/http"
"path"
"path/filepath"
"strconv"
"strings"
"github.com/cs3org/reva/pkg/auth/scope"
user "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
v1beta11 "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
types "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
revactx "github.com/cs3org/reva/pkg/ctx"
"github.com/cs3org/reva/pkg/rgrpc/todo/pool"
"github.com/cs3org/reva/pkg/token"
"github.com/cs3org/reva/pkg/token/manager/jwt"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
olog "github.com/owncloud/ocis/ocis-pkg/log"
metadatastorage "github.com/owncloud/ocis/ocis-pkg/metadata_storage"
"google.golang.org/grpc/metadata"
)
const (
storageMountPath = "/meta"
)
// CS3Repo provides a cs3 implementation of the Repo interface
type CS3Repo struct {
cfg *config.Config
tm token.Manager
storageProvider provider.ProviderAPIClient
dataProvider dataProviderClient // Used to create and download data via http, bypassing reva upload protocol
metadataStorage metadatastorage.MetadataStorage
}
// NewCS3Repo creates a new cs3 repo
@@ -48,26 +49,26 @@ func NewCS3Repo(cfg *config.Config) (Repo, error) {
return nil, err
}
ms, err := metadatastorage.NewMetadataStorage(cfg.Repo.CS3.ProviderAddr)
if err != nil {
return nil, err
}
return CS3Repo{
cfg: cfg,
tm: tokenManager,
storageProvider: client,
dataProvider: dataProviderClient{
client: http.Client{
Transport: http.DefaultTransport,
},
},
metadataStorage: ms,
}, nil
}
// WriteAccount writes an account via cs3 and modifies the provided account (e.g. with a generated id).
func (r CS3Repo) WriteAccount(ctx context.Context, a *proto.Account) (err error) {
t, err := r.authenticate(ctx)
ctx, err = r.getAuthenticatedContext(ctx)
if err != nil {
return err
}
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
if err := r.makeRootDirIfNotExist(ctx, accountsFolder); err != nil {
return err
}
@@ -77,37 +78,31 @@ func (r CS3Repo) WriteAccount(ctx context.Context, a *proto.Account) (err error)
return err
}
resp, err := r.dataProvider.put(r.accountURL(a.Id), bytes.NewReader(by), t)
if err != nil {
return err
}
if err = resp.Body.Close(); err != nil {
return err
}
return nil
err = r.metadataStorage.SimpleUpload(ctx, r.accountURL(a.Id), by)
return err
}
// LoadAccount loads an account via cs3 by id and writes it to the provided account
func (r CS3Repo) LoadAccount(ctx context.Context, id string, a *proto.Account) (err error) {
t, err := r.authenticate(ctx)
ctx, err = r.getAuthenticatedContext(ctx)
if err != nil {
return err
}
return r.loadAccount(id, t, a)
return r.loadAccount(ctx, id, a)
}
// LoadAccounts loads all the accounts from the cs3 api
func (r CS3Repo) LoadAccounts(ctx context.Context, a *[]*proto.Account) (err error) {
t, err := r.authenticate(ctx)
ctx, err = r.getAuthenticatedContext(ctx)
if err != nil {
return err
}
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
res, err := r.storageProvider.ListContainer(ctx, &provider.ListContainerRequest{
Ref: &provider.Reference{
Spec: &provider.Reference_Path{Path: path.Join("/meta", accountsFolder)},
Path: path.Join(storageMountPath, accountsFolder),
},
})
if err != nil {
@@ -117,7 +112,7 @@ func (r CS3Repo) LoadAccounts(ctx context.Context, a *[]*proto.Account) (err err
log := olog.NewLogger(olog.Pretty(r.cfg.Log.Pretty), olog.Color(r.cfg.Log.Color), olog.Level(r.cfg.Log.Level))
for i := range res.Infos {
acc := &proto.Account{}
err := r.loadAccount(filepath.Base(res.Infos[i].Path), t, acc)
err := r.loadAccount(ctx, filepath.Base(res.Infos[i].Path), acc)
if err != nil {
log.Err(err).Msg("could not load account")
continue
@@ -127,38 +122,27 @@ func (r CS3Repo) LoadAccounts(ctx context.Context, a *[]*proto.Account) (err err
return nil
}
func (r CS3Repo) loadAccount(id string, t string, a *proto.Account) error {
resp, err := r.dataProvider.get(r.accountURL(id), t)
func (r CS3Repo) loadAccount(ctx context.Context, id string, a *proto.Account) error {
account, err := r.metadataStorage.SimpleDownload(ctx, r.accountURL(id))
if err != nil {
if metadatastorage.IsNotFoundErr(err) {
return &notFoundErr{"account", id}
}
return err
}
if resp.StatusCode != http.StatusOK {
return &notFoundErr{"account", id}
}
b, err := ioutil.ReadAll(resp.Body)
if err != nil {
return err
}
if err = resp.Body.Close(); err != nil {
return err
}
return json.Unmarshal(b, &a)
return json.Unmarshal(account, &a)
}
// DeleteAccount deletes an account via cs3 by id
func (r CS3Repo) DeleteAccount(ctx context.Context, id string) (err error) {
t, err := r.authenticate(ctx)
ctx, err = r.getAuthenticatedContext(ctx)
if err != nil {
return err
}
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
resp, err := r.storageProvider.Delete(ctx, &provider.DeleteRequest{
Ref: &provider.Reference{
Spec: &provider.Reference_Path{Path: path.Join("/meta", accountsFolder, id)},
Path: path.Join(storageMountPath, accountsFolder, id),
},
})
@@ -176,12 +160,11 @@ func (r CS3Repo) DeleteAccount(ctx context.Context, id string) (err error) {
// WriteGroup writes a group via cs3 and modifies the provided group (e.g. with a generated id).
func (r CS3Repo) WriteGroup(ctx context.Context, g *proto.Group) (err error) {
t, err := r.authenticate(ctx)
ctx, err = r.getAuthenticatedContext(ctx)
if err != nil {
return err
}
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
if err := r.makeRootDirIfNotExist(ctx, groupsFolder); err != nil {
return err
}
@@ -191,37 +174,30 @@ func (r CS3Repo) WriteGroup(ctx context.Context, g *proto.Group) (err error) {
return err
}
resp, err := r.dataProvider.put(r.groupURL(g.Id), bytes.NewReader(by), t)
if err != nil {
return err
}
if err = resp.Body.Close(); err != nil {
return err
}
return nil
err = r.metadataStorage.SimpleUpload(ctx, r.groupURL(g.Id), by)
return err
}
// LoadGroup loads a group via cs3 by id and writes it to the provided group
func (r CS3Repo) LoadGroup(ctx context.Context, id string, g *proto.Group) (err error) {
t, err := r.authenticate(ctx)
ctx, err = r.getAuthenticatedContext(ctx)
if err != nil {
return err
}
return r.loadGroup(id, t, g)
return r.loadGroup(ctx, id, g)
}
// LoadGroups loads all the groups from the cs3 api
func (r CS3Repo) LoadGroups(ctx context.Context, g *[]*proto.Group) (err error) {
t, err := r.authenticate(ctx)
ctx, err = r.getAuthenticatedContext(ctx)
if err != nil {
return err
}
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
res, err := r.storageProvider.ListContainer(ctx, &provider.ListContainerRequest{
Ref: &provider.Reference{
Spec: &provider.Reference_Path{Path: path.Join("/meta", groupsFolder)},
Path: path.Join(storageMountPath, groupsFolder),
},
})
if err != nil {
@@ -231,7 +207,7 @@ func (r CS3Repo) LoadGroups(ctx context.Context, g *[]*proto.Group) (err error)
log := olog.NewLogger(olog.Pretty(r.cfg.Log.Pretty), olog.Color(r.cfg.Log.Color), olog.Level(r.cfg.Log.Level))
for i := range res.Infos {
grp := &proto.Group{}
err := r.loadGroup(filepath.Base(res.Infos[i].Path), t, grp)
err := r.loadGroup(ctx, filepath.Base(res.Infos[i].Path), grp)
if err != nil {
log.Err(err).Msg("could not load account")
continue
@@ -241,38 +217,27 @@ func (r CS3Repo) LoadGroups(ctx context.Context, g *[]*proto.Group) (err error)
return nil
}
func (r CS3Repo) loadGroup(id string, t string, g *proto.Group) error {
resp, err := r.dataProvider.get(r.groupURL(id), t)
func (r CS3Repo) loadGroup(ctx context.Context, id string, g *proto.Group) error {
group, err := r.metadataStorage.SimpleDownload(ctx, r.groupURL(id))
if err != nil {
if metadatastorage.IsNotFoundErr(err) {
return &notFoundErr{"group", id}
}
return err
}
if resp.StatusCode == http.StatusNotFound {
return &notFoundErr{"group", id}
}
b, err := ioutil.ReadAll(resp.Body)
if err != nil {
return err
}
if err = resp.Body.Close(); err != nil {
return err
}
return json.Unmarshal(b, &g)
return json.Unmarshal(group, &g)
}
// DeleteGroup deletes a group via cs3 by id
func (r CS3Repo) DeleteGroup(ctx context.Context, id string) (err error) {
t, err := r.authenticate(ctx)
ctx, err = r.getAuthenticatedContext(ctx)
if err != nil {
return err
}
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
resp, err := r.storageProvider.Delete(ctx, &provider.DeleteRequest{
Ref: &provider.Reference{
Spec: &provider.Reference_Path{Path: path.Join("/meta", groupsFolder, id)},
Path: path.Join(storageMountPath, groupsFolder, id),
},
})
@@ -288,8 +253,13 @@ func (r CS3Repo) DeleteGroup(ctx context.Context, id string) (err error) {
return err
}
func (r CS3Repo) authenticate(ctx context.Context) (token string, err error) {
return AuthenticateCS3(ctx, r.cfg.ServiceUser, r.tm)
func (r CS3Repo) getAuthenticatedContext(ctx context.Context) (context.Context, error) {
t, err := AuthenticateCS3(ctx, r.cfg.ServiceUser, r.tm)
if err != nil {
return nil, err
}
ctx = metadata.AppendToOutgoingContext(ctx, revactx.TokenHeader, t)
return ctx, nil
}
// AuthenticateCS3 mints an auth token for communicating with cs3 storage based on a service user from config
@@ -297,30 +267,25 @@ func AuthenticateCS3(ctx context.Context, su config.ServiceUser, tm token.Manage
u := &user.User{
Id: &user.UserId{
OpaqueId: su.UUID,
Type: user.UserType_USER_TYPE_APPLICATION,
},
Groups: []string{},
Opaque: &types.Opaque{
Map: map[string]*types.OpaqueEntry{
"uid": {
Decoder: "plain",
Value: []byte(strconv.FormatInt(su.UID, 10)),
},
"gid": {
Decoder: "plain",
Value: []byte(strconv.FormatInt(su.GID, 10)),
},
},
},
Groups: []string{},
UidNumber: su.UID,
GidNumber: su.GID,
}
return tm.MintToken(ctx, u)
s, err := scope.AddOwnerScope(nil)
if err != nil {
return
}
return tm.MintToken(ctx, u, s)
}
func (r CS3Repo) accountURL(id string) string {
return singleJoiningSlash(r.cfg.Repo.CS3.DataURL, path.Join(r.cfg.Repo.CS3.DataPrefix, accountsFolder, id))
return path.Join(accountsFolder, id)
}
func (r CS3Repo) groupURL(id string) string {
return singleJoiningSlash(r.cfg.Repo.CS3.DataURL, path.Join(r.cfg.Repo.CS3.DataPrefix, groupsFolder, id))
return path.Join(groupsFolder, id)
}
func (r CS3Repo) makeRootDirIfNotExist(ctx context.Context, folder string) error {
@@ -330,7 +295,7 @@ func (r CS3Repo) makeRootDirIfNotExist(ctx context.Context, folder string) error
// MakeDirIfNotExist will create a root node in the metadata storage. Requires an authenticated context.
func MakeDirIfNotExist(ctx context.Context, sp provider.ProviderAPIClient, folder string) error {
var rootPathRef = &provider.Reference{
Spec: &provider.Reference_Path{Path: path.Join("/meta", folder)},
Path: path.Join(storageMountPath, folder),
}
resp, err := sp.Stat(ctx, &provider.StatRequest{
@@ -353,40 +318,3 @@ func MakeDirIfNotExist(ctx context.Context, sp provider.ProviderAPIClient, folde
return nil
}
// TODO: this is copied from proxy. Find a better solution or move it to ocis-pkg
func singleJoiningSlash(a, b string) string {
aslash := strings.HasSuffix(a, "/")
bslash := strings.HasPrefix(b, "/")
switch {
case aslash && bslash:
return a + b[1:]
case !aslash && !bslash:
return a + "/" + b
}
return a + b
}
type dataProviderClient struct {
client http.Client
}
func (d dataProviderClient) put(url string, body io.Reader, token string) (*http.Response, error) {
req, err := http.NewRequest(http.MethodPut, url, body)
if err != nil {
return nil, err
}
req.Header.Add("x-access-token", token)
return d.client.Do(req)
}
func (d dataProviderClient) get(url string, token string) (*http.Response, error) {
req, err := http.NewRequest(http.MethodGet, url, nil)
if err != nil {
return nil, err
}
req.Header.Add("x-access-token", token)
return d.client.Do(req)
}
-2
View File
@@ -17,8 +17,6 @@ package storage
// Repo: config.Repo{
// CS3: config.CS3{
// ProviderAddr: "0.0.0.0:9215",
// DataURL: "http://localhost:9216",
// DataPrefix: "data",
// },
// },
//}
+1 -1
View File
@@ -8,7 +8,7 @@ type notFoundErr struct {
typ, id string
}
func (e *notFoundErr) Error() string {
func (e notFoundErr) Error() string {
return fmt.Sprintf("%s with id %s not found", e.typ, e.id)
}
+23
View File
@@ -0,0 +1,23 @@
package tracing
import (
"github.com/owncloud/ocis/accounts/pkg/config"
pkgtrace "github.com/owncloud/ocis/ocis-pkg/tracing"
"go.opentelemetry.io/otel/trace"
)
var (
// TraceProvider is the global trace provider for the proxy service.
TraceProvider = trace.NewNoopTracerProvider()
)
func Configure(cfg *config.Config) error {
var err error
if cfg.Tracing.Enabled {
if TraceProvider, err = pkgtrace.GetTraceProvider(cfg.Tracing.Endpoint, cfg.Tracing.Collector, "accounts", cfg.Tracing.Type); err != nil {
return err
}
}
return nil
}
@@ -1,8 +1,8 @@
syntax = "proto3";
option go_package = "pkg/proto/v0;proto";
package com.owncloud.ocis.accounts.v0;
package accounts;
option go_package = "github.com/owncloud/ocis/accounts/pkg/proto/v0;proto";
import "google/api/field_behavior.proto";
import "google/api/annotations.proto";
@@ -13,27 +13,27 @@ import "google/protobuf/timestamp.proto";
import "protoc-gen-openapiv2/options/annotations.proto";
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "ownCloud Infinite Scale accounts";
version: "1.0.0";
contact: {
name: "ownCloud GmbH";
url: "https://github.com/owncloud/ocis";
email: "support@owncloud.com";
};
license: {
name: "Apache-2.0";
url: "https://github.com/owncloud/ocis/blob/master/LICENSE";
};
};
schemes: HTTP;
schemes: HTTPS;
consumes: "application/json";
produces: "application/json";
external_docs: {
description: "Developer Manual";
url: "https://owncloud.github.io/extensions/accounts/";
};
info: {
title: "ownCloud Infinite Scale accounts";
version: "1.0.0";
contact: {
name: "ownCloud GmbH";
url: "https://github.com/owncloud/ocis";
email: "support@owncloud.com";
};
license: {
name: "Apache-2.0";
url: "https://github.com/owncloud/ocis/blob/master/LICENSE";
};
};
schemes: HTTP;
schemes: HTTPS;
consumes: "application/json";
produces: "application/json";
external_docs: {
description: "Developer Manual";
url: "https://owncloud.dev/extensions/accounts/";
};
};
// Follow recommended Methods for rpc APIs https://cloud.google.com/apis/design/resources?hl=de#methods
@@ -247,7 +247,7 @@ message DeleteAccountRequest {
string id = 1;
}
// Account follows the properties of the ms graph api user resuorce.
// Account follows the properties of the ms graph api user resource.
// See https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties
message Account {
@@ -383,7 +383,7 @@ message Account {
repeated OnPremisesProvisioningError on_premises_provisioning_errors = 29;
// TODO do we need to sync uidnumber and gidnumber from the external ldap? we may assign different numbers so eos has a non colliding namespace.
// we can sync them to the (uid|gid)_number fileds but what if they changed in the external ldap and now collide?
// we can sync them to the (uid|gid)_number fields but what if they changed in the external ldap and now collide?
// move those properties to a posixaccount message so we can exchange that part with an external (readonly or writeable) ldap server?
// For an external user invited to the tenant using the invitation API, this property represents the invited user's invitation status.
+6 -4
View File
@@ -7,8 +7,9 @@ geekdocEditPath: edit/master/accounts/templates
geekdocFilePath: CONFIGURATION.tmpl
---
{{- define "options"}}
{{ $fnName := (last . ).Flags -}}
{{ range $opt := first . }}{{ with list $fnName $opt -}}
{{ $fnNames := (last . ).Flags -}}
{{ range $opt := first . }}
{{ range $fnName := $fnNames }}{{ with list $fnName $opt -}}
{{ $o := last . -}}
{{ if eq $o.FnName $fnName -}}
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
@@ -17,6 +18,7 @@ geekdocFilePath: CONFIGURATION.tmpl
{{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}
{{ end }}
{{`{{< toc >}}`}}
@@ -43,9 +45,9 @@ If you prefer to configure the service with environment variables you can see th
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
### Commandline flags
### Command-line flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
{{ $options := .Options -}}
{{ range $com := .Commands }}{{ with (list $options $com) -}}
Loaded 100 of 1155 files, more files were not shown because too many files have changed in this diff. Show more