link0518 commited on
Commit
2d02ec4
·
1 Parent(s): 01add6a
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. config.json +2 -2
  2. node_modules/.bin/crc32 +0 -16
  3. node_modules/.bin/crc32.cmd +0 -17
  4. node_modules/.bin/crc32.ps1 +0 -28
  5. node_modules/.bin/glob +0 -16
  6. node_modules/.bin/glob.cmd +0 -17
  7. node_modules/.bin/glob.ps1 +0 -28
  8. node_modules/.bin/mkdirp +0 -16
  9. node_modules/.bin/mkdirp.cmd +0 -17
  10. node_modules/.bin/mkdirp.ps1 +0 -28
  11. node_modules/.bin/node-which +0 -16
  12. node_modules/.bin/node-which.cmd +0 -17
  13. node_modules/.bin/node-which.ps1 +0 -28
  14. node_modules/.package-lock.json +0 -1910
  15. node_modules/@isaacs/cliui/LICENSE.txt +0 -14
  16. node_modules/@isaacs/cliui/README.md +0 -143
  17. node_modules/@isaacs/cliui/build/index.cjs +0 -317
  18. node_modules/@isaacs/cliui/build/index.d.cts +0 -43
  19. node_modules/@isaacs/cliui/build/lib/index.js +0 -302
  20. node_modules/@isaacs/cliui/index.mjs +0 -14
  21. node_modules/@isaacs/cliui/package.json +0 -86
  22. node_modules/@pkgjs/parseargs/.editorconfig +0 -14
  23. node_modules/@pkgjs/parseargs/CHANGELOG.md +0 -147
  24. node_modules/@pkgjs/parseargs/LICENSE +0 -201
  25. node_modules/@pkgjs/parseargs/README.md +0 -413
  26. node_modules/@pkgjs/parseargs/examples/is-default-value.js +0 -25
  27. node_modules/@pkgjs/parseargs/examples/limit-long-syntax.js +0 -35
  28. node_modules/@pkgjs/parseargs/examples/negate.js +0 -43
  29. node_modules/@pkgjs/parseargs/examples/no-repeated-options.js +0 -31
  30. node_modules/@pkgjs/parseargs/examples/ordered-options.mjs +0 -41
  31. node_modules/@pkgjs/parseargs/examples/simple-hard-coded.js +0 -26
  32. node_modules/@pkgjs/parseargs/index.js +0 -396
  33. node_modules/@pkgjs/parseargs/internal/errors.js +0 -47
  34. node_modules/@pkgjs/parseargs/internal/primordials.js +0 -393
  35. node_modules/@pkgjs/parseargs/internal/util.js +0 -14
  36. node_modules/@pkgjs/parseargs/internal/validators.js +0 -89
  37. node_modules/@pkgjs/parseargs/package.json +0 -36
  38. node_modules/@pkgjs/parseargs/utils.js +0 -198
  39. node_modules/abort-controller/LICENSE +0 -21
  40. node_modules/abort-controller/README.md +0 -98
  41. node_modules/abort-controller/browser.js +0 -13
  42. node_modules/abort-controller/browser.mjs +0 -11
  43. node_modules/abort-controller/dist/abort-controller.d.ts +0 -43
  44. node_modules/abort-controller/dist/abort-controller.js +0 -127
  45. node_modules/abort-controller/dist/abort-controller.js.map +0 -1
  46. node_modules/abort-controller/dist/abort-controller.mjs +0 -118
  47. node_modules/abort-controller/dist/abort-controller.mjs.map +0 -1
  48. node_modules/abort-controller/dist/abort-controller.umd.js +0 -5
  49. node_modules/abort-controller/dist/abort-controller.umd.js.map +0 -1
  50. node_modules/abort-controller/package.json +0 -97
config.json CHANGED
@@ -18,7 +18,7 @@
18
  "security": {
19
  "maxRequestSize": "50mb",
20
  "apiKey": "sk-admin",
21
- "adminPassword": "admin123"
22
  },
23
- "systemInstruction": "你是聊天机器人,名字叫萌萌,如同名字这般,你的性格是软软糯糯萌萌哒的,专门为用户提供聊天和情绪价值,协助进行小说创作或者角色扮演"
24
  }
 
18
  "security": {
19
  "maxRequestSize": "50mb",
20
  "apiKey": "sk-admin",
21
+ "adminPassword": "1"
22
  },
23
+ "systemInstruction": ""
24
  }
node_modules/.bin/crc32 DELETED
@@ -1,16 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -x "$basedir/node" ]; then
13
- exec "$basedir/node" "$basedir/../crc-32/bin/crc32.njs" "$@"
14
- else
15
- exec node "$basedir/../crc-32/bin/crc32.njs" "$@"
16
- fi
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/.bin/crc32.cmd DELETED
@@ -1,17 +0,0 @@
1
- @ECHO off
2
- GOTO start
3
- :find_dp0
4
- SET dp0=%~dp0
5
- EXIT /b
6
- :start
7
- SETLOCAL
8
- CALL :find_dp0
9
-
10
- IF EXIST "%dp0%\node.exe" (
11
- SET "_prog=%dp0%\node.exe"
12
- ) ELSE (
13
- SET "_prog=node"
14
- SET PATHEXT=%PATHEXT:;.JS;=;%
15
- )
16
-
17
- endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\crc-32\bin\crc32.njs" %*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/.bin/crc32.ps1 DELETED
@@ -1,28 +0,0 @@
1
- #!/usr/bin/env pwsh
2
- $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
-
4
- $exe=""
5
- if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6
- # Fix case when both the Windows and Linux builds of Node
7
- # are installed in the same directory
8
- $exe=".exe"
9
- }
10
- $ret=0
11
- if (Test-Path "$basedir/node$exe") {
12
- # Support pipeline input
13
- if ($MyInvocation.ExpectingInput) {
14
- $input | & "$basedir/node$exe" "$basedir/../crc-32/bin/crc32.njs" $args
15
- } else {
16
- & "$basedir/node$exe" "$basedir/../crc-32/bin/crc32.njs" $args
17
- }
18
- $ret=$LASTEXITCODE
19
- } else {
20
- # Support pipeline input
21
- if ($MyInvocation.ExpectingInput) {
22
- $input | & "node$exe" "$basedir/../crc-32/bin/crc32.njs" $args
23
- } else {
24
- & "node$exe" "$basedir/../crc-32/bin/crc32.njs" $args
25
- }
26
- $ret=$LASTEXITCODE
27
- }
28
- exit $ret
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/.bin/glob DELETED
@@ -1,16 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -x "$basedir/node" ]; then
13
- exec "$basedir/node" "$basedir/../glob/dist/esm/bin.mjs" "$@"
14
- else
15
- exec node "$basedir/../glob/dist/esm/bin.mjs" "$@"
16
- fi
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/.bin/glob.cmd DELETED
@@ -1,17 +0,0 @@
1
- @ECHO off
2
- GOTO start
3
- :find_dp0
4
- SET dp0=%~dp0
5
- EXIT /b
6
- :start
7
- SETLOCAL
8
- CALL :find_dp0
9
-
10
- IF EXIST "%dp0%\node.exe" (
11
- SET "_prog=%dp0%\node.exe"
12
- ) ELSE (
13
- SET "_prog=node"
14
- SET PATHEXT=%PATHEXT:;.JS;=;%
15
- )
16
-
17
- endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\glob\dist\esm\bin.mjs" %*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/.bin/glob.ps1 DELETED
@@ -1,28 +0,0 @@
1
- #!/usr/bin/env pwsh
2
- $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
-
4
- $exe=""
5
- if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6
- # Fix case when both the Windows and Linux builds of Node
7
- # are installed in the same directory
8
- $exe=".exe"
9
- }
10
- $ret=0
11
- if (Test-Path "$basedir/node$exe") {
12
- # Support pipeline input
13
- if ($MyInvocation.ExpectingInput) {
14
- $input | & "$basedir/node$exe" "$basedir/../glob/dist/esm/bin.mjs" $args
15
- } else {
16
- & "$basedir/node$exe" "$basedir/../glob/dist/esm/bin.mjs" $args
17
- }
18
- $ret=$LASTEXITCODE
19
- } else {
20
- # Support pipeline input
21
- if ($MyInvocation.ExpectingInput) {
22
- $input | & "node$exe" "$basedir/../glob/dist/esm/bin.mjs" $args
23
- } else {
24
- & "node$exe" "$basedir/../glob/dist/esm/bin.mjs" $args
25
- }
26
- $ret=$LASTEXITCODE
27
- }
28
- exit $ret
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/.bin/mkdirp DELETED
@@ -1,16 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -x "$basedir/node" ]; then
13
- exec "$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@"
14
- else
15
- exec node "$basedir/../mkdirp/bin/cmd.js" "$@"
16
- fi
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/.bin/mkdirp.cmd DELETED
@@ -1,17 +0,0 @@
1
- @ECHO off
2
- GOTO start
3
- :find_dp0
4
- SET dp0=%~dp0
5
- EXIT /b
6
- :start
7
- SETLOCAL
8
- CALL :find_dp0
9
-
10
- IF EXIST "%dp0%\node.exe" (
11
- SET "_prog=%dp0%\node.exe"
12
- ) ELSE (
13
- SET "_prog=node"
14
- SET PATHEXT=%PATHEXT:;.JS;=;%
15
- )
16
-
17
- endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mkdirp\bin\cmd.js" %*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/.bin/mkdirp.ps1 DELETED
@@ -1,28 +0,0 @@
1
- #!/usr/bin/env pwsh
2
- $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
-
4
- $exe=""
5
- if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6
- # Fix case when both the Windows and Linux builds of Node
7
- # are installed in the same directory
8
- $exe=".exe"
9
- }
10
- $ret=0
11
- if (Test-Path "$basedir/node$exe") {
12
- # Support pipeline input
13
- if ($MyInvocation.ExpectingInput) {
14
- $input | & "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
15
- } else {
16
- & "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
17
- }
18
- $ret=$LASTEXITCODE
19
- } else {
20
- # Support pipeline input
21
- if ($MyInvocation.ExpectingInput) {
22
- $input | & "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
23
- } else {
24
- & "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
25
- }
26
- $ret=$LASTEXITCODE
27
- }
28
- exit $ret
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/.bin/node-which DELETED
@@ -1,16 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -x "$basedir/node" ]; then
13
- exec "$basedir/node" "$basedir/../which/bin/node-which" "$@"
14
- else
15
- exec node "$basedir/../which/bin/node-which" "$@"
16
- fi
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/.bin/node-which.cmd DELETED
@@ -1,17 +0,0 @@
1
- @ECHO off
2
- GOTO start
3
- :find_dp0
4
- SET dp0=%~dp0
5
- EXIT /b
6
- :start
7
- SETLOCAL
8
- CALL :find_dp0
9
-
10
- IF EXIST "%dp0%\node.exe" (
11
- SET "_prog=%dp0%\node.exe"
12
- ) ELSE (
13
- SET "_prog=node"
14
- SET PATHEXT=%PATHEXT:;.JS;=;%
15
- )
16
-
17
- endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\which\bin\node-which" %*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/.bin/node-which.ps1 DELETED
@@ -1,28 +0,0 @@
1
- #!/usr/bin/env pwsh
2
- $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
-
4
- $exe=""
5
- if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6
- # Fix case when both the Windows and Linux builds of Node
7
- # are installed in the same directory
8
- $exe=".exe"
9
- }
10
- $ret=0
11
- if (Test-Path "$basedir/node$exe") {
12
- # Support pipeline input
13
- if ($MyInvocation.ExpectingInput) {
14
- $input | & "$basedir/node$exe" "$basedir/../which/bin/node-which" $args
15
- } else {
16
- & "$basedir/node$exe" "$basedir/../which/bin/node-which" $args
17
- }
18
- $ret=$LASTEXITCODE
19
- } else {
20
- # Support pipeline input
21
- if ($MyInvocation.ExpectingInput) {
22
- $input | & "node$exe" "$basedir/../which/bin/node-which" $args
23
- } else {
24
- & "node$exe" "$basedir/../which/bin/node-which" $args
25
- }
26
- $ret=$LASTEXITCODE
27
- }
28
- exit $ret
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/.package-lock.json DELETED
@@ -1,1910 +0,0 @@
1
- {
2
- "name": "antigravity-to-openai",
3
- "version": "1.0.0",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "node_modules/@isaacs/cliui": {
8
- "version": "8.0.2",
9
- "resolved": "https://registry.npmmirror.com/@isaacs/cliui/-/cliui-8.0.2.tgz",
10
- "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",
11
- "license": "ISC",
12
- "dependencies": {
13
- "string-width": "^5.1.2",
14
- "string-width-cjs": "npm:string-width@^4.2.0",
15
- "strip-ansi": "^7.0.1",
16
- "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",
17
- "wrap-ansi": "^8.1.0",
18
- "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"
19
- },
20
- "engines": {
21
- "node": ">=12"
22
- }
23
- },
24
- "node_modules/@pkgjs/parseargs": {
25
- "version": "0.11.0",
26
- "resolved": "https://registry.npmmirror.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",
27
- "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",
28
- "license": "MIT",
29
- "optional": true,
30
- "engines": {
31
- "node": ">=14"
32
- }
33
- },
34
- "node_modules/abort-controller": {
35
- "version": "3.0.0",
36
- "resolved": "https://registry.npmmirror.com/abort-controller/-/abort-controller-3.0.0.tgz",
37
- "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
38
- "license": "MIT",
39
- "dependencies": {
40
- "event-target-shim": "^5.0.0"
41
- },
42
- "engines": {
43
- "node": ">=6.5"
44
- }
45
- },
46
- "node_modules/accepts": {
47
- "version": "2.0.0",
48
- "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",
49
- "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",
50
- "license": "MIT",
51
- "dependencies": {
52
- "mime-types": "^3.0.0",
53
- "negotiator": "^1.0.0"
54
- },
55
- "engines": {
56
- "node": ">= 0.6"
57
- }
58
- },
59
- "node_modules/adm-zip": {
60
- "version": "0.5.16",
61
- "resolved": "https://registry.npmmirror.com/adm-zip/-/adm-zip-0.5.16.tgz",
62
- "integrity": "sha512-TGw5yVi4saajsSEgz25grObGHEUaDrniwvA2qwSC060KfqGPdglhvPMA2lPIoxs3PQIItj2iag35fONcQqgUaQ==",
63
- "license": "MIT",
64
- "engines": {
65
- "node": ">=12.0"
66
- }
67
- },
68
- "node_modules/ansi-regex": {
69
- "version": "6.2.2",
70
- "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.2.2.tgz",
71
- "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
72
- "license": "MIT",
73
- "engines": {
74
- "node": ">=12"
75
- },
76
- "funding": {
77
- "url": "https://github.com/chalk/ansi-regex?sponsor=1"
78
- }
79
- },
80
- "node_modules/ansi-styles": {
81
- "version": "6.2.3",
82
- "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.3.tgz",
83
- "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
84
- "license": "MIT",
85
- "engines": {
86
- "node": ">=12"
87
- },
88
- "funding": {
89
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
90
- }
91
- },
92
- "node_modules/append-field": {
93
- "version": "1.0.0",
94
- "resolved": "https://registry.npmmirror.com/append-field/-/append-field-1.0.0.tgz",
95
- "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==",
96
- "license": "MIT"
97
- },
98
- "node_modules/archiver": {
99
- "version": "7.0.1",
100
- "resolved": "https://registry.npmmirror.com/archiver/-/archiver-7.0.1.tgz",
101
- "integrity": "sha512-ZcbTaIqJOfCc03QwD468Unz/5Ir8ATtvAHsK+FdXbDIbGfihqh9mrvdcYunQzqn4HrvWWaFyaxJhGZagaJJpPQ==",
102
- "license": "MIT",
103
- "dependencies": {
104
- "archiver-utils": "^5.0.2",
105
- "async": "^3.2.4",
106
- "buffer-crc32": "^1.0.0",
107
- "readable-stream": "^4.0.0",
108
- "readdir-glob": "^1.1.2",
109
- "tar-stream": "^3.0.0",
110
- "zip-stream": "^6.0.1"
111
- },
112
- "engines": {
113
- "node": ">= 14"
114
- }
115
- },
116
- "node_modules/archiver-utils": {
117
- "version": "5.0.2",
118
- "resolved": "https://registry.npmmirror.com/archiver-utils/-/archiver-utils-5.0.2.tgz",
119
- "integrity": "sha512-wuLJMmIBQYCsGZgYLTy5FIB2pF6Lfb6cXMSF8Qywwk3t20zWnAi7zLcQFdKQmIB8wyZpY5ER38x08GbwtR2cLA==",
120
- "license": "MIT",
121
- "dependencies": {
122
- "glob": "^10.0.0",
123
- "graceful-fs": "^4.2.0",
124
- "is-stream": "^2.0.1",
125
- "lazystream": "^1.0.0",
126
- "lodash": "^4.17.15",
127
- "normalize-path": "^3.0.0",
128
- "readable-stream": "^4.0.0"
129
- },
130
- "engines": {
131
- "node": ">= 14"
132
- }
133
- },
134
- "node_modules/async": {
135
- "version": "3.2.6",
136
- "resolved": "https://registry.npmmirror.com/async/-/async-3.2.6.tgz",
137
- "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",
138
- "license": "MIT"
139
- },
140
- "node_modules/b4a": {
141
- "version": "1.7.3",
142
- "resolved": "https://registry.npmmirror.com/b4a/-/b4a-1.7.3.tgz",
143
- "integrity": "sha512-5Q2mfq2WfGuFp3uS//0s6baOJLMoVduPYVeNmDYxu5OUA1/cBfvr2RIS7vi62LdNj/urk1hfmj867I3qt6uZ7Q==",
144
- "license": "Apache-2.0",
145
- "peerDependencies": {
146
- "react-native-b4a": "*"
147
- },
148
- "peerDependenciesMeta": {
149
- "react-native-b4a": {
150
- "optional": true
151
- }
152
- }
153
- },
154
- "node_modules/balanced-match": {
155
- "version": "1.0.2",
156
- "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz",
157
- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
158
- "license": "MIT"
159
- },
160
- "node_modules/bare-events": {
161
- "version": "2.8.2",
162
- "resolved": "https://registry.npmmirror.com/bare-events/-/bare-events-2.8.2.tgz",
163
- "integrity": "sha512-riJjyv1/mHLIPX4RwiK+oW9/4c3TEUeORHKefKAKnZ5kyslbN+HXowtbaVEqt4IMUB7OXlfixcs6gsFeo/jhiQ==",
164
- "license": "Apache-2.0",
165
- "peerDependencies": {
166
- "bare-abort-controller": "*"
167
- },
168
- "peerDependenciesMeta": {
169
- "bare-abort-controller": {
170
- "optional": true
171
- }
172
- }
173
- },
174
- "node_modules/base64-js": {
175
- "version": "1.5.1",
176
- "resolved": "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz",
177
- "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
178
- "funding": [
179
- {
180
- "type": "github",
181
- "url": "https://github.com/sponsors/feross"
182
- },
183
- {
184
- "type": "patreon",
185
- "url": "https://www.patreon.com/feross"
186
- },
187
- {
188
- "type": "consulting",
189
- "url": "https://feross.org/support"
190
- }
191
- ],
192
- "license": "MIT"
193
- },
194
- "node_modules/body-parser": {
195
- "version": "2.2.0",
196
- "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.0.tgz",
197
- "integrity": "sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg==",
198
- "license": "MIT",
199
- "dependencies": {
200
- "bytes": "^3.1.2",
201
- "content-type": "^1.0.5",
202
- "debug": "^4.4.0",
203
- "http-errors": "^2.0.0",
204
- "iconv-lite": "^0.6.3",
205
- "on-finished": "^2.4.1",
206
- "qs": "^6.14.0",
207
- "raw-body": "^3.0.0",
208
- "type-is": "^2.0.0"
209
- },
210
- "engines": {
211
- "node": ">=18"
212
- }
213
- },
214
- "node_modules/brace-expansion": {
215
- "version": "2.0.2",
216
- "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.2.tgz",
217
- "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
218
- "license": "MIT",
219
- "dependencies": {
220
- "balanced-match": "^1.0.0"
221
- }
222
- },
223
- "node_modules/buffer": {
224
- "version": "6.0.3",
225
- "resolved": "https://registry.npmmirror.com/buffer/-/buffer-6.0.3.tgz",
226
- "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",
227
- "funding": [
228
- {
229
- "type": "github",
230
- "url": "https://github.com/sponsors/feross"
231
- },
232
- {
233
- "type": "patreon",
234
- "url": "https://www.patreon.com/feross"
235
- },
236
- {
237
- "type": "consulting",
238
- "url": "https://feross.org/support"
239
- }
240
- ],
241
- "license": "MIT",
242
- "dependencies": {
243
- "base64-js": "^1.3.1",
244
- "ieee754": "^1.2.1"
245
- }
246
- },
247
- "node_modules/buffer-crc32": {
248
- "version": "1.0.0",
249
- "resolved": "https://registry.npmmirror.com/buffer-crc32/-/buffer-crc32-1.0.0.tgz",
250
- "integrity": "sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==",
251
- "license": "MIT",
252
- "engines": {
253
- "node": ">=8.0.0"
254
- }
255
- },
256
- "node_modules/buffer-from": {
257
- "version": "1.1.2",
258
- "resolved": "https://registry.npmmirror.com/buffer-from/-/buffer-from-1.1.2.tgz",
259
- "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
260
- "license": "MIT"
261
- },
262
- "node_modules/busboy": {
263
- "version": "1.6.0",
264
- "resolved": "https://registry.npmmirror.com/busboy/-/busboy-1.6.0.tgz",
265
- "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==",
266
- "dependencies": {
267
- "streamsearch": "^1.1.0"
268
- },
269
- "engines": {
270
- "node": ">=10.16.0"
271
- }
272
- },
273
- "node_modules/bytes": {
274
- "version": "3.1.2",
275
- "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
276
- "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
277
- "license": "MIT",
278
- "engines": {
279
- "node": ">= 0.8"
280
- }
281
- },
282
- "node_modules/call-bind-apply-helpers": {
283
- "version": "1.0.2",
284
- "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
285
- "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
286
- "license": "MIT",
287
- "dependencies": {
288
- "es-errors": "^1.3.0",
289
- "function-bind": "^1.1.2"
290
- },
291
- "engines": {
292
- "node": ">= 0.4"
293
- }
294
- },
295
- "node_modules/call-bound": {
296
- "version": "1.0.4",
297
- "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
298
- "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
299
- "license": "MIT",
300
- "dependencies": {
301
- "call-bind-apply-helpers": "^1.0.2",
302
- "get-intrinsic": "^1.3.0"
303
- },
304
- "engines": {
305
- "node": ">= 0.4"
306
- },
307
- "funding": {
308
- "url": "https://github.com/sponsors/ljharb"
309
- }
310
- },
311
- "node_modules/color-convert": {
312
- "version": "2.0.1",
313
- "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
314
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
315
- "license": "MIT",
316
- "dependencies": {
317
- "color-name": "~1.1.4"
318
- },
319
- "engines": {
320
- "node": ">=7.0.0"
321
- }
322
- },
323
- "node_modules/color-name": {
324
- "version": "1.1.4",
325
- "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
326
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
327
- "license": "MIT"
328
- },
329
- "node_modules/compress-commons": {
330
- "version": "6.0.2",
331
- "resolved": "https://registry.npmmirror.com/compress-commons/-/compress-commons-6.0.2.tgz",
332
- "integrity": "sha512-6FqVXeETqWPoGcfzrXb37E50NP0LXT8kAMu5ooZayhWWdgEY4lBEEcbQNXtkuKQsGduxiIcI4gOTsxTmuq/bSg==",
333
- "license": "MIT",
334
- "dependencies": {
335
- "crc-32": "^1.2.0",
336
- "crc32-stream": "^6.0.0",
337
- "is-stream": "^2.0.1",
338
- "normalize-path": "^3.0.0",
339
- "readable-stream": "^4.0.0"
340
- },
341
- "engines": {
342
- "node": ">= 14"
343
- }
344
- },
345
- "node_modules/concat-stream": {
346
- "version": "2.0.0",
347
- "resolved": "https://registry.npmmirror.com/concat-stream/-/concat-stream-2.0.0.tgz",
348
- "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==",
349
- "engines": [
350
- "node >= 6.0"
351
- ],
352
- "license": "MIT",
353
- "dependencies": {
354
- "buffer-from": "^1.0.0",
355
- "inherits": "^2.0.3",
356
- "readable-stream": "^3.0.2",
357
- "typedarray": "^0.0.6"
358
- }
359
- },
360
- "node_modules/concat-stream/node_modules/readable-stream": {
361
- "version": "3.6.2",
362
- "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-3.6.2.tgz",
363
- "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
364
- "license": "MIT",
365
- "dependencies": {
366
- "inherits": "^2.0.3",
367
- "string_decoder": "^1.1.1",
368
- "util-deprecate": "^1.0.1"
369
- },
370
- "engines": {
371
- "node": ">= 6"
372
- }
373
- },
374
- "node_modules/content-disposition": {
375
- "version": "1.0.1",
376
- "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.1.tgz",
377
- "integrity": "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==",
378
- "license": "MIT",
379
- "engines": {
380
- "node": ">=18"
381
- },
382
- "funding": {
383
- "type": "opencollective",
384
- "url": "https://opencollective.com/express"
385
- }
386
- },
387
- "node_modules/content-type": {
388
- "version": "1.0.5",
389
- "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
390
- "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
391
- "license": "MIT",
392
- "engines": {
393
- "node": ">= 0.6"
394
- }
395
- },
396
- "node_modules/cookie": {
397
- "version": "0.7.2",
398
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
399
- "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
400
- "license": "MIT",
401
- "engines": {
402
- "node": ">= 0.6"
403
- }
404
- },
405
- "node_modules/cookie-signature": {
406
- "version": "1.2.2",
407
- "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",
408
- "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",
409
- "license": "MIT",
410
- "engines": {
411
- "node": ">=6.6.0"
412
- }
413
- },
414
- "node_modules/core-util-is": {
415
- "version": "1.0.3",
416
- "resolved": "https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.3.tgz",
417
- "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
418
- "license": "MIT"
419
- },
420
- "node_modules/crc-32": {
421
- "version": "1.2.2",
422
- "resolved": "https://registry.npmmirror.com/crc-32/-/crc-32-1.2.2.tgz",
423
- "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==",
424
- "license": "Apache-2.0",
425
- "bin": {
426
- "crc32": "bin/crc32.njs"
427
- },
428
- "engines": {
429
- "node": ">=0.8"
430
- }
431
- },
432
- "node_modules/crc32-stream": {
433
- "version": "6.0.0",
434
- "resolved": "https://registry.npmmirror.com/crc32-stream/-/crc32-stream-6.0.0.tgz",
435
- "integrity": "sha512-piICUB6ei4IlTv1+653yq5+KoqfBYmj9bw6LqXoOneTMDXk5nM1qt12mFW1caG3LlJXEKW1Bp0WggEmIfQB34g==",
436
- "license": "MIT",
437
- "dependencies": {
438
- "crc-32": "^1.2.0",
439
- "readable-stream": "^4.0.0"
440
- },
441
- "engines": {
442
- "node": ">= 14"
443
- }
444
- },
445
- "node_modules/cross-spawn": {
446
- "version": "7.0.6",
447
- "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.6.tgz",
448
- "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
449
- "license": "MIT",
450
- "dependencies": {
451
- "path-key": "^3.1.0",
452
- "shebang-command": "^2.0.0",
453
- "which": "^2.0.1"
454
- },
455
- "engines": {
456
- "node": ">= 8"
457
- }
458
- },
459
- "node_modules/debug": {
460
- "version": "4.4.3",
461
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
462
- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
463
- "license": "MIT",
464
- "dependencies": {
465
- "ms": "^2.1.3"
466
- },
467
- "engines": {
468
- "node": ">=6.0"
469
- },
470
- "peerDependenciesMeta": {
471
- "supports-color": {
472
- "optional": true
473
- }
474
- }
475
- },
476
- "node_modules/depd": {
477
- "version": "2.0.0",
478
- "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
479
- "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
480
- "license": "MIT",
481
- "engines": {
482
- "node": ">= 0.8"
483
- }
484
- },
485
- "node_modules/dunder-proto": {
486
- "version": "1.0.1",
487
- "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
488
- "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
489
- "license": "MIT",
490
- "dependencies": {
491
- "call-bind-apply-helpers": "^1.0.1",
492
- "es-errors": "^1.3.0",
493
- "gopd": "^1.2.0"
494
- },
495
- "engines": {
496
- "node": ">= 0.4"
497
- }
498
- },
499
- "node_modules/eastasianwidth": {
500
- "version": "0.2.0",
501
- "resolved": "https://registry.npmmirror.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz",
502
- "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",
503
- "license": "MIT"
504
- },
505
- "node_modules/ee-first": {
506
- "version": "1.1.1",
507
- "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
508
- "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
509
- "license": "MIT"
510
- },
511
- "node_modules/emoji-regex": {
512
- "version": "9.2.2",
513
- "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-9.2.2.tgz",
514
- "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
515
- "license": "MIT"
516
- },
517
- "node_modules/encodeurl": {
518
- "version": "2.0.0",
519
- "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
520
- "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
521
- "license": "MIT",
522
- "engines": {
523
- "node": ">= 0.8"
524
- }
525
- },
526
- "node_modules/es-define-property": {
527
- "version": "1.0.1",
528
- "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
529
- "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
530
- "license": "MIT",
531
- "engines": {
532
- "node": ">= 0.4"
533
- }
534
- },
535
- "node_modules/es-errors": {
536
- "version": "1.3.0",
537
- "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
538
- "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
539
- "license": "MIT",
540
- "engines": {
541
- "node": ">= 0.4"
542
- }
543
- },
544
- "node_modules/es-object-atoms": {
545
- "version": "1.1.1",
546
- "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
547
- "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
548
- "license": "MIT",
549
- "dependencies": {
550
- "es-errors": "^1.3.0"
551
- },
552
- "engines": {
553
- "node": ">= 0.4"
554
- }
555
- },
556
- "node_modules/escape-html": {
557
- "version": "1.0.3",
558
- "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
559
- "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
560
- "license": "MIT"
561
- },
562
- "node_modules/etag": {
563
- "version": "1.8.1",
564
- "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
565
- "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
566
- "license": "MIT",
567
- "engines": {
568
- "node": ">= 0.6"
569
- }
570
- },
571
- "node_modules/event-target-shim": {
572
- "version": "5.0.1",
573
- "resolved": "https://registry.npmmirror.com/event-target-shim/-/event-target-shim-5.0.1.tgz",
574
- "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==",
575
- "license": "MIT",
576
- "engines": {
577
- "node": ">=6"
578
- }
579
- },
580
- "node_modules/events": {
581
- "version": "3.3.0",
582
- "resolved": "https://registry.npmmirror.com/events/-/events-3.3.0.tgz",
583
- "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==",
584
- "license": "MIT",
585
- "engines": {
586
- "node": ">=0.8.x"
587
- }
588
- },
589
- "node_modules/events-universal": {
590
- "version": "1.0.1",
591
- "resolved": "https://registry.npmmirror.com/events-universal/-/events-universal-1.0.1.tgz",
592
- "integrity": "sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==",
593
- "license": "Apache-2.0",
594
- "dependencies": {
595
- "bare-events": "^2.7.0"
596
- }
597
- },
598
- "node_modules/express": {
599
- "version": "5.1.0",
600
- "resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz",
601
- "integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==",
602
- "license": "MIT",
603
- "dependencies": {
604
- "accepts": "^2.0.0",
605
- "body-parser": "^2.2.0",
606
- "content-disposition": "^1.0.0",
607
- "content-type": "^1.0.5",
608
- "cookie": "^0.7.1",
609
- "cookie-signature": "^1.2.1",
610
- "debug": "^4.4.0",
611
- "encodeurl": "^2.0.0",
612
- "escape-html": "^1.0.3",
613
- "etag": "^1.8.1",
614
- "finalhandler": "^2.1.0",
615
- "fresh": "^2.0.0",
616
- "http-errors": "^2.0.0",
617
- "merge-descriptors": "^2.0.0",
618
- "mime-types": "^3.0.0",
619
- "on-finished": "^2.4.1",
620
- "once": "^1.4.0",
621
- "parseurl": "^1.3.3",
622
- "proxy-addr": "^2.0.7",
623
- "qs": "^6.14.0",
624
- "range-parser": "^1.2.1",
625
- "router": "^2.2.0",
626
- "send": "^1.1.0",
627
- "serve-static": "^2.2.0",
628
- "statuses": "^2.0.1",
629
- "type-is": "^2.0.1",
630
- "vary": "^1.1.2"
631
- },
632
- "engines": {
633
- "node": ">= 18"
634
- },
635
- "funding": {
636
- "type": "opencollective",
637
- "url": "https://opencollective.com/express"
638
- }
639
- },
640
- "node_modules/fast-fifo": {
641
- "version": "1.3.2",
642
- "resolved": "https://registry.npmmirror.com/fast-fifo/-/fast-fifo-1.3.2.tgz",
643
- "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==",
644
- "license": "MIT"
645
- },
646
- "node_modules/finalhandler": {
647
- "version": "2.1.0",
648
- "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz",
649
- "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==",
650
- "license": "MIT",
651
- "dependencies": {
652
- "debug": "^4.4.0",
653
- "encodeurl": "^2.0.0",
654
- "escape-html": "^1.0.3",
655
- "on-finished": "^2.4.1",
656
- "parseurl": "^1.3.3",
657
- "statuses": "^2.0.1"
658
- },
659
- "engines": {
660
- "node": ">= 0.8"
661
- }
662
- },
663
- "node_modules/foreground-child": {
664
- "version": "3.3.1",
665
- "resolved": "https://registry.npmmirror.com/foreground-child/-/foreground-child-3.3.1.tgz",
666
- "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",
667
- "license": "ISC",
668
- "dependencies": {
669
- "cross-spawn": "^7.0.6",
670
- "signal-exit": "^4.0.1"
671
- },
672
- "engines": {
673
- "node": ">=14"
674
- },
675
- "funding": {
676
- "url": "https://github.com/sponsors/isaacs"
677
- }
678
- },
679
- "node_modules/forwarded": {
680
- "version": "0.2.0",
681
- "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
682
- "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
683
- "license": "MIT",
684
- "engines": {
685
- "node": ">= 0.6"
686
- }
687
- },
688
- "node_modules/fresh": {
689
- "version": "2.0.0",
690
- "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",
691
- "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",
692
- "license": "MIT",
693
- "engines": {
694
- "node": ">= 0.8"
695
- }
696
- },
697
- "node_modules/function-bind": {
698
- "version": "1.1.2",
699
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
700
- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
701
- "license": "MIT",
702
- "funding": {
703
- "url": "https://github.com/sponsors/ljharb"
704
- }
705
- },
706
- "node_modules/get-intrinsic": {
707
- "version": "1.3.0",
708
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
709
- "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
710
- "license": "MIT",
711
- "dependencies": {
712
- "call-bind-apply-helpers": "^1.0.2",
713
- "es-define-property": "^1.0.1",
714
- "es-errors": "^1.3.0",
715
- "es-object-atoms": "^1.1.1",
716
- "function-bind": "^1.1.2",
717
- "get-proto": "^1.0.1",
718
- "gopd": "^1.2.0",
719
- "has-symbols": "^1.1.0",
720
- "hasown": "^2.0.2",
721
- "math-intrinsics": "^1.1.0"
722
- },
723
- "engines": {
724
- "node": ">= 0.4"
725
- },
726
- "funding": {
727
- "url": "https://github.com/sponsors/ljharb"
728
- }
729
- },
730
- "node_modules/get-proto": {
731
- "version": "1.0.1",
732
- "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
733
- "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
734
- "license": "MIT",
735
- "dependencies": {
736
- "dunder-proto": "^1.0.1",
737
- "es-object-atoms": "^1.0.0"
738
- },
739
- "engines": {
740
- "node": ">= 0.4"
741
- }
742
- },
743
- "node_modules/glob": {
744
- "version": "10.5.0",
745
- "resolved": "https://registry.npmmirror.com/glob/-/glob-10.5.0.tgz",
746
- "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",
747
- "license": "ISC",
748
- "dependencies": {
749
- "foreground-child": "^3.1.0",
750
- "jackspeak": "^3.1.2",
751
- "minimatch": "^9.0.4",
752
- "minipass": "^7.1.2",
753
- "package-json-from-dist": "^1.0.0",
754
- "path-scurry": "^1.11.1"
755
- },
756
- "bin": {
757
- "glob": "dist/esm/bin.mjs"
758
- },
759
- "funding": {
760
- "url": "https://github.com/sponsors/isaacs"
761
- }
762
- },
763
- "node_modules/gopd": {
764
- "version": "1.2.0",
765
- "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
766
- "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
767
- "license": "MIT",
768
- "engines": {
769
- "node": ">= 0.4"
770
- },
771
- "funding": {
772
- "url": "https://github.com/sponsors/ljharb"
773
- }
774
- },
775
- "node_modules/graceful-fs": {
776
- "version": "4.2.11",
777
- "resolved": "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.11.tgz",
778
- "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
779
- "license": "ISC"
780
- },
781
- "node_modules/has-symbols": {
782
- "version": "1.1.0",
783
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
784
- "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
785
- "license": "MIT",
786
- "engines": {
787
- "node": ">= 0.4"
788
- },
789
- "funding": {
790
- "url": "https://github.com/sponsors/ljharb"
791
- }
792
- },
793
- "node_modules/hasown": {
794
- "version": "2.0.2",
795
- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
796
- "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
797
- "license": "MIT",
798
- "dependencies": {
799
- "function-bind": "^1.1.2"
800
- },
801
- "engines": {
802
- "node": ">= 0.4"
803
- }
804
- },
805
- "node_modules/http-errors": {
806
- "version": "2.0.0",
807
- "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
808
- "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
809
- "license": "MIT",
810
- "dependencies": {
811
- "depd": "2.0.0",
812
- "inherits": "2.0.4",
813
- "setprototypeof": "1.2.0",
814
- "statuses": "2.0.1",
815
- "toidentifier": "1.0.1"
816
- },
817
- "engines": {
818
- "node": ">= 0.8"
819
- }
820
- },
821
- "node_modules/http-errors/node_modules/statuses": {
822
- "version": "2.0.1",
823
- "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
824
- "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
825
- "license": "MIT",
826
- "engines": {
827
- "node": ">= 0.8"
828
- }
829
- },
830
- "node_modules/iconv-lite": {
831
- "version": "0.6.3",
832
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
833
- "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
834
- "license": "MIT",
835
- "dependencies": {
836
- "safer-buffer": ">= 2.1.2 < 3.0.0"
837
- },
838
- "engines": {
839
- "node": ">=0.10.0"
840
- }
841
- },
842
- "node_modules/ieee754": {
843
- "version": "1.2.1",
844
- "resolved": "https://registry.npmmirror.com/ieee754/-/ieee754-1.2.1.tgz",
845
- "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
846
- "funding": [
847
- {
848
- "type": "github",
849
- "url": "https://github.com/sponsors/feross"
850
- },
851
- {
852
- "type": "patreon",
853
- "url": "https://www.patreon.com/feross"
854
- },
855
- {
856
- "type": "consulting",
857
- "url": "https://feross.org/support"
858
- }
859
- ],
860
- "license": "BSD-3-Clause"
861
- },
862
- "node_modules/inherits": {
863
- "version": "2.0.4",
864
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
865
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
866
- "license": "ISC"
867
- },
868
- "node_modules/ipaddr.js": {
869
- "version": "1.9.1",
870
- "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
871
- "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
872
- "license": "MIT",
873
- "engines": {
874
- "node": ">= 0.10"
875
- }
876
- },
877
- "node_modules/is-fullwidth-code-point": {
878
- "version": "3.0.0",
879
- "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
880
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
881
- "license": "MIT",
882
- "engines": {
883
- "node": ">=8"
884
- }
885
- },
886
- "node_modules/is-promise": {
887
- "version": "4.0.0",
888
- "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",
889
- "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",
890
- "license": "MIT"
891
- },
892
- "node_modules/is-stream": {
893
- "version": "2.0.1",
894
- "resolved": "https://registry.npmmirror.com/is-stream/-/is-stream-2.0.1.tgz",
895
- "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
896
- "license": "MIT",
897
- "engines": {
898
- "node": ">=8"
899
- },
900
- "funding": {
901
- "url": "https://github.com/sponsors/sindresorhus"
902
- }
903
- },
904
- "node_modules/isarray": {
905
- "version": "1.0.0",
906
- "resolved": "https://registry.npmmirror.com/isarray/-/isarray-1.0.0.tgz",
907
- "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",
908
- "license": "MIT"
909
- },
910
- "node_modules/isexe": {
911
- "version": "2.0.0",
912
- "resolved": "https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz",
913
- "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
914
- "license": "ISC"
915
- },
916
- "node_modules/jackspeak": {
917
- "version": "3.4.3",
918
- "resolved": "https://registry.npmmirror.com/jackspeak/-/jackspeak-3.4.3.tgz",
919
- "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",
920
- "license": "BlueOak-1.0.0",
921
- "dependencies": {
922
- "@isaacs/cliui": "^8.0.2"
923
- },
924
- "funding": {
925
- "url": "https://github.com/sponsors/isaacs"
926
- },
927
- "optionalDependencies": {
928
- "@pkgjs/parseargs": "^0.11.0"
929
- }
930
- },
931
- "node_modules/lazystream": {
932
- "version": "1.0.1",
933
- "resolved": "https://registry.npmmirror.com/lazystream/-/lazystream-1.0.1.tgz",
934
- "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==",
935
- "license": "MIT",
936
- "dependencies": {
937
- "readable-stream": "^2.0.5"
938
- },
939
- "engines": {
940
- "node": ">= 0.6.3"
941
- }
942
- },
943
- "node_modules/lazystream/node_modules/readable-stream": {
944
- "version": "2.3.8",
945
- "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-2.3.8.tgz",
946
- "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
947
- "license": "MIT",
948
- "dependencies": {
949
- "core-util-is": "~1.0.0",
950
- "inherits": "~2.0.3",
951
- "isarray": "~1.0.0",
952
- "process-nextick-args": "~2.0.0",
953
- "safe-buffer": "~5.1.1",
954
- "string_decoder": "~1.1.1",
955
- "util-deprecate": "~1.0.1"
956
- }
957
- },
958
- "node_modules/lazystream/node_modules/safe-buffer": {
959
- "version": "5.1.2",
960
- "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz",
961
- "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
962
- "license": "MIT"
963
- },
964
- "node_modules/lazystream/node_modules/string_decoder": {
965
- "version": "1.1.1",
966
- "resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.1.1.tgz",
967
- "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
968
- "license": "MIT",
969
- "dependencies": {
970
- "safe-buffer": "~5.1.0"
971
- }
972
- },
973
- "node_modules/lodash": {
974
- "version": "4.17.21",
975
- "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz",
976
- "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
977
- "license": "MIT"
978
- },
979
- "node_modules/lru-cache": {
980
- "version": "10.4.3",
981
- "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-10.4.3.tgz",
982
- "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",
983
- "license": "ISC"
984
- },
985
- "node_modules/math-intrinsics": {
986
- "version": "1.1.0",
987
- "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
988
- "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
989
- "license": "MIT",
990
- "engines": {
991
- "node": ">= 0.4"
992
- }
993
- },
994
- "node_modules/media-typer": {
995
- "version": "1.1.0",
996
- "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",
997
- "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",
998
- "license": "MIT",
999
- "engines": {
1000
- "node": ">= 0.8"
1001
- }
1002
- },
1003
- "node_modules/merge-descriptors": {
1004
- "version": "2.0.0",
1005
- "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",
1006
- "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",
1007
- "license": "MIT",
1008
- "engines": {
1009
- "node": ">=18"
1010
- },
1011
- "funding": {
1012
- "url": "https://github.com/sponsors/sindresorhus"
1013
- }
1014
- },
1015
- "node_modules/mime-db": {
1016
- "version": "1.54.0",
1017
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
1018
- "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
1019
- "license": "MIT",
1020
- "engines": {
1021
- "node": ">= 0.6"
1022
- }
1023
- },
1024
- "node_modules/mime-types": {
1025
- "version": "3.0.1",
1026
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.1.tgz",
1027
- "integrity": "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==",
1028
- "license": "MIT",
1029
- "dependencies": {
1030
- "mime-db": "^1.54.0"
1031
- },
1032
- "engines": {
1033
- "node": ">= 0.6"
1034
- }
1035
- },
1036
- "node_modules/minimatch": {
1037
- "version": "9.0.5",
1038
- "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz",
1039
- "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
1040
- "license": "ISC",
1041
- "dependencies": {
1042
- "brace-expansion": "^2.0.1"
1043
- },
1044
- "engines": {
1045
- "node": ">=16 || 14 >=14.17"
1046
- },
1047
- "funding": {
1048
- "url": "https://github.com/sponsors/isaacs"
1049
- }
1050
- },
1051
- "node_modules/minimist": {
1052
- "version": "1.2.8",
1053
- "resolved": "https://registry.npmmirror.com/minimist/-/minimist-1.2.8.tgz",
1054
- "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
1055
- "license": "MIT",
1056
- "funding": {
1057
- "url": "https://github.com/sponsors/ljharb"
1058
- }
1059
- },
1060
- "node_modules/minipass": {
1061
- "version": "7.1.2",
1062
- "resolved": "https://registry.npmmirror.com/minipass/-/minipass-7.1.2.tgz",
1063
- "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",
1064
- "license": "ISC",
1065
- "engines": {
1066
- "node": ">=16 || 14 >=14.17"
1067
- }
1068
- },
1069
- "node_modules/mkdirp": {
1070
- "version": "0.5.6",
1071
- "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-0.5.6.tgz",
1072
- "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
1073
- "license": "MIT",
1074
- "dependencies": {
1075
- "minimist": "^1.2.6"
1076
- },
1077
- "bin": {
1078
- "mkdirp": "bin/cmd.js"
1079
- }
1080
- },
1081
- "node_modules/ms": {
1082
- "version": "2.1.3",
1083
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1084
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
1085
- "license": "MIT"
1086
- },
1087
- "node_modules/multer": {
1088
- "version": "2.0.2",
1089
- "resolved": "https://registry.npmmirror.com/multer/-/multer-2.0.2.tgz",
1090
- "integrity": "sha512-u7f2xaZ/UG8oLXHvtF/oWTRvT44p9ecwBBqTwgJVq0+4BW1g8OW01TyMEGWBHbyMOYVHXslaut7qEQ1meATXgw==",
1091
- "license": "MIT",
1092
- "dependencies": {
1093
- "append-field": "^1.0.0",
1094
- "busboy": "^1.6.0",
1095
- "concat-stream": "^2.0.0",
1096
- "mkdirp": "^0.5.6",
1097
- "object-assign": "^4.1.1",
1098
- "type-is": "^1.6.18",
1099
- "xtend": "^4.0.2"
1100
- },
1101
- "engines": {
1102
- "node": ">= 10.16.0"
1103
- }
1104
- },
1105
- "node_modules/multer/node_modules/media-typer": {
1106
- "version": "0.3.0",
1107
- "resolved": "https://registry.npmmirror.com/media-typer/-/media-typer-0.3.0.tgz",
1108
- "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
1109
- "license": "MIT",
1110
- "engines": {
1111
- "node": ">= 0.6"
1112
- }
1113
- },
1114
- "node_modules/multer/node_modules/mime-db": {
1115
- "version": "1.52.0",
1116
- "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz",
1117
- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
1118
- "license": "MIT",
1119
- "engines": {
1120
- "node": ">= 0.6"
1121
- }
1122
- },
1123
- "node_modules/multer/node_modules/mime-types": {
1124
- "version": "2.1.35",
1125
- "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz",
1126
- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
1127
- "license": "MIT",
1128
- "dependencies": {
1129
- "mime-db": "1.52.0"
1130
- },
1131
- "engines": {
1132
- "node": ">= 0.6"
1133
- }
1134
- },
1135
- "node_modules/multer/node_modules/type-is": {
1136
- "version": "1.6.18",
1137
- "resolved": "https://registry.npmmirror.com/type-is/-/type-is-1.6.18.tgz",
1138
- "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
1139
- "license": "MIT",
1140
- "dependencies": {
1141
- "media-typer": "0.3.0",
1142
- "mime-types": "~2.1.24"
1143
- },
1144
- "engines": {
1145
- "node": ">= 0.6"
1146
- }
1147
- },
1148
- "node_modules/negotiator": {
1149
- "version": "1.0.0",
1150
- "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
1151
- "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",
1152
- "license": "MIT",
1153
- "engines": {
1154
- "node": ">= 0.6"
1155
- }
1156
- },
1157
- "node_modules/normalize-path": {
1158
- "version": "3.0.0",
1159
- "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz",
1160
- "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
1161
- "license": "MIT",
1162
- "engines": {
1163
- "node": ">=0.10.0"
1164
- }
1165
- },
1166
- "node_modules/object-assign": {
1167
- "version": "4.1.1",
1168
- "resolved": "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz",
1169
- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
1170
- "license": "MIT",
1171
- "engines": {
1172
- "node": ">=0.10.0"
1173
- }
1174
- },
1175
- "node_modules/object-inspect": {
1176
- "version": "1.13.4",
1177
- "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
1178
- "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
1179
- "license": "MIT",
1180
- "engines": {
1181
- "node": ">= 0.4"
1182
- },
1183
- "funding": {
1184
- "url": "https://github.com/sponsors/ljharb"
1185
- }
1186
- },
1187
- "node_modules/on-finished": {
1188
- "version": "2.4.1",
1189
- "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
1190
- "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
1191
- "license": "MIT",
1192
- "dependencies": {
1193
- "ee-first": "1.1.1"
1194
- },
1195
- "engines": {
1196
- "node": ">= 0.8"
1197
- }
1198
- },
1199
- "node_modules/once": {
1200
- "version": "1.4.0",
1201
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
1202
- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
1203
- "license": "ISC",
1204
- "dependencies": {
1205
- "wrappy": "1"
1206
- }
1207
- },
1208
- "node_modules/package-json-from-dist": {
1209
- "version": "1.0.1",
1210
- "resolved": "https://registry.npmmirror.com/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
1211
- "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",
1212
- "license": "BlueOak-1.0.0"
1213
- },
1214
- "node_modules/parseurl": {
1215
- "version": "1.3.3",
1216
- "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
1217
- "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
1218
- "license": "MIT",
1219
- "engines": {
1220
- "node": ">= 0.8"
1221
- }
1222
- },
1223
- "node_modules/path-key": {
1224
- "version": "3.1.1",
1225
- "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz",
1226
- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
1227
- "license": "MIT",
1228
- "engines": {
1229
- "node": ">=8"
1230
- }
1231
- },
1232
- "node_modules/path-scurry": {
1233
- "version": "1.11.1",
1234
- "resolved": "https://registry.npmmirror.com/path-scurry/-/path-scurry-1.11.1.tgz",
1235
- "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",
1236
- "license": "BlueOak-1.0.0",
1237
- "dependencies": {
1238
- "lru-cache": "^10.2.0",
1239
- "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
1240
- },
1241
- "engines": {
1242
- "node": ">=16 || 14 >=14.18"
1243
- },
1244
- "funding": {
1245
- "url": "https://github.com/sponsors/isaacs"
1246
- }
1247
- },
1248
- "node_modules/path-to-regexp": {
1249
- "version": "8.3.0",
1250
- "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz",
1251
- "integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==",
1252
- "license": "MIT",
1253
- "funding": {
1254
- "type": "opencollective",
1255
- "url": "https://opencollective.com/express"
1256
- }
1257
- },
1258
- "node_modules/process": {
1259
- "version": "0.11.10",
1260
- "resolved": "https://registry.npmmirror.com/process/-/process-0.11.10.tgz",
1261
- "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==",
1262
- "license": "MIT",
1263
- "engines": {
1264
- "node": ">= 0.6.0"
1265
- }
1266
- },
1267
- "node_modules/process-nextick-args": {
1268
- "version": "2.0.1",
1269
- "resolved": "https://registry.npmmirror.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
1270
- "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
1271
- "license": "MIT"
1272
- },
1273
- "node_modules/proxy-addr": {
1274
- "version": "2.0.7",
1275
- "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
1276
- "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
1277
- "license": "MIT",
1278
- "dependencies": {
1279
- "forwarded": "0.2.0",
1280
- "ipaddr.js": "1.9.1"
1281
- },
1282
- "engines": {
1283
- "node": ">= 0.10"
1284
- }
1285
- },
1286
- "node_modules/qs": {
1287
- "version": "6.14.0",
1288
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz",
1289
- "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==",
1290
- "license": "BSD-3-Clause",
1291
- "dependencies": {
1292
- "side-channel": "^1.1.0"
1293
- },
1294
- "engines": {
1295
- "node": ">=0.6"
1296
- },
1297
- "funding": {
1298
- "url": "https://github.com/sponsors/ljharb"
1299
- }
1300
- },
1301
- "node_modules/range-parser": {
1302
- "version": "1.2.1",
1303
- "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
1304
- "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
1305
- "license": "MIT",
1306
- "engines": {
1307
- "node": ">= 0.6"
1308
- }
1309
- },
1310
- "node_modules/raw-body": {
1311
- "version": "3.0.1",
1312
- "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.1.tgz",
1313
- "integrity": "sha512-9G8cA+tuMS75+6G/TzW8OtLzmBDMo8p1JRxN5AZ+LAp8uxGA8V8GZm4GQ4/N5QNQEnLmg6SS7wyuSmbKepiKqA==",
1314
- "license": "MIT",
1315
- "dependencies": {
1316
- "bytes": "3.1.2",
1317
- "http-errors": "2.0.0",
1318
- "iconv-lite": "0.7.0",
1319
- "unpipe": "1.0.0"
1320
- },
1321
- "engines": {
1322
- "node": ">= 0.10"
1323
- }
1324
- },
1325
- "node_modules/raw-body/node_modules/iconv-lite": {
1326
- "version": "0.7.0",
1327
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz",
1328
- "integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==",
1329
- "license": "MIT",
1330
- "dependencies": {
1331
- "safer-buffer": ">= 2.1.2 < 3.0.0"
1332
- },
1333
- "engines": {
1334
- "node": ">=0.10.0"
1335
- },
1336
- "funding": {
1337
- "type": "opencollective",
1338
- "url": "https://opencollective.com/express"
1339
- }
1340
- },
1341
- "node_modules/readable-stream": {
1342
- "version": "4.7.0",
1343
- "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-4.7.0.tgz",
1344
- "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==",
1345
- "license": "MIT",
1346
- "dependencies": {
1347
- "abort-controller": "^3.0.0",
1348
- "buffer": "^6.0.3",
1349
- "events": "^3.3.0",
1350
- "process": "^0.11.10",
1351
- "string_decoder": "^1.3.0"
1352
- },
1353
- "engines": {
1354
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
1355
- }
1356
- },
1357
- "node_modules/readdir-glob": {
1358
- "version": "1.1.3",
1359
- "resolved": "https://registry.npmmirror.com/readdir-glob/-/readdir-glob-1.1.3.tgz",
1360
- "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==",
1361
- "license": "Apache-2.0",
1362
- "dependencies": {
1363
- "minimatch": "^5.1.0"
1364
- }
1365
- },
1366
- "node_modules/readdir-glob/node_modules/minimatch": {
1367
- "version": "5.1.6",
1368
- "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-5.1.6.tgz",
1369
- "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
1370
- "license": "ISC",
1371
- "dependencies": {
1372
- "brace-expansion": "^2.0.1"
1373
- },
1374
- "engines": {
1375
- "node": ">=10"
1376
- }
1377
- },
1378
- "node_modules/router": {
1379
- "version": "2.2.0",
1380
- "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",
1381
- "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
1382
- "license": "MIT",
1383
- "dependencies": {
1384
- "debug": "^4.4.0",
1385
- "depd": "^2.0.0",
1386
- "is-promise": "^4.0.0",
1387
- "parseurl": "^1.3.3",
1388
- "path-to-regexp": "^8.0.0"
1389
- },
1390
- "engines": {
1391
- "node": ">= 18"
1392
- }
1393
- },
1394
- "node_modules/safe-buffer": {
1395
- "version": "5.2.1",
1396
- "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz",
1397
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
1398
- "funding": [
1399
- {
1400
- "type": "github",
1401
- "url": "https://github.com/sponsors/feross"
1402
- },
1403
- {
1404
- "type": "patreon",
1405
- "url": "https://www.patreon.com/feross"
1406
- },
1407
- {
1408
- "type": "consulting",
1409
- "url": "https://feross.org/support"
1410
- }
1411
- ],
1412
- "license": "MIT"
1413
- },
1414
- "node_modules/safer-buffer": {
1415
- "version": "2.1.2",
1416
- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
1417
- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
1418
- "license": "MIT"
1419
- },
1420
- "node_modules/send": {
1421
- "version": "1.2.0",
1422
- "resolved": "https://registry.npmjs.org/send/-/send-1.2.0.tgz",
1423
- "integrity": "sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw==",
1424
- "license": "MIT",
1425
- "dependencies": {
1426
- "debug": "^4.3.5",
1427
- "encodeurl": "^2.0.0",
1428
- "escape-html": "^1.0.3",
1429
- "etag": "^1.8.1",
1430
- "fresh": "^2.0.0",
1431
- "http-errors": "^2.0.0",
1432
- "mime-types": "^3.0.1",
1433
- "ms": "^2.1.3",
1434
- "on-finished": "^2.4.1",
1435
- "range-parser": "^1.2.1",
1436
- "statuses": "^2.0.1"
1437
- },
1438
- "engines": {
1439
- "node": ">= 18"
1440
- }
1441
- },
1442
- "node_modules/serve-static": {
1443
- "version": "2.2.0",
1444
- "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.0.tgz",
1445
- "integrity": "sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==",
1446
- "license": "MIT",
1447
- "dependencies": {
1448
- "encodeurl": "^2.0.0",
1449
- "escape-html": "^1.0.3",
1450
- "parseurl": "^1.3.3",
1451
- "send": "^1.2.0"
1452
- },
1453
- "engines": {
1454
- "node": ">= 18"
1455
- }
1456
- },
1457
- "node_modules/setprototypeof": {
1458
- "version": "1.2.0",
1459
- "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
1460
- "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
1461
- "license": "ISC"
1462
- },
1463
- "node_modules/shebang-command": {
1464
- "version": "2.0.0",
1465
- "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz",
1466
- "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
1467
- "license": "MIT",
1468
- "dependencies": {
1469
- "shebang-regex": "^3.0.0"
1470
- },
1471
- "engines": {
1472
- "node": ">=8"
1473
- }
1474
- },
1475
- "node_modules/shebang-regex": {
1476
- "version": "3.0.0",
1477
- "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz",
1478
- "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
1479
- "license": "MIT",
1480
- "engines": {
1481
- "node": ">=8"
1482
- }
1483
- },
1484
- "node_modules/side-channel": {
1485
- "version": "1.1.0",
1486
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
1487
- "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
1488
- "license": "MIT",
1489
- "dependencies": {
1490
- "es-errors": "^1.3.0",
1491
- "object-inspect": "^1.13.3",
1492
- "side-channel-list": "^1.0.0",
1493
- "side-channel-map": "^1.0.1",
1494
- "side-channel-weakmap": "^1.0.2"
1495
- },
1496
- "engines": {
1497
- "node": ">= 0.4"
1498
- },
1499
- "funding": {
1500
- "url": "https://github.com/sponsors/ljharb"
1501
- }
1502
- },
1503
- "node_modules/side-channel-list": {
1504
- "version": "1.0.0",
1505
- "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
1506
- "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
1507
- "license": "MIT",
1508
- "dependencies": {
1509
- "es-errors": "^1.3.0",
1510
- "object-inspect": "^1.13.3"
1511
- },
1512
- "engines": {
1513
- "node": ">= 0.4"
1514
- },
1515
- "funding": {
1516
- "url": "https://github.com/sponsors/ljharb"
1517
- }
1518
- },
1519
- "node_modules/side-channel-map": {
1520
- "version": "1.0.1",
1521
- "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
1522
- "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
1523
- "license": "MIT",
1524
- "dependencies": {
1525
- "call-bound": "^1.0.2",
1526
- "es-errors": "^1.3.0",
1527
- "get-intrinsic": "^1.2.5",
1528
- "object-inspect": "^1.13.3"
1529
- },
1530
- "engines": {
1531
- "node": ">= 0.4"
1532
- },
1533
- "funding": {
1534
- "url": "https://github.com/sponsors/ljharb"
1535
- }
1536
- },
1537
- "node_modules/side-channel-weakmap": {
1538
- "version": "1.0.2",
1539
- "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
1540
- "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
1541
- "license": "MIT",
1542
- "dependencies": {
1543
- "call-bound": "^1.0.2",
1544
- "es-errors": "^1.3.0",
1545
- "get-intrinsic": "^1.2.5",
1546
- "object-inspect": "^1.13.3",
1547
- "side-channel-map": "^1.0.1"
1548
- },
1549
- "engines": {
1550
- "node": ">= 0.4"
1551
- },
1552
- "funding": {
1553
- "url": "https://github.com/sponsors/ljharb"
1554
- }
1555
- },
1556
- "node_modules/signal-exit": {
1557
- "version": "4.1.0",
1558
- "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-4.1.0.tgz",
1559
- "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
1560
- "license": "ISC",
1561
- "engines": {
1562
- "node": ">=14"
1563
- },
1564
- "funding": {
1565
- "url": "https://github.com/sponsors/isaacs"
1566
- }
1567
- },
1568
- "node_modules/statuses": {
1569
- "version": "2.0.2",
1570
- "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
1571
- "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
1572
- "license": "MIT",
1573
- "engines": {
1574
- "node": ">= 0.8"
1575
- }
1576
- },
1577
- "node_modules/streamsearch": {
1578
- "version": "1.1.0",
1579
- "resolved": "https://registry.npmmirror.com/streamsearch/-/streamsearch-1.1.0.tgz",
1580
- "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==",
1581
- "engines": {
1582
- "node": ">=10.0.0"
1583
- }
1584
- },
1585
- "node_modules/streamx": {
1586
- "version": "2.23.0",
1587
- "resolved": "https://registry.npmmirror.com/streamx/-/streamx-2.23.0.tgz",
1588
- "integrity": "sha512-kn+e44esVfn2Fa/O0CPFcex27fjIL6MkVae0Mm6q+E6f0hWv578YCERbv+4m02cjxvDsPKLnmxral/rR6lBMAg==",
1589
- "license": "MIT",
1590
- "dependencies": {
1591
- "events-universal": "^1.0.0",
1592
- "fast-fifo": "^1.3.2",
1593
- "text-decoder": "^1.1.0"
1594
- }
1595
- },
1596
- "node_modules/string_decoder": {
1597
- "version": "1.3.0",
1598
- "resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.3.0.tgz",
1599
- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
1600
- "license": "MIT",
1601
- "dependencies": {
1602
- "safe-buffer": "~5.2.0"
1603
- }
1604
- },
1605
- "node_modules/string-width": {
1606
- "version": "5.1.2",
1607
- "resolved": "https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz",
1608
- "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",
1609
- "license": "MIT",
1610
- "dependencies": {
1611
- "eastasianwidth": "^0.2.0",
1612
- "emoji-regex": "^9.2.2",
1613
- "strip-ansi": "^7.0.1"
1614
- },
1615
- "engines": {
1616
- "node": ">=12"
1617
- },
1618
- "funding": {
1619
- "url": "https://github.com/sponsors/sindresorhus"
1620
- }
1621
- },
1622
- "node_modules/string-width-cjs": {
1623
- "name": "string-width",
1624
- "version": "4.2.3",
1625
- "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
1626
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
1627
- "license": "MIT",
1628
- "dependencies": {
1629
- "emoji-regex": "^8.0.0",
1630
- "is-fullwidth-code-point": "^3.0.0",
1631
- "strip-ansi": "^6.0.1"
1632
- },
1633
- "engines": {
1634
- "node": ">=8"
1635
- }
1636
- },
1637
- "node_modules/string-width-cjs/node_modules/ansi-regex": {
1638
- "version": "5.0.1",
1639
- "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
1640
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
1641
- "license": "MIT",
1642
- "engines": {
1643
- "node": ">=8"
1644
- }
1645
- },
1646
- "node_modules/string-width-cjs/node_modules/emoji-regex": {
1647
- "version": "8.0.0",
1648
- "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
1649
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
1650
- "license": "MIT"
1651
- },
1652
- "node_modules/string-width-cjs/node_modules/strip-ansi": {
1653
- "version": "6.0.1",
1654
- "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
1655
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
1656
- "license": "MIT",
1657
- "dependencies": {
1658
- "ansi-regex": "^5.0.1"
1659
- },
1660
- "engines": {
1661
- "node": ">=8"
1662
- }
1663
- },
1664
- "node_modules/strip-ansi": {
1665
- "version": "7.1.2",
1666
- "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.2.tgz",
1667
- "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==",
1668
- "license": "MIT",
1669
- "dependencies": {
1670
- "ansi-regex": "^6.0.1"
1671
- },
1672
- "engines": {
1673
- "node": ">=12"
1674
- },
1675
- "funding": {
1676
- "url": "https://github.com/chalk/strip-ansi?sponsor=1"
1677
- }
1678
- },
1679
- "node_modules/strip-ansi-cjs": {
1680
- "name": "strip-ansi",
1681
- "version": "6.0.1",
1682
- "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
1683
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
1684
- "license": "MIT",
1685
- "dependencies": {
1686
- "ansi-regex": "^5.0.1"
1687
- },
1688
- "engines": {
1689
- "node": ">=8"
1690
- }
1691
- },
1692
- "node_modules/strip-ansi-cjs/node_modules/ansi-regex": {
1693
- "version": "5.0.1",
1694
- "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
1695
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
1696
- "license": "MIT",
1697
- "engines": {
1698
- "node": ">=8"
1699
- }
1700
- },
1701
- "node_modules/tar-stream": {
1702
- "version": "3.1.7",
1703
- "resolved": "https://registry.npmmirror.com/tar-stream/-/tar-stream-3.1.7.tgz",
1704
- "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==",
1705
- "license": "MIT",
1706
- "dependencies": {
1707
- "b4a": "^1.6.4",
1708
- "fast-fifo": "^1.2.0",
1709
- "streamx": "^2.15.0"
1710
- }
1711
- },
1712
- "node_modules/text-decoder": {
1713
- "version": "1.2.3",
1714
- "resolved": "https://registry.npmmirror.com/text-decoder/-/text-decoder-1.2.3.tgz",
1715
- "integrity": "sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA==",
1716
- "license": "Apache-2.0",
1717
- "dependencies": {
1718
- "b4a": "^1.6.4"
1719
- }
1720
- },
1721
- "node_modules/toidentifier": {
1722
- "version": "1.0.1",
1723
- "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
1724
- "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
1725
- "license": "MIT",
1726
- "engines": {
1727
- "node": ">=0.6"
1728
- }
1729
- },
1730
- "node_modules/type-is": {
1731
- "version": "2.0.1",
1732
- "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz",
1733
- "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==",
1734
- "license": "MIT",
1735
- "dependencies": {
1736
- "content-type": "^1.0.5",
1737
- "media-typer": "^1.1.0",
1738
- "mime-types": "^3.0.0"
1739
- },
1740
- "engines": {
1741
- "node": ">= 0.6"
1742
- }
1743
- },
1744
- "node_modules/typedarray": {
1745
- "version": "0.0.6",
1746
- "resolved": "https://registry.npmmirror.com/typedarray/-/typedarray-0.0.6.tgz",
1747
- "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==",
1748
- "license": "MIT"
1749
- },
1750
- "node_modules/unpipe": {
1751
- "version": "1.0.0",
1752
- "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
1753
- "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
1754
- "license": "MIT",
1755
- "engines": {
1756
- "node": ">= 0.8"
1757
- }
1758
- },
1759
- "node_modules/util-deprecate": {
1760
- "version": "1.0.2",
1761
- "resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz",
1762
- "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
1763
- "license": "MIT"
1764
- },
1765
- "node_modules/vary": {
1766
- "version": "1.1.2",
1767
- "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
1768
- "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
1769
- "license": "MIT",
1770
- "engines": {
1771
- "node": ">= 0.8"
1772
- }
1773
- },
1774
- "node_modules/which": {
1775
- "version": "2.0.2",
1776
- "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz",
1777
- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
1778
- "license": "ISC",
1779
- "dependencies": {
1780
- "isexe": "^2.0.0"
1781
- },
1782
- "bin": {
1783
- "node-which": "bin/node-which"
1784
- },
1785
- "engines": {
1786
- "node": ">= 8"
1787
- }
1788
- },
1789
- "node_modules/wrap-ansi": {
1790
- "version": "8.1.0",
1791
- "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz",
1792
- "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",
1793
- "license": "MIT",
1794
- "dependencies": {
1795
- "ansi-styles": "^6.1.0",
1796
- "string-width": "^5.0.1",
1797
- "strip-ansi": "^7.0.1"
1798
- },
1799
- "engines": {
1800
- "node": ">=12"
1801
- },
1802
- "funding": {
1803
- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
1804
- }
1805
- },
1806
- "node_modules/wrap-ansi-cjs": {
1807
- "name": "wrap-ansi",
1808
- "version": "7.0.0",
1809
- "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
1810
- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
1811
- "license": "MIT",
1812
- "dependencies": {
1813
- "ansi-styles": "^4.0.0",
1814
- "string-width": "^4.1.0",
1815
- "strip-ansi": "^6.0.0"
1816
- },
1817
- "engines": {
1818
- "node": ">=10"
1819
- },
1820
- "funding": {
1821
- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
1822
- }
1823
- },
1824
- "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": {
1825
- "version": "5.0.1",
1826
- "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
1827
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
1828
- "license": "MIT",
1829
- "engines": {
1830
- "node": ">=8"
1831
- }
1832
- },
1833
- "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": {
1834
- "version": "4.3.0",
1835
- "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
1836
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
1837
- "license": "MIT",
1838
- "dependencies": {
1839
- "color-convert": "^2.0.1"
1840
- },
1841
- "engines": {
1842
- "node": ">=8"
1843
- },
1844
- "funding": {
1845
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
1846
- }
1847
- },
1848
- "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": {
1849
- "version": "8.0.0",
1850
- "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
1851
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
1852
- "license": "MIT"
1853
- },
1854
- "node_modules/wrap-ansi-cjs/node_modules/string-width": {
1855
- "version": "4.2.3",
1856
- "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
1857
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
1858
- "license": "MIT",
1859
- "dependencies": {
1860
- "emoji-regex": "^8.0.0",
1861
- "is-fullwidth-code-point": "^3.0.0",
1862
- "strip-ansi": "^6.0.1"
1863
- },
1864
- "engines": {
1865
- "node": ">=8"
1866
- }
1867
- },
1868
- "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": {
1869
- "version": "6.0.1",
1870
- "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
1871
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
1872
- "license": "MIT",
1873
- "dependencies": {
1874
- "ansi-regex": "^5.0.1"
1875
- },
1876
- "engines": {
1877
- "node": ">=8"
1878
- }
1879
- },
1880
- "node_modules/wrappy": {
1881
- "version": "1.0.2",
1882
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1883
- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
1884
- "license": "ISC"
1885
- },
1886
- "node_modules/xtend": {
1887
- "version": "4.0.2",
1888
- "resolved": "https://registry.npmmirror.com/xtend/-/xtend-4.0.2.tgz",
1889
- "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
1890
- "license": "MIT",
1891
- "engines": {
1892
- "node": ">=0.4"
1893
- }
1894
- },
1895
- "node_modules/zip-stream": {
1896
- "version": "6.0.1",
1897
- "resolved": "https://registry.npmmirror.com/zip-stream/-/zip-stream-6.0.1.tgz",
1898
- "integrity": "sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==",
1899
- "license": "MIT",
1900
- "dependencies": {
1901
- "archiver-utils": "^5.0.0",
1902
- "compress-commons": "^6.0.2",
1903
- "readable-stream": "^4.0.0"
1904
- },
1905
- "engines": {
1906
- "node": ">= 14"
1907
- }
1908
- }
1909
- }
1910
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@isaacs/cliui/LICENSE.txt DELETED
@@ -1,14 +0,0 @@
1
- Copyright (c) 2015, Contributors
2
-
3
- Permission to use, copy, modify, and/or distribute this software
4
- for any purpose with or without fee is hereby granted, provided
5
- that the above copyright notice and this permission notice
6
- appear in all copies.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
10
- OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
11
- LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
12
- OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
13
- WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
14
- ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@isaacs/cliui/README.md DELETED
@@ -1,143 +0,0 @@
1
- # @isaacs/cliui
2
-
3
- Temporary fork of [cliui](http://npm.im/cliui).
4
-
5
- ![ci](https://github.com/yargs/cliui/workflows/ci/badge.svg)
6
- [![NPM version](https://img.shields.io/npm/v/cliui.svg)](https://www.npmjs.com/package/cliui)
7
- [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
8
- ![nycrc config on GitHub](https://img.shields.io/nycrc/yargs/cliui)
9
-
10
- easily create complex multi-column command-line-interfaces.
11
-
12
- ## Example
13
-
14
- ```js
15
- const ui = require('cliui')()
16
-
17
- ui.div('Usage: $0 [command] [options]')
18
-
19
- ui.div({
20
- text: 'Options:',
21
- padding: [2, 0, 1, 0]
22
- })
23
-
24
- ui.div(
25
- {
26
- text: "-f, --file",
27
- width: 20,
28
- padding: [0, 4, 0, 4]
29
- },
30
- {
31
- text: "the file to load." +
32
- chalk.green("(if this description is long it wraps).")
33
- ,
34
- width: 20
35
- },
36
- {
37
- text: chalk.red("[required]"),
38
- align: 'right'
39
- }
40
- )
41
-
42
- console.log(ui.toString())
43
- ```
44
-
45
- ## Deno/ESM Support
46
-
47
- As of `v7` `cliui` supports [Deno](https://github.com/denoland/deno) and
48
- [ESM](https://nodejs.org/api/esm.html#esm_ecmascript_modules):
49
-
50
- ```typescript
51
- import cliui from "https://deno.land/x/cliui/deno.ts";
52
-
53
- const ui = cliui({})
54
-
55
- ui.div('Usage: $0 [command] [options]')
56
-
57
- ui.div({
58
- text: 'Options:',
59
- padding: [2, 0, 1, 0]
60
- })
61
-
62
- ui.div({
63
- text: "-f, --file",
64
- width: 20,
65
- padding: [0, 4, 0, 4]
66
- })
67
-
68
- console.log(ui.toString())
69
- ```
70
-
71
- <img width="500" src="screenshot.png">
72
-
73
- ## Layout DSL
74
-
75
- cliui exposes a simple layout DSL:
76
-
77
- If you create a single `ui.div`, passing a string rather than an
78
- object:
79
-
80
- * `\n`: characters will be interpreted as new rows.
81
- * `\t`: characters will be interpreted as new columns.
82
- * `\s`: characters will be interpreted as padding.
83
-
84
- **as an example...**
85
-
86
- ```js
87
- var ui = require('./')({
88
- width: 60
89
- })
90
-
91
- ui.div(
92
- 'Usage: node ./bin/foo.js\n' +
93
- ' <regex>\t provide a regex\n' +
94
- ' <glob>\t provide a glob\t [required]'
95
- )
96
-
97
- console.log(ui.toString())
98
- ```
99
-
100
- **will output:**
101
-
102
- ```shell
103
- Usage: node ./bin/foo.js
104
- <regex> provide a regex
105
- <glob> provide a glob [required]
106
- ```
107
-
108
- ## Methods
109
-
110
- ```js
111
- cliui = require('cliui')
112
- ```
113
-
114
- ### cliui({width: integer})
115
-
116
- Specify the maximum width of the UI being generated.
117
- If no width is provided, cliui will try to get the current window's width and use it, and if that doesn't work, width will be set to `80`.
118
-
119
- ### cliui({wrap: boolean})
120
-
121
- Enable or disable the wrapping of text in a column.
122
-
123
- ### cliui.div(column, column, column)
124
-
125
- Create a row with any number of columns, a column
126
- can either be a string, or an object with the following
127
- options:
128
-
129
- * **text:** some text to place in the column.
130
- * **width:** the width of a column.
131
- * **align:** alignment, `right` or `center`.
132
- * **padding:** `[top, right, bottom, left]`.
133
- * **border:** should a border be placed around the div?
134
-
135
- ### cliui.span(column, column, column)
136
-
137
- Similar to `div`, except the next row will be appended without
138
- a new line being created.
139
-
140
- ### cliui.resetOutput()
141
-
142
- Resets the UI elements of the current cliui instance, maintaining the values
143
- set for `width` and `wrap`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@isaacs/cliui/build/index.cjs DELETED
@@ -1,317 +0,0 @@
1
- 'use strict';
2
-
3
- const align = {
4
- right: alignRight,
5
- center: alignCenter
6
- };
7
- const top = 0;
8
- const right = 1;
9
- const bottom = 2;
10
- const left = 3;
11
- class UI {
12
- constructor(opts) {
13
- var _a;
14
- this.width = opts.width;
15
- /* c8 ignore start */
16
- this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true;
17
- /* c8 ignore stop */
18
- this.rows = [];
19
- }
20
- span(...args) {
21
- const cols = this.div(...args);
22
- cols.span = true;
23
- }
24
- resetOutput() {
25
- this.rows = [];
26
- }
27
- div(...args) {
28
- if (args.length === 0) {
29
- this.div('');
30
- }
31
- if (this.wrap && this.shouldApplyLayoutDSL(...args) && typeof args[0] === 'string') {
32
- return this.applyLayoutDSL(args[0]);
33
- }
34
- const cols = args.map(arg => {
35
- if (typeof arg === 'string') {
36
- return this.colFromString(arg);
37
- }
38
- return arg;
39
- });
40
- this.rows.push(cols);
41
- return cols;
42
- }
43
- shouldApplyLayoutDSL(...args) {
44
- return args.length === 1 && typeof args[0] === 'string' &&
45
- /[\t\n]/.test(args[0]);
46
- }
47
- applyLayoutDSL(str) {
48
- const rows = str.split('\n').map(row => row.split('\t'));
49
- let leftColumnWidth = 0;
50
- // simple heuristic for layout, make sure the
51
- // second column lines up along the left-hand.
52
- // don't allow the first column to take up more
53
- // than 50% of the screen.
54
- rows.forEach(columns => {
55
- if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) {
56
- leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0]));
57
- }
58
- });
59
- // generate a table:
60
- // replacing ' ' with padding calculations.
61
- // using the algorithmically generated width.
62
- rows.forEach(columns => {
63
- this.div(...columns.map((r, i) => {
64
- return {
65
- text: r.trim(),
66
- padding: this.measurePadding(r),
67
- width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined
68
- };
69
- }));
70
- });
71
- return this.rows[this.rows.length - 1];
72
- }
73
- colFromString(text) {
74
- return {
75
- text,
76
- padding: this.measurePadding(text)
77
- };
78
- }
79
- measurePadding(str) {
80
- // measure padding without ansi escape codes
81
- const noAnsi = mixin.stripAnsi(str);
82
- return [0, noAnsi.match(/\s*$/)[0].length, 0, noAnsi.match(/^\s*/)[0].length];
83
- }
84
- toString() {
85
- const lines = [];
86
- this.rows.forEach(row => {
87
- this.rowToString(row, lines);
88
- });
89
- // don't display any lines with the
90
- // hidden flag set.
91
- return lines
92
- .filter(line => !line.hidden)
93
- .map(line => line.text)
94
- .join('\n');
95
- }
96
- rowToString(row, lines) {
97
- this.rasterize(row).forEach((rrow, r) => {
98
- let str = '';
99
- rrow.forEach((col, c) => {
100
- const { width } = row[c]; // the width with padding.
101
- const wrapWidth = this.negatePadding(row[c]); // the width without padding.
102
- let ts = col; // temporary string used during alignment/padding.
103
- if (wrapWidth > mixin.stringWidth(col)) {
104
- ts += ' '.repeat(wrapWidth - mixin.stringWidth(col));
105
- }
106
- // align the string within its column.
107
- if (row[c].align && row[c].align !== 'left' && this.wrap) {
108
- const fn = align[row[c].align];
109
- ts = fn(ts, wrapWidth);
110
- if (mixin.stringWidth(ts) < wrapWidth) {
111
- /* c8 ignore start */
112
- const w = width || 0;
113
- /* c8 ignore stop */
114
- ts += ' '.repeat(w - mixin.stringWidth(ts) - 1);
115
- }
116
- }
117
- // apply border and padding to string.
118
- const padding = row[c].padding || [0, 0, 0, 0];
119
- if (padding[left]) {
120
- str += ' '.repeat(padding[left]);
121
- }
122
- str += addBorder(row[c], ts, '| ');
123
- str += ts;
124
- str += addBorder(row[c], ts, ' |');
125
- if (padding[right]) {
126
- str += ' '.repeat(padding[right]);
127
- }
128
- // if prior row is span, try to render the
129
- // current row on the prior line.
130
- if (r === 0 && lines.length > 0) {
131
- str = this.renderInline(str, lines[lines.length - 1]);
132
- }
133
- });
134
- // remove trailing whitespace.
135
- lines.push({
136
- text: str.replace(/ +$/, ''),
137
- span: row.span
138
- });
139
- });
140
- return lines;
141
- }
142
- // if the full 'source' can render in
143
- // the target line, do so.
144
- renderInline(source, previousLine) {
145
- const match = source.match(/^ */);
146
- /* c8 ignore start */
147
- const leadingWhitespace = match ? match[0].length : 0;
148
- /* c8 ignore stop */
149
- const target = previousLine.text;
150
- const targetTextWidth = mixin.stringWidth(target.trimEnd());
151
- if (!previousLine.span) {
152
- return source;
153
- }
154
- // if we're not applying wrapping logic,
155
- // just always append to the span.
156
- if (!this.wrap) {
157
- previousLine.hidden = true;
158
- return target + source;
159
- }
160
- if (leadingWhitespace < targetTextWidth) {
161
- return source;
162
- }
163
- previousLine.hidden = true;
164
- return target.trimEnd() + ' '.repeat(leadingWhitespace - targetTextWidth) + source.trimStart();
165
- }
166
- rasterize(row) {
167
- const rrows = [];
168
- const widths = this.columnWidths(row);
169
- let wrapped;
170
- // word wrap all columns, and create
171
- // a data-structure that is easy to rasterize.
172
- row.forEach((col, c) => {
173
- // leave room for left and right padding.
174
- col.width = widths[c];
175
- if (this.wrap) {
176
- wrapped = mixin.wrap(col.text, this.negatePadding(col), { hard: true }).split('\n');
177
- }
178
- else {
179
- wrapped = col.text.split('\n');
180
- }
181
- if (col.border) {
182
- wrapped.unshift('.' + '-'.repeat(this.negatePadding(col) + 2) + '.');
183
- wrapped.push("'" + '-'.repeat(this.negatePadding(col) + 2) + "'");
184
- }
185
- // add top and bottom padding.
186
- if (col.padding) {
187
- wrapped.unshift(...new Array(col.padding[top] || 0).fill(''));
188
- wrapped.push(...new Array(col.padding[bottom] || 0).fill(''));
189
- }
190
- wrapped.forEach((str, r) => {
191
- if (!rrows[r]) {
192
- rrows.push([]);
193
- }
194
- const rrow = rrows[r];
195
- for (let i = 0; i < c; i++) {
196
- if (rrow[i] === undefined) {
197
- rrow.push('');
198
- }
199
- }
200
- rrow.push(str);
201
- });
202
- });
203
- return rrows;
204
- }
205
- negatePadding(col) {
206
- /* c8 ignore start */
207
- let wrapWidth = col.width || 0;
208
- /* c8 ignore stop */
209
- if (col.padding) {
210
- wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0);
211
- }
212
- if (col.border) {
213
- wrapWidth -= 4;
214
- }
215
- return wrapWidth;
216
- }
217
- columnWidths(row) {
218
- if (!this.wrap) {
219
- return row.map(col => {
220
- return col.width || mixin.stringWidth(col.text);
221
- });
222
- }
223
- let unset = row.length;
224
- let remainingWidth = this.width;
225
- // column widths can be set in config.
226
- const widths = row.map(col => {
227
- if (col.width) {
228
- unset--;
229
- remainingWidth -= col.width;
230
- return col.width;
231
- }
232
- return undefined;
233
- });
234
- // any unset widths should be calculated.
235
- /* c8 ignore start */
236
- const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;
237
- /* c8 ignore stop */
238
- return widths.map((w, i) => {
239
- if (w === undefined) {
240
- return Math.max(unsetWidth, _minWidth(row[i]));
241
- }
242
- return w;
243
- });
244
- }
245
- }
246
- function addBorder(col, ts, style) {
247
- if (col.border) {
248
- if (/[.']-+[.']/.test(ts)) {
249
- return '';
250
- }
251
- if (ts.trim().length !== 0) {
252
- return style;
253
- }
254
- return ' ';
255
- }
256
- return '';
257
- }
258
- // calculates the minimum width of
259
- // a column, based on padding preferences.
260
- function _minWidth(col) {
261
- const padding = col.padding || [];
262
- const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0);
263
- if (col.border) {
264
- return minWidth + 4;
265
- }
266
- return minWidth;
267
- }
268
- function getWindowWidth() {
269
- /* c8 ignore start */
270
- if (typeof process === 'object' && process.stdout && process.stdout.columns) {
271
- return process.stdout.columns;
272
- }
273
- return 80;
274
- }
275
- /* c8 ignore stop */
276
- function alignRight(str, width) {
277
- str = str.trim();
278
- const strWidth = mixin.stringWidth(str);
279
- if (strWidth < width) {
280
- return ' '.repeat(width - strWidth) + str;
281
- }
282
- return str;
283
- }
284
- function alignCenter(str, width) {
285
- str = str.trim();
286
- const strWidth = mixin.stringWidth(str);
287
- /* c8 ignore start */
288
- if (strWidth >= width) {
289
- return str;
290
- }
291
- /* c8 ignore stop */
292
- return ' '.repeat((width - strWidth) >> 1) + str;
293
- }
294
- let mixin;
295
- function cliui(opts, _mixin) {
296
- mixin = _mixin;
297
- return new UI({
298
- /* c8 ignore start */
299
- width: (opts === null || opts === void 0 ? void 0 : opts.width) || getWindowWidth(),
300
- wrap: opts === null || opts === void 0 ? void 0 : opts.wrap
301
- /* c8 ignore stop */
302
- });
303
- }
304
-
305
- // Bootstrap cliui with CommonJS dependencies:
306
- const stringWidth = require('string-width-cjs');
307
- const stripAnsi = require('strip-ansi-cjs');
308
- const wrap = require('wrap-ansi-cjs');
309
- function ui(opts) {
310
- return cliui(opts, {
311
- stringWidth,
312
- stripAnsi,
313
- wrap
314
- });
315
- }
316
-
317
- module.exports = ui;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@isaacs/cliui/build/index.d.cts DELETED
@@ -1,43 +0,0 @@
1
- interface UIOptions {
2
- width: number;
3
- wrap?: boolean;
4
- rows?: string[];
5
- }
6
- interface Column {
7
- text: string;
8
- width?: number;
9
- align?: "right" | "left" | "center";
10
- padding: number[];
11
- border?: boolean;
12
- }
13
- interface ColumnArray extends Array<Column> {
14
- span: boolean;
15
- }
16
- interface Line {
17
- hidden?: boolean;
18
- text: string;
19
- span?: boolean;
20
- }
21
- declare class UI {
22
- width: number;
23
- wrap: boolean;
24
- rows: ColumnArray[];
25
- constructor(opts: UIOptions);
26
- span(...args: ColumnArray): void;
27
- resetOutput(): void;
28
- div(...args: (Column | string)[]): ColumnArray;
29
- private shouldApplyLayoutDSL;
30
- private applyLayoutDSL;
31
- private colFromString;
32
- private measurePadding;
33
- toString(): string;
34
- rowToString(row: ColumnArray, lines: Line[]): Line[];
35
- // if the full 'source' can render in
36
- // the target line, do so.
37
- private renderInline;
38
- private rasterize;
39
- private negatePadding;
40
- private columnWidths;
41
- }
42
- declare function ui(opts: UIOptions): UI;
43
- export { ui as default };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@isaacs/cliui/build/lib/index.js DELETED
@@ -1,302 +0,0 @@
1
- 'use strict';
2
- const align = {
3
- right: alignRight,
4
- center: alignCenter
5
- };
6
- const top = 0;
7
- const right = 1;
8
- const bottom = 2;
9
- const left = 3;
10
- export class UI {
11
- constructor(opts) {
12
- var _a;
13
- this.width = opts.width;
14
- /* c8 ignore start */
15
- this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true;
16
- /* c8 ignore stop */
17
- this.rows = [];
18
- }
19
- span(...args) {
20
- const cols = this.div(...args);
21
- cols.span = true;
22
- }
23
- resetOutput() {
24
- this.rows = [];
25
- }
26
- div(...args) {
27
- if (args.length === 0) {
28
- this.div('');
29
- }
30
- if (this.wrap && this.shouldApplyLayoutDSL(...args) && typeof args[0] === 'string') {
31
- return this.applyLayoutDSL(args[0]);
32
- }
33
- const cols = args.map(arg => {
34
- if (typeof arg === 'string') {
35
- return this.colFromString(arg);
36
- }
37
- return arg;
38
- });
39
- this.rows.push(cols);
40
- return cols;
41
- }
42
- shouldApplyLayoutDSL(...args) {
43
- return args.length === 1 && typeof args[0] === 'string' &&
44
- /[\t\n]/.test(args[0]);
45
- }
46
- applyLayoutDSL(str) {
47
- const rows = str.split('\n').map(row => row.split('\t'));
48
- let leftColumnWidth = 0;
49
- // simple heuristic for layout, make sure the
50
- // second column lines up along the left-hand.
51
- // don't allow the first column to take up more
52
- // than 50% of the screen.
53
- rows.forEach(columns => {
54
- if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) {
55
- leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0]));
56
- }
57
- });
58
- // generate a table:
59
- // replacing ' ' with padding calculations.
60
- // using the algorithmically generated width.
61
- rows.forEach(columns => {
62
- this.div(...columns.map((r, i) => {
63
- return {
64
- text: r.trim(),
65
- padding: this.measurePadding(r),
66
- width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined
67
- };
68
- }));
69
- });
70
- return this.rows[this.rows.length - 1];
71
- }
72
- colFromString(text) {
73
- return {
74
- text,
75
- padding: this.measurePadding(text)
76
- };
77
- }
78
- measurePadding(str) {
79
- // measure padding without ansi escape codes
80
- const noAnsi = mixin.stripAnsi(str);
81
- return [0, noAnsi.match(/\s*$/)[0].length, 0, noAnsi.match(/^\s*/)[0].length];
82
- }
83
- toString() {
84
- const lines = [];
85
- this.rows.forEach(row => {
86
- this.rowToString(row, lines);
87
- });
88
- // don't display any lines with the
89
- // hidden flag set.
90
- return lines
91
- .filter(line => !line.hidden)
92
- .map(line => line.text)
93
- .join('\n');
94
- }
95
- rowToString(row, lines) {
96
- this.rasterize(row).forEach((rrow, r) => {
97
- let str = '';
98
- rrow.forEach((col, c) => {
99
- const { width } = row[c]; // the width with padding.
100
- const wrapWidth = this.negatePadding(row[c]); // the width without padding.
101
- let ts = col; // temporary string used during alignment/padding.
102
- if (wrapWidth > mixin.stringWidth(col)) {
103
- ts += ' '.repeat(wrapWidth - mixin.stringWidth(col));
104
- }
105
- // align the string within its column.
106
- if (row[c].align && row[c].align !== 'left' && this.wrap) {
107
- const fn = align[row[c].align];
108
- ts = fn(ts, wrapWidth);
109
- if (mixin.stringWidth(ts) < wrapWidth) {
110
- /* c8 ignore start */
111
- const w = width || 0;
112
- /* c8 ignore stop */
113
- ts += ' '.repeat(w - mixin.stringWidth(ts) - 1);
114
- }
115
- }
116
- // apply border and padding to string.
117
- const padding = row[c].padding || [0, 0, 0, 0];
118
- if (padding[left]) {
119
- str += ' '.repeat(padding[left]);
120
- }
121
- str += addBorder(row[c], ts, '| ');
122
- str += ts;
123
- str += addBorder(row[c], ts, ' |');
124
- if (padding[right]) {
125
- str += ' '.repeat(padding[right]);
126
- }
127
- // if prior row is span, try to render the
128
- // current row on the prior line.
129
- if (r === 0 && lines.length > 0) {
130
- str = this.renderInline(str, lines[lines.length - 1]);
131
- }
132
- });
133
- // remove trailing whitespace.
134
- lines.push({
135
- text: str.replace(/ +$/, ''),
136
- span: row.span
137
- });
138
- });
139
- return lines;
140
- }
141
- // if the full 'source' can render in
142
- // the target line, do so.
143
- renderInline(source, previousLine) {
144
- const match = source.match(/^ */);
145
- /* c8 ignore start */
146
- const leadingWhitespace = match ? match[0].length : 0;
147
- /* c8 ignore stop */
148
- const target = previousLine.text;
149
- const targetTextWidth = mixin.stringWidth(target.trimEnd());
150
- if (!previousLine.span) {
151
- return source;
152
- }
153
- // if we're not applying wrapping logic,
154
- // just always append to the span.
155
- if (!this.wrap) {
156
- previousLine.hidden = true;
157
- return target + source;
158
- }
159
- if (leadingWhitespace < targetTextWidth) {
160
- return source;
161
- }
162
- previousLine.hidden = true;
163
- return target.trimEnd() + ' '.repeat(leadingWhitespace - targetTextWidth) + source.trimStart();
164
- }
165
- rasterize(row) {
166
- const rrows = [];
167
- const widths = this.columnWidths(row);
168
- let wrapped;
169
- // word wrap all columns, and create
170
- // a data-structure that is easy to rasterize.
171
- row.forEach((col, c) => {
172
- // leave room for left and right padding.
173
- col.width = widths[c];
174
- if (this.wrap) {
175
- wrapped = mixin.wrap(col.text, this.negatePadding(col), { hard: true }).split('\n');
176
- }
177
- else {
178
- wrapped = col.text.split('\n');
179
- }
180
- if (col.border) {
181
- wrapped.unshift('.' + '-'.repeat(this.negatePadding(col) + 2) + '.');
182
- wrapped.push("'" + '-'.repeat(this.negatePadding(col) + 2) + "'");
183
- }
184
- // add top and bottom padding.
185
- if (col.padding) {
186
- wrapped.unshift(...new Array(col.padding[top] || 0).fill(''));
187
- wrapped.push(...new Array(col.padding[bottom] || 0).fill(''));
188
- }
189
- wrapped.forEach((str, r) => {
190
- if (!rrows[r]) {
191
- rrows.push([]);
192
- }
193
- const rrow = rrows[r];
194
- for (let i = 0; i < c; i++) {
195
- if (rrow[i] === undefined) {
196
- rrow.push('');
197
- }
198
- }
199
- rrow.push(str);
200
- });
201
- });
202
- return rrows;
203
- }
204
- negatePadding(col) {
205
- /* c8 ignore start */
206
- let wrapWidth = col.width || 0;
207
- /* c8 ignore stop */
208
- if (col.padding) {
209
- wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0);
210
- }
211
- if (col.border) {
212
- wrapWidth -= 4;
213
- }
214
- return wrapWidth;
215
- }
216
- columnWidths(row) {
217
- if (!this.wrap) {
218
- return row.map(col => {
219
- return col.width || mixin.stringWidth(col.text);
220
- });
221
- }
222
- let unset = row.length;
223
- let remainingWidth = this.width;
224
- // column widths can be set in config.
225
- const widths = row.map(col => {
226
- if (col.width) {
227
- unset--;
228
- remainingWidth -= col.width;
229
- return col.width;
230
- }
231
- return undefined;
232
- });
233
- // any unset widths should be calculated.
234
- /* c8 ignore start */
235
- const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;
236
- /* c8 ignore stop */
237
- return widths.map((w, i) => {
238
- if (w === undefined) {
239
- return Math.max(unsetWidth, _minWidth(row[i]));
240
- }
241
- return w;
242
- });
243
- }
244
- }
245
- function addBorder(col, ts, style) {
246
- if (col.border) {
247
- if (/[.']-+[.']/.test(ts)) {
248
- return '';
249
- }
250
- if (ts.trim().length !== 0) {
251
- return style;
252
- }
253
- return ' ';
254
- }
255
- return '';
256
- }
257
- // calculates the minimum width of
258
- // a column, based on padding preferences.
259
- function _minWidth(col) {
260
- const padding = col.padding || [];
261
- const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0);
262
- if (col.border) {
263
- return minWidth + 4;
264
- }
265
- return minWidth;
266
- }
267
- function getWindowWidth() {
268
- /* c8 ignore start */
269
- if (typeof process === 'object' && process.stdout && process.stdout.columns) {
270
- return process.stdout.columns;
271
- }
272
- return 80;
273
- }
274
- /* c8 ignore stop */
275
- function alignRight(str, width) {
276
- str = str.trim();
277
- const strWidth = mixin.stringWidth(str);
278
- if (strWidth < width) {
279
- return ' '.repeat(width - strWidth) + str;
280
- }
281
- return str;
282
- }
283
- function alignCenter(str, width) {
284
- str = str.trim();
285
- const strWidth = mixin.stringWidth(str);
286
- /* c8 ignore start */
287
- if (strWidth >= width) {
288
- return str;
289
- }
290
- /* c8 ignore stop */
291
- return ' '.repeat((width - strWidth) >> 1) + str;
292
- }
293
- let mixin;
294
- export function cliui(opts, _mixin) {
295
- mixin = _mixin;
296
- return new UI({
297
- /* c8 ignore start */
298
- width: (opts === null || opts === void 0 ? void 0 : opts.width) || getWindowWidth(),
299
- wrap: opts === null || opts === void 0 ? void 0 : opts.wrap
300
- /* c8 ignore stop */
301
- });
302
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@isaacs/cliui/index.mjs DELETED
@@ -1,14 +0,0 @@
1
- // Bootstrap cliui with ESM dependencies:
2
- import { cliui } from './build/lib/index.js'
3
-
4
- import stringWidth from 'string-width'
5
- import stripAnsi from 'strip-ansi'
6
- import wrap from 'wrap-ansi'
7
-
8
- export default function ui (opts) {
9
- return cliui(opts, {
10
- stringWidth,
11
- stripAnsi,
12
- wrap
13
- })
14
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@isaacs/cliui/package.json DELETED
@@ -1,86 +0,0 @@
1
- {
2
- "name": "@isaacs/cliui",
3
- "version": "8.0.2",
4
- "description": "easily create complex multi-column command-line-interfaces",
5
- "main": "build/index.cjs",
6
- "exports": {
7
- ".": [
8
- {
9
- "import": "./index.mjs",
10
- "require": "./build/index.cjs"
11
- },
12
- "./build/index.cjs"
13
- ]
14
- },
15
- "type": "module",
16
- "module": "./index.mjs",
17
- "scripts": {
18
- "check": "standardx '**/*.ts' && standardx '**/*.js' && standardx '**/*.cjs'",
19
- "fix": "standardx --fix '**/*.ts' && standardx --fix '**/*.js' && standardx --fix '**/*.cjs'",
20
- "pretest": "rimraf build && tsc -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs",
21
- "test": "c8 mocha ./test/*.cjs",
22
- "test:esm": "c8 mocha ./test/**/*.mjs",
23
- "postest": "check",
24
- "coverage": "c8 report --check-coverage",
25
- "precompile": "rimraf build",
26
- "compile": "tsc",
27
- "postcompile": "npm run build:cjs",
28
- "build:cjs": "rollup -c",
29
- "prepare": "npm run compile"
30
- },
31
- "repository": "yargs/cliui",
32
- "standard": {
33
- "ignore": [
34
- "**/example/**"
35
- ],
36
- "globals": [
37
- "it"
38
- ]
39
- },
40
- "keywords": [
41
- "cli",
42
- "command-line",
43
- "layout",
44
- "design",
45
- "console",
46
- "wrap",
47
- "table"
48
- ],
49
- "author": "Ben Coe <ben@npmjs.com>",
50
- "license": "ISC",
51
- "dependencies": {
52
- "string-width": "^5.1.2",
53
- "string-width-cjs": "npm:string-width@^4.2.0",
54
- "strip-ansi": "^7.0.1",
55
- "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",
56
- "wrap-ansi": "^8.1.0",
57
- "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"
58
- },
59
- "devDependencies": {
60
- "@types/node": "^14.0.27",
61
- "@typescript-eslint/eslint-plugin": "^4.0.0",
62
- "@typescript-eslint/parser": "^4.0.0",
63
- "c8": "^7.3.0",
64
- "chai": "^4.2.0",
65
- "chalk": "^4.1.0",
66
- "cross-env": "^7.0.2",
67
- "eslint": "^7.6.0",
68
- "eslint-plugin-import": "^2.22.0",
69
- "eslint-plugin-node": "^11.1.0",
70
- "gts": "^3.0.0",
71
- "mocha": "^10.0.0",
72
- "rimraf": "^3.0.2",
73
- "rollup": "^2.23.1",
74
- "rollup-plugin-ts": "^3.0.2",
75
- "standardx": "^7.0.0",
76
- "typescript": "^4.0.0"
77
- },
78
- "files": [
79
- "build",
80
- "index.mjs",
81
- "!*.d.ts"
82
- ],
83
- "engines": {
84
- "node": ">=12"
85
- }
86
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/.editorconfig DELETED
@@ -1,14 +0,0 @@
1
- # EditorConfig is awesome: http://EditorConfig.org
2
-
3
- # top-most EditorConfig file
4
- root = true
5
-
6
- # Copied from Node.js to ease compatibility in PR.
7
- [*]
8
- charset = utf-8
9
- end_of_line = lf
10
- indent_size = 2
11
- indent_style = space
12
- insert_final_newline = true
13
- trim_trailing_whitespace = true
14
- quote_type = single
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/CHANGELOG.md DELETED
@@ -1,147 +0,0 @@
1
- # Changelog
2
-
3
- ## [0.11.0](https://github.com/pkgjs/parseargs/compare/v0.10.0...v0.11.0) (2022-10-08)
4
-
5
-
6
- ### Features
7
-
8
- * add `default` option parameter ([#142](https://github.com/pkgjs/parseargs/issues/142)) ([cd20847](https://github.com/pkgjs/parseargs/commit/cd20847a00b2f556aa9c085ac83b942c60868ec1))
9
-
10
- ## [0.10.0](https://github.com/pkgjs/parseargs/compare/v0.9.1...v0.10.0) (2022-07-21)
11
-
12
-
13
- ### Features
14
-
15
- * add parsed meta-data to returned properties ([#129](https://github.com/pkgjs/parseargs/issues/129)) ([91bfb4d](https://github.com/pkgjs/parseargs/commit/91bfb4d3f7b6937efab1b27c91c45d1205f1497e))
16
-
17
- ## [0.9.1](https://github.com/pkgjs/parseargs/compare/v0.9.0...v0.9.1) (2022-06-20)
18
-
19
-
20
- ### Bug Fixes
21
-
22
- * **runtime:** support node 14+ ([#135](https://github.com/pkgjs/parseargs/issues/135)) ([6a1c5a6](https://github.com/pkgjs/parseargs/commit/6a1c5a6f7cadf2f035e004027e2742e3c4ce554b))
23
-
24
- ## [0.9.0](https://github.com/pkgjs/parseargs/compare/v0.8.0...v0.9.0) (2022-05-23)
25
-
26
-
27
- ### ⚠ BREAKING CHANGES
28
-
29
- * drop handling of electron arguments (#121)
30
-
31
- ### Code Refactoring
32
-
33
- * drop handling of electron arguments ([#121](https://github.com/pkgjs/parseargs/issues/121)) ([a2ffd53](https://github.com/pkgjs/parseargs/commit/a2ffd537c244a062371522b955acb45a404fc9f2))
34
-
35
- ## [0.8.0](https://github.com/pkgjs/parseargs/compare/v0.7.1...v0.8.0) (2022-05-16)
36
-
37
-
38
- ### ⚠ BREAKING CHANGES
39
-
40
- * switch type:string option arguments to greedy, but with error for suspect cases in strict mode (#88)
41
- * positionals now opt-in when strict:true (#116)
42
- * create result.values with null prototype (#111)
43
-
44
- ### Features
45
-
46
- * create result.values with null prototype ([#111](https://github.com/pkgjs/parseargs/issues/111)) ([9d539c3](https://github.com/pkgjs/parseargs/commit/9d539c3d57f269c160e74e0656ad4fa84ff92ec2))
47
- * positionals now opt-in when strict:true ([#116](https://github.com/pkgjs/parseargs/issues/116)) ([3643338](https://github.com/pkgjs/parseargs/commit/364333826b746e8a7dc5505b4b22fd19ac51df3b))
48
- * switch type:string option arguments to greedy, but with error for suspect cases in strict mode ([#88](https://github.com/pkgjs/parseargs/issues/88)) ([c2b5e72](https://github.com/pkgjs/parseargs/commit/c2b5e72161991dfdc535909f1327cc9b970fe7e8))
49
-
50
- ### [0.7.1](https://github.com/pkgjs/parseargs/compare/v0.7.0...v0.7.1) (2022-04-15)
51
-
52
-
53
- ### Bug Fixes
54
-
55
- * resist pollution ([#106](https://github.com/pkgjs/parseargs/issues/106)) ([ecf2dec](https://github.com/pkgjs/parseargs/commit/ecf2dece0a9f2a76d789384d5d71c68ffe64022a))
56
-
57
- ## [0.7.0](https://github.com/pkgjs/parseargs/compare/v0.6.0...v0.7.0) (2022-04-13)
58
-
59
-
60
- ### Features
61
-
62
- * Add strict mode to parser ([#74](https://github.com/pkgjs/parseargs/issues/74)) ([8267d02](https://github.com/pkgjs/parseargs/commit/8267d02083a87b8b8a71fcce08348d1e031ea91c))
63
-
64
- ## [0.6.0](https://github.com/pkgjs/parseargs/compare/v0.5.0...v0.6.0) (2022-04-11)
65
-
66
-
67
- ### ⚠ BREAKING CHANGES
68
-
69
- * rework results to remove redundant `flags` property and store value true for boolean options (#83)
70
- * switch to existing ERR_INVALID_ARG_VALUE (#97)
71
-
72
- ### Code Refactoring
73
-
74
- * rework results to remove redundant `flags` property and store value true for boolean options ([#83](https://github.com/pkgjs/parseargs/issues/83)) ([be153db](https://github.com/pkgjs/parseargs/commit/be153dbed1d488cb7b6e27df92f601ba7337713d))
75
- * switch to existing ERR_INVALID_ARG_VALUE ([#97](https://github.com/pkgjs/parseargs/issues/97)) ([084a23f](https://github.com/pkgjs/parseargs/commit/084a23f9fde2da030b159edb1c2385f24579ce40))
76
-
77
- ## [0.5.0](https://github.com/pkgjs/parseargs/compare/v0.4.0...v0.5.0) (2022-04-10)
78
-
79
-
80
- ### ⚠ BREAKING CHANGES
81
-
82
- * Require type to be specified for each supplied option (#95)
83
-
84
- ### Features
85
-
86
- * Require type to be specified for each supplied option ([#95](https://github.com/pkgjs/parseargs/issues/95)) ([02cd018](https://github.com/pkgjs/parseargs/commit/02cd01885b8aaa59f2db8308f2d4479e64340068))
87
-
88
- ## [0.4.0](https://github.com/pkgjs/parseargs/compare/v0.3.0...v0.4.0) (2022-03-12)
89
-
90
-
91
- ### ⚠ BREAKING CHANGES
92
-
93
- * parsing, revisit short option groups, add support for combined short and value (#75)
94
- * restructure configuration to take options bag (#63)
95
-
96
- ### Code Refactoring
97
-
98
- * parsing, revisit short option groups, add support for combined short and value ([#75](https://github.com/pkgjs/parseargs/issues/75)) ([a92600f](https://github.com/pkgjs/parseargs/commit/a92600fa6c214508ab1e016fa55879a314f541af))
99
- * restructure configuration to take options bag ([#63](https://github.com/pkgjs/parseargs/issues/63)) ([b412095](https://github.com/pkgjs/parseargs/commit/b4120957d90e809ee8b607b06e747d3e6a6b213e))
100
-
101
- ## [0.3.0](https://github.com/pkgjs/parseargs/compare/v0.2.0...v0.3.0) (2022-02-06)
102
-
103
-
104
- ### Features
105
-
106
- * **parser:** support short-option groups ([#59](https://github.com/pkgjs/parseargs/issues/59)) ([882067b](https://github.com/pkgjs/parseargs/commit/882067bc2d7cbc6b796f8e5a079a99bc99d4e6ba))
107
-
108
- ## [0.2.0](https://github.com/pkgjs/parseargs/compare/v0.1.1...v0.2.0) (2022-02-05)
109
-
110
-
111
- ### Features
112
-
113
- * basic support for shorts ([#50](https://github.com/pkgjs/parseargs/issues/50)) ([a2f36d7](https://github.com/pkgjs/parseargs/commit/a2f36d7da4145af1c92f76806b7fe2baf6beeceb))
114
-
115
-
116
- ### Bug Fixes
117
-
118
- * always store value for a=b ([#43](https://github.com/pkgjs/parseargs/issues/43)) ([a85e8dc](https://github.com/pkgjs/parseargs/commit/a85e8dc06379fd2696ee195cc625de8fac6aee42))
119
- * support single dash as positional ([#49](https://github.com/pkgjs/parseargs/issues/49)) ([d795bf8](https://github.com/pkgjs/parseargs/commit/d795bf877d068fd67aec381f30b30b63f97109ad))
120
-
121
- ### [0.1.1](https://github.com/pkgjs/parseargs/compare/v0.1.0...v0.1.1) (2022-01-25)
122
-
123
-
124
- ### Bug Fixes
125
-
126
- * only use arrays in results for multiples ([#42](https://github.com/pkgjs/parseargs/issues/42)) ([c357584](https://github.com/pkgjs/parseargs/commit/c357584847912506319ed34a0840080116f4fd65))
127
-
128
- ## 0.1.0 (2022-01-22)
129
-
130
-
131
- ### Features
132
-
133
- * expand scenarios covered by default arguments for environments ([#20](https://github.com/pkgjs/parseargs/issues/20)) ([582ada7](https://github.com/pkgjs/parseargs/commit/582ada7be0eca3a73d6e0bd016e7ace43449fa4c))
134
- * update readme and include contributing guidelines ([8edd6fc](https://github.com/pkgjs/parseargs/commit/8edd6fc863cd705f6fac732724159ebe8065a2b0))
135
-
136
-
137
- ### Bug Fixes
138
-
139
- * do not strip excess leading dashes on long option names ([#21](https://github.com/pkgjs/parseargs/issues/21)) ([f848590](https://github.com/pkgjs/parseargs/commit/f848590ebf3249ed5979ff47e003fa6e1a8ec5c0))
140
- * name & readme ([3f057c1](https://github.com/pkgjs/parseargs/commit/3f057c1b158a1bdbe878c64b57460c58e56e465f))
141
- * package.json values ([9bac300](https://github.com/pkgjs/parseargs/commit/9bac300e00cd76c77076bf9e75e44f8929512da9))
142
- * update readme name ([957d8d9](https://github.com/pkgjs/parseargs/commit/957d8d96e1dcb48297c0a14345d44c0123b2883e))
143
-
144
-
145
- ### Build System
146
-
147
- * first release as minor ([421c6e2](https://github.com/pkgjs/parseargs/commit/421c6e2569a8668ad14fac5a5af5be60479a7571))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/README.md DELETED
@@ -1,413 +0,0 @@
1
- <!-- omit in toc -->
2
- # parseArgs
3
-
4
- [![Coverage][coverage-image]][coverage-url]
5
-
6
- Polyfill of `util.parseArgs()`
7
-
8
- ## `util.parseArgs([config])`
9
-
10
- <!-- YAML
11
- added: v18.3.0
12
- changes:
13
- - version: REPLACEME
14
- pr-url: https://github.com/nodejs/node/pull/43459
15
- description: add support for returning detailed parse information
16
- using `tokens` in input `config` and returned properties.
17
- -->
18
-
19
- > Stability: 1 - Experimental
20
-
21
- * `config` {Object} Used to provide arguments for parsing and to configure
22
- the parser. `config` supports the following properties:
23
- * `args` {string\[]} array of argument strings. **Default:** `process.argv`
24
- with `execPath` and `filename` removed.
25
- * `options` {Object} Used to describe arguments known to the parser.
26
- Keys of `options` are the long names of options and values are an
27
- {Object} accepting the following properties:
28
- * `type` {string} Type of argument, which must be either `boolean` or `string`.
29
- * `multiple` {boolean} Whether this option can be provided multiple
30
- times. If `true`, all values will be collected in an array. If
31
- `false`, values for the option are last-wins. **Default:** `false`.
32
- * `short` {string} A single character alias for the option.
33
- * `default` {string | boolean | string\[] | boolean\[]} The default option
34
- value when it is not set by args. It must be of the same type as the
35
- the `type` property. When `multiple` is `true`, it must be an array.
36
- * `strict` {boolean} Should an error be thrown when unknown arguments
37
- are encountered, or when arguments are passed that do not match the
38
- `type` configured in `options`.
39
- **Default:** `true`.
40
- * `allowPositionals` {boolean} Whether this command accepts positional
41
- arguments.
42
- **Default:** `false` if `strict` is `true`, otherwise `true`.
43
- * `tokens` {boolean} Return the parsed tokens. This is useful for extending
44
- the built-in behavior, from adding additional checks through to reprocessing
45
- the tokens in different ways.
46
- **Default:** `false`.
47
-
48
- * Returns: {Object} The parsed command line arguments:
49
- * `values` {Object} A mapping of parsed option names with their {string}
50
- or {boolean} values.
51
- * `positionals` {string\[]} Positional arguments.
52
- * `tokens` {Object\[] | undefined} See [parseArgs tokens](#parseargs-tokens)
53
- section. Only returned if `config` includes `tokens: true`.
54
-
55
- Provides a higher level API for command-line argument parsing than interacting
56
- with `process.argv` directly. Takes a specification for the expected arguments
57
- and returns a structured object with the parsed options and positionals.
58
-
59
- ```mjs
60
- import { parseArgs } from 'node:util';
61
- const args = ['-f', '--bar', 'b'];
62
- const options = {
63
- foo: {
64
- type: 'boolean',
65
- short: 'f'
66
- },
67
- bar: {
68
- type: 'string'
69
- }
70
- };
71
- const {
72
- values,
73
- positionals
74
- } = parseArgs({ args, options });
75
- console.log(values, positionals);
76
- // Prints: [Object: null prototype] { foo: true, bar: 'b' } []
77
- ```
78
-
79
- ```cjs
80
- const { parseArgs } = require('node:util');
81
- const args = ['-f', '--bar', 'b'];
82
- const options = {
83
- foo: {
84
- type: 'boolean',
85
- short: 'f'
86
- },
87
- bar: {
88
- type: 'string'
89
- }
90
- };
91
- const {
92
- values,
93
- positionals
94
- } = parseArgs({ args, options });
95
- console.log(values, positionals);
96
- // Prints: [Object: null prototype] { foo: true, bar: 'b' } []
97
- ```
98
-
99
- `util.parseArgs` is experimental and behavior may change. Join the
100
- conversation in [pkgjs/parseargs][] to contribute to the design.
101
-
102
- ### `parseArgs` `tokens`
103
-
104
- Detailed parse information is available for adding custom behaviours by
105
- specifying `tokens: true` in the configuration.
106
- The returned tokens have properties describing:
107
-
108
- * all tokens
109
- * `kind` {string} One of 'option', 'positional', or 'option-terminator'.
110
- * `index` {number} Index of element in `args` containing token. So the
111
- source argument for a token is `args[token.index]`.
112
- * option tokens
113
- * `name` {string} Long name of option.
114
- * `rawName` {string} How option used in args, like `-f` of `--foo`.
115
- * `value` {string | undefined} Option value specified in args.
116
- Undefined for boolean options.
117
- * `inlineValue` {boolean | undefined} Whether option value specified inline,
118
- like `--foo=bar`.
119
- * positional tokens
120
- * `value` {string} The value of the positional argument in args (i.e. `args[index]`).
121
- * option-terminator token
122
-
123
- The returned tokens are in the order encountered in the input args. Options
124
- that appear more than once in args produce a token for each use. Short option
125
- groups like `-xy` expand to a token for each option. So `-xxx` produces
126
- three tokens.
127
-
128
- For example to use the returned tokens to add support for a negated option
129
- like `--no-color`, the tokens can be reprocessed to change the value stored
130
- for the negated option.
131
-
132
- ```mjs
133
- import { parseArgs } from 'node:util';
134
-
135
- const options = {
136
- 'color': { type: 'boolean' },
137
- 'no-color': { type: 'boolean' },
138
- 'logfile': { type: 'string' },
139
- 'no-logfile': { type: 'boolean' },
140
- };
141
- const { values, tokens } = parseArgs({ options, tokens: true });
142
-
143
- // Reprocess the option tokens and overwrite the returned values.
144
- tokens
145
- .filter((token) => token.kind === 'option')
146
- .forEach((token) => {
147
- if (token.name.startsWith('no-')) {
148
- // Store foo:false for --no-foo
149
- const positiveName = token.name.slice(3);
150
- values[positiveName] = false;
151
- delete values[token.name];
152
- } else {
153
- // Resave value so last one wins if both --foo and --no-foo.
154
- values[token.name] = token.value ?? true;
155
- }
156
- });
157
-
158
- const color = values.color;
159
- const logfile = values.logfile ?? 'default.log';
160
-
161
- console.log({ logfile, color });
162
- ```
163
-
164
- ```cjs
165
- const { parseArgs } = require('node:util');
166
-
167
- const options = {
168
- 'color': { type: 'boolean' },
169
- 'no-color': { type: 'boolean' },
170
- 'logfile': { type: 'string' },
171
- 'no-logfile': { type: 'boolean' },
172
- };
173
- const { values, tokens } = parseArgs({ options, tokens: true });
174
-
175
- // Reprocess the option tokens and overwrite the returned values.
176
- tokens
177
- .filter((token) => token.kind === 'option')
178
- .forEach((token) => {
179
- if (token.name.startsWith('no-')) {
180
- // Store foo:false for --no-foo
181
- const positiveName = token.name.slice(3);
182
- values[positiveName] = false;
183
- delete values[token.name];
184
- } else {
185
- // Resave value so last one wins if both --foo and --no-foo.
186
- values[token.name] = token.value ?? true;
187
- }
188
- });
189
-
190
- const color = values.color;
191
- const logfile = values.logfile ?? 'default.log';
192
-
193
- console.log({ logfile, color });
194
- ```
195
-
196
- Example usage showing negated options, and when an option is used
197
- multiple ways then last one wins.
198
-
199
- ```console
200
- $ node negate.js
201
- { logfile: 'default.log', color: undefined }
202
- $ node negate.js --no-logfile --no-color
203
- { logfile: false, color: false }
204
- $ node negate.js --logfile=test.log --color
205
- { logfile: 'test.log', color: true }
206
- $ node negate.js --no-logfile --logfile=test.log --color --no-color
207
- { logfile: 'test.log', color: false }
208
- ```
209
-
210
- -----
211
-
212
- <!-- omit in toc -->
213
- ## Table of Contents
214
- - [`util.parseArgs([config])`](#utilparseargsconfig)
215
- - [Scope](#scope)
216
- - [Version Matchups](#version-matchups)
217
- - [🚀 Getting Started](#-getting-started)
218
- - [🙌 Contributing](#-contributing)
219
- - [💡 `process.mainArgs` Proposal](#-processmainargs-proposal)
220
- - [Implementation:](#implementation)
221
- - [📃 Examples](#-examples)
222
- - [F.A.Qs](#faqs)
223
- - [Links & Resources](#links--resources)
224
-
225
- -----
226
-
227
- ## Scope
228
-
229
- It is already possible to build great arg parsing modules on top of what Node.js provides; the prickly API is abstracted away by these modules. Thus, process.parseArgs() is not necessarily intended for library authors; it is intended for developers of simple CLI tools, ad-hoc scripts, deployed Node.js applications, and learning materials.
230
-
231
- It is exceedingly difficult to provide an API which would both be friendly to these Node.js users while being extensible enough for libraries to build upon. We chose to prioritize these use cases because these are currently not well-served by Node.js' API.
232
-
233
- ----
234
-
235
- ## Version Matchups
236
-
237
- | Node.js | @pkgjs/parseArgs |
238
- | -- | -- |
239
- | [v18.3.0](https://nodejs.org/docs/latest-v18.x/api/util.html#utilparseargsconfig) | [v0.9.1](https://github.com/pkgjs/parseargs/tree/v0.9.1#utilparseargsconfig) |
240
- | [v16.17.0](https://nodejs.org/dist/latest-v16.x/docs/api/util.html#utilparseargsconfig), [v18.7.0](https://nodejs.org/docs/latest-v18.x/api/util.html#utilparseargsconfig) | [0.10.0](https://github.com/pkgjs/parseargs/tree/v0.10.0#utilparseargsconfig) |
241
-
242
- ----
243
-
244
- ## 🚀 Getting Started
245
-
246
- 1. **Install dependencies.**
247
-
248
- ```bash
249
- npm install
250
- ```
251
-
252
- 2. **Open the index.js file and start editing!**
253
-
254
- 3. **Test your code by calling parseArgs through our test file**
255
-
256
- ```bash
257
- npm test
258
- ```
259
-
260
- ----
261
-
262
- ## 🙌 Contributing
263
-
264
- Any person who wants to contribute to the initiative is welcome! Please first read the [Contributing Guide](CONTRIBUTING.md)
265
-
266
- Additionally, reading the [`Examples w/ Output`](#-examples-w-output) section of this document will be the best way to familiarize yourself with the target expected behavior for parseArgs() once it is fully implemented.
267
-
268
- This package was implemented using [tape](https://www.npmjs.com/package/tape) as its test harness.
269
-
270
- ----
271
-
272
- ## 💡 `process.mainArgs` Proposal
273
-
274
- > Note: This can be moved forward independently of the `util.parseArgs()` proposal/work.
275
-
276
- ### Implementation:
277
-
278
- ```javascript
279
- process.mainArgs = process.argv.slice(process._exec ? 1 : 2)
280
- ```
281
-
282
- ----
283
-
284
- ## 📃 Examples
285
-
286
- ```js
287
- const { parseArgs } = require('@pkgjs/parseargs');
288
- ```
289
-
290
- ```js
291
- const { parseArgs } = require('@pkgjs/parseargs');
292
- // specify the options that may be used
293
- const options = {
294
- foo: { type: 'string'},
295
- bar: { type: 'boolean' },
296
- };
297
- const args = ['--foo=a', '--bar'];
298
- const { values, positionals } = parseArgs({ args, options });
299
- // values = { foo: 'a', bar: true }
300
- // positionals = []
301
- ```
302
-
303
- ```js
304
- const { parseArgs } = require('@pkgjs/parseargs');
305
- // type:string & multiple
306
- const options = {
307
- foo: {
308
- type: 'string',
309
- multiple: true,
310
- },
311
- };
312
- const args = ['--foo=a', '--foo', 'b'];
313
- const { values, positionals } = parseArgs({ args, options });
314
- // values = { foo: [ 'a', 'b' ] }
315
- // positionals = []
316
- ```
317
-
318
- ```js
319
- const { parseArgs } = require('@pkgjs/parseargs');
320
- // shorts
321
- const options = {
322
- foo: {
323
- short: 'f',
324
- type: 'boolean'
325
- },
326
- };
327
- const args = ['-f', 'b'];
328
- const { values, positionals } = parseArgs({ args, options, allowPositionals: true });
329
- // values = { foo: true }
330
- // positionals = ['b']
331
- ```
332
-
333
- ```js
334
- const { parseArgs } = require('@pkgjs/parseargs');
335
- // unconfigured
336
- const options = {};
337
- const args = ['-f', '--foo=a', '--bar', 'b'];
338
- const { values, positionals } = parseArgs({ strict: false, args, options, allowPositionals: true });
339
- // values = { f: true, foo: 'a', bar: true }
340
- // positionals = ['b']
341
- ```
342
-
343
- ----
344
-
345
- ## F.A.Qs
346
-
347
- - Is `cmd --foo=bar baz` the same as `cmd baz --foo=bar`?
348
- - yes
349
- - Does the parser execute a function?
350
- - no
351
- - Does the parser execute one of several functions, depending on input?
352
- - no
353
- - Can subcommands take options that are distinct from the main command?
354
- - no
355
- - Does it output generated help when no options match?
356
- - no
357
- - Does it generated short usage? Like: `usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...]`
358
- - no (no usage/help at all)
359
- - Does the user provide the long usage text? For each option? For the whole command?
360
- - no
361
- - Do subcommands (if implemented) have their own usage output?
362
- - no
363
- - Does usage print if the user runs `cmd --help`?
364
- - no
365
- - Does it set `process.exitCode`?
366
- - no
367
- - Does usage print to stderr or stdout?
368
- - N/A
369
- - Does it check types? (Say, specify that an option is a boolean, number, etc.)
370
- - no
371
- - Can an option have more than one type? (string or false, for example)
372
- - no
373
- - Can the user define a type? (Say, `type: path` to call `path.resolve()` on the argument.)
374
- - no
375
- - Does a `--foo=0o22` mean 0, 22, 18, or "0o22"?
376
- - `"0o22"`
377
- - Does it coerce types?
378
- - no
379
- - Does `--no-foo` coerce to `--foo=false`? For all options? Only boolean options?
380
- - no, it sets `{values:{'no-foo': true}}`
381
- - Is `--foo` the same as `--foo=true`? Only for known booleans? Only at the end?
382
- - no, they are not the same. There is no special handling of `true` as a value so it is just another string.
383
- - Does it read environment variables? Ie, is `FOO=1 cmd` the same as `cmd --foo=1`?
384
- - no
385
- - Do unknown arguments raise an error? Are they parsed? Are they treated as positional arguments?
386
- - no, they are parsed, not treated as positionals
387
- - Does `--` signal the end of options?
388
- - yes
389
- - Is `--` included as a positional?
390
- - no
391
- - Is `program -- foo` the same as `program foo`?
392
- - yes, both store `{positionals:['foo']}`
393
- - Does the API specify whether a `--` was present/relevant?
394
- - no
395
- - Is `-bar` the same as `--bar`?
396
- - no, `-bar` is a short option or options, with expansion logic that follows the
397
- [Utility Syntax Guidelines in POSIX.1-2017](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html). `-bar` expands to `-b`, `-a`, `-r`.
398
- - Is `---foo` the same as `--foo`?
399
- - no
400
- - the first is a long option named `'-foo'`
401
- - the second is a long option named `'foo'`
402
- - Is `-` a positional? ie, `bash some-test.sh | tap -`
403
- - yes
404
-
405
- ## Links & Resources
406
-
407
- * [Initial Tooling Issue](https://github.com/nodejs/tooling/issues/19)
408
- * [Initial Proposal](https://github.com/nodejs/node/pull/35015)
409
- * [parseArgs Proposal](https://github.com/nodejs/node/pull/42675)
410
-
411
- [coverage-image]: https://img.shields.io/nycrc/pkgjs/parseargs
412
- [coverage-url]: https://github.com/pkgjs/parseargs/blob/main/.nycrc
413
- [pkgjs/parseargs]: https://github.com/pkgjs/parseargs
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/examples/is-default-value.js DELETED
@@ -1,25 +0,0 @@
1
- 'use strict';
2
-
3
- // This example shows how to understand if a default value is used or not.
4
-
5
- // 1. const { parseArgs } = require('node:util'); // from node
6
- // 2. const { parseArgs } = require('@pkgjs/parseargs'); // from package
7
- const { parseArgs } = require('..'); // in repo
8
-
9
- const options = {
10
- file: { short: 'f', type: 'string', default: 'FOO' },
11
- };
12
-
13
- const { values, tokens } = parseArgs({ options, tokens: true });
14
-
15
- const isFileDefault = !tokens.some((token) => token.kind === 'option' &&
16
- token.name === 'file'
17
- );
18
-
19
- console.log(values);
20
- console.log(`Is the file option [${values.file}] the default value? ${isFileDefault}`);
21
-
22
- // Try the following:
23
- // node is-default-value.js
24
- // node is-default-value.js -f FILE
25
- // node is-default-value.js --file FILE
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/examples/limit-long-syntax.js DELETED
@@ -1,35 +0,0 @@
1
- 'use strict';
2
-
3
- // This is an example of using tokens to add a custom behaviour.
4
- //
5
- // Require the use of `=` for long options and values by blocking
6
- // the use of space separated values.
7
- // So allow `--foo=bar`, and not allow `--foo bar`.
8
- //
9
- // Note: this is not a common behaviour, most CLIs allow both forms.
10
-
11
- // 1. const { parseArgs } = require('node:util'); // from node
12
- // 2. const { parseArgs } = require('@pkgjs/parseargs'); // from package
13
- const { parseArgs } = require('..'); // in repo
14
-
15
- const options = {
16
- file: { short: 'f', type: 'string' },
17
- log: { type: 'string' },
18
- };
19
-
20
- const { values, tokens } = parseArgs({ options, tokens: true });
21
-
22
- const badToken = tokens.find((token) => token.kind === 'option' &&
23
- token.value != null &&
24
- token.rawName.startsWith('--') &&
25
- !token.inlineValue
26
- );
27
- if (badToken) {
28
- throw new Error(`Option value for '${badToken.rawName}' must be inline, like '${badToken.rawName}=VALUE'`);
29
- }
30
-
31
- console.log(values);
32
-
33
- // Try the following:
34
- // node limit-long-syntax.js -f FILE --log=LOG
35
- // node limit-long-syntax.js --file FILE
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/examples/negate.js DELETED
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- // This example is used in the documentation.
4
-
5
- // How might I add my own support for --no-foo?
6
-
7
- // 1. const { parseArgs } = require('node:util'); // from node
8
- // 2. const { parseArgs } = require('@pkgjs/parseargs'); // from package
9
- const { parseArgs } = require('..'); // in repo
10
-
11
- const options = {
12
- 'color': { type: 'boolean' },
13
- 'no-color': { type: 'boolean' },
14
- 'logfile': { type: 'string' },
15
- 'no-logfile': { type: 'boolean' },
16
- };
17
- const { values, tokens } = parseArgs({ options, tokens: true });
18
-
19
- // Reprocess the option tokens and overwrite the returned values.
20
- tokens
21
- .filter((token) => token.kind === 'option')
22
- .forEach((token) => {
23
- if (token.name.startsWith('no-')) {
24
- // Store foo:false for --no-foo
25
- const positiveName = token.name.slice(3);
26
- values[positiveName] = false;
27
- delete values[token.name];
28
- } else {
29
- // Resave value so last one wins if both --foo and --no-foo.
30
- values[token.name] = token.value ?? true;
31
- }
32
- });
33
-
34
- const color = values.color;
35
- const logfile = values.logfile ?? 'default.log';
36
-
37
- console.log({ logfile, color });
38
-
39
- // Try the following:
40
- // node negate.js
41
- // node negate.js --no-logfile --no-color
42
- // negate.js --logfile=test.log --color
43
- // node negate.js --no-logfile --logfile=test.log --color --no-color
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/examples/no-repeated-options.js DELETED
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- // This is an example of using tokens to add a custom behaviour.
4
- //
5
- // Throw an error if an option is used more than once.
6
-
7
- // 1. const { parseArgs } = require('node:util'); // from node
8
- // 2. const { parseArgs } = require('@pkgjs/parseargs'); // from package
9
- const { parseArgs } = require('..'); // in repo
10
-
11
- const options = {
12
- ding: { type: 'boolean', short: 'd' },
13
- beep: { type: 'boolean', short: 'b' }
14
- };
15
- const { values, tokens } = parseArgs({ options, tokens: true });
16
-
17
- const seenBefore = new Set();
18
- tokens.forEach((token) => {
19
- if (token.kind !== 'option') return;
20
- if (seenBefore.has(token.name)) {
21
- throw new Error(`option '${token.name}' used multiple times`);
22
- }
23
- seenBefore.add(token.name);
24
- });
25
-
26
- console.log(values);
27
-
28
- // Try the following:
29
- // node no-repeated-options --ding --beep
30
- // node no-repeated-options --beep -b
31
- // node no-repeated-options -ddd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/examples/ordered-options.mjs DELETED
@@ -1,41 +0,0 @@
1
- // This is an example of using tokens to add a custom behaviour.
2
- //
3
- // This adds a option order check so that --some-unstable-option
4
- // may only be used after --enable-experimental-options
5
- //
6
- // Note: this is not a common behaviour, the order of different options
7
- // does not usually matter.
8
-
9
- import { parseArgs } from '../index.js';
10
-
11
- function findTokenIndex(tokens, target) {
12
- return tokens.findIndex((token) => token.kind === 'option' &&
13
- token.name === target
14
- );
15
- }
16
-
17
- const experimentalName = 'enable-experimental-options';
18
- const unstableName = 'some-unstable-option';
19
-
20
- const options = {
21
- [experimentalName]: { type: 'boolean' },
22
- [unstableName]: { type: 'boolean' },
23
- };
24
-
25
- const { values, tokens } = parseArgs({ options, tokens: true });
26
-
27
- const experimentalIndex = findTokenIndex(tokens, experimentalName);
28
- const unstableIndex = findTokenIndex(tokens, unstableName);
29
- if (unstableIndex !== -1 &&
30
- ((experimentalIndex === -1) || (unstableIndex < experimentalIndex))) {
31
- throw new Error(`'--${experimentalName}' must be specified before '--${unstableName}'`);
32
- }
33
-
34
- console.log(values);
35
-
36
- /* eslint-disable max-len */
37
- // Try the following:
38
- // node ordered-options.mjs
39
- // node ordered-options.mjs --some-unstable-option
40
- // node ordered-options.mjs --some-unstable-option --enable-experimental-options
41
- // node ordered-options.mjs --enable-experimental-options --some-unstable-option
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/examples/simple-hard-coded.js DELETED
@@ -1,26 +0,0 @@
1
- 'use strict';
2
-
3
- // This example is used in the documentation.
4
-
5
- // 1. const { parseArgs } = require('node:util'); // from node
6
- // 2. const { parseArgs } = require('@pkgjs/parseargs'); // from package
7
- const { parseArgs } = require('..'); // in repo
8
-
9
- const args = ['-f', '--bar', 'b'];
10
- const options = {
11
- foo: {
12
- type: 'boolean',
13
- short: 'f'
14
- },
15
- bar: {
16
- type: 'string'
17
- }
18
- };
19
- const {
20
- values,
21
- positionals
22
- } = parseArgs({ args, options });
23
- console.log(values, positionals);
24
-
25
- // Try the following:
26
- // node simple-hard-coded.js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/index.js DELETED
@@ -1,396 +0,0 @@
1
- 'use strict';
2
-
3
- const {
4
- ArrayPrototypeForEach,
5
- ArrayPrototypeIncludes,
6
- ArrayPrototypeMap,
7
- ArrayPrototypePush,
8
- ArrayPrototypePushApply,
9
- ArrayPrototypeShift,
10
- ArrayPrototypeSlice,
11
- ArrayPrototypeUnshiftApply,
12
- ObjectEntries,
13
- ObjectPrototypeHasOwnProperty: ObjectHasOwn,
14
- StringPrototypeCharAt,
15
- StringPrototypeIndexOf,
16
- StringPrototypeSlice,
17
- StringPrototypeStartsWith,
18
- } = require('./internal/primordials');
19
-
20
- const {
21
- validateArray,
22
- validateBoolean,
23
- validateBooleanArray,
24
- validateObject,
25
- validateString,
26
- validateStringArray,
27
- validateUnion,
28
- } = require('./internal/validators');
29
-
30
- const {
31
- kEmptyObject,
32
- } = require('./internal/util');
33
-
34
- const {
35
- findLongOptionForShort,
36
- isLoneLongOption,
37
- isLoneShortOption,
38
- isLongOptionAndValue,
39
- isOptionValue,
40
- isOptionLikeValue,
41
- isShortOptionAndValue,
42
- isShortOptionGroup,
43
- useDefaultValueOption,
44
- objectGetOwn,
45
- optionsGetOwn,
46
- } = require('./utils');
47
-
48
- const {
49
- codes: {
50
- ERR_INVALID_ARG_VALUE,
51
- ERR_PARSE_ARGS_INVALID_OPTION_VALUE,
52
- ERR_PARSE_ARGS_UNKNOWN_OPTION,
53
- ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL,
54
- },
55
- } = require('./internal/errors');
56
-
57
- function getMainArgs() {
58
- // Work out where to slice process.argv for user supplied arguments.
59
-
60
- // Check node options for scenarios where user CLI args follow executable.
61
- const execArgv = process.execArgv;
62
- if (ArrayPrototypeIncludes(execArgv, '-e') ||
63
- ArrayPrototypeIncludes(execArgv, '--eval') ||
64
- ArrayPrototypeIncludes(execArgv, '-p') ||
65
- ArrayPrototypeIncludes(execArgv, '--print')) {
66
- return ArrayPrototypeSlice(process.argv, 1);
67
- }
68
-
69
- // Normally first two arguments are executable and script, then CLI arguments
70
- return ArrayPrototypeSlice(process.argv, 2);
71
- }
72
-
73
- /**
74
- * In strict mode, throw for possible usage errors like --foo --bar
75
- *
76
- * @param {object} token - from tokens as available from parseArgs
77
- */
78
- function checkOptionLikeValue(token) {
79
- if (!token.inlineValue && isOptionLikeValue(token.value)) {
80
- // Only show short example if user used short option.
81
- const example = StringPrototypeStartsWith(token.rawName, '--') ?
82
- `'${token.rawName}=-XYZ'` :
83
- `'--${token.name}=-XYZ' or '${token.rawName}-XYZ'`;
84
- const errorMessage = `Option '${token.rawName}' argument is ambiguous.
85
- Did you forget to specify the option argument for '${token.rawName}'?
86
- To specify an option argument starting with a dash use ${example}.`;
87
- throw new ERR_PARSE_ARGS_INVALID_OPTION_VALUE(errorMessage);
88
- }
89
- }
90
-
91
- /**
92
- * In strict mode, throw for usage errors.
93
- *
94
- * @param {object} config - from config passed to parseArgs
95
- * @param {object} token - from tokens as available from parseArgs
96
- */
97
- function checkOptionUsage(config, token) {
98
- if (!ObjectHasOwn(config.options, token.name)) {
99
- throw new ERR_PARSE_ARGS_UNKNOWN_OPTION(
100
- token.rawName, config.allowPositionals);
101
- }
102
-
103
- const short = optionsGetOwn(config.options, token.name, 'short');
104
- const shortAndLong = `${short ? `-${short}, ` : ''}--${token.name}`;
105
- const type = optionsGetOwn(config.options, token.name, 'type');
106
- if (type === 'string' && typeof token.value !== 'string') {
107
- throw new ERR_PARSE_ARGS_INVALID_OPTION_VALUE(`Option '${shortAndLong} <value>' argument missing`);
108
- }
109
- // (Idiomatic test for undefined||null, expecting undefined.)
110
- if (type === 'boolean' && token.value != null) {
111
- throw new ERR_PARSE_ARGS_INVALID_OPTION_VALUE(`Option '${shortAndLong}' does not take an argument`);
112
- }
113
- }
114
-
115
-
116
- /**
117
- * Store the option value in `values`.
118
- *
119
- * @param {string} longOption - long option name e.g. 'foo'
120
- * @param {string|undefined} optionValue - value from user args
121
- * @param {object} options - option configs, from parseArgs({ options })
122
- * @param {object} values - option values returned in `values` by parseArgs
123
- */
124
- function storeOption(longOption, optionValue, options, values) {
125
- if (longOption === '__proto__') {
126
- return; // No. Just no.
127
- }
128
-
129
- // We store based on the option value rather than option type,
130
- // preserving the users intent for author to deal with.
131
- const newValue = optionValue ?? true;
132
- if (optionsGetOwn(options, longOption, 'multiple')) {
133
- // Always store value in array, including for boolean.
134
- // values[longOption] starts out not present,
135
- // first value is added as new array [newValue],
136
- // subsequent values are pushed to existing array.
137
- // (note: values has null prototype, so simpler usage)
138
- if (values[longOption]) {
139
- ArrayPrototypePush(values[longOption], newValue);
140
- } else {
141
- values[longOption] = [newValue];
142
- }
143
- } else {
144
- values[longOption] = newValue;
145
- }
146
- }
147
-
148
- /**
149
- * Store the default option value in `values`.
150
- *
151
- * @param {string} longOption - long option name e.g. 'foo'
152
- * @param {string
153
- * | boolean
154
- * | string[]
155
- * | boolean[]} optionValue - default value from option config
156
- * @param {object} values - option values returned in `values` by parseArgs
157
- */
158
- function storeDefaultOption(longOption, optionValue, values) {
159
- if (longOption === '__proto__') {
160
- return; // No. Just no.
161
- }
162
-
163
- values[longOption] = optionValue;
164
- }
165
-
166
- /**
167
- * Process args and turn into identified tokens:
168
- * - option (along with value, if any)
169
- * - positional
170
- * - option-terminator
171
- *
172
- * @param {string[]} args - from parseArgs({ args }) or mainArgs
173
- * @param {object} options - option configs, from parseArgs({ options })
174
- */
175
- function argsToTokens(args, options) {
176
- const tokens = [];
177
- let index = -1;
178
- let groupCount = 0;
179
-
180
- const remainingArgs = ArrayPrototypeSlice(args);
181
- while (remainingArgs.length > 0) {
182
- const arg = ArrayPrototypeShift(remainingArgs);
183
- const nextArg = remainingArgs[0];
184
- if (groupCount > 0)
185
- groupCount--;
186
- else
187
- index++;
188
-
189
- // Check if `arg` is an options terminator.
190
- // Guideline 10 in https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html
191
- if (arg === '--') {
192
- // Everything after a bare '--' is considered a positional argument.
193
- ArrayPrototypePush(tokens, { kind: 'option-terminator', index });
194
- ArrayPrototypePushApply(
195
- tokens, ArrayPrototypeMap(remainingArgs, (arg) => {
196
- return { kind: 'positional', index: ++index, value: arg };
197
- })
198
- );
199
- break; // Finished processing args, leave while loop.
200
- }
201
-
202
- if (isLoneShortOption(arg)) {
203
- // e.g. '-f'
204
- const shortOption = StringPrototypeCharAt(arg, 1);
205
- const longOption = findLongOptionForShort(shortOption, options);
206
- let value;
207
- let inlineValue;
208
- if (optionsGetOwn(options, longOption, 'type') === 'string' &&
209
- isOptionValue(nextArg)) {
210
- // e.g. '-f', 'bar'
211
- value = ArrayPrototypeShift(remainingArgs);
212
- inlineValue = false;
213
- }
214
- ArrayPrototypePush(
215
- tokens,
216
- { kind: 'option', name: longOption, rawName: arg,
217
- index, value, inlineValue });
218
- if (value != null) ++index;
219
- continue;
220
- }
221
-
222
- if (isShortOptionGroup(arg, options)) {
223
- // Expand -fXzy to -f -X -z -y
224
- const expanded = [];
225
- for (let index = 1; index < arg.length; index++) {
226
- const shortOption = StringPrototypeCharAt(arg, index);
227
- const longOption = findLongOptionForShort(shortOption, options);
228
- if (optionsGetOwn(options, longOption, 'type') !== 'string' ||
229
- index === arg.length - 1) {
230
- // Boolean option, or last short in group. Well formed.
231
- ArrayPrototypePush(expanded, `-${shortOption}`);
232
- } else {
233
- // String option in middle. Yuck.
234
- // Expand -abfFILE to -a -b -fFILE
235
- ArrayPrototypePush(expanded, `-${StringPrototypeSlice(arg, index)}`);
236
- break; // finished short group
237
- }
238
- }
239
- ArrayPrototypeUnshiftApply(remainingArgs, expanded);
240
- groupCount = expanded.length;
241
- continue;
242
- }
243
-
244
- if (isShortOptionAndValue(arg, options)) {
245
- // e.g. -fFILE
246
- const shortOption = StringPrototypeCharAt(arg, 1);
247
- const longOption = findLongOptionForShort(shortOption, options);
248
- const value = StringPrototypeSlice(arg, 2);
249
- ArrayPrototypePush(
250
- tokens,
251
- { kind: 'option', name: longOption, rawName: `-${shortOption}`,
252
- index, value, inlineValue: true });
253
- continue;
254
- }
255
-
256
- if (isLoneLongOption(arg)) {
257
- // e.g. '--foo'
258
- const longOption = StringPrototypeSlice(arg, 2);
259
- let value;
260
- let inlineValue;
261
- if (optionsGetOwn(options, longOption, 'type') === 'string' &&
262
- isOptionValue(nextArg)) {
263
- // e.g. '--foo', 'bar'
264
- value = ArrayPrototypeShift(remainingArgs);
265
- inlineValue = false;
266
- }
267
- ArrayPrototypePush(
268
- tokens,
269
- { kind: 'option', name: longOption, rawName: arg,
270
- index, value, inlineValue });
271
- if (value != null) ++index;
272
- continue;
273
- }
274
-
275
- if (isLongOptionAndValue(arg)) {
276
- // e.g. --foo=bar
277
- const equalIndex = StringPrototypeIndexOf(arg, '=');
278
- const longOption = StringPrototypeSlice(arg, 2, equalIndex);
279
- const value = StringPrototypeSlice(arg, equalIndex + 1);
280
- ArrayPrototypePush(
281
- tokens,
282
- { kind: 'option', name: longOption, rawName: `--${longOption}`,
283
- index, value, inlineValue: true });
284
- continue;
285
- }
286
-
287
- ArrayPrototypePush(tokens, { kind: 'positional', index, value: arg });
288
- }
289
-
290
- return tokens;
291
- }
292
-
293
- const parseArgs = (config = kEmptyObject) => {
294
- const args = objectGetOwn(config, 'args') ?? getMainArgs();
295
- const strict = objectGetOwn(config, 'strict') ?? true;
296
- const allowPositionals = objectGetOwn(config, 'allowPositionals') ?? !strict;
297
- const returnTokens = objectGetOwn(config, 'tokens') ?? false;
298
- const options = objectGetOwn(config, 'options') ?? { __proto__: null };
299
- // Bundle these up for passing to strict-mode checks.
300
- const parseConfig = { args, strict, options, allowPositionals };
301
-
302
- // Validate input configuration.
303
- validateArray(args, 'args');
304
- validateBoolean(strict, 'strict');
305
- validateBoolean(allowPositionals, 'allowPositionals');
306
- validateBoolean(returnTokens, 'tokens');
307
- validateObject(options, 'options');
308
- ArrayPrototypeForEach(
309
- ObjectEntries(options),
310
- ({ 0: longOption, 1: optionConfig }) => {
311
- validateObject(optionConfig, `options.${longOption}`);
312
-
313
- // type is required
314
- const optionType = objectGetOwn(optionConfig, 'type');
315
- validateUnion(optionType, `options.${longOption}.type`, ['string', 'boolean']);
316
-
317
- if (ObjectHasOwn(optionConfig, 'short')) {
318
- const shortOption = optionConfig.short;
319
- validateString(shortOption, `options.${longOption}.short`);
320
- if (shortOption.length !== 1) {
321
- throw new ERR_INVALID_ARG_VALUE(
322
- `options.${longOption}.short`,
323
- shortOption,
324
- 'must be a single character'
325
- );
326
- }
327
- }
328
-
329
- const multipleOption = objectGetOwn(optionConfig, 'multiple');
330
- if (ObjectHasOwn(optionConfig, 'multiple')) {
331
- validateBoolean(multipleOption, `options.${longOption}.multiple`);
332
- }
333
-
334
- const defaultValue = objectGetOwn(optionConfig, 'default');
335
- if (defaultValue !== undefined) {
336
- let validator;
337
- switch (optionType) {
338
- case 'string':
339
- validator = multipleOption ? validateStringArray : validateString;
340
- break;
341
-
342
- case 'boolean':
343
- validator = multipleOption ? validateBooleanArray : validateBoolean;
344
- break;
345
- }
346
- validator(defaultValue, `options.${longOption}.default`);
347
- }
348
- }
349
- );
350
-
351
- // Phase 1: identify tokens
352
- const tokens = argsToTokens(args, options);
353
-
354
- // Phase 2: process tokens into parsed option values and positionals
355
- const result = {
356
- values: { __proto__: null },
357
- positionals: [],
358
- };
359
- if (returnTokens) {
360
- result.tokens = tokens;
361
- }
362
- ArrayPrototypeForEach(tokens, (token) => {
363
- if (token.kind === 'option') {
364
- if (strict) {
365
- checkOptionUsage(parseConfig, token);
366
- checkOptionLikeValue(token);
367
- }
368
- storeOption(token.name, token.value, options, result.values);
369
- } else if (token.kind === 'positional') {
370
- if (!allowPositionals) {
371
- throw new ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL(token.value);
372
- }
373
- ArrayPrototypePush(result.positionals, token.value);
374
- }
375
- });
376
-
377
- // Phase 3: fill in default values for missing args
378
- ArrayPrototypeForEach(ObjectEntries(options), ({ 0: longOption,
379
- 1: optionConfig }) => {
380
- const mustSetDefault = useDefaultValueOption(longOption,
381
- optionConfig,
382
- result.values);
383
- if (mustSetDefault) {
384
- storeDefaultOption(longOption,
385
- objectGetOwn(optionConfig, 'default'),
386
- result.values);
387
- }
388
- });
389
-
390
-
391
- return result;
392
- };
393
-
394
- module.exports = {
395
- parseArgs,
396
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/internal/errors.js DELETED
@@ -1,47 +0,0 @@
1
- 'use strict';
2
-
3
- class ERR_INVALID_ARG_TYPE extends TypeError {
4
- constructor(name, expected, actual) {
5
- super(`${name} must be ${expected} got ${actual}`);
6
- this.code = 'ERR_INVALID_ARG_TYPE';
7
- }
8
- }
9
-
10
- class ERR_INVALID_ARG_VALUE extends TypeError {
11
- constructor(arg1, arg2, expected) {
12
- super(`The property ${arg1} ${expected}. Received '${arg2}'`);
13
- this.code = 'ERR_INVALID_ARG_VALUE';
14
- }
15
- }
16
-
17
- class ERR_PARSE_ARGS_INVALID_OPTION_VALUE extends Error {
18
- constructor(message) {
19
- super(message);
20
- this.code = 'ERR_PARSE_ARGS_INVALID_OPTION_VALUE';
21
- }
22
- }
23
-
24
- class ERR_PARSE_ARGS_UNKNOWN_OPTION extends Error {
25
- constructor(option, allowPositionals) {
26
- const suggestDashDash = allowPositionals ? `. To specify a positional argument starting with a '-', place it at the end of the command after '--', as in '-- ${JSON.stringify(option)}` : '';
27
- super(`Unknown option '${option}'${suggestDashDash}`);
28
- this.code = 'ERR_PARSE_ARGS_UNKNOWN_OPTION';
29
- }
30
- }
31
-
32
- class ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL extends Error {
33
- constructor(positional) {
34
- super(`Unexpected argument '${positional}'. This command does not take positional arguments`);
35
- this.code = 'ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL';
36
- }
37
- }
38
-
39
- module.exports = {
40
- codes: {
41
- ERR_INVALID_ARG_TYPE,
42
- ERR_INVALID_ARG_VALUE,
43
- ERR_PARSE_ARGS_INVALID_OPTION_VALUE,
44
- ERR_PARSE_ARGS_UNKNOWN_OPTION,
45
- ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL,
46
- }
47
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/internal/primordials.js DELETED
@@ -1,393 +0,0 @@
1
- /*
2
- This file is copied from https://github.com/nodejs/node/blob/v14.19.3/lib/internal/per_context/primordials.js
3
- under the following license:
4
-
5
- Copyright Node.js contributors. All rights reserved.
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to
9
- deal in the Software without restriction, including without limitation the
10
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
11
- sell copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in
15
- all copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
- IN THE SOFTWARE.
24
- */
25
-
26
- 'use strict';
27
-
28
- /* eslint-disable node-core/prefer-primordials */
29
-
30
- // This file subclasses and stores the JS builtins that come from the VM
31
- // so that Node.js's builtin modules do not need to later look these up from
32
- // the global proxy, which can be mutated by users.
33
-
34
- // Use of primordials have sometimes a dramatic impact on performance, please
35
- // benchmark all changes made in performance-sensitive areas of the codebase.
36
- // See: https://github.com/nodejs/node/pull/38248
37
-
38
- const primordials = {};
39
-
40
- const {
41
- defineProperty: ReflectDefineProperty,
42
- getOwnPropertyDescriptor: ReflectGetOwnPropertyDescriptor,
43
- ownKeys: ReflectOwnKeys,
44
- } = Reflect;
45
-
46
- // `uncurryThis` is equivalent to `func => Function.prototype.call.bind(func)`.
47
- // It is using `bind.bind(call)` to avoid using `Function.prototype.bind`
48
- // and `Function.prototype.call` after it may have been mutated by users.
49
- const { apply, bind, call } = Function.prototype;
50
- const uncurryThis = bind.bind(call);
51
- primordials.uncurryThis = uncurryThis;
52
-
53
- // `applyBind` is equivalent to `func => Function.prototype.apply.bind(func)`.
54
- // It is using `bind.bind(apply)` to avoid using `Function.prototype.bind`
55
- // and `Function.prototype.apply` after it may have been mutated by users.
56
- const applyBind = bind.bind(apply);
57
- primordials.applyBind = applyBind;
58
-
59
- // Methods that accept a variable number of arguments, and thus it's useful to
60
- // also create `${prefix}${key}Apply`, which uses `Function.prototype.apply`,
61
- // instead of `Function.prototype.call`, and thus doesn't require iterator
62
- // destructuring.
63
- const varargsMethods = [
64
- // 'ArrayPrototypeConcat' is omitted, because it performs the spread
65
- // on its own for arrays and array-likes with a truthy
66
- // @@isConcatSpreadable symbol property.
67
- 'ArrayOf',
68
- 'ArrayPrototypePush',
69
- 'ArrayPrototypeUnshift',
70
- // 'FunctionPrototypeCall' is omitted, since there's 'ReflectApply'
71
- // and 'FunctionPrototypeApply'.
72
- 'MathHypot',
73
- 'MathMax',
74
- 'MathMin',
75
- 'StringPrototypeConcat',
76
- 'TypedArrayOf',
77
- ];
78
-
79
- function getNewKey(key) {
80
- return typeof key === 'symbol' ?
81
- `Symbol${key.description[7].toUpperCase()}${key.description.slice(8)}` :
82
- `${key[0].toUpperCase()}${key.slice(1)}`;
83
- }
84
-
85
- function copyAccessor(dest, prefix, key, { enumerable, get, set }) {
86
- ReflectDefineProperty(dest, `${prefix}Get${key}`, {
87
- value: uncurryThis(get),
88
- enumerable
89
- });
90
- if (set !== undefined) {
91
- ReflectDefineProperty(dest, `${prefix}Set${key}`, {
92
- value: uncurryThis(set),
93
- enumerable
94
- });
95
- }
96
- }
97
-
98
- function copyPropsRenamed(src, dest, prefix) {
99
- for (const key of ReflectOwnKeys(src)) {
100
- const newKey = getNewKey(key);
101
- const desc = ReflectGetOwnPropertyDescriptor(src, key);
102
- if ('get' in desc) {
103
- copyAccessor(dest, prefix, newKey, desc);
104
- } else {
105
- const name = `${prefix}${newKey}`;
106
- ReflectDefineProperty(dest, name, desc);
107
- if (varargsMethods.includes(name)) {
108
- ReflectDefineProperty(dest, `${name}Apply`, {
109
- // `src` is bound as the `this` so that the static `this` points
110
- // to the object it was defined on,
111
- // e.g.: `ArrayOfApply` gets a `this` of `Array`:
112
- value: applyBind(desc.value, src),
113
- });
114
- }
115
- }
116
- }
117
- }
118
-
119
- function copyPropsRenamedBound(src, dest, prefix) {
120
- for (const key of ReflectOwnKeys(src)) {
121
- const newKey = getNewKey(key);
122
- const desc = ReflectGetOwnPropertyDescriptor(src, key);
123
- if ('get' in desc) {
124
- copyAccessor(dest, prefix, newKey, desc);
125
- } else {
126
- const { value } = desc;
127
- if (typeof value === 'function') {
128
- desc.value = value.bind(src);
129
- }
130
-
131
- const name = `${prefix}${newKey}`;
132
- ReflectDefineProperty(dest, name, desc);
133
- if (varargsMethods.includes(name)) {
134
- ReflectDefineProperty(dest, `${name}Apply`, {
135
- value: applyBind(value, src),
136
- });
137
- }
138
- }
139
- }
140
- }
141
-
142
- function copyPrototype(src, dest, prefix) {
143
- for (const key of ReflectOwnKeys(src)) {
144
- const newKey = getNewKey(key);
145
- const desc = ReflectGetOwnPropertyDescriptor(src, key);
146
- if ('get' in desc) {
147
- copyAccessor(dest, prefix, newKey, desc);
148
- } else {
149
- const { value } = desc;
150
- if (typeof value === 'function') {
151
- desc.value = uncurryThis(value);
152
- }
153
-
154
- const name = `${prefix}${newKey}`;
155
- ReflectDefineProperty(dest, name, desc);
156
- if (varargsMethods.includes(name)) {
157
- ReflectDefineProperty(dest, `${name}Apply`, {
158
- value: applyBind(value),
159
- });
160
- }
161
- }
162
- }
163
- }
164
-
165
- // Create copies of configurable value properties of the global object
166
- [
167
- 'Proxy',
168
- 'globalThis',
169
- ].forEach((name) => {
170
- // eslint-disable-next-line no-restricted-globals
171
- primordials[name] = globalThis[name];
172
- });
173
-
174
- // Create copies of URI handling functions
175
- [
176
- decodeURI,
177
- decodeURIComponent,
178
- encodeURI,
179
- encodeURIComponent,
180
- ].forEach((fn) => {
181
- primordials[fn.name] = fn;
182
- });
183
-
184
- // Create copies of the namespace objects
185
- [
186
- 'JSON',
187
- 'Math',
188
- 'Proxy',
189
- 'Reflect',
190
- ].forEach((name) => {
191
- // eslint-disable-next-line no-restricted-globals
192
- copyPropsRenamed(global[name], primordials, name);
193
- });
194
-
195
- // Create copies of intrinsic objects
196
- [
197
- 'Array',
198
- 'ArrayBuffer',
199
- 'BigInt',
200
- 'BigInt64Array',
201
- 'BigUint64Array',
202
- 'Boolean',
203
- 'DataView',
204
- 'Date',
205
- 'Error',
206
- 'EvalError',
207
- 'Float32Array',
208
- 'Float64Array',
209
- 'Function',
210
- 'Int16Array',
211
- 'Int32Array',
212
- 'Int8Array',
213
- 'Map',
214
- 'Number',
215
- 'Object',
216
- 'RangeError',
217
- 'ReferenceError',
218
- 'RegExp',
219
- 'Set',
220
- 'String',
221
- 'Symbol',
222
- 'SyntaxError',
223
- 'TypeError',
224
- 'URIError',
225
- 'Uint16Array',
226
- 'Uint32Array',
227
- 'Uint8Array',
228
- 'Uint8ClampedArray',
229
- 'WeakMap',
230
- 'WeakSet',
231
- ].forEach((name) => {
232
- // eslint-disable-next-line no-restricted-globals
233
- const original = global[name];
234
- primordials[name] = original;
235
- copyPropsRenamed(original, primordials, name);
236
- copyPrototype(original.prototype, primordials, `${name}Prototype`);
237
- });
238
-
239
- // Create copies of intrinsic objects that require a valid `this` to call
240
- // static methods.
241
- // Refs: https://www.ecma-international.org/ecma-262/#sec-promise.all
242
- [
243
- 'Promise',
244
- ].forEach((name) => {
245
- // eslint-disable-next-line no-restricted-globals
246
- const original = global[name];
247
- primordials[name] = original;
248
- copyPropsRenamedBound(original, primordials, name);
249
- copyPrototype(original.prototype, primordials, `${name}Prototype`);
250
- });
251
-
252
- // Create copies of abstract intrinsic objects that are not directly exposed
253
- // on the global object.
254
- // Refs: https://tc39.es/ecma262/#sec-%typedarray%-intrinsic-object
255
- [
256
- { name: 'TypedArray', original: Reflect.getPrototypeOf(Uint8Array) },
257
- { name: 'ArrayIterator', original: {
258
- prototype: Reflect.getPrototypeOf(Array.prototype[Symbol.iterator]()),
259
- } },
260
- { name: 'StringIterator', original: {
261
- prototype: Reflect.getPrototypeOf(String.prototype[Symbol.iterator]()),
262
- } },
263
- ].forEach(({ name, original }) => {
264
- primordials[name] = original;
265
- // The static %TypedArray% methods require a valid `this`, but can't be bound,
266
- // as they need a subclass constructor as the receiver:
267
- copyPrototype(original, primordials, name);
268
- copyPrototype(original.prototype, primordials, `${name}Prototype`);
269
- });
270
-
271
- /* eslint-enable node-core/prefer-primordials */
272
-
273
- const {
274
- ArrayPrototypeForEach,
275
- FunctionPrototypeCall,
276
- Map,
277
- ObjectFreeze,
278
- ObjectSetPrototypeOf,
279
- Set,
280
- SymbolIterator,
281
- WeakMap,
282
- WeakSet,
283
- } = primordials;
284
-
285
- // Because these functions are used by `makeSafe`, which is exposed
286
- // on the `primordials` object, it's important to use const references
287
- // to the primordials that they use:
288
- const createSafeIterator = (factory, next) => {
289
- class SafeIterator {
290
- constructor(iterable) {
291
- this._iterator = factory(iterable);
292
- }
293
- next() {
294
- return next(this._iterator);
295
- }
296
- [SymbolIterator]() {
297
- return this;
298
- }
299
- }
300
- ObjectSetPrototypeOf(SafeIterator.prototype, null);
301
- ObjectFreeze(SafeIterator.prototype);
302
- ObjectFreeze(SafeIterator);
303
- return SafeIterator;
304
- };
305
-
306
- primordials.SafeArrayIterator = createSafeIterator(
307
- primordials.ArrayPrototypeSymbolIterator,
308
- primordials.ArrayIteratorPrototypeNext
309
- );
310
- primordials.SafeStringIterator = createSafeIterator(
311
- primordials.StringPrototypeSymbolIterator,
312
- primordials.StringIteratorPrototypeNext
313
- );
314
-
315
- const copyProps = (src, dest) => {
316
- ArrayPrototypeForEach(ReflectOwnKeys(src), (key) => {
317
- if (!ReflectGetOwnPropertyDescriptor(dest, key)) {
318
- ReflectDefineProperty(
319
- dest,
320
- key,
321
- ReflectGetOwnPropertyDescriptor(src, key));
322
- }
323
- });
324
- };
325
-
326
- const makeSafe = (unsafe, safe) => {
327
- if (SymbolIterator in unsafe.prototype) {
328
- const dummy = new unsafe();
329
- let next; // We can reuse the same `next` method.
330
-
331
- ArrayPrototypeForEach(ReflectOwnKeys(unsafe.prototype), (key) => {
332
- if (!ReflectGetOwnPropertyDescriptor(safe.prototype, key)) {
333
- const desc = ReflectGetOwnPropertyDescriptor(unsafe.prototype, key);
334
- if (
335
- typeof desc.value === 'function' &&
336
- desc.value.length === 0 &&
337
- SymbolIterator in (FunctionPrototypeCall(desc.value, dummy) ?? {})
338
- ) {
339
- const createIterator = uncurryThis(desc.value);
340
- next = next ?? uncurryThis(createIterator(dummy).next);
341
- const SafeIterator = createSafeIterator(createIterator, next);
342
- desc.value = function() {
343
- return new SafeIterator(this);
344
- };
345
- }
346
- ReflectDefineProperty(safe.prototype, key, desc);
347
- }
348
- });
349
- } else {
350
- copyProps(unsafe.prototype, safe.prototype);
351
- }
352
- copyProps(unsafe, safe);
353
-
354
- ObjectSetPrototypeOf(safe.prototype, null);
355
- ObjectFreeze(safe.prototype);
356
- ObjectFreeze(safe);
357
- return safe;
358
- };
359
- primordials.makeSafe = makeSafe;
360
-
361
- // Subclass the constructors because we need to use their prototype
362
- // methods later.
363
- // Defining the `constructor` is necessary here to avoid the default
364
- // constructor which uses the user-mutable `%ArrayIteratorPrototype%.next`.
365
- primordials.SafeMap = makeSafe(
366
- Map,
367
- class SafeMap extends Map {
368
- constructor(i) { super(i); } // eslint-disable-line no-useless-constructor
369
- }
370
- );
371
- primordials.SafeWeakMap = makeSafe(
372
- WeakMap,
373
- class SafeWeakMap extends WeakMap {
374
- constructor(i) { super(i); } // eslint-disable-line no-useless-constructor
375
- }
376
- );
377
- primordials.SafeSet = makeSafe(
378
- Set,
379
- class SafeSet extends Set {
380
- constructor(i) { super(i); } // eslint-disable-line no-useless-constructor
381
- }
382
- );
383
- primordials.SafeWeakSet = makeSafe(
384
- WeakSet,
385
- class SafeWeakSet extends WeakSet {
386
- constructor(i) { super(i); } // eslint-disable-line no-useless-constructor
387
- }
388
- );
389
-
390
- ObjectSetPrototypeOf(primordials, null);
391
- ObjectFreeze(primordials);
392
-
393
- module.exports = primordials;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/internal/util.js DELETED
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- // This is a placeholder for util.js in node.js land.
4
-
5
- const {
6
- ObjectCreate,
7
- ObjectFreeze,
8
- } = require('./primordials');
9
-
10
- const kEmptyObject = ObjectFreeze(ObjectCreate(null));
11
-
12
- module.exports = {
13
- kEmptyObject,
14
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/internal/validators.js DELETED
@@ -1,89 +0,0 @@
1
- 'use strict';
2
-
3
- // This file is a proxy of the original file located at:
4
- // https://github.com/nodejs/node/blob/main/lib/internal/validators.js
5
- // Every addition or modification to this file must be evaluated
6
- // during the PR review.
7
-
8
- const {
9
- ArrayIsArray,
10
- ArrayPrototypeIncludes,
11
- ArrayPrototypeJoin,
12
- } = require('./primordials');
13
-
14
- const {
15
- codes: {
16
- ERR_INVALID_ARG_TYPE
17
- }
18
- } = require('./errors');
19
-
20
- function validateString(value, name) {
21
- if (typeof value !== 'string') {
22
- throw new ERR_INVALID_ARG_TYPE(name, 'String', value);
23
- }
24
- }
25
-
26
- function validateUnion(value, name, union) {
27
- if (!ArrayPrototypeIncludes(union, value)) {
28
- throw new ERR_INVALID_ARG_TYPE(name, `('${ArrayPrototypeJoin(union, '|')}')`, value);
29
- }
30
- }
31
-
32
- function validateBoolean(value, name) {
33
- if (typeof value !== 'boolean') {
34
- throw new ERR_INVALID_ARG_TYPE(name, 'Boolean', value);
35
- }
36
- }
37
-
38
- function validateArray(value, name) {
39
- if (!ArrayIsArray(value)) {
40
- throw new ERR_INVALID_ARG_TYPE(name, 'Array', value);
41
- }
42
- }
43
-
44
- function validateStringArray(value, name) {
45
- validateArray(value, name);
46
- for (let i = 0; i < value.length; i++) {
47
- validateString(value[i], `${name}[${i}]`);
48
- }
49
- }
50
-
51
- function validateBooleanArray(value, name) {
52
- validateArray(value, name);
53
- for (let i = 0; i < value.length; i++) {
54
- validateBoolean(value[i], `${name}[${i}]`);
55
- }
56
- }
57
-
58
- /**
59
- * @param {unknown} value
60
- * @param {string} name
61
- * @param {{
62
- * allowArray?: boolean,
63
- * allowFunction?: boolean,
64
- * nullable?: boolean
65
- * }} [options]
66
- */
67
- function validateObject(value, name, options) {
68
- const useDefaultOptions = options == null;
69
- const allowArray = useDefaultOptions ? false : options.allowArray;
70
- const allowFunction = useDefaultOptions ? false : options.allowFunction;
71
- const nullable = useDefaultOptions ? false : options.nullable;
72
- if ((!nullable && value === null) ||
73
- (!allowArray && ArrayIsArray(value)) ||
74
- (typeof value !== 'object' && (
75
- !allowFunction || typeof value !== 'function'
76
- ))) {
77
- throw new ERR_INVALID_ARG_TYPE(name, 'Object', value);
78
- }
79
- }
80
-
81
- module.exports = {
82
- validateArray,
83
- validateObject,
84
- validateString,
85
- validateStringArray,
86
- validateUnion,
87
- validateBoolean,
88
- validateBooleanArray,
89
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/package.json DELETED
@@ -1,36 +0,0 @@
1
- {
2
- "name": "@pkgjs/parseargs",
3
- "version": "0.11.0",
4
- "description": "Polyfill of future proposal for `util.parseArgs()`",
5
- "engines": {
6
- "node": ">=14"
7
- },
8
- "main": "index.js",
9
- "exports": {
10
- ".": "./index.js",
11
- "./package.json": "./package.json"
12
- },
13
- "scripts": {
14
- "coverage": "c8 --check-coverage tape 'test/*.js'",
15
- "test": "c8 tape 'test/*.js'",
16
- "posttest": "eslint .",
17
- "fix": "npm run posttest -- --fix"
18
- },
19
- "repository": {
20
- "type": "git",
21
- "url": "git@github.com:pkgjs/parseargs.git"
22
- },
23
- "keywords": [],
24
- "author": "",
25
- "license": "MIT",
26
- "bugs": {
27
- "url": "https://github.com/pkgjs/parseargs/issues"
28
- },
29
- "homepage": "https://github.com/pkgjs/parseargs#readme",
30
- "devDependencies": {
31
- "c8": "^7.10.0",
32
- "eslint": "^8.2.0",
33
- "eslint-plugin-node-core": "iansu/eslint-plugin-node-core",
34
- "tape": "^5.2.2"
35
- }
36
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/@pkgjs/parseargs/utils.js DELETED
@@ -1,198 +0,0 @@
1
- 'use strict';
2
-
3
- const {
4
- ArrayPrototypeFind,
5
- ObjectEntries,
6
- ObjectPrototypeHasOwnProperty: ObjectHasOwn,
7
- StringPrototypeCharAt,
8
- StringPrototypeIncludes,
9
- StringPrototypeStartsWith,
10
- } = require('./internal/primordials');
11
-
12
- const {
13
- validateObject,
14
- } = require('./internal/validators');
15
-
16
- // These are internal utilities to make the parsing logic easier to read, and
17
- // add lots of detail for the curious. They are in a separate file to allow
18
- // unit testing, although that is not essential (this could be rolled into
19
- // main file and just tested implicitly via API).
20
- //
21
- // These routines are for internal use, not for export to client.
22
-
23
- /**
24
- * Return the named property, but only if it is an own property.
25
- */
26
- function objectGetOwn(obj, prop) {
27
- if (ObjectHasOwn(obj, prop))
28
- return obj[prop];
29
- }
30
-
31
- /**
32
- * Return the named options property, but only if it is an own property.
33
- */
34
- function optionsGetOwn(options, longOption, prop) {
35
- if (ObjectHasOwn(options, longOption))
36
- return objectGetOwn(options[longOption], prop);
37
- }
38
-
39
- /**
40
- * Determines if the argument may be used as an option value.
41
- * @example
42
- * isOptionValue('V') // returns true
43
- * isOptionValue('-v') // returns true (greedy)
44
- * isOptionValue('--foo') // returns true (greedy)
45
- * isOptionValue(undefined) // returns false
46
- */
47
- function isOptionValue(value) {
48
- if (value == null) return false;
49
-
50
- // Open Group Utility Conventions are that an option-argument
51
- // is the argument after the option, and may start with a dash.
52
- return true; // greedy!
53
- }
54
-
55
- /**
56
- * Detect whether there is possible confusion and user may have omitted
57
- * the option argument, like `--port --verbose` when `port` of type:string.
58
- * In strict mode we throw errors if value is option-like.
59
- */
60
- function isOptionLikeValue(value) {
61
- if (value == null) return false;
62
-
63
- return value.length > 1 && StringPrototypeCharAt(value, 0) === '-';
64
- }
65
-
66
- /**
67
- * Determines if `arg` is just a short option.
68
- * @example '-f'
69
- */
70
- function isLoneShortOption(arg) {
71
- return arg.length === 2 &&
72
- StringPrototypeCharAt(arg, 0) === '-' &&
73
- StringPrototypeCharAt(arg, 1) !== '-';
74
- }
75
-
76
- /**
77
- * Determines if `arg` is a lone long option.
78
- * @example
79
- * isLoneLongOption('a') // returns false
80
- * isLoneLongOption('-a') // returns false
81
- * isLoneLongOption('--foo') // returns true
82
- * isLoneLongOption('--foo=bar') // returns false
83
- */
84
- function isLoneLongOption(arg) {
85
- return arg.length > 2 &&
86
- StringPrototypeStartsWith(arg, '--') &&
87
- !StringPrototypeIncludes(arg, '=', 3);
88
- }
89
-
90
- /**
91
- * Determines if `arg` is a long option and value in the same argument.
92
- * @example
93
- * isLongOptionAndValue('--foo') // returns false
94
- * isLongOptionAndValue('--foo=bar') // returns true
95
- */
96
- function isLongOptionAndValue(arg) {
97
- return arg.length > 2 &&
98
- StringPrototypeStartsWith(arg, '--') &&
99
- StringPrototypeIncludes(arg, '=', 3);
100
- }
101
-
102
- /**
103
- * Determines if `arg` is a short option group.
104
- *
105
- * See Guideline 5 of the [Open Group Utility Conventions](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html).
106
- * One or more options without option-arguments, followed by at most one
107
- * option that takes an option-argument, should be accepted when grouped
108
- * behind one '-' delimiter.
109
- * @example
110
- * isShortOptionGroup('-a', {}) // returns false
111
- * isShortOptionGroup('-ab', {}) // returns true
112
- * // -fb is an option and a value, not a short option group
113
- * isShortOptionGroup('-fb', {
114
- * options: { f: { type: 'string' } }
115
- * }) // returns false
116
- * isShortOptionGroup('-bf', {
117
- * options: { f: { type: 'string' } }
118
- * }) // returns true
119
- * // -bfb is an edge case, return true and caller sorts it out
120
- * isShortOptionGroup('-bfb', {
121
- * options: { f: { type: 'string' } }
122
- * }) // returns true
123
- */
124
- function isShortOptionGroup(arg, options) {
125
- if (arg.length <= 2) return false;
126
- if (StringPrototypeCharAt(arg, 0) !== '-') return false;
127
- if (StringPrototypeCharAt(arg, 1) === '-') return false;
128
-
129
- const firstShort = StringPrototypeCharAt(arg, 1);
130
- const longOption = findLongOptionForShort(firstShort, options);
131
- return optionsGetOwn(options, longOption, 'type') !== 'string';
132
- }
133
-
134
- /**
135
- * Determine if arg is a short string option followed by its value.
136
- * @example
137
- * isShortOptionAndValue('-a', {}); // returns false
138
- * isShortOptionAndValue('-ab', {}); // returns false
139
- * isShortOptionAndValue('-fFILE', {
140
- * options: { foo: { short: 'f', type: 'string' }}
141
- * }) // returns true
142
- */
143
- function isShortOptionAndValue(arg, options) {
144
- validateObject(options, 'options');
145
-
146
- if (arg.length <= 2) return false;
147
- if (StringPrototypeCharAt(arg, 0) !== '-') return false;
148
- if (StringPrototypeCharAt(arg, 1) === '-') return false;
149
-
150
- const shortOption = StringPrototypeCharAt(arg, 1);
151
- const longOption = findLongOptionForShort(shortOption, options);
152
- return optionsGetOwn(options, longOption, 'type') === 'string';
153
- }
154
-
155
- /**
156
- * Find the long option associated with a short option. Looks for a configured
157
- * `short` and returns the short option itself if a long option is not found.
158
- * @example
159
- * findLongOptionForShort('a', {}) // returns 'a'
160
- * findLongOptionForShort('b', {
161
- * options: { bar: { short: 'b' } }
162
- * }) // returns 'bar'
163
- */
164
- function findLongOptionForShort(shortOption, options) {
165
- validateObject(options, 'options');
166
- const longOptionEntry = ArrayPrototypeFind(
167
- ObjectEntries(options),
168
- ({ 1: optionConfig }) => objectGetOwn(optionConfig, 'short') === shortOption
169
- );
170
- return longOptionEntry?.[0] ?? shortOption;
171
- }
172
-
173
- /**
174
- * Check if the given option includes a default value
175
- * and that option has not been set by the input args.
176
- *
177
- * @param {string} longOption - long option name e.g. 'foo'
178
- * @param {object} optionConfig - the option configuration properties
179
- * @param {object} values - option values returned in `values` by parseArgs
180
- */
181
- function useDefaultValueOption(longOption, optionConfig, values) {
182
- return objectGetOwn(optionConfig, 'default') !== undefined &&
183
- values[longOption] === undefined;
184
- }
185
-
186
- module.exports = {
187
- findLongOptionForShort,
188
- isLoneLongOption,
189
- isLoneShortOption,
190
- isLongOptionAndValue,
191
- isOptionValue,
192
- isOptionLikeValue,
193
- isShortOptionAndValue,
194
- isShortOptionGroup,
195
- useDefaultValueOption,
196
- objectGetOwn,
197
- optionsGetOwn,
198
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/abort-controller/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2017 Toru Nagashima
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/abort-controller/README.md DELETED
@@ -1,98 +0,0 @@
1
- # abort-controller
2
-
3
- [![npm version](https://img.shields.io/npm/v/abort-controller.svg)](https://www.npmjs.com/package/abort-controller)
4
- [![Downloads/month](https://img.shields.io/npm/dm/abort-controller.svg)](http://www.npmtrends.com/abort-controller)
5
- [![Build Status](https://travis-ci.org/mysticatea/abort-controller.svg?branch=master)](https://travis-ci.org/mysticatea/abort-controller)
6
- [![Coverage Status](https://codecov.io/gh/mysticatea/abort-controller/branch/master/graph/badge.svg)](https://codecov.io/gh/mysticatea/abort-controller)
7
- [![Dependency Status](https://david-dm.org/mysticatea/abort-controller.svg)](https://david-dm.org/mysticatea/abort-controller)
8
-
9
- An implementation of [WHATWG AbortController interface](https://dom.spec.whatwg.org/#interface-abortcontroller).
10
-
11
- ```js
12
- import AbortController from "abort-controller"
13
-
14
- const controller = new AbortController()
15
- const signal = controller.signal
16
-
17
- signal.addEventListener("abort", () => {
18
- console.log("aborted!")
19
- })
20
-
21
- controller.abort()
22
- ```
23
-
24
- > https://jsfiddle.net/1r2994qp/1/
25
-
26
- ## 💿 Installation
27
-
28
- Use [npm](https://www.npmjs.com/) to install then use a bundler.
29
-
30
- ```
31
- npm install abort-controller
32
- ```
33
-
34
- Or download from [`dist` directory](./dist).
35
-
36
- - [dist/abort-controller.mjs](dist/abort-controller.mjs) ... ES modules version.
37
- - [dist/abort-controller.js](dist/abort-controller.js) ... Common JS version.
38
- - [dist/abort-controller.umd.js](dist/abort-controller.umd.js) ... UMD (Universal Module Definition) version. This is transpiled by [Babel](https://babeljs.io/) for IE 11.
39
-
40
- ## 📖 Usage
41
-
42
- ### Basic
43
-
44
- ```js
45
- import AbortController from "abort-controller"
46
- // or
47
- const AbortController = require("abort-controller")
48
-
49
- // or UMD version defines a global variable:
50
- const AbortController = window.AbortControllerShim
51
- ```
52
-
53
- If your bundler recognizes `browser` field of `package.json`, the imported `AbortController` is the native one and it doesn't contain shim (even if the native implementation was nothing).
54
- If you wanted to polyfill `AbortController` for IE, use `abort-controller/polyfill`.
55
-
56
- ### Polyfilling
57
-
58
- Importing `abort-controller/polyfill` assigns the `AbortController` shim to the `AbortController` global variable if the native implementation was nothing.
59
-
60
- ```js
61
- import "abort-controller/polyfill"
62
- // or
63
- require("abort-controller/polyfill")
64
- ```
65
-
66
- ### API
67
-
68
- #### AbortController
69
-
70
- > https://dom.spec.whatwg.org/#interface-abortcontroller
71
-
72
- ##### controller.signal
73
-
74
- The [AbortSignal](https://dom.spec.whatwg.org/#interface-AbortSignal) object which is associated to this controller.
75
-
76
- ##### controller.abort()
77
-
78
- Notify `abort` event to listeners that the `signal` has.
79
-
80
- ## 📰 Changelog
81
-
82
- - See [GitHub releases](https://github.com/mysticatea/abort-controller/releases).
83
-
84
- ## 🍻 Contributing
85
-
86
- Contributing is welcome ❤️
87
-
88
- Please use GitHub issues/PRs.
89
-
90
- ### Development tools
91
-
92
- - `npm install` installs dependencies for development.
93
- - `npm test` runs tests and measures code coverage.
94
- - `npm run clean` removes temporary files of tests.
95
- - `npm run coverage` opens code coverage of the previous test with your default browser.
96
- - `npm run lint` runs ESLint.
97
- - `npm run build` generates `dist` codes.
98
- - `npm run watch` runs tests on each file change.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/abort-controller/browser.js DELETED
@@ -1,13 +0,0 @@
1
- /*globals self, window */
2
- "use strict"
3
-
4
- /*eslint-disable @mysticatea/prettier */
5
- const { AbortController, AbortSignal } =
6
- typeof self !== "undefined" ? self :
7
- typeof window !== "undefined" ? window :
8
- /* otherwise */ undefined
9
- /*eslint-enable @mysticatea/prettier */
10
-
11
- module.exports = AbortController
12
- module.exports.AbortSignal = AbortSignal
13
- module.exports.default = AbortController
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/abort-controller/browser.mjs DELETED
@@ -1,11 +0,0 @@
1
- /*globals self, window */
2
-
3
- /*eslint-disable @mysticatea/prettier */
4
- const { AbortController, AbortSignal } =
5
- typeof self !== "undefined" ? self :
6
- typeof window !== "undefined" ? window :
7
- /* otherwise */ undefined
8
- /*eslint-enable @mysticatea/prettier */
9
-
10
- export default AbortController
11
- export { AbortController, AbortSignal }
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/abort-controller/dist/abort-controller.d.ts DELETED
@@ -1,43 +0,0 @@
1
- import { EventTarget } from "event-target-shim"
2
-
3
- type Events = {
4
- abort: any
5
- }
6
- type EventAttributes = {
7
- onabort: any
8
- }
9
- /**
10
- * The signal class.
11
- * @see https://dom.spec.whatwg.org/#abortsignal
12
- */
13
- declare class AbortSignal extends EventTarget<Events, EventAttributes> {
14
- /**
15
- * AbortSignal cannot be constructed directly.
16
- */
17
- constructor()
18
- /**
19
- * Returns `true` if this `AbortSignal`"s `AbortController` has signaled to abort, and `false` otherwise.
20
- */
21
- readonly aborted: boolean
22
- }
23
- /**
24
- * The AbortController.
25
- * @see https://dom.spec.whatwg.org/#abortcontroller
26
- */
27
- declare class AbortController {
28
- /**
29
- * Initialize this controller.
30
- */
31
- constructor()
32
- /**
33
- * Returns the `AbortSignal` object associated with this object.
34
- */
35
- readonly signal: AbortSignal
36
- /**
37
- * Abort and signal to any observers that the associated activity is to be aborted.
38
- */
39
- abort(): void
40
- }
41
-
42
- export default AbortController
43
- export { AbortController, AbortSignal }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/abort-controller/dist/abort-controller.js DELETED
@@ -1,127 +0,0 @@
1
- /**
2
- * @author Toru Nagashima <https://github.com/mysticatea>
3
- * See LICENSE file in root directory for full license.
4
- */
5
- 'use strict';
6
-
7
- Object.defineProperty(exports, '__esModule', { value: true });
8
-
9
- var eventTargetShim = require('event-target-shim');
10
-
11
- /**
12
- * The signal class.
13
- * @see https://dom.spec.whatwg.org/#abortsignal
14
- */
15
- class AbortSignal extends eventTargetShim.EventTarget {
16
- /**
17
- * AbortSignal cannot be constructed directly.
18
- */
19
- constructor() {
20
- super();
21
- throw new TypeError("AbortSignal cannot be constructed directly");
22
- }
23
- /**
24
- * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise.
25
- */
26
- get aborted() {
27
- const aborted = abortedFlags.get(this);
28
- if (typeof aborted !== "boolean") {
29
- throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`);
30
- }
31
- return aborted;
32
- }
33
- }
34
- eventTargetShim.defineEventAttribute(AbortSignal.prototype, "abort");
35
- /**
36
- * Create an AbortSignal object.
37
- */
38
- function createAbortSignal() {
39
- const signal = Object.create(AbortSignal.prototype);
40
- eventTargetShim.EventTarget.call(signal);
41
- abortedFlags.set(signal, false);
42
- return signal;
43
- }
44
- /**
45
- * Abort a given signal.
46
- */
47
- function abortSignal(signal) {
48
- if (abortedFlags.get(signal) !== false) {
49
- return;
50
- }
51
- abortedFlags.set(signal, true);
52
- signal.dispatchEvent({ type: "abort" });
53
- }
54
- /**
55
- * Aborted flag for each instances.
56
- */
57
- const abortedFlags = new WeakMap();
58
- // Properties should be enumerable.
59
- Object.defineProperties(AbortSignal.prototype, {
60
- aborted: { enumerable: true },
61
- });
62
- // `toString()` should return `"[object AbortSignal]"`
63
- if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") {
64
- Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, {
65
- configurable: true,
66
- value: "AbortSignal",
67
- });
68
- }
69
-
70
- /**
71
- * The AbortController.
72
- * @see https://dom.spec.whatwg.org/#abortcontroller
73
- */
74
- class AbortController {
75
- /**
76
- * Initialize this controller.
77
- */
78
- constructor() {
79
- signals.set(this, createAbortSignal());
80
- }
81
- /**
82
- * Returns the `AbortSignal` object associated with this object.
83
- */
84
- get signal() {
85
- return getSignal(this);
86
- }
87
- /**
88
- * Abort and signal to any observers that the associated activity is to be aborted.
89
- */
90
- abort() {
91
- abortSignal(getSignal(this));
92
- }
93
- }
94
- /**
95
- * Associated signals.
96
- */
97
- const signals = new WeakMap();
98
- /**
99
- * Get the associated signal of a given controller.
100
- */
101
- function getSignal(controller) {
102
- const signal = signals.get(controller);
103
- if (signal == null) {
104
- throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`);
105
- }
106
- return signal;
107
- }
108
- // Properties should be enumerable.
109
- Object.defineProperties(AbortController.prototype, {
110
- signal: { enumerable: true },
111
- abort: { enumerable: true },
112
- });
113
- if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") {
114
- Object.defineProperty(AbortController.prototype, Symbol.toStringTag, {
115
- configurable: true,
116
- value: "AbortController",
117
- });
118
- }
119
-
120
- exports.AbortController = AbortController;
121
- exports.AbortSignal = AbortSignal;
122
- exports.default = AbortController;
123
-
124
- module.exports = AbortController
125
- module.exports.AbortController = module.exports["default"] = AbortController
126
- module.exports.AbortSignal = AbortSignal
127
- //# sourceMappingURL=abort-controller.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/abort-controller/dist/abort-controller.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"abort-controller.js","sources":["../src/abort-signal.ts","../src/abort-controller.ts"],"sourcesContent":["import {\n // Event,\n EventTarget,\n // Type,\n defineEventAttribute,\n} from \"event-target-shim\"\n\n// Known Limitation\n// Use `any` because the type of `AbortSignal` in `lib.dom.d.ts` is wrong and\n// to make assignable our `AbortSignal` into that.\n// https://github.com/Microsoft/TSJS-lib-generator/pull/623\ntype Events = {\n abort: any // Event & Type<\"abort\">\n}\ntype EventAttributes = {\n onabort: any // Event & Type<\"abort\">\n}\n\n/**\n * The signal class.\n * @see https://dom.spec.whatwg.org/#abortsignal\n */\nexport default class AbortSignal extends EventTarget<Events, EventAttributes> {\n /**\n * AbortSignal cannot be constructed directly.\n */\n public constructor() {\n super()\n throw new TypeError(\"AbortSignal cannot be constructed directly\")\n }\n\n /**\n * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise.\n */\n public get aborted(): boolean {\n const aborted = abortedFlags.get(this)\n if (typeof aborted !== \"boolean\") {\n throw new TypeError(\n `Expected 'this' to be an 'AbortSignal' object, but got ${\n this === null ? \"null\" : typeof this\n }`,\n )\n }\n return aborted\n }\n}\ndefineEventAttribute(AbortSignal.prototype, \"abort\")\n\n/**\n * Create an AbortSignal object.\n */\nexport function createAbortSignal(): AbortSignal {\n const signal = Object.create(AbortSignal.prototype)\n EventTarget.call(signal)\n abortedFlags.set(signal, false)\n return signal\n}\n\n/**\n * Abort a given signal.\n */\nexport function abortSignal(signal: AbortSignal): void {\n if (abortedFlags.get(signal) !== false) {\n return\n }\n\n abortedFlags.set(signal, true)\n signal.dispatchEvent<\"abort\">({ type: \"abort\" })\n}\n\n/**\n * Aborted flag for each instances.\n */\nconst abortedFlags = new WeakMap<AbortSignal, boolean>()\n\n// Properties should be enumerable.\nObject.defineProperties(AbortSignal.prototype, {\n aborted: { enumerable: true },\n})\n\n// `toString()` should return `\"[object AbortSignal]\"`\nif (typeof Symbol === \"function\" && typeof Symbol.toStringTag === \"symbol\") {\n Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, {\n configurable: true,\n value: \"AbortSignal\",\n })\n}\n","import AbortSignal, { abortSignal, createAbortSignal } from \"./abort-signal\"\n\n/**\n * The AbortController.\n * @see https://dom.spec.whatwg.org/#abortcontroller\n */\nexport default class AbortController {\n /**\n * Initialize this controller.\n */\n public constructor() {\n signals.set(this, createAbortSignal())\n }\n\n /**\n * Returns the `AbortSignal` object associated with this object.\n */\n public get signal(): AbortSignal {\n return getSignal(this)\n }\n\n /**\n * Abort and signal to any observers that the associated activity is to be aborted.\n */\n public abort(): void {\n abortSignal(getSignal(this))\n }\n}\n\n/**\n * Associated signals.\n */\nconst signals = new WeakMap<AbortController, AbortSignal>()\n\n/**\n * Get the associated signal of a given controller.\n */\nfunction getSignal(controller: AbortController): AbortSignal {\n const signal = signals.get(controller)\n if (signal == null) {\n throw new TypeError(\n `Expected 'this' to be an 'AbortController' object, but got ${\n controller === null ? \"null\" : typeof controller\n }`,\n )\n }\n return signal\n}\n\n// Properties should be enumerable.\nObject.defineProperties(AbortController.prototype, {\n signal: { enumerable: true },\n abort: { enumerable: true },\n})\n\nif (typeof Symbol === \"function\" && typeof Symbol.toStringTag === \"symbol\") {\n Object.defineProperty(AbortController.prototype, Symbol.toStringTag, {\n configurable: true,\n value: \"AbortController\",\n })\n}\n\nexport { AbortController, AbortSignal }\n"],"names":["EventTarget","defineEventAttribute"],"mappings":"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"}
 
 
node_modules/abort-controller/dist/abort-controller.mjs DELETED
@@ -1,118 +0,0 @@
1
- /**
2
- * @author Toru Nagashima <https://github.com/mysticatea>
3
- * See LICENSE file in root directory for full license.
4
- */
5
- import { EventTarget, defineEventAttribute } from 'event-target-shim';
6
-
7
- /**
8
- * The signal class.
9
- * @see https://dom.spec.whatwg.org/#abortsignal
10
- */
11
- class AbortSignal extends EventTarget {
12
- /**
13
- * AbortSignal cannot be constructed directly.
14
- */
15
- constructor() {
16
- super();
17
- throw new TypeError("AbortSignal cannot be constructed directly");
18
- }
19
- /**
20
- * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise.
21
- */
22
- get aborted() {
23
- const aborted = abortedFlags.get(this);
24
- if (typeof aborted !== "boolean") {
25
- throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`);
26
- }
27
- return aborted;
28
- }
29
- }
30
- defineEventAttribute(AbortSignal.prototype, "abort");
31
- /**
32
- * Create an AbortSignal object.
33
- */
34
- function createAbortSignal() {
35
- const signal = Object.create(AbortSignal.prototype);
36
- EventTarget.call(signal);
37
- abortedFlags.set(signal, false);
38
- return signal;
39
- }
40
- /**
41
- * Abort a given signal.
42
- */
43
- function abortSignal(signal) {
44
- if (abortedFlags.get(signal) !== false) {
45
- return;
46
- }
47
- abortedFlags.set(signal, true);
48
- signal.dispatchEvent({ type: "abort" });
49
- }
50
- /**
51
- * Aborted flag for each instances.
52
- */
53
- const abortedFlags = new WeakMap();
54
- // Properties should be enumerable.
55
- Object.defineProperties(AbortSignal.prototype, {
56
- aborted: { enumerable: true },
57
- });
58
- // `toString()` should return `"[object AbortSignal]"`
59
- if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") {
60
- Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, {
61
- configurable: true,
62
- value: "AbortSignal",
63
- });
64
- }
65
-
66
- /**
67
- * The AbortController.
68
- * @see https://dom.spec.whatwg.org/#abortcontroller
69
- */
70
- class AbortController {
71
- /**
72
- * Initialize this controller.
73
- */
74
- constructor() {
75
- signals.set(this, createAbortSignal());
76
- }
77
- /**
78
- * Returns the `AbortSignal` object associated with this object.
79
- */
80
- get signal() {
81
- return getSignal(this);
82
- }
83
- /**
84
- * Abort and signal to any observers that the associated activity is to be aborted.
85
- */
86
- abort() {
87
- abortSignal(getSignal(this));
88
- }
89
- }
90
- /**
91
- * Associated signals.
92
- */
93
- const signals = new WeakMap();
94
- /**
95
- * Get the associated signal of a given controller.
96
- */
97
- function getSignal(controller) {
98
- const signal = signals.get(controller);
99
- if (signal == null) {
100
- throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`);
101
- }
102
- return signal;
103
- }
104
- // Properties should be enumerable.
105
- Object.defineProperties(AbortController.prototype, {
106
- signal: { enumerable: true },
107
- abort: { enumerable: true },
108
- });
109
- if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") {
110
- Object.defineProperty(AbortController.prototype, Symbol.toStringTag, {
111
- configurable: true,
112
- value: "AbortController",
113
- });
114
- }
115
-
116
- export default AbortController;
117
- export { AbortController, AbortSignal };
118
- //# sourceMappingURL=abort-controller.mjs.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/abort-controller/dist/abort-controller.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"abort-controller.mjs","sources":["../src/abort-signal.ts","../src/abort-controller.ts"],"sourcesContent":["import {\n // Event,\n EventTarget,\n // Type,\n defineEventAttribute,\n} from \"event-target-shim\"\n\n// Known Limitation\n// Use `any` because the type of `AbortSignal` in `lib.dom.d.ts` is wrong and\n// to make assignable our `AbortSignal` into that.\n// https://github.com/Microsoft/TSJS-lib-generator/pull/623\ntype Events = {\n abort: any // Event & Type<\"abort\">\n}\ntype EventAttributes = {\n onabort: any // Event & Type<\"abort\">\n}\n\n/**\n * The signal class.\n * @see https://dom.spec.whatwg.org/#abortsignal\n */\nexport default class AbortSignal extends EventTarget<Events, EventAttributes> {\n /**\n * AbortSignal cannot be constructed directly.\n */\n public constructor() {\n super()\n throw new TypeError(\"AbortSignal cannot be constructed directly\")\n }\n\n /**\n * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise.\n */\n public get aborted(): boolean {\n const aborted = abortedFlags.get(this)\n if (typeof aborted !== \"boolean\") {\n throw new TypeError(\n `Expected 'this' to be an 'AbortSignal' object, but got ${\n this === null ? \"null\" : typeof this\n }`,\n )\n }\n return aborted\n }\n}\ndefineEventAttribute(AbortSignal.prototype, \"abort\")\n\n/**\n * Create an AbortSignal object.\n */\nexport function createAbortSignal(): AbortSignal {\n const signal = Object.create(AbortSignal.prototype)\n EventTarget.call(signal)\n abortedFlags.set(signal, false)\n return signal\n}\n\n/**\n * Abort a given signal.\n */\nexport function abortSignal(signal: AbortSignal): void {\n if (abortedFlags.get(signal) !== false) {\n return\n }\n\n abortedFlags.set(signal, true)\n signal.dispatchEvent<\"abort\">({ type: \"abort\" })\n}\n\n/**\n * Aborted flag for each instances.\n */\nconst abortedFlags = new WeakMap<AbortSignal, boolean>()\n\n// Properties should be enumerable.\nObject.defineProperties(AbortSignal.prototype, {\n aborted: { enumerable: true },\n})\n\n// `toString()` should return `\"[object AbortSignal]\"`\nif (typeof Symbol === \"function\" && typeof Symbol.toStringTag === \"symbol\") {\n Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, {\n configurable: true,\n value: \"AbortSignal\",\n })\n}\n","import AbortSignal, { abortSignal, createAbortSignal } from \"./abort-signal\"\n\n/**\n * The AbortController.\n * @see https://dom.spec.whatwg.org/#abortcontroller\n */\nexport default class AbortController {\n /**\n * Initialize this controller.\n */\n public constructor() {\n signals.set(this, createAbortSignal())\n }\n\n /**\n * Returns the `AbortSignal` object associated with this object.\n */\n public get signal(): AbortSignal {\n return getSignal(this)\n }\n\n /**\n * Abort and signal to any observers that the associated activity is to be aborted.\n */\n public abort(): void {\n abortSignal(getSignal(this))\n }\n}\n\n/**\n * Associated signals.\n */\nconst signals = new WeakMap<AbortController, AbortSignal>()\n\n/**\n * Get the associated signal of a given controller.\n */\nfunction getSignal(controller: AbortController): AbortSignal {\n const signal = signals.get(controller)\n if (signal == null) {\n throw new TypeError(\n `Expected 'this' to be an 'AbortController' object, but got ${\n controller === null ? \"null\" : typeof controller\n }`,\n )\n }\n return signal\n}\n\n// Properties should be enumerable.\nObject.defineProperties(AbortController.prototype, {\n signal: { enumerable: true },\n abort: { enumerable: true },\n})\n\nif (typeof Symbol === \"function\" && typeof Symbol.toStringTag === \"symbol\") {\n Object.defineProperty(AbortController.prototype, Symbol.toStringTag, {\n configurable: true,\n value: \"AbortController\",\n })\n}\n\nexport { AbortController, AbortSignal }\n"],"names":[],"mappings":"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"}
 
 
node_modules/abort-controller/dist/abort-controller.umd.js DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * @author Toru Nagashima <https://github.com/mysticatea>
3
- * See LICENSE file in root directory for full license.
4
- */(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports):"function"==typeof define&&define.amd?define(["exports"],b):(a=a||self,b(a.AbortControllerShim={}))})(this,function(a){'use strict';function b(a){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b(a)}function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function e(a,b,c){return b&&d(a.prototype,b),c&&d(a,c),a}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),b&&h(a,b)}function g(a){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},g(a)}function h(a,b){return h=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},h(a,b)}function i(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function j(a,b){return b&&("object"==typeof b||"function"==typeof b)?b:i(a)}function k(a){var b=F.get(a);return console.assert(null!=b,"'this' is expected an Event object, but got",a),b}function l(a){return null==a.passiveListener?void(!a.event.cancelable||(a.canceled=!0,"function"==typeof a.event.preventDefault&&a.event.preventDefault())):void("undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",a.passiveListener))}function m(a,b){F.set(this,{eventTarget:a,event:b,eventPhase:2,currentTarget:a,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:b.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var c,d=Object.keys(b),e=0;e<d.length;++e)c=d[e],c in this||Object.defineProperty(this,c,n(c))}function n(a){return{get:function(){return k(this).event[a]},set:function(b){k(this).event[a]=b},configurable:!0,enumerable:!0}}function o(a){return{value:function(){var b=k(this).event;return b[a].apply(b,arguments)},configurable:!0,enumerable:!0}}function p(a,b){function c(b,c){a.call(this,b,c)}var d=Object.keys(b);if(0===d.length)return a;c.prototype=Object.create(a.prototype,{constructor:{value:c,configurable:!0,writable:!0}});for(var e,f=0;f<d.length;++f)if(e=d[f],!(e in a.prototype)){var g=Object.getOwnPropertyDescriptor(b,e),h="function"==typeof g.value;Object.defineProperty(c.prototype,e,h?o(e):n(e))}return c}function q(a){if(null==a||a===Object.prototype)return m;var b=G.get(a);return null==b&&(b=p(q(Object.getPrototypeOf(a)),a),G.set(a,b)),b}function r(a,b){var c=q(Object.getPrototypeOf(b));return new c(a,b)}function s(a){return k(a).immediateStopped}function t(a,b){k(a).eventPhase=b}function u(a,b){k(a).currentTarget=b}function v(a,b){k(a).passiveListener=b}function w(a){return null!==a&&"object"===b(a)}function x(a){var b=H.get(a);if(null==b)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return b}function y(a){return{get:function(){for(var b=x(this),c=b.get(a);null!=c;){if(3===c.listenerType)return c.listener;c=c.next}return null},set:function(b){"function"==typeof b||w(b)||(b=null);for(var c=x(this),d=null,e=c.get(a);null!=e;)3===e.listenerType?null===d?null===e.next?c.delete(a):c.set(a,e.next):d.next=e.next:d=e,e=e.next;if(null!==b){var f={listener:b,listenerType:3,passive:!1,once:!1,next:null};null===d?c.set(a,f):d.next=f}},configurable:!0,enumerable:!0}}function z(a,b){Object.defineProperty(a,"on".concat(b),y(b))}function A(a){function b(){B.call(this)}b.prototype=Object.create(B.prototype,{constructor:{value:b,configurable:!0,writable:!0}});for(var c=0;c<a.length;++c)z(b.prototype,a[c]);return b}function B(){if(this instanceof B)return void H.set(this,new Map);if(1===arguments.length&&Array.isArray(arguments[0]))return A(arguments[0]);if(0<arguments.length){for(var a=Array(arguments.length),b=0;b<arguments.length;++b)a[b]=arguments[b];return A(a)}throw new TypeError("Cannot call a class as a function")}function C(){var a=Object.create(K.prototype);return B.call(a),L.set(a,!1),a}function D(a){!1!==L.get(a)||(L.set(a,!0),a.dispatchEvent({type:"abort"}))}function E(a){var c=N.get(a);if(null==c)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got ".concat(null===a?"null":b(a)));return c}var F=new WeakMap,G=new WeakMap;m.prototype={get type(){return k(this).event.type},get target(){return k(this).eventTarget},get currentTarget(){return k(this).currentTarget},composedPath:function(){var a=k(this).currentTarget;return null==a?[]:[a]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return k(this).eventPhase},stopPropagation:function(){var a=k(this);a.stopped=!0,"function"==typeof a.event.stopPropagation&&a.event.stopPropagation()},stopImmediatePropagation:function(){var a=k(this);a.stopped=!0,a.immediateStopped=!0,"function"==typeof a.event.stopImmediatePropagation&&a.event.stopImmediatePropagation()},get bubbles(){return!!k(this).event.bubbles},get cancelable(){return!!k(this).event.cancelable},preventDefault:function(){l(k(this))},get defaultPrevented(){return k(this).canceled},get composed(){return!!k(this).event.composed},get timeStamp(){return k(this).timeStamp},get srcElement(){return k(this).eventTarget},get cancelBubble(){return k(this).stopped},set cancelBubble(a){if(a){var b=k(this);b.stopped=!0,"boolean"==typeof b.event.cancelBubble&&(b.event.cancelBubble=!0)}},get returnValue(){return!k(this).canceled},set returnValue(a){a||l(k(this))},initEvent:function(){}},Object.defineProperty(m.prototype,"constructor",{value:m,configurable:!0,writable:!0}),"undefined"!=typeof window&&"undefined"!=typeof window.Event&&(Object.setPrototypeOf(m.prototype,window.Event.prototype),G.set(window.Event.prototype,m));var H=new WeakMap,I=1,J=2;B.prototype={addEventListener:function(a,b,c){if(null!=b){if("function"!=typeof b&&!w(b))throw new TypeError("'listener' should be a function or an object.");var d=x(this),e=w(c),f=e?!!c.capture:!!c,g=f?I:J,h={listener:b,listenerType:g,passive:e&&!!c.passive,once:e&&!!c.once,next:null},i=d.get(a);if(void 0===i)return void d.set(a,h);for(var j=null;null!=i;){if(i.listener===b&&i.listenerType===g)return;j=i,i=i.next}j.next=h}},removeEventListener:function(a,b,c){if(null!=b)for(var d=x(this),e=w(c)?!!c.capture:!!c,f=e?I:J,g=null,h=d.get(a);null!=h;){if(h.listener===b&&h.listenerType===f)return void(null===g?null===h.next?d.delete(a):d.set(a,h.next):g.next=h.next);g=h,h=h.next}},dispatchEvent:function(a){if(null==a||"string"!=typeof a.type)throw new TypeError("\"event.type\" should be a string.");var b=x(this),c=a.type,d=b.get(c);if(null==d)return!0;for(var e=r(this,a),f=null;null!=d;){if(d.once?null===f?null===d.next?b.delete(c):b.set(c,d.next):f.next=d.next:f=d,v(e,d.passive?d.listener:null),"function"==typeof d.listener)try{d.listener.call(this,e)}catch(a){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(a)}else d.listenerType!==3&&"function"==typeof d.listener.handleEvent&&d.listener.handleEvent(e);if(s(e))break;d=d.next}return v(e,null),t(e,0),u(e,null),!e.defaultPrevented}},Object.defineProperty(B.prototype,"constructor",{value:B,configurable:!0,writable:!0}),"undefined"!=typeof window&&"undefined"!=typeof window.EventTarget&&Object.setPrototypeOf(B.prototype,window.EventTarget.prototype);var K=function(a){function d(){var a;throw c(this,d),a=j(this,g(d).call(this)),new TypeError("AbortSignal cannot be constructed directly")}return f(d,a),e(d,[{key:"aborted",get:function(){var a=L.get(this);if("boolean"!=typeof a)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got ".concat(null===this?"null":b(this)));return a}}]),d}(B);z(K.prototype,"abort");var L=new WeakMap;Object.defineProperties(K.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"===b(Symbol.toStringTag)&&Object.defineProperty(K.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var M=function(){function a(){c(this,a),N.set(this,C())}return e(a,[{key:"abort",value:function(){D(E(this))}},{key:"signal",get:function(){return E(this)}}]),a}(),N=new WeakMap;if(Object.defineProperties(M.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"===b(Symbol.toStringTag)&&Object.defineProperty(M.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),a.AbortController=M,a.AbortSignal=K,a.default=M,Object.defineProperty(a,"__esModule",{value:!0}),"undefined"==typeof module&&"undefined"==typeof define){var O=Function("return this")();"undefined"==typeof O.AbortController&&(O.AbortController=M,O.AbortSignal=K)}});
5
- //# sourceMappingURL=abort-controller.umd.js.map
 
 
 
 
 
 
node_modules/abort-controller/dist/abort-controller.umd.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"abort-controller.umd.js","sources":["../node_modules/event-target-shim/dist/event-target-shim.mjs","../src/abort-signal.ts","../src/abort-controller.ts"],"sourcesContent":["/**\n * @author Toru Nagashima <https://github.com/mysticatea>\n * @copyright 2015 Toru Nagashima. All rights reserved.\n * See LICENSE file in root directory for full license.\n */\n/**\n * @typedef {object} PrivateData\n * @property {EventTarget} eventTarget The event target.\n * @property {{type:string}} event The original event object.\n * @property {number} eventPhase The current event phase.\n * @property {EventTarget|null} currentTarget The current event target.\n * @property {boolean} canceled The flag to prevent default.\n * @property {boolean} stopped The flag to stop propagation.\n * @property {boolean} immediateStopped The flag to stop propagation immediately.\n * @property {Function|null} passiveListener The listener if the current listener is passive. Otherwise this is null.\n * @property {number} timeStamp The unix time.\n * @private\n */\n\n/**\n * Private data for event wrappers.\n * @type {WeakMap<Event, PrivateData>}\n * @private\n */\nconst privateData = new WeakMap();\n\n/**\n * Cache for wrapper classes.\n * @type {WeakMap<Object, Function>}\n * @private\n */\nconst wrappers = new WeakMap();\n\n/**\n * Get private data.\n * @param {Event} event The event object to get private data.\n * @returns {PrivateData} The private data of the event.\n * @private\n */\nfunction pd(event) {\n const retv = privateData.get(event);\n console.assert(\n retv != null,\n \"'this' is expected an Event object, but got\",\n event\n );\n return retv\n}\n\n/**\n * https://dom.spec.whatwg.org/#set-the-canceled-flag\n * @param data {PrivateData} private data.\n */\nfunction setCancelFlag(data) {\n if (data.passiveListener != null) {\n if (\n typeof console !== \"undefined\" &&\n typeof console.error === \"function\"\n ) {\n console.error(\n \"Unable to preventDefault inside passive event listener invocation.\",\n data.passiveListener\n );\n }\n return\n }\n if (!data.event.cancelable) {\n return\n }\n\n data.canceled = true;\n if (typeof data.event.preventDefault === \"function\") {\n data.event.preventDefault();\n }\n}\n\n/**\n * @see https://dom.spec.whatwg.org/#interface-event\n * @private\n */\n/**\n * The event wrapper.\n * @constructor\n * @param {EventTarget} eventTarget The event target of this dispatching.\n * @param {Event|{type:string}} event The original event to wrap.\n */\nfunction Event(eventTarget, event) {\n privateData.set(this, {\n eventTarget,\n event,\n eventPhase: 2,\n currentTarget: eventTarget,\n canceled: false,\n stopped: false,\n immediateStopped: false,\n passiveListener: null,\n timeStamp: event.timeStamp || Date.now(),\n });\n\n // https://heycam.github.io/webidl/#Unforgeable\n Object.defineProperty(this, \"isTrusted\", { value: false, enumerable: true });\n\n // Define accessors\n const keys = Object.keys(event);\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i];\n if (!(key in this)) {\n Object.defineProperty(this, key, defineRedirectDescriptor(key));\n }\n }\n}\n\n// Should be enumerable, but class methods are not enumerable.\nEvent.prototype = {\n /**\n * The type of this event.\n * @type {string}\n */\n get type() {\n return pd(this).event.type\n },\n\n /**\n * The target of this event.\n * @type {EventTarget}\n */\n get target() {\n return pd(this).eventTarget\n },\n\n /**\n * The target of this event.\n * @type {EventTarget}\n */\n get currentTarget() {\n return pd(this).currentTarget\n },\n\n /**\n * @returns {EventTarget[]} The composed path of this event.\n */\n composedPath() {\n const currentTarget = pd(this).currentTarget;\n if (currentTarget == null) {\n return []\n }\n return [currentTarget]\n },\n\n /**\n * Constant of NONE.\n * @type {number}\n */\n get NONE() {\n return 0\n },\n\n /**\n * Constant of CAPTURING_PHASE.\n * @type {number}\n */\n get CAPTURING_PHASE() {\n return 1\n },\n\n /**\n * Constant of AT_TARGET.\n * @type {number}\n */\n get AT_TARGET() {\n return 2\n },\n\n /**\n * Constant of BUBBLING_PHASE.\n * @type {number}\n */\n get BUBBLING_PHASE() {\n return 3\n },\n\n /**\n * The target of this event.\n * @type {number}\n */\n get eventPhase() {\n return pd(this).eventPhase\n },\n\n /**\n * Stop event bubbling.\n * @returns {void}\n */\n stopPropagation() {\n const data = pd(this);\n\n data.stopped = true;\n if (typeof data.event.stopPropagation === \"function\") {\n data.event.stopPropagation();\n }\n },\n\n /**\n * Stop event bubbling.\n * @returns {void}\n */\n stopImmediatePropagation() {\n const data = pd(this);\n\n data.stopped = true;\n data.immediateStopped = true;\n if (typeof data.event.stopImmediatePropagation === \"function\") {\n data.event.stopImmediatePropagation();\n }\n },\n\n /**\n * The flag to be bubbling.\n * @type {boolean}\n */\n get bubbles() {\n return Boolean(pd(this).event.bubbles)\n },\n\n /**\n * The flag to be cancelable.\n * @type {boolean}\n */\n get cancelable() {\n return Boolean(pd(this).event.cancelable)\n },\n\n /**\n * Cancel this event.\n * @returns {void}\n */\n preventDefault() {\n setCancelFlag(pd(this));\n },\n\n /**\n * The flag to indicate cancellation state.\n * @type {boolean}\n */\n get defaultPrevented() {\n return pd(this).canceled\n },\n\n /**\n * The flag to be composed.\n * @type {boolean}\n */\n get composed() {\n return Boolean(pd(this).event.composed)\n },\n\n /**\n * The unix time of this event.\n * @type {number}\n */\n get timeStamp() {\n return pd(this).timeStamp\n },\n\n /**\n * The target of this event.\n * @type {EventTarget}\n * @deprecated\n */\n get srcElement() {\n return pd(this).eventTarget\n },\n\n /**\n * The flag to stop event bubbling.\n * @type {boolean}\n * @deprecated\n */\n get cancelBubble() {\n return pd(this).stopped\n },\n set cancelBubble(value) {\n if (!value) {\n return\n }\n const data = pd(this);\n\n data.stopped = true;\n if (typeof data.event.cancelBubble === \"boolean\") {\n data.event.cancelBubble = true;\n }\n },\n\n /**\n * The flag to indicate cancellation state.\n * @type {boolean}\n * @deprecated\n */\n get returnValue() {\n return !pd(this).canceled\n },\n set returnValue(value) {\n if (!value) {\n setCancelFlag(pd(this));\n }\n },\n\n /**\n * Initialize this event object. But do nothing under event dispatching.\n * @param {string} type The event type.\n * @param {boolean} [bubbles=false] The flag to be possible to bubble up.\n * @param {boolean} [cancelable=false] The flag to be possible to cancel.\n * @deprecated\n */\n initEvent() {\n // Do nothing.\n },\n};\n\n// `constructor` is not enumerable.\nObject.defineProperty(Event.prototype, \"constructor\", {\n value: Event,\n configurable: true,\n writable: true,\n});\n\n// Ensure `event instanceof window.Event` is `true`.\nif (typeof window !== \"undefined\" && typeof window.Event !== \"undefined\") {\n Object.setPrototypeOf(Event.prototype, window.Event.prototype);\n\n // Make association for wrappers.\n wrappers.set(window.Event.prototype, Event);\n}\n\n/**\n * Get the property descriptor to redirect a given property.\n * @param {string} key Property name to define property descriptor.\n * @returns {PropertyDescriptor} The property descriptor to redirect the property.\n * @private\n */\nfunction defineRedirectDescriptor(key) {\n return {\n get() {\n return pd(this).event[key]\n },\n set(value) {\n pd(this).event[key] = value;\n },\n configurable: true,\n enumerable: true,\n }\n}\n\n/**\n * Get the property descriptor to call a given method property.\n * @param {string} key Property name to define property descriptor.\n * @returns {PropertyDescriptor} The property descriptor to call the method property.\n * @private\n */\nfunction defineCallDescriptor(key) {\n return {\n value() {\n const event = pd(this).event;\n return event[key].apply(event, arguments)\n },\n configurable: true,\n enumerable: true,\n }\n}\n\n/**\n * Define new wrapper class.\n * @param {Function} BaseEvent The base wrapper class.\n * @param {Object} proto The prototype of the original event.\n * @returns {Function} The defined wrapper class.\n * @private\n */\nfunction defineWrapper(BaseEvent, proto) {\n const keys = Object.keys(proto);\n if (keys.length === 0) {\n return BaseEvent\n }\n\n /** CustomEvent */\n function CustomEvent(eventTarget, event) {\n BaseEvent.call(this, eventTarget, event);\n }\n\n CustomEvent.prototype = Object.create(BaseEvent.prototype, {\n constructor: { value: CustomEvent, configurable: true, writable: true },\n });\n\n // Define accessors.\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i];\n if (!(key in BaseEvent.prototype)) {\n const descriptor = Object.getOwnPropertyDescriptor(proto, key);\n const isFunc = typeof descriptor.value === \"function\";\n Object.defineProperty(\n CustomEvent.prototype,\n key,\n isFunc\n ? defineCallDescriptor(key)\n : defineRedirectDescriptor(key)\n );\n }\n }\n\n return CustomEvent\n}\n\n/**\n * Get the wrapper class of a given prototype.\n * @param {Object} proto The prototype of the original event to get its wrapper.\n * @returns {Function} The wrapper class.\n * @private\n */\nfunction getWrapper(proto) {\n if (proto == null || proto === Object.prototype) {\n return Event\n }\n\n let wrapper = wrappers.get(proto);\n if (wrapper == null) {\n wrapper = defineWrapper(getWrapper(Object.getPrototypeOf(proto)), proto);\n wrappers.set(proto, wrapper);\n }\n return wrapper\n}\n\n/**\n * Wrap a given event to management a dispatching.\n * @param {EventTarget} eventTarget The event target of this dispatching.\n * @param {Object} event The event to wrap.\n * @returns {Event} The wrapper instance.\n * @private\n */\nfunction wrapEvent(eventTarget, event) {\n const Wrapper = getWrapper(Object.getPrototypeOf(event));\n return new Wrapper(eventTarget, event)\n}\n\n/**\n * Get the immediateStopped flag of a given event.\n * @param {Event} event The event to get.\n * @returns {boolean} The flag to stop propagation immediately.\n * @private\n */\nfunction isStopped(event) {\n return pd(event).immediateStopped\n}\n\n/**\n * Set the current event phase of a given event.\n * @param {Event} event The event to set current target.\n * @param {number} eventPhase New event phase.\n * @returns {void}\n * @private\n */\nfunction setEventPhase(event, eventPhase) {\n pd(event).eventPhase = eventPhase;\n}\n\n/**\n * Set the current target of a given event.\n * @param {Event} event The event to set current target.\n * @param {EventTarget|null} currentTarget New current target.\n * @returns {void}\n * @private\n */\nfunction setCurrentTarget(event, currentTarget) {\n pd(event).currentTarget = currentTarget;\n}\n\n/**\n * Set a passive listener of a given event.\n * @param {Event} event The event to set current target.\n * @param {Function|null} passiveListener New passive listener.\n * @returns {void}\n * @private\n */\nfunction setPassiveListener(event, passiveListener) {\n pd(event).passiveListener = passiveListener;\n}\n\n/**\n * @typedef {object} ListenerNode\n * @property {Function} listener\n * @property {1|2|3} listenerType\n * @property {boolean} passive\n * @property {boolean} once\n * @property {ListenerNode|null} next\n * @private\n */\n\n/**\n * @type {WeakMap<object, Map<string, ListenerNode>>}\n * @private\n */\nconst listenersMap = new WeakMap();\n\n// Listener types\nconst CAPTURE = 1;\nconst BUBBLE = 2;\nconst ATTRIBUTE = 3;\n\n/**\n * Check whether a given value is an object or not.\n * @param {any} x The value to check.\n * @returns {boolean} `true` if the value is an object.\n */\nfunction isObject(x) {\n return x !== null && typeof x === \"object\" //eslint-disable-line no-restricted-syntax\n}\n\n/**\n * Get listeners.\n * @param {EventTarget} eventTarget The event target to get.\n * @returns {Map<string, ListenerNode>} The listeners.\n * @private\n */\nfunction getListeners(eventTarget) {\n const listeners = listenersMap.get(eventTarget);\n if (listeners == null) {\n throw new TypeError(\n \"'this' is expected an EventTarget object, but got another value.\"\n )\n }\n return listeners\n}\n\n/**\n * Get the property descriptor for the event attribute of a given event.\n * @param {string} eventName The event name to get property descriptor.\n * @returns {PropertyDescriptor} The property descriptor.\n * @private\n */\nfunction defineEventAttributeDescriptor(eventName) {\n return {\n get() {\n const listeners = getListeners(this);\n let node = listeners.get(eventName);\n while (node != null) {\n if (node.listenerType === ATTRIBUTE) {\n return node.listener\n }\n node = node.next;\n }\n return null\n },\n\n set(listener) {\n if (typeof listener !== \"function\" && !isObject(listener)) {\n listener = null; // eslint-disable-line no-param-reassign\n }\n const listeners = getListeners(this);\n\n // Traverse to the tail while removing old value.\n let prev = null;\n let node = listeners.get(eventName);\n while (node != null) {\n if (node.listenerType === ATTRIBUTE) {\n // Remove old value.\n if (prev !== null) {\n prev.next = node.next;\n } else if (node.next !== null) {\n listeners.set(eventName, node.next);\n } else {\n listeners.delete(eventName);\n }\n } else {\n prev = node;\n }\n\n node = node.next;\n }\n\n // Add new value.\n if (listener !== null) {\n const newNode = {\n listener,\n listenerType: ATTRIBUTE,\n passive: false,\n once: false,\n next: null,\n };\n if (prev === null) {\n listeners.set(eventName, newNode);\n } else {\n prev.next = newNode;\n }\n }\n },\n configurable: true,\n enumerable: true,\n }\n}\n\n/**\n * Define an event attribute (e.g. `eventTarget.onclick`).\n * @param {Object} eventTargetPrototype The event target prototype to define an event attrbite.\n * @param {string} eventName The event name to define.\n * @returns {void}\n */\nfunction defineEventAttribute(eventTargetPrototype, eventName) {\n Object.defineProperty(\n eventTargetPrototype,\n `on${eventName}`,\n defineEventAttributeDescriptor(eventName)\n );\n}\n\n/**\n * Define a custom EventTarget with event attributes.\n * @param {string[]} eventNames Event names for event attributes.\n * @returns {EventTarget} The custom EventTarget.\n * @private\n */\nfunction defineCustomEventTarget(eventNames) {\n /** CustomEventTarget */\n function CustomEventTarget() {\n EventTarget.call(this);\n }\n\n CustomEventTarget.prototype = Object.create(EventTarget.prototype, {\n constructor: {\n value: CustomEventTarget,\n configurable: true,\n writable: true,\n },\n });\n\n for (let i = 0; i < eventNames.length; ++i) {\n defineEventAttribute(CustomEventTarget.prototype, eventNames[i]);\n }\n\n return CustomEventTarget\n}\n\n/**\n * EventTarget.\n *\n * - This is constructor if no arguments.\n * - This is a function which returns a CustomEventTarget constructor if there are arguments.\n *\n * For example:\n *\n * class A extends EventTarget {}\n * class B extends EventTarget(\"message\") {}\n * class C extends EventTarget(\"message\", \"error\") {}\n * class D extends EventTarget([\"message\", \"error\"]) {}\n */\nfunction EventTarget() {\n /*eslint-disable consistent-return */\n if (this instanceof EventTarget) {\n listenersMap.set(this, new Map());\n return\n }\n if (arguments.length === 1 && Array.isArray(arguments[0])) {\n return defineCustomEventTarget(arguments[0])\n }\n if (arguments.length > 0) {\n const types = new Array(arguments.length);\n for (let i = 0; i < arguments.length; ++i) {\n types[i] = arguments[i];\n }\n return defineCustomEventTarget(types)\n }\n throw new TypeError(\"Cannot call a class as a function\")\n /*eslint-enable consistent-return */\n}\n\n// Should be enumerable, but class methods are not enumerable.\nEventTarget.prototype = {\n /**\n * Add a given listener to this event target.\n * @param {string} eventName The event name to add.\n * @param {Function} listener The listener to add.\n * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener.\n * @returns {void}\n */\n addEventListener(eventName, listener, options) {\n if (listener == null) {\n return\n }\n if (typeof listener !== \"function\" && !isObject(listener)) {\n throw new TypeError(\"'listener' should be a function or an object.\")\n }\n\n const listeners = getListeners(this);\n const optionsIsObj = isObject(options);\n const capture = optionsIsObj\n ? Boolean(options.capture)\n : Boolean(options);\n const listenerType = capture ? CAPTURE : BUBBLE;\n const newNode = {\n listener,\n listenerType,\n passive: optionsIsObj && Boolean(options.passive),\n once: optionsIsObj && Boolean(options.once),\n next: null,\n };\n\n // Set it as the first node if the first node is null.\n let node = listeners.get(eventName);\n if (node === undefined) {\n listeners.set(eventName, newNode);\n return\n }\n\n // Traverse to the tail while checking duplication..\n let prev = null;\n while (node != null) {\n if (\n node.listener === listener &&\n node.listenerType === listenerType\n ) {\n // Should ignore duplication.\n return\n }\n prev = node;\n node = node.next;\n }\n\n // Add it.\n prev.next = newNode;\n },\n\n /**\n * Remove a given listener from this event target.\n * @param {string} eventName The event name to remove.\n * @param {Function} listener The listener to remove.\n * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener.\n * @returns {void}\n */\n removeEventListener(eventName, listener, options) {\n if (listener == null) {\n return\n }\n\n const listeners = getListeners(this);\n const capture = isObject(options)\n ? Boolean(options.capture)\n : Boolean(options);\n const listenerType = capture ? CAPTURE : BUBBLE;\n\n let prev = null;\n let node = listeners.get(eventName);\n while (node != null) {\n if (\n node.listener === listener &&\n node.listenerType === listenerType\n ) {\n if (prev !== null) {\n prev.next = node.next;\n } else if (node.next !== null) {\n listeners.set(eventName, node.next);\n } else {\n listeners.delete(eventName);\n }\n return\n }\n\n prev = node;\n node = node.next;\n }\n },\n\n /**\n * Dispatch a given event.\n * @param {Event|{type:string}} event The event to dispatch.\n * @returns {boolean} `false` if canceled.\n */\n dispatchEvent(event) {\n if (event == null || typeof event.type !== \"string\") {\n throw new TypeError('\"event.type\" should be a string.')\n }\n\n // If listeners aren't registered, terminate.\n const listeners = getListeners(this);\n const eventName = event.type;\n let node = listeners.get(eventName);\n if (node == null) {\n return true\n }\n\n // Since we cannot rewrite several properties, so wrap object.\n const wrappedEvent = wrapEvent(this, event);\n\n // This doesn't process capturing phase and bubbling phase.\n // This isn't participating in a tree.\n let prev = null;\n while (node != null) {\n // Remove this listener if it's once\n if (node.once) {\n if (prev !== null) {\n prev.next = node.next;\n } else if (node.next !== null) {\n listeners.set(eventName, node.next);\n } else {\n listeners.delete(eventName);\n }\n } else {\n prev = node;\n }\n\n // Call this listener\n setPassiveListener(\n wrappedEvent,\n node.passive ? node.listener : null\n );\n if (typeof node.listener === \"function\") {\n try {\n node.listener.call(this, wrappedEvent);\n } catch (err) {\n if (\n typeof console !== \"undefined\" &&\n typeof console.error === \"function\"\n ) {\n console.error(err);\n }\n }\n } else if (\n node.listenerType !== ATTRIBUTE &&\n typeof node.listener.handleEvent === \"function\"\n ) {\n node.listener.handleEvent(wrappedEvent);\n }\n\n // Break if `event.stopImmediatePropagation` was called.\n if (isStopped(wrappedEvent)) {\n break\n }\n\n node = node.next;\n }\n setPassiveListener(wrappedEvent, null);\n setEventPhase(wrappedEvent, 0);\n setCurrentTarget(wrappedEvent, null);\n\n return !wrappedEvent.defaultPrevented\n },\n};\n\n// `constructor` is not enumerable.\nObject.defineProperty(EventTarget.prototype, \"constructor\", {\n value: EventTarget,\n configurable: true,\n writable: true,\n});\n\n// Ensure `eventTarget instanceof window.EventTarget` is `true`.\nif (\n typeof window !== \"undefined\" &&\n typeof window.EventTarget !== \"undefined\"\n) {\n Object.setPrototypeOf(EventTarget.prototype, window.EventTarget.prototype);\n}\n\nexport default EventTarget;\nexport { defineEventAttribute, EventTarget };\n//# sourceMappingURL=event-target-shim.mjs.map\n","import {\n // Event,\n EventTarget,\n // Type,\n defineEventAttribute,\n} from \"event-target-shim\"\n\n// Known Limitation\n// Use `any` because the type of `AbortSignal` in `lib.dom.d.ts` is wrong and\n// to make assignable our `AbortSignal` into that.\n// https://github.com/Microsoft/TSJS-lib-generator/pull/623\ntype Events = {\n abort: any // Event & Type<\"abort\">\n}\ntype EventAttributes = {\n onabort: any // Event & Type<\"abort\">\n}\n\n/**\n * The signal class.\n * @see https://dom.spec.whatwg.org/#abortsignal\n */\nexport default class AbortSignal extends EventTarget<Events, EventAttributes> {\n /**\n * AbortSignal cannot be constructed directly.\n */\n public constructor() {\n super()\n throw new TypeError(\"AbortSignal cannot be constructed directly\")\n }\n\n /**\n * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise.\n */\n public get aborted(): boolean {\n const aborted = abortedFlags.get(this)\n if (typeof aborted !== \"boolean\") {\n throw new TypeError(\n `Expected 'this' to be an 'AbortSignal' object, but got ${\n this === null ? \"null\" : typeof this\n }`,\n )\n }\n return aborted\n }\n}\ndefineEventAttribute(AbortSignal.prototype, \"abort\")\n\n/**\n * Create an AbortSignal object.\n */\nexport function createAbortSignal(): AbortSignal {\n const signal = Object.create(AbortSignal.prototype)\n EventTarget.call(signal)\n abortedFlags.set(signal, false)\n return signal\n}\n\n/**\n * Abort a given signal.\n */\nexport function abortSignal(signal: AbortSignal): void {\n if (abortedFlags.get(signal) !== false) {\n return\n }\n\n abortedFlags.set(signal, true)\n signal.dispatchEvent<\"abort\">({ type: \"abort\" })\n}\n\n/**\n * Aborted flag for each instances.\n */\nconst abortedFlags = new WeakMap<AbortSignal, boolean>()\n\n// Properties should be enumerable.\nObject.defineProperties(AbortSignal.prototype, {\n aborted: { enumerable: true },\n})\n\n// `toString()` should return `\"[object AbortSignal]\"`\nif (typeof Symbol === \"function\" && typeof Symbol.toStringTag === \"symbol\") {\n Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, {\n configurable: true,\n value: \"AbortSignal\",\n })\n}\n","import AbortSignal, { abortSignal, createAbortSignal } from \"./abort-signal\"\n\n/**\n * The AbortController.\n * @see https://dom.spec.whatwg.org/#abortcontroller\n */\nexport default class AbortController {\n /**\n * Initialize this controller.\n */\n public constructor() {\n signals.set(this, createAbortSignal())\n }\n\n /**\n * Returns the `AbortSignal` object associated with this object.\n */\n public get signal(): AbortSignal {\n return getSignal(this)\n }\n\n /**\n * Abort and signal to any observers that the associated activity is to be aborted.\n */\n public abort(): void {\n abortSignal(getSignal(this))\n }\n}\n\n/**\n * Associated signals.\n */\nconst signals = new WeakMap<AbortController, AbortSignal>()\n\n/**\n * Get the associated signal of a given controller.\n */\nfunction getSignal(controller: AbortController): AbortSignal {\n const signal = signals.get(controller)\n if (signal == null) {\n throw new TypeError(\n `Expected 'this' to be an 'AbortController' object, but got ${\n controller === null ? \"null\" : typeof controller\n }`,\n )\n }\n return signal\n}\n\n// Properties should be enumerable.\nObject.defineProperties(AbortController.prototype, {\n signal: { enumerable: true },\n abort: { enumerable: true },\n})\n\nif (typeof Symbol === \"function\" && typeof Symbol.toStringTag === \"symbol\") {\n Object.defineProperty(AbortController.prototype, Symbol.toStringTag, {\n configurable: true,\n value: \"AbortController\",\n })\n}\n\nexport { AbortController, AbortSignal }\n"],"names":["pd","event","retv","privateData","get","console","assert","setCancelFlag","data","passiveListener","cancelable","canceled","preventDefault","error","Event","eventTarget","set","eventPhase","currentTarget","stopped","immediateStopped","timeStamp","Date","now","Object","defineProperty","value","enumerable","key","keys","i","length","defineRedirectDescriptor","configurable","defineCallDescriptor","apply","arguments","defineWrapper","BaseEvent","proto","CustomEvent","call","prototype","create","constructor","writable","descriptor","getOwnPropertyDescriptor","isFunc","getWrapper","wrapper","wrappers","getPrototypeOf","wrapEvent","Wrapper","isStopped","setEventPhase","setCurrentTarget","setPassiveListener","createAbortSignal","signal","AbortSignal","EventTarget","abortedFlags","abortSignal","dispatchEvent","type","getSignal","controller","signals","TypeError","WeakMap","target","composedPath","NONE","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE","stopPropagation","stopImmediatePropagation","bubbles","defaultPrevented","composed","srcElement","cancelBubble","returnValue","initEvent","window","setPrototypeOf","aborted","defineEventAttribute","defineProperties","Symbol","_typeof","toStringTag","AbortController","abort"],"mappings":"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"}
 
 
node_modules/abort-controller/package.json DELETED
@@ -1,97 +0,0 @@
1
- {
2
- "name": "abort-controller",
3
- "version": "3.0.0",
4
- "description": "An implementation of WHATWG AbortController interface.",
5
- "main": "dist/abort-controller",
6
- "files": [
7
- "dist",
8
- "polyfill.*",
9
- "browser.*"
10
- ],
11
- "engines": {
12
- "node": ">=6.5"
13
- },
14
- "dependencies": {
15
- "event-target-shim": "^5.0.0"
16
- },
17
- "browser": "./browser.js",
18
- "devDependencies": {
19
- "@babel/core": "^7.2.2",
20
- "@babel/plugin-transform-modules-commonjs": "^7.2.0",
21
- "@babel/preset-env": "^7.3.0",
22
- "@babel/register": "^7.0.0",
23
- "@mysticatea/eslint-plugin": "^8.0.1",
24
- "@mysticatea/spy": "^0.1.2",
25
- "@types/mocha": "^5.2.5",
26
- "@types/node": "^10.12.18",
27
- "assert": "^1.4.1",
28
- "codecov": "^3.1.0",
29
- "dts-bundle-generator": "^2.0.0",
30
- "eslint": "^5.12.1",
31
- "karma": "^3.1.4",
32
- "karma-chrome-launcher": "^2.2.0",
33
- "karma-coverage": "^1.1.2",
34
- "karma-firefox-launcher": "^1.1.0",
35
- "karma-growl-reporter": "^1.0.0",
36
- "karma-ie-launcher": "^1.0.0",
37
- "karma-mocha": "^1.3.0",
38
- "karma-rollup-preprocessor": "^7.0.0-rc.2",
39
- "mocha": "^5.2.0",
40
- "npm-run-all": "^4.1.5",
41
- "nyc": "^13.1.0",
42
- "opener": "^1.5.1",
43
- "rimraf": "^2.6.3",
44
- "rollup": "^1.1.2",
45
- "rollup-plugin-babel": "^4.3.2",
46
- "rollup-plugin-babel-minify": "^7.0.0",
47
- "rollup-plugin-commonjs": "^9.2.0",
48
- "rollup-plugin-node-resolve": "^4.0.0",
49
- "rollup-plugin-sourcemaps": "^0.4.2",
50
- "rollup-plugin-typescript": "^1.0.0",
51
- "rollup-watch": "^4.3.1",
52
- "ts-node": "^8.0.1",
53
- "type-tester": "^1.0.0",
54
- "typescript": "^3.2.4"
55
- },
56
- "scripts": {
57
- "preversion": "npm test",
58
- "version": "npm run -s build && git add dist/*",
59
- "postversion": "git push && git push --tags",
60
- "clean": "rimraf .nyc_output coverage",
61
- "coverage": "opener coverage/lcov-report/index.html",
62
- "lint": "eslint . --ext .ts",
63
- "build": "run-s -s build:*",
64
- "build:rollup": "rollup -c",
65
- "build:dts": "dts-bundle-generator -o dist/abort-controller.d.ts src/abort-controller.ts && ts-node scripts/fix-dts",
66
- "test": "run-s -s lint test:*",
67
- "test:mocha": "nyc mocha test/*.ts",
68
- "test:karma": "karma start --single-run",
69
- "watch": "run-p -s watch:*",
70
- "watch:mocha": "mocha test/*.ts --require ts-node/register --watch-extensions ts --watch --growl",
71
- "watch:karma": "karma start --watch",
72
- "codecov": "codecov"
73
- },
74
- "repository": {
75
- "type": "git",
76
- "url": "git+https://github.com/mysticatea/abort-controller.git"
77
- },
78
- "keywords": [
79
- "w3c",
80
- "whatwg",
81
- "event",
82
- "events",
83
- "abort",
84
- "cancel",
85
- "abortcontroller",
86
- "abortsignal",
87
- "controller",
88
- "signal",
89
- "shim"
90
- ],
91
- "author": "Toru Nagashima (https://github.com/mysticatea)",
92
- "license": "MIT",
93
- "bugs": {
94
- "url": "https://github.com/mysticatea/abort-controller/issues"
95
- },
96
- "homepage": "https://github.com/mysticatea/abort-controller#readme"
97
- }