BlueGit

timfa filemanager

import project

timfa Tim Falken · pushed by timfa

Authored 2026-05-03 · 6 months ago

Hash
d3c0b9110c3c6cb3988bb5f34dfdcd14f9a34a48
Parent
7ae6ccdb
18 files changed +8520 −0
.gitignore added +6 −0
@@ -0,0 +1,6 @@
1 node_modules/
2 keys/
3 *.db
4 .env
5
6 config.json
@@ -0,0 +1,6 @@
1node_modules/
2keys/
3*.db
4.env
5
6config.json
package-lock.json added +5085 −0
@@ -0,0 +1,5085 @@
1 {
2 "name": "filemanager",
3 "version": "1.0.0",
4 "lockfileVersion": 3,
5 "requires": true,
6 "packages": {
7 "": {
8 "name": "filemanager",
9 "version": "1.0.0",
10 "dependencies": {
11 "bcrypt": "^5.1.1",
12 "express": "^4.18.2",
13 "geoip-lite": "^1.4.10",
14 "jest": "^29.7.0",
15 "jsonwebtoken": "^9.0.2",
16 "multer": "^1.4.5-lts.1",
17 "node-sqlite3-wasm": "^0.8.10",
18 "uuid": "^9.0.0"
19 }
20 },
21 "node_modules/@babel/code-frame": {
22 "version": "7.29.0",
23 "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",
24 "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",
25 "license": "MIT",
26 "dependencies": {
27 "@babel/helper-validator-identifier": "^7.28.5",
28 "js-tokens": "^4.0.0",
29 "picocolors": "^1.1.1"
30 },
31 "engines": {
32 "node": ">=6.9.0"
33 }
34 },
35 "node_modules/@babel/compat-data": {
36 "version": "7.29.3",
37 "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.3.tgz",
38 "integrity": "sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==",
39 "license": "MIT",
40 "engines": {
41 "node": ">=6.9.0"
42 }
43 },
44 "node_modules/@babel/core": {
45 "version": "7.29.0",
46 "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz",
47 "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",
48 "license": "MIT",
49 "dependencies": {
50 "@babel/code-frame": "^7.29.0",
51 "@babel/generator": "^7.29.0",
52 "@babel/helper-compilation-targets": "^7.28.6",
53 "@babel/helper-module-transforms": "^7.28.6",
54 "@babel/helpers": "^7.28.6",
55 "@babel/parser": "^7.29.0",
56 "@babel/template": "^7.28.6",
57 "@babel/traverse": "^7.29.0",
58 "@babel/types": "^7.29.0",
59 "@jridgewell/remapping": "^2.3.5",
60 "convert-source-map": "^2.0.0",
61 "debug": "^4.1.0",
62 "gensync": "^1.0.0-beta.2",
63 "json5": "^2.2.3",
64 "semver": "^6.3.1"
65 },
66 "engines": {
67 "node": ">=6.9.0"
68 },
69 "funding": {
70 "type": "opencollective",
71 "url": "https://opencollective.com/babel"
72 }
73 },
74 "node_modules/@babel/core/node_modules/debug": {
75 "version": "4.4.3",
76 "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
77 "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
78 "license": "MIT",
79 "dependencies": {
80 "ms": "^2.1.3"
81 },
82 "engines": {
83 "node": ">=6.0"
84 },
85 "peerDependenciesMeta": {
86 "supports-color": {
87 "optional": true
88 }
89 }
90 },
91 "node_modules/@babel/core/node_modules/ms": {
92 "version": "2.1.3",
93 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
94 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
95 "license": "MIT"
96 },
97 "node_modules/@babel/core/node_modules/semver": {
98 "version": "6.3.1",
99 "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
100 "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
101 "license": "ISC",
102 "bin": {
103 "semver": "bin/semver.js"
104 }
105 },
106 "node_modules/@babel/generator": {
107 "version": "7.29.1",
108 "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz",
109 "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==",
110 "license": "MIT",
111 "dependencies": {
112 "@babel/parser": "^7.29.0",
113 "@babel/types": "^7.29.0",
114 "@jridgewell/gen-mapping": "^0.3.12",
115 "@jridgewell/trace-mapping": "^0.3.28",
116 "jsesc": "^3.0.2"
117 },
118 "engines": {
119 "node": ">=6.9.0"
120 }
121 },
122 "node_modules/@babel/helper-compilation-targets": {
123 "version": "7.28.6",
124 "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",
125 "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",
126 "license": "MIT",
127 "dependencies": {
128 "@babel/compat-data": "^7.28.6",
129 "@babel/helper-validator-option": "^7.27.1",
130 "browserslist": "^4.24.0",
131 "lru-cache": "^5.1.1",
132 "semver": "^6.3.1"
133 },
134 "engines": {
135 "node": ">=6.9.0"
136 }
137 },
138 "node_modules/@babel/helper-compilation-targets/node_modules/semver": {
139 "version": "6.3.1",
140 "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
141 "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
142 "license": "ISC",
143 "bin": {
144 "semver": "bin/semver.js"
145 }
146 },
147 "node_modules/@babel/helper-globals": {
148 "version": "7.28.0",
149 "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",
150 "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",
151 "license": "MIT",
152 "engines": {
153 "node": ">=6.9.0"
154 }
155 },
156 "node_modules/@babel/helper-module-imports": {
157 "version": "7.28.6",
158 "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",
159 "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",
160 "license": "MIT",
161 "dependencies": {
162 "@babel/traverse": "^7.28.6",
163 "@babel/types": "^7.28.6"
164 },
165 "engines": {
166 "node": ">=6.9.0"
167 }
168 },
169 "node_modules/@babel/helper-module-transforms": {
170 "version": "7.28.6",
171 "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",
172 "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",
173 "license": "MIT",
174 "dependencies": {
175 "@babel/helper-module-imports": "^7.28.6",
176 "@babel/helper-validator-identifier": "^7.28.5",
177 "@babel/traverse": "^7.28.6"
178 },
179 "engines": {
180 "node": ">=6.9.0"
181 },
182 "peerDependencies": {
183 "@babel/core": "^7.0.0"
184 }
185 },
186 "node_modules/@babel/helper-plugin-utils": {
187 "version": "7.28.6",
188 "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz",
189 "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==",
190 "license": "MIT",
191 "engines": {
192 "node": ">=6.9.0"
193 }
194 },
195 "node_modules/@babel/helper-string-parser": {
196 "version": "7.27.1",
197 "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
198 "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
199 "license": "MIT",
200 "engines": {
201 "node": ">=6.9.0"
202 }
203 },
204 "node_modules/@babel/helper-validator-identifier": {
205 "version": "7.28.5",
206 "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
207 "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
208 "license": "MIT",
209 "engines": {
210 "node": ">=6.9.0"
211 }
212 },
213 "node_modules/@babel/helper-validator-option": {
214 "version": "7.27.1",
215 "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",
216 "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",
217 "license": "MIT",
218 "engines": {
219 "node": ">=6.9.0"
220 }
221 },
222 "node_modules/@babel/helpers": {
223 "version": "7.29.2",
224 "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz",
225 "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==",
226 "license": "MIT",
227 "dependencies": {
228 "@babel/template": "^7.28.6",
229 "@babel/types": "^7.29.0"
230 },
231 "engines": {
232 "node": ">=6.9.0"
233 }
234 },
235 "node_modules/@babel/parser": {
236 "version": "7.29.3",
237 "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz",
238 "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==",
239 "license": "MIT",
240 "dependencies": {
241 "@babel/types": "^7.29.0"
242 },
243 "bin": {
244 "parser": "bin/babel-parser.js"
245 },
246 "engines": {
247 "node": ">=6.0.0"
248 }
249 },
250 "node_modules/@babel/plugin-syntax-async-generators": {
251 "version": "7.8.4",
252 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz",
253 "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==",
254 "license": "MIT",
255 "dependencies": {
256 "@babel/helper-plugin-utils": "^7.8.0"
257 },
258 "peerDependencies": {
259 "@babel/core": "^7.0.0-0"
260 }
261 },
262 "node_modules/@babel/plugin-syntax-bigint": {
263 "version": "7.8.3",
264 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz",
265 "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==",
266 "license": "MIT",
267 "dependencies": {
268 "@babel/helper-plugin-utils": "^7.8.0"
269 },
270 "peerDependencies": {
271 "@babel/core": "^7.0.0-0"
272 }
273 },
274 "node_modules/@babel/plugin-syntax-class-properties": {
275 "version": "7.12.13",
276 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz",
277 "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==",
278 "license": "MIT",
279 "dependencies": {
280 "@babel/helper-plugin-utils": "^7.12.13"
281 },
282 "peerDependencies": {
283 "@babel/core": "^7.0.0-0"
284 }
285 },
286 "node_modules/@babel/plugin-syntax-class-static-block": {
287 "version": "7.14.5",
288 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz",
289 "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==",
290 "license": "MIT",
291 "dependencies": {
292 "@babel/helper-plugin-utils": "^7.14.5"
293 },
294 "engines": {
295 "node": ">=6.9.0"
296 },
297 "peerDependencies": {
298 "@babel/core": "^7.0.0-0"
299 }
300 },
301 "node_modules/@babel/plugin-syntax-import-attributes": {
302 "version": "7.28.6",
303 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.28.6.tgz",
304 "integrity": "sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw==",
305 "license": "MIT",
306 "dependencies": {
307 "@babel/helper-plugin-utils": "^7.28.6"
308 },
309 "engines": {
310 "node": ">=6.9.0"
311 },
312 "peerDependencies": {
313 "@babel/core": "^7.0.0-0"
314 }
315 },
316 "node_modules/@babel/plugin-syntax-import-meta": {
317 "version": "7.10.4",
318 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz",
319 "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==",
320 "license": "MIT",
321 "dependencies": {
322 "@babel/helper-plugin-utils": "^7.10.4"
323 },
324 "peerDependencies": {
325 "@babel/core": "^7.0.0-0"
326 }
327 },
328 "node_modules/@babel/plugin-syntax-json-strings": {
329 "version": "7.8.3",
330 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz",
331 "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==",
332 "license": "MIT",
333 "dependencies": {
334 "@babel/helper-plugin-utils": "^7.8.0"
335 },
336 "peerDependencies": {
337 "@babel/core": "^7.0.0-0"
338 }
339 },
340 "node_modules/@babel/plugin-syntax-jsx": {
341 "version": "7.28.6",
342 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.28.6.tgz",
343 "integrity": "sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==",
344 "license": "MIT",
345 "dependencies": {
346 "@babel/helper-plugin-utils": "^7.28.6"
347 },
348 "engines": {
349 "node": ">=6.9.0"
350 },
351 "peerDependencies": {
352 "@babel/core": "^7.0.0-0"
353 }
354 },
355 "node_modules/@babel/plugin-syntax-logical-assignment-operators": {
356 "version": "7.10.4",
357 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz",
358 "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==",
359 "license": "MIT",
360 "dependencies": {
361 "@babel/helper-plugin-utils": "^7.10.4"
362 },
363 "peerDependencies": {
364 "@babel/core": "^7.0.0-0"
365 }
366 },
367 "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": {
368 "version": "7.8.3",
369 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz",
370 "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==",
371 "license": "MIT",
372 "dependencies": {
373 "@babel/helper-plugin-utils": "^7.8.0"
374 },
375 "peerDependencies": {
376 "@babel/core": "^7.0.0-0"
377 }
378 },
379 "node_modules/@babel/plugin-syntax-numeric-separator": {
380 "version": "7.10.4",
381 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz",
382 "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==",
383 "license": "MIT",
384 "dependencies": {
385 "@babel/helper-plugin-utils": "^7.10.4"
386 },
387 "peerDependencies": {
388 "@babel/core": "^7.0.0-0"
389 }
390 },
391 "node_modules/@babel/plugin-syntax-object-rest-spread": {
392 "version": "7.8.3",
393 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz",
394 "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==",
395 "license": "MIT",
396 "dependencies": {
397 "@babel/helper-plugin-utils": "^7.8.0"
398 },
399 "peerDependencies": {
400 "@babel/core": "^7.0.0-0"
401 }
402 },
403 "node_modules/@babel/plugin-syntax-optional-catch-binding": {
404 "version": "7.8.3",
405 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz",
406 "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==",
407 "license": "MIT",
408 "dependencies": {
409 "@babel/helper-plugin-utils": "^7.8.0"
410 },
411 "peerDependencies": {
412 "@babel/core": "^7.0.0-0"
413 }
414 },
415 "node_modules/@babel/plugin-syntax-optional-chaining": {
416 "version": "7.8.3",
417 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz",
418 "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==",
419 "license": "MIT",
420 "dependencies": {
421 "@babel/helper-plugin-utils": "^7.8.0"
422 },
423 "peerDependencies": {
424 "@babel/core": "^7.0.0-0"
425 }
426 },
427 "node_modules/@babel/plugin-syntax-private-property-in-object": {
428 "version": "7.14.5",
429 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz",
430 "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==",
431 "license": "MIT",
432 "dependencies": {
433 "@babel/helper-plugin-utils": "^7.14.5"
434 },
435 "engines": {
436 "node": ">=6.9.0"
437 },
438 "peerDependencies": {
439 "@babel/core": "^7.0.0-0"
440 }
441 },
442 "node_modules/@babel/plugin-syntax-top-level-await": {
443 "version": "7.14.5",
444 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz",
445 "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==",
446 "license": "MIT",
447 "dependencies": {
448 "@babel/helper-plugin-utils": "^7.14.5"
449 },
450 "engines": {
451 "node": ">=6.9.0"
452 },
453 "peerDependencies": {
454 "@babel/core": "^7.0.0-0"
455 }
456 },
457 "node_modules/@babel/plugin-syntax-typescript": {
458 "version": "7.28.6",
459 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.28.6.tgz",
460 "integrity": "sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==",
461 "license": "MIT",
462 "dependencies": {
463 "@babel/helper-plugin-utils": "^7.28.6"
464 },
465 "engines": {
466 "node": ">=6.9.0"
467 },
468 "peerDependencies": {
469 "@babel/core": "^7.0.0-0"
470 }
471 },
472 "node_modules/@babel/template": {
473 "version": "7.28.6",
474 "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",
475 "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",
476 "license": "MIT",
477 "dependencies": {
478 "@babel/code-frame": "^7.28.6",
479 "@babel/parser": "^7.28.6",
480 "@babel/types": "^7.28.6"
481 },
482 "engines": {
483 "node": ">=6.9.0"
484 }
485 },
486 "node_modules/@babel/traverse": {
487 "version": "7.29.0",
488 "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz",
489 "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",
490 "license": "MIT",
491 "dependencies": {
492 "@babel/code-frame": "^7.29.0",
493 "@babel/generator": "^7.29.0",
494 "@babel/helper-globals": "^7.28.0",
495 "@babel/parser": "^7.29.0",
496 "@babel/template": "^7.28.6",
497 "@babel/types": "^7.29.0",
498 "debug": "^4.3.1"
499 },
500 "engines": {
501 "node": ">=6.9.0"
502 }
503 },
504 "node_modules/@babel/traverse/node_modules/debug": {
505 "version": "4.4.3",
506 "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
507 "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
508 "license": "MIT",
509 "dependencies": {
510 "ms": "^2.1.3"
511 },
512 "engines": {
513 "node": ">=6.0"
514 },
515 "peerDependenciesMeta": {
516 "supports-color": {
517 "optional": true
518 }
519 }
520 },
521 "node_modules/@babel/traverse/node_modules/ms": {
522 "version": "2.1.3",
523 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
524 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
525 "license": "MIT"
526 },
527 "node_modules/@babel/types": {
528 "version": "7.29.0",
529 "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",
530 "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",
531 "license": "MIT",
532 "dependencies": {
533 "@babel/helper-string-parser": "^7.27.1",
534 "@babel/helper-validator-identifier": "^7.28.5"
535 },
536 "engines": {
537 "node": ">=6.9.0"
538 }
539 },
540 "node_modules/@bcoe/v8-coverage": {
541 "version": "0.2.3",
542 "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz",
543 "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==",
544 "license": "MIT"
545 },
546 "node_modules/@istanbuljs/load-nyc-config": {
547 "version": "1.1.0",
548 "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz",
549 "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==",
550 "license": "ISC",
551 "dependencies": {
552 "camelcase": "^5.3.1",
553 "find-up": "^4.1.0",
554 "get-package-type": "^0.1.0",
555 "js-yaml": "^3.13.1",
556 "resolve-from": "^5.0.0"
557 },
558 "engines": {
559 "node": ">=8"
560 }
561 },
562 "node_modules/@istanbuljs/schema": {
563 "version": "0.1.6",
564 "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.6.tgz",
565 "integrity": "sha512-+Sg6GCR/wy1oSmQDFq4LQDAhm3ETKnorxN+y5nbLULOR3P0c14f2Wurzj3/xqPXtasLFfHd5iRFQ7AJt4KH2cw==",
566 "license": "MIT",
567 "engines": {
568 "node": ">=8"
569 }
570 },
571 "node_modules/@jest/console": {
572 "version": "29.7.0",
573 "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz",
574 "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==",
575 "license": "MIT",
576 "dependencies": {
577 "@jest/types": "^29.6.3",
578 "@types/node": "*",
579 "chalk": "^4.0.0",
580 "jest-message-util": "^29.7.0",
581 "jest-util": "^29.7.0",
582 "slash": "^3.0.0"
583 },
584 "engines": {
585 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
586 }
587 },
588 "node_modules/@jest/core": {
589 "version": "29.7.0",
590 "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz",
591 "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==",
592 "license": "MIT",
593 "dependencies": {
594 "@jest/console": "^29.7.0",
595 "@jest/reporters": "^29.7.0",
596 "@jest/test-result": "^29.7.0",
597 "@jest/transform": "^29.7.0",
598 "@jest/types": "^29.6.3",
599 "@types/node": "*",
600 "ansi-escapes": "^4.2.1",
601 "chalk": "^4.0.0",
602 "ci-info": "^3.2.0",
603 "exit": "^0.1.2",
604 "graceful-fs": "^4.2.9",
605 "jest-changed-files": "^29.7.0",
606 "jest-config": "^29.7.0",
607 "jest-haste-map": "^29.7.0",
608 "jest-message-util": "^29.7.0",
609 "jest-regex-util": "^29.6.3",
610 "jest-resolve": "^29.7.0",
611 "jest-resolve-dependencies": "^29.7.0",
612 "jest-runner": "^29.7.0",
613 "jest-runtime": "^29.7.0",
614 "jest-snapshot": "^29.7.0",
615 "jest-util": "^29.7.0",
616 "jest-validate": "^29.7.0",
617 "jest-watcher": "^29.7.0",
618 "micromatch": "^4.0.4",
619 "pretty-format": "^29.7.0",
620 "slash": "^3.0.0",
621 "strip-ansi": "^6.0.0"
622 },
623 "engines": {
624 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
625 },
626 "peerDependencies": {
627 "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"
628 },
629 "peerDependenciesMeta": {
630 "node-notifier": {
631 "optional": true
632 }
633 }
634 },
635 "node_modules/@jest/environment": {
636 "version": "29.7.0",
637 "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz",
638 "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==",
639 "license": "MIT",
640 "dependencies": {
641 "@jest/fake-timers": "^29.7.0",
642 "@jest/types": "^29.6.3",
643 "@types/node": "*",
644 "jest-mock": "^29.7.0"
645 },
646 "engines": {
647 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
648 }
649 },
650 "node_modules/@jest/expect": {
651 "version": "29.7.0",
652 "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz",
653 "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==",
654 "license": "MIT",
655 "dependencies": {
656 "expect": "^29.7.0",
657 "jest-snapshot": "^29.7.0"
658 },
659 "engines": {
660 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
661 }
662 },
663 "node_modules/@jest/expect-utils": {
664 "version": "29.7.0",
665 "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz",
666 "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==",
667 "license": "MIT",
668 "dependencies": {
669 "jest-get-type": "^29.6.3"
670 },
671 "engines": {
672 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
673 }
674 },
675 "node_modules/@jest/fake-timers": {
676 "version": "29.7.0",
677 "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz",
678 "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==",
679 "license": "MIT",
680 "dependencies": {
681 "@jest/types": "^29.6.3",
682 "@sinonjs/fake-timers": "^10.0.2",
683 "@types/node": "*",
684 "jest-message-util": "^29.7.0",
685 "jest-mock": "^29.7.0",
686 "jest-util": "^29.7.0"
687 },
688 "engines": {
689 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
690 }
691 },
692 "node_modules/@jest/globals": {
693 "version": "29.7.0",
694 "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz",
695 "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==",
696 "license": "MIT",
697 "dependencies": {
698 "@jest/environment": "^29.7.0",
699 "@jest/expect": "^29.7.0",
700 "@jest/types": "^29.6.3",
701 "jest-mock": "^29.7.0"
702 },
703 "engines": {
704 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
705 }
706 },
707 "node_modules/@jest/reporters": {
708 "version": "29.7.0",
709 "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz",
710 "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==",
711 "license": "MIT",
712 "dependencies": {
713 "@bcoe/v8-coverage": "^0.2.3",
714 "@jest/console": "^29.7.0",
715 "@jest/test-result": "^29.7.0",
716 "@jest/transform": "^29.7.0",
717 "@jest/types": "^29.6.3",
718 "@jridgewell/trace-mapping": "^0.3.18",
719 "@types/node": "*",
720 "chalk": "^4.0.0",
721 "collect-v8-coverage": "^1.0.0",
722 "exit": "^0.1.2",
723 "glob": "^7.1.3",
724 "graceful-fs": "^4.2.9",
725 "istanbul-lib-coverage": "^3.0.0",
726 "istanbul-lib-instrument": "^6.0.0",
727 "istanbul-lib-report": "^3.0.0",
728 "istanbul-lib-source-maps": "^4.0.0",
729 "istanbul-reports": "^3.1.3",
730 "jest-message-util": "^29.7.0",
731 "jest-util": "^29.7.0",
732 "jest-worker": "^29.7.0",
733 "slash": "^3.0.0",
734 "string-length": "^4.0.1",
735 "strip-ansi": "^6.0.0",
736 "v8-to-istanbul": "^9.0.1"
737 },
738 "engines": {
739 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
740 },
741 "peerDependencies": {
742 "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"
743 },
744 "peerDependenciesMeta": {
745 "node-notifier": {
746 "optional": true
747 }
748 }
749 },
750 "node_modules/@jest/schemas": {
751 "version": "29.6.3",
752 "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz",
753 "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==",
754 "license": "MIT",
755 "dependencies": {
756 "@sinclair/typebox": "^0.27.8"
757 },
758 "engines": {
759 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
760 }
761 },
762 "node_modules/@jest/source-map": {
763 "version": "29.6.3",
764 "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz",
765 "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==",
766 "license": "MIT",
767 "dependencies": {
768 "@jridgewell/trace-mapping": "^0.3.18",
769 "callsites": "^3.0.0",
770 "graceful-fs": "^4.2.9"
771 },
772 "engines": {
773 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
774 }
775 },
776 "node_modules/@jest/test-result": {
777 "version": "29.7.0",
778 "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz",
779 "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==",
780 "license": "MIT",
781 "dependencies": {
782 "@jest/console": "^29.7.0",
783 "@jest/types": "^29.6.3",
784 "@types/istanbul-lib-coverage": "^2.0.0",
785 "collect-v8-coverage": "^1.0.0"
786 },
787 "engines": {
788 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
789 }
790 },
791 "node_modules/@jest/test-sequencer": {
792 "version": "29.7.0",
793 "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz",
794 "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==",
795 "license": "MIT",
796 "dependencies": {
797 "@jest/test-result": "^29.7.0",
798 "graceful-fs": "^4.2.9",
799 "jest-haste-map": "^29.7.0",
800 "slash": "^3.0.0"
801 },
802 "engines": {
803 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
804 }
805 },
806 "node_modules/@jest/transform": {
807 "version": "29.7.0",
808 "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz",
809 "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==",
810 "license": "MIT",
811 "dependencies": {
812 "@babel/core": "^7.11.6",
813 "@jest/types": "^29.6.3",
814 "@jridgewell/trace-mapping": "^0.3.18",
815 "babel-plugin-istanbul": "^6.1.1",
816 "chalk": "^4.0.0",
817 "convert-source-map": "^2.0.0",
818 "fast-json-stable-stringify": "^2.1.0",
819 "graceful-fs": "^4.2.9",
820 "jest-haste-map": "^29.7.0",
821 "jest-regex-util": "^29.6.3",
822 "jest-util": "^29.7.0",
823 "micromatch": "^4.0.4",
824 "pirates": "^4.0.4",
825 "slash": "^3.0.0",
826 "write-file-atomic": "^4.0.2"
827 },
828 "engines": {
829 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
830 }
831 },
832 "node_modules/@jest/types": {
833 "version": "29.6.3",
834 "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz",
835 "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==",
836 "license": "MIT",
837 "dependencies": {
838 "@jest/schemas": "^29.6.3",
839 "@types/istanbul-lib-coverage": "^2.0.0",
840 "@types/istanbul-reports": "^3.0.0",
841 "@types/node": "*",
842 "@types/yargs": "^17.0.8",
843 "chalk": "^4.0.0"
844 },
845 "engines": {
846 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
847 }
848 },
849 "node_modules/@jridgewell/gen-mapping": {
850 "version": "0.3.13",
851 "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
852 "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
853 "license": "MIT",
854 "dependencies": {
855 "@jridgewell/sourcemap-codec": "^1.5.0",
856 "@jridgewell/trace-mapping": "^0.3.24"
857 }
858 },
859 "node_modules/@jridgewell/remapping": {
860 "version": "2.3.5",
861 "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
862 "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
863 "license": "MIT",
864 "dependencies": {
865 "@jridgewell/gen-mapping": "^0.3.5",
866 "@jridgewell/trace-mapping": "^0.3.24"
867 }
868 },
869 "node_modules/@jridgewell/resolve-uri": {
870 "version": "3.1.2",
871 "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
872 "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
873 "license": "MIT",
874 "engines": {
875 "node": ">=6.0.0"
876 }
877 },
878 "node_modules/@jridgewell/sourcemap-codec": {
879 "version": "1.5.5",
880 "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
881 "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
882 "license": "MIT"
883 },
884 "node_modules/@jridgewell/trace-mapping": {
885 "version": "0.3.31",
886 "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
887 "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
888 "license": "MIT",
889 "dependencies": {
890 "@jridgewell/resolve-uri": "^3.1.0",
891 "@jridgewell/sourcemap-codec": "^1.4.14"
892 }
893 },
894 "node_modules/@mapbox/node-pre-gyp": {
895 "version": "1.0.11",
896 "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz",
897 "integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==",
898 "license": "BSD-3-Clause",
899 "dependencies": {
900 "detect-libc": "^2.0.0",
901 "https-proxy-agent": "^5.0.0",
902 "make-dir": "^3.1.0",
903 "node-fetch": "^2.6.7",
904 "nopt": "^5.0.0",
905 "npmlog": "^5.0.1",
906 "rimraf": "^3.0.2",
907 "semver": "^7.3.5",
908 "tar": "^6.1.11"
909 },
910 "bin": {
911 "node-pre-gyp": "bin/node-pre-gyp"
912 }
913 },
914 "node_modules/@sinclair/typebox": {
915 "version": "0.27.10",
916 "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.10.tgz",
917 "integrity": "sha512-MTBk/3jGLNB2tVxv6uLlFh1iu64iYOQ2PbdOSK3NW8JZsmlaOh2q6sdtKowBhfw8QFLmYNzTW4/oK4uATIi6ZA==",
918 "license": "MIT"
919 },
920 "node_modules/@sinonjs/commons": {
921 "version": "3.0.1",
922 "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz",
923 "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==",
924 "license": "BSD-3-Clause",
925 "dependencies": {
926 "type-detect": "4.0.8"
927 }
928 },
929 "node_modules/@sinonjs/fake-timers": {
930 "version": "10.3.0",
931 "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz",
932 "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==",
933 "license": "BSD-3-Clause",
934 "dependencies": {
935 "@sinonjs/commons": "^3.0.0"
936 }
937 },
938 "node_modules/@types/babel__core": {
939 "version": "7.20.5",
940 "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
941 "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",
942 "license": "MIT",
943 "dependencies": {
944 "@babel/parser": "^7.20.7",
945 "@babel/types": "^7.20.7",
946 "@types/babel__generator": "*",
947 "@types/babel__template": "*",
948 "@types/babel__traverse": "*"
949 }
950 },
951 "node_modules/@types/babel__generator": {
952 "version": "7.27.0",
953 "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",
954 "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",
955 "license": "MIT",
956 "dependencies": {
957 "@babel/types": "^7.0.0"
958 }
959 },
960 "node_modules/@types/babel__template": {
961 "version": "7.4.4",
962 "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",
963 "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",
964 "license": "MIT",
965 "dependencies": {
966 "@babel/parser": "^7.1.0",
967 "@babel/types": "^7.0.0"
968 }
969 },
970 "node_modules/@types/babel__traverse": {
971 "version": "7.28.0",
972 "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",
973 "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",
974 "license": "MIT",
975 "dependencies": {
976 "@babel/types": "^7.28.2"
977 }
978 },
979 "node_modules/@types/graceful-fs": {
980 "version": "4.1.9",
981 "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz",
982 "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==",
983 "license": "MIT",
984 "dependencies": {
985 "@types/node": "*"
986 }
987 },
988 "node_modules/@types/istanbul-lib-coverage": {
989 "version": "2.0.6",
990 "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz",
991 "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==",
992 "license": "MIT"
993 },
994 "node_modules/@types/istanbul-lib-report": {
995 "version": "3.0.3",
996 "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz",
997 "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==",
998 "license": "MIT",
999 "dependencies": {
1000 "@types/istanbul-lib-coverage": "*"
1001 }
1002 },
1003 "node_modules/@types/istanbul-reports": {
1004 "version": "3.0.4",
1005 "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz",
1006 "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==",
1007 "license": "MIT",
1008 "dependencies": {
1009 "@types/istanbul-lib-report": "*"
1010 }
1011 },
1012 "node_modules/@types/node": {
1013 "version": "25.6.0",
1014 "resolved": "https://registry.npmjs.org/@types/node/-/node-25.6.0.tgz",
1015 "integrity": "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ==",
1016 "license": "MIT",
1017 "dependencies": {
1018 "undici-types": "~7.19.0"
1019 }
1020 },
1021 "node_modules/@types/stack-utils": {
1022 "version": "2.0.3",
1023 "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz",
1024 "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==",
1025 "license": "MIT"
1026 },
1027 "node_modules/@types/yargs": {
1028 "version": "17.0.35",
1029 "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz",
1030 "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==",
1031 "license": "MIT",
1032 "dependencies": {
1033 "@types/yargs-parser": "*"
1034 }
1035 },
1036 "node_modules/@types/yargs-parser": {
1037 "version": "21.0.3",
1038 "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz",
1039 "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==",
1040 "license": "MIT"
1041 },
1042 "node_modules/abbrev": {
1043 "version": "1.1.1",
1044 "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
1045 "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
1046 "license": "ISC"
1047 },
1048 "node_modules/accepts": {
1049 "version": "1.3.8",
1050 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
1051 "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
1052 "license": "MIT",
1053 "dependencies": {
1054 "mime-types": "~2.1.34",
1055 "negotiator": "0.6.3"
1056 },
1057 "engines": {
1058 "node": ">= 0.6"
1059 }
1060 },
1061 "node_modules/agent-base": {
1062 "version": "6.0.2",
1063 "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
1064 "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
1065 "license": "MIT",
1066 "dependencies": {
1067 "debug": "4"
1068 },
1069 "engines": {
1070 "node": ">= 6.0.0"
1071 }
1072 },
1073 "node_modules/agent-base/node_modules/debug": {
1074 "version": "4.4.3",
1075 "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
1076 "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
1077 "license": "MIT",
1078 "dependencies": {
1079 "ms": "^2.1.3"
1080 },
1081 "engines": {
1082 "node": ">=6.0"
1083 },
1084 "peerDependenciesMeta": {
1085 "supports-color": {
1086 "optional": true
1087 }
1088 }
1089 },
1090 "node_modules/agent-base/node_modules/ms": {
1091 "version": "2.1.3",
1092 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1093 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
1094 "license": "MIT"
1095 },
1096 "node_modules/ansi-escapes": {
1097 "version": "4.3.2",
1098 "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",
1099 "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",
1100 "license": "MIT",
1101 "dependencies": {
1102 "type-fest": "^0.21.3"
1103 },
1104 "engines": {
1105 "node": ">=8"
1106 },
1107 "funding": {
1108 "url": "https://github.com/sponsors/sindresorhus"
1109 }
1110 },
1111 "node_modules/ansi-regex": {
1112 "version": "5.0.1",
1113 "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
1114 "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
1115 "license": "MIT",
1116 "engines": {
1117 "node": ">=8"
1118 }
1119 },
1120 "node_modules/ansi-styles": {
1121 "version": "4.3.0",
1122 "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
1123 "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
1124 "license": "MIT",
1125 "dependencies": {
1126 "color-convert": "^2.0.1"
1127 },
1128 "engines": {
1129 "node": ">=8"
1130 },
1131 "funding": {
1132 "url": "https://github.com/chalk/ansi-styles?sponsor=1"
1133 }
1134 },
1135 "node_modules/anymatch": {
1136 "version": "3.1.3",
1137 "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
1138 "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
1139 "license": "ISC",
1140 "dependencies": {
1141 "normalize-path": "^3.0.0",
1142 "picomatch": "^2.0.4"
1143 },
1144 "engines": {
1145 "node": ">= 8"
1146 }
1147 },
1148 "node_modules/append-field": {
1149 "version": "1.0.0",
1150 "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz",
1151 "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==",
1152 "license": "MIT"
1153 },
1154 "node_modules/aproba": {
1155 "version": "2.1.0",
1156 "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.1.0.tgz",
1157 "integrity": "sha512-tLIEcj5GuR2RSTnxNKdkK0dJ/GrC7P38sUkiDmDuHfsHmbagTFAxDVIBltoklXEVIQ/f14IL8IMJ5pn9Hez1Ew==",
1158 "license": "ISC"
1159 },
1160 "node_modules/are-we-there-yet": {
1161 "version": "2.0.0",
1162 "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz",
1163 "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==",
1164 "deprecated": "This package is no longer supported.",
1165 "license": "ISC",
1166 "dependencies": {
1167 "delegates": "^1.0.0",
1168 "readable-stream": "^3.6.0"
1169 },
1170 "engines": {
1171 "node": ">=10"
1172 }
1173 },
1174 "node_modules/are-we-there-yet/node_modules/readable-stream": {
1175 "version": "3.6.2",
1176 "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
1177 "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
1178 "license": "MIT",
1179 "dependencies": {
1180 "inherits": "^2.0.3",
1181 "string_decoder": "^1.1.1",
1182 "util-deprecate": "^1.0.1"
1183 },
1184 "engines": {
1185 "node": ">= 6"
1186 }
1187 },
1188 "node_modules/argparse": {
1189 "version": "1.0.10",
1190 "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
1191 "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
1192 "license": "MIT",
1193 "dependencies": {
1194 "sprintf-js": "~1.0.2"
1195 }
1196 },
1197 "node_modules/argparse/node_modules/sprintf-js": {
1198 "version": "1.0.3",
1199 "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
1200 "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",
1201 "license": "BSD-3-Clause"
1202 },
1203 "node_modules/array-flatten": {
1204 "version": "1.1.1",
1205 "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
1206 "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
1207 "license": "MIT"
1208 },
1209 "node_modules/async": {
1210 "version": "2.6.4",
1211 "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz",
1212 "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==",
1213 "license": "MIT",
1214 "dependencies": {
1215 "lodash": "^4.17.14"
1216 }
1217 },
1218 "node_modules/babel-jest": {
1219 "version": "29.7.0",
1220 "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz",
1221 "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==",
1222 "license": "MIT",
1223 "dependencies": {
1224 "@jest/transform": "^29.7.0",
1225 "@types/babel__core": "^7.1.14",
1226 "babel-plugin-istanbul": "^6.1.1",
1227 "babel-preset-jest": "^29.6.3",
1228 "chalk": "^4.0.0",
1229 "graceful-fs": "^4.2.9",
1230 "slash": "^3.0.0"
1231 },
1232 "engines": {
1233 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1234 },
1235 "peerDependencies": {
1236 "@babel/core": "^7.8.0"
1237 }
1238 },
1239 "node_modules/babel-plugin-istanbul": {
1240 "version": "6.1.1",
1241 "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz",
1242 "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==",
1243 "license": "BSD-3-Clause",
1244 "dependencies": {
1245 "@babel/helper-plugin-utils": "^7.0.0",
1246 "@istanbuljs/load-nyc-config": "^1.0.0",
1247 "@istanbuljs/schema": "^0.1.2",
1248 "istanbul-lib-instrument": "^5.0.4",
1249 "test-exclude": "^6.0.0"
1250 },
1251 "engines": {
1252 "node": ">=8"
1253 }
1254 },
1255 "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": {
1256 "version": "5.2.1",
1257 "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz",
1258 "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==",
1259 "license": "BSD-3-Clause",
1260 "dependencies": {
1261 "@babel/core": "^7.12.3",
1262 "@babel/parser": "^7.14.7",
1263 "@istanbuljs/schema": "^0.1.2",
1264 "istanbul-lib-coverage": "^3.2.0",
1265 "semver": "^6.3.0"
1266 },
1267 "engines": {
1268 "node": ">=8"
1269 }
1270 },
1271 "node_modules/babel-plugin-istanbul/node_modules/semver": {
1272 "version": "6.3.1",
1273 "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
1274 "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
1275 "license": "ISC",
1276 "bin": {
1277 "semver": "bin/semver.js"
1278 }
1279 },
1280 "node_modules/babel-plugin-jest-hoist": {
1281 "version": "29.6.3",
1282 "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz",
1283 "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==",
1284 "license": "MIT",
1285 "dependencies": {
1286 "@babel/template": "^7.3.3",
1287 "@babel/types": "^7.3.3",
1288 "@types/babel__core": "^7.1.14",
1289 "@types/babel__traverse": "^7.0.6"
1290 },
1291 "engines": {
1292 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1293 }
1294 },
1295 "node_modules/babel-preset-current-node-syntax": {
1296 "version": "1.2.0",
1297 "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz",
1298 "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==",
1299 "license": "MIT",
1300 "dependencies": {
1301 "@babel/plugin-syntax-async-generators": "^7.8.4",
1302 "@babel/plugin-syntax-bigint": "^7.8.3",
1303 "@babel/plugin-syntax-class-properties": "^7.12.13",
1304 "@babel/plugin-syntax-class-static-block": "^7.14.5",
1305 "@babel/plugin-syntax-import-attributes": "^7.24.7",
1306 "@babel/plugin-syntax-import-meta": "^7.10.4",
1307 "@babel/plugin-syntax-json-strings": "^7.8.3",
1308 "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4",
1309 "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
1310 "@babel/plugin-syntax-numeric-separator": "^7.10.4",
1311 "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
1312 "@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
1313 "@babel/plugin-syntax-optional-chaining": "^7.8.3",
1314 "@babel/plugin-syntax-private-property-in-object": "^7.14.5",
1315 "@babel/plugin-syntax-top-level-await": "^7.14.5"
1316 },
1317 "peerDependencies": {
1318 "@babel/core": "^7.0.0 || ^8.0.0-0"
1319 }
1320 },
1321 "node_modules/babel-preset-jest": {
1322 "version": "29.6.3",
1323 "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz",
1324 "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==",
1325 "license": "MIT",
1326 "dependencies": {
1327 "babel-plugin-jest-hoist": "^29.6.3",
1328 "babel-preset-current-node-syntax": "^1.0.0"
1329 },
1330 "engines": {
1331 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1332 },
1333 "peerDependencies": {
1334 "@babel/core": "^7.0.0"
1335 }
1336 },
1337 "node_modules/balanced-match": {
1338 "version": "1.0.2",
1339 "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
1340 "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
1341 "license": "MIT"
1342 },
1343 "node_modules/baseline-browser-mapping": {
1344 "version": "2.10.27",
1345 "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.27.tgz",
1346 "integrity": "sha512-zEs/ufmZoUd7WftKpKyXaT6RFxpQ5Qm9xytKRHvJfxFV9DFJkZph9RvJ1LcOUi0Z1ZVijMte65JbILeV+8QQEA==",
1347 "license": "Apache-2.0",
1348 "bin": {
1349 "baseline-browser-mapping": "dist/cli.cjs"
1350 },
1351 "engines": {
1352 "node": ">=6.0.0"
1353 }
1354 },
1355 "node_modules/bcrypt": {
1356 "version": "5.1.1",
1357 "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.1.tgz",
1358 "integrity": "sha512-AGBHOG5hPYZ5Xl9KXzU5iKq9516yEmvCKDg3ecP5kX2aB6UqTeXZxk2ELnDgDm6BQSMlLt9rDB4LoSMx0rYwww==",
1359 "hasInstallScript": true,
1360 "license": "MIT",
1361 "dependencies": {
1362 "@mapbox/node-pre-gyp": "^1.0.11",
1363 "node-addon-api": "^5.0.0"
1364 },
1365 "engines": {
1366 "node": ">= 10.0.0"
1367 }
1368 },
1369 "node_modules/body-parser": {
1370 "version": "1.20.5",
1371 "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.5.tgz",
1372 "integrity": "sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==",
1373 "license": "MIT",
1374 "dependencies": {
1375 "bytes": "~3.1.2",
1376 "content-type": "~1.0.5",
1377 "debug": "2.6.9",
1378 "depd": "2.0.0",
1379 "destroy": "~1.2.0",
1380 "http-errors": "~2.0.1",
1381 "iconv-lite": "~0.4.24",
1382 "on-finished": "~2.4.1",
1383 "qs": "~6.15.1",
1384 "raw-body": "~2.5.3",
1385 "type-is": "~1.6.18",
1386 "unpipe": "~1.0.0"
1387 },
1388 "engines": {
1389 "node": ">= 0.8",
1390 "npm": "1.2.8000 || >= 1.4.16"
1391 }
1392 },
1393 "node_modules/body-parser/node_modules/qs": {
1394 "version": "6.15.1",
1395 "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.1.tgz",
1396 "integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==",
1397 "license": "BSD-3-Clause",
1398 "dependencies": {
1399 "side-channel": "^1.1.0"
1400 },
1401 "engines": {
1402 "node": ">=0.6"
1403 },
1404 "funding": {
1405 "url": "https://github.com/sponsors/ljharb"
1406 }
1407 },
1408 "node_modules/brace-expansion": {
1409 "version": "1.1.14",
1410 "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.14.tgz",
1411 "integrity": "sha512-MWPGfDxnyzKU7rNOW9SP/c50vi3xrmrua/+6hfPbCS2ABNWfx24vPidzvC7krjU/RTo235sV776ymlsMtGKj8g==",
1412 "license": "MIT",
1413 "dependencies": {
1414 "balanced-match": "^1.0.0",
1415 "concat-map": "0.0.1"
1416 }
1417 },
1418 "node_modules/braces": {
1419 "version": "3.0.3",
1420 "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
1421 "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
1422 "license": "MIT",
1423 "dependencies": {
1424 "fill-range": "^7.1.1"
1425 },
1426 "engines": {
1427 "node": ">=8"
1428 }
1429 },
1430 "node_modules/browserslist": {
1431 "version": "4.28.2",
1432 "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz",
1433 "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==",
1434 "funding": [
1435 {
1436 "type": "opencollective",
1437 "url": "https://opencollective.com/browserslist"
1438 },
1439 {
1440 "type": "tidelift",
1441 "url": "https://tidelift.com/funding/github/npm/browserslist"
1442 },
1443 {
1444 "type": "github",
1445 "url": "https://github.com/sponsors/ai"
1446 }
1447 ],
1448 "license": "MIT",
1449 "dependencies": {
1450 "baseline-browser-mapping": "^2.10.12",
1451 "caniuse-lite": "^1.0.30001782",
1452 "electron-to-chromium": "^1.5.328",
1453 "node-releases": "^2.0.36",
1454 "update-browserslist-db": "^1.2.3"
1455 },
1456 "bin": {
1457 "browserslist": "cli.js"
1458 },
1459 "engines": {
1460 "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
1461 }
1462 },
1463 "node_modules/bser": {
1464 "version": "2.1.1",
1465 "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz",
1466 "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==",
1467 "license": "Apache-2.0",
1468 "dependencies": {
1469 "node-int64": "^0.4.0"
1470 }
1471 },
1472 "node_modules/buffer-crc32": {
1473 "version": "0.2.13",
1474 "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
1475 "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",
1476 "license": "MIT",
1477 "engines": {
1478 "node": "*"
1479 }
1480 },
1481 "node_modules/buffer-equal-constant-time": {
1482 "version": "1.0.1",
1483 "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
1484 "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",
1485 "license": "BSD-3-Clause"
1486 },
1487 "node_modules/buffer-from": {
1488 "version": "1.1.2",
1489 "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
1490 "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
1491 "license": "MIT"
1492 },
1493 "node_modules/busboy": {
1494 "version": "1.6.0",
1495 "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz",
1496 "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==",
1497 "dependencies": {
1498 "streamsearch": "^1.1.0"
1499 },
1500 "engines": {
1501 "node": ">=10.16.0"
1502 }
1503 },
1504 "node_modules/bytes": {
1505 "version": "3.1.2",
1506 "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
1507 "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
1508 "license": "MIT",
1509 "engines": {
1510 "node": ">= 0.8"
1511 }
1512 },
1513 "node_modules/call-bind-apply-helpers": {
1514 "version": "1.0.2",
1515 "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
1516 "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
1517 "license": "MIT",
1518 "dependencies": {
1519 "es-errors": "^1.3.0",
1520 "function-bind": "^1.1.2"
1521 },
1522 "engines": {
1523 "node": ">= 0.4"
1524 }
1525 },
1526 "node_modules/call-bound": {
1527 "version": "1.0.4",
1528 "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
1529 "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
1530 "license": "MIT",
1531 "dependencies": {
1532 "call-bind-apply-helpers": "^1.0.2",
1533 "get-intrinsic": "^1.3.0"
1534 },
1535 "engines": {
1536 "node": ">= 0.4"
1537 },
1538 "funding": {
1539 "url": "https://github.com/sponsors/ljharb"
1540 }
1541 },
1542 "node_modules/callsites": {
1543 "version": "3.1.0",
1544 "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
1545 "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
1546 "license": "MIT",
1547 "engines": {
1548 "node": ">=6"
1549 }
1550 },
1551 "node_modules/camelcase": {
1552 "version": "5.3.1",
1553 "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
1554 "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
1555 "license": "MIT",
1556 "engines": {
1557 "node": ">=6"
1558 }
1559 },
1560 "node_modules/caniuse-lite": {
1561 "version": "1.0.30001791",
1562 "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001791.tgz",
1563 "integrity": "sha512-yk0l/YSrOnFZk3UROpDLQD9+kC1l4meK/wed583AXrzoarMGJcbRi2Q4RaUYbKxYAsZ8sWmaSa/DsLmdBeI1vQ==",
1564 "funding": [
1565 {
1566 "type": "opencollective",
1567 "url": "https://opencollective.com/browserslist"
1568 },
1569 {
1570 "type": "tidelift",
1571 "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
1572 },
1573 {
1574 "type": "github",
1575 "url": "https://github.com/sponsors/ai"
1576 }
1577 ],
1578 "license": "CC-BY-4.0"
1579 },
1580 "node_modules/chalk": {
1581 "version": "4.1.2",
1582 "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
1583 "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
1584 "license": "MIT",
1585 "dependencies": {
1586 "ansi-styles": "^4.1.0",
1587 "supports-color": "^7.1.0"
1588 },
1589 "engines": {
1590 "node": ">=10"
1591 },
1592 "funding": {
1593 "url": "https://github.com/chalk/chalk?sponsor=1"
1594 }
1595 },
1596 "node_modules/char-regex": {
1597 "version": "1.0.2",
1598 "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz",
1599 "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==",
1600 "license": "MIT",
1601 "engines": {
1602 "node": ">=10"
1603 }
1604 },
1605 "node_modules/chownr": {
1606 "version": "2.0.0",
1607 "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
1608 "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",
1609 "license": "ISC",
1610 "engines": {
1611 "node": ">=10"
1612 }
1613 },
1614 "node_modules/ci-info": {
1615 "version": "3.9.0",
1616 "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",
1617 "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==",
1618 "funding": [
1619 {
1620 "type": "github",
1621 "url": "https://github.com/sponsors/sibiraj-s"
1622 }
1623 ],
1624 "license": "MIT",
1625 "engines": {
1626 "node": ">=8"
1627 }
1628 },
1629 "node_modules/cjs-module-lexer": {
1630 "version": "1.4.3",
1631 "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz",
1632 "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==",
1633 "license": "MIT"
1634 },
1635 "node_modules/cliui": {
1636 "version": "8.0.1",
1637 "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
1638 "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
1639 "license": "ISC",
1640 "dependencies": {
1641 "string-width": "^4.2.0",
1642 "strip-ansi": "^6.0.1",
1643 "wrap-ansi": "^7.0.0"
1644 },
1645 "engines": {
1646 "node": ">=12"
1647 }
1648 },
1649 "node_modules/co": {
1650 "version": "4.6.0",
1651 "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
1652 "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==",
1653 "license": "MIT",
1654 "engines": {
1655 "iojs": ">= 1.0.0",
1656 "node": ">= 0.12.0"
1657 }
1658 },
1659 "node_modules/collect-v8-coverage": {
1660 "version": "1.0.3",
1661 "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz",
1662 "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==",
1663 "license": "MIT"
1664 },
1665 "node_modules/color-convert": {
1666 "version": "2.0.1",
1667 "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
1668 "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
1669 "license": "MIT",
1670 "dependencies": {
1671 "color-name": "~1.1.4"
1672 },
1673 "engines": {
1674 "node": ">=7.0.0"
1675 }
1676 },
1677 "node_modules/color-name": {
1678 "version": "1.1.4",
1679 "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
1680 "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
1681 "license": "MIT"
1682 },
1683 "node_modules/color-support": {
1684 "version": "1.1.3",
1685 "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",
1686 "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",
1687 "license": "ISC",
1688 "bin": {
1689 "color-support": "bin.js"
1690 }
1691 },
1692 "node_modules/concat-map": {
1693 "version": "0.0.1",
1694 "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
1695 "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
1696 "license": "MIT"
1697 },
1698 "node_modules/concat-stream": {
1699 "version": "1.6.2",
1700 "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",
1701 "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
1702 "engines": [
1703 "node >= 0.8"
1704 ],
1705 "license": "MIT",
1706 "dependencies": {
1707 "buffer-from": "^1.0.0",
1708 "inherits": "^2.0.3",
1709 "readable-stream": "^2.2.2",
1710 "typedarray": "^0.0.6"
1711 }
1712 },
1713 "node_modules/console-control-strings": {
1714 "version": "1.1.0",
1715 "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
1716 "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==",
1717 "license": "ISC"
1718 },
1719 "node_modules/content-disposition": {
1720 "version": "0.5.4",
1721 "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
1722 "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
1723 "license": "MIT",
1724 "dependencies": {
1725 "safe-buffer": "5.2.1"
1726 },
1727 "engines": {
1728 "node": ">= 0.6"
1729 }
1730 },
1731 "node_modules/content-type": {
1732 "version": "1.0.5",
1733 "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
1734 "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
1735 "license": "MIT",
1736 "engines": {
1737 "node": ">= 0.6"
1738 }
1739 },
1740 "node_modules/convert-source-map": {
1741 "version": "2.0.0",
1742 "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
1743 "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
1744 "license": "MIT"
1745 },
1746 "node_modules/cookie": {
1747 "version": "0.7.2",
1748 "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
1749 "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
1750 "license": "MIT",
1751 "engines": {
1752 "node": ">= 0.6"
1753 }
1754 },
1755 "node_modules/cookie-signature": {
1756 "version": "1.0.7",
1757 "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz",
1758 "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",
1759 "license": "MIT"
1760 },
1761 "node_modules/core-util-is": {
1762 "version": "1.0.3",
1763 "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
1764 "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
1765 "license": "MIT"
1766 },
1767 "node_modules/create-jest": {
1768 "version": "29.7.0",
1769 "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz",
1770 "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==",
1771 "license": "MIT",
1772 "dependencies": {
1773 "@jest/types": "^29.6.3",
1774 "chalk": "^4.0.0",
1775 "exit": "^0.1.2",
1776 "graceful-fs": "^4.2.9",
1777 "jest-config": "^29.7.0",
1778 "jest-util": "^29.7.0",
1779 "prompts": "^2.0.1"
1780 },
1781 "bin": {
1782 "create-jest": "bin/create-jest.js"
1783 },
1784 "engines": {
1785 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1786 }
1787 },
1788 "node_modules/cross-spawn": {
1789 "version": "7.0.6",
1790 "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
1791 "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
1792 "license": "MIT",
1793 "dependencies": {
1794 "path-key": "^3.1.0",
1795 "shebang-command": "^2.0.0",
1796 "which": "^2.0.1"
1797 },
1798 "engines": {
1799 "node": ">= 8"
1800 }
1801 },
1802 "node_modules/debug": {
1803 "version": "2.6.9",
1804 "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
1805 "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
1806 "license": "MIT",
1807 "dependencies": {
1808 "ms": "2.0.0"
1809 }
1810 },
1811 "node_modules/dedent": {
1812 "version": "1.7.2",
1813 "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.2.tgz",
1814 "integrity": "sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==",
1815 "license": "MIT",
1816 "peerDependencies": {
1817 "babel-plugin-macros": "^3.1.0"
1818 },
1819 "peerDependenciesMeta": {
1820 "babel-plugin-macros": {
1821 "optional": true
1822 }
1823 }
1824 },
1825 "node_modules/deepmerge": {
1826 "version": "4.3.1",
1827 "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
1828 "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",
1829 "license": "MIT",
1830 "engines": {
1831 "node": ">=0.10.0"
1832 }
1833 },
1834 "node_modules/delegates": {
1835 "version": "1.0.0",
1836 "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
1837 "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==",
1838 "license": "MIT"
1839 },
1840 "node_modules/depd": {
1841 "version": "2.0.0",
1842 "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
1843 "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
1844 "license": "MIT",
1845 "engines": {
1846 "node": ">= 0.8"
1847 }
1848 },
1849 "node_modules/destroy": {
1850 "version": "1.2.0",
1851 "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
1852 "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
1853 "license": "MIT",
1854 "engines": {
1855 "node": ">= 0.8",
1856 "npm": "1.2.8000 || >= 1.4.16"
1857 }
1858 },
1859 "node_modules/detect-libc": {
1860 "version": "2.1.2",
1861 "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
1862 "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
1863 "license": "Apache-2.0",
1864 "engines": {
1865 "node": ">=8"
1866 }
1867 },
1868 "node_modules/detect-newline": {
1869 "version": "3.1.0",
1870 "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz",
1871 "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==",
1872 "license": "MIT",
1873 "engines": {
1874 "node": ">=8"
1875 }
1876 },
1877 "node_modules/diff-sequences": {
1878 "version": "29.6.3",
1879 "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz",
1880 "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==",
1881 "license": "MIT",
1882 "engines": {
1883 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1884 }
1885 },
1886 "node_modules/dunder-proto": {
1887 "version": "1.0.1",
1888 "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
1889 "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
1890 "license": "MIT",
1891 "dependencies": {
1892 "call-bind-apply-helpers": "^1.0.1",
1893 "es-errors": "^1.3.0",
1894 "gopd": "^1.2.0"
1895 },
1896 "engines": {
1897 "node": ">= 0.4"
1898 }
1899 },
1900 "node_modules/ecdsa-sig-formatter": {
1901 "version": "1.0.11",
1902 "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
1903 "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
1904 "license": "Apache-2.0",
1905 "dependencies": {
1906 "safe-buffer": "^5.0.1"
1907 }
1908 },
1909 "node_modules/ee-first": {
1910 "version": "1.1.1",
1911 "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
1912 "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
1913 "license": "MIT"
1914 },
1915 "node_modules/electron-to-chromium": {
1916 "version": "1.5.349",
1917 "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.349.tgz",
1918 "integrity": "sha512-QsWVGyRuY07Aqb234QytTfwd5d9AJlfNIQ5wIOl1L+PZDzI9d9+Fn0FRale/QYlFxt/bUnB0/nLd1jFPGxGK1A==",
1919 "license": "ISC"
1920 },
1921 "node_modules/emittery": {
1922 "version": "0.13.1",
1923 "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz",
1924 "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==",
1925 "license": "MIT",
1926 "engines": {
1927 "node": ">=12"
1928 },
1929 "funding": {
1930 "url": "https://github.com/sindresorhus/emittery?sponsor=1"
1931 }
1932 },
1933 "node_modules/emoji-regex": {
1934 "version": "8.0.0",
1935 "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
1936 "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
1937 "license": "MIT"
1938 },
1939 "node_modules/encodeurl": {
1940 "version": "2.0.0",
1941 "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
1942 "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
1943 "license": "MIT",
1944 "engines": {
1945 "node": ">= 0.8"
1946 }
1947 },
1948 "node_modules/error-ex": {
1949 "version": "1.3.4",
1950 "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz",
1951 "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==",
1952 "license": "MIT",
1953 "dependencies": {
1954 "is-arrayish": "^0.2.1"
1955 }
1956 },
1957 "node_modules/es-define-property": {
1958 "version": "1.0.1",
1959 "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
1960 "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
1961 "license": "MIT",
1962 "engines": {
1963 "node": ">= 0.4"
1964 }
1965 },
1966 "node_modules/es-errors": {
1967 "version": "1.3.0",
1968 "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
1969 "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
1970 "license": "MIT",
1971 "engines": {
1972 "node": ">= 0.4"
1973 }
1974 },
1975 "node_modules/es-object-atoms": {
1976 "version": "1.1.1",
1977 "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
1978 "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
1979 "license": "MIT",
1980 "dependencies": {
1981 "es-errors": "^1.3.0"
1982 },
1983 "engines": {
1984 "node": ">= 0.4"
1985 }
1986 },
1987 "node_modules/escalade": {
1988 "version": "3.2.0",
1989 "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
1990 "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
1991 "license": "MIT",
1992 "engines": {
1993 "node": ">=6"
1994 }
1995 },
1996 "node_modules/escape-html": {
1997 "version": "1.0.3",
1998 "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
1999 "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
2000 "license": "MIT"
2001 },
2002 "node_modules/escape-string-regexp": {
2003 "version": "2.0.0",
2004 "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",
2005 "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==",
2006 "license": "MIT",
2007 "engines": {
2008 "node": ">=8"
2009 }
2010 },
2011 "node_modules/esprima": {
2012 "version": "4.0.1",
2013 "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
2014 "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
2015 "license": "BSD-2-Clause",
2016 "bin": {
2017 "esparse": "bin/esparse.js",
2018 "esvalidate": "bin/esvalidate.js"
2019 },
2020 "engines": {
2021 "node": ">=4"
2022 }
2023 },
2024 "node_modules/etag": {
2025 "version": "1.8.1",
2026 "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
2027 "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
2028 "license": "MIT",
2029 "engines": {
2030 "node": ">= 0.6"
2031 }
2032 },
2033 "node_modules/execa": {
2034 "version": "5.1.1",
2035 "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",
2036 "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
2037 "license": "MIT",
2038 "dependencies": {
2039 "cross-spawn": "^7.0.3",
2040 "get-stream": "^6.0.0",
2041 "human-signals": "^2.1.0",
2042 "is-stream": "^2.0.0",
2043 "merge-stream": "^2.0.0",
2044 "npm-run-path": "^4.0.1",
2045 "onetime": "^5.1.2",
2046 "signal-exit": "^3.0.3",
2047 "strip-final-newline": "^2.0.0"
2048 },
2049 "engines": {
2050 "node": ">=10"
2051 },
2052 "funding": {
2053 "url": "https://github.com/sindresorhus/execa?sponsor=1"
2054 }
2055 },
2056 "node_modules/exit": {
2057 "version": "0.1.2",
2058 "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
2059 "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==",
2060 "engines": {
2061 "node": ">= 0.8.0"
2062 }
2063 },
2064 "node_modules/expect": {
2065 "version": "29.7.0",
2066 "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz",
2067 "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==",
2068 "license": "MIT",
2069 "dependencies": {
2070 "@jest/expect-utils": "^29.7.0",
2071 "jest-get-type": "^29.6.3",
2072 "jest-matcher-utils": "^29.7.0",
2073 "jest-message-util": "^29.7.0",
2074 "jest-util": "^29.7.0"
2075 },
2076 "engines": {
2077 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2078 }
2079 },
2080 "node_modules/express": {
2081 "version": "4.22.1",
2082 "resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz",
2083 "integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==",
2084 "license": "MIT",
2085 "dependencies": {
2086 "accepts": "~1.3.8",
2087 "array-flatten": "1.1.1",
2088 "body-parser": "~1.20.3",
2089 "content-disposition": "~0.5.4",
2090 "content-type": "~1.0.4",
2091 "cookie": "~0.7.1",
2092 "cookie-signature": "~1.0.6",
2093 "debug": "2.6.9",
2094 "depd": "2.0.0",
2095 "encodeurl": "~2.0.0",
2096 "escape-html": "~1.0.3",
2097 "etag": "~1.8.1",
2098 "finalhandler": "~1.3.1",
2099 "fresh": "~0.5.2",
2100 "http-errors": "~2.0.0",
2101 "merge-descriptors": "1.0.3",
2102 "methods": "~1.1.2",
2103 "on-finished": "~2.4.1",
2104 "parseurl": "~1.3.3",
2105 "path-to-regexp": "~0.1.12",
2106 "proxy-addr": "~2.0.7",
2107 "qs": "~6.14.0",
2108 "range-parser": "~1.2.1",
2109 "safe-buffer": "5.2.1",
2110 "send": "~0.19.0",
2111 "serve-static": "~1.16.2",
2112 "setprototypeof": "1.2.0",
2113 "statuses": "~2.0.1",
2114 "type-is": "~1.6.18",
2115 "utils-merge": "1.0.1",
2116 "vary": "~1.1.2"
2117 },
2118 "engines": {
2119 "node": ">= 0.10.0"
2120 },
2121 "funding": {
2122 "type": "opencollective",
2123 "url": "https://opencollective.com/express"
2124 }
2125 },
2126 "node_modules/fast-json-stable-stringify": {
2127 "version": "2.1.0",
2128 "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
2129 "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
2130 "license": "MIT"
2131 },
2132 "node_modules/fb-watchman": {
2133 "version": "2.0.2",
2134 "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz",
2135 "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==",
2136 "license": "Apache-2.0",
2137 "dependencies": {
2138 "bser": "2.1.1"
2139 }
2140 },
2141 "node_modules/fd-slicer": {
2142 "version": "1.1.0",
2143 "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
2144 "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",
2145 "license": "MIT",
2146 "dependencies": {
2147 "pend": "~1.2.0"
2148 }
2149 },
2150 "node_modules/fill-range": {
2151 "version": "7.1.1",
2152 "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
2153 "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
2154 "license": "MIT",
2155 "dependencies": {
2156 "to-regex-range": "^5.0.1"
2157 },
2158 "engines": {
2159 "node": ">=8"
2160 }
2161 },
2162 "node_modules/finalhandler": {
2163 "version": "1.3.2",
2164 "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz",
2165 "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==",
2166 "license": "MIT",
2167 "dependencies": {
2168 "debug": "2.6.9",
2169 "encodeurl": "~2.0.0",
2170 "escape-html": "~1.0.3",
2171 "on-finished": "~2.4.1",
2172 "parseurl": "~1.3.3",
2173 "statuses": "~2.0.2",
2174 "unpipe": "~1.0.0"
2175 },
2176 "engines": {
2177 "node": ">= 0.8"
2178 }
2179 },
2180 "node_modules/find-up": {
2181 "version": "4.1.0",
2182 "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
2183 "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
2184 "license": "MIT",
2185 "dependencies": {
2186 "locate-path": "^5.0.0",
2187 "path-exists": "^4.0.0"
2188 },
2189 "engines": {
2190 "node": ">=8"
2191 }
2192 },
2193 "node_modules/forwarded": {
2194 "version": "0.2.0",
2195 "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
2196 "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
2197 "license": "MIT",
2198 "engines": {
2199 "node": ">= 0.6"
2200 }
2201 },
2202 "node_modules/fresh": {
2203 "version": "0.5.2",
2204 "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
2205 "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
2206 "license": "MIT",
2207 "engines": {
2208 "node": ">= 0.6"
2209 }
2210 },
2211 "node_modules/fs-minipass": {
2212 "version": "2.1.0",
2213 "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
2214 "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
2215 "license": "ISC",
2216 "dependencies": {
2217 "minipass": "^3.0.0"
2218 },
2219 "engines": {
2220 "node": ">= 8"
2221 }
2222 },
2223 "node_modules/fs-minipass/node_modules/minipass": {
2224 "version": "3.3.6",
2225 "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
2226 "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
2227 "license": "ISC",
2228 "dependencies": {
2229 "yallist": "^4.0.0"
2230 },
2231 "engines": {
2232 "node": ">=8"
2233 }
2234 },
2235 "node_modules/fs-minipass/node_modules/yallist": {
2236 "version": "4.0.0",
2237 "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
2238 "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
2239 "license": "ISC"
2240 },
2241 "node_modules/fs.realpath": {
2242 "version": "1.0.0",
2243 "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
2244 "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
2245 "license": "ISC"
2246 },
2247 "node_modules/fsevents": {
2248 "version": "2.3.3",
2249 "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
2250 "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
2251 "hasInstallScript": true,
2252 "license": "MIT",
2253 "optional": true,
2254 "os": [
2255 "darwin"
2256 ],
2257 "engines": {
2258 "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
2259 }
2260 },
2261 "node_modules/function-bind": {
2262 "version": "1.1.2",
2263 "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
2264 "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
2265 "license": "MIT",
2266 "funding": {
2267 "url": "https://github.com/sponsors/ljharb"
2268 }
2269 },
2270 "node_modules/gauge": {
2271 "version": "3.0.2",
2272 "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz",
2273 "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==",
2274 "deprecated": "This package is no longer supported.",
2275 "license": "ISC",
2276 "dependencies": {
2277 "aproba": "^1.0.3 || ^2.0.0",
2278 "color-support": "^1.1.2",
2279 "console-control-strings": "^1.0.0",
2280 "has-unicode": "^2.0.1",
2281 "object-assign": "^4.1.1",
2282 "signal-exit": "^3.0.0",
2283 "string-width": "^4.2.3",
2284 "strip-ansi": "^6.0.1",
2285 "wide-align": "^1.1.2"
2286 },
2287 "engines": {
2288 "node": ">=10"
2289 }
2290 },
2291 "node_modules/gensync": {
2292 "version": "1.0.0-beta.2",
2293 "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
2294 "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
2295 "license": "MIT",
2296 "engines": {
2297 "node": ">=6.9.0"
2298 }
2299 },
2300 "node_modules/geoip-lite": {
2301 "version": "1.4.10",
2302 "resolved": "https://registry.npmjs.org/geoip-lite/-/geoip-lite-1.4.10.tgz",
2303 "integrity": "sha512-4N69uhpS3KFd97m00wiFEefwa+L+HT5xZbzPhwu+sDawStg6UN/dPwWtUfkQuZkGIY1Cj7wDVp80IsqNtGMi2w==",
2304 "license": "Apache-2.0",
2305 "dependencies": {
2306 "async": "2.1 - 2.6.4",
2307 "chalk": "4.1 - 4.1.2",
2308 "iconv-lite": "0.4.13 - 0.6.3",
2309 "ip-address": "5.8.9 - 5.9.4",
2310 "lazy": "1.0.11",
2311 "rimraf": "2.5.2 - 2.7.1",
2312 "yauzl": "2.9.2 - 2.10.0"
2313 },
2314 "engines": {
2315 "node": ">=10.3.0"
2316 }
2317 },
2318 "node_modules/geoip-lite/node_modules/rimraf": {
2319 "version": "2.7.1",
2320 "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
2321 "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
2322 "deprecated": "Rimraf versions prior to v4 are no longer supported",
2323 "license": "ISC",
2324 "dependencies": {
2325 "glob": "^7.1.3"
2326 },
2327 "bin": {
2328 "rimraf": "bin.js"
2329 }
2330 },
2331 "node_modules/get-caller-file": {
2332 "version": "2.0.5",
2333 "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
2334 "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
2335 "license": "ISC",
2336 "engines": {
2337 "node": "6.* || 8.* || >= 10.*"
2338 }
2339 },
2340 "node_modules/get-intrinsic": {
2341 "version": "1.3.0",
2342 "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
2343 "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
2344 "license": "MIT",
2345 "dependencies": {
2346 "call-bind-apply-helpers": "^1.0.2",
2347 "es-define-property": "^1.0.1",
2348 "es-errors": "^1.3.0",
2349 "es-object-atoms": "^1.1.1",
2350 "function-bind": "^1.1.2",
2351 "get-proto": "^1.0.1",
2352 "gopd": "^1.2.0",
2353 "has-symbols": "^1.1.0",
2354 "hasown": "^2.0.2",
2355 "math-intrinsics": "^1.1.0"
2356 },
2357 "engines": {
2358 "node": ">= 0.4"
2359 },
2360 "funding": {
2361 "url": "https://github.com/sponsors/ljharb"
2362 }
2363 },
2364 "node_modules/get-package-type": {
2365 "version": "0.1.0",
2366 "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz",
2367 "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==",
2368 "license": "MIT",
2369 "engines": {
2370 "node": ">=8.0.0"
2371 }
2372 },
2373 "node_modules/get-proto": {
2374 "version": "1.0.1",
2375 "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
2376 "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
2377 "license": "MIT",
2378 "dependencies": {
2379 "dunder-proto": "^1.0.1",
2380 "es-object-atoms": "^1.0.0"
2381 },
2382 "engines": {
2383 "node": ">= 0.4"
2384 }
2385 },
2386 "node_modules/get-stream": {
2387 "version": "6.0.1",
2388 "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
2389 "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",
2390 "license": "MIT",
2391 "engines": {
2392 "node": ">=10"
2393 },
2394 "funding": {
2395 "url": "https://github.com/sponsors/sindresorhus"
2396 }
2397 },
2398 "node_modules/glob": {
2399 "version": "7.2.3",
2400 "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
2401 "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
2402 "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me",
2403 "license": "ISC",
2404 "dependencies": {
2405 "fs.realpath": "^1.0.0",
2406 "inflight": "^1.0.4",
2407 "inherits": "2",
2408 "minimatch": "^3.1.1",
2409 "once": "^1.3.0",
2410 "path-is-absolute": "^1.0.0"
2411 },
2412 "engines": {
2413 "node": "*"
2414 },
2415 "funding": {
2416 "url": "https://github.com/sponsors/isaacs"
2417 }
2418 },
2419 "node_modules/gopd": {
2420 "version": "1.2.0",
2421 "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
2422 "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
2423 "license": "MIT",
2424 "engines": {
2425 "node": ">= 0.4"
2426 },
2427 "funding": {
2428 "url": "https://github.com/sponsors/ljharb"
2429 }
2430 },
2431 "node_modules/graceful-fs": {
2432 "version": "4.2.11",
2433 "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
2434 "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
2435 "license": "ISC"
2436 },
2437 "node_modules/has-flag": {
2438 "version": "4.0.0",
2439 "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
2440 "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
2441 "license": "MIT",
2442 "engines": {
2443 "node": ">=8"
2444 }
2445 },
2446 "node_modules/has-symbols": {
2447 "version": "1.1.0",
2448 "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
2449 "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
2450 "license": "MIT",
2451 "engines": {
2452 "node": ">= 0.4"
2453 },
2454 "funding": {
2455 "url": "https://github.com/sponsors/ljharb"
2456 }
2457 },
2458 "node_modules/has-unicode": {
2459 "version": "2.0.1",
2460 "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
2461 "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==",
2462 "license": "ISC"
2463 },
2464 "node_modules/hasown": {
2465 "version": "2.0.3",
2466 "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.3.tgz",
2467 "integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==",
2468 "license": "MIT",
2469 "dependencies": {
2470 "function-bind": "^1.1.2"
2471 },
2472 "engines": {
2473 "node": ">= 0.4"
2474 }
2475 },
2476 "node_modules/html-escaper": {
2477 "version": "2.0.2",
2478 "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz",
2479 "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==",
2480 "license": "MIT"
2481 },
2482 "node_modules/http-errors": {
2483 "version": "2.0.1",
2484 "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
2485 "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
2486 "license": "MIT",
2487 "dependencies": {
2488 "depd": "~2.0.0",
2489 "inherits": "~2.0.4",
2490 "setprototypeof": "~1.2.0",
2491 "statuses": "~2.0.2",
2492 "toidentifier": "~1.0.1"
2493 },
2494 "engines": {
2495 "node": ">= 0.8"
2496 },
2497 "funding": {
2498 "type": "opencollective",
2499 "url": "https://opencollective.com/express"
2500 }
2501 },
2502 "node_modules/https-proxy-agent": {
2503 "version": "5.0.1",
2504 "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
2505 "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
2506 "license": "MIT",
2507 "dependencies": {
2508 "agent-base": "6",
2509 "debug": "4"
2510 },
2511 "engines": {
2512 "node": ">= 6"
2513 }
2514 },
2515 "node_modules/https-proxy-agent/node_modules/debug": {
2516 "version": "4.4.3",
2517 "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
2518 "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
2519 "license": "MIT",
2520 "dependencies": {
2521 "ms": "^2.1.3"
2522 },
2523 "engines": {
2524 "node": ">=6.0"
2525 },
2526 "peerDependenciesMeta": {
2527 "supports-color": {
2528 "optional": true
2529 }
2530 }
2531 },
2532 "node_modules/https-proxy-agent/node_modules/ms": {
2533 "version": "2.1.3",
2534 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
2535 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
2536 "license": "MIT"
2537 },
2538 "node_modules/human-signals": {
2539 "version": "2.1.0",
2540 "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",
2541 "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
2542 "license": "Apache-2.0",
2543 "engines": {
2544 "node": ">=10.17.0"
2545 }
2546 },
2547 "node_modules/iconv-lite": {
2548 "version": "0.4.24",
2549 "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
2550 "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
2551 "license": "MIT",
2552 "dependencies": {
2553 "safer-buffer": ">= 2.1.2 < 3"
2554 },
2555 "engines": {
2556 "node": ">=0.10.0"
2557 }
2558 },
2559 "node_modules/import-local": {
2560 "version": "3.2.0",
2561 "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz",
2562 "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==",
2563 "license": "MIT",
2564 "dependencies": {
2565 "pkg-dir": "^4.2.0",
2566 "resolve-cwd": "^3.0.0"
2567 },
2568 "bin": {
2569 "import-local-fixture": "fixtures/cli.js"
2570 },
2571 "engines": {
2572 "node": ">=8"
2573 },
2574 "funding": {
2575 "url": "https://github.com/sponsors/sindresorhus"
2576 }
2577 },
2578 "node_modules/imurmurhash": {
2579 "version": "0.1.4",
2580 "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
2581 "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
2582 "license": "MIT",
2583 "engines": {
2584 "node": ">=0.8.19"
2585 }
2586 },
2587 "node_modules/inflight": {
2588 "version": "1.0.6",
2589 "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
2590 "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
2591 "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",
2592 "license": "ISC",
2593 "dependencies": {
2594 "once": "^1.3.0",
2595 "wrappy": "1"
2596 }
2597 },
2598 "node_modules/inherits": {
2599 "version": "2.0.4",
2600 "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
2601 "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
2602 "license": "ISC"
2603 },
2604 "node_modules/ip-address": {
2605 "version": "5.9.4",
2606 "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-5.9.4.tgz",
2607 "integrity": "sha512-dHkI3/YNJq4b/qQaz+c8LuarD3pY24JqZWfjB8aZx1gtpc2MDILu9L9jpZe1sHpzo/yWFweQVn+U//FhazUxmw==",
2608 "license": "MIT",
2609 "dependencies": {
2610 "jsbn": "1.1.0",
2611 "lodash": "^4.17.15",
2612 "sprintf-js": "1.1.2"
2613 },
2614 "engines": {
2615 "node": ">= 0.10"
2616 }
2617 },
2618 "node_modules/ipaddr.js": {
2619 "version": "1.9.1",
2620 "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
2621 "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
2622 "license": "MIT",
2623 "engines": {
2624 "node": ">= 0.10"
2625 }
2626 },
2627 "node_modules/is-arrayish": {
2628 "version": "0.2.1",
2629 "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
2630 "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",
2631 "license": "MIT"
2632 },
2633 "node_modules/is-core-module": {
2634 "version": "2.16.1",
2635 "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",
2636 "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",
2637 "license": "MIT",
2638 "dependencies": {
2639 "hasown": "^2.0.2"
2640 },
2641 "engines": {
2642 "node": ">= 0.4"
2643 },
2644 "funding": {
2645 "url": "https://github.com/sponsors/ljharb"
2646 }
2647 },
2648 "node_modules/is-fullwidth-code-point": {
2649 "version": "3.0.0",
2650 "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
2651 "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
2652 "license": "MIT",
2653 "engines": {
2654 "node": ">=8"
2655 }
2656 },
2657 "node_modules/is-generator-fn": {
2658 "version": "2.1.0",
2659 "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz",
2660 "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==",
2661 "license": "MIT",
2662 "engines": {
2663 "node": ">=6"
2664 }
2665 },
2666 "node_modules/is-number": {
2667 "version": "7.0.0",
2668 "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
2669 "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
2670 "license": "MIT",
2671 "engines": {
2672 "node": ">=0.12.0"
2673 }
2674 },
2675 "node_modules/is-stream": {
2676 "version": "2.0.1",
2677 "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
2678 "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
2679 "license": "MIT",
2680 "engines": {
2681 "node": ">=8"
2682 },
2683 "funding": {
2684 "url": "https://github.com/sponsors/sindresorhus"
2685 }
2686 },
2687 "node_modules/isarray": {
2688 "version": "1.0.0",
2689 "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
2690 "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",
2691 "license": "MIT"
2692 },
2693 "node_modules/isexe": {
2694 "version": "2.0.0",
2695 "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
2696 "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
2697 "license": "ISC"
2698 },
2699 "node_modules/istanbul-lib-coverage": {
2700 "version": "3.2.2",
2701 "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz",
2702 "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==",
2703 "license": "BSD-3-Clause",
2704 "engines": {
2705 "node": ">=8"
2706 }
2707 },
2708 "node_modules/istanbul-lib-instrument": {
2709 "version": "6.0.3",
2710 "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz",
2711 "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==",
2712 "license": "BSD-3-Clause",
2713 "dependencies": {
2714 "@babel/core": "^7.23.9",
2715 "@babel/parser": "^7.23.9",
2716 "@istanbuljs/schema": "^0.1.3",
2717 "istanbul-lib-coverage": "^3.2.0",
2718 "semver": "^7.5.4"
2719 },
2720 "engines": {
2721 "node": ">=10"
2722 }
2723 },
2724 "node_modules/istanbul-lib-report": {
2725 "version": "3.0.1",
2726 "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz",
2727 "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==",
2728 "license": "BSD-3-Clause",
2729 "dependencies": {
2730 "istanbul-lib-coverage": "^3.0.0",
2731 "make-dir": "^4.0.0",
2732 "supports-color": "^7.1.0"
2733 },
2734 "engines": {
2735 "node": ">=10"
2736 }
2737 },
2738 "node_modules/istanbul-lib-report/node_modules/make-dir": {
2739 "version": "4.0.0",
2740 "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz",
2741 "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==",
2742 "license": "MIT",
2743 "dependencies": {
2744 "semver": "^7.5.3"
2745 },
2746 "engines": {
2747 "node": ">=10"
2748 },
2749 "funding": {
2750 "url": "https://github.com/sponsors/sindresorhus"
2751 }
2752 },
2753 "node_modules/istanbul-lib-source-maps": {
2754 "version": "4.0.1",
2755 "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz",
2756 "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==",
2757 "license": "BSD-3-Clause",
2758 "dependencies": {
2759 "debug": "^4.1.1",
2760 "istanbul-lib-coverage": "^3.0.0",
2761 "source-map": "^0.6.1"
2762 },
2763 "engines": {
2764 "node": ">=10"
2765 }
2766 },
2767 "node_modules/istanbul-lib-source-maps/node_modules/debug": {
2768 "version": "4.4.3",
2769 "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
2770 "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
2771 "license": "MIT",
2772 "dependencies": {
2773 "ms": "^2.1.3"
2774 },
2775 "engines": {
2776 "node": ">=6.0"
2777 },
2778 "peerDependenciesMeta": {
2779 "supports-color": {
2780 "optional": true
2781 }
2782 }
2783 },
2784 "node_modules/istanbul-lib-source-maps/node_modules/ms": {
2785 "version": "2.1.3",
2786 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
2787 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
2788 "license": "MIT"
2789 },
2790 "node_modules/istanbul-reports": {
2791 "version": "3.2.0",
2792 "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz",
2793 "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==",
2794 "license": "BSD-3-Clause",
2795 "dependencies": {
2796 "html-escaper": "^2.0.0",
2797 "istanbul-lib-report": "^3.0.0"
2798 },
2799 "engines": {
2800 "node": ">=8"
2801 }
2802 },
2803 "node_modules/jest": {
2804 "version": "29.7.0",
2805 "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz",
2806 "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==",
2807 "license": "MIT",
2808 "dependencies": {
2809 "@jest/core": "^29.7.0",
2810 "@jest/types": "^29.6.3",
2811 "import-local": "^3.0.2",
2812 "jest-cli": "^29.7.0"
2813 },
2814 "bin": {
2815 "jest": "bin/jest.js"
2816 },
2817 "engines": {
2818 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2819 },
2820 "peerDependencies": {
2821 "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"
2822 },
2823 "peerDependenciesMeta": {
2824 "node-notifier": {
2825 "optional": true
2826 }
2827 }
2828 },
2829 "node_modules/jest-changed-files": {
2830 "version": "29.7.0",
2831 "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz",
2832 "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==",
2833 "license": "MIT",
2834 "dependencies": {
2835 "execa": "^5.0.0",
2836 "jest-util": "^29.7.0",
2837 "p-limit": "^3.1.0"
2838 },
2839 "engines": {
2840 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2841 }
2842 },
2843 "node_modules/jest-circus": {
2844 "version": "29.7.0",
2845 "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz",
2846 "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==",
2847 "license": "MIT",
2848 "dependencies": {
2849 "@jest/environment": "^29.7.0",
2850 "@jest/expect": "^29.7.0",
2851 "@jest/test-result": "^29.7.0",
2852 "@jest/types": "^29.6.3",
2853 "@types/node": "*",
2854 "chalk": "^4.0.0",
2855 "co": "^4.6.0",
2856 "dedent": "^1.0.0",
2857 "is-generator-fn": "^2.0.0",
2858 "jest-each": "^29.7.0",
2859 "jest-matcher-utils": "^29.7.0",
2860 "jest-message-util": "^29.7.0",
2861 "jest-runtime": "^29.7.0",
2862 "jest-snapshot": "^29.7.0",
2863 "jest-util": "^29.7.0",
2864 "p-limit": "^3.1.0",
2865 "pretty-format": "^29.7.0",
2866 "pure-rand": "^6.0.0",
2867 "slash": "^3.0.0",
2868 "stack-utils": "^2.0.3"
2869 },
2870 "engines": {
2871 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2872 }
2873 },
2874 "node_modules/jest-cli": {
2875 "version": "29.7.0",
2876 "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz",
2877 "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==",
2878 "license": "MIT",
2879 "dependencies": {
2880 "@jest/core": "^29.7.0",
2881 "@jest/test-result": "^29.7.0",
2882 "@jest/types": "^29.6.3",
2883 "chalk": "^4.0.0",
2884 "create-jest": "^29.7.0",
2885 "exit": "^0.1.2",
2886 "import-local": "^3.0.2",
2887 "jest-config": "^29.7.0",
2888 "jest-util": "^29.7.0",
2889 "jest-validate": "^29.7.0",
2890 "yargs": "^17.3.1"
2891 },
2892 "bin": {
2893 "jest": "bin/jest.js"
2894 },
2895 "engines": {
2896 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2897 },
2898 "peerDependencies": {
2899 "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"
2900 },
2901 "peerDependenciesMeta": {
2902 "node-notifier": {
2903 "optional": true
2904 }
2905 }
2906 },
2907 "node_modules/jest-config": {
2908 "version": "29.7.0",
2909 "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz",
2910 "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==",
2911 "license": "MIT",
2912 "dependencies": {
2913 "@babel/core": "^7.11.6",
2914 "@jest/test-sequencer": "^29.7.0",
2915 "@jest/types": "^29.6.3",
2916 "babel-jest": "^29.7.0",
2917 "chalk": "^4.0.0",
2918 "ci-info": "^3.2.0",
2919 "deepmerge": "^4.2.2",
2920 "glob": "^7.1.3",
2921 "graceful-fs": "^4.2.9",
2922 "jest-circus": "^29.7.0",
2923 "jest-environment-node": "^29.7.0",
2924 "jest-get-type": "^29.6.3",
2925 "jest-regex-util": "^29.6.3",
2926 "jest-resolve": "^29.7.0",
2927 "jest-runner": "^29.7.0",
2928 "jest-util": "^29.7.0",
2929 "jest-validate": "^29.7.0",
2930 "micromatch": "^4.0.4",
2931 "parse-json": "^5.2.0",
2932 "pretty-format": "^29.7.0",
2933 "slash": "^3.0.0",
2934 "strip-json-comments": "^3.1.1"
2935 },
2936 "engines": {
2937 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2938 },
2939 "peerDependencies": {
2940 "@types/node": "*",
2941 "ts-node": ">=9.0.0"
2942 },
2943 "peerDependenciesMeta": {
2944 "@types/node": {
2945 "optional": true
2946 },
2947 "ts-node": {
2948 "optional": true
2949 }
2950 }
2951 },
2952 "node_modules/jest-diff": {
2953 "version": "29.7.0",
2954 "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz",
2955 "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==",
2956 "license": "MIT",
2957 "dependencies": {
2958 "chalk": "^4.0.0",
2959 "diff-sequences": "^29.6.3",
2960 "jest-get-type": "^29.6.3",
2961 "pretty-format": "^29.7.0"
2962 },
2963 "engines": {
2964 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2965 }
2966 },
2967 "node_modules/jest-docblock": {
2968 "version": "29.7.0",
2969 "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz",
2970 "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==",
2971 "license": "MIT",
2972 "dependencies": {
2973 "detect-newline": "^3.0.0"
2974 },
2975 "engines": {
2976 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2977 }
2978 },
2979 "node_modules/jest-each": {
2980 "version": "29.7.0",
2981 "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz",
2982 "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==",
2983 "license": "MIT",
2984 "dependencies": {
2985 "@jest/types": "^29.6.3",
2986 "chalk": "^4.0.0",
2987 "jest-get-type": "^29.6.3",
2988 "jest-util": "^29.7.0",
2989 "pretty-format": "^29.7.0"
2990 },
2991 "engines": {
2992 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2993 }
2994 },
2995 "node_modules/jest-environment-node": {
2996 "version": "29.7.0",
2997 "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz",
2998 "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==",
2999 "license": "MIT",
3000 "dependencies": {
3001 "@jest/environment": "^29.7.0",
3002 "@jest/fake-timers": "^29.7.0",
3003 "@jest/types": "^29.6.3",
3004 "@types/node": "*",
3005 "jest-mock": "^29.7.0",
3006 "jest-util": "^29.7.0"
3007 },
3008 "engines": {
3009 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3010 }
3011 },
3012 "node_modules/jest-get-type": {
3013 "version": "29.6.3",
3014 "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz",
3015 "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==",
3016 "license": "MIT",
3017 "engines": {
3018 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3019 }
3020 },
3021 "node_modules/jest-haste-map": {
3022 "version": "29.7.0",
3023 "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz",
3024 "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==",
3025 "license": "MIT",
3026 "dependencies": {
3027 "@jest/types": "^29.6.3",
3028 "@types/graceful-fs": "^4.1.3",
3029 "@types/node": "*",
3030 "anymatch": "^3.0.3",
3031 "fb-watchman": "^2.0.0",
3032 "graceful-fs": "^4.2.9",
3033 "jest-regex-util": "^29.6.3",
3034 "jest-util": "^29.7.0",
3035 "jest-worker": "^29.7.0",
3036 "micromatch": "^4.0.4",
3037 "walker": "^1.0.8"
3038 },
3039 "engines": {
3040 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3041 },
3042 "optionalDependencies": {
3043 "fsevents": "^2.3.2"
3044 }
3045 },
3046 "node_modules/jest-leak-detector": {
3047 "version": "29.7.0",
3048 "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz",
3049 "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==",
3050 "license": "MIT",
3051 "dependencies": {
3052 "jest-get-type": "^29.6.3",
3053 "pretty-format": "^29.7.0"
3054 },
3055 "engines": {
3056 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3057 }
3058 },
3059 "node_modules/jest-matcher-utils": {
3060 "version": "29.7.0",
3061 "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz",
3062 "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==",
3063 "license": "MIT",
3064 "dependencies": {
3065 "chalk": "^4.0.0",
3066 "jest-diff": "^29.7.0",
3067 "jest-get-type": "^29.6.3",
3068 "pretty-format": "^29.7.0"
3069 },
3070 "engines": {
3071 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3072 }
3073 },
3074 "node_modules/jest-message-util": {
3075 "version": "29.7.0",
3076 "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz",
3077 "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==",
3078 "license": "MIT",
3079 "dependencies": {
3080 "@babel/code-frame": "^7.12.13",
3081 "@jest/types": "^29.6.3",
3082 "@types/stack-utils": "^2.0.0",
3083 "chalk": "^4.0.0",
3084 "graceful-fs": "^4.2.9",
3085 "micromatch": "^4.0.4",
3086 "pretty-format": "^29.7.0",
3087 "slash": "^3.0.0",
3088 "stack-utils": "^2.0.3"
3089 },
3090 "engines": {
3091 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3092 }
3093 },
3094 "node_modules/jest-mock": {
3095 "version": "29.7.0",
3096 "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz",
3097 "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==",
3098 "license": "MIT",
3099 "dependencies": {
3100 "@jest/types": "^29.6.3",
3101 "@types/node": "*",
3102 "jest-util": "^29.7.0"
3103 },
3104 "engines": {
3105 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3106 }
3107 },
3108 "node_modules/jest-pnp-resolver": {
3109 "version": "1.2.3",
3110 "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz",
3111 "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==",
3112 "license": "MIT",
3113 "engines": {
3114 "node": ">=6"
3115 },
3116 "peerDependencies": {
3117 "jest-resolve": "*"
3118 },
3119 "peerDependenciesMeta": {
3120 "jest-resolve": {
3121 "optional": true
3122 }
3123 }
3124 },
3125 "node_modules/jest-regex-util": {
3126 "version": "29.6.3",
3127 "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz",
3128 "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==",
3129 "license": "MIT",
3130 "engines": {
3131 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3132 }
3133 },
3134 "node_modules/jest-resolve": {
3135 "version": "29.7.0",
3136 "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz",
3137 "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==",
3138 "license": "MIT",
3139 "dependencies": {
3140 "chalk": "^4.0.0",
3141 "graceful-fs": "^4.2.9",
3142 "jest-haste-map": "^29.7.0",
3143 "jest-pnp-resolver": "^1.2.2",
3144 "jest-util": "^29.7.0",
3145 "jest-validate": "^29.7.0",
3146 "resolve": "^1.20.0",
3147 "resolve.exports": "^2.0.0",
3148 "slash": "^3.0.0"
3149 },
3150 "engines": {
3151 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3152 }
3153 },
3154 "node_modules/jest-resolve-dependencies": {
3155 "version": "29.7.0",
3156 "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz",
3157 "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==",
3158 "license": "MIT",
3159 "dependencies": {
3160 "jest-regex-util": "^29.6.3",
3161 "jest-snapshot": "^29.7.0"
3162 },
3163 "engines": {
3164 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3165 }
3166 },
3167 "node_modules/jest-runner": {
3168 "version": "29.7.0",
3169 "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz",
3170 "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==",
3171 "license": "MIT",
3172 "dependencies": {
3173 "@jest/console": "^29.7.0",
3174 "@jest/environment": "^29.7.0",
3175 "@jest/test-result": "^29.7.0",
3176 "@jest/transform": "^29.7.0",
3177 "@jest/types": "^29.6.3",
3178 "@types/node": "*",
3179 "chalk": "^4.0.0",
3180 "emittery": "^0.13.1",
3181 "graceful-fs": "^4.2.9",
3182 "jest-docblock": "^29.7.0",
3183 "jest-environment-node": "^29.7.0",
3184 "jest-haste-map": "^29.7.0",
3185 "jest-leak-detector": "^29.7.0",
3186 "jest-message-util": "^29.7.0",
3187 "jest-resolve": "^29.7.0",
3188 "jest-runtime": "^29.7.0",
3189 "jest-util": "^29.7.0",
3190 "jest-watcher": "^29.7.0",
3191 "jest-worker": "^29.7.0",
3192 "p-limit": "^3.1.0",
3193 "source-map-support": "0.5.13"
3194 },
3195 "engines": {
3196 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3197 }
3198 },
3199 "node_modules/jest-runtime": {
3200 "version": "29.7.0",
3201 "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz",
3202 "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==",
3203 "license": "MIT",
3204 "dependencies": {
3205 "@jest/environment": "^29.7.0",
3206 "@jest/fake-timers": "^29.7.0",
3207 "@jest/globals": "^29.7.0",
3208 "@jest/source-map": "^29.6.3",
3209 "@jest/test-result": "^29.7.0",
3210 "@jest/transform": "^29.7.0",
3211 "@jest/types": "^29.6.3",
3212 "@types/node": "*",
3213 "chalk": "^4.0.0",
3214 "cjs-module-lexer": "^1.0.0",
3215 "collect-v8-coverage": "^1.0.0",
3216 "glob": "^7.1.3",
3217 "graceful-fs": "^4.2.9",
3218 "jest-haste-map": "^29.7.0",
3219 "jest-message-util": "^29.7.0",
3220 "jest-mock": "^29.7.0",
3221 "jest-regex-util": "^29.6.3",
3222 "jest-resolve": "^29.7.0",
3223 "jest-snapshot": "^29.7.0",
3224 "jest-util": "^29.7.0",
3225 "slash": "^3.0.0",
3226 "strip-bom": "^4.0.0"
3227 },
3228 "engines": {
3229 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3230 }
3231 },
3232 "node_modules/jest-snapshot": {
3233 "version": "29.7.0",
3234 "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz",
3235 "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==",
3236 "license": "MIT",
3237 "dependencies": {
3238 "@babel/core": "^7.11.6",
3239 "@babel/generator": "^7.7.2",
3240 "@babel/plugin-syntax-jsx": "^7.7.2",
3241 "@babel/plugin-syntax-typescript": "^7.7.2",
3242 "@babel/types": "^7.3.3",
3243 "@jest/expect-utils": "^29.7.0",
3244 "@jest/transform": "^29.7.0",
3245 "@jest/types": "^29.6.3",
3246 "babel-preset-current-node-syntax": "^1.0.0",
3247 "chalk": "^4.0.0",
3248 "expect": "^29.7.0",
3249 "graceful-fs": "^4.2.9",
3250 "jest-diff": "^29.7.0",
3251 "jest-get-type": "^29.6.3",
3252 "jest-matcher-utils": "^29.7.0",
3253 "jest-message-util": "^29.7.0",
3254 "jest-util": "^29.7.0",
3255 "natural-compare": "^1.4.0",
3256 "pretty-format": "^29.7.0",
3257 "semver": "^7.5.3"
3258 },
3259 "engines": {
3260 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3261 }
3262 },
3263 "node_modules/jest-util": {
3264 "version": "29.7.0",
3265 "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz",
3266 "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==",
3267 "license": "MIT",
3268 "dependencies": {
3269 "@jest/types": "^29.6.3",
3270 "@types/node": "*",
3271 "chalk": "^4.0.0",
3272 "ci-info": "^3.2.0",
3273 "graceful-fs": "^4.2.9",
3274 "picomatch": "^2.2.3"
3275 },
3276 "engines": {
3277 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3278 }
3279 },
3280 "node_modules/jest-validate": {
3281 "version": "29.7.0",
3282 "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz",
3283 "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==",
3284 "license": "MIT",
3285 "dependencies": {
3286 "@jest/types": "^29.6.3",
3287 "camelcase": "^6.2.0",
3288 "chalk": "^4.0.0",
3289 "jest-get-type": "^29.6.3",
3290 "leven": "^3.1.0",
3291 "pretty-format": "^29.7.0"
3292 },
3293 "engines": {
3294 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3295 }
3296 },
3297 "node_modules/jest-validate/node_modules/camelcase": {
3298 "version": "6.3.0",
3299 "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",
3300 "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",
3301 "license": "MIT",
3302 "engines": {
3303 "node": ">=10"
3304 },
3305 "funding": {
3306 "url": "https://github.com/sponsors/sindresorhus"
3307 }
3308 },
3309 "node_modules/jest-watcher": {
3310 "version": "29.7.0",
3311 "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz",
3312 "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==",
3313 "license": "MIT",
3314 "dependencies": {
3315 "@jest/test-result": "^29.7.0",
3316 "@jest/types": "^29.6.3",
3317 "@types/node": "*",
3318 "ansi-escapes": "^4.2.1",
3319 "chalk": "^4.0.0",
3320 "emittery": "^0.13.1",
3321 "jest-util": "^29.7.0",
3322 "string-length": "^4.0.1"
3323 },
3324 "engines": {
3325 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3326 }
3327 },
3328 "node_modules/jest-worker": {
3329 "version": "29.7.0",
3330 "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz",
3331 "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==",
3332 "license": "MIT",
3333 "dependencies": {
3334 "@types/node": "*",
3335 "jest-util": "^29.7.0",
3336 "merge-stream": "^2.0.0",
3337 "supports-color": "^8.0.0"
3338 },
3339 "engines": {
3340 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3341 }
3342 },
3343 "node_modules/jest-worker/node_modules/supports-color": {
3344 "version": "8.1.1",
3345 "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
3346 "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
3347 "license": "MIT",
3348 "dependencies": {
3349 "has-flag": "^4.0.0"
3350 },
3351 "engines": {
3352 "node": ">=10"
3353 },
3354 "funding": {
3355 "url": "https://github.com/chalk/supports-color?sponsor=1"
3356 }
3357 },
3358 "node_modules/js-tokens": {
3359 "version": "4.0.0",
3360 "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
3361 "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
3362 "license": "MIT"
3363 },
3364 "node_modules/js-yaml": {
3365 "version": "3.14.2",
3366 "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz",
3367 "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==",
3368 "license": "MIT",
3369 "dependencies": {
3370 "argparse": "^1.0.7",
3371 "esprima": "^4.0.0"
3372 },
3373 "bin": {
3374 "js-yaml": "bin/js-yaml.js"
3375 }
3376 },
3377 "node_modules/jsbn": {
3378 "version": "1.1.0",
3379 "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz",
3380 "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==",
3381 "license": "MIT"
3382 },
3383 "node_modules/jsesc": {
3384 "version": "3.1.0",
3385 "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
3386 "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
3387 "license": "MIT",
3388 "bin": {
3389 "jsesc": "bin/jsesc"
3390 },
3391 "engines": {
3392 "node": ">=6"
3393 }
3394 },
3395 "node_modules/json-parse-even-better-errors": {
3396 "version": "2.3.1",
3397 "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
3398 "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
3399 "license": "MIT"
3400 },
3401 "node_modules/json5": {
3402 "version": "2.2.3",
3403 "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
3404 "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
3405 "license": "MIT",
3406 "bin": {
3407 "json5": "lib/cli.js"
3408 },
3409 "engines": {
3410 "node": ">=6"
3411 }
3412 },
3413 "node_modules/jsonwebtoken": {
3414 "version": "9.0.3",
3415 "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz",
3416 "integrity": "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==",
3417 "license": "MIT",
3418 "dependencies": {
3419 "jws": "^4.0.1",
3420 "lodash.includes": "^4.3.0",
3421 "lodash.isboolean": "^3.0.3",
3422 "lodash.isinteger": "^4.0.4",
3423 "lodash.isnumber": "^3.0.3",
3424 "lodash.isplainobject": "^4.0.6",
3425 "lodash.isstring": "^4.0.1",
3426 "lodash.once": "^4.0.0",
3427 "ms": "^2.1.1",
3428 "semver": "^7.5.4"
3429 },
3430 "engines": {
3431 "node": ">=12",
3432 "npm": ">=6"
3433 }
3434 },
3435 "node_modules/jsonwebtoken/node_modules/ms": {
3436 "version": "2.1.3",
3437 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
3438 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
3439 "license": "MIT"
3440 },
3441 "node_modules/jwa": {
3442 "version": "2.0.1",
3443 "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz",
3444 "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==",
3445 "license": "MIT",
3446 "dependencies": {
3447 "buffer-equal-constant-time": "^1.0.1",
3448 "ecdsa-sig-formatter": "1.0.11",
3449 "safe-buffer": "^5.0.1"
3450 }
3451 },
3452 "node_modules/jws": {
3453 "version": "4.0.1",
3454 "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz",
3455 "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==",
3456 "license": "MIT",
3457 "dependencies": {
3458 "jwa": "^2.0.1",
3459 "safe-buffer": "^5.0.1"
3460 }
3461 },
3462 "node_modules/kleur": {
3463 "version": "3.0.3",
3464 "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",
3465 "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==",
3466 "license": "MIT",
3467 "engines": {
3468 "node": ">=6"
3469 }
3470 },
3471 "node_modules/lazy": {
3472 "version": "1.0.11",
3473 "resolved": "https://registry.npmjs.org/lazy/-/lazy-1.0.11.tgz",
3474 "integrity": "sha512-Y+CjUfLmIpoUCCRl0ub4smrYtGGr5AOa2AKOaWelGHOGz33X/Y/KizefGqbkwfz44+cnq/+9habclf8vOmu2LA==",
3475 "license": "MIT",
3476 "engines": {
3477 "node": ">=0.2.0"
3478 }
3479 },
3480 "node_modules/leven": {
3481 "version": "3.1.0",
3482 "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz",
3483 "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==",
3484 "license": "MIT",
3485 "engines": {
3486 "node": ">=6"
3487 }
3488 },
3489 "node_modules/lines-and-columns": {
3490 "version": "1.2.4",
3491 "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
3492 "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
3493 "license": "MIT"
3494 },
3495 "node_modules/locate-path": {
3496 "version": "5.0.0",
3497 "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
3498 "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
3499 "license": "MIT",
3500 "dependencies": {
3501 "p-locate": "^4.1.0"
3502 },
3503 "engines": {
3504 "node": ">=8"
3505 }
3506 },
3507 "node_modules/lodash": {
3508 "version": "4.18.1",
3509 "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",
3510 "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",
3511 "license": "MIT"
3512 },
3513 "node_modules/lodash.includes": {
3514 "version": "4.3.0",
3515 "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",
3516 "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==",
3517 "license": "MIT"
3518 },
3519 "node_modules/lodash.isboolean": {
3520 "version": "3.0.3",
3521 "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",
3522 "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==",
3523 "license": "MIT"
3524 },
3525 "node_modules/lodash.isinteger": {
3526 "version": "4.0.4",
3527 "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",
3528 "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==",
3529 "license": "MIT"
3530 },
3531 "node_modules/lodash.isnumber": {
3532 "version": "3.0.3",
3533 "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz",
3534 "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==",
3535 "license": "MIT"
3536 },
3537 "node_modules/lodash.isplainobject": {
3538 "version": "4.0.6",
3539 "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
3540 "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",
3541 "license": "MIT"
3542 },
3543 "node_modules/lodash.isstring": {
3544 "version": "4.0.1",
3545 "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz",
3546 "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==",
3547 "license": "MIT"
3548 },
3549 "node_modules/lodash.once": {
3550 "version": "4.1.1",
3551 "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",
3552 "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==",
3553 "license": "MIT"
3554 },
3555 "node_modules/lru-cache": {
3556 "version": "5.1.1",
3557 "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
3558 "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
3559 "license": "ISC",
3560 "dependencies": {
3561 "yallist": "^3.0.2"
3562 }
3563 },
3564 "node_modules/make-dir": {
3565 "version": "3.1.0",
3566 "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
3567 "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
3568 "license": "MIT",
3569 "dependencies": {
3570 "semver": "^6.0.0"
3571 },
3572 "engines": {
3573 "node": ">=8"
3574 },
3575 "funding": {
3576 "url": "https://github.com/sponsors/sindresorhus"
3577 }
3578 },
3579 "node_modules/make-dir/node_modules/semver": {
3580 "version": "6.3.1",
3581 "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
3582 "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
3583 "license": "ISC",
3584 "bin": {
3585 "semver": "bin/semver.js"
3586 }
3587 },
3588 "node_modules/makeerror": {
3589 "version": "1.0.12",
3590 "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz",
3591 "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==",
3592 "license": "BSD-3-Clause",
3593 "dependencies": {
3594 "tmpl": "1.0.5"
3595 }
3596 },
3597 "node_modules/math-intrinsics": {
3598 "version": "1.1.0",
3599 "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
3600 "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
3601 "license": "MIT",
3602 "engines": {
3603 "node": ">= 0.4"
3604 }
3605 },
3606 "node_modules/media-typer": {
3607 "version": "0.3.0",
3608 "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
3609 "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
3610 "license": "MIT",
3611 "engines": {
3612 "node": ">= 0.6"
3613 }
3614 },
3615 "node_modules/merge-descriptors": {
3616 "version": "1.0.3",
3617 "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
3618 "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
3619 "license": "MIT",
3620 "funding": {
3621 "url": "https://github.com/sponsors/sindresorhus"
3622 }
3623 },
3624 "node_modules/merge-stream": {
3625 "version": "2.0.0",
3626 "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
3627 "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
3628 "license": "MIT"
3629 },
3630 "node_modules/methods": {
3631 "version": "1.1.2",
3632 "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
3633 "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
3634 "license": "MIT",
3635 "engines": {
3636 "node": ">= 0.6"
3637 }
3638 },
3639 "node_modules/micromatch": {
3640 "version": "4.0.8",
3641 "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
3642 "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
3643 "license": "MIT",
3644 "dependencies": {
3645 "braces": "^3.0.3",
3646 "picomatch": "^2.3.1"
3647 },
3648 "engines": {
3649 "node": ">=8.6"
3650 }
3651 },
3652 "node_modules/mime": {
3653 "version": "1.6.0",
3654 "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
3655 "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
3656 "license": "MIT",
3657 "bin": {
3658 "mime": "cli.js"
3659 },
3660 "engines": {
3661 "node": ">=4"
3662 }
3663 },
3664 "node_modules/mime-db": {
3665 "version": "1.52.0",
3666 "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
3667 "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
3668 "license": "MIT",
3669 "engines": {
3670 "node": ">= 0.6"
3671 }
3672 },
3673 "node_modules/mime-types": {
3674 "version": "2.1.35",
3675 "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
3676 "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
3677 "license": "MIT",
3678 "dependencies": {
3679 "mime-db": "1.52.0"
3680 },
3681 "engines": {
3682 "node": ">= 0.6"
3683 }
3684 },
3685 "node_modules/mimic-fn": {
3686 "version": "2.1.0",
3687 "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
3688 "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
3689 "license": "MIT",
3690 "engines": {
3691 "node": ">=6"
3692 }
3693 },
3694 "node_modules/minimatch": {
3695 "version": "3.1.5",
3696 "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
3697 "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
3698 "license": "ISC",
3699 "dependencies": {
3700 "brace-expansion": "^1.1.7"
3701 },
3702 "engines": {
3703 "node": "*"
3704 }
3705 },
3706 "node_modules/minimist": {
3707 "version": "1.2.8",
3708 "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
3709 "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
3710 "license": "MIT",
3711 "funding": {
3712 "url": "https://github.com/sponsors/ljharb"
3713 }
3714 },
3715 "node_modules/minipass": {
3716 "version": "5.0.0",
3717 "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
3718 "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
3719 "license": "ISC",
3720 "engines": {
3721 "node": ">=8"
3722 }
3723 },
3724 "node_modules/minizlib": {
3725 "version": "2.1.2",
3726 "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
3727 "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
3728 "license": "MIT",
3729 "dependencies": {
3730 "minipass": "^3.0.0",
3731 "yallist": "^4.0.0"
3732 },
3733 "engines": {
3734 "node": ">= 8"
3735 }
3736 },
3737 "node_modules/minizlib/node_modules/minipass": {
3738 "version": "3.3.6",
3739 "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
3740 "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
3741 "license": "ISC",
3742 "dependencies": {
3743 "yallist": "^4.0.0"
3744 },
3745 "engines": {
3746 "node": ">=8"
3747 }
3748 },
3749 "node_modules/minizlib/node_modules/yallist": {
3750 "version": "4.0.0",
3751 "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
3752 "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
3753 "license": "ISC"
3754 },
3755 "node_modules/mkdirp": {
3756 "version": "0.5.6",
3757 "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
3758 "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
3759 "license": "MIT",
3760 "dependencies": {
3761 "minimist": "^1.2.6"
3762 },
3763 "bin": {
3764 "mkdirp": "bin/cmd.js"
3765 }
3766 },
3767 "node_modules/ms": {
3768 "version": "2.0.0",
3769 "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
3770 "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
3771 "license": "MIT"
3772 },
3773 "node_modules/multer": {
3774 "version": "1.4.5-lts.2",
3775 "resolved": "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.2.tgz",
3776 "integrity": "sha512-VzGiVigcG9zUAoCNU+xShztrlr1auZOlurXynNvO9GiWD1/mTBbUljOKY+qMeazBqXgRnjzeEgJI/wyjJUHg9A==",
3777 "deprecated": "Multer 1.x is impacted by a number of vulnerabilities, which have been patched in 2.x. You should upgrade to the latest 2.x version.",
3778 "license": "MIT",
3779 "dependencies": {
3780 "append-field": "^1.0.0",
3781 "busboy": "^1.0.0",
3782 "concat-stream": "^1.5.2",
3783 "mkdirp": "^0.5.4",
3784 "object-assign": "^4.1.1",
3785 "type-is": "^1.6.4",
3786 "xtend": "^4.0.0"
3787 },
3788 "engines": {
3789 "node": ">= 6.0.0"
3790 }
3791 },
3792 "node_modules/natural-compare": {
3793 "version": "1.4.0",
3794 "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
3795 "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
3796 "license": "MIT"
3797 },
3798 "node_modules/negotiator": {
3799 "version": "0.6.3",
3800 "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
3801 "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
3802 "license": "MIT",
3803 "engines": {
3804 "node": ">= 0.6"
3805 }
3806 },
3807 "node_modules/node-addon-api": {
3808 "version": "5.1.0",
3809 "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz",
3810 "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==",
3811 "license": "MIT"
3812 },
3813 "node_modules/node-fetch": {
3814 "version": "2.7.0",
3815 "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
3816 "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
3817 "license": "MIT",
3818 "dependencies": {
3819 "whatwg-url": "^5.0.0"
3820 },
3821 "engines": {
3822 "node": "4.x || >=6.0.0"
3823 },
3824 "peerDependencies": {
3825 "encoding": "^0.1.0"
3826 },
3827 "peerDependenciesMeta": {
3828 "encoding": {
3829 "optional": true
3830 }
3831 }
3832 },
3833 "node_modules/node-int64": {
3834 "version": "0.4.0",
3835 "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",
3836 "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==",
3837 "license": "MIT"
3838 },
3839 "node_modules/node-releases": {
3840 "version": "2.0.38",
3841 "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.38.tgz",
3842 "integrity": "sha512-3qT/88Y3FbH/Kx4szpQQ4HzUbVrHPKTLVpVocKiLfoYvw9XSGOX2FmD2d6DrXbVYyAQTF2HeF6My8jmzx7/CRw==",
3843 "license": "MIT"
3844 },
3845 "node_modules/node-sqlite3-wasm": {
3846 "version": "0.8.56",
3847 "resolved": "https://registry.npmjs.org/node-sqlite3-wasm/-/node-sqlite3-wasm-0.8.56.tgz",
3848 "integrity": "sha512-piu6QQNAm8cg6IK8vuI4zdMwlMjhay6Xb5gg3gc5pIMY8w75ZqXOtZKMy74tp8w4rhykyC/3s8fElWhWLntRtQ==",
3849 "license": "MIT"
3850 },
3851 "node_modules/nopt": {
3852 "version": "5.0.0",
3853 "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",
3854 "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",
3855 "license": "ISC",
3856 "dependencies": {
3857 "abbrev": "1"
3858 },
3859 "bin": {
3860 "nopt": "bin/nopt.js"
3861 },
3862 "engines": {
3863 "node": ">=6"
3864 }
3865 },
3866 "node_modules/normalize-path": {
3867 "version": "3.0.0",
3868 "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
3869 "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
3870 "license": "MIT",
3871 "engines": {
3872 "node": ">=0.10.0"
3873 }
3874 },
3875 "node_modules/npm-run-path": {
3876 "version": "4.0.1",
3877 "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
3878 "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
3879 "license": "MIT",
3880 "dependencies": {
3881 "path-key": "^3.0.0"
3882 },
3883 "engines": {
3884 "node": ">=8"
3885 }
3886 },
3887 "node_modules/npmlog": {
3888 "version": "5.0.1",
3889 "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz",
3890 "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==",
3891 "deprecated": "This package is no longer supported.",
3892 "license": "ISC",
3893 "dependencies": {
3894 "are-we-there-yet": "^2.0.0",
3895 "console-control-strings": "^1.1.0",
3896 "gauge": "^3.0.0",
3897 "set-blocking": "^2.0.0"
3898 }
3899 },
3900 "node_modules/object-assign": {
3901 "version": "4.1.1",
3902 "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
3903 "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
3904 "license": "MIT",
3905 "engines": {
3906 "node": ">=0.10.0"
3907 }
3908 },
3909 "node_modules/object-inspect": {
3910 "version": "1.13.4",
3911 "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
3912 "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
3913 "license": "MIT",
3914 "engines": {
3915 "node": ">= 0.4"
3916 },
3917 "funding": {
3918 "url": "https://github.com/sponsors/ljharb"
3919 }
3920 },
3921 "node_modules/on-finished": {
3922 "version": "2.4.1",
3923 "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
3924 "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
3925 "license": "MIT",
3926 "dependencies": {
3927 "ee-first": "1.1.1"
3928 },
3929 "engines": {
3930 "node": ">= 0.8"
3931 }
3932 },
3933 "node_modules/once": {
3934 "version": "1.4.0",
3935 "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
3936 "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
3937 "license": "ISC",
3938 "dependencies": {
3939 "wrappy": "1"
3940 }
3941 },
3942 "node_modules/onetime": {
3943 "version": "5.1.2",
3944 "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
3945 "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
3946 "license": "MIT",
3947 "dependencies": {
3948 "mimic-fn": "^2.1.0"
3949 },
3950 "engines": {
3951 "node": ">=6"
3952 },
3953 "funding": {
3954 "url": "https://github.com/sponsors/sindresorhus"
3955 }
3956 },
3957 "node_modules/p-limit": {
3958 "version": "3.1.0",
3959 "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
3960 "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
3961 "license": "MIT",
3962 "dependencies": {
3963 "yocto-queue": "^0.1.0"
3964 },
3965 "engines": {
3966 "node": ">=10"
3967 },
3968 "funding": {
3969 "url": "https://github.com/sponsors/sindresorhus"
3970 }
3971 },
3972 "node_modules/p-locate": {
3973 "version": "4.1.0",
3974 "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
3975 "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
3976 "license": "MIT",
3977 "dependencies": {
3978 "p-limit": "^2.2.0"
3979 },
3980 "engines": {
3981 "node": ">=8"
3982 }
3983 },
3984 "node_modules/p-locate/node_modules/p-limit": {
3985 "version": "2.3.0",
3986 "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
3987 "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
3988 "license": "MIT",
3989 "dependencies": {
3990 "p-try": "^2.0.0"
3991 },
3992 "engines": {
3993 "node": ">=6"
3994 },
3995 "funding": {
3996 "url": "https://github.com/sponsors/sindresorhus"
3997 }
3998 },
3999 "node_modules/p-try": {
4000 "version": "2.2.0",
4001 "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
4002 "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
4003 "license": "MIT",
4004 "engines": {
4005 "node": ">=6"
4006 }
4007 },
4008 "node_modules/parse-json": {
4009 "version": "5.2.0",
4010 "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
4011 "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
4012 "license": "MIT",
4013 "dependencies": {
4014 "@babel/code-frame": "^7.0.0",
4015 "error-ex": "^1.3.1",
4016 "json-parse-even-better-errors": "^2.3.0",
4017 "lines-and-columns": "^1.1.6"
4018 },
4019 "engines": {
4020 "node": ">=8"
4021 },
4022 "funding": {
4023 "url": "https://github.com/sponsors/sindresorhus"
4024 }
4025 },
4026 "node_modules/parseurl": {
4027 "version": "1.3.3",
4028 "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
4029 "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
4030 "license": "MIT",
4031 "engines": {
4032 "node": ">= 0.8"
4033 }
4034 },
4035 "node_modules/path-exists": {
4036 "version": "4.0.0",
4037 "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
4038 "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
4039 "license": "MIT",
4040 "engines": {
4041 "node": ">=8"
4042 }
4043 },
4044 "node_modules/path-is-absolute": {
4045 "version": "1.0.1",
4046 "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
4047 "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
4048 "license": "MIT",
4049 "engines": {
4050 "node": ">=0.10.0"
4051 }
4052 },
4053 "node_modules/path-key": {
4054 "version": "3.1.1",
4055 "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
4056 "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
4057 "license": "MIT",
4058 "engines": {
4059 "node": ">=8"
4060 }
4061 },
4062 "node_modules/path-parse": {
4063 "version": "1.0.7",
4064 "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
4065 "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
4066 "license": "MIT"
4067 },
4068 "node_modules/path-to-regexp": {
4069 "version": "0.1.13",
4070 "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz",
4071 "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==",
4072 "license": "MIT"
4073 },
4074 "node_modules/pend": {
4075 "version": "1.2.0",
4076 "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
4077 "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",
4078 "license": "MIT"
4079 },
4080 "node_modules/picocolors": {
4081 "version": "1.1.1",
4082 "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
4083 "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
4084 "license": "ISC"
4085 },
4086 "node_modules/picomatch": {
4087 "version": "2.3.2",
4088 "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
4089 "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
4090 "license": "MIT",
4091 "engines": {
4092 "node": ">=8.6"
4093 },
4094 "funding": {
4095 "url": "https://github.com/sponsors/jonschlinkert"
4096 }
4097 },
4098 "node_modules/pirates": {
4099 "version": "4.0.7",
4100 "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",
4101 "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",
4102 "license": "MIT",
4103 "engines": {
4104 "node": ">= 6"
4105 }
4106 },
4107 "node_modules/pkg-dir": {
4108 "version": "4.2.0",
4109 "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
4110 "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
4111 "license": "MIT",
4112 "dependencies": {
4113 "find-up": "^4.0.0"
4114 },
4115 "engines": {
4116 "node": ">=8"
4117 }
4118 },
4119 "node_modules/pretty-format": {
4120 "version": "29.7.0",
4121 "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",
4122 "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==",
4123 "license": "MIT",
4124 "dependencies": {
4125 "@jest/schemas": "^29.6.3",
4126 "ansi-styles": "^5.0.0",
4127 "react-is": "^18.0.0"
4128 },
4129 "engines": {
4130 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
4131 }
4132 },
4133 "node_modules/pretty-format/node_modules/ansi-styles": {
4134 "version": "5.2.0",
4135 "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
4136 "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
4137 "license": "MIT",
4138 "engines": {
4139 "node": ">=10"
4140 },
4141 "funding": {
4142 "url": "https://github.com/chalk/ansi-styles?sponsor=1"
4143 }
4144 },
4145 "node_modules/process-nextick-args": {
4146 "version": "2.0.1",
4147 "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
4148 "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
4149 "license": "MIT"
4150 },
4151 "node_modules/prompts": {
4152 "version": "2.4.2",
4153 "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz",
4154 "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==",
4155 "license": "MIT",
4156 "dependencies": {
4157 "kleur": "^3.0.3",
4158 "sisteransi": "^1.0.5"
4159 },
4160 "engines": {
4161 "node": ">= 6"
4162 }
4163 },
4164 "node_modules/proxy-addr": {
4165 "version": "2.0.7",
4166 "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
4167 "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
4168 "license": "MIT",
4169 "dependencies": {
4170 "forwarded": "0.2.0",
4171 "ipaddr.js": "1.9.1"
4172 },
4173 "engines": {
4174 "node": ">= 0.10"
4175 }
4176 },
4177 "node_modules/pure-rand": {
4178 "version": "6.1.0",
4179 "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz",
4180 "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==",
4181 "funding": [
4182 {
4183 "type": "individual",
4184 "url": "https://github.com/sponsors/dubzzz"
4185 },
4186 {
4187 "type": "opencollective",
4188 "url": "https://opencollective.com/fast-check"
4189 }
4190 ],
4191 "license": "MIT"
4192 },
4193 "node_modules/qs": {
4194 "version": "6.14.2",
4195 "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz",
4196 "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==",
4197 "license": "BSD-3-Clause",
4198 "dependencies": {
4199 "side-channel": "^1.1.0"
4200 },
4201 "engines": {
4202 "node": ">=0.6"
4203 },
4204 "funding": {
4205 "url": "https://github.com/sponsors/ljharb"
4206 }
4207 },
4208 "node_modules/range-parser": {
4209 "version": "1.2.1",
4210 "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
4211 "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
4212 "license": "MIT",
4213 "engines": {
4214 "node": ">= 0.6"
4215 }
4216 },
4217 "node_modules/raw-body": {
4218 "version": "2.5.3",
4219 "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
4220 "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
4221 "license": "MIT",
4222 "dependencies": {
4223 "bytes": "~3.1.2",
4224 "http-errors": "~2.0.1",
4225 "iconv-lite": "~0.4.24",
4226 "unpipe": "~1.0.0"
4227 },
4228 "engines": {
4229 "node": ">= 0.8"
4230 }
4231 },
4232 "node_modules/react-is": {
4233 "version": "18.3.1",
4234 "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
4235 "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
4236 "license": "MIT"
4237 },
4238 "node_modules/readable-stream": {
4239 "version": "2.3.8",
4240 "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",
4241 "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
4242 "license": "MIT",
4243 "dependencies": {
4244 "core-util-is": "~1.0.0",
4245 "inherits": "~2.0.3",
4246 "isarray": "~1.0.0",
4247 "process-nextick-args": "~2.0.0",
4248 "safe-buffer": "~5.1.1",
4249 "string_decoder": "~1.1.1",
4250 "util-deprecate": "~1.0.1"
4251 }
4252 },
4253 "node_modules/readable-stream/node_modules/safe-buffer": {
4254 "version": "5.1.2",
4255 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
4256 "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
4257 "license": "MIT"
4258 },
4259 "node_modules/require-directory": {
4260 "version": "2.1.1",
4261 "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
4262 "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
4263 "license": "MIT",
4264 "engines": {
4265 "node": ">=0.10.0"
4266 }
4267 },
4268 "node_modules/resolve": {
4269 "version": "1.22.12",
4270 "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz",
4271 "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==",
4272 "license": "MIT",
4273 "dependencies": {
4274 "es-errors": "^1.3.0",
4275 "is-core-module": "^2.16.1",
4276 "path-parse": "^1.0.7",
4277 "supports-preserve-symlinks-flag": "^1.0.0"
4278 },
4279 "bin": {
4280 "resolve": "bin/resolve"
4281 },
4282 "engines": {
4283 "node": ">= 0.4"
4284 },
4285 "funding": {
4286 "url": "https://github.com/sponsors/ljharb"
4287 }
4288 },
4289 "node_modules/resolve-cwd": {
4290 "version": "3.0.0",
4291 "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz",
4292 "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==",
4293 "license": "MIT",
4294 "dependencies": {
4295 "resolve-from": "^5.0.0"
4296 },
4297 "engines": {
4298 "node": ">=8"
4299 }
4300 },
4301 "node_modules/resolve-from": {
4302 "version": "5.0.0",
4303 "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
4304 "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
4305 "license": "MIT",
4306 "engines": {
4307 "node": ">=8"
4308 }
4309 },
4310 "node_modules/resolve.exports": {
4311 "version": "2.0.3",
4312 "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz",
4313 "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==",
4314 "license": "MIT",
4315 "engines": {
4316 "node": ">=10"
4317 }
4318 },
4319 "node_modules/rimraf": {
4320 "version": "3.0.2",
4321 "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
4322 "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
4323 "deprecated": "Rimraf versions prior to v4 are no longer supported",
4324 "license": "ISC",
4325 "dependencies": {
4326 "glob": "^7.1.3"
4327 },
4328 "bin": {
4329 "rimraf": "bin.js"
4330 },
4331 "funding": {
4332 "url": "https://github.com/sponsors/isaacs"
4333 }
4334 },
4335 "node_modules/safe-buffer": {
4336 "version": "5.2.1",
4337 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
4338 "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
4339 "funding": [
4340 {
4341 "type": "github",
4342 "url": "https://github.com/sponsors/feross"
4343 },
4344 {
4345 "type": "patreon",
4346 "url": "https://www.patreon.com/feross"
4347 },
4348 {
4349 "type": "consulting",
4350 "url": "https://feross.org/support"
4351 }
4352 ],
4353 "license": "MIT"
4354 },
4355 "node_modules/safer-buffer": {
4356 "version": "2.1.2",
4357 "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
4358 "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
4359 "license": "MIT"
4360 },
4361 "node_modules/semver": {
4362 "version": "7.7.4",
4363 "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",
4364 "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
4365 "license": "ISC",
4366 "bin": {
4367 "semver": "bin/semver.js"
4368 },
4369 "engines": {
4370 "node": ">=10"
4371 }
4372 },
4373 "node_modules/send": {
4374 "version": "0.19.2",
4375 "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz",
4376 "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==",
4377 "license": "MIT",
4378 "dependencies": {
4379 "debug": "2.6.9",
4380 "depd": "2.0.0",
4381 "destroy": "1.2.0",
4382 "encodeurl": "~2.0.0",
4383 "escape-html": "~1.0.3",
4384 "etag": "~1.8.1",
4385 "fresh": "~0.5.2",
4386 "http-errors": "~2.0.1",
4387 "mime": "1.6.0",
4388 "ms": "2.1.3",
4389 "on-finished": "~2.4.1",
4390 "range-parser": "~1.2.1",
4391 "statuses": "~2.0.2"
4392 },
4393 "engines": {
4394 "node": ">= 0.8.0"
4395 }
4396 },
4397 "node_modules/send/node_modules/ms": {
4398 "version": "2.1.3",
4399 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
4400 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
4401 "license": "MIT"
4402 },
4403 "node_modules/serve-static": {
4404 "version": "1.16.3",
4405 "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz",
4406 "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==",
4407 "license": "MIT",
4408 "dependencies": {
4409 "encodeurl": "~2.0.0",
4410 "escape-html": "~1.0.3",
4411 "parseurl": "~1.3.3",
4412 "send": "~0.19.1"
4413 },
4414 "engines": {
4415 "node": ">= 0.8.0"
4416 }
4417 },
4418 "node_modules/set-blocking": {
4419 "version": "2.0.0",
4420 "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
4421 "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==",
4422 "license": "ISC"
4423 },
4424 "node_modules/setprototypeof": {
4425 "version": "1.2.0",
4426 "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
4427 "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
4428 "license": "ISC"
4429 },
4430 "node_modules/shebang-command": {
4431 "version": "2.0.0",
4432 "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
4433 "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
4434 "license": "MIT",
4435 "dependencies": {
4436 "shebang-regex": "^3.0.0"
4437 },
4438 "engines": {
4439 "node": ">=8"
4440 }
4441 },
4442 "node_modules/shebang-regex": {
4443 "version": "3.0.0",
4444 "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
4445 "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
4446 "license": "MIT",
4447 "engines": {
4448 "node": ">=8"
4449 }
4450 },
4451 "node_modules/side-channel": {
4452 "version": "1.1.0",
4453 "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
4454 "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
4455 "license": "MIT",
4456 "dependencies": {
4457 "es-errors": "^1.3.0",
4458 "object-inspect": "^1.13.3",
4459 "side-channel-list": "^1.0.0",
4460 "side-channel-map": "^1.0.1",
4461 "side-channel-weakmap": "^1.0.2"
4462 },
4463 "engines": {
4464 "node": ">= 0.4"
4465 },
4466 "funding": {
4467 "url": "https://github.com/sponsors/ljharb"
4468 }
4469 },
4470 "node_modules/side-channel-list": {
4471 "version": "1.0.1",
4472 "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
4473 "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
4474 "license": "MIT",
4475 "dependencies": {
4476 "es-errors": "^1.3.0",
4477 "object-inspect": "^1.13.4"
4478 },
4479 "engines": {
4480 "node": ">= 0.4"
4481 },
4482 "funding": {
4483 "url": "https://github.com/sponsors/ljharb"
4484 }
4485 },
4486 "node_modules/side-channel-map": {
4487 "version": "1.0.1",
4488 "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
4489 "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
4490 "license": "MIT",
4491 "dependencies": {
4492 "call-bound": "^1.0.2",
4493 "es-errors": "^1.3.0",
4494 "get-intrinsic": "^1.2.5",
4495 "object-inspect": "^1.13.3"
4496 },
4497 "engines": {
4498 "node": ">= 0.4"
4499 },
4500 "funding": {
4501 "url": "https://github.com/sponsors/ljharb"
4502 }
4503 },
4504 "node_modules/side-channel-weakmap": {
4505 "version": "1.0.2",
4506 "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
4507 "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
4508 "license": "MIT",
4509 "dependencies": {
4510 "call-bound": "^1.0.2",
4511 "es-errors": "^1.3.0",
4512 "get-intrinsic": "^1.2.5",
4513 "object-inspect": "^1.13.3",
4514 "side-channel-map": "^1.0.1"
4515 },
4516 "engines": {
4517 "node": ">= 0.4"
4518 },
4519 "funding": {
4520 "url": "https://github.com/sponsors/ljharb"
4521 }
4522 },
4523 "node_modules/signal-exit": {
4524 "version": "3.0.7",
4525 "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
4526 "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
4527 "license": "ISC"
4528 },
4529 "node_modules/sisteransi": {
4530 "version": "1.0.5",
4531 "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
4532 "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",
4533 "license": "MIT"
4534 },
4535 "node_modules/slash": {
4536 "version": "3.0.0",
4537 "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
4538 "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
4539 "license": "MIT",
4540 "engines": {
4541 "node": ">=8"
4542 }
4543 },
4544 "node_modules/source-map": {
4545 "version": "0.6.1",
4546 "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
4547 "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
4548 "license": "BSD-3-Clause",
4549 "engines": {
4550 "node": ">=0.10.0"
4551 }
4552 },
4553 "node_modules/source-map-support": {
4554 "version": "0.5.13",
4555 "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz",
4556 "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==",
4557 "license": "MIT",
4558 "dependencies": {
4559 "buffer-from": "^1.0.0",
4560 "source-map": "^0.6.0"
4561 }
4562 },
4563 "node_modules/sprintf-js": {
4564 "version": "1.1.2",
4565 "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz",
4566 "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==",
4567 "license": "BSD-3-Clause"
4568 },
4569 "node_modules/stack-utils": {
4570 "version": "2.0.6",
4571 "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz",
4572 "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==",
4573 "license": "MIT",
4574 "dependencies": {
4575 "escape-string-regexp": "^2.0.0"
4576 },
4577 "engines": {
4578 "node": ">=10"
4579 }
4580 },
4581 "node_modules/statuses": {
4582 "version": "2.0.2",
4583 "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
4584 "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
4585 "license": "MIT",
4586 "engines": {
4587 "node": ">= 0.8"
4588 }
4589 },
4590 "node_modules/streamsearch": {
4591 "version": "1.1.0",
4592 "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz",
4593 "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==",
4594 "engines": {
4595 "node": ">=10.0.0"
4596 }
4597 },
4598 "node_modules/string_decoder": {
4599 "version": "1.1.1",
4600 "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
4601 "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
4602 "license": "MIT",
4603 "dependencies": {
4604 "safe-buffer": "~5.1.0"
4605 }
4606 },
4607 "node_modules/string_decoder/node_modules/safe-buffer": {
4608 "version": "5.1.2",
4609 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
4610 "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
4611 "license": "MIT"
4612 },
4613 "node_modules/string-length": {
4614 "version": "4.0.2",
4615 "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz",
4616 "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==",
4617 "license": "MIT",
4618 "dependencies": {
4619 "char-regex": "^1.0.2",
4620 "strip-ansi": "^6.0.0"
4621 },
4622 "engines": {
4623 "node": ">=10"
4624 }
4625 },
4626 "node_modules/string-width": {
4627 "version": "4.2.3",
4628 "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
4629 "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
4630 "license": "MIT",
4631 "dependencies": {
4632 "emoji-regex": "^8.0.0",
4633 "is-fullwidth-code-point": "^3.0.0",
4634 "strip-ansi": "^6.0.1"
4635 },
4636 "engines": {
4637 "node": ">=8"
4638 }
4639 },
4640 "node_modules/strip-ansi": {
4641 "version": "6.0.1",
4642 "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
4643 "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
4644 "license": "MIT",
4645 "dependencies": {
4646 "ansi-regex": "^5.0.1"
4647 },
4648 "engines": {
4649 "node": ">=8"
4650 }
4651 },
4652 "node_modules/strip-bom": {
4653 "version": "4.0.0",
4654 "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz",
4655 "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==",
4656 "license": "MIT",
4657 "engines": {
4658 "node": ">=8"
4659 }
4660 },
4661 "node_modules/strip-final-newline": {
4662 "version": "2.0.0",
4663 "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
4664 "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",
4665 "license": "MIT",
4666 "engines": {
4667 "node": ">=6"
4668 }
4669 },
4670 "node_modules/strip-json-comments": {
4671 "version": "3.1.1",
4672 "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
4673 "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
4674 "license": "MIT",
4675 "engines": {
4676 "node": ">=8"
4677 },
4678 "funding": {
4679 "url": "https://github.com/sponsors/sindresorhus"
4680 }
4681 },
4682 "node_modules/supports-color": {
4683 "version": "7.2.0",
4684 "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
4685 "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
4686 "license": "MIT",
4687 "dependencies": {
4688 "has-flag": "^4.0.0"
4689 },
4690 "engines": {
4691 "node": ">=8"
4692 }
4693 },
4694 "node_modules/supports-preserve-symlinks-flag": {
4695 "version": "1.0.0",
4696 "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
4697 "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
4698 "license": "MIT",
4699 "engines": {
4700 "node": ">= 0.4"
4701 },
4702 "funding": {
4703 "url": "https://github.com/sponsors/ljharb"
4704 }
4705 },
4706 "node_modules/tar": {
4707 "version": "6.2.1",
4708 "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz",
4709 "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==",
4710 "deprecated": "Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me",
4711 "license": "ISC",
4712 "dependencies": {
4713 "chownr": "^2.0.0",
4714 "fs-minipass": "^2.0.0",
4715 "minipass": "^5.0.0",
4716 "minizlib": "^2.1.1",
4717 "mkdirp": "^1.0.3",
4718 "yallist": "^4.0.0"
4719 },
4720 "engines": {
4721 "node": ">=10"
4722 }
4723 },
4724 "node_modules/tar/node_modules/mkdirp": {
4725 "version": "1.0.4",
4726 "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
4727 "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
4728 "license": "MIT",
4729 "bin": {
4730 "mkdirp": "bin/cmd.js"
4731 },
4732 "engines": {
4733 "node": ">=10"
4734 }
4735 },
4736 "node_modules/tar/node_modules/yallist": {
4737 "version": "4.0.0",
4738 "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
4739 "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
4740 "license": "ISC"
4741 },
4742 "node_modules/test-exclude": {
4743 "version": "6.0.0",
4744 "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz",
4745 "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==",
4746 "license": "ISC",
4747 "dependencies": {
4748 "@istanbuljs/schema": "^0.1.2",
4749 "glob": "^7.1.4",
4750 "minimatch": "^3.0.4"
4751 },
4752 "engines": {
4753 "node": ">=8"
4754 }
4755 },
4756 "node_modules/tmpl": {
4757 "version": "1.0.5",
4758 "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz",
4759 "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==",
4760 "license": "BSD-3-Clause"
4761 },
4762 "node_modules/to-regex-range": {
4763 "version": "5.0.1",
4764 "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
4765 "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
4766 "license": "MIT",
4767 "dependencies": {
4768 "is-number": "^7.0.0"
4769 },
4770 "engines": {
4771 "node": ">=8.0"
4772 }
4773 },
4774 "node_modules/toidentifier": {
4775 "version": "1.0.1",
4776 "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
4777 "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
4778 "license": "MIT",
4779 "engines": {
4780 "node": ">=0.6"
4781 }
4782 },
4783 "node_modules/tr46": {
4784 "version": "0.0.3",
4785 "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
4786 "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
4787 "license": "MIT"
4788 },
4789 "node_modules/type-detect": {
4790 "version": "4.0.8",
4791 "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
4792 "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
4793 "license": "MIT",
4794 "engines": {
4795 "node": ">=4"
4796 }
4797 },
4798 "node_modules/type-fest": {
4799 "version": "0.21.3",
4800 "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",
4801 "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",
4802 "license": "(MIT OR CC0-1.0)",
4803 "engines": {
4804 "node": ">=10"
4805 },
4806 "funding": {
4807 "url": "https://github.com/sponsors/sindresorhus"
4808 }
4809 },
4810 "node_modules/type-is": {
4811 "version": "1.6.18",
4812 "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
4813 "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
4814 "license": "MIT",
4815 "dependencies": {
4816 "media-typer": "0.3.0",
4817 "mime-types": "~2.1.24"
4818 },
4819 "engines": {
4820 "node": ">= 0.6"
4821 }
4822 },
4823 "node_modules/typedarray": {
4824 "version": "0.0.6",
4825 "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
4826 "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==",
4827 "license": "MIT"
4828 },
4829 "node_modules/undici-types": {
4830 "version": "7.19.2",
4831 "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.19.2.tgz",
4832 "integrity": "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg==",
4833 "license": "MIT"
4834 },
4835 "node_modules/unpipe": {
4836 "version": "1.0.0",
4837 "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
4838 "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
4839 "license": "MIT",
4840 "engines": {
4841 "node": ">= 0.8"
4842 }
4843 },
4844 "node_modules/update-browserslist-db": {
4845 "version": "1.2.3",
4846 "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",
4847 "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",
4848 "funding": [
4849 {
4850 "type": "opencollective",
4851 "url": "https://opencollective.com/browserslist"
4852 },
4853 {
4854 "type": "tidelift",
4855 "url": "https://tidelift.com/funding/github/npm/browserslist"
4856 },
4857 {
4858 "type": "github",
4859 "url": "https://github.com/sponsors/ai"
4860 }
4861 ],
4862 "license": "MIT",
4863 "dependencies": {
4864 "escalade": "^3.2.0",
4865 "picocolors": "^1.1.1"
4866 },
4867 "bin": {
4868 "update-browserslist-db": "cli.js"
4869 },
4870 "peerDependencies": {
4871 "browserslist": ">= 4.21.0"
4872 }
4873 },
4874 "node_modules/util-deprecate": {
4875 "version": "1.0.2",
4876 "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
4877 "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
4878 "license": "MIT"
4879 },
4880 "node_modules/utils-merge": {
4881 "version": "1.0.1",
4882 "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
4883 "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
4884 "license": "MIT",
4885 "engines": {
4886 "node": ">= 0.4.0"
4887 }
4888 },
4889 "node_modules/uuid": {
4890 "version": "9.0.1",
4891 "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
4892 "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
4893 "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
4894 "funding": [
4895 "https://github.com/sponsors/broofa",
4896 "https://github.com/sponsors/ctavan"
4897 ],
4898 "license": "MIT",
4899 "bin": {
4900 "uuid": "dist/bin/uuid"
4901 }
4902 },
4903 "node_modules/v8-to-istanbul": {
4904 "version": "9.3.0",
4905 "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz",
4906 "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==",
4907 "license": "ISC",
4908 "dependencies": {
4909 "@jridgewell/trace-mapping": "^0.3.12",
4910 "@types/istanbul-lib-coverage": "^2.0.1",
4911 "convert-source-map": "^2.0.0"
4912 },
4913 "engines": {
4914 "node": ">=10.12.0"
4915 }
4916 },
4917 "node_modules/vary": {
4918 "version": "1.1.2",
4919 "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
4920 "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
4921 "license": "MIT",
4922 "engines": {
4923 "node": ">= 0.8"
4924 }
4925 },
4926 "node_modules/walker": {
4927 "version": "1.0.8",
4928 "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz",
4929 "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==",
4930 "license": "Apache-2.0",
4931 "dependencies": {
4932 "makeerror": "1.0.12"
4933 }
4934 },
4935 "node_modules/webidl-conversions": {
4936 "version": "3.0.1",
4937 "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
4938 "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
4939 "license": "BSD-2-Clause"
4940 },
4941 "node_modules/whatwg-url": {
4942 "version": "5.0.0",
4943 "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
4944 "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
4945 "license": "MIT",
4946 "dependencies": {
4947 "tr46": "~0.0.3",
4948 "webidl-conversions": "^3.0.0"
4949 }
4950 },
4951 "node_modules/which": {
4952 "version": "2.0.2",
4953 "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
4954 "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
4955 "license": "ISC",
4956 "dependencies": {
4957 "isexe": "^2.0.0"
4958 },
4959 "bin": {
4960 "node-which": "bin/node-which"
4961 },
4962 "engines": {
4963 "node": ">= 8"
4964 }
4965 },
4966 "node_modules/wide-align": {
4967 "version": "1.1.5",
4968 "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
4969 "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
4970 "license": "ISC",
4971 "dependencies": {
4972 "string-width": "^1.0.2 || 2 || 3 || 4"
4973 }
4974 },
4975 "node_modules/wrap-ansi": {
4976 "version": "7.0.0",
4977 "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
4978 "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
4979 "license": "MIT",
4980 "dependencies": {
4981 "ansi-styles": "^4.0.0",
4982 "string-width": "^4.1.0",
4983 "strip-ansi": "^6.0.0"
4984 },
4985 "engines": {
4986 "node": ">=10"
4987 },
4988 "funding": {
4989 "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
4990 }
4991 },
4992 "node_modules/wrappy": {
4993 "version": "1.0.2",
4994 "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
4995 "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
4996 "license": "ISC"
4997 },
4998 "node_modules/write-file-atomic": {
4999 "version": "4.0.2",
5000 "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz",
5001 "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==",
5002 "license": "ISC",
5003 "dependencies": {
5004 "imurmurhash": "^0.1.4",
5005 "signal-exit": "^3.0.7"
5006 },
5007 "engines": {
5008 "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
5009 }
5010 },
5011 "node_modules/xtend": {
5012 "version": "4.0.2",
5013 "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
5014 "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
5015 "license": "MIT",
5016 "engines": {
5017 "node": ">=0.4"
5018 }
5019 },
5020 "node_modules/y18n": {
5021 "version": "5.0.8",
5022 "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
5023 "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
5024 "license": "ISC",
5025 "engines": {
5026 "node": ">=10"
5027 }
5028 },
5029 "node_modules/yallist": {
5030 "version": "3.1.1",
5031 "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
5032 "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
5033 "license": "ISC"
5034 },
5035 "node_modules/yargs": {
5036 "version": "17.7.2",
5037 "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
5038 "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
5039 "license": "MIT",
5040 "dependencies": {
5041 "cliui": "^8.0.1",
5042 "escalade": "^3.1.1",
5043 "get-caller-file": "^2.0.5",
5044 "require-directory": "^2.1.1",
5045 "string-width": "^4.2.3",
5046 "y18n": "^5.0.5",
5047 "yargs-parser": "^21.1.1"
5048 },
5049 "engines": {
5050 "node": ">=12"
5051 }
5052 },
5053 "node_modules/yargs-parser": {
5054 "version": "21.1.1",
5055 "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
5056 "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
5057 "license": "ISC",
5058 "engines": {
5059 "node": ">=12"
5060 }
5061 },
5062 "node_modules/yauzl": {
5063 "version": "2.10.0",
5064 "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
5065 "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",
5066 "license": "MIT",
5067 "dependencies": {
5068 "buffer-crc32": "~0.2.3",
5069 "fd-slicer": "~1.1.0"
5070 }
5071 },
5072 "node_modules/yocto-queue": {
5073 "version": "0.1.0",
5074 "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
5075 "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
5076 "license": "MIT",
5077 "engines": {
5078 "node": ">=10"
5079 },
5080 "funding": {
5081 "url": "https://github.com/sponsors/sindresorhus"
5082 }
5083 }
5084 }
5085 }
@@ -0,0 +1,5085 @@
1{
2 "name": "filemanager",
3 "version": "1.0.0",
4 "lockfileVersion": 3,
5 "requires": true,
6 "packages": {
7 "": {
8 "name": "filemanager",
9 "version": "1.0.0",
10 "dependencies": {
11 "bcrypt": "^5.1.1",
12 "express": "^4.18.2",
13 "geoip-lite": "^1.4.10",
14 "jest": "^29.7.0",
15 "jsonwebtoken": "^9.0.2",
16 "multer": "^1.4.5-lts.1",
17 "node-sqlite3-wasm": "^0.8.10",
18 "uuid": "^9.0.0"
19 }
20 },
21 "node_modules/@babel/code-frame": {
22 "version": "7.29.0",
23 "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",
24 "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",
25 "license": "MIT",
26 "dependencies": {
27 "@babel/helper-validator-identifier": "^7.28.5",
28 "js-tokens": "^4.0.0",
29 "picocolors": "^1.1.1"
30 },
31 "engines": {
32 "node": ">=6.9.0"
33 }
34 },
35 "node_modules/@babel/compat-data": {
36 "version": "7.29.3",
37 "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.3.tgz",
38 "integrity": "sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==",
39 "license": "MIT",
40 "engines": {
41 "node": ">=6.9.0"
42 }
43 },
44 "node_modules/@babel/core": {
45 "version": "7.29.0",
46 "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz",
47 "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",
48 "license": "MIT",
49 "dependencies": {
50 "@babel/code-frame": "^7.29.0",
51 "@babel/generator": "^7.29.0",
52 "@babel/helper-compilation-targets": "^7.28.6",
53 "@babel/helper-module-transforms": "^7.28.6",
54 "@babel/helpers": "^7.28.6",
55 "@babel/parser": "^7.29.0",
56 "@babel/template": "^7.28.6",
57 "@babel/traverse": "^7.29.0",
58 "@babel/types": "^7.29.0",
59 "@jridgewell/remapping": "^2.3.5",
60 "convert-source-map": "^2.0.0",
61 "debug": "^4.1.0",
62 "gensync": "^1.0.0-beta.2",
63 "json5": "^2.2.3",
64 "semver": "^6.3.1"
65 },
66 "engines": {
67 "node": ">=6.9.0"
68 },
69 "funding": {
70 "type": "opencollective",
71 "url": "https://opencollective.com/babel"
72 }
73 },
74 "node_modules/@babel/core/node_modules/debug": {
75 "version": "4.4.3",
76 "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
77 "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
78 "license": "MIT",
79 "dependencies": {
80 "ms": "^2.1.3"
81 },
82 "engines": {
83 "node": ">=6.0"
84 },
85 "peerDependenciesMeta": {
86 "supports-color": {
87 "optional": true
88 }
89 }
90 },
91 "node_modules/@babel/core/node_modules/ms": {
92 "version": "2.1.3",
93 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
94 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
95 "license": "MIT"
96 },
97 "node_modules/@babel/core/node_modules/semver": {
98 "version": "6.3.1",
99 "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
100 "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
101 "license": "ISC",
102 "bin": {
103 "semver": "bin/semver.js"
104 }
105 },
106 "node_modules/@babel/generator": {
107 "version": "7.29.1",
108 "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz",
109 "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==",
110 "license": "MIT",
111 "dependencies": {
112 "@babel/parser": "^7.29.0",
113 "@babel/types": "^7.29.0",
114 "@jridgewell/gen-mapping": "^0.3.12",
115 "@jridgewell/trace-mapping": "^0.3.28",
116 "jsesc": "^3.0.2"
117 },
118 "engines": {
119 "node": ">=6.9.0"
120 }
121 },
122 "node_modules/@babel/helper-compilation-targets": {
123 "version": "7.28.6",
124 "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",
125 "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",
126 "license": "MIT",
127 "dependencies": {
128 "@babel/compat-data": "^7.28.6",
129 "@babel/helper-validator-option": "^7.27.1",
130 "browserslist": "^4.24.0",
131 "lru-cache": "^5.1.1",
132 "semver": "^6.3.1"
133 },
134 "engines": {
135 "node": ">=6.9.0"
136 }
137 },
138 "node_modules/@babel/helper-compilation-targets/node_modules/semver": {
139 "version": "6.3.1",
140 "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
141 "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
142 "license": "ISC",
143 "bin": {
144 "semver": "bin/semver.js"
145 }
146 },
147 "node_modules/@babel/helper-globals": {
148 "version": "7.28.0",
149 "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",
150 "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",
151 "license": "MIT",
152 "engines": {
153 "node": ">=6.9.0"
154 }
155 },
156 "node_modules/@babel/helper-module-imports": {
157 "version": "7.28.6",
158 "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",
159 "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",
160 "license": "MIT",
161 "dependencies": {
162 "@babel/traverse": "^7.28.6",
163 "@babel/types": "^7.28.6"
164 },
165 "engines": {
166 "node": ">=6.9.0"
167 }
168 },
169 "node_modules/@babel/helper-module-transforms": {
170 "version": "7.28.6",
171 "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",
172 "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",
173 "license": "MIT",
174 "dependencies": {
175 "@babel/helper-module-imports": "^7.28.6",
176 "@babel/helper-validator-identifier": "^7.28.5",
177 "@babel/traverse": "^7.28.6"
178 },
179 "engines": {
180 "node": ">=6.9.0"
181 },
182 "peerDependencies": {
183 "@babel/core": "^7.0.0"
184 }
185 },
186 "node_modules/@babel/helper-plugin-utils": {
187 "version": "7.28.6",
188 "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz",
189 "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==",
190 "license": "MIT",
191 "engines": {
192 "node": ">=6.9.0"
193 }
194 },
195 "node_modules/@babel/helper-string-parser": {
196 "version": "7.27.1",
197 "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
198 "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
199 "license": "MIT",
200 "engines": {
201 "node": ">=6.9.0"
202 }
203 },
204 "node_modules/@babel/helper-validator-identifier": {
205 "version": "7.28.5",
206 "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
207 "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
208 "license": "MIT",
209 "engines": {
210 "node": ">=6.9.0"
211 }
212 },
213 "node_modules/@babel/helper-validator-option": {
214 "version": "7.27.1",
215 "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",
216 "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",
217 "license": "MIT",
218 "engines": {
219 "node": ">=6.9.0"
220 }
221 },
222 "node_modules/@babel/helpers": {
223 "version": "7.29.2",
224 "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz",
225 "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==",
226 "license": "MIT",
227 "dependencies": {
228 "@babel/template": "^7.28.6",
229 "@babel/types": "^7.29.0"
230 },
231 "engines": {
232 "node": ">=6.9.0"
233 }
234 },
235 "node_modules/@babel/parser": {
236 "version": "7.29.3",
237 "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz",
238 "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==",
239 "license": "MIT",
240 "dependencies": {
241 "@babel/types": "^7.29.0"
242 },
243 "bin": {
244 "parser": "bin/babel-parser.js"
245 },
246 "engines": {
247 "node": ">=6.0.0"
248 }
249 },
250 "node_modules/@babel/plugin-syntax-async-generators": {
251 "version": "7.8.4",
252 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz",
253 "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==",
254 "license": "MIT",
255 "dependencies": {
256 "@babel/helper-plugin-utils": "^7.8.0"
257 },
258 "peerDependencies": {
259 "@babel/core": "^7.0.0-0"
260 }
261 },
262 "node_modules/@babel/plugin-syntax-bigint": {
263 "version": "7.8.3",
264 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz",
265 "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==",
266 "license": "MIT",
267 "dependencies": {
268 "@babel/helper-plugin-utils": "^7.8.0"
269 },
270 "peerDependencies": {
271 "@babel/core": "^7.0.0-0"
272 }
273 },
274 "node_modules/@babel/plugin-syntax-class-properties": {
275 "version": "7.12.13",
276 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz",
277 "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==",
278 "license": "MIT",
279 "dependencies": {
280 "@babel/helper-plugin-utils": "^7.12.13"
281 },
282 "peerDependencies": {
283 "@babel/core": "^7.0.0-0"
284 }
285 },
286 "node_modules/@babel/plugin-syntax-class-static-block": {
287 "version": "7.14.5",
288 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz",
289 "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==",
290 "license": "MIT",
291 "dependencies": {
292 "@babel/helper-plugin-utils": "^7.14.5"
293 },
294 "engines": {
295 "node": ">=6.9.0"
296 },
297 "peerDependencies": {
298 "@babel/core": "^7.0.0-0"
299 }
300 },
301 "node_modules/@babel/plugin-syntax-import-attributes": {
302 "version": "7.28.6",
303 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.28.6.tgz",
304 "integrity": "sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw==",
305 "license": "MIT",
306 "dependencies": {
307 "@babel/helper-plugin-utils": "^7.28.6"
308 },
309 "engines": {
310 "node": ">=6.9.0"
311 },
312 "peerDependencies": {
313 "@babel/core": "^7.0.0-0"
314 }
315 },
316 "node_modules/@babel/plugin-syntax-import-meta": {
317 "version": "7.10.4",
318 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz",
319 "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==",
320 "license": "MIT",
321 "dependencies": {
322 "@babel/helper-plugin-utils": "^7.10.4"
323 },
324 "peerDependencies": {
325 "@babel/core": "^7.0.0-0"
326 }
327 },
328 "node_modules/@babel/plugin-syntax-json-strings": {
329 "version": "7.8.3",
330 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz",
331 "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==",
332 "license": "MIT",
333 "dependencies": {
334 "@babel/helper-plugin-utils": "^7.8.0"
335 },
336 "peerDependencies": {
337 "@babel/core": "^7.0.0-0"
338 }
339 },
340 "node_modules/@babel/plugin-syntax-jsx": {
341 "version": "7.28.6",
342 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.28.6.tgz",
343 "integrity": "sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==",
344 "license": "MIT",
345 "dependencies": {
346 "@babel/helper-plugin-utils": "^7.28.6"
347 },
348 "engines": {
349 "node": ">=6.9.0"
350 },
351 "peerDependencies": {
352 "@babel/core": "^7.0.0-0"
353 }
354 },
355 "node_modules/@babel/plugin-syntax-logical-assignment-operators": {
356 "version": "7.10.4",
357 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz",
358 "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==",
359 "license": "MIT",
360 "dependencies": {
361 "@babel/helper-plugin-utils": "^7.10.4"
362 },
363 "peerDependencies": {
364 "@babel/core": "^7.0.0-0"
365 }
366 },
367 "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": {
368 "version": "7.8.3",
369 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz",
370 "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==",
371 "license": "MIT",
372 "dependencies": {
373 "@babel/helper-plugin-utils": "^7.8.0"
374 },
375 "peerDependencies": {
376 "@babel/core": "^7.0.0-0"
377 }
378 },
379 "node_modules/@babel/plugin-syntax-numeric-separator": {
380 "version": "7.10.4",
381 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz",
382 "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==",
383 "license": "MIT",
384 "dependencies": {
385 "@babel/helper-plugin-utils": "^7.10.4"
386 },
387 "peerDependencies": {
388 "@babel/core": "^7.0.0-0"
389 }
390 },
391 "node_modules/@babel/plugin-syntax-object-rest-spread": {
392 "version": "7.8.3",
393 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz",
394 "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==",
395 "license": "MIT",
396 "dependencies": {
397 "@babel/helper-plugin-utils": "^7.8.0"
398 },
399 "peerDependencies": {
400 "@babel/core": "^7.0.0-0"
401 }
402 },
403 "node_modules/@babel/plugin-syntax-optional-catch-binding": {
404 "version": "7.8.3",
405 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz",
406 "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==",
407 "license": "MIT",
408 "dependencies": {
409 "@babel/helper-plugin-utils": "^7.8.0"
410 },
411 "peerDependencies": {
412 "@babel/core": "^7.0.0-0"
413 }
414 },
415 "node_modules/@babel/plugin-syntax-optional-chaining": {
416 "version": "7.8.3",
417 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz",
418 "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==",
419 "license": "MIT",
420 "dependencies": {
421 "@babel/helper-plugin-utils": "^7.8.0"
422 },
423 "peerDependencies": {
424 "@babel/core": "^7.0.0-0"
425 }
426 },
427 "node_modules/@babel/plugin-syntax-private-property-in-object": {
428 "version": "7.14.5",
429 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz",
430 "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==",
431 "license": "MIT",
432 "dependencies": {
433 "@babel/helper-plugin-utils": "^7.14.5"
434 },
435 "engines": {
436 "node": ">=6.9.0"
437 },
438 "peerDependencies": {
439 "@babel/core": "^7.0.0-0"
440 }
441 },
442 "node_modules/@babel/plugin-syntax-top-level-await": {
443 "version": "7.14.5",
444 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz",
445 "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==",
446 "license": "MIT",
447 "dependencies": {
448 "@babel/helper-plugin-utils": "^7.14.5"
449 },
450 "engines": {
451 "node": ">=6.9.0"
452 },
453 "peerDependencies": {
454 "@babel/core": "^7.0.0-0"
455 }
456 },
457 "node_modules/@babel/plugin-syntax-typescript": {
458 "version": "7.28.6",
459 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.28.6.tgz",
460 "integrity": "sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==",
461 "license": "MIT",
462 "dependencies": {
463 "@babel/helper-plugin-utils": "^7.28.6"
464 },
465 "engines": {
466 "node": ">=6.9.0"
467 },
468 "peerDependencies": {
469 "@babel/core": "^7.0.0-0"
470 }
471 },
472 "node_modules/@babel/template": {
473 "version": "7.28.6",
474 "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",
475 "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",
476 "license": "MIT",
477 "dependencies": {
478 "@babel/code-frame": "^7.28.6",
479 "@babel/parser": "^7.28.6",
480 "@babel/types": "^7.28.6"
481 },
482 "engines": {
483 "node": ">=6.9.0"
484 }
485 },
486 "node_modules/@babel/traverse": {
487 "version": "7.29.0",
488 "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz",
489 "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",
490 "license": "MIT",
491 "dependencies": {
492 "@babel/code-frame": "^7.29.0",
493 "@babel/generator": "^7.29.0",
494 "@babel/helper-globals": "^7.28.0",
495 "@babel/parser": "^7.29.0",
496 "@babel/template": "^7.28.6",
497 "@babel/types": "^7.29.0",
498 "debug": "^4.3.1"
499 },
500 "engines": {
501 "node": ">=6.9.0"
502 }
503 },
504 "node_modules/@babel/traverse/node_modules/debug": {
505 "version": "4.4.3",
506 "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
507 "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
508 "license": "MIT",
509 "dependencies": {
510 "ms": "^2.1.3"
511 },
512 "engines": {
513 "node": ">=6.0"
514 },
515 "peerDependenciesMeta": {
516 "supports-color": {
517 "optional": true
518 }
519 }
520 },
521 "node_modules/@babel/traverse/node_modules/ms": {
522 "version": "2.1.3",
523 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
524 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
525 "license": "MIT"
526 },
527 "node_modules/@babel/types": {
528 "version": "7.29.0",
529 "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",
530 "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",
531 "license": "MIT",
532 "dependencies": {
533 "@babel/helper-string-parser": "^7.27.1",
534 "@babel/helper-validator-identifier": "^7.28.5"
535 },
536 "engines": {
537 "node": ">=6.9.0"
538 }
539 },
540 "node_modules/@bcoe/v8-coverage": {
541 "version": "0.2.3",
542 "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz",
543 "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==",
544 "license": "MIT"
545 },
546 "node_modules/@istanbuljs/load-nyc-config": {
547 "version": "1.1.0",
548 "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz",
549 "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==",
550 "license": "ISC",
551 "dependencies": {
552 "camelcase": "^5.3.1",
553 "find-up": "^4.1.0",
554 "get-package-type": "^0.1.0",
555 "js-yaml": "^3.13.1",
556 "resolve-from": "^5.0.0"
557 },
558 "engines": {
559 "node": ">=8"
560 }
561 },
562 "node_modules/@istanbuljs/schema": {
563 "version": "0.1.6",
564 "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.6.tgz",
565 "integrity": "sha512-+Sg6GCR/wy1oSmQDFq4LQDAhm3ETKnorxN+y5nbLULOR3P0c14f2Wurzj3/xqPXtasLFfHd5iRFQ7AJt4KH2cw==",
566 "license": "MIT",
567 "engines": {
568 "node": ">=8"
569 }
570 },
571 "node_modules/@jest/console": {
572 "version": "29.7.0",
573 "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz",
574 "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==",
575 "license": "MIT",
576 "dependencies": {
577 "@jest/types": "^29.6.3",
578 "@types/node": "*",
579 "chalk": "^4.0.0",
580 "jest-message-util": "^29.7.0",
581 "jest-util": "^29.7.0",
582 "slash": "^3.0.0"
583 },
584 "engines": {
585 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
586 }
587 },
588 "node_modules/@jest/core": {
589 "version": "29.7.0",
590 "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz",
591 "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==",
592 "license": "MIT",
593 "dependencies": {
594 "@jest/console": "^29.7.0",
595 "@jest/reporters": "^29.7.0",
596 "@jest/test-result": "^29.7.0",
597 "@jest/transform": "^29.7.0",
598 "@jest/types": "^29.6.3",
599 "@types/node": "*",
600 "ansi-escapes": "^4.2.1",
601 "chalk": "^4.0.0",
602 "ci-info": "^3.2.0",
603 "exit": "^0.1.2",
604 "graceful-fs": "^4.2.9",
605 "jest-changed-files": "^29.7.0",
606 "jest-config": "^29.7.0",
607 "jest-haste-map": "^29.7.0",
608 "jest-message-util": "^29.7.0",
609 "jest-regex-util": "^29.6.3",
610 "jest-resolve": "^29.7.0",
611 "jest-resolve-dependencies": "^29.7.0",
612 "jest-runner": "^29.7.0",
613 "jest-runtime": "^29.7.0",
614 "jest-snapshot": "^29.7.0",
615 "jest-util": "^29.7.0",
616 "jest-validate": "^29.7.0",
617 "jest-watcher": "^29.7.0",
618 "micromatch": "^4.0.4",
619 "pretty-format": "^29.7.0",
620 "slash": "^3.0.0",
621 "strip-ansi": "^6.0.0"
622 },
623 "engines": {
624 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
625 },
626 "peerDependencies": {
627 "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"
628 },
629 "peerDependenciesMeta": {
630 "node-notifier": {
631 "optional": true
632 }
633 }
634 },
635 "node_modules/@jest/environment": {
636 "version": "29.7.0",
637 "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz",
638 "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==",
639 "license": "MIT",
640 "dependencies": {
641 "@jest/fake-timers": "^29.7.0",
642 "@jest/types": "^29.6.3",
643 "@types/node": "*",
644 "jest-mock": "^29.7.0"
645 },
646 "engines": {
647 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
648 }
649 },
650 "node_modules/@jest/expect": {
651 "version": "29.7.0",
652 "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz",
653 "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==",
654 "license": "MIT",
655 "dependencies": {
656 "expect": "^29.7.0",
657 "jest-snapshot": "^29.7.0"
658 },
659 "engines": {
660 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
661 }
662 },
663 "node_modules/@jest/expect-utils": {
664 "version": "29.7.0",
665 "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz",
666 "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==",
667 "license": "MIT",
668 "dependencies": {
669 "jest-get-type": "^29.6.3"
670 },
671 "engines": {
672 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
673 }
674 },
675 "node_modules/@jest/fake-timers": {
676 "version": "29.7.0",
677 "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz",
678 "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==",
679 "license": "MIT",
680 "dependencies": {
681 "@jest/types": "^29.6.3",
682 "@sinonjs/fake-timers": "^10.0.2",
683 "@types/node": "*",
684 "jest-message-util": "^29.7.0",
685 "jest-mock": "^29.7.0",
686 "jest-util": "^29.7.0"
687 },
688 "engines": {
689 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
690 }
691 },
692 "node_modules/@jest/globals": {
693 "version": "29.7.0",
694 "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz",
695 "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==",
696 "license": "MIT",
697 "dependencies": {
698 "@jest/environment": "^29.7.0",
699 "@jest/expect": "^29.7.0",
700 "@jest/types": "^29.6.3",
701 "jest-mock": "^29.7.0"
702 },
703 "engines": {
704 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
705 }
706 },
707 "node_modules/@jest/reporters": {
708 "version": "29.7.0",
709 "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz",
710 "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==",
711 "license": "MIT",
712 "dependencies": {
713 "@bcoe/v8-coverage": "^0.2.3",
714 "@jest/console": "^29.7.0",
715 "@jest/test-result": "^29.7.0",
716 "@jest/transform": "^29.7.0",
717 "@jest/types": "^29.6.3",
718 "@jridgewell/trace-mapping": "^0.3.18",
719 "@types/node": "*",
720 "chalk": "^4.0.0",
721 "collect-v8-coverage": "^1.0.0",
722 "exit": "^0.1.2",
723 "glob": "^7.1.3",
724 "graceful-fs": "^4.2.9",
725 "istanbul-lib-coverage": "^3.0.0",
726 "istanbul-lib-instrument": "^6.0.0",
727 "istanbul-lib-report": "^3.0.0",
728 "istanbul-lib-source-maps": "^4.0.0",
729 "istanbul-reports": "^3.1.3",
730 "jest-message-util": "^29.7.0",
731 "jest-util": "^29.7.0",
732 "jest-worker": "^29.7.0",
733 "slash": "^3.0.0",
734 "string-length": "^4.0.1",
735 "strip-ansi": "^6.0.0",
736 "v8-to-istanbul": "^9.0.1"
737 },
738 "engines": {
739 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
740 },
741 "peerDependencies": {
742 "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"
743 },
744 "peerDependenciesMeta": {
745 "node-notifier": {
746 "optional": true
747 }
748 }
749 },
750 "node_modules/@jest/schemas": {
751 "version": "29.6.3",
752 "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz",
753 "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==",
754 "license": "MIT",
755 "dependencies": {
756 "@sinclair/typebox": "^0.27.8"
757 },
758 "engines": {
759 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
760 }
761 },
762 "node_modules/@jest/source-map": {
763 "version": "29.6.3",
764 "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz",
765 "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==",
766 "license": "MIT",
767 "dependencies": {
768 "@jridgewell/trace-mapping": "^0.3.18",
769 "callsites": "^3.0.0",
770 "graceful-fs": "^4.2.9"
771 },
772 "engines": {
773 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
774 }
775 },
776 "node_modules/@jest/test-result": {
777 "version": "29.7.0",
778 "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz",
779 "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==",
780 "license": "MIT",
781 "dependencies": {
782 "@jest/console": "^29.7.0",
783 "@jest/types": "^29.6.3",
784 "@types/istanbul-lib-coverage": "^2.0.0",
785 "collect-v8-coverage": "^1.0.0"
786 },
787 "engines": {
788 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
789 }
790 },
791 "node_modules/@jest/test-sequencer": {
792 "version": "29.7.0",
793 "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz",
794 "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==",
795 "license": "MIT",
796 "dependencies": {
797 "@jest/test-result": "^29.7.0",
798 "graceful-fs": "^4.2.9",
799 "jest-haste-map": "^29.7.0",
800 "slash": "^3.0.0"
801 },
802 "engines": {
803 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
804 }
805 },
806 "node_modules/@jest/transform": {
807 "version": "29.7.0",
808 "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz",
809 "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==",
810 "license": "MIT",
811 "dependencies": {
812 "@babel/core": "^7.11.6",
813 "@jest/types": "^29.6.3",
814 "@jridgewell/trace-mapping": "^0.3.18",
815 "babel-plugin-istanbul": "^6.1.1",
816 "chalk": "^4.0.0",
817 "convert-source-map": "^2.0.0",
818 "fast-json-stable-stringify": "^2.1.0",
819 "graceful-fs": "^4.2.9",
820 "jest-haste-map": "^29.7.0",
821 "jest-regex-util": "^29.6.3",
822 "jest-util": "^29.7.0",
823 "micromatch": "^4.0.4",
824 "pirates": "^4.0.4",
825 "slash": "^3.0.0",
826 "write-file-atomic": "^4.0.2"
827 },
828 "engines": {
829 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
830 }
831 },
832 "node_modules/@jest/types": {
833 "version": "29.6.3",
834 "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz",
835 "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==",
836 "license": "MIT",
837 "dependencies": {
838 "@jest/schemas": "^29.6.3",
839 "@types/istanbul-lib-coverage": "^2.0.0",
840 "@types/istanbul-reports": "^3.0.0",
841 "@types/node": "*",
842 "@types/yargs": "^17.0.8",
843 "chalk": "^4.0.0"
844 },
845 "engines": {
846 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
847 }
848 },
849 "node_modules/@jridgewell/gen-mapping": {
850 "version": "0.3.13",
851 "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
852 "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
853 "license": "MIT",
854 "dependencies": {
855 "@jridgewell/sourcemap-codec": "^1.5.0",
856 "@jridgewell/trace-mapping": "^0.3.24"
857 }
858 },
859 "node_modules/@jridgewell/remapping": {
860 "version": "2.3.5",
861 "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
862 "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
863 "license": "MIT",
864 "dependencies": {
865 "@jridgewell/gen-mapping": "^0.3.5",
866 "@jridgewell/trace-mapping": "^0.3.24"
867 }
868 },
869 "node_modules/@jridgewell/resolve-uri": {
870 "version": "3.1.2",
871 "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
872 "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
873 "license": "MIT",
874 "engines": {
875 "node": ">=6.0.0"
876 }
877 },
878 "node_modules/@jridgewell/sourcemap-codec": {
879 "version": "1.5.5",
880 "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
881 "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
882 "license": "MIT"
883 },
884 "node_modules/@jridgewell/trace-mapping": {
885 "version": "0.3.31",
886 "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
887 "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
888 "license": "MIT",
889 "dependencies": {
890 "@jridgewell/resolve-uri": "^3.1.0",
891 "@jridgewell/sourcemap-codec": "^1.4.14"
892 }
893 },
894 "node_modules/@mapbox/node-pre-gyp": {
895 "version": "1.0.11",
896 "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz",
897 "integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==",
898 "license": "BSD-3-Clause",
899 "dependencies": {
900 "detect-libc": "^2.0.0",
901 "https-proxy-agent": "^5.0.0",
902 "make-dir": "^3.1.0",
903 "node-fetch": "^2.6.7",
904 "nopt": "^5.0.0",
905 "npmlog": "^5.0.1",
906 "rimraf": "^3.0.2",
907 "semver": "^7.3.5",
908 "tar": "^6.1.11"
909 },
910 "bin": {
911 "node-pre-gyp": "bin/node-pre-gyp"
912 }
913 },
914 "node_modules/@sinclair/typebox": {
915 "version": "0.27.10",
916 "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.10.tgz",
917 "integrity": "sha512-MTBk/3jGLNB2tVxv6uLlFh1iu64iYOQ2PbdOSK3NW8JZsmlaOh2q6sdtKowBhfw8QFLmYNzTW4/oK4uATIi6ZA==",
918 "license": "MIT"
919 },
920 "node_modules/@sinonjs/commons": {
921 "version": "3.0.1",
922 "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz",
923 "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==",
924 "license": "BSD-3-Clause",
925 "dependencies": {
926 "type-detect": "4.0.8"
927 }
928 },
929 "node_modules/@sinonjs/fake-timers": {
930 "version": "10.3.0",
931 "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz",
932 "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==",
933 "license": "BSD-3-Clause",
934 "dependencies": {
935 "@sinonjs/commons": "^3.0.0"
936 }
937 },
938 "node_modules/@types/babel__core": {
939 "version": "7.20.5",
940 "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
941 "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",
942 "license": "MIT",
943 "dependencies": {
944 "@babel/parser": "^7.20.7",
945 "@babel/types": "^7.20.7",
946 "@types/babel__generator": "*",
947 "@types/babel__template": "*",
948 "@types/babel__traverse": "*"
949 }
950 },
951 "node_modules/@types/babel__generator": {
952 "version": "7.27.0",
953 "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",
954 "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",
955 "license": "MIT",
956 "dependencies": {
957 "@babel/types": "^7.0.0"
958 }
959 },
960 "node_modules/@types/babel__template": {
961 "version": "7.4.4",
962 "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",
963 "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",
964 "license": "MIT",
965 "dependencies": {
966 "@babel/parser": "^7.1.0",
967 "@babel/types": "^7.0.0"
968 }
969 },
970 "node_modules/@types/babel__traverse": {
971 "version": "7.28.0",
972 "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",
973 "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",
974 "license": "MIT",
975 "dependencies": {
976 "@babel/types": "^7.28.2"
977 }
978 },
979 "node_modules/@types/graceful-fs": {
980 "version": "4.1.9",
981 "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz",
982 "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==",
983 "license": "MIT",
984 "dependencies": {
985 "@types/node": "*"
986 }
987 },
988 "node_modules/@types/istanbul-lib-coverage": {
989 "version": "2.0.6",
990 "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz",
991 "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==",
992 "license": "MIT"
993 },
994 "node_modules/@types/istanbul-lib-report": {
995 "version": "3.0.3",
996 "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz",
997 "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==",
998 "license": "MIT",
999 "dependencies": {
1000 "@types/istanbul-lib-coverage": "*"
1001 }
1002 },
1003 "node_modules/@types/istanbul-reports": {
1004 "version": "3.0.4",
1005 "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz",
1006 "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==",
1007 "license": "MIT",
1008 "dependencies": {
1009 "@types/istanbul-lib-report": "*"
1010 }
1011 },
1012 "node_modules/@types/node": {
1013 "version": "25.6.0",
1014 "resolved": "https://registry.npmjs.org/@types/node/-/node-25.6.0.tgz",
1015 "integrity": "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ==",
1016 "license": "MIT",
1017 "dependencies": {
1018 "undici-types": "~7.19.0"
1019 }
1020 },
1021 "node_modules/@types/stack-utils": {
1022 "version": "2.0.3",
1023 "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz",
1024 "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==",
1025 "license": "MIT"
1026 },
1027 "node_modules/@types/yargs": {
1028 "version": "17.0.35",
1029 "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz",
1030 "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==",
1031 "license": "MIT",
1032 "dependencies": {
1033 "@types/yargs-parser": "*"
1034 }
1035 },
1036 "node_modules/@types/yargs-parser": {
1037 "version": "21.0.3",
1038 "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz",
1039 "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==",
1040 "license": "MIT"
1041 },
1042 "node_modules/abbrev": {
1043 "version": "1.1.1",
1044 "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
1045 "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
1046 "license": "ISC"
1047 },
1048 "node_modules/accepts": {
1049 "version": "1.3.8",
1050 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
1051 "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
1052 "license": "MIT",
1053 "dependencies": {
1054 "mime-types": "~2.1.34",
1055 "negotiator": "0.6.3"
1056 },
1057 "engines": {
1058 "node": ">= 0.6"
1059 }
1060 },
1061 "node_modules/agent-base": {
1062 "version": "6.0.2",
1063 "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
1064 "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
1065 "license": "MIT",
1066 "dependencies": {
1067 "debug": "4"
1068 },
1069 "engines": {
1070 "node": ">= 6.0.0"
1071 }
1072 },
1073 "node_modules/agent-base/node_modules/debug": {
1074 "version": "4.4.3",
1075 "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
1076 "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
1077 "license": "MIT",
1078 "dependencies": {
1079 "ms": "^2.1.3"
1080 },
1081 "engines": {
1082 "node": ">=6.0"
1083 },
1084 "peerDependenciesMeta": {
1085 "supports-color": {
1086 "optional": true
1087 }
1088 }
1089 },
1090 "node_modules/agent-base/node_modules/ms": {
1091 "version": "2.1.3",
1092 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1093 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
1094 "license": "MIT"
1095 },
1096 "node_modules/ansi-escapes": {
1097 "version": "4.3.2",
1098 "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",
1099 "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",
1100 "license": "MIT",
1101 "dependencies": {
1102 "type-fest": "^0.21.3"
1103 },
1104 "engines": {
1105 "node": ">=8"
1106 },
1107 "funding": {
1108 "url": "https://github.com/sponsors/sindresorhus"
1109 }
1110 },
1111 "node_modules/ansi-regex": {
1112 "version": "5.0.1",
1113 "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
1114 "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
1115 "license": "MIT",
1116 "engines": {
1117 "node": ">=8"
1118 }
1119 },
1120 "node_modules/ansi-styles": {
1121 "version": "4.3.0",
1122 "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
1123 "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
1124 "license": "MIT",
1125 "dependencies": {
1126 "color-convert": "^2.0.1"
1127 },
1128 "engines": {
1129 "node": ">=8"
1130 },
1131 "funding": {
1132 "url": "https://github.com/chalk/ansi-styles?sponsor=1"
1133 }
1134 },
1135 "node_modules/anymatch": {
1136 "version": "3.1.3",
1137 "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
1138 "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
1139 "license": "ISC",
1140 "dependencies": {
1141 "normalize-path": "^3.0.0",
1142 "picomatch": "^2.0.4"
1143 },
1144 "engines": {
1145 "node": ">= 8"
1146 }
1147 },
1148 "node_modules/append-field": {
1149 "version": "1.0.0",
1150 "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz",
1151 "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==",
1152 "license": "MIT"
1153 },
1154 "node_modules/aproba": {
1155 "version": "2.1.0",
1156 "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.1.0.tgz",
1157 "integrity": "sha512-tLIEcj5GuR2RSTnxNKdkK0dJ/GrC7P38sUkiDmDuHfsHmbagTFAxDVIBltoklXEVIQ/f14IL8IMJ5pn9Hez1Ew==",
1158 "license": "ISC"
1159 },
1160 "node_modules/are-we-there-yet": {
1161 "version": "2.0.0",
1162 "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz",
1163 "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==",
1164 "deprecated": "This package is no longer supported.",
1165 "license": "ISC",
1166 "dependencies": {
1167 "delegates": "^1.0.0",
1168 "readable-stream": "^3.6.0"
1169 },
1170 "engines": {
1171 "node": ">=10"
1172 }
1173 },
1174 "node_modules/are-we-there-yet/node_modules/readable-stream": {
1175 "version": "3.6.2",
1176 "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
1177 "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
1178 "license": "MIT",
1179 "dependencies": {
1180 "inherits": "^2.0.3",
1181 "string_decoder": "^1.1.1",
1182 "util-deprecate": "^1.0.1"
1183 },
1184 "engines": {
1185 "node": ">= 6"
1186 }
1187 },
1188 "node_modules/argparse": {
1189 "version": "1.0.10",
1190 "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
1191 "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
1192 "license": "MIT",
1193 "dependencies": {
1194 "sprintf-js": "~1.0.2"
1195 }
1196 },
1197 "node_modules/argparse/node_modules/sprintf-js": {
1198 "version": "1.0.3",
1199 "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
1200 "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",
1201 "license": "BSD-3-Clause"
1202 },
1203 "node_modules/array-flatten": {
1204 "version": "1.1.1",
1205 "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
1206 "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
1207 "license": "MIT"
1208 },
1209 "node_modules/async": {
1210 "version": "2.6.4",
1211 "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz",
1212 "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==",
1213 "license": "MIT",
1214 "dependencies": {
1215 "lodash": "^4.17.14"
1216 }
1217 },
1218 "node_modules/babel-jest": {
1219 "version": "29.7.0",
1220 "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz",
1221 "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==",
1222 "license": "MIT",
1223 "dependencies": {
1224 "@jest/transform": "^29.7.0",
1225 "@types/babel__core": "^7.1.14",
1226 "babel-plugin-istanbul": "^6.1.1",
1227 "babel-preset-jest": "^29.6.3",
1228 "chalk": "^4.0.0",
1229 "graceful-fs": "^4.2.9",
1230 "slash": "^3.0.0"
1231 },
1232 "engines": {
1233 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1234 },
1235 "peerDependencies": {
1236 "@babel/core": "^7.8.0"
1237 }
1238 },
1239 "node_modules/babel-plugin-istanbul": {
1240 "version": "6.1.1",
1241 "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz",
1242 "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==",
1243 "license": "BSD-3-Clause",
1244 "dependencies": {
1245 "@babel/helper-plugin-utils": "^7.0.0",
1246 "@istanbuljs/load-nyc-config": "^1.0.0",
1247 "@istanbuljs/schema": "^0.1.2",
1248 "istanbul-lib-instrument": "^5.0.4",
1249 "test-exclude": "^6.0.0"
1250 },
1251 "engines": {
1252 "node": ">=8"
1253 }
1254 },
1255 "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": {
1256 "version": "5.2.1",
1257 "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz",
1258 "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==",
1259 "license": "BSD-3-Clause",
1260 "dependencies": {
1261 "@babel/core": "^7.12.3",
1262 "@babel/parser": "^7.14.7",
1263 "@istanbuljs/schema": "^0.1.2",
1264 "istanbul-lib-coverage": "^3.2.0",
1265 "semver": "^6.3.0"
1266 },
1267 "engines": {
1268 "node": ">=8"
1269 }
1270 },
1271 "node_modules/babel-plugin-istanbul/node_modules/semver": {
1272 "version": "6.3.1",
1273 "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
1274 "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
1275 "license": "ISC",
1276 "bin": {
1277 "semver": "bin/semver.js"
1278 }
1279 },
1280 "node_modules/babel-plugin-jest-hoist": {
1281 "version": "29.6.3",
1282 "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz",
1283 "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==",
1284 "license": "MIT",
1285 "dependencies": {
1286 "@babel/template": "^7.3.3",
1287 "@babel/types": "^7.3.3",
1288 "@types/babel__core": "^7.1.14",
1289 "@types/babel__traverse": "^7.0.6"
1290 },
1291 "engines": {
1292 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1293 }
1294 },
1295 "node_modules/babel-preset-current-node-syntax": {
1296 "version": "1.2.0",
1297 "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz",
1298 "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==",
1299 "license": "MIT",
1300 "dependencies": {
1301 "@babel/plugin-syntax-async-generators": "^7.8.4",
1302 "@babel/plugin-syntax-bigint": "^7.8.3",
1303 "@babel/plugin-syntax-class-properties": "^7.12.13",
1304 "@babel/plugin-syntax-class-static-block": "^7.14.5",
1305 "@babel/plugin-syntax-import-attributes": "^7.24.7",
1306 "@babel/plugin-syntax-import-meta": "^7.10.4",
1307 "@babel/plugin-syntax-json-strings": "^7.8.3",
1308 "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4",
1309 "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
1310 "@babel/plugin-syntax-numeric-separator": "^7.10.4",
1311 "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
1312 "@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
1313 "@babel/plugin-syntax-optional-chaining": "^7.8.3",
1314 "@babel/plugin-syntax-private-property-in-object": "^7.14.5",
1315 "@babel/plugin-syntax-top-level-await": "^7.14.5"
1316 },
1317 "peerDependencies": {
1318 "@babel/core": "^7.0.0 || ^8.0.0-0"
1319 }
1320 },
1321 "node_modules/babel-preset-jest": {
1322 "version": "29.6.3",
1323 "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz",
1324 "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==",
1325 "license": "MIT",
1326 "dependencies": {
1327 "babel-plugin-jest-hoist": "^29.6.3",
1328 "babel-preset-current-node-syntax": "^1.0.0"
1329 },
1330 "engines": {
1331 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1332 },
1333 "peerDependencies": {
1334 "@babel/core": "^7.0.0"
1335 }
1336 },
1337 "node_modules/balanced-match": {
1338 "version": "1.0.2",
1339 "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
1340 "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
1341 "license": "MIT"
1342 },
1343 "node_modules/baseline-browser-mapping": {
1344 "version": "2.10.27",
1345 "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.27.tgz",
1346 "integrity": "sha512-zEs/ufmZoUd7WftKpKyXaT6RFxpQ5Qm9xytKRHvJfxFV9DFJkZph9RvJ1LcOUi0Z1ZVijMte65JbILeV+8QQEA==",
1347 "license": "Apache-2.0",
1348 "bin": {
1349 "baseline-browser-mapping": "dist/cli.cjs"
1350 },
1351 "engines": {
1352 "node": ">=6.0.0"
1353 }
1354 },
1355 "node_modules/bcrypt": {
1356 "version": "5.1.1",
1357 "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.1.tgz",
1358 "integrity": "sha512-AGBHOG5hPYZ5Xl9KXzU5iKq9516yEmvCKDg3ecP5kX2aB6UqTeXZxk2ELnDgDm6BQSMlLt9rDB4LoSMx0rYwww==",
1359 "hasInstallScript": true,
1360 "license": "MIT",
1361 "dependencies": {
1362 "@mapbox/node-pre-gyp": "^1.0.11",
1363 "node-addon-api": "^5.0.0"
1364 },
1365 "engines": {
1366 "node": ">= 10.0.0"
1367 }
1368 },
1369 "node_modules/body-parser": {
1370 "version": "1.20.5",
1371 "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.5.tgz",
1372 "integrity": "sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==",
1373 "license": "MIT",
1374 "dependencies": {
1375 "bytes": "~3.1.2",
1376 "content-type": "~1.0.5",
1377 "debug": "2.6.9",
1378 "depd": "2.0.0",
1379 "destroy": "~1.2.0",
1380 "http-errors": "~2.0.1",
1381 "iconv-lite": "~0.4.24",
1382 "on-finished": "~2.4.1",
1383 "qs": "~6.15.1",
1384 "raw-body": "~2.5.3",
1385 "type-is": "~1.6.18",
1386 "unpipe": "~1.0.0"
1387 },
1388 "engines": {
1389 "node": ">= 0.8",
1390 "npm": "1.2.8000 || >= 1.4.16"
1391 }
1392 },
1393 "node_modules/body-parser/node_modules/qs": {
1394 "version": "6.15.1",
1395 "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.1.tgz",
1396 "integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==",
1397 "license": "BSD-3-Clause",
1398 "dependencies": {
1399 "side-channel": "^1.1.0"
1400 },
1401 "engines": {
1402 "node": ">=0.6"
1403 },
1404 "funding": {
1405 "url": "https://github.com/sponsors/ljharb"
1406 }
1407 },
1408 "node_modules/brace-expansion": {
1409 "version": "1.1.14",
1410 "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.14.tgz",
1411 "integrity": "sha512-MWPGfDxnyzKU7rNOW9SP/c50vi3xrmrua/+6hfPbCS2ABNWfx24vPidzvC7krjU/RTo235sV776ymlsMtGKj8g==",
1412 "license": "MIT",
1413 "dependencies": {
1414 "balanced-match": "^1.0.0",
1415 "concat-map": "0.0.1"
1416 }
1417 },
1418 "node_modules/braces": {
1419 "version": "3.0.3",
1420 "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
1421 "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
1422 "license": "MIT",
1423 "dependencies": {
1424 "fill-range": "^7.1.1"
1425 },
1426 "engines": {
1427 "node": ">=8"
1428 }
1429 },
1430 "node_modules/browserslist": {
1431 "version": "4.28.2",
1432 "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz",
1433 "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==",
1434 "funding": [
1435 {
1436 "type": "opencollective",
1437 "url": "https://opencollective.com/browserslist"
1438 },
1439 {
1440 "type": "tidelift",
1441 "url": "https://tidelift.com/funding/github/npm/browserslist"
1442 },
1443 {
1444 "type": "github",
1445 "url": "https://github.com/sponsors/ai"
1446 }
1447 ],
1448 "license": "MIT",
1449 "dependencies": {
1450 "baseline-browser-mapping": "^2.10.12",
1451 "caniuse-lite": "^1.0.30001782",
1452 "electron-to-chromium": "^1.5.328",
1453 "node-releases": "^2.0.36",
1454 "update-browserslist-db": "^1.2.3"
1455 },
1456 "bin": {
1457 "browserslist": "cli.js"
1458 },
1459 "engines": {
1460 "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
1461 }
1462 },
1463 "node_modules/bser": {
1464 "version": "2.1.1",
1465 "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz",
1466 "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==",
1467 "license": "Apache-2.0",
1468 "dependencies": {
1469 "node-int64": "^0.4.0"
1470 }
1471 },
1472 "node_modules/buffer-crc32": {
1473 "version": "0.2.13",
1474 "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
1475 "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",
1476 "license": "MIT",
1477 "engines": {
1478 "node": "*"
1479 }
1480 },
1481 "node_modules/buffer-equal-constant-time": {
1482 "version": "1.0.1",
1483 "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
1484 "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",
1485 "license": "BSD-3-Clause"
1486 },
1487 "node_modules/buffer-from": {
1488 "version": "1.1.2",
1489 "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
1490 "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
1491 "license": "MIT"
1492 },
1493 "node_modules/busboy": {
1494 "version": "1.6.0",
1495 "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz",
1496 "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==",
1497 "dependencies": {
1498 "streamsearch": "^1.1.0"
1499 },
1500 "engines": {
1501 "node": ">=10.16.0"
1502 }
1503 },
1504 "node_modules/bytes": {
1505 "version": "3.1.2",
1506 "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
1507 "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
1508 "license": "MIT",
1509 "engines": {
1510 "node": ">= 0.8"
1511 }
1512 },
1513 "node_modules/call-bind-apply-helpers": {
1514 "version": "1.0.2",
1515 "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
1516 "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
1517 "license": "MIT",
1518 "dependencies": {
1519 "es-errors": "^1.3.0",
1520 "function-bind": "^1.1.2"
1521 },
1522 "engines": {
1523 "node": ">= 0.4"
1524 }
1525 },
1526 "node_modules/call-bound": {
1527 "version": "1.0.4",
1528 "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
1529 "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
1530 "license": "MIT",
1531 "dependencies": {
1532 "call-bind-apply-helpers": "^1.0.2",
1533 "get-intrinsic": "^1.3.0"
1534 },
1535 "engines": {
1536 "node": ">= 0.4"
1537 },
1538 "funding": {
1539 "url": "https://github.com/sponsors/ljharb"
1540 }
1541 },
1542 "node_modules/callsites": {
1543 "version": "3.1.0",
1544 "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
1545 "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
1546 "license": "MIT",
1547 "engines": {
1548 "node": ">=6"
1549 }
1550 },
1551 "node_modules/camelcase": {
1552 "version": "5.3.1",
1553 "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
1554 "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
1555 "license": "MIT",
1556 "engines": {
1557 "node": ">=6"
1558 }
1559 },
1560 "node_modules/caniuse-lite": {
1561 "version": "1.0.30001791",
1562 "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001791.tgz",
1563 "integrity": "sha512-yk0l/YSrOnFZk3UROpDLQD9+kC1l4meK/wed583AXrzoarMGJcbRi2Q4RaUYbKxYAsZ8sWmaSa/DsLmdBeI1vQ==",
1564 "funding": [
1565 {
1566 "type": "opencollective",
1567 "url": "https://opencollective.com/browserslist"
1568 },
1569 {
1570 "type": "tidelift",
1571 "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
1572 },
1573 {
1574 "type": "github",
1575 "url": "https://github.com/sponsors/ai"
1576 }
1577 ],
1578 "license": "CC-BY-4.0"
1579 },
1580 "node_modules/chalk": {
1581 "version": "4.1.2",
1582 "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
1583 "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
1584 "license": "MIT",
1585 "dependencies": {
1586 "ansi-styles": "^4.1.0",
1587 "supports-color": "^7.1.0"
1588 },
1589 "engines": {
1590 "node": ">=10"
1591 },
1592 "funding": {
1593 "url": "https://github.com/chalk/chalk?sponsor=1"
1594 }
1595 },
1596 "node_modules/char-regex": {
1597 "version": "1.0.2",
1598 "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz",
1599 "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==",
1600 "license": "MIT",
1601 "engines": {
1602 "node": ">=10"
1603 }
1604 },
1605 "node_modules/chownr": {
1606 "version": "2.0.0",
1607 "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
1608 "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",
1609 "license": "ISC",
1610 "engines": {
1611 "node": ">=10"
1612 }
1613 },
1614 "node_modules/ci-info": {
1615 "version": "3.9.0",
1616 "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",
1617 "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==",
1618 "funding": [
1619 {
1620 "type": "github",
1621 "url": "https://github.com/sponsors/sibiraj-s"
1622 }
1623 ],
1624 "license": "MIT",
1625 "engines": {
1626 "node": ">=8"
1627 }
1628 },
1629 "node_modules/cjs-module-lexer": {
1630 "version": "1.4.3",
1631 "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz",
1632 "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==",
1633 "license": "MIT"
1634 },
1635 "node_modules/cliui": {
1636 "version": "8.0.1",
1637 "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
1638 "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
1639 "license": "ISC",
1640 "dependencies": {
1641 "string-width": "^4.2.0",
1642 "strip-ansi": "^6.0.1",
1643 "wrap-ansi": "^7.0.0"
1644 },
1645 "engines": {
1646 "node": ">=12"
1647 }
1648 },
1649 "node_modules/co": {
1650 "version": "4.6.0",
1651 "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
1652 "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==",
1653 "license": "MIT",
1654 "engines": {
1655 "iojs": ">= 1.0.0",
1656 "node": ">= 0.12.0"
1657 }
1658 },
1659 "node_modules/collect-v8-coverage": {
1660 "version": "1.0.3",
1661 "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz",
1662 "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==",
1663 "license": "MIT"
1664 },
1665 "node_modules/color-convert": {
1666 "version": "2.0.1",
1667 "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
1668 "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
1669 "license": "MIT",
1670 "dependencies": {
1671 "color-name": "~1.1.4"
1672 },
1673 "engines": {
1674 "node": ">=7.0.0"
1675 }
1676 },
1677 "node_modules/color-name": {
1678 "version": "1.1.4",
1679 "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
1680 "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
1681 "license": "MIT"
1682 },
1683 "node_modules/color-support": {
1684 "version": "1.1.3",
1685 "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",
1686 "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",
1687 "license": "ISC",
1688 "bin": {
1689 "color-support": "bin.js"
1690 }
1691 },
1692 "node_modules/concat-map": {
1693 "version": "0.0.1",
1694 "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
1695 "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
1696 "license": "MIT"
1697 },
1698 "node_modules/concat-stream": {
1699 "version": "1.6.2",
1700 "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",
1701 "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
1702 "engines": [
1703 "node >= 0.8"
1704 ],
1705 "license": "MIT",
1706 "dependencies": {
1707 "buffer-from": "^1.0.0",
1708 "inherits": "^2.0.3",
1709 "readable-stream": "^2.2.2",
1710 "typedarray": "^0.0.6"
1711 }
1712 },
1713 "node_modules/console-control-strings": {
1714 "version": "1.1.0",
1715 "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
1716 "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==",
1717 "license": "ISC"
1718 },
1719 "node_modules/content-disposition": {
1720 "version": "0.5.4",
1721 "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
1722 "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
1723 "license": "MIT",
1724 "dependencies": {
1725 "safe-buffer": "5.2.1"
1726 },
1727 "engines": {
1728 "node": ">= 0.6"
1729 }
1730 },
1731 "node_modules/content-type": {
1732 "version": "1.0.5",
1733 "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
1734 "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
1735 "license": "MIT",
1736 "engines": {
1737 "node": ">= 0.6"
1738 }
1739 },
1740 "node_modules/convert-source-map": {
1741 "version": "2.0.0",
1742 "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
1743 "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
1744 "license": "MIT"
1745 },
1746 "node_modules/cookie": {
1747 "version": "0.7.2",
1748 "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
1749 "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
1750 "license": "MIT",
1751 "engines": {
1752 "node": ">= 0.6"
1753 }
1754 },
1755 "node_modules/cookie-signature": {
1756 "version": "1.0.7",
1757 "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz",
1758 "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",
1759 "license": "MIT"
1760 },
1761 "node_modules/core-util-is": {
1762 "version": "1.0.3",
1763 "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
1764 "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
1765 "license": "MIT"
1766 },
1767 "node_modules/create-jest": {
1768 "version": "29.7.0",
1769 "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz",
1770 "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==",
1771 "license": "MIT",
1772 "dependencies": {
1773 "@jest/types": "^29.6.3",
1774 "chalk": "^4.0.0",
1775 "exit": "^0.1.2",
1776 "graceful-fs": "^4.2.9",
1777 "jest-config": "^29.7.0",
1778 "jest-util": "^29.7.0",
1779 "prompts": "^2.0.1"
1780 },
1781 "bin": {
1782 "create-jest": "bin/create-jest.js"
1783 },
1784 "engines": {
1785 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1786 }
1787 },
1788 "node_modules/cross-spawn": {
1789 "version": "7.0.6",
1790 "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
1791 "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
1792 "license": "MIT",
1793 "dependencies": {
1794 "path-key": "^3.1.0",
1795 "shebang-command": "^2.0.0",
1796 "which": "^2.0.1"
1797 },
1798 "engines": {
1799 "node": ">= 8"
1800 }
1801 },
1802 "node_modules/debug": {
1803 "version": "2.6.9",
1804 "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
1805 "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
1806 "license": "MIT",
1807 "dependencies": {
1808 "ms": "2.0.0"
1809 }
1810 },
1811 "node_modules/dedent": {
1812 "version": "1.7.2",
1813 "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.2.tgz",
1814 "integrity": "sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==",
1815 "license": "MIT",
1816 "peerDependencies": {
1817 "babel-plugin-macros": "^3.1.0"
1818 },
1819 "peerDependenciesMeta": {
1820 "babel-plugin-macros": {
1821 "optional": true
1822 }
1823 }
1824 },
1825 "node_modules/deepmerge": {
1826 "version": "4.3.1",
1827 "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
1828 "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",
1829 "license": "MIT",
1830 "engines": {
1831 "node": ">=0.10.0"
1832 }
1833 },
1834 "node_modules/delegates": {
1835 "version": "1.0.0",
1836 "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
1837 "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==",
1838 "license": "MIT"
1839 },
1840 "node_modules/depd": {
1841 "version": "2.0.0",
1842 "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
1843 "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
1844 "license": "MIT",
1845 "engines": {
1846 "node": ">= 0.8"
1847 }
1848 },
1849 "node_modules/destroy": {
1850 "version": "1.2.0",
1851 "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
1852 "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
1853 "license": "MIT",
1854 "engines": {
1855 "node": ">= 0.8",
1856 "npm": "1.2.8000 || >= 1.4.16"
1857 }
1858 },
1859 "node_modules/detect-libc": {
1860 "version": "2.1.2",
1861 "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
1862 "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
1863 "license": "Apache-2.0",
1864 "engines": {
1865 "node": ">=8"
1866 }
1867 },
1868 "node_modules/detect-newline": {
1869 "version": "3.1.0",
1870 "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz",
1871 "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==",
1872 "license": "MIT",
1873 "engines": {
1874 "node": ">=8"
1875 }
1876 },
1877 "node_modules/diff-sequences": {
1878 "version": "29.6.3",
1879 "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz",
1880 "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==",
1881 "license": "MIT",
1882 "engines": {
1883 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1884 }
1885 },
1886 "node_modules/dunder-proto": {
1887 "version": "1.0.1",
1888 "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
1889 "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
1890 "license": "MIT",
1891 "dependencies": {
1892 "call-bind-apply-helpers": "^1.0.1",
1893 "es-errors": "^1.3.0",
1894 "gopd": "^1.2.0"
1895 },
1896 "engines": {
1897 "node": ">= 0.4"
1898 }
1899 },
1900 "node_modules/ecdsa-sig-formatter": {
1901 "version": "1.0.11",
1902 "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
1903 "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
1904 "license": "Apache-2.0",
1905 "dependencies": {
1906 "safe-buffer": "^5.0.1"
1907 }
1908 },
1909 "node_modules/ee-first": {
1910 "version": "1.1.1",
1911 "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
1912 "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
1913 "license": "MIT"
1914 },
1915 "node_modules/electron-to-chromium": {
1916 "version": "1.5.349",
1917 "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.349.tgz",
1918 "integrity": "sha512-QsWVGyRuY07Aqb234QytTfwd5d9AJlfNIQ5wIOl1L+PZDzI9d9+Fn0FRale/QYlFxt/bUnB0/nLd1jFPGxGK1A==",
1919 "license": "ISC"
1920 },
1921 "node_modules/emittery": {
1922 "version": "0.13.1",
1923 "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz",
1924 "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==",
1925 "license": "MIT",
1926 "engines": {
1927 "node": ">=12"
1928 },
1929 "funding": {
1930 "url": "https://github.com/sindresorhus/emittery?sponsor=1"
1931 }
1932 },
1933 "node_modules/emoji-regex": {
1934 "version": "8.0.0",
1935 "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
1936 "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
1937 "license": "MIT"
1938 },
1939 "node_modules/encodeurl": {
1940 "version": "2.0.0",
1941 "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
1942 "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
1943 "license": "MIT",
1944 "engines": {
1945 "node": ">= 0.8"
1946 }
1947 },
1948 "node_modules/error-ex": {
1949 "version": "1.3.4",
1950 "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz",
1951 "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==",
1952 "license": "MIT",
1953 "dependencies": {
1954 "is-arrayish": "^0.2.1"
1955 }
1956 },
1957 "node_modules/es-define-property": {
1958 "version": "1.0.1",
1959 "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
1960 "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
1961 "license": "MIT",
1962 "engines": {
1963 "node": ">= 0.4"
1964 }
1965 },
1966 "node_modules/es-errors": {
1967 "version": "1.3.0",
1968 "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
1969 "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
1970 "license": "MIT",
1971 "engines": {
1972 "node": ">= 0.4"
1973 }
1974 },
1975 "node_modules/es-object-atoms": {
1976 "version": "1.1.1",
1977 "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
1978 "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
1979 "license": "MIT",
1980 "dependencies": {
1981 "es-errors": "^1.3.0"
1982 },
1983 "engines": {
1984 "node": ">= 0.4"
1985 }
1986 },
1987 "node_modules/escalade": {
1988 "version": "3.2.0",
1989 "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
1990 "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
1991 "license": "MIT",
1992 "engines": {
1993 "node": ">=6"
1994 }
1995 },
1996 "node_modules/escape-html": {
1997 "version": "1.0.3",
1998 "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
1999 "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
2000 "license": "MIT"
2001 },
2002 "node_modules/escape-string-regexp": {
2003 "version": "2.0.0",
2004 "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",
2005 "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==",
2006 "license": "MIT",
2007 "engines": {
2008 "node": ">=8"
2009 }
2010 },
2011 "node_modules/esprima": {
2012 "version": "4.0.1",
2013 "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
2014 "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
2015 "license": "BSD-2-Clause",
2016 "bin": {
2017 "esparse": "bin/esparse.js",
2018 "esvalidate": "bin/esvalidate.js"
2019 },
2020 "engines": {
2021 "node": ">=4"
2022 }
2023 },
2024 "node_modules/etag": {
2025 "version": "1.8.1",
2026 "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
2027 "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
2028 "license": "MIT",
2029 "engines": {
2030 "node": ">= 0.6"
2031 }
2032 },
2033 "node_modules/execa": {
2034 "version": "5.1.1",
2035 "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",
2036 "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
2037 "license": "MIT",
2038 "dependencies": {
2039 "cross-spawn": "^7.0.3",
2040 "get-stream": "^6.0.0",
2041 "human-signals": "^2.1.0",
2042 "is-stream": "^2.0.0",
2043 "merge-stream": "^2.0.0",
2044 "npm-run-path": "^4.0.1",
2045 "onetime": "^5.1.2",
2046 "signal-exit": "^3.0.3",
2047 "strip-final-newline": "^2.0.0"
2048 },
2049 "engines": {
2050 "node": ">=10"
2051 },
2052 "funding": {
2053 "url": "https://github.com/sindresorhus/execa?sponsor=1"
2054 }
2055 },
2056 "node_modules/exit": {
2057 "version": "0.1.2",
2058 "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
2059 "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==",
2060 "engines": {
2061 "node": ">= 0.8.0"
2062 }
2063 },
2064 "node_modules/expect": {
2065 "version": "29.7.0",
2066 "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz",
2067 "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==",
2068 "license": "MIT",
2069 "dependencies": {
2070 "@jest/expect-utils": "^29.7.0",
2071 "jest-get-type": "^29.6.3",
2072 "jest-matcher-utils": "^29.7.0",
2073 "jest-message-util": "^29.7.0",
2074 "jest-util": "^29.7.0"
2075 },
2076 "engines": {
2077 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2078 }
2079 },
2080 "node_modules/express": {
2081 "version": "4.22.1",
2082 "resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz",
2083 "integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==",
2084 "license": "MIT",
2085 "dependencies": {
2086 "accepts": "~1.3.8",
2087 "array-flatten": "1.1.1",
2088 "body-parser": "~1.20.3",
2089 "content-disposition": "~0.5.4",
2090 "content-type": "~1.0.4",
2091 "cookie": "~0.7.1",
2092 "cookie-signature": "~1.0.6",
2093 "debug": "2.6.9",
2094 "depd": "2.0.0",
2095 "encodeurl": "~2.0.0",
2096 "escape-html": "~1.0.3",
2097 "etag": "~1.8.1",
2098 "finalhandler": "~1.3.1",
2099 "fresh": "~0.5.2",
2100 "http-errors": "~2.0.0",
2101 "merge-descriptors": "1.0.3",
2102 "methods": "~1.1.2",
2103 "on-finished": "~2.4.1",
2104 "parseurl": "~1.3.3",
2105 "path-to-regexp": "~0.1.12",
2106 "proxy-addr": "~2.0.7",
2107 "qs": "~6.14.0",
2108 "range-parser": "~1.2.1",
2109 "safe-buffer": "5.2.1",
2110 "send": "~0.19.0",
2111 "serve-static": "~1.16.2",
2112 "setprototypeof": "1.2.0",
2113 "statuses": "~2.0.1",
2114 "type-is": "~1.6.18",
2115 "utils-merge": "1.0.1",
2116 "vary": "~1.1.2"
2117 },
2118 "engines": {
2119 "node": ">= 0.10.0"
2120 },
2121 "funding": {
2122 "type": "opencollective",
2123 "url": "https://opencollective.com/express"
2124 }
2125 },
2126 "node_modules/fast-json-stable-stringify": {
2127 "version": "2.1.0",
2128 "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
2129 "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
2130 "license": "MIT"
2131 },
2132 "node_modules/fb-watchman": {
2133 "version": "2.0.2",
2134 "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz",
2135 "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==",
2136 "license": "Apache-2.0",
2137 "dependencies": {
2138 "bser": "2.1.1"
2139 }
2140 },
2141 "node_modules/fd-slicer": {
2142 "version": "1.1.0",
2143 "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
2144 "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",
2145 "license": "MIT",
2146 "dependencies": {
2147 "pend": "~1.2.0"
2148 }
2149 },
2150 "node_modules/fill-range": {
2151 "version": "7.1.1",
2152 "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
2153 "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
2154 "license": "MIT",
2155 "dependencies": {
2156 "to-regex-range": "^5.0.1"
2157 },
2158 "engines": {
2159 "node": ">=8"
2160 }
2161 },
2162 "node_modules/finalhandler": {
2163 "version": "1.3.2",
2164 "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz",
2165 "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==",
2166 "license": "MIT",
2167 "dependencies": {
2168 "debug": "2.6.9",
2169 "encodeurl": "~2.0.0",
2170 "escape-html": "~1.0.3",
2171 "on-finished": "~2.4.1",
2172 "parseurl": "~1.3.3",
2173 "statuses": "~2.0.2",
2174 "unpipe": "~1.0.0"
2175 },
2176 "engines": {
2177 "node": ">= 0.8"
2178 }
2179 },
2180 "node_modules/find-up": {
2181 "version": "4.1.0",
2182 "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
2183 "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
2184 "license": "MIT",
2185 "dependencies": {
2186 "locate-path": "^5.0.0",
2187 "path-exists": "^4.0.0"
2188 },
2189 "engines": {
2190 "node": ">=8"
2191 }
2192 },
2193 "node_modules/forwarded": {
2194 "version": "0.2.0",
2195 "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
2196 "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
2197 "license": "MIT",
2198 "engines": {
2199 "node": ">= 0.6"
2200 }
2201 },
2202 "node_modules/fresh": {
2203 "version": "0.5.2",
2204 "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
2205 "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
2206 "license": "MIT",
2207 "engines": {
2208 "node": ">= 0.6"
2209 }
2210 },
2211 "node_modules/fs-minipass": {
2212 "version": "2.1.0",
2213 "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
2214 "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
2215 "license": "ISC",
2216 "dependencies": {
2217 "minipass": "^3.0.0"
2218 },
2219 "engines": {
2220 "node": ">= 8"
2221 }
2222 },
2223 "node_modules/fs-minipass/node_modules/minipass": {
2224 "version": "3.3.6",
2225 "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
2226 "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
2227 "license": "ISC",
2228 "dependencies": {
2229 "yallist": "^4.0.0"
2230 },
2231 "engines": {
2232 "node": ">=8"
2233 }
2234 },
2235 "node_modules/fs-minipass/node_modules/yallist": {
2236 "version": "4.0.0",
2237 "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
2238 "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
2239 "license": "ISC"
2240 },
2241 "node_modules/fs.realpath": {
2242 "version": "1.0.0",
2243 "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
2244 "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
2245 "license": "ISC"
2246 },
2247 "node_modules/fsevents": {
2248 "version": "2.3.3",
2249 "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
2250 "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
2251 "hasInstallScript": true,
2252 "license": "MIT",
2253 "optional": true,
2254 "os": [
2255 "darwin"
2256 ],
2257 "engines": {
2258 "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
2259 }
2260 },
2261 "node_modules/function-bind": {
2262 "version": "1.1.2",
2263 "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
2264 "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
2265 "license": "MIT",
2266 "funding": {
2267 "url": "https://github.com/sponsors/ljharb"
2268 }
2269 },
2270 "node_modules/gauge": {
2271 "version": "3.0.2",
2272 "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz",
2273 "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==",
2274 "deprecated": "This package is no longer supported.",
2275 "license": "ISC",
2276 "dependencies": {
2277 "aproba": "^1.0.3 || ^2.0.0",
2278 "color-support": "^1.1.2",
2279 "console-control-strings": "^1.0.0",
2280 "has-unicode": "^2.0.1",
2281 "object-assign": "^4.1.1",
2282 "signal-exit": "^3.0.0",
2283 "string-width": "^4.2.3",
2284 "strip-ansi": "^6.0.1",
2285 "wide-align": "^1.1.2"
2286 },
2287 "engines": {
2288 "node": ">=10"
2289 }
2290 },
2291 "node_modules/gensync": {
2292 "version": "1.0.0-beta.2",
2293 "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
2294 "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
2295 "license": "MIT",
2296 "engines": {
2297 "node": ">=6.9.0"
2298 }
2299 },
2300 "node_modules/geoip-lite": {
2301 "version": "1.4.10",
2302 "resolved": "https://registry.npmjs.org/geoip-lite/-/geoip-lite-1.4.10.tgz",
2303 "integrity": "sha512-4N69uhpS3KFd97m00wiFEefwa+L+HT5xZbzPhwu+sDawStg6UN/dPwWtUfkQuZkGIY1Cj7wDVp80IsqNtGMi2w==",
2304 "license": "Apache-2.0",
2305 "dependencies": {
2306 "async": "2.1 - 2.6.4",
2307 "chalk": "4.1 - 4.1.2",
2308 "iconv-lite": "0.4.13 - 0.6.3",
2309 "ip-address": "5.8.9 - 5.9.4",
2310 "lazy": "1.0.11",
2311 "rimraf": "2.5.2 - 2.7.1",
2312 "yauzl": "2.9.2 - 2.10.0"
2313 },
2314 "engines": {
2315 "node": ">=10.3.0"
2316 }
2317 },
2318 "node_modules/geoip-lite/node_modules/rimraf": {
2319 "version": "2.7.1",
2320 "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
2321 "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
2322 "deprecated": "Rimraf versions prior to v4 are no longer supported",
2323 "license": "ISC",
2324 "dependencies": {
2325 "glob": "^7.1.3"
2326 },
2327 "bin": {
2328 "rimraf": "bin.js"
2329 }
2330 },
2331 "node_modules/get-caller-file": {
2332 "version": "2.0.5",
2333 "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
2334 "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
2335 "license": "ISC",
2336 "engines": {
2337 "node": "6.* || 8.* || >= 10.*"
2338 }
2339 },
2340 "node_modules/get-intrinsic": {
2341 "version": "1.3.0",
2342 "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
2343 "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
2344 "license": "MIT",
2345 "dependencies": {
2346 "call-bind-apply-helpers": "^1.0.2",
2347 "es-define-property": "^1.0.1",
2348 "es-errors": "^1.3.0",
2349 "es-object-atoms": "^1.1.1",
2350 "function-bind": "^1.1.2",
2351 "get-proto": "^1.0.1",
2352 "gopd": "^1.2.0",
2353 "has-symbols": "^1.1.0",
2354 "hasown": "^2.0.2",
2355 "math-intrinsics": "^1.1.0"
2356 },
2357 "engines": {
2358 "node": ">= 0.4"
2359 },
2360 "funding": {
2361 "url": "https://github.com/sponsors/ljharb"
2362 }
2363 },
2364 "node_modules/get-package-type": {
2365 "version": "0.1.0",
2366 "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz",
2367 "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==",
2368 "license": "MIT",
2369 "engines": {
2370 "node": ">=8.0.0"
2371 }
2372 },
2373 "node_modules/get-proto": {
2374 "version": "1.0.1",
2375 "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
2376 "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
2377 "license": "MIT",
2378 "dependencies": {
2379 "dunder-proto": "^1.0.1",
2380 "es-object-atoms": "^1.0.0"
2381 },
2382 "engines": {
2383 "node": ">= 0.4"
2384 }
2385 },
2386 "node_modules/get-stream": {
2387 "version": "6.0.1",
2388 "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
2389 "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",
2390 "license": "MIT",
2391 "engines": {
2392 "node": ">=10"
2393 },
2394 "funding": {
2395 "url": "https://github.com/sponsors/sindresorhus"
2396 }
2397 },
2398 "node_modules/glob": {
2399 "version": "7.2.3",
2400 "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
2401 "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
2402 "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me",
2403 "license": "ISC",
2404 "dependencies": {
2405 "fs.realpath": "^1.0.0",
2406 "inflight": "^1.0.4",
2407 "inherits": "2",
2408 "minimatch": "^3.1.1",
2409 "once": "^1.3.0",
2410 "path-is-absolute": "^1.0.0"
2411 },
2412 "engines": {
2413 "node": "*"
2414 },
2415 "funding": {
2416 "url": "https://github.com/sponsors/isaacs"
2417 }
2418 },
2419 "node_modules/gopd": {
2420 "version": "1.2.0",
2421 "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
2422 "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
2423 "license": "MIT",
2424 "engines": {
2425 "node": ">= 0.4"
2426 },
2427 "funding": {
2428 "url": "https://github.com/sponsors/ljharb"
2429 }
2430 },
2431 "node_modules/graceful-fs": {
2432 "version": "4.2.11",
2433 "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
2434 "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
2435 "license": "ISC"
2436 },
2437 "node_modules/has-flag": {
2438 "version": "4.0.0",
2439 "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
2440 "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
2441 "license": "MIT",
2442 "engines": {
2443 "node": ">=8"
2444 }
2445 },
2446 "node_modules/has-symbols": {
2447 "version": "1.1.0",
2448 "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
2449 "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
2450 "license": "MIT",
2451 "engines": {
2452 "node": ">= 0.4"
2453 },
2454 "funding": {
2455 "url": "https://github.com/sponsors/ljharb"
2456 }
2457 },
2458 "node_modules/has-unicode": {
2459 "version": "2.0.1",
2460 "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
2461 "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==",
2462 "license": "ISC"
2463 },
2464 "node_modules/hasown": {
2465 "version": "2.0.3",
2466 "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.3.tgz",
2467 "integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==",
2468 "license": "MIT",
2469 "dependencies": {
2470 "function-bind": "^1.1.2"
2471 },
2472 "engines": {
2473 "node": ">= 0.4"
2474 }
2475 },
2476 "node_modules/html-escaper": {
2477 "version": "2.0.2",
2478 "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz",
2479 "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==",
2480 "license": "MIT"
2481 },
2482 "node_modules/http-errors": {
2483 "version": "2.0.1",
2484 "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
2485 "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
2486 "license": "MIT",
2487 "dependencies": {
2488 "depd": "~2.0.0",
2489 "inherits": "~2.0.4",
2490 "setprototypeof": "~1.2.0",
2491 "statuses": "~2.0.2",
2492 "toidentifier": "~1.0.1"
2493 },
2494 "engines": {
2495 "node": ">= 0.8"
2496 },
2497 "funding": {
2498 "type": "opencollective",
2499 "url": "https://opencollective.com/express"
2500 }
2501 },
2502 "node_modules/https-proxy-agent": {
2503 "version": "5.0.1",
2504 "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
2505 "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
2506 "license": "MIT",
2507 "dependencies": {
2508 "agent-base": "6",
2509 "debug": "4"
2510 },
2511 "engines": {
2512 "node": ">= 6"
2513 }
2514 },
2515 "node_modules/https-proxy-agent/node_modules/debug": {
2516 "version": "4.4.3",
2517 "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
2518 "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
2519 "license": "MIT",
2520 "dependencies": {
2521 "ms": "^2.1.3"
2522 },
2523 "engines": {
2524 "node": ">=6.0"
2525 },
2526 "peerDependenciesMeta": {
2527 "supports-color": {
2528 "optional": true
2529 }
2530 }
2531 },
2532 "node_modules/https-proxy-agent/node_modules/ms": {
2533 "version": "2.1.3",
2534 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
2535 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
2536 "license": "MIT"
2537 },
2538 "node_modules/human-signals": {
2539 "version": "2.1.0",
2540 "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",
2541 "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
2542 "license": "Apache-2.0",
2543 "engines": {
2544 "node": ">=10.17.0"
2545 }
2546 },
2547 "node_modules/iconv-lite": {
2548 "version": "0.4.24",
2549 "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
2550 "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
2551 "license": "MIT",
2552 "dependencies": {
2553 "safer-buffer": ">= 2.1.2 < 3"
2554 },
2555 "engines": {
2556 "node": ">=0.10.0"
2557 }
2558 },
2559 "node_modules/import-local": {
2560 "version": "3.2.0",
2561 "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz",
2562 "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==",
2563 "license": "MIT",
2564 "dependencies": {
2565 "pkg-dir": "^4.2.0",
2566 "resolve-cwd": "^3.0.0"
2567 },
2568 "bin": {
2569 "import-local-fixture": "fixtures/cli.js"
2570 },
2571 "engines": {
2572 "node": ">=8"
2573 },
2574 "funding": {
2575 "url": "https://github.com/sponsors/sindresorhus"
2576 }
2577 },
2578 "node_modules/imurmurhash": {
2579 "version": "0.1.4",
2580 "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
2581 "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
2582 "license": "MIT",
2583 "engines": {
2584 "node": ">=0.8.19"
2585 }
2586 },
2587 "node_modules/inflight": {
2588 "version": "1.0.6",
2589 "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
2590 "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
2591 "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",
2592 "license": "ISC",
2593 "dependencies": {
2594 "once": "^1.3.0",
2595 "wrappy": "1"
2596 }
2597 },
2598 "node_modules/inherits": {
2599 "version": "2.0.4",
2600 "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
2601 "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
2602 "license": "ISC"
2603 },
2604 "node_modules/ip-address": {
2605 "version": "5.9.4",
2606 "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-5.9.4.tgz",
2607 "integrity": "sha512-dHkI3/YNJq4b/qQaz+c8LuarD3pY24JqZWfjB8aZx1gtpc2MDILu9L9jpZe1sHpzo/yWFweQVn+U//FhazUxmw==",
2608 "license": "MIT",
2609 "dependencies": {
2610 "jsbn": "1.1.0",
2611 "lodash": "^4.17.15",
2612 "sprintf-js": "1.1.2"
2613 },
2614 "engines": {
2615 "node": ">= 0.10"
2616 }
2617 },
2618 "node_modules/ipaddr.js": {
2619 "version": "1.9.1",
2620 "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
2621 "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
2622 "license": "MIT",
2623 "engines": {
2624 "node": ">= 0.10"
2625 }
2626 },
2627 "node_modules/is-arrayish": {
2628 "version": "0.2.1",
2629 "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
2630 "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",
2631 "license": "MIT"
2632 },
2633 "node_modules/is-core-module": {
2634 "version": "2.16.1",
2635 "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",
2636 "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",
2637 "license": "MIT",
2638 "dependencies": {
2639 "hasown": "^2.0.2"
2640 },
2641 "engines": {
2642 "node": ">= 0.4"
2643 },
2644 "funding": {
2645 "url": "https://github.com/sponsors/ljharb"
2646 }
2647 },
2648 "node_modules/is-fullwidth-code-point": {
2649 "version": "3.0.0",
2650 "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
2651 "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
2652 "license": "MIT",
2653 "engines": {
2654 "node": ">=8"
2655 }
2656 },
2657 "node_modules/is-generator-fn": {
2658 "version": "2.1.0",
2659 "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz",
2660 "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==",
2661 "license": "MIT",
2662 "engines": {
2663 "node": ">=6"
2664 }
2665 },
2666 "node_modules/is-number": {
2667 "version": "7.0.0",
2668 "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
2669 "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
2670 "license": "MIT",
2671 "engines": {
2672 "node": ">=0.12.0"
2673 }
2674 },
2675 "node_modules/is-stream": {
2676 "version": "2.0.1",
2677 "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
2678 "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
2679 "license": "MIT",
2680 "engines": {
2681 "node": ">=8"
2682 },
2683 "funding": {
2684 "url": "https://github.com/sponsors/sindresorhus"
2685 }
2686 },
2687 "node_modules/isarray": {
2688 "version": "1.0.0",
2689 "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
2690 "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",
2691 "license": "MIT"
2692 },
2693 "node_modules/isexe": {
2694 "version": "2.0.0",
2695 "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
2696 "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
2697 "license": "ISC"
2698 },
2699 "node_modules/istanbul-lib-coverage": {
2700 "version": "3.2.2",
2701 "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz",
2702 "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==",
2703 "license": "BSD-3-Clause",
2704 "engines": {
2705 "node": ">=8"
2706 }
2707 },
2708 "node_modules/istanbul-lib-instrument": {
2709 "version": "6.0.3",
2710 "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz",
2711 "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==",
2712 "license": "BSD-3-Clause",
2713 "dependencies": {
2714 "@babel/core": "^7.23.9",
2715 "@babel/parser": "^7.23.9",
2716 "@istanbuljs/schema": "^0.1.3",
2717 "istanbul-lib-coverage": "^3.2.0",
2718 "semver": "^7.5.4"
2719 },
2720 "engines": {
2721 "node": ">=10"
2722 }
2723 },
2724 "node_modules/istanbul-lib-report": {
2725 "version": "3.0.1",
2726 "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz",
2727 "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==",
2728 "license": "BSD-3-Clause",
2729 "dependencies": {
2730 "istanbul-lib-coverage": "^3.0.0",
2731 "make-dir": "^4.0.0",
2732 "supports-color": "^7.1.0"
2733 },
2734 "engines": {
2735 "node": ">=10"
2736 }
2737 },
2738 "node_modules/istanbul-lib-report/node_modules/make-dir": {
2739 "version": "4.0.0",
2740 "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz",
2741 "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==",
2742 "license": "MIT",
2743 "dependencies": {
2744 "semver": "^7.5.3"
2745 },
2746 "engines": {
2747 "node": ">=10"
2748 },
2749 "funding": {
2750 "url": "https://github.com/sponsors/sindresorhus"
2751 }
2752 },
2753 "node_modules/istanbul-lib-source-maps": {
2754 "version": "4.0.1",
2755 "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz",
2756 "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==",
2757 "license": "BSD-3-Clause",
2758 "dependencies": {
2759 "debug": "^4.1.1",
2760 "istanbul-lib-coverage": "^3.0.0",
2761 "source-map": "^0.6.1"
2762 },
2763 "engines": {
2764 "node": ">=10"
2765 }
2766 },
2767 "node_modules/istanbul-lib-source-maps/node_modules/debug": {
2768 "version": "4.4.3",
2769 "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
2770 "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
2771 "license": "MIT",
2772 "dependencies": {
2773 "ms": "^2.1.3"
2774 },
2775 "engines": {
2776 "node": ">=6.0"
2777 },
2778 "peerDependenciesMeta": {
2779 "supports-color": {
2780 "optional": true
2781 }
2782 }
2783 },
2784 "node_modules/istanbul-lib-source-maps/node_modules/ms": {
2785 "version": "2.1.3",
2786 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
2787 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
2788 "license": "MIT"
2789 },
2790 "node_modules/istanbul-reports": {
2791 "version": "3.2.0",
2792 "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz",
2793 "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==",
2794 "license": "BSD-3-Clause",
2795 "dependencies": {
2796 "html-escaper": "^2.0.0",
2797 "istanbul-lib-report": "^3.0.0"
2798 },
2799 "engines": {
2800 "node": ">=8"
2801 }
2802 },
2803 "node_modules/jest": {
2804 "version": "29.7.0",
2805 "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz",
2806 "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==",
2807 "license": "MIT",
2808 "dependencies": {
2809 "@jest/core": "^29.7.0",
2810 "@jest/types": "^29.6.3",
2811 "import-local": "^3.0.2",
2812 "jest-cli": "^29.7.0"
2813 },
2814 "bin": {
2815 "jest": "bin/jest.js"
2816 },
2817 "engines": {
2818 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2819 },
2820 "peerDependencies": {
2821 "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"
2822 },
2823 "peerDependenciesMeta": {
2824 "node-notifier": {
2825 "optional": true
2826 }
2827 }
2828 },
2829 "node_modules/jest-changed-files": {
2830 "version": "29.7.0",
2831 "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz",
2832 "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==",
2833 "license": "MIT",
2834 "dependencies": {
2835 "execa": "^5.0.0",
2836 "jest-util": "^29.7.0",
2837 "p-limit": "^3.1.0"
2838 },
2839 "engines": {
2840 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2841 }
2842 },
2843 "node_modules/jest-circus": {
2844 "version": "29.7.0",
2845 "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz",
2846 "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==",
2847 "license": "MIT",
2848 "dependencies": {
2849 "@jest/environment": "^29.7.0",
2850 "@jest/expect": "^29.7.0",
2851 "@jest/test-result": "^29.7.0",
2852 "@jest/types": "^29.6.3",
2853 "@types/node": "*",
2854 "chalk": "^4.0.0",
2855 "co": "^4.6.0",
2856 "dedent": "^1.0.0",
2857 "is-generator-fn": "^2.0.0",
2858 "jest-each": "^29.7.0",
2859 "jest-matcher-utils": "^29.7.0",
2860 "jest-message-util": "^29.7.0",
2861 "jest-runtime": "^29.7.0",
2862 "jest-snapshot": "^29.7.0",
2863 "jest-util": "^29.7.0",
2864 "p-limit": "^3.1.0",
2865 "pretty-format": "^29.7.0",
2866 "pure-rand": "^6.0.0",
2867 "slash": "^3.0.0",
2868 "stack-utils": "^2.0.3"
2869 },
2870 "engines": {
2871 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2872 }
2873 },
2874 "node_modules/jest-cli": {
2875 "version": "29.7.0",
2876 "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz",
2877 "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==",
2878 "license": "MIT",
2879 "dependencies": {
2880 "@jest/core": "^29.7.0",
2881 "@jest/test-result": "^29.7.0",
2882 "@jest/types": "^29.6.3",
2883 "chalk": "^4.0.0",
2884 "create-jest": "^29.7.0",
2885 "exit": "^0.1.2",
2886 "import-local": "^3.0.2",
2887 "jest-config": "^29.7.0",
2888 "jest-util": "^29.7.0",
2889 "jest-validate": "^29.7.0",
2890 "yargs": "^17.3.1"
2891 },
2892 "bin": {
2893 "jest": "bin/jest.js"
2894 },
2895 "engines": {
2896 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2897 },
2898 "peerDependencies": {
2899 "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"
2900 },
2901 "peerDependenciesMeta": {
2902 "node-notifier": {
2903 "optional": true
2904 }
2905 }
2906 },
2907 "node_modules/jest-config": {
2908 "version": "29.7.0",
2909 "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz",
2910 "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==",
2911 "license": "MIT",
2912 "dependencies": {
2913 "@babel/core": "^7.11.6",
2914 "@jest/test-sequencer": "^29.7.0",
2915 "@jest/types": "^29.6.3",
2916 "babel-jest": "^29.7.0",
2917 "chalk": "^4.0.0",
2918 "ci-info": "^3.2.0",
2919 "deepmerge": "^4.2.2",
2920 "glob": "^7.1.3",
2921 "graceful-fs": "^4.2.9",
2922 "jest-circus": "^29.7.0",
2923 "jest-environment-node": "^29.7.0",
2924 "jest-get-type": "^29.6.3",
2925 "jest-regex-util": "^29.6.3",
2926 "jest-resolve": "^29.7.0",
2927 "jest-runner": "^29.7.0",
2928 "jest-util": "^29.7.0",
2929 "jest-validate": "^29.7.0",
2930 "micromatch": "^4.0.4",
2931 "parse-json": "^5.2.0",
2932 "pretty-format": "^29.7.0",
2933 "slash": "^3.0.0",
2934 "strip-json-comments": "^3.1.1"
2935 },
2936 "engines": {
2937 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2938 },
2939 "peerDependencies": {
2940 "@types/node": "*",
2941 "ts-node": ">=9.0.0"
2942 },
2943 "peerDependenciesMeta": {
2944 "@types/node": {
2945 "optional": true
2946 },
2947 "ts-node": {
2948 "optional": true
2949 }
2950 }
2951 },
2952 "node_modules/jest-diff": {
2953 "version": "29.7.0",
2954 "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz",
2955 "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==",
2956 "license": "MIT",
2957 "dependencies": {
2958 "chalk": "^4.0.0",
2959 "diff-sequences": "^29.6.3",
2960 "jest-get-type": "^29.6.3",
2961 "pretty-format": "^29.7.0"
2962 },
2963 "engines": {
2964 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2965 }
2966 },
2967 "node_modules/jest-docblock": {
2968 "version": "29.7.0",
2969 "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz",
2970 "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==",
2971 "license": "MIT",
2972 "dependencies": {
2973 "detect-newline": "^3.0.0"
2974 },
2975 "engines": {
2976 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2977 }
2978 },
2979 "node_modules/jest-each": {
2980 "version": "29.7.0",
2981 "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz",
2982 "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==",
2983 "license": "MIT",
2984 "dependencies": {
2985 "@jest/types": "^29.6.3",
2986 "chalk": "^4.0.0",
2987 "jest-get-type": "^29.6.3",
2988 "jest-util": "^29.7.0",
2989 "pretty-format": "^29.7.0"
2990 },
2991 "engines": {
2992 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2993 }
2994 },
2995 "node_modules/jest-environment-node": {
2996 "version": "29.7.0",
2997 "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz",
2998 "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==",
2999 "license": "MIT",
3000 "dependencies": {
3001 "@jest/environment": "^29.7.0",
3002 "@jest/fake-timers": "^29.7.0",
3003 "@jest/types": "^29.6.3",
3004 "@types/node": "*",
3005 "jest-mock": "^29.7.0",
3006 "jest-util": "^29.7.0"
3007 },
3008 "engines": {
3009 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3010 }
3011 },
3012 "node_modules/jest-get-type": {
3013 "version": "29.6.3",
3014 "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz",
3015 "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==",
3016 "license": "MIT",
3017 "engines": {
3018 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3019 }
3020 },
3021 "node_modules/jest-haste-map": {
3022 "version": "29.7.0",
3023 "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz",
3024 "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==",
3025 "license": "MIT",
3026 "dependencies": {
3027 "@jest/types": "^29.6.3",
3028 "@types/graceful-fs": "^4.1.3",
3029 "@types/node": "*",
3030 "anymatch": "^3.0.3",
3031 "fb-watchman": "^2.0.0",
3032 "graceful-fs": "^4.2.9",
3033 "jest-regex-util": "^29.6.3",
3034 "jest-util": "^29.7.0",
3035 "jest-worker": "^29.7.0",
3036 "micromatch": "^4.0.4",
3037 "walker": "^1.0.8"
3038 },
3039 "engines": {
3040 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3041 },
3042 "optionalDependencies": {
3043 "fsevents": "^2.3.2"
3044 }
3045 },
3046 "node_modules/jest-leak-detector": {
3047 "version": "29.7.0",
3048 "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz",
3049 "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==",
3050 "license": "MIT",
3051 "dependencies": {
3052 "jest-get-type": "^29.6.3",
3053 "pretty-format": "^29.7.0"
3054 },
3055 "engines": {
3056 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3057 }
3058 },
3059 "node_modules/jest-matcher-utils": {
3060 "version": "29.7.0",
3061 "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz",
3062 "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==",
3063 "license": "MIT",
3064 "dependencies": {
3065 "chalk": "^4.0.0",
3066 "jest-diff": "^29.7.0",
3067 "jest-get-type": "^29.6.3",
3068 "pretty-format": "^29.7.0"
3069 },
3070 "engines": {
3071 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3072 }
3073 },
3074 "node_modules/jest-message-util": {
3075 "version": "29.7.0",
3076 "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz",
3077 "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==",
3078 "license": "MIT",
3079 "dependencies": {
3080 "@babel/code-frame": "^7.12.13",
3081 "@jest/types": "^29.6.3",
3082 "@types/stack-utils": "^2.0.0",
3083 "chalk": "^4.0.0",
3084 "graceful-fs": "^4.2.9",
3085 "micromatch": "^4.0.4",
3086 "pretty-format": "^29.7.0",
3087 "slash": "^3.0.0",
3088 "stack-utils": "^2.0.3"
3089 },
3090 "engines": {
3091 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3092 }
3093 },
3094 "node_modules/jest-mock": {
3095 "version": "29.7.0",
3096 "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz",
3097 "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==",
3098 "license": "MIT",
3099 "dependencies": {
3100 "@jest/types": "^29.6.3",
3101 "@types/node": "*",
3102 "jest-util": "^29.7.0"
3103 },
3104 "engines": {
3105 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3106 }
3107 },
3108 "node_modules/jest-pnp-resolver": {
3109 "version": "1.2.3",
3110 "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz",
3111 "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==",
3112 "license": "MIT",
3113 "engines": {
3114 "node": ">=6"
3115 },
3116 "peerDependencies": {
3117 "jest-resolve": "*"
3118 },
3119 "peerDependenciesMeta": {
3120 "jest-resolve": {
3121 "optional": true
3122 }
3123 }
3124 },
3125 "node_modules/jest-regex-util": {
3126 "version": "29.6.3",
3127 "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz",
3128 "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==",
3129 "license": "MIT",
3130 "engines": {
3131 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3132 }
3133 },
3134 "node_modules/jest-resolve": {
3135 "version": "29.7.0",
3136 "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz",
3137 "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==",
3138 "license": "MIT",
3139 "dependencies": {
3140 "chalk": "^4.0.0",
3141 "graceful-fs": "^4.2.9",
3142 "jest-haste-map": "^29.7.0",
3143 "jest-pnp-resolver": "^1.2.2",
3144 "jest-util": "^29.7.0",
3145 "jest-validate": "^29.7.0",
3146 "resolve": "^1.20.0",
3147 "resolve.exports": "^2.0.0",
3148 "slash": "^3.0.0"
3149 },
3150 "engines": {
3151 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3152 }
3153 },
3154 "node_modules/jest-resolve-dependencies": {
3155 "version": "29.7.0",
3156 "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz",
3157 "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==",
3158 "license": "MIT",
3159 "dependencies": {
3160 "jest-regex-util": "^29.6.3",
3161 "jest-snapshot": "^29.7.0"
3162 },
3163 "engines": {
3164 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3165 }
3166 },
3167 "node_modules/jest-runner": {
3168 "version": "29.7.0",
3169 "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz",
3170 "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==",
3171 "license": "MIT",
3172 "dependencies": {
3173 "@jest/console": "^29.7.0",
3174 "@jest/environment": "^29.7.0",
3175 "@jest/test-result": "^29.7.0",
3176 "@jest/transform": "^29.7.0",
3177 "@jest/types": "^29.6.3",
3178 "@types/node": "*",
3179 "chalk": "^4.0.0",
3180 "emittery": "^0.13.1",
3181 "graceful-fs": "^4.2.9",
3182 "jest-docblock": "^29.7.0",
3183 "jest-environment-node": "^29.7.0",
3184 "jest-haste-map": "^29.7.0",
3185 "jest-leak-detector": "^29.7.0",
3186 "jest-message-util": "^29.7.0",
3187 "jest-resolve": "^29.7.0",
3188 "jest-runtime": "^29.7.0",
3189 "jest-util": "^29.7.0",
3190 "jest-watcher": "^29.7.0",
3191 "jest-worker": "^29.7.0",
3192 "p-limit": "^3.1.0",
3193 "source-map-support": "0.5.13"
3194 },
3195 "engines": {
3196 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3197 }
3198 },
3199 "node_modules/jest-runtime": {
3200 "version": "29.7.0",
3201 "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz",
3202 "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==",
3203 "license": "MIT",
3204 "dependencies": {
3205 "@jest/environment": "^29.7.0",
3206 "@jest/fake-timers": "^29.7.0",
3207 "@jest/globals": "^29.7.0",
3208 "@jest/source-map": "^29.6.3",
3209 "@jest/test-result": "^29.7.0",
3210 "@jest/transform": "^29.7.0",
3211 "@jest/types": "^29.6.3",
3212 "@types/node": "*",
3213 "chalk": "^4.0.0",
3214 "cjs-module-lexer": "^1.0.0",
3215 "collect-v8-coverage": "^1.0.0",
3216 "glob": "^7.1.3",
3217 "graceful-fs": "^4.2.9",
3218 "jest-haste-map": "^29.7.0",
3219 "jest-message-util": "^29.7.0",
3220 "jest-mock": "^29.7.0",
3221 "jest-regex-util": "^29.6.3",
3222 "jest-resolve": "^29.7.0",
3223 "jest-snapshot": "^29.7.0",
3224 "jest-util": "^29.7.0",
3225 "slash": "^3.0.0",
3226 "strip-bom": "^4.0.0"
3227 },
3228 "engines": {
3229 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3230 }
3231 },
3232 "node_modules/jest-snapshot": {
3233 "version": "29.7.0",
3234 "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz",
3235 "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==",
3236 "license": "MIT",
3237 "dependencies": {
3238 "@babel/core": "^7.11.6",
3239 "@babel/generator": "^7.7.2",
3240 "@babel/plugin-syntax-jsx": "^7.7.2",
3241 "@babel/plugin-syntax-typescript": "^7.7.2",
3242 "@babel/types": "^7.3.3",
3243 "@jest/expect-utils": "^29.7.0",
3244 "@jest/transform": "^29.7.0",
3245 "@jest/types": "^29.6.3",
3246 "babel-preset-current-node-syntax": "^1.0.0",
3247 "chalk": "^4.0.0",
3248 "expect": "^29.7.0",
3249 "graceful-fs": "^4.2.9",
3250 "jest-diff": "^29.7.0",
3251 "jest-get-type": "^29.6.3",
3252 "jest-matcher-utils": "^29.7.0",
3253 "jest-message-util": "^29.7.0",
3254 "jest-util": "^29.7.0",
3255 "natural-compare": "^1.4.0",
3256 "pretty-format": "^29.7.0",
3257 "semver": "^7.5.3"
3258 },
3259 "engines": {
3260 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3261 }
3262 },
3263 "node_modules/jest-util": {
3264 "version": "29.7.0",
3265 "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz",
3266 "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==",
3267 "license": "MIT",
3268 "dependencies": {
3269 "@jest/types": "^29.6.3",
3270 "@types/node": "*",
3271 "chalk": "^4.0.0",
3272 "ci-info": "^3.2.0",
3273 "graceful-fs": "^4.2.9",
3274 "picomatch": "^2.2.3"
3275 },
3276 "engines": {
3277 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3278 }
3279 },
3280 "node_modules/jest-validate": {
3281 "version": "29.7.0",
3282 "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz",
3283 "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==",
3284 "license": "MIT",
3285 "dependencies": {
3286 "@jest/types": "^29.6.3",
3287 "camelcase": "^6.2.0",
3288 "chalk": "^4.0.0",
3289 "jest-get-type": "^29.6.3",
3290 "leven": "^3.1.0",
3291 "pretty-format": "^29.7.0"
3292 },
3293 "engines": {
3294 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3295 }
3296 },
3297 "node_modules/jest-validate/node_modules/camelcase": {
3298 "version": "6.3.0",
3299 "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",
3300 "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",
3301 "license": "MIT",
3302 "engines": {
3303 "node": ">=10"
3304 },
3305 "funding": {
3306 "url": "https://github.com/sponsors/sindresorhus"
3307 }
3308 },
3309 "node_modules/jest-watcher": {
3310 "version": "29.7.0",
3311 "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz",
3312 "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==",
3313 "license": "MIT",
3314 "dependencies": {
3315 "@jest/test-result": "^29.7.0",
3316 "@jest/types": "^29.6.3",
3317 "@types/node": "*",
3318 "ansi-escapes": "^4.2.1",
3319 "chalk": "^4.0.0",
3320 "emittery": "^0.13.1",
3321 "jest-util": "^29.7.0",
3322 "string-length": "^4.0.1"
3323 },
3324 "engines": {
3325 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3326 }
3327 },
3328 "node_modules/jest-worker": {
3329 "version": "29.7.0",
3330 "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz",
3331 "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==",
3332 "license": "MIT",
3333 "dependencies": {
3334 "@types/node": "*",
3335 "jest-util": "^29.7.0",
3336 "merge-stream": "^2.0.0",
3337 "supports-color": "^8.0.0"
3338 },
3339 "engines": {
3340 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3341 }
3342 },
3343 "node_modules/jest-worker/node_modules/supports-color": {
3344 "version": "8.1.1",
3345 "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
3346 "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
3347 "license": "MIT",
3348 "dependencies": {
3349 "has-flag": "^4.0.0"
3350 },
3351 "engines": {
3352 "node": ">=10"
3353 },
3354 "funding": {
3355 "url": "https://github.com/chalk/supports-color?sponsor=1"
3356 }
3357 },
3358 "node_modules/js-tokens": {
3359 "version": "4.0.0",
3360 "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
3361 "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
3362 "license": "MIT"
3363 },
3364 "node_modules/js-yaml": {
3365 "version": "3.14.2",
3366 "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz",
3367 "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==",
3368 "license": "MIT",
3369 "dependencies": {
3370 "argparse": "^1.0.7",
3371 "esprima": "^4.0.0"
3372 },
3373 "bin": {
3374 "js-yaml": "bin/js-yaml.js"
3375 }
3376 },
3377 "node_modules/jsbn": {
3378 "version": "1.1.0",
3379 "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz",
3380 "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==",
3381 "license": "MIT"
3382 },
3383 "node_modules/jsesc": {
3384 "version": "3.1.0",
3385 "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
3386 "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
3387 "license": "MIT",
3388 "bin": {
3389 "jsesc": "bin/jsesc"
3390 },
3391 "engines": {
3392 "node": ">=6"
3393 }
3394 },
3395 "node_modules/json-parse-even-better-errors": {
3396 "version": "2.3.1",
3397 "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
3398 "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
3399 "license": "MIT"
3400 },
3401 "node_modules/json5": {
3402 "version": "2.2.3",
3403 "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
3404 "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
3405 "license": "MIT",
3406 "bin": {
3407 "json5": "lib/cli.js"
3408 },
3409 "engines": {
3410 "node": ">=6"
3411 }
3412 },
3413 "node_modules/jsonwebtoken": {
3414 "version": "9.0.3",
3415 "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz",
3416 "integrity": "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==",
3417 "license": "MIT",
3418 "dependencies": {
3419 "jws": "^4.0.1",
3420 "lodash.includes": "^4.3.0",
3421 "lodash.isboolean": "^3.0.3",
3422 "lodash.isinteger": "^4.0.4",
3423 "lodash.isnumber": "^3.0.3",
3424 "lodash.isplainobject": "^4.0.6",
3425 "lodash.isstring": "^4.0.1",
3426 "lodash.once": "^4.0.0",
3427 "ms": "^2.1.1",
3428 "semver": "^7.5.4"
3429 },
3430 "engines": {
3431 "node": ">=12",
3432 "npm": ">=6"
3433 }
3434 },
3435 "node_modules/jsonwebtoken/node_modules/ms": {
3436 "version": "2.1.3",
3437 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
3438 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
3439 "license": "MIT"
3440 },
3441 "node_modules/jwa": {
3442 "version": "2.0.1",
3443 "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz",
3444 "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==",
3445 "license": "MIT",
3446 "dependencies": {
3447 "buffer-equal-constant-time": "^1.0.1",
3448 "ecdsa-sig-formatter": "1.0.11",
3449 "safe-buffer": "^5.0.1"
3450 }
3451 },
3452 "node_modules/jws": {
3453 "version": "4.0.1",
3454 "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz",
3455 "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==",
3456 "license": "MIT",
3457 "dependencies": {
3458 "jwa": "^2.0.1",
3459 "safe-buffer": "^5.0.1"
3460 }
3461 },
3462 "node_modules/kleur": {
3463 "version": "3.0.3",
3464 "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",
3465 "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==",
3466 "license": "MIT",
3467 "engines": {
3468 "node": ">=6"
3469 }
3470 },
3471 "node_modules/lazy": {
3472 "version": "1.0.11",
3473 "resolved": "https://registry.npmjs.org/lazy/-/lazy-1.0.11.tgz",
3474 "integrity": "sha512-Y+CjUfLmIpoUCCRl0ub4smrYtGGr5AOa2AKOaWelGHOGz33X/Y/KizefGqbkwfz44+cnq/+9habclf8vOmu2LA==",
3475 "license": "MIT",
3476 "engines": {
3477 "node": ">=0.2.0"
3478 }
3479 },
3480 "node_modules/leven": {
3481 "version": "3.1.0",
3482 "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz",
3483 "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==",
3484 "license": "MIT",
3485 "engines": {
3486 "node": ">=6"
3487 }
3488 },
3489 "node_modules/lines-and-columns": {
3490 "version": "1.2.4",
3491 "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
3492 "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
3493 "license": "MIT"
3494 },
3495 "node_modules/locate-path": {
3496 "version": "5.0.0",
3497 "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
3498 "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
3499 "license": "MIT",
3500 "dependencies": {
3501 "p-locate": "^4.1.0"
3502 },
3503 "engines": {
3504 "node": ">=8"
3505 }
3506 },
3507 "node_modules/lodash": {
3508 "version": "4.18.1",
3509 "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",
3510 "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",
3511 "license": "MIT"
3512 },
3513 "node_modules/lodash.includes": {
3514 "version": "4.3.0",
3515 "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",
3516 "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==",
3517 "license": "MIT"
3518 },
3519 "node_modules/lodash.isboolean": {
3520 "version": "3.0.3",
3521 "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",
3522 "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==",
3523 "license": "MIT"
3524 },
3525 "node_modules/lodash.isinteger": {
3526 "version": "4.0.4",
3527 "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",
3528 "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==",
3529 "license": "MIT"
3530 },
3531 "node_modules/lodash.isnumber": {
3532 "version": "3.0.3",
3533 "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz",
3534 "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==",
3535 "license": "MIT"
3536 },
3537 "node_modules/lodash.isplainobject": {
3538 "version": "4.0.6",
3539 "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
3540 "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",
3541 "license": "MIT"
3542 },
3543 "node_modules/lodash.isstring": {
3544 "version": "4.0.1",
3545 "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz",
3546 "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==",
3547 "license": "MIT"
3548 },
3549 "node_modules/lodash.once": {
3550 "version": "4.1.1",
3551 "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",
3552 "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==",
3553 "license": "MIT"
3554 },
3555 "node_modules/lru-cache": {
3556 "version": "5.1.1",
3557 "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
3558 "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
3559 "license": "ISC",
3560 "dependencies": {
3561 "yallist": "^3.0.2"
3562 }
3563 },
3564 "node_modules/make-dir": {
3565 "version": "3.1.0",
3566 "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
3567 "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
3568 "license": "MIT",
3569 "dependencies": {
3570 "semver": "^6.0.0"
3571 },
3572 "engines": {
3573 "node": ">=8"
3574 },
3575 "funding": {
3576 "url": "https://github.com/sponsors/sindresorhus"
3577 }
3578 },
3579 "node_modules/make-dir/node_modules/semver": {
3580 "version": "6.3.1",
3581 "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
3582 "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
3583 "license": "ISC",
3584 "bin": {
3585 "semver": "bin/semver.js"
3586 }
3587 },
3588 "node_modules/makeerror": {
3589 "version": "1.0.12",
3590 "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz",
3591 "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==",
3592 "license": "BSD-3-Clause",
3593 "dependencies": {
3594 "tmpl": "1.0.5"
3595 }
3596 },
3597 "node_modules/math-intrinsics": {
3598 "version": "1.1.0",
3599 "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
3600 "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
3601 "license": "MIT",
3602 "engines": {
3603 "node": ">= 0.4"
3604 }
3605 },
3606 "node_modules/media-typer": {
3607 "version": "0.3.0",
3608 "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
3609 "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
3610 "license": "MIT",
3611 "engines": {
3612 "node": ">= 0.6"
3613 }
3614 },
3615 "node_modules/merge-descriptors": {
3616 "version": "1.0.3",
3617 "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
3618 "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
3619 "license": "MIT",
3620 "funding": {
3621 "url": "https://github.com/sponsors/sindresorhus"
3622 }
3623 },
3624 "node_modules/merge-stream": {
3625 "version": "2.0.0",
3626 "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
3627 "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
3628 "license": "MIT"
3629 },
3630 "node_modules/methods": {
3631 "version": "1.1.2",
3632 "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
3633 "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
3634 "license": "MIT",
3635 "engines": {
3636 "node": ">= 0.6"
3637 }
3638 },
3639 "node_modules/micromatch": {
3640 "version": "4.0.8",
3641 "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
3642 "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
3643 "license": "MIT",
3644 "dependencies": {
3645 "braces": "^3.0.3",
3646 "picomatch": "^2.3.1"
3647 },
3648 "engines": {
3649 "node": ">=8.6"
3650 }
3651 },
3652 "node_modules/mime": {
3653 "version": "1.6.0",
3654 "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
3655 "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
3656 "license": "MIT",
3657 "bin": {
3658 "mime": "cli.js"
3659 },
3660 "engines": {
3661 "node": ">=4"
3662 }
3663 },
3664 "node_modules/mime-db": {
3665 "version": "1.52.0",
3666 "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
3667 "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
3668 "license": "MIT",
3669 "engines": {
3670 "node": ">= 0.6"
3671 }
3672 },
3673 "node_modules/mime-types": {
3674 "version": "2.1.35",
3675 "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
3676 "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
3677 "license": "MIT",
3678 "dependencies": {
3679 "mime-db": "1.52.0"
3680 },
3681 "engines": {
3682 "node": ">= 0.6"
3683 }
3684 },
3685 "node_modules/mimic-fn": {
3686 "version": "2.1.0",
3687 "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
3688 "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
3689 "license": "MIT",
3690 "engines": {
3691 "node": ">=6"
3692 }
3693 },
3694 "node_modules/minimatch": {
3695 "version": "3.1.5",
3696 "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
3697 "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
3698 "license": "ISC",
3699 "dependencies": {
3700 "brace-expansion": "^1.1.7"
3701 },
3702 "engines": {
3703 "node": "*"
3704 }
3705 },
3706 "node_modules/minimist": {
3707 "version": "1.2.8",
3708 "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
3709 "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
3710 "license": "MIT",
3711 "funding": {
3712 "url": "https://github.com/sponsors/ljharb"
3713 }
3714 },
3715 "node_modules/minipass": {
3716 "version": "5.0.0",
3717 "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
3718 "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
3719 "license": "ISC",
3720 "engines": {
3721 "node": ">=8"
3722 }
3723 },
3724 "node_modules/minizlib": {
3725 "version": "2.1.2",
3726 "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
3727 "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
3728 "license": "MIT",
3729 "dependencies": {
3730 "minipass": "^3.0.0",
3731 "yallist": "^4.0.0"
3732 },
3733 "engines": {
3734 "node": ">= 8"
3735 }
3736 },
3737 "node_modules/minizlib/node_modules/minipass": {
3738 "version": "3.3.6",
3739 "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
3740 "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
3741 "license": "ISC",
3742 "dependencies": {
3743 "yallist": "^4.0.0"
3744 },
3745 "engines": {
3746 "node": ">=8"
3747 }
3748 },
3749 "node_modules/minizlib/node_modules/yallist": {
3750 "version": "4.0.0",
3751 "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
3752 "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
3753 "license": "ISC"
3754 },
3755 "node_modules/mkdirp": {
3756 "version": "0.5.6",
3757 "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
3758 "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
3759 "license": "MIT",
3760 "dependencies": {
3761 "minimist": "^1.2.6"
3762 },
3763 "bin": {
3764 "mkdirp": "bin/cmd.js"
3765 }
3766 },
3767 "node_modules/ms": {
3768 "version": "2.0.0",
3769 "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
3770 "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
3771 "license": "MIT"
3772 },
3773 "node_modules/multer": {
3774 "version": "1.4.5-lts.2",
3775 "resolved": "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.2.tgz",
3776 "integrity": "sha512-VzGiVigcG9zUAoCNU+xShztrlr1auZOlurXynNvO9GiWD1/mTBbUljOKY+qMeazBqXgRnjzeEgJI/wyjJUHg9A==",
3777 "deprecated": "Multer 1.x is impacted by a number of vulnerabilities, which have been patched in 2.x. You should upgrade to the latest 2.x version.",
3778 "license": "MIT",
3779 "dependencies": {
3780 "append-field": "^1.0.0",
3781 "busboy": "^1.0.0",
3782 "concat-stream": "^1.5.2",
3783 "mkdirp": "^0.5.4",
3784 "object-assign": "^4.1.1",
3785 "type-is": "^1.6.4",
3786 "xtend": "^4.0.0"
3787 },
3788 "engines": {
3789 "node": ">= 6.0.0"
3790 }
3791 },
3792 "node_modules/natural-compare": {
3793 "version": "1.4.0",
3794 "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
3795 "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
3796 "license": "MIT"
3797 },
3798 "node_modules/negotiator": {
3799 "version": "0.6.3",
3800 "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
3801 "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
3802 "license": "MIT",
3803 "engines": {
3804 "node": ">= 0.6"
3805 }
3806 },
3807 "node_modules/node-addon-api": {
3808 "version": "5.1.0",
3809 "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz",
3810 "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==",
3811 "license": "MIT"
3812 },
3813 "node_modules/node-fetch": {
3814 "version": "2.7.0",
3815 "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
3816 "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
3817 "license": "MIT",
3818 "dependencies": {
3819 "whatwg-url": "^5.0.0"
3820 },
3821 "engines": {
3822 "node": "4.x || >=6.0.0"
3823 },
3824 "peerDependencies": {
3825 "encoding": "^0.1.0"
3826 },
3827 "peerDependenciesMeta": {
3828 "encoding": {
3829 "optional": true
3830 }
3831 }
3832 },
3833 "node_modules/node-int64": {
3834 "version": "0.4.0",
3835 "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",
3836 "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==",
3837 "license": "MIT"
3838 },
3839 "node_modules/node-releases": {
3840 "version": "2.0.38",
3841 "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.38.tgz",
3842 "integrity": "sha512-3qT/88Y3FbH/Kx4szpQQ4HzUbVrHPKTLVpVocKiLfoYvw9XSGOX2FmD2d6DrXbVYyAQTF2HeF6My8jmzx7/CRw==",
3843 "license": "MIT"
3844 },
3845 "node_modules/node-sqlite3-wasm": {
3846 "version": "0.8.56",
3847 "resolved": "https://registry.npmjs.org/node-sqlite3-wasm/-/node-sqlite3-wasm-0.8.56.tgz",
3848 "integrity": "sha512-piu6QQNAm8cg6IK8vuI4zdMwlMjhay6Xb5gg3gc5pIMY8w75ZqXOtZKMy74tp8w4rhykyC/3s8fElWhWLntRtQ==",
3849 "license": "MIT"
3850 },
3851 "node_modules/nopt": {
3852 "version": "5.0.0",
3853 "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",
3854 "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",
3855 "license": "ISC",
3856 "dependencies": {
3857 "abbrev": "1"
3858 },
3859 "bin": {
3860 "nopt": "bin/nopt.js"
3861 },
3862 "engines": {
3863 "node": ">=6"
3864 }
3865 },
3866 "node_modules/normalize-path": {
3867 "version": "3.0.0",
3868 "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
3869 "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
3870 "license": "MIT",
3871 "engines": {
3872 "node": ">=0.10.0"
3873 }
3874 },
3875 "node_modules/npm-run-path": {
3876 "version": "4.0.1",
3877 "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
3878 "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
3879 "license": "MIT",
3880 "dependencies": {
3881 "path-key": "^3.0.0"
3882 },
3883 "engines": {
3884 "node": ">=8"
3885 }
3886 },
3887 "node_modules/npmlog": {
3888 "version": "5.0.1",
3889 "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz",
3890 "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==",
3891 "deprecated": "This package is no longer supported.",
3892 "license": "ISC",
3893 "dependencies": {
3894 "are-we-there-yet": "^2.0.0",
3895 "console-control-strings": "^1.1.0",
3896 "gauge": "^3.0.0",
3897 "set-blocking": "^2.0.0"
3898 }
3899 },
3900 "node_modules/object-assign": {
3901 "version": "4.1.1",
3902 "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
3903 "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
3904 "license": "MIT",
3905 "engines": {
3906 "node": ">=0.10.0"
3907 }
3908 },
3909 "node_modules/object-inspect": {
3910 "version": "1.13.4",
3911 "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
3912 "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
3913 "license": "MIT",
3914 "engines": {
3915 "node": ">= 0.4"
3916 },
3917 "funding": {
3918 "url": "https://github.com/sponsors/ljharb"
3919 }
3920 },
3921 "node_modules/on-finished": {
3922 "version": "2.4.1",
3923 "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
3924 "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
3925 "license": "MIT",
3926 "dependencies": {
3927 "ee-first": "1.1.1"
3928 },
3929 "engines": {
3930 "node": ">= 0.8"
3931 }
3932 },
3933 "node_modules/once": {
3934 "version": "1.4.0",
3935 "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
3936 "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
3937 "license": "ISC",
3938 "dependencies": {
3939 "wrappy": "1"
3940 }
3941 },
3942 "node_modules/onetime": {
3943 "version": "5.1.2",
3944 "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
3945 "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
3946 "license": "MIT",
3947 "dependencies": {
3948 "mimic-fn": "^2.1.0"
3949 },
3950 "engines": {
3951 "node": ">=6"
3952 },
3953 "funding": {
3954 "url": "https://github.com/sponsors/sindresorhus"
3955 }
3956 },
3957 "node_modules/p-limit": {
3958 "version": "3.1.0",
3959 "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
3960 "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
3961 "license": "MIT",
3962 "dependencies": {
3963 "yocto-queue": "^0.1.0"
3964 },
3965 "engines": {
3966 "node": ">=10"
3967 },
3968 "funding": {
3969 "url": "https://github.com/sponsors/sindresorhus"
3970 }
3971 },
3972 "node_modules/p-locate": {
3973 "version": "4.1.0",
3974 "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
3975 "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
3976 "license": "MIT",
3977 "dependencies": {
3978 "p-limit": "^2.2.0"
3979 },
3980 "engines": {
3981 "node": ">=8"
3982 }
3983 },
3984 "node_modules/p-locate/node_modules/p-limit": {
3985 "version": "2.3.0",
3986 "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
3987 "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
3988 "license": "MIT",
3989 "dependencies": {
3990 "p-try": "^2.0.0"
3991 },
3992 "engines": {
3993 "node": ">=6"
3994 },
3995 "funding": {
3996 "url": "https://github.com/sponsors/sindresorhus"
3997 }
3998 },
3999 "node_modules/p-try": {
4000 "version": "2.2.0",
4001 "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
4002 "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
4003 "license": "MIT",
4004 "engines": {
4005 "node": ">=6"
4006 }
4007 },
4008 "node_modules/parse-json": {
4009 "version": "5.2.0",
4010 "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
4011 "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
4012 "license": "MIT",
4013 "dependencies": {
4014 "@babel/code-frame": "^7.0.0",
4015 "error-ex": "^1.3.1",
4016 "json-parse-even-better-errors": "^2.3.0",
4017 "lines-and-columns": "^1.1.6"
4018 },
4019 "engines": {
4020 "node": ">=8"
4021 },
4022 "funding": {
4023 "url": "https://github.com/sponsors/sindresorhus"
4024 }
4025 },
4026 "node_modules/parseurl": {
4027 "version": "1.3.3",
4028 "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
4029 "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
4030 "license": "MIT",
4031 "engines": {
4032 "node": ">= 0.8"
4033 }
4034 },
4035 "node_modules/path-exists": {
4036 "version": "4.0.0",
4037 "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
4038 "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
4039 "license": "MIT",
4040 "engines": {
4041 "node": ">=8"
4042 }
4043 },
4044 "node_modules/path-is-absolute": {
4045 "version": "1.0.1",
4046 "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
4047 "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
4048 "license": "MIT",
4049 "engines": {
4050 "node": ">=0.10.0"
4051 }
4052 },
4053 "node_modules/path-key": {
4054 "version": "3.1.1",
4055 "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
4056 "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
4057 "license": "MIT",
4058 "engines": {
4059 "node": ">=8"
4060 }
4061 },
4062 "node_modules/path-parse": {
4063 "version": "1.0.7",
4064 "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
4065 "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
4066 "license": "MIT"
4067 },
4068 "node_modules/path-to-regexp": {
4069 "version": "0.1.13",
4070 "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz",
4071 "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==",
4072 "license": "MIT"
4073 },
4074 "node_modules/pend": {
4075 "version": "1.2.0",
4076 "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
4077 "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",
4078 "license": "MIT"
4079 },
4080 "node_modules/picocolors": {
4081 "version": "1.1.1",
4082 "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
4083 "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
4084 "license": "ISC"
4085 },
4086 "node_modules/picomatch": {
4087 "version": "2.3.2",
4088 "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
4089 "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
4090 "license": "MIT",
4091 "engines": {
4092 "node": ">=8.6"
4093 },
4094 "funding": {
4095 "url": "https://github.com/sponsors/jonschlinkert"
4096 }
4097 },
4098 "node_modules/pirates": {
4099 "version": "4.0.7",
4100 "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",
4101 "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",
4102 "license": "MIT",
4103 "engines": {
4104 "node": ">= 6"
4105 }
4106 },
4107 "node_modules/pkg-dir": {
4108 "version": "4.2.0",
4109 "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
4110 "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
4111 "license": "MIT",
4112 "dependencies": {
4113 "find-up": "^4.0.0"
4114 },
4115 "engines": {
4116 "node": ">=8"
4117 }
4118 },
4119 "node_modules/pretty-format": {
4120 "version": "29.7.0",
4121 "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",
4122 "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==",
4123 "license": "MIT",
4124 "dependencies": {
4125 "@jest/schemas": "^29.6.3",
4126 "ansi-styles": "^5.0.0",
4127 "react-is": "^18.0.0"
4128 },
4129 "engines": {
4130 "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
4131 }
4132 },
4133 "node_modules/pretty-format/node_modules/ansi-styles": {
4134 "version": "5.2.0",
4135 "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
4136 "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
4137 "license": "MIT",
4138 "engines": {
4139 "node": ">=10"
4140 },
4141 "funding": {
4142 "url": "https://github.com/chalk/ansi-styles?sponsor=1"
4143 }
4144 },
4145 "node_modules/process-nextick-args": {
4146 "version": "2.0.1",
4147 "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
4148 "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
4149 "license": "MIT"
4150 },
4151 "node_modules/prompts": {
4152 "version": "2.4.2",
4153 "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz",
4154 "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==",
4155 "license": "MIT",
4156 "dependencies": {
4157 "kleur": "^3.0.3",
4158 "sisteransi": "^1.0.5"
4159 },
4160 "engines": {
4161 "node": ">= 6"
4162 }
4163 },
4164 "node_modules/proxy-addr": {
4165 "version": "2.0.7",
4166 "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
4167 "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
4168 "license": "MIT",
4169 "dependencies": {
4170 "forwarded": "0.2.0",
4171 "ipaddr.js": "1.9.1"
4172 },
4173 "engines": {
4174 "node": ">= 0.10"
4175 }
4176 },
4177 "node_modules/pure-rand": {
4178 "version": "6.1.0",
4179 "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz",
4180 "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==",
4181 "funding": [
4182 {
4183 "type": "individual",
4184 "url": "https://github.com/sponsors/dubzzz"
4185 },
4186 {
4187 "type": "opencollective",
4188 "url": "https://opencollective.com/fast-check"
4189 }
4190 ],
4191 "license": "MIT"
4192 },
4193 "node_modules/qs": {
4194 "version": "6.14.2",
4195 "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz",
4196 "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==",
4197 "license": "BSD-3-Clause",
4198 "dependencies": {
4199 "side-channel": "^1.1.0"
4200 },
4201 "engines": {
4202 "node": ">=0.6"
4203 },
4204 "funding": {
4205 "url": "https://github.com/sponsors/ljharb"
4206 }
4207 },
4208 "node_modules/range-parser": {
4209 "version": "1.2.1",
4210 "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
4211 "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
4212 "license": "MIT",
4213 "engines": {
4214 "node": ">= 0.6"
4215 }
4216 },
4217 "node_modules/raw-body": {
4218 "version": "2.5.3",
4219 "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
4220 "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
4221 "license": "MIT",
4222 "dependencies": {
4223 "bytes": "~3.1.2",
4224 "http-errors": "~2.0.1",
4225 "iconv-lite": "~0.4.24",
4226 "unpipe": "~1.0.0"
4227 },
4228 "engines": {
4229 "node": ">= 0.8"
4230 }
4231 },
4232 "node_modules/react-is": {
4233 "version": "18.3.1",
4234 "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
4235 "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
4236 "license": "MIT"
4237 },
4238 "node_modules/readable-stream": {
4239 "version": "2.3.8",
4240 "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",
4241 "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
4242 "license": "MIT",
4243 "dependencies": {
4244 "core-util-is": "~1.0.0",
4245 "inherits": "~2.0.3",
4246 "isarray": "~1.0.0",
4247 "process-nextick-args": "~2.0.0",
4248 "safe-buffer": "~5.1.1",
4249 "string_decoder": "~1.1.1",
4250 "util-deprecate": "~1.0.1"
4251 }
4252 },
4253 "node_modules/readable-stream/node_modules/safe-buffer": {
4254 "version": "5.1.2",
4255 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
4256 "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
4257 "license": "MIT"
4258 },
4259 "node_modules/require-directory": {
4260 "version": "2.1.1",
4261 "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
4262 "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
4263 "license": "MIT",
4264 "engines": {
4265 "node": ">=0.10.0"
4266 }
4267 },
4268 "node_modules/resolve": {
4269 "version": "1.22.12",
4270 "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz",
4271 "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==",
4272 "license": "MIT",
4273 "dependencies": {
4274 "es-errors": "^1.3.0",
4275 "is-core-module": "^2.16.1",
4276 "path-parse": "^1.0.7",
4277 "supports-preserve-symlinks-flag": "^1.0.0"
4278 },
4279 "bin": {
4280 "resolve": "bin/resolve"
4281 },
4282 "engines": {
4283 "node": ">= 0.4"
4284 },
4285 "funding": {
4286 "url": "https://github.com/sponsors/ljharb"
4287 }
4288 },
4289 "node_modules/resolve-cwd": {
4290 "version": "3.0.0",
4291 "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz",
4292 "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==",
4293 "license": "MIT",
4294 "dependencies": {
4295 "resolve-from": "^5.0.0"
4296 },
4297 "engines": {
4298 "node": ">=8"
4299 }
4300 },
4301 "node_modules/resolve-from": {
4302 "version": "5.0.0",
4303 "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
4304 "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
4305 "license": "MIT",
4306 "engines": {
4307 "node": ">=8"
4308 }
4309 },
4310 "node_modules/resolve.exports": {
4311 "version": "2.0.3",
4312 "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz",
4313 "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==",
4314 "license": "MIT",
4315 "engines": {
4316 "node": ">=10"
4317 }
4318 },
4319 "node_modules/rimraf": {
4320 "version": "3.0.2",
4321 "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
4322 "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
4323 "deprecated": "Rimraf versions prior to v4 are no longer supported",
4324 "license": "ISC",
4325 "dependencies": {
4326 "glob": "^7.1.3"
4327 },
4328 "bin": {
4329 "rimraf": "bin.js"
4330 },
4331 "funding": {
4332 "url": "https://github.com/sponsors/isaacs"
4333 }
4334 },
4335 "node_modules/safe-buffer": {
4336 "version": "5.2.1",
4337 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
4338 "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
4339 "funding": [
4340 {
4341 "type": "github",
4342 "url": "https://github.com/sponsors/feross"
4343 },
4344 {
4345 "type": "patreon",
4346 "url": "https://www.patreon.com/feross"
4347 },
4348 {
4349 "type": "consulting",
4350 "url": "https://feross.org/support"
4351 }
4352 ],
4353 "license": "MIT"
4354 },
4355 "node_modules/safer-buffer": {
4356 "version": "2.1.2",
4357 "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
4358 "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
4359 "license": "MIT"
4360 },
4361 "node_modules/semver": {
4362 "version": "7.7.4",
4363 "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",
4364 "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
4365 "license": "ISC",
4366 "bin": {
4367 "semver": "bin/semver.js"
4368 },
4369 "engines": {
4370 "node": ">=10"
4371 }
4372 },
4373 "node_modules/send": {
4374 "version": "0.19.2",
4375 "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz",
4376 "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==",
4377 "license": "MIT",
4378 "dependencies": {
4379 "debug": "2.6.9",
4380 "depd": "2.0.0",
4381 "destroy": "1.2.0",
4382 "encodeurl": "~2.0.0",
4383 "escape-html": "~1.0.3",
4384 "etag": "~1.8.1",
4385 "fresh": "~0.5.2",
4386 "http-errors": "~2.0.1",
4387 "mime": "1.6.0",
4388 "ms": "2.1.3",
4389 "on-finished": "~2.4.1",
4390 "range-parser": "~1.2.1",
4391 "statuses": "~2.0.2"
4392 },
4393 "engines": {
4394 "node": ">= 0.8.0"
4395 }
4396 },
4397 "node_modules/send/node_modules/ms": {
4398 "version": "2.1.3",
4399 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
4400 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
4401 "license": "MIT"
4402 },
4403 "node_modules/serve-static": {
4404 "version": "1.16.3",
4405 "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz",
4406 "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==",
4407 "license": "MIT",
4408 "dependencies": {
4409 "encodeurl": "~2.0.0",
4410 "escape-html": "~1.0.3",
4411 "parseurl": "~1.3.3",
4412 "send": "~0.19.1"
4413 },
4414 "engines": {
4415 "node": ">= 0.8.0"
4416 }
4417 },
4418 "node_modules/set-blocking": {
4419 "version": "2.0.0",
4420 "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
4421 "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==",
4422 "license": "ISC"
4423 },
4424 "node_modules/setprototypeof": {
4425 "version": "1.2.0",
4426 "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
4427 "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
4428 "license": "ISC"
4429 },
4430 "node_modules/shebang-command": {
4431 "version": "2.0.0",
4432 "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
4433 "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
4434 "license": "MIT",
4435 "dependencies": {
4436 "shebang-regex": "^3.0.0"
4437 },
4438 "engines": {
4439 "node": ">=8"
4440 }
4441 },
4442 "node_modules/shebang-regex": {
4443 "version": "3.0.0",
4444 "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
4445 "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
4446 "license": "MIT",
4447 "engines": {
4448 "node": ">=8"
4449 }
4450 },
4451 "node_modules/side-channel": {
4452 "version": "1.1.0",
4453 "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
4454 "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
4455 "license": "MIT",
4456 "dependencies": {
4457 "es-errors": "^1.3.0",
4458 "object-inspect": "^1.13.3",
4459 "side-channel-list": "^1.0.0",
4460 "side-channel-map": "^1.0.1",
4461 "side-channel-weakmap": "^1.0.2"
4462 },
4463 "engines": {
4464 "node": ">= 0.4"
4465 },
4466 "funding": {
4467 "url": "https://github.com/sponsors/ljharb"
4468 }
4469 },
4470 "node_modules/side-channel-list": {
4471 "version": "1.0.1",
4472 "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
4473 "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
4474 "license": "MIT",
4475 "dependencies": {
4476 "es-errors": "^1.3.0",
4477 "object-inspect": "^1.13.4"
4478 },
4479 "engines": {
4480 "node": ">= 0.4"
4481 },
4482 "funding": {
4483 "url": "https://github.com/sponsors/ljharb"
4484 }
4485 },
4486 "node_modules/side-channel-map": {
4487 "version": "1.0.1",
4488 "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
4489 "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
4490 "license": "MIT",
4491 "dependencies": {
4492 "call-bound": "^1.0.2",
4493 "es-errors": "^1.3.0",
4494 "get-intrinsic": "^1.2.5",
4495 "object-inspect": "^1.13.3"
4496 },
4497 "engines": {
4498 "node": ">= 0.4"
4499 },
4500 "funding": {
4501 "url": "https://github.com/sponsors/ljharb"
4502 }
4503 },
4504 "node_modules/side-channel-weakmap": {
4505 "version": "1.0.2",
4506 "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
4507 "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
4508 "license": "MIT",
4509 "dependencies": {
4510 "call-bound": "^1.0.2",
4511 "es-errors": "^1.3.0",
4512 "get-intrinsic": "^1.2.5",
4513 "object-inspect": "^1.13.3",
4514 "side-channel-map": "^1.0.1"
4515 },
4516 "engines": {
4517 "node": ">= 0.4"
4518 },
4519 "funding": {
4520 "url": "https://github.com/sponsors/ljharb"
4521 }
4522 },
4523 "node_modules/signal-exit": {
4524 "version": "3.0.7",
4525 "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
4526 "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
4527 "license": "ISC"
4528 },
4529 "node_modules/sisteransi": {
4530 "version": "1.0.5",
4531 "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
4532 "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",
4533 "license": "MIT"
4534 },
4535 "node_modules/slash": {
4536 "version": "3.0.0",
4537 "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
4538 "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
4539 "license": "MIT",
4540 "engines": {
4541 "node": ">=8"
4542 }
4543 },
4544 "node_modules/source-map": {
4545 "version": "0.6.1",
4546 "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
4547 "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
4548 "license": "BSD-3-Clause",
4549 "engines": {
4550 "node": ">=0.10.0"
4551 }
4552 },
4553 "node_modules/source-map-support": {
4554 "version": "0.5.13",
4555 "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz",
4556 "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==",
4557 "license": "MIT",
4558 "dependencies": {
4559 "buffer-from": "^1.0.0",
4560 "source-map": "^0.6.0"
4561 }
4562 },
4563 "node_modules/sprintf-js": {
4564 "version": "1.1.2",
4565 "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz",
4566 "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==",
4567 "license": "BSD-3-Clause"
4568 },
4569 "node_modules/stack-utils": {
4570 "version": "2.0.6",
4571 "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz",
4572 "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==",
4573 "license": "MIT",
4574 "dependencies": {
4575 "escape-string-regexp": "^2.0.0"
4576 },
4577 "engines": {
4578 "node": ">=10"
4579 }
4580 },
4581 "node_modules/statuses": {
4582 "version": "2.0.2",
4583 "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
4584 "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
4585 "license": "MIT",
4586 "engines": {
4587 "node": ">= 0.8"
4588 }
4589 },
4590 "node_modules/streamsearch": {
4591 "version": "1.1.0",
4592 "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz",
4593 "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==",
4594 "engines": {
4595 "node": ">=10.0.0"
4596 }
4597 },
4598 "node_modules/string_decoder": {
4599 "version": "1.1.1",
4600 "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
4601 "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
4602 "license": "MIT",
4603 "dependencies": {
4604 "safe-buffer": "~5.1.0"
4605 }
4606 },
4607 "node_modules/string_decoder/node_modules/safe-buffer": {
4608 "version": "5.1.2",
4609 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
4610 "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
4611 "license": "MIT"
4612 },
4613 "node_modules/string-length": {
4614 "version": "4.0.2",
4615 "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz",
4616 "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==",
4617 "license": "MIT",
4618 "dependencies": {
4619 "char-regex": "^1.0.2",
4620 "strip-ansi": "^6.0.0"
4621 },
4622 "engines": {
4623 "node": ">=10"
4624 }
4625 },
4626 "node_modules/string-width": {
4627 "version": "4.2.3",
4628 "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
4629 "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
4630 "license": "MIT",
4631 "dependencies": {
4632 "emoji-regex": "^8.0.0",
4633 "is-fullwidth-code-point": "^3.0.0",
4634 "strip-ansi": "^6.0.1"
4635 },
4636 "engines": {
4637 "node": ">=8"
4638 }
4639 },
4640 "node_modules/strip-ansi": {
4641 "version": "6.0.1",
4642 "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
4643 "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
4644 "license": "MIT",
4645 "dependencies": {
4646 "ansi-regex": "^5.0.1"
4647 },
4648 "engines": {
4649 "node": ">=8"
4650 }
4651 },
4652 "node_modules/strip-bom": {
4653 "version": "4.0.0",
4654 "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz",
4655 "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==",
4656 "license": "MIT",
4657 "engines": {
4658 "node": ">=8"
4659 }
4660 },
4661 "node_modules/strip-final-newline": {
4662 "version": "2.0.0",
4663 "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
4664 "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",
4665 "license": "MIT",
4666 "engines": {
4667 "node": ">=6"
4668 }
4669 },
4670 "node_modules/strip-json-comments": {
4671 "version": "3.1.1",
4672 "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
4673 "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
4674 "license": "MIT",
4675 "engines": {
4676 "node": ">=8"
4677 },
4678 "funding": {
4679 "url": "https://github.com/sponsors/sindresorhus"
4680 }
4681 },
4682 "node_modules/supports-color": {
4683 "version": "7.2.0",
4684 "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
4685 "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
4686 "license": "MIT",
4687 "dependencies": {
4688 "has-flag": "^4.0.0"
4689 },
4690 "engines": {
4691 "node": ">=8"
4692 }
4693 },
4694 "node_modules/supports-preserve-symlinks-flag": {
4695 "version": "1.0.0",
4696 "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
4697 "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
4698 "license": "MIT",
4699 "engines": {
4700 "node": ">= 0.4"
4701 },
4702 "funding": {
4703 "url": "https://github.com/sponsors/ljharb"
4704 }
4705 },
4706 "node_modules/tar": {
4707 "version": "6.2.1",
4708 "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz",
4709 "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==",
4710 "deprecated": "Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me",
4711 "license": "ISC",
4712 "dependencies": {
4713 "chownr": "^2.0.0",
4714 "fs-minipass": "^2.0.0",
4715 "minipass": "^5.0.0",
4716 "minizlib": "^2.1.1",
4717 "mkdirp": "^1.0.3",
4718 "yallist": "^4.0.0"
4719 },
4720 "engines": {
4721 "node": ">=10"
4722 }
4723 },
4724 "node_modules/tar/node_modules/mkdirp": {
4725 "version": "1.0.4",
4726 "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
4727 "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
4728 "license": "MIT",
4729 "bin": {
4730 "mkdirp": "bin/cmd.js"
4731 },
4732 "engines": {
4733 "node": ">=10"
4734 }
4735 },
4736 "node_modules/tar/node_modules/yallist": {
4737 "version": "4.0.0",
4738 "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
4739 "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
4740 "license": "ISC"
4741 },
4742 "node_modules/test-exclude": {
4743 "version": "6.0.0",
4744 "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz",
4745 "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==",
4746 "license": "ISC",
4747 "dependencies": {
4748 "@istanbuljs/schema": "^0.1.2",
4749 "glob": "^7.1.4",
4750 "minimatch": "^3.0.4"
4751 },
4752 "engines": {
4753 "node": ">=8"
4754 }
4755 },
4756 "node_modules/tmpl": {
4757 "version": "1.0.5",
4758 "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz",
4759 "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==",
4760 "license": "BSD-3-Clause"
4761 },
4762 "node_modules/to-regex-range": {
4763 "version": "5.0.1",
4764 "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
4765 "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
4766 "license": "MIT",
4767 "dependencies": {
4768 "is-number": "^7.0.0"
4769 },
4770 "engines": {
4771 "node": ">=8.0"
4772 }
4773 },
4774 "node_modules/toidentifier": {
4775 "version": "1.0.1",
4776 "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
4777 "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
4778 "license": "MIT",
4779 "engines": {
4780 "node": ">=0.6"
4781 }
4782 },
4783 "node_modules/tr46": {
4784 "version": "0.0.3",
4785 "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
4786 "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
4787 "license": "MIT"
4788 },
4789 "node_modules/type-detect": {
4790 "version": "4.0.8",
4791 "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
4792 "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
4793 "license": "MIT",
4794 "engines": {
4795 "node": ">=4"
4796 }
4797 },
4798 "node_modules/type-fest": {
4799 "version": "0.21.3",
4800 "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",
4801 "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",
4802 "license": "(MIT OR CC0-1.0)",
4803 "engines": {
4804 "node": ">=10"
4805 },
4806 "funding": {
4807 "url": "https://github.com/sponsors/sindresorhus"
4808 }
4809 },
4810 "node_modules/type-is": {
4811 "version": "1.6.18",
4812 "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
4813 "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
4814 "license": "MIT",
4815 "dependencies": {
4816 "media-typer": "0.3.0",
4817 "mime-types": "~2.1.24"
4818 },
4819 "engines": {
4820 "node": ">= 0.6"
4821 }
4822 },
4823 "node_modules/typedarray": {
4824 "version": "0.0.6",
4825 "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
4826 "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==",
4827 "license": "MIT"
4828 },
4829 "node_modules/undici-types": {
4830 "version": "7.19.2",
4831 "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.19.2.tgz",
4832 "integrity": "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg==",
4833 "license": "MIT"
4834 },
4835 "node_modules/unpipe": {
4836 "version": "1.0.0",
4837 "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
4838 "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
4839 "license": "MIT",
4840 "engines": {
4841 "node": ">= 0.8"
4842 }
4843 },
4844 "node_modules/update-browserslist-db": {
4845 "version": "1.2.3",
4846 "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",
4847 "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",
4848 "funding": [
4849 {
4850 "type": "opencollective",
4851 "url": "https://opencollective.com/browserslist"
4852 },
4853 {
4854 "type": "tidelift",
4855 "url": "https://tidelift.com/funding/github/npm/browserslist"
4856 },
4857 {
4858 "type": "github",
4859 "url": "https://github.com/sponsors/ai"
4860 }
4861 ],
4862 "license": "MIT",
4863 "dependencies": {
4864 "escalade": "^3.2.0",
4865 "picocolors": "^1.1.1"
4866 },
4867 "bin": {
4868 "update-browserslist-db": "cli.js"
4869 },
4870 "peerDependencies": {
4871 "browserslist": ">= 4.21.0"
4872 }
4873 },
4874 "node_modules/util-deprecate": {
4875 "version": "1.0.2",
4876 "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
4877 "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
4878 "license": "MIT"
4879 },
4880 "node_modules/utils-merge": {
4881 "version": "1.0.1",
4882 "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
4883 "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
4884 "license": "MIT",
4885 "engines": {
4886 "node": ">= 0.4.0"
4887 }
4888 },
4889 "node_modules/uuid": {
4890 "version": "9.0.1",
4891 "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
4892 "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
4893 "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
4894 "funding": [
4895 "https://github.com/sponsors/broofa",
4896 "https://github.com/sponsors/ctavan"
4897 ],
4898 "license": "MIT",
4899 "bin": {
4900 "uuid": "dist/bin/uuid"
4901 }
4902 },
4903 "node_modules/v8-to-istanbul": {
4904 "version": "9.3.0",
4905 "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz",
4906 "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==",
4907 "license": "ISC",
4908 "dependencies": {
4909 "@jridgewell/trace-mapping": "^0.3.12",
4910 "@types/istanbul-lib-coverage": "^2.0.1",
4911 "convert-source-map": "^2.0.0"
4912 },
4913 "engines": {
4914 "node": ">=10.12.0"
4915 }
4916 },
4917 "node_modules/vary": {
4918 "version": "1.1.2",
4919 "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
4920 "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
4921 "license": "MIT",
4922 "engines": {
4923 "node": ">= 0.8"
4924 }
4925 },
4926 "node_modules/walker": {
4927 "version": "1.0.8",
4928 "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz",
4929 "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==",
4930 "license": "Apache-2.0",
4931 "dependencies": {
4932 "makeerror": "1.0.12"
4933 }
4934 },
4935 "node_modules/webidl-conversions": {
4936 "version": "3.0.1",
4937 "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
4938 "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
4939 "license": "BSD-2-Clause"
4940 },
4941 "node_modules/whatwg-url": {
4942 "version": "5.0.0",
4943 "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
4944 "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
4945 "license": "MIT",
4946 "dependencies": {
4947 "tr46": "~0.0.3",
4948 "webidl-conversions": "^3.0.0"
4949 }
4950 },
4951 "node_modules/which": {
4952 "version": "2.0.2",
4953 "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
4954 "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
4955 "license": "ISC",
4956 "dependencies": {
4957 "isexe": "^2.0.0"
4958 },
4959 "bin": {
4960 "node-which": "bin/node-which"
4961 },
4962 "engines": {
4963 "node": ">= 8"
4964 }
4965 },
4966 "node_modules/wide-align": {
4967 "version": "1.1.5",
4968 "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
4969 "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
4970 "license": "ISC",
4971 "dependencies": {
4972 "string-width": "^1.0.2 || 2 || 3 || 4"
4973 }
4974 },
4975 "node_modules/wrap-ansi": {
4976 "version": "7.0.0",
4977 "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
4978 "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
4979 "license": "MIT",
4980 "dependencies": {
4981 "ansi-styles": "^4.0.0",
4982 "string-width": "^4.1.0",
4983 "strip-ansi": "^6.0.0"
4984 },
4985 "engines": {
4986 "node": ">=10"
4987 },
4988 "funding": {
4989 "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
4990 }
4991 },
4992 "node_modules/wrappy": {
4993 "version": "1.0.2",
4994 "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
4995 "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
4996 "license": "ISC"
4997 },
4998 "node_modules/write-file-atomic": {
4999 "version": "4.0.2",
5000 "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz",
5001 "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==",
5002 "license": "ISC",
5003 "dependencies": {
5004 "imurmurhash": "^0.1.4",
5005 "signal-exit": "^3.0.7"
5006 },
5007 "engines": {
5008 "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
5009 }
5010 },
5011 "node_modules/xtend": {
5012 "version": "4.0.2",
5013 "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
5014 "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
5015 "license": "MIT",
5016 "engines": {
5017 "node": ">=0.4"
5018 }
5019 },
5020 "node_modules/y18n": {
5021 "version": "5.0.8",
5022 "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
5023 "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
5024 "license": "ISC",
5025 "engines": {
5026 "node": ">=10"
5027 }
5028 },
5029 "node_modules/yallist": {
5030 "version": "3.1.1",
5031 "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
5032 "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
5033 "license": "ISC"
5034 },
5035 "node_modules/yargs": {
5036 "version": "17.7.2",
5037 "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
5038 "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
5039 "license": "MIT",
5040 "dependencies": {
5041 "cliui": "^8.0.1",
5042 "escalade": "^3.1.1",
5043 "get-caller-file": "^2.0.5",
5044 "require-directory": "^2.1.1",
5045 "string-width": "^4.2.3",
5046 "y18n": "^5.0.5",
5047 "yargs-parser": "^21.1.1"
5048 },
5049 "engines": {
5050 "node": ">=12"
5051 }
5052 },
5053 "node_modules/yargs-parser": {
5054 "version": "21.1.1",
5055 "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
5056 "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
5057 "license": "ISC",
5058 "engines": {
5059 "node": ">=12"
5060 }
5061 },
5062 "node_modules/yauzl": {
5063 "version": "2.10.0",
5064 "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
5065 "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",
5066 "license": "MIT",
5067 "dependencies": {
5068 "buffer-crc32": "~0.2.3",
5069 "fd-slicer": "~1.1.0"
5070 }
5071 },
5072 "node_modules/yocto-queue": {
5073 "version": "0.1.0",
5074 "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
5075 "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
5076 "license": "MIT",
5077 "engines": {
5078 "node": ">=10"
5079 },
5080 "funding": {
5081 "url": "https://github.com/sponsors/sindresorhus"
5082 }
5083 }
5084 }
5085}
package.json added +20 −0
@@ -0,0 +1,20 @@
1 {
2 "name": "filemanager",
3 "version": "1.0.0",
4 "description": "Self-hosted file manager for Raspberry Pi",
5 "main": "server/index.js",
6 "scripts": {
7 "start": "node server/index.js",
8 "test": "jest --runInBand"
9 },
10 "dependencies": {
11 "bcrypt": "^5.1.1",
12 "node-sqlite3-wasm": "^0.8.10",
13 "express": "^4.18.2",
14 "geoip-lite": "^1.4.10",
15 "jsonwebtoken": "^9.0.2",
16 "multer": "^1.4.5-lts.1",
17 "uuid": "^9.0.0",
18 "jest": "^29.7.0"
19 }
20 }
@@ -0,0 +1,20 @@
1{
2 "name": "filemanager",
3 "version": "1.0.0",
4 "description": "Self-hosted file manager for Raspberry Pi",
5 "main": "server/index.js",
6 "scripts": {
7 "start": "node server/index.js",
8 "test": "jest --runInBand"
9 },
10 "dependencies": {
11 "bcrypt": "^5.1.1",
12 "node-sqlite3-wasm": "^0.8.10",
13 "express": "^4.18.2",
14 "geoip-lite": "^1.4.10",
15 "jsonwebtoken": "^9.0.2",
16 "multer": "^1.4.5-lts.1",
17 "uuid": "^9.0.0",
18 "jest": "^29.7.0"
19 }
20}
public/app.js added +1084 −0
@@ -0,0 +1,1084 @@
1 /* =========================================================
2 FILE MANAGER — CLIENT SPA
3 =========================================================
4 Architecture:
5 - RSA-OAEP + AES-256-GCM hybrid encryption via Web Crypto API
6 - No cookies / sessionStorage — token lives in module-scoped memory
7 - Token is sent as Bearer header on every API call
8 - Fingerprint (derived from navigator info) locks the token to this browser
9 ========================================================= */
10 'use strict';
11
12 // ───────────────────────────────────────────────────────────────────────────
13 // STATE
14 // ───────────────────────────────────────────────────────────────────────────
15 const STATE = {
16 token: null, // decrypted JWT string
17 username: null,
18 isAdmin: false,
19 permissions: {},
20 roots: [], // [{ label, path }]
21 currentDir: null, // absolute path currently shown (null = roots view)
22 currentRoot: null, // { label, path } of the active root
23 items: [], // current directory listing
24 selectedItem: null, // item object selected in sidebar
25
26 // Ephemeral key pair per session (client-side)
27 clientPrivateKey: null,
28 clientPublicKeyJwk: null,
29
30 // Server public key for encrypting login
31 serverPublicKeyJwk: null,
32 };
33
34 // ───────────────────────────────────────────────────────────────────────────
35 // CRYPTO HELPERS (Web Crypto API)
36 // ───────────────────────────────────────────────────────────────────────────
37
38 async function generateClientKeyPair() {
39 const kp = await crypto.subtle.generateKey(
40 { name: 'RSA-OAEP', modulusLength: 2048, publicExponent: new Uint8Array([1,0,1]), hash: 'SHA-256' },
41 true,
42 ['encrypt', 'decrypt'],
43 );
44 STATE.clientPrivateKey = kp.privateKey;
45 STATE.clientPublicKeyJwk = await crypto.subtle.exportKey('jwk', kp.publicKey);
46 }
47
48 /**
49 * Hybrid-encrypt a JS object using the server's RSA public key.
50 * Returns { encryptedKey, iv, ciphertext, tag } all as base64 strings.
51 */
52 async function hybridEncryptForServer(obj) {
53 const serverPub = await crypto.subtle.importKey(
54 'jwk', STATE.serverPublicKeyJwk,
55 { name: 'RSA-OAEP', hash: 'SHA-256' },
56 false, ['encrypt'],
57 );
58
59 const plaintext = new TextEncoder().encode(JSON.stringify(obj));
60 const aesKey = await crypto.subtle.generateKey({ name: 'AES-GCM', length: 256 }, true, ['encrypt']);
61 const iv = crypto.getRandomValues(new Uint8Array(12));
62 const gcmResult = await crypto.subtle.encrypt({ name: 'AES-GCM', iv }, aesKey, plaintext);
63
64 // gcmResult = ciphertext || tag (last 16 bytes are auth tag)
65 const gcmBytes = new Uint8Array(gcmResult);
66 const ciphertext = gcmBytes.slice(0, gcmBytes.length - 16);
67 const tag = gcmBytes.slice(gcmBytes.length - 16);
68
69 const rawAes = await crypto.subtle.exportKey('raw', aesKey);
70 const encryptedKey = await crypto.subtle.encrypt({ name: 'RSA-OAEP' }, serverPub, rawAes);
71
72 return {
73 encryptedKey: b64(encryptedKey),
74 iv: b64(iv),
75 ciphertext: b64(ciphertext),
76 tag: b64(tag),
77 };
78 }
79
80 /**
81 * Hybrid-decrypt a payload encrypted by the server for us (using our public key).
82 */
83 async function hybridDecryptFromServer(payload) {
84 const encryptedKey = unb64(payload.encryptedKey);
85 const iv = unb64(payload.iv);
86 const ciphertext = unb64(payload.ciphertext);
87 const tag = unb64(payload.tag);
88
89 const rawAes = await crypto.subtle.decrypt(
90 { name: 'RSA-OAEP' }, STATE.clientPrivateKey, encryptedKey,
91 );
92
93 const aesKey = await crypto.subtle.importKey('raw', rawAes, { name: 'AES-GCM' }, false, ['decrypt']);
94
95 // Recombine ciphertext + tag for AES-GCM
96 const combined = new Uint8Array(ciphertext.byteLength + tag.byteLength);
97 combined.set(new Uint8Array(ciphertext));
98 combined.set(new Uint8Array(tag), ciphertext.byteLength);
99
100 const plain = await crypto.subtle.decrypt({ name: 'AES-GCM', iv }, aesKey, combined);
101 return new TextDecoder().decode(plain);
102 }
103
104 // ───────────────────────────────────────────────────────────────────────────
105 // UTIL
106 // ───────────────────────────────────────────────────────────────────────────
107
108 function b64(buf) {
109 return btoa(String.fromCharCode(...new Uint8Array(buf instanceof ArrayBuffer ? buf : buf.buffer)));
110 }
111
112 function unb64(str) {
113 const binary = atob(str);
114 const buf = new Uint8Array(binary.length);
115 for (let i = 0; i < binary.length; i++) buf[i] = binary.charCodeAt(i);
116 return buf.buffer;
117 }
118
119 /** Stable browser fingerprint (not stored, derived fresh each load) */
120 function getFingerprint() {
121 const nav = navigator;
122 return [
123 nav.language,
124 nav.platform || nav.userAgentData?.platform || '',
125 nav.hardwareConcurrency,
126 screen.colorDepth,
127 screen.width + 'x' + screen.height,
128 Intl.DateTimeFormat().resolvedOptions().timeZone,
129 ].join('|');
130 }
131
132 function formatBytes(bytes) {
133 if (bytes == null) return '—';
134 if (bytes < 1024) return bytes + ' B';
135 if (bytes < 1048576) return (bytes / 1024).toFixed(1) + ' KB';
136 if (bytes < 1073741824) return (bytes / 1048576).toFixed(1) + ' MB';
137 return (bytes / 1073741824).toFixed(2) + ' GB';
138 }
139
140 function extOf(name) {
141 const i = name.lastIndexOf('.');
142 return i >= 0 ? name.slice(i + 1).toLowerCase() : '';
143 }
144
145 // ───────────────────────────────────────────────────────────────────────────
146 // API
147 // ───────────────────────────────────────────────────────────────────────────
148
149 async function api(method, path, body, opts = {}) {
150 const headers = { 'Content-Type': 'application/json' };
151 if (STATE.token) {
152 headers['Authorization'] = 'Bearer ' + STATE.token;
153 headers['X-Fp'] = getFingerprint();
154 }
155 const res = await fetch('/api' + path, {
156 method,
157 headers,
158 body: body != null ? JSON.stringify(body) : undefined,
159 ...opts,
160 });
161 if (!res.ok) {
162 const j = await res.json().catch(() => ({}));
163 // Session-expired → force re-login
164 if (res.status === 401) { logout(); return null; }
165 throw new Error(j.error || res.statusText);
166 }
167 return res.json();
168 }
169
170 // ───────────────────────────────────────────────────────────────────────────
171 // TOAST
172 // ───────────────────────────────────────────────────────────────────────────
173
174 function toast(msg, type = '') {
175 const el = document.createElement('div');
176 el.className = 'toast-msg' + (type ? ' ' + type : '');
177 el.textContent = msg;
178 document.getElementById('toast').appendChild(el);
179 setTimeout(() => el.remove(), 3500);
180 }
181
182 // ───────────────────────────────────────────────────────────────────────────
183 // AUTH FLOW
184 // ───────────────────────────────────────────────────────────────────────────
185
186 function showAuthOverlay(setupMode = false) {
187 document.getElementById('app').classList.add('hidden');
188 const overlay = document.getElementById('auth-overlay');
189 overlay.classList.remove('hidden');
190 document.getElementById('auth-title').textContent = setupMode ? 'Create Admin Account' : 'Sign In';
191 document.getElementById('auth-subtitle').classList.toggle('hidden', !setupMode);
192 document.getElementById('auth-submit').textContent = setupMode ? 'Create Account' : 'Sign In';
193 document.getElementById('auth-error').classList.add('hidden');
194 document.getElementById('auth-username').value = '';
195 document.getElementById('auth-password').value = '';
196 document.getElementById('auth-username').focus();
197 document.getElementById('auth-form').dataset.mode = setupMode ? 'setup' : 'login';
198 }
199
200 function showApp() {
201 document.getElementById('auth-overlay').classList.add('hidden');
202 document.getElementById('app').classList.remove('hidden');
203 document.getElementById('btn-admin').classList.toggle('hidden', !STATE.isAdmin);
204 }
205
206 async function initAuth() {
207 // Always generate a fresh key pair so each page-load session is independent
208 await generateClientKeyPair();
209
210 // Fetch server public key
211 const { publicKey } = await api('GET', '/auth/server-key').catch(() => ({ publicKey: null }));
212 if (!publicKey) { toast('Could not reach server.', 'err'); return; }
213 STATE.serverPublicKeyJwk = publicKey;
214
215 // Check whether first-run setup is needed
216 const { needed } = await api('GET', '/auth/setup-needed').catch(() => ({ needed: false }));
217 showAuthOverlay(needed);
218 }
219
220 async function doLogin(username, password, isSetup) {
221 const encrypted = await hybridEncryptForServer({ username, password });
222 const endpoint = isSetup ? '/auth/setup' : '/auth/login';
223
224 let data;
225 try {
226 data = await api('POST', endpoint, {
227 encrypted,
228 clientPublicKey: STATE.clientPublicKeyJwk,
229 fingerprint: getFingerprint(),
230 });
231 } catch (err) {
232 return err.message;
233 }
234
235 if (!data) return 'Login failed.';
236
237 // Decrypt the token sent back by the server
238 const token = await hybridDecryptFromServer(data.encrypted);
239 STATE.token = token;
240
241 // Load user info
242 const me = await api('GET', '/auth/me');
243 if (!me) return 'Session error.';
244
245 STATE.username = me.username;
246 STATE.isAdmin = me.isAdmin;
247 STATE.permissions = me.permissions;
248
249 showApp();
250 await loadRoots();
251 return null; // no error
252 }
253
254 function logout() {
255 STATE.token = null;
256 STATE.username = null;
257 STATE.isAdmin = false;
258 STATE.permissions = {};
259 STATE.currentDir = null;
260 STATE.currentRoot = null;
261 STATE.items = [];
262 closeSidebar();
263 initAuth();
264 }
265
266 // ───────────────────────────────────────────────────────────────────────────
267 // NAVIGATION
268 // ───────────────────────────────────────────────────────────────────────────
269
270 async function loadRoots() {
271 const data = await api('GET', '/files/roots');
272 if (!data) return;
273 STATE.roots = data.roots;
274
275 if (STATE.roots.length === 1) {
276 // Single root → open it directly
277 await navigateTo(STATE.roots[0].path, STATE.roots[0]);
278 } else {
279 renderRootsView();
280 }
281 }
282
283 function renderRootsView() {
284 STATE.currentDir = null;
285 STATE.currentRoot = null;
286 renderBreadcrumb();
287 const grid = document.getElementById('file-grid');
288 grid.innerHTML = '';
289 document.getElementById('empty-notice').classList.add('hidden');
290 closeSidebar();
291
292 for (const root of STATE.roots) {
293 const el = makeFileItem({ name: root.label, isDir: true, path: root.path, _root: root });
294 grid.appendChild(el);
295 }
296 }
297
298 async function navigateTo(absPath, root) {
299 if (root) STATE.currentRoot = root;
300 STATE.currentDir = absPath;
301
302 const data = await api('GET', `/files/list?dir=${encodeURIComponent(absPath)}`);
303 if (!data) return;
304
305 STATE.items = data.items;
306 renderBreadcrumb();
307 renderFileGrid();
308 closeSidebar();
309 }
310
311 function renderBreadcrumb() {
312 const nav = document.getElementById('breadcrumb');
313 nav.innerHTML = '';
314
315 // "Home" crumb
316 const home = document.createElement('span');
317 home.className = 'crumb' + (STATE.currentDir == null ? ' active' : '');
318 home.textContent = 'Home';
319 home.addEventListener('click', () => {
320 if (STATE.roots.length === 1) {
321 navigateTo(STATE.roots[0].path, STATE.roots[0]);
322 } else {
323 renderRootsView();
324 }
325 });
326 nav.appendChild(home);
327
328 if (!STATE.currentDir || !STATE.currentRoot) return;
329
330 // Build path segments relative to the root
331 const rootPath = STATE.currentRoot.path;
332 const relative = STATE.currentDir === rootPath
333 ? ''
334 : STATE.currentDir.replace(rootPath, '').replace(/^[\\/]/, '');
335
336 const parts = [STATE.currentRoot.label, ...relative.split(/[\\/]/).filter(Boolean)];
337 let accumulated = rootPath;
338
339 for (let i = 0; i < parts.length; i++) {
340 const sep = document.createElement('span');
341 sep.className = 'sep';
342 sep.textContent = ' / ';
343 nav.appendChild(sep);
344
345 const crumb = document.createElement('span');
346 crumb.className = 'crumb' + (i === parts.length - 1 ? ' active' : '');
347 crumb.textContent = parts[i];
348
349 // Capture the path for this crumb
350 const capturedPath = i === 0 ? rootPath : accumulated;
351 if (i < parts.length - 1) {
352 crumb.addEventListener('click', () => navigateTo(capturedPath, STATE.currentRoot));
353 }
354
355 nav.appendChild(crumb);
356
357 // Advance accumulated path (skip for root label)
358 if (i > 0) accumulated = accumulated + '/' + parts[i];
359 else if (i === 0 && parts.length > 1) {
360 // After root label, next crumb should append the next segment
361 accumulated = rootPath;
362 }
363 }
364 }
365
366 // ───────────────────────────────────────────────────────────────────────────
367 // FILE GRID RENDERING
368 // ───────────────────────────────────────────────────────────────────────────
369
370 function renderFileGrid() {
371 const grid = document.getElementById('file-grid');
372 grid.innerHTML = '';
373 const empty = document.getElementById('empty-notice');
374
375 const sorted = [...STATE.items].sort((a, b) => {
376 if (a.isDir !== b.isDir) return a.isDir ? -1 : 1;
377 return a.name.localeCompare(b.name);
378 });
379
380 empty.classList.toggle('hidden', sorted.length > 0);
381
382 for (const item of sorted) {
383 grid.appendChild(makeFileItem(item));
384 }
385 }
386
387 function makeFileItem(item) {
388 const el = document.createElement('div');
389 el.className = 'file-item';
390 el.dataset.path = item.path;
391
392 const icon = document.createElement('div');
393 icon.className = 'icon';
394 icon.innerHTML = item.isDir ? iconFolder() : iconFile(item.name);
395 el.appendChild(icon);
396
397 const name = document.createElement('div');
398 name.className = 'name';
399 name.textContent = item.name;
400 el.appendChild(name);
401
402 // Single-click: open sidebar
403 el.addEventListener('click', (e) => {
404 e.stopPropagation();
405 if (item._root) {
406 // Clicking a root tile goes straight in
407 navigateTo(item.path, item._root);
408 return;
409 }
410 selectItem(el, item);
411 });
412
413 // Double-click: enter folder or view/download file
414 el.addEventListener('dblclick', (e) => {
415 e.stopPropagation();
416 if (item.isDir) {
417 navigateTo(item.path, STATE.currentRoot);
418 } else {
419 downloadOrView(item);
420 }
421 });
422
423 return el;
424 }
425
426 function selectItem(el, item) {
427 document.querySelectorAll('.file-item.selected').forEach(e => e.classList.remove('selected'));
428 el.classList.add('selected');
429 STATE.selectedItem = item;
430 openSidebar(item);
431 }
432
433 // ───────────────────────────────────────────────────────────────────────────
434 // SIDEBAR
435 // ───────────────────────────────────────────────────────────────────────────
436
437 async function openSidebar(item) {
438 const sidebar = document.getElementById('sidebar');
439 sidebar.classList.remove('hidden');
440 document.getElementById('app').classList.add('sidebar-open');
441
442 document.getElementById('sidebar-icon').innerHTML = item.isDir ? iconFolder(64) : iconFile(item.name, 64);
443 document.getElementById('sidebar-name').textContent = item.name;
444
445 // Load metadata
446 const dl = document.getElementById('sidebar-meta');
447 dl.innerHTML = '<dt>Loading…</dt><dd></dd>';
448
449 const actions = document.getElementById('sidebar-actions');
450 actions.innerHTML = '';
451
452 if (!item.isDir) {
453 const meta = await api('GET', `/files/meta?file=${encodeURIComponent(item.path)}`);
454 if (meta) {
455 dl.innerHTML = `
456 <dt>Size</dt> <dd>${formatBytes(meta.size)}</dd>
457 <dt>Modified</dt> <dd>${new Date(meta.mtime).toLocaleString()}</dd>
458 <dt>Uploaded by</dt><dd>${meta.uploader || '—'}</dd>
459 <dt>Downloaded by</dt><dd>${meta.downloaders.join(', ') || '—'}</dd>
460 `;
461 }
462
463 // View / download button
464 const btnDl = document.createElement('button');
465 btnDl.textContent = 'View / Download';
466 btnDl.addEventListener('click', () => downloadOrView(item));
467 actions.appendChild(btnDl);
468 } else {
469 dl.innerHTML = `<dt>Type</dt><dd>Folder</dd>`;
470 const btnOpen = document.createElement('button');
471 btnOpen.textContent = 'Open folder';
472 btnOpen.addEventListener('click', () => navigateTo(item.path, STATE.currentRoot));
473 actions.appendChild(btnOpen);
474 }
475
476 // Rename button (write access required)
477 if (canWrite()) {
478 const btnRen = document.createElement('button');
479 btnRen.textContent = 'Rename';
480 btnRen.addEventListener('click', () => openRenameModal(item));
481 actions.appendChild(btnRen);
482
483 const btnDel = document.createElement('button');
484 btnDel.textContent = 'Delete';
485 btnDel.className = 'danger';
486 btnDel.addEventListener('click', () => deleteItem(item));
487 actions.appendChild(btnDel);
488 }
489 }
490
491 function closeSidebar() {
492 document.getElementById('sidebar').classList.add('hidden');
493 document.getElementById('app').classList.remove('sidebar-open');
494 document.querySelectorAll('.file-item.selected').forEach(e => e.classList.remove('selected'));
495 STATE.selectedItem = null;
496 }
497
498 // ───────────────────────────────────────────────────────────────────────────
499 // DOWNLOAD / VIEW
500 // ───────────────────────────────────────────────────────────────────────────
501
502 function downloadOrView(item) {
503 const url = `/api/files/download?file=${encodeURIComponent(item.path)}`;
504 // Open in new tab — browser decides whether to display or download
505 const a = document.createElement('a');
506 a.href = url;
507 a.target = '_blank';
508 a.rel = 'noopener noreferrer';
509 // We need to send the auth header; since <a> can't do that, we fetch and blob it
510 fetchAndServe(item, url);
511 }
512
513 async function fetchAndServe(item, url) {
514 try {
515 const res = await fetch(url, {
516 headers: {
517 Authorization: 'Bearer ' + STATE.token,
518 'X-Fp': getFingerprint(),
519 },
520 });
521 if (!res.ok) { toast('Download failed.', 'err'); return; }
522 const blob = await res.blob();
523 const objUrl = URL.createObjectURL(blob);
524 const a = document.createElement('a');
525 a.href = objUrl;
526 a.download = item.name;
527 // Try to open viewable types inline
528 const viewable = /^(image|video|audio|text|application\/pdf)/.test(blob.type);
529 if (viewable) {
530 window.open(objUrl, '_blank', 'noopener,noreferrer');
531 } else {
532 a.click();
533 }
534 setTimeout(() => URL.revokeObjectURL(objUrl), 60000);
535 } catch {
536 toast('Download failed.', 'err');
537 }
538 }
539
540 // ───────────────────────────────────────────────────────────────────────────
541 // UPLOAD
542 // ───────────────────────────────────────────────────────────────────────────
543
544 function canWrite() {
545 if (STATE.isAdmin) return true;
546 if (!STATE.currentRoot) return false;
547 const p = STATE.permissions[STATE.currentRoot.label];
548 return p && p.write;
549 }
550
551 async function uploadFiles(fileList) {
552 if (!STATE.currentDir) { toast('Open a folder first.', 'err'); return; }
553 if (!canWrite()) { toast('No write access.', 'err'); return; }
554
555 const formData = new FormData();
556 for (const f of fileList) formData.append('files', f);
557
558 // Show upload bar
559 const wrap = document.createElement('div');
560 wrap.className = 'upload-bar-wrap';
561 wrap.innerHTML = `<span>Uploading ${fileList.length} file(s)…</span><div class="upload-bar-track"><div class="upload-bar-fill" style="width:0%"></div></div>`;
562 document.body.appendChild(wrap);
563
564 try {
565 const xhr = new XMLHttpRequest();
566 xhr.open('POST', `/api/files/upload?dir=${encodeURIComponent(STATE.currentDir)}`);
567 xhr.setRequestHeader('Authorization', 'Bearer ' + STATE.token);
568 xhr.setRequestHeader('X-Fp', getFingerprint());
569
570 xhr.upload.addEventListener('progress', e => {
571 if (e.lengthComputable) {
572 wrap.querySelector('.upload-bar-fill').style.width = (e.loaded / e.total * 100) + '%';
573 }
574 });
575
576 await new Promise((resolve, reject) => {
577 xhr.onload = () => {
578 if (xhr.status === 200) resolve();
579 else reject(new Error(JSON.parse(xhr.responseText).error || 'Upload failed'));
580 };
581 xhr.onerror = () => reject(new Error('Network error'));
582 xhr.send(formData);
583 });
584
585 toast(`Uploaded ${fileList.length} file(s).`, 'ok');
586 await navigateTo(STATE.currentDir, STATE.currentRoot);
587 } catch (err) {
588 toast(err.message, 'err');
589 } finally {
590 wrap.remove();
591 }
592 }
593
594 // ───────────────────────────────────────────────────────────────────────────
595 // FOLDER DRAG-AND-DROP (recursive)
596 // ───────────────────────────────────────────────────────────────────────────
597
598 /**
599 * Reads all readEntries batches from a DirectoryReader (browsers may return
600 * results in chunks; we must keep calling until we get an empty array).
601 */
602 function readAllEntries(reader) {
603 return new Promise((resolve, reject) => {
604 const all = [];
605 function next() {
606 reader.readEntries(batch => {
607 if (!batch.length) { resolve(all); return; }
608 all.push(...batch);
609 next();
610 }, reject);
611 }
612 next();
613 });
614 }
615
616 /**
617 * Recursively walk a FileSystemEntry tree, creating server-side directories
618 * on the fly and collecting { file, targetDir } pairs for upload.
619 */
620 async function collectEntries(entry, serverDir, toUpload) {
621 if (entry.isFile) {
622 const file = await new Promise((res, rej) => entry.getFile(res, rej));
623 toUpload.push({ file, targetDir: serverDir });
624 } else if (entry.isDirectory) {
625 // Ask the server to create the directory; it returns the canonical path.
626 let newServerDir;
627 try {
628 const resp = await api('POST', '/files/mkdir', { dir: serverDir, name: entry.name });
629 newServerDir = resp.path;
630 } catch {
631 // Directory may already exist — reconstruct path from what we know.
632 // The server always returns JSON with {error} on failure, so we can
633 // still continue by falling back to a best-effort path join.
634 // We rely on the fact that the server separator is consistent within
635 // a session (the list/browse API already returned paths in that format).
636 const sep = serverDir.includes('\\') ? '\\' : '/';
637 newServerDir = serverDir + sep + entry.name;
638 }
639 const reader = entry.createReader();
640 const subEntries = await readAllEntries(reader);
641 for (const sub of subEntries) {
642 await collectEntries(sub, newServerDir, toUpload);
643 }
644 }
645 }
646
647 async function uploadEntries(entries) {
648 if (!STATE.currentDir) { toast('Open a folder first.', 'err'); return; }
649 if (!canWrite()) { toast('No write access.', 'err'); return; }
650
651 const wrap = document.createElement('div');
652 wrap.className = 'upload-bar-wrap';
653 wrap.innerHTML = `<span>Scanning…</span><div class="upload-bar-track"><div class="upload-bar-fill" style="width:0%"></div></div>`;
654 document.body.appendChild(wrap);
655
656 try {
657 const toUpload = [];
658 for (const entry of entries) {
659 await collectEntries(entry, STATE.currentDir, toUpload);
660 }
661
662 if (!toUpload.length) { toast('No files found.', 'err'); return; }
663
664 let done = 0;
665 const total = toUpload.length;
666 const updateBar = () => {
667 wrap.querySelector('span').textContent = `Uploading ${done} / ${total} file(s)…`;
668 wrap.querySelector('.upload-bar-fill').style.width = (done / total * 100) + '%';
669 };
670 updateBar();
671
672 for (const { file, targetDir } of toUpload) {
673 const formData = new FormData();
674 formData.append('files', file);
675 await new Promise((resolve, reject) => {
676 const xhr = new XMLHttpRequest();
677 xhr.open('POST', `/api/files/upload?dir=${encodeURIComponent(targetDir)}`);
678 xhr.setRequestHeader('Authorization', 'Bearer ' + STATE.token);
679 xhr.setRequestHeader('X-Fp', getFingerprint());
680 xhr.onload = () => xhr.status === 200
681 ? resolve()
682 : reject(new Error((JSON.parse(xhr.responseText) || {}).error || 'Upload failed'));
683 xhr.onerror = () => reject(new Error('Network error'));
684 xhr.send(formData);
685 });
686 done++;
687 updateBar();
688 }
689
690 toast(`Uploaded ${total} file(s).`, 'ok');
691 await navigateTo(STATE.currentDir, STATE.currentRoot);
692 } catch (err) {
693 toast(err.message, 'err');
694 } finally {
695 wrap.remove();
696 }
697 }
698
699 // DRAG-AND-DROP
700 // ───────────────────────────────────────────────────────────────────────────
701
702 function initDragDrop() {
703 const main = document.getElementById('main-content');
704 const dropOvl = document.getElementById('drop-overlay');
705 let dragDepth = 0;
706
707 main.addEventListener('dragenter', e => {
708 e.preventDefault();
709 dragDepth++;
710 dropOvl.classList.remove('hidden');
711 });
712 main.addEventListener('dragleave', () => {
713 dragDepth--;
714 if (dragDepth <= 0) { dragDepth = 0; dropOvl.classList.add('hidden'); }
715 });
716 main.addEventListener('dragover', e => e.preventDefault());
717 main.addEventListener('drop', async e => {
718 e.preventDefault();
719 dragDepth = 0;
720 dropOvl.classList.add('hidden');
721 if (!canWrite()) { toast('No write access.', 'err'); return; }
722
723 const items = Array.from(e.dataTransfer.items || []);
724 // Use the FileSystem Entry API when available so we can handle folders.
725 if (items.length && typeof items[0].webkitGetAsEntry === 'function') {
726 const entries = items.map(i => i.webkitGetAsEntry()).filter(Boolean);
727 if (entries.some(en => en.isDirectory)) {
728 await uploadEntries(entries);
729 return;
730 }
731 }
732 // Plain files only — use the fast batch path.
733 const files = e.dataTransfer.files;
734 if (files.length) await uploadFiles(files);
735 });
736 }
737
738 // ───────────────────────────────────────────────────────────────────────────
739 // RENAME
740 // ───────────────────────────────────────────────────────────────────────────
741
742 function openRenameModal(item) {
743 const modal = document.getElementById('rename-modal');
744 modal.classList.remove('hidden');
745 const input = document.getElementById('rename-input');
746 input.value = item.name;
747 input.focus();
748 input.select();
749 document.getElementById('rename-error').classList.add('hidden');
750 document.getElementById('rename-form').onsubmit = async (e) => {
751 e.preventDefault();
752 const newName = input.value.trim();
753 if (!newName) return;
754 try {
755 await api('POST', '/files/rename', { from: item.path, to: newName });
756 modal.classList.add('hidden');
757 toast('Renamed.', 'ok');
758 await navigateTo(STATE.currentDir, STATE.currentRoot);
759 } catch (err) {
760 document.getElementById('rename-error').textContent = err.message;
761 document.getElementById('rename-error').classList.remove('hidden');
762 }
763 };
764 }
765
766 // ───────────────────────────────────────────────────────────────────────────
767 // DELETE
768 // ───────────────────────────────────────────────────────────────────────────
769
770 async function deleteItem(item) {
771 if (!confirm(`Delete "${item.name}"? This cannot be undone.`)) return;
772 try {
773 await api('POST', '/files/delete', { path: item.path });
774 toast('Deleted.', 'ok');
775 closeSidebar();
776 await navigateTo(STATE.currentDir, STATE.currentRoot);
777 } catch (err) {
778 toast(err.message, 'err');
779 }
780 }
781
782 // ───────────────────────────────────────────────────────────────────────────
783 // ADMIN PANEL
784 // ───────────────────────────────────────────────────────────────────────────
785
786 async function openAdminModal() {
787 document.getElementById('admin-modal').classList.remove('hidden');
788 await refreshAdminConfig();
789 await refreshAdminUsers();
790 }
791
792 async function refreshAdminConfig() {
793 const data = await api('GET', '/admin/config');
794 if (!data) return;
795 const container = document.getElementById('admin-paths');
796 container.innerHTML = '';
797 for (const p of data.paths) {
798 const row = document.createElement('div');
799 row.className = 'path-row';
800 row.innerHTML = `<span>${p}</span><button data-path="${p}" title="Remove">✕</button>`;
801 row.querySelector('button').addEventListener('click', () => {
802 row.remove();
803 });
804 container.appendChild(row);
805 }
806 }
807
808 async function refreshAdminUsers() {
809 const data = await api('GET', '/admin/users');
810 if (!data) return;
811 const container = document.getElementById('admin-users-list');
812 container.innerHTML = '';
813
814 // Need paths for permission rows
815 const cfg = await api('GET', '/admin/config');
816 const paths = cfg ? (cfg.effectivePaths || []) : [];
817
818 for (const u of data.users) {
819 const row = document.createElement('div');
820 row.className = 'user-row';
821 row.innerHTML = `
822 <span class="user-name">${u.username}</span>
823 ${u.isAdmin ? '<span class="user-admin-badge">Admin</span>' : ''}
824 <button data-id="${u.id}" data-action="edit">Edit</button>
825 <button data-id="${u.id}" data-action="delete" class="danger">Delete</button>
826 `;
827 row.querySelector('[data-action="edit"]').addEventListener('click', () =>
828 openUserModal(u, paths));
829 row.querySelector('[data-action="delete"]').addEventListener('click', async () => {
830 if (!confirm(`Delete user "${u.username}"?`)) return;
831 try {
832 await api('DELETE', `/admin/users/${u.id}`);
833 toast('User deleted.', 'ok');
834 await refreshAdminUsers();
835 } catch (err) { toast(err.message, 'err'); }
836 });
837 container.appendChild(row);
838 }
839 }
840
841 function openUserModal(user, paths) {
842 const modal = document.getElementById('user-modal');
843 modal.classList.remove('hidden');
844 document.getElementById('user-modal-title').textContent = user ? `Edit: ${user.username}` : 'New User';
845 document.getElementById('user-error').classList.add('hidden');
846
847 const usernameInput = document.getElementById('user-username');
848 usernameInput.value = user ? user.username : '';
849 usernameInput.readOnly = !!user;
850
851 document.getElementById('user-password').value = '';
852 document.getElementById('user-is-admin').checked = user ? user.isAdmin : false;
853
854 // Password placeholder
855 document.getElementById('user-password').placeholder =
856 user ? 'Leave blank to keep current' : 'Min 8 characters';
857
858 // Build permissions grid
859 const permDiv = document.getElementById('user-permissions');
860 permDiv.innerHTML = '';
861 if (paths.length) {
862 const heading = document.createElement('h4');
863 heading.textContent = 'Path Permissions';
864 permDiv.appendChild(heading);
865
866 const isAdminUser = !!(user && user.isAdmin);
867 // Mirror the is-admin checkbox so toggling it live-updates the perm rows.
868 const adminChk = document.getElementById('user-is-admin');
869 const rebuildPermRows = (admin) => {
870 permDiv.querySelectorAll('.perm-row').forEach(r => {
871 r.querySelectorAll('input[type=checkbox]').forEach(cb => {
872 cb.disabled = admin;
873 if (admin) cb.checked = true;
874 });
875 r.title = admin ? 'Admins always have full access' : '';
876 });
877 };
878 adminChk.addEventListener('change', () => rebuildPermRows(adminChk.checked));
879
880 for (const p of paths) {
881 const label = p.split(/[\\/]/).pop();
882 const perms = user && user.permissions ? (user.permissions[label] || {}) : {};
883 const row = document.createElement('div');
884 row.className = 'perm-row';
885 const readChecked = isAdminUser || perms.read;
886 const writeChecked = isAdminUser || perms.write;
887 row.innerHTML = `
888 <span class="perm-label">${label}</span>
889 <label class="checkbox-label"><input type="checkbox" data-label="${label}" data-type="read" ${readChecked ? 'checked' : ''} ${isAdminUser ? 'disabled' : ''} /> Read</label>
890 <label class="checkbox-label"><input type="checkbox" data-label="${label}" data-type="write" ${writeChecked ? 'checked' : ''} ${isAdminUser ? 'disabled' : ''} /> Write</label>
891 `;
892 if (isAdminUser) row.title = 'Admins always have full access';
893 permDiv.appendChild(row);
894 }
895 }
896
897 document.getElementById('user-form').onsubmit = async (e) => {
898 e.preventDefault();
899 const password = document.getElementById('user-password').value;
900 const isAdmin = document.getElementById('user-is-admin').checked;
901 const permissions = {};
902 permDiv.querySelectorAll('input[data-label]').forEach(cb => {
903 const lbl = cb.dataset.label;
904 if (!permissions[lbl]) permissions[lbl] = {};
905 permissions[lbl][cb.dataset.type] = cb.checked;
906 });
907
908 try {
909 if (user) {
910 const body = { isAdmin, permissions };
911 if (password) body.password = password;
912 await api('PATCH', `/admin/users/${user.id}`, body);
913 } else {
914 const uname = document.getElementById('user-username').value.trim();
915 await api('POST', '/admin/users', { username: uname, password, isAdmin, permissions });
916 }
917 modal.classList.add('hidden');
918 toast('User saved.', 'ok');
919 await refreshAdminUsers();
920 } catch (err) {
921 document.getElementById('user-error').textContent = err.message;
922 document.getElementById('user-error').classList.remove('hidden');
923 }
924 };
925 }
926
927 // ───────────────────────────────────────────────────────────────────────────
928 // SVG ICONS
929 // ───────────────────────────────────────────────────────────────────────────
930
931 const IMAGE_EXTS = new Set(['jpg','jpeg','png','gif','webp','svg','bmp','ico','avif']);
932 const VIDEO_EXTS = new Set(['mp4','webm','ogv','mov','avi','mkv']);
933 const AUDIO_EXTS = new Set(['mp3','ogg','wav','flac','aac','m4a']);
934 const DOC_EXTS = new Set(['pdf','doc','docx','xls','xlsx','ppt','pptx','odt','ods','odp']);
935 const CODE_EXTS = new Set(['js','ts','py','rb','go','rs','c','cpp','h','cs','java','php','html','css','json','xml','yaml','yml','sh','bash','md','txt']);
936 const ARCHIVE_EXTS= new Set(['zip','tar','gz','bz2','xz','rar','7z']);
937
938 function iconFolder(size = 52) {
939 return `<svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none"
940 stroke="#5b7fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
941 <path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/>
942 </svg>`;
943 }
944
945 function iconFile(name, size = 52) {
946 const ext = extOf(name);
947 let color = '#7880a0';
948 let symbol = '';
949
950 if (IMAGE_EXTS.has(ext)) color = '#3fcf8e';
951 else if (VIDEO_EXTS.has(ext)) color = '#e05c6e';
952 else if (AUDIO_EXTS.has(ext)) color = '#c084fc';
953 else if (DOC_EXTS.has(ext)) color = '#f97316';
954 else if (CODE_EXTS.has(ext)) color = '#38bdf8';
955 else if (ARCHIVE_EXTS.has(ext))color = '#facc15';
956
957 return `<svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none"
958 stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
959 <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
960 <polyline points="14 2 14 8 20 8"/>
961 </svg>`;
962 }
963
964 // ───────────────────────────────────────────────────────────────────────────
965 // EVENT WIRING
966 // ───────────────────────────────────────────────────────────────────────────
967
968 function wireEvents() {
969 // Auth form
970 document.getElementById('auth-form').addEventListener('submit', async (e) => {
971 e.preventDefault();
972 const username = document.getElementById('auth-username').value.trim();
973 const password = document.getElementById('auth-password').value;
974 const isSetup = e.target.dataset.mode === 'setup';
975 const errEl = document.getElementById('auth-error');
976 const btn = document.getElementById('auth-submit');
977 btn.disabled = true;
978 btn.textContent = 'Please wait…';
979 const err = await doLogin(username, password, isSetup);
980 if (err) {
981 errEl.textContent = err;
982 errEl.classList.remove('hidden');
983 btn.disabled = false;
984 btn.textContent = isSetup ? 'Create Account' : 'Sign In';
985 }
986 });
987
988 // Logout
989 document.getElementById('btn-logout').addEventListener('click', logout);
990
991 // Upload button
992 document.getElementById('btn-upload').addEventListener('click', () => {
993 if (!STATE.currentDir) { toast('Open a folder first.', 'err'); return; }
994 if (!canWrite()) { toast('No write access.', 'err'); return; }
995 document.getElementById('file-input').click();
996 });
997
998 document.getElementById('file-input').addEventListener('change', async (e) => {
999 if (e.target.files.length) await uploadFiles(e.target.files);
1000 e.target.value = '';
1001 });
1002
1003 // Sidebar close
1004 document.getElementById('sidebar-close').addEventListener('click', closeSidebar);
1005
1006 // Click outside grid closes sidebar
1007 document.getElementById('main-content').addEventListener('click', (e) => {
1008 if (!e.target.closest('.file-item')) closeSidebar();
1009 });
1010
1011 // Admin panel
1012 document.getElementById('btn-admin').addEventListener('click', openAdminModal);
1013 document.getElementById('admin-modal-close').addEventListener('click', () =>
1014 document.getElementById('admin-modal').classList.add('hidden'));
1015
1016 // Add path
1017 document.getElementById('admin-add-path').addEventListener('click', () => {
1018 const val = document.getElementById('admin-new-path').value.trim();
1019 if (!val) return;
1020 const row = document.createElement('div');
1021 row.className = 'path-row';
1022 row.innerHTML = `<span>${val}</span><button title="Remove">✕</button>`;
1023 row.querySelector('button').addEventListener('click', () => row.remove());
1024 document.getElementById('admin-paths').appendChild(row);
1025 document.getElementById('admin-new-path').value = '';
1026 });
1027
1028 // Save paths
1029 document.getElementById('admin-save-paths').addEventListener('click', async () => {
1030 const rows = document.querySelectorAll('#admin-paths .path-row span');
1031 const paths = [...rows].map(s => s.textContent.trim()).filter(Boolean);
1032 try {
1033 await api('PUT', '/admin/config', { paths });
1034 toast('Paths saved.', 'ok');
1035 await loadRoots();
1036 } catch (err) { toast(err.message, 'err'); }
1037 });
1038
1039 // Shutdown server
1040 document.getElementById('admin-shutdown-btn').addEventListener('click', async () => {
1041 if (!confirm('Shut down the server? You will lose access until it is restarted manually.')) return;
1042 try {
1043 await api('POST', '/admin/shutdown');
1044 toast('Server is shutting down…', 'ok');
1045 document.getElementById('admin-modal').classList.add('hidden');
1046 } catch {
1047 // Fetch may throw because the connection closes before a response arrives.
1048 toast('Server is shutting down…', 'ok');
1049 document.getElementById('admin-modal').classList.add('hidden');
1050 }
1051 });
1052
1053 // New user
1054 document.getElementById('admin-new-user-btn').addEventListener('click', async () => {
1055 const cfg = await api('GET', '/admin/config');
1056 const paths = cfg ? (cfg.effectivePaths || []) : [];
1057 openUserModal(null, paths);
1058 });
1059
1060 // User modal close
1061 document.getElementById('user-modal-close').addEventListener('click', () =>
1062 document.getElementById('user-modal').classList.add('hidden'));
1063
1064 // Rename modal close
1065 document.getElementById('rename-modal-close').addEventListener('click', () =>
1066 document.getElementById('rename-modal').classList.add('hidden'));
1067
1068 // Close modals on backdrop click
1069 document.querySelectorAll('.modal-overlay').forEach(overlay => {
1070 overlay.addEventListener('click', e => {
1071 if (e.target === overlay) overlay.classList.add('hidden');
1072 });
1073 });
1074 }
1075
1076 // ───────────────────────────────────────────────────────────────────────────
1077 // BOOT
1078 // ───────────────────────────────────────────────────────────────────────────
1079
1080 (async function boot() {
1081 wireEvents();
1082 initDragDrop();
1083 await initAuth();
1084 })();
@@ -0,0 +1,1084 @@
1/* =========================================================
2 FILE MANAGER — CLIENT SPA
3 =========================================================
4 Architecture:
5 - RSA-OAEP + AES-256-GCM hybrid encryption via Web Crypto API
6 - No cookies / sessionStorage — token lives in module-scoped memory
7 - Token is sent as Bearer header on every API call
8 - Fingerprint (derived from navigator info) locks the token to this browser
9 ========================================================= */
10'use strict';
11
12// ───────────────────────────────────────────────────────────────────────────
13// STATE
14// ───────────────────────────────────────────────────────────────────────────
15const STATE = {
16 token: null, // decrypted JWT string
17 username: null,
18 isAdmin: false,
19 permissions: {},
20 roots: [], // [{ label, path }]
21 currentDir: null, // absolute path currently shown (null = roots view)
22 currentRoot: null, // { label, path } of the active root
23 items: [], // current directory listing
24 selectedItem: null, // item object selected in sidebar
25
26 // Ephemeral key pair per session (client-side)
27 clientPrivateKey: null,
28 clientPublicKeyJwk: null,
29
30 // Server public key for encrypting login
31 serverPublicKeyJwk: null,
32};
33
34// ───────────────────────────────────────────────────────────────────────────
35// CRYPTO HELPERS (Web Crypto API)
36// ───────────────────────────────────────────────────────────────────────────
37
38async function generateClientKeyPair() {
39 const kp = await crypto.subtle.generateKey(
40 { name: 'RSA-OAEP', modulusLength: 2048, publicExponent: new Uint8Array([1,0,1]), hash: 'SHA-256' },
41 true,
42 ['encrypt', 'decrypt'],
43 );
44 STATE.clientPrivateKey = kp.privateKey;
45 STATE.clientPublicKeyJwk = await crypto.subtle.exportKey('jwk', kp.publicKey);
46}
47
48/**
49 * Hybrid-encrypt a JS object using the server's RSA public key.
50 * Returns { encryptedKey, iv, ciphertext, tag } all as base64 strings.
51 */
52async function hybridEncryptForServer(obj) {
53 const serverPub = await crypto.subtle.importKey(
54 'jwk', STATE.serverPublicKeyJwk,
55 { name: 'RSA-OAEP', hash: 'SHA-256' },
56 false, ['encrypt'],
57 );
58
59 const plaintext = new TextEncoder().encode(JSON.stringify(obj));
60 const aesKey = await crypto.subtle.generateKey({ name: 'AES-GCM', length: 256 }, true, ['encrypt']);
61 const iv = crypto.getRandomValues(new Uint8Array(12));
62 const gcmResult = await crypto.subtle.encrypt({ name: 'AES-GCM', iv }, aesKey, plaintext);
63
64 // gcmResult = ciphertext || tag (last 16 bytes are auth tag)
65 const gcmBytes = new Uint8Array(gcmResult);
66 const ciphertext = gcmBytes.slice(0, gcmBytes.length - 16);
67 const tag = gcmBytes.slice(gcmBytes.length - 16);
68
69 const rawAes = await crypto.subtle.exportKey('raw', aesKey);
70 const encryptedKey = await crypto.subtle.encrypt({ name: 'RSA-OAEP' }, serverPub, rawAes);
71
72 return {
73 encryptedKey: b64(encryptedKey),
74 iv: b64(iv),
75 ciphertext: b64(ciphertext),
76 tag: b64(tag),
77 };
78}
79
80/**
81 * Hybrid-decrypt a payload encrypted by the server for us (using our public key).
82 */
83async function hybridDecryptFromServer(payload) {
84 const encryptedKey = unb64(payload.encryptedKey);
85 const iv = unb64(payload.iv);
86 const ciphertext = unb64(payload.ciphertext);
87 const tag = unb64(payload.tag);
88
89 const rawAes = await crypto.subtle.decrypt(
90 { name: 'RSA-OAEP' }, STATE.clientPrivateKey, encryptedKey,
91 );
92
93 const aesKey = await crypto.subtle.importKey('raw', rawAes, { name: 'AES-GCM' }, false, ['decrypt']);
94
95 // Recombine ciphertext + tag for AES-GCM
96 const combined = new Uint8Array(ciphertext.byteLength + tag.byteLength);
97 combined.set(new Uint8Array(ciphertext));
98 combined.set(new Uint8Array(tag), ciphertext.byteLength);
99
100 const plain = await crypto.subtle.decrypt({ name: 'AES-GCM', iv }, aesKey, combined);
101 return new TextDecoder().decode(plain);
102}
103
104// ───────────────────────────────────────────────────────────────────────────
105// UTIL
106// ───────────────────────────────────────────────────────────────────────────
107
108function b64(buf) {
109 return btoa(String.fromCharCode(...new Uint8Array(buf instanceof ArrayBuffer ? buf : buf.buffer)));
110}
111
112function unb64(str) {
113 const binary = atob(str);
114 const buf = new Uint8Array(binary.length);
115 for (let i = 0; i < binary.length; i++) buf[i] = binary.charCodeAt(i);
116 return buf.buffer;
117}
118
119/** Stable browser fingerprint (not stored, derived fresh each load) */
120function getFingerprint() {
121 const nav = navigator;
122 return [
123 nav.language,
124 nav.platform || nav.userAgentData?.platform || '',
125 nav.hardwareConcurrency,
126 screen.colorDepth,
127 screen.width + 'x' + screen.height,
128 Intl.DateTimeFormat().resolvedOptions().timeZone,
129 ].join('|');
130}
131
132function formatBytes(bytes) {
133 if (bytes == null) return '—';
134 if (bytes < 1024) return bytes + ' B';
135 if (bytes < 1048576) return (bytes / 1024).toFixed(1) + ' KB';
136 if (bytes < 1073741824) return (bytes / 1048576).toFixed(1) + ' MB';
137 return (bytes / 1073741824).toFixed(2) + ' GB';
138}
139
140function extOf(name) {
141 const i = name.lastIndexOf('.');
142 return i >= 0 ? name.slice(i + 1).toLowerCase() : '';
143}
144
145// ───────────────────────────────────────────────────────────────────────────
146// API
147// ───────────────────────────────────────────────────────────────────────────
148
149async function api(method, path, body, opts = {}) {
150 const headers = { 'Content-Type': 'application/json' };
151 if (STATE.token) {
152 headers['Authorization'] = 'Bearer ' + STATE.token;
153 headers['X-Fp'] = getFingerprint();
154 }
155 const res = await fetch('/api' + path, {
156 method,
157 headers,
158 body: body != null ? JSON.stringify(body) : undefined,
159 ...opts,
160 });
161 if (!res.ok) {
162 const j = await res.json().catch(() => ({}));
163 // Session-expired → force re-login
164 if (res.status === 401) { logout(); return null; }
165 throw new Error(j.error || res.statusText);
166 }
167 return res.json();
168}
169
170// ───────────────────────────────────────────────────────────────────────────
171// TOAST
172// ───────────────────────────────────────────────────────────────────────────
173
174function toast(msg, type = '') {
175 const el = document.createElement('div');
176 el.className = 'toast-msg' + (type ? ' ' + type : '');
177 el.textContent = msg;
178 document.getElementById('toast').appendChild(el);
179 setTimeout(() => el.remove(), 3500);
180}
181
182// ───────────────────────────────────────────────────────────────────────────
183// AUTH FLOW
184// ───────────────────────────────────────────────────────────────────────────
185
186function showAuthOverlay(setupMode = false) {
187 document.getElementById('app').classList.add('hidden');
188 const overlay = document.getElementById('auth-overlay');
189 overlay.classList.remove('hidden');
190 document.getElementById('auth-title').textContent = setupMode ? 'Create Admin Account' : 'Sign In';
191 document.getElementById('auth-subtitle').classList.toggle('hidden', !setupMode);
192 document.getElementById('auth-submit').textContent = setupMode ? 'Create Account' : 'Sign In';
193 document.getElementById('auth-error').classList.add('hidden');
194 document.getElementById('auth-username').value = '';
195 document.getElementById('auth-password').value = '';
196 document.getElementById('auth-username').focus();
197 document.getElementById('auth-form').dataset.mode = setupMode ? 'setup' : 'login';
198}
199
200function showApp() {
201 document.getElementById('auth-overlay').classList.add('hidden');
202 document.getElementById('app').classList.remove('hidden');
203 document.getElementById('btn-admin').classList.toggle('hidden', !STATE.isAdmin);
204}
205
206async function initAuth() {
207 // Always generate a fresh key pair so each page-load session is independent
208 await generateClientKeyPair();
209
210 // Fetch server public key
211 const { publicKey } = await api('GET', '/auth/server-key').catch(() => ({ publicKey: null }));
212 if (!publicKey) { toast('Could not reach server.', 'err'); return; }
213 STATE.serverPublicKeyJwk = publicKey;
214
215 // Check whether first-run setup is needed
216 const { needed } = await api('GET', '/auth/setup-needed').catch(() => ({ needed: false }));
217 showAuthOverlay(needed);
218}
219
220async function doLogin(username, password, isSetup) {
221 const encrypted = await hybridEncryptForServer({ username, password });
222 const endpoint = isSetup ? '/auth/setup' : '/auth/login';
223
224 let data;
225 try {
226 data = await api('POST', endpoint, {
227 encrypted,
228 clientPublicKey: STATE.clientPublicKeyJwk,
229 fingerprint: getFingerprint(),
230 });
231 } catch (err) {
232 return err.message;
233 }
234
235 if (!data) return 'Login failed.';
236
237 // Decrypt the token sent back by the server
238 const token = await hybridDecryptFromServer(data.encrypted);
239 STATE.token = token;
240
241 // Load user info
242 const me = await api('GET', '/auth/me');
243 if (!me) return 'Session error.';
244
245 STATE.username = me.username;
246 STATE.isAdmin = me.isAdmin;
247 STATE.permissions = me.permissions;
248
249 showApp();
250 await loadRoots();
251 return null; // no error
252}
253
254function logout() {
255 STATE.token = null;
256 STATE.username = null;
257 STATE.isAdmin = false;
258 STATE.permissions = {};
259 STATE.currentDir = null;
260 STATE.currentRoot = null;
261 STATE.items = [];
262 closeSidebar();
263 initAuth();
264}
265
266// ───────────────────────────────────────────────────────────────────────────
267// NAVIGATION
268// ───────────────────────────────────────────────────────────────────────────
269
270async function loadRoots() {
271 const data = await api('GET', '/files/roots');
272 if (!data) return;
273 STATE.roots = data.roots;
274
275 if (STATE.roots.length === 1) {
276 // Single root → open it directly
277 await navigateTo(STATE.roots[0].path, STATE.roots[0]);
278 } else {
279 renderRootsView();
280 }
281}
282
283function renderRootsView() {
284 STATE.currentDir = null;
285 STATE.currentRoot = null;
286 renderBreadcrumb();
287 const grid = document.getElementById('file-grid');
288 grid.innerHTML = '';
289 document.getElementById('empty-notice').classList.add('hidden');
290 closeSidebar();
291
292 for (const root of STATE.roots) {
293 const el = makeFileItem({ name: root.label, isDir: true, path: root.path, _root: root });
294 grid.appendChild(el);
295 }
296}
297
298async function navigateTo(absPath, root) {
299 if (root) STATE.currentRoot = root;
300 STATE.currentDir = absPath;
301
302 const data = await api('GET', `/files/list?dir=${encodeURIComponent(absPath)}`);
303 if (!data) return;
304
305 STATE.items = data.items;
306 renderBreadcrumb();
307 renderFileGrid();
308 closeSidebar();
309}
310
311function renderBreadcrumb() {
312 const nav = document.getElementById('breadcrumb');
313 nav.innerHTML = '';
314
315 // "Home" crumb
316 const home = document.createElement('span');
317 home.className = 'crumb' + (STATE.currentDir == null ? ' active' : '');
318 home.textContent = 'Home';
319 home.addEventListener('click', () => {
320 if (STATE.roots.length === 1) {
321 navigateTo(STATE.roots[0].path, STATE.roots[0]);
322 } else {
323 renderRootsView();
324 }
325 });
326 nav.appendChild(home);
327
328 if (!STATE.currentDir || !STATE.currentRoot) return;
329
330 // Build path segments relative to the root
331 const rootPath = STATE.currentRoot.path;
332 const relative = STATE.currentDir === rootPath
333 ? ''
334 : STATE.currentDir.replace(rootPath, '').replace(/^[\\/]/, '');
335
336 const parts = [STATE.currentRoot.label, ...relative.split(/[\\/]/).filter(Boolean)];
337 let accumulated = rootPath;
338
339 for (let i = 0; i < parts.length; i++) {
340 const sep = document.createElement('span');
341 sep.className = 'sep';
342 sep.textContent = ' / ';
343 nav.appendChild(sep);
344
345 const crumb = document.createElement('span');
346 crumb.className = 'crumb' + (i === parts.length - 1 ? ' active' : '');
347 crumb.textContent = parts[i];
348
349 // Capture the path for this crumb
350 const capturedPath = i === 0 ? rootPath : accumulated;
351 if (i < parts.length - 1) {
352 crumb.addEventListener('click', () => navigateTo(capturedPath, STATE.currentRoot));
353 }
354
355 nav.appendChild(crumb);
356
357 // Advance accumulated path (skip for root label)
358 if (i > 0) accumulated = accumulated + '/' + parts[i];
359 else if (i === 0 && parts.length > 1) {
360 // After root label, next crumb should append the next segment
361 accumulated = rootPath;
362 }
363 }
364}
365
366// ───────────────────────────────────────────────────────────────────────────
367// FILE GRID RENDERING
368// ───────────────────────────────────────────────────────────────────────────
369
370function renderFileGrid() {
371 const grid = document.getElementById('file-grid');
372 grid.innerHTML = '';
373 const empty = document.getElementById('empty-notice');
374
375 const sorted = [...STATE.items].sort((a, b) => {
376 if (a.isDir !== b.isDir) return a.isDir ? -1 : 1;
377 return a.name.localeCompare(b.name);
378 });
379
380 empty.classList.toggle('hidden', sorted.length > 0);
381
382 for (const item of sorted) {
383 grid.appendChild(makeFileItem(item));
384 }
385}
386
387function makeFileItem(item) {
388 const el = document.createElement('div');
389 el.className = 'file-item';
390 el.dataset.path = item.path;
391
392 const icon = document.createElement('div');
393 icon.className = 'icon';
394 icon.innerHTML = item.isDir ? iconFolder() : iconFile(item.name);
395 el.appendChild(icon);
396
397 const name = document.createElement('div');
398 name.className = 'name';
399 name.textContent = item.name;
400 el.appendChild(name);
401
402 // Single-click: open sidebar
403 el.addEventListener('click', (e) => {
404 e.stopPropagation();
405 if (item._root) {
406 // Clicking a root tile goes straight in
407 navigateTo(item.path, item._root);
408 return;
409 }
410 selectItem(el, item);
411 });
412
413 // Double-click: enter folder or view/download file
414 el.addEventListener('dblclick', (e) => {
415 e.stopPropagation();
416 if (item.isDir) {
417 navigateTo(item.path, STATE.currentRoot);
418 } else {
419 downloadOrView(item);
420 }
421 });
422
423 return el;
424}
425
426function selectItem(el, item) {
427 document.querySelectorAll('.file-item.selected').forEach(e => e.classList.remove('selected'));
428 el.classList.add('selected');
429 STATE.selectedItem = item;
430 openSidebar(item);
431}
432
433// ───────────────────────────────────────────────────────────────────────────
434// SIDEBAR
435// ───────────────────────────────────────────────────────────────────────────
436
437async function openSidebar(item) {
438 const sidebar = document.getElementById('sidebar');
439 sidebar.classList.remove('hidden');
440 document.getElementById('app').classList.add('sidebar-open');
441
442 document.getElementById('sidebar-icon').innerHTML = item.isDir ? iconFolder(64) : iconFile(item.name, 64);
443 document.getElementById('sidebar-name').textContent = item.name;
444
445 // Load metadata
446 const dl = document.getElementById('sidebar-meta');
447 dl.innerHTML = '<dt>Loading…</dt><dd></dd>';
448
449 const actions = document.getElementById('sidebar-actions');
450 actions.innerHTML = '';
451
452 if (!item.isDir) {
453 const meta = await api('GET', `/files/meta?file=${encodeURIComponent(item.path)}`);
454 if (meta) {
455 dl.innerHTML = `
456 <dt>Size</dt> <dd>${formatBytes(meta.size)}</dd>
457 <dt>Modified</dt> <dd>${new Date(meta.mtime).toLocaleString()}</dd>
458 <dt>Uploaded by</dt><dd>${meta.uploader || '—'}</dd>
459 <dt>Downloaded by</dt><dd>${meta.downloaders.join(', ') || '—'}</dd>
460 `;
461 }
462
463 // View / download button
464 const btnDl = document.createElement('button');
465 btnDl.textContent = 'View / Download';
466 btnDl.addEventListener('click', () => downloadOrView(item));
467 actions.appendChild(btnDl);
468 } else {
469 dl.innerHTML = `<dt>Type</dt><dd>Folder</dd>`;
470 const btnOpen = document.createElement('button');
471 btnOpen.textContent = 'Open folder';
472 btnOpen.addEventListener('click', () => navigateTo(item.path, STATE.currentRoot));
473 actions.appendChild(btnOpen);
474 }
475
476 // Rename button (write access required)
477 if (canWrite()) {
478 const btnRen = document.createElement('button');
479 btnRen.textContent = 'Rename';
480 btnRen.addEventListener('click', () => openRenameModal(item));
481 actions.appendChild(btnRen);
482
483 const btnDel = document.createElement('button');
484 btnDel.textContent = 'Delete';
485 btnDel.className = 'danger';
486 btnDel.addEventListener('click', () => deleteItem(item));
487 actions.appendChild(btnDel);
488 }
489}
490
491function closeSidebar() {
492 document.getElementById('sidebar').classList.add('hidden');
493 document.getElementById('app').classList.remove('sidebar-open');
494 document.querySelectorAll('.file-item.selected').forEach(e => e.classList.remove('selected'));
495 STATE.selectedItem = null;
496}
497
498// ───────────────────────────────────────────────────────────────────────────
499// DOWNLOAD / VIEW
500// ───────────────────────────────────────────────────────────────────────────
501
502function downloadOrView(item) {
503 const url = `/api/files/download?file=${encodeURIComponent(item.path)}`;
504 // Open in new tab — browser decides whether to display or download
505 const a = document.createElement('a');
506 a.href = url;
507 a.target = '_blank';
508 a.rel = 'noopener noreferrer';
509 // We need to send the auth header; since <a> can't do that, we fetch and blob it
510 fetchAndServe(item, url);
511}
512
513async function fetchAndServe(item, url) {
514 try {
515 const res = await fetch(url, {
516 headers: {
517 Authorization: 'Bearer ' + STATE.token,
518 'X-Fp': getFingerprint(),
519 },
520 });
521 if (!res.ok) { toast('Download failed.', 'err'); return; }
522 const blob = await res.blob();
523 const objUrl = URL.createObjectURL(blob);
524 const a = document.createElement('a');
525 a.href = objUrl;
526 a.download = item.name;
527 // Try to open viewable types inline
528 const viewable = /^(image|video|audio|text|application\/pdf)/.test(blob.type);
529 if (viewable) {
530 window.open(objUrl, '_blank', 'noopener,noreferrer');
531 } else {
532 a.click();
533 }
534 setTimeout(() => URL.revokeObjectURL(objUrl), 60000);
535 } catch {
536 toast('Download failed.', 'err');
537 }
538}
539
540// ───────────────────────────────────────────────────────────────────────────
541// UPLOAD
542// ───────────────────────────────────────────────────────────────────────────
543
544function canWrite() {
545 if (STATE.isAdmin) return true;
546 if (!STATE.currentRoot) return false;
547 const p = STATE.permissions[STATE.currentRoot.label];
548 return p && p.write;
549}
550
551async function uploadFiles(fileList) {
552 if (!STATE.currentDir) { toast('Open a folder first.', 'err'); return; }
553 if (!canWrite()) { toast('No write access.', 'err'); return; }
554
555 const formData = new FormData();
556 for (const f of fileList) formData.append('files', f);
557
558 // Show upload bar
559 const wrap = document.createElement('div');
560 wrap.className = 'upload-bar-wrap';
561 wrap.innerHTML = `<span>Uploading ${fileList.length} file(s)…</span><div class="upload-bar-track"><div class="upload-bar-fill" style="width:0%"></div></div>`;
562 document.body.appendChild(wrap);
563
564 try {
565 const xhr = new XMLHttpRequest();
566 xhr.open('POST', `/api/files/upload?dir=${encodeURIComponent(STATE.currentDir)}`);
567 xhr.setRequestHeader('Authorization', 'Bearer ' + STATE.token);
568 xhr.setRequestHeader('X-Fp', getFingerprint());
569
570 xhr.upload.addEventListener('progress', e => {
571 if (e.lengthComputable) {
572 wrap.querySelector('.upload-bar-fill').style.width = (e.loaded / e.total * 100) + '%';
573 }
574 });
575
576 await new Promise((resolve, reject) => {
577 xhr.onload = () => {
578 if (xhr.status === 200) resolve();
579 else reject(new Error(JSON.parse(xhr.responseText).error || 'Upload failed'));
580 };
581 xhr.onerror = () => reject(new Error('Network error'));
582 xhr.send(formData);
583 });
584
585 toast(`Uploaded ${fileList.length} file(s).`, 'ok');
586 await navigateTo(STATE.currentDir, STATE.currentRoot);
587 } catch (err) {
588 toast(err.message, 'err');
589 } finally {
590 wrap.remove();
591 }
592}
593
594// ───────────────────────────────────────────────────────────────────────────
595// FOLDER DRAG-AND-DROP (recursive)
596// ───────────────────────────────────────────────────────────────────────────
597
598/**
599 * Reads all readEntries batches from a DirectoryReader (browsers may return
600 * results in chunks; we must keep calling until we get an empty array).
601 */
602function readAllEntries(reader) {
603 return new Promise((resolve, reject) => {
604 const all = [];
605 function next() {
606 reader.readEntries(batch => {
607 if (!batch.length) { resolve(all); return; }
608 all.push(...batch);
609 next();
610 }, reject);
611 }
612 next();
613 });
614}
615
616/**
617 * Recursively walk a FileSystemEntry tree, creating server-side directories
618 * on the fly and collecting { file, targetDir } pairs for upload.
619 */
620async function collectEntries(entry, serverDir, toUpload) {
621 if (entry.isFile) {
622 const file = await new Promise((res, rej) => entry.getFile(res, rej));
623 toUpload.push({ file, targetDir: serverDir });
624 } else if (entry.isDirectory) {
625 // Ask the server to create the directory; it returns the canonical path.
626 let newServerDir;
627 try {
628 const resp = await api('POST', '/files/mkdir', { dir: serverDir, name: entry.name });
629 newServerDir = resp.path;
630 } catch {
631 // Directory may already exist — reconstruct path from what we know.
632 // The server always returns JSON with {error} on failure, so we can
633 // still continue by falling back to a best-effort path join.
634 // We rely on the fact that the server separator is consistent within
635 // a session (the list/browse API already returned paths in that format).
636 const sep = serverDir.includes('\\') ? '\\' : '/';
637 newServerDir = serverDir + sep + entry.name;
638 }
639 const reader = entry.createReader();
640 const subEntries = await readAllEntries(reader);
641 for (const sub of subEntries) {
642 await collectEntries(sub, newServerDir, toUpload);
643 }
644 }
645}
646
647async function uploadEntries(entries) {
648 if (!STATE.currentDir) { toast('Open a folder first.', 'err'); return; }
649 if (!canWrite()) { toast('No write access.', 'err'); return; }
650
651 const wrap = document.createElement('div');
652 wrap.className = 'upload-bar-wrap';
653 wrap.innerHTML = `<span>Scanning…</span><div class="upload-bar-track"><div class="upload-bar-fill" style="width:0%"></div></div>`;
654 document.body.appendChild(wrap);
655
656 try {
657 const toUpload = [];
658 for (const entry of entries) {
659 await collectEntries(entry, STATE.currentDir, toUpload);
660 }
661
662 if (!toUpload.length) { toast('No files found.', 'err'); return; }
663
664 let done = 0;
665 const total = toUpload.length;
666 const updateBar = () => {
667 wrap.querySelector('span').textContent = `Uploading ${done} / ${total} file(s)…`;
668 wrap.querySelector('.upload-bar-fill').style.width = (done / total * 100) + '%';
669 };
670 updateBar();
671
672 for (const { file, targetDir } of toUpload) {
673 const formData = new FormData();
674 formData.append('files', file);
675 await new Promise((resolve, reject) => {
676 const xhr = new XMLHttpRequest();
677 xhr.open('POST', `/api/files/upload?dir=${encodeURIComponent(targetDir)}`);
678 xhr.setRequestHeader('Authorization', 'Bearer ' + STATE.token);
679 xhr.setRequestHeader('X-Fp', getFingerprint());
680 xhr.onload = () => xhr.status === 200
681 ? resolve()
682 : reject(new Error((JSON.parse(xhr.responseText) || {}).error || 'Upload failed'));
683 xhr.onerror = () => reject(new Error('Network error'));
684 xhr.send(formData);
685 });
686 done++;
687 updateBar();
688 }
689
690 toast(`Uploaded ${total} file(s).`, 'ok');
691 await navigateTo(STATE.currentDir, STATE.currentRoot);
692 } catch (err) {
693 toast(err.message, 'err');
694 } finally {
695 wrap.remove();
696 }
697}
698
699// DRAG-AND-DROP
700// ───────────────────────────────────────────────────────────────────────────
701
702function initDragDrop() {
703 const main = document.getElementById('main-content');
704 const dropOvl = document.getElementById('drop-overlay');
705 let dragDepth = 0;
706
707 main.addEventListener('dragenter', e => {
708 e.preventDefault();
709 dragDepth++;
710 dropOvl.classList.remove('hidden');
711 });
712 main.addEventListener('dragleave', () => {
713 dragDepth--;
714 if (dragDepth <= 0) { dragDepth = 0; dropOvl.classList.add('hidden'); }
715 });
716 main.addEventListener('dragover', e => e.preventDefault());
717 main.addEventListener('drop', async e => {
718 e.preventDefault();
719 dragDepth = 0;
720 dropOvl.classList.add('hidden');
721 if (!canWrite()) { toast('No write access.', 'err'); return; }
722
723 const items = Array.from(e.dataTransfer.items || []);
724 // Use the FileSystem Entry API when available so we can handle folders.
725 if (items.length && typeof items[0].webkitGetAsEntry === 'function') {
726 const entries = items.map(i => i.webkitGetAsEntry()).filter(Boolean);
727 if (entries.some(en => en.isDirectory)) {
728 await uploadEntries(entries);
729 return;
730 }
731 }
732 // Plain files only — use the fast batch path.
733 const files = e.dataTransfer.files;
734 if (files.length) await uploadFiles(files);
735 });
736}
737
738// ───────────────────────────────────────────────────────────────────────────
739// RENAME
740// ───────────────────────────────────────────────────────────────────────────
741
742function openRenameModal(item) {
743 const modal = document.getElementById('rename-modal');
744 modal.classList.remove('hidden');
745 const input = document.getElementById('rename-input');
746 input.value = item.name;
747 input.focus();
748 input.select();
749 document.getElementById('rename-error').classList.add('hidden');
750 document.getElementById('rename-form').onsubmit = async (e) => {
751 e.preventDefault();
752 const newName = input.value.trim();
753 if (!newName) return;
754 try {
755 await api('POST', '/files/rename', { from: item.path, to: newName });
756 modal.classList.add('hidden');
757 toast('Renamed.', 'ok');
758 await navigateTo(STATE.currentDir, STATE.currentRoot);
759 } catch (err) {
760 document.getElementById('rename-error').textContent = err.message;
761 document.getElementById('rename-error').classList.remove('hidden');
762 }
763 };
764}
765
766// ───────────────────────────────────────────────────────────────────────────
767// DELETE
768// ───────────────────────────────────────────────────────────────────────────
769
770async function deleteItem(item) {
771 if (!confirm(`Delete "${item.name}"? This cannot be undone.`)) return;
772 try {
773 await api('POST', '/files/delete', { path: item.path });
774 toast('Deleted.', 'ok');
775 closeSidebar();
776 await navigateTo(STATE.currentDir, STATE.currentRoot);
777 } catch (err) {
778 toast(err.message, 'err');
779 }
780}
781
782// ───────────────────────────────────────────────────────────────────────────
783// ADMIN PANEL
784// ───────────────────────────────────────────────────────────────────────────
785
786async function openAdminModal() {
787 document.getElementById('admin-modal').classList.remove('hidden');
788 await refreshAdminConfig();
789 await refreshAdminUsers();
790}
791
792async function refreshAdminConfig() {
793 const data = await api('GET', '/admin/config');
794 if (!data) return;
795 const container = document.getElementById('admin-paths');
796 container.innerHTML = '';
797 for (const p of data.paths) {
798 const row = document.createElement('div');
799 row.className = 'path-row';
800 row.innerHTML = `<span>${p}</span><button data-path="${p}" title="Remove">✕</button>`;
801 row.querySelector('button').addEventListener('click', () => {
802 row.remove();
803 });
804 container.appendChild(row);
805 }
806}
807
808async function refreshAdminUsers() {
809 const data = await api('GET', '/admin/users');
810 if (!data) return;
811 const container = document.getElementById('admin-users-list');
812 container.innerHTML = '';
813
814 // Need paths for permission rows
815 const cfg = await api('GET', '/admin/config');
816 const paths = cfg ? (cfg.effectivePaths || []) : [];
817
818 for (const u of data.users) {
819 const row = document.createElement('div');
820 row.className = 'user-row';
821 row.innerHTML = `
822 <span class="user-name">${u.username}</span>
823 ${u.isAdmin ? '<span class="user-admin-badge">Admin</span>' : ''}
824 <button data-id="${u.id}" data-action="edit">Edit</button>
825 <button data-id="${u.id}" data-action="delete" class="danger">Delete</button>
826 `;
827 row.querySelector('[data-action="edit"]').addEventListener('click', () =>
828 openUserModal(u, paths));
829 row.querySelector('[data-action="delete"]').addEventListener('click', async () => {
830 if (!confirm(`Delete user "${u.username}"?`)) return;
831 try {
832 await api('DELETE', `/admin/users/${u.id}`);
833 toast('User deleted.', 'ok');
834 await refreshAdminUsers();
835 } catch (err) { toast(err.message, 'err'); }
836 });
837 container.appendChild(row);
838 }
839}
840
841function openUserModal(user, paths) {
842 const modal = document.getElementById('user-modal');
843 modal.classList.remove('hidden');
844 document.getElementById('user-modal-title').textContent = user ? `Edit: ${user.username}` : 'New User';
845 document.getElementById('user-error').classList.add('hidden');
846
847 const usernameInput = document.getElementById('user-username');
848 usernameInput.value = user ? user.username : '';
849 usernameInput.readOnly = !!user;
850
851 document.getElementById('user-password').value = '';
852 document.getElementById('user-is-admin').checked = user ? user.isAdmin : false;
853
854 // Password placeholder
855 document.getElementById('user-password').placeholder =
856 user ? 'Leave blank to keep current' : 'Min 8 characters';
857
858 // Build permissions grid
859 const permDiv = document.getElementById('user-permissions');
860 permDiv.innerHTML = '';
861 if (paths.length) {
862 const heading = document.createElement('h4');
863 heading.textContent = 'Path Permissions';
864 permDiv.appendChild(heading);
865
866 const isAdminUser = !!(user && user.isAdmin);
867 // Mirror the is-admin checkbox so toggling it live-updates the perm rows.
868 const adminChk = document.getElementById('user-is-admin');
869 const rebuildPermRows = (admin) => {
870 permDiv.querySelectorAll('.perm-row').forEach(r => {
871 r.querySelectorAll('input[type=checkbox]').forEach(cb => {
872 cb.disabled = admin;
873 if (admin) cb.checked = true;
874 });
875 r.title = admin ? 'Admins always have full access' : '';
876 });
877 };
878 adminChk.addEventListener('change', () => rebuildPermRows(adminChk.checked));
879
880 for (const p of paths) {
881 const label = p.split(/[\\/]/).pop();
882 const perms = user && user.permissions ? (user.permissions[label] || {}) : {};
883 const row = document.createElement('div');
884 row.className = 'perm-row';
885 const readChecked = isAdminUser || perms.read;
886 const writeChecked = isAdminUser || perms.write;
887 row.innerHTML = `
888 <span class="perm-label">${label}</span>
889 <label class="checkbox-label"><input type="checkbox" data-label="${label}" data-type="read" ${readChecked ? 'checked' : ''} ${isAdminUser ? 'disabled' : ''} /> Read</label>
890 <label class="checkbox-label"><input type="checkbox" data-label="${label}" data-type="write" ${writeChecked ? 'checked' : ''} ${isAdminUser ? 'disabled' : ''} /> Write</label>
891 `;
892 if (isAdminUser) row.title = 'Admins always have full access';
893 permDiv.appendChild(row);
894 }
895 }
896
897 document.getElementById('user-form').onsubmit = async (e) => {
898 e.preventDefault();
899 const password = document.getElementById('user-password').value;
900 const isAdmin = document.getElementById('user-is-admin').checked;
901 const permissions = {};
902 permDiv.querySelectorAll('input[data-label]').forEach(cb => {
903 const lbl = cb.dataset.label;
904 if (!permissions[lbl]) permissions[lbl] = {};
905 permissions[lbl][cb.dataset.type] = cb.checked;
906 });
907
908 try {
909 if (user) {
910 const body = { isAdmin, permissions };
911 if (password) body.password = password;
912 await api('PATCH', `/admin/users/${user.id}`, body);
913 } else {
914 const uname = document.getElementById('user-username').value.trim();
915 await api('POST', '/admin/users', { username: uname, password, isAdmin, permissions });
916 }
917 modal.classList.add('hidden');
918 toast('User saved.', 'ok');
919 await refreshAdminUsers();
920 } catch (err) {
921 document.getElementById('user-error').textContent = err.message;
922 document.getElementById('user-error').classList.remove('hidden');
923 }
924 };
925}
926
927// ───────────────────────────────────────────────────────────────────────────
928// SVG ICONS
929// ───────────────────────────────────────────────────────────────────────────
930
931const IMAGE_EXTS = new Set(['jpg','jpeg','png','gif','webp','svg','bmp','ico','avif']);
932const VIDEO_EXTS = new Set(['mp4','webm','ogv','mov','avi','mkv']);
933const AUDIO_EXTS = new Set(['mp3','ogg','wav','flac','aac','m4a']);
934const DOC_EXTS = new Set(['pdf','doc','docx','xls','xlsx','ppt','pptx','odt','ods','odp']);
935const CODE_EXTS = new Set(['js','ts','py','rb','go','rs','c','cpp','h','cs','java','php','html','css','json','xml','yaml','yml','sh','bash','md','txt']);
936const ARCHIVE_EXTS= new Set(['zip','tar','gz','bz2','xz','rar','7z']);
937
938function iconFolder(size = 52) {
939 return `<svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none"
940 stroke="#5b7fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
941 <path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/>
942 </svg>`;
943}
944
945function iconFile(name, size = 52) {
946 const ext = extOf(name);
947 let color = '#7880a0';
948 let symbol = '';
949
950 if (IMAGE_EXTS.has(ext)) color = '#3fcf8e';
951 else if (VIDEO_EXTS.has(ext)) color = '#e05c6e';
952 else if (AUDIO_EXTS.has(ext)) color = '#c084fc';
953 else if (DOC_EXTS.has(ext)) color = '#f97316';
954 else if (CODE_EXTS.has(ext)) color = '#38bdf8';
955 else if (ARCHIVE_EXTS.has(ext))color = '#facc15';
956
957 return `<svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none"
958 stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
959 <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
960 <polyline points="14 2 14 8 20 8"/>
961 </svg>`;
962}
963
964// ───────────────────────────────────────────────────────────────────────────
965// EVENT WIRING
966// ───────────────────────────────────────────────────────────────────────────
967
968function wireEvents() {
969 // Auth form
970 document.getElementById('auth-form').addEventListener('submit', async (e) => {
971 e.preventDefault();
972 const username = document.getElementById('auth-username').value.trim();
973 const password = document.getElementById('auth-password').value;
974 const isSetup = e.target.dataset.mode === 'setup';
975 const errEl = document.getElementById('auth-error');
976 const btn = document.getElementById('auth-submit');
977 btn.disabled = true;
978 btn.textContent = 'Please wait…';
979 const err = await doLogin(username, password, isSetup);
980 if (err) {
981 errEl.textContent = err;
982 errEl.classList.remove('hidden');
983 btn.disabled = false;
984 btn.textContent = isSetup ? 'Create Account' : 'Sign In';
985 }
986 });
987
988 // Logout
989 document.getElementById('btn-logout').addEventListener('click', logout);
990
991 // Upload button
992 document.getElementById('btn-upload').addEventListener('click', () => {
993 if (!STATE.currentDir) { toast('Open a folder first.', 'err'); return; }
994 if (!canWrite()) { toast('No write access.', 'err'); return; }
995 document.getElementById('file-input').click();
996 });
997
998 document.getElementById('file-input').addEventListener('change', async (e) => {
999 if (e.target.files.length) await uploadFiles(e.target.files);
1000 e.target.value = '';
1001 });
1002
1003 // Sidebar close
1004 document.getElementById('sidebar-close').addEventListener('click', closeSidebar);
1005
1006 // Click outside grid closes sidebar
1007 document.getElementById('main-content').addEventListener('click', (e) => {
1008 if (!e.target.closest('.file-item')) closeSidebar();
1009 });
1010
1011 // Admin panel
1012 document.getElementById('btn-admin').addEventListener('click', openAdminModal);
1013 document.getElementById('admin-modal-close').addEventListener('click', () =>
1014 document.getElementById('admin-modal').classList.add('hidden'));
1015
1016 // Add path
1017 document.getElementById('admin-add-path').addEventListener('click', () => {
1018 const val = document.getElementById('admin-new-path').value.trim();
1019 if (!val) return;
1020 const row = document.createElement('div');
1021 row.className = 'path-row';
1022 row.innerHTML = `<span>${val}</span><button title="Remove">✕</button>`;
1023 row.querySelector('button').addEventListener('click', () => row.remove());
1024 document.getElementById('admin-paths').appendChild(row);
1025 document.getElementById('admin-new-path').value = '';
1026 });
1027
1028 // Save paths
1029 document.getElementById('admin-save-paths').addEventListener('click', async () => {
1030 const rows = document.querySelectorAll('#admin-paths .path-row span');
1031 const paths = [...rows].map(s => s.textContent.trim()).filter(Boolean);
1032 try {
1033 await api('PUT', '/admin/config', { paths });
1034 toast('Paths saved.', 'ok');
1035 await loadRoots();
1036 } catch (err) { toast(err.message, 'err'); }
1037 });
1038
1039 // Shutdown server
1040 document.getElementById('admin-shutdown-btn').addEventListener('click', async () => {
1041 if (!confirm('Shut down the server? You will lose access until it is restarted manually.')) return;
1042 try {
1043 await api('POST', '/admin/shutdown');
1044 toast('Server is shutting down…', 'ok');
1045 document.getElementById('admin-modal').classList.add('hidden');
1046 } catch {
1047 // Fetch may throw because the connection closes before a response arrives.
1048 toast('Server is shutting down…', 'ok');
1049 document.getElementById('admin-modal').classList.add('hidden');
1050 }
1051 });
1052
1053 // New user
1054 document.getElementById('admin-new-user-btn').addEventListener('click', async () => {
1055 const cfg = await api('GET', '/admin/config');
1056 const paths = cfg ? (cfg.effectivePaths || []) : [];
1057 openUserModal(null, paths);
1058 });
1059
1060 // User modal close
1061 document.getElementById('user-modal-close').addEventListener('click', () =>
1062 document.getElementById('user-modal').classList.add('hidden'));
1063
1064 // Rename modal close
1065 document.getElementById('rename-modal-close').addEventListener('click', () =>
1066 document.getElementById('rename-modal').classList.add('hidden'));
1067
1068 // Close modals on backdrop click
1069 document.querySelectorAll('.modal-overlay').forEach(overlay => {
1070 overlay.addEventListener('click', e => {
1071 if (e.target === overlay) overlay.classList.add('hidden');
1072 });
1073 });
1074}
1075
1076// ───────────────────────────────────────────────────────────────────────────
1077// BOOT
1078// ───────────────────────────────────────────────────────────────────────────
1079
1080(async function boot() {
1081 wireEvents();
1082 initDragDrop();
1083 await initAuth();
1084})();
public/index.html added +175 −0
@@ -0,0 +1,175 @@
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6 <title>File Manager</title>
7 <link rel="stylesheet" href="style.css" />
8 </head>
9 <body>
10
11 <!-- =====================================================================
12 LOGIN / SETUP OVERLAY
13 ====================================================================== -->
14 <div id="auth-overlay" class="overlay hidden">
15 <div class="auth-card">
16 <h1 id="auth-title">Sign In</h1>
17 <p id="auth-subtitle" class="auth-subtitle hidden">
18 No accounts exist yet. Create the first admin account.
19 </p>
20 <form id="auth-form" autocomplete="off">
21 <label>
22 Username
23 <input id="auth-username" type="text" autocomplete="off" required />
24 </label>
25 <label>
26 Password
27 <input id="auth-password" type="password" autocomplete="new-password" required />
28 </label>
29 <p id="auth-error" class="error hidden"></p>
30 <button type="submit" id="auth-submit">Sign In</button>
31 </form>
32 </div>
33 </div>
34
35 <!-- =====================================================================
36 MAIN APP SHELL
37 ====================================================================== -->
38 <div id="app" class="hidden">
39
40 <!-- TOP BAR -->
41 <header id="topbar">
42 <div id="breadcrumb-wrap">
43 <nav id="breadcrumb" aria-label="Breadcrumb"></nav>
44 </div>
45 <div id="topbar-actions">
46 <button id="btn-upload" class="icon-btn" title="Upload files" aria-label="Upload files">
47 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
48 stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
49 <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
50 <polyline points="17 8 12 3 7 8"/>
51 <line x1="12" y1="3" x2="12" y2="15"/>
52 </svg>
53 Upload
54 </button>
55 <input id="file-input" type="file" multiple class="hidden" aria-hidden="true" />
56
57 <button id="btn-admin" class="icon-btn hidden" title="Admin panel" aria-label="Admin panel">
58 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
59 stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
60 <circle cx="12" cy="8" r="4"/>
61 <path d="M6 20v-2a6 6 0 0 1 12 0v2"/>
62 </svg>
63 Admin
64 </button>
65
66 <button id="btn-logout" class="icon-btn" title="Sign out" aria-label="Sign out">
67 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
68 stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
69 <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>
70 <polyline points="16 17 21 12 16 7"/>
71 <line x1="21" y1="12" x2="9" y2="12"/>
72 </svg>
73 Sign out
74 </button>
75 </div>
76 </header>
77
78 <!-- MAIN CONTENT AREA -->
79 <main id="main-content">
80
81 <!-- Drop zone hint shown when dragging files over the main area -->
82 <div id="drop-overlay" class="hidden">
83 <span>Drop files here to upload</span>
84 </div>
85
86 <!-- File / folder grid -->
87 <div id="file-grid"></div>
88
89 <!-- Empty directory notice -->
90 <p id="empty-notice" class="hidden muted">This folder is empty.</p>
91
92 </main>
93
94 <!-- SIDEBAR -->
95 <aside id="sidebar" class="hidden">
96 <button id="sidebar-close" aria-label="Close sidebar">✕</button>
97 <div id="sidebar-icon"></div>
98 <h2 id="sidebar-name"></h2>
99 <dl id="sidebar-meta"></dl>
100 <div id="sidebar-actions"></div>
101 </aside>
102
103 </div>
104
105 <!-- =====================================================================
106 ADMIN MODAL
107 ====================================================================== -->
108 <div id="admin-modal" class="modal-overlay hidden">
109 <div class="modal">
110 <button class="modal-close" id="admin-modal-close" aria-label="Close admin panel">✕</button>
111 <h2>Admin Panel</h2>
112
113 <section>
114 <h3>Configured Paths</h3>
115 <div id="admin-paths"></div>
116 <div class="path-add-row">
117 <input id="admin-new-path" type="text" placeholder="/mnt/ssd/media" />
118 <button id="admin-add-path">Add</button>
119 </div>
120 <button id="admin-save-paths" class="primary">Save paths</button>
121 </section>
122
123 <section>
124 <h3>Users</h3>
125 <div id="admin-users-list"></div>
126 <button id="admin-new-user-btn" class="primary">+ New user</button>
127 </section>
128
129 <section>
130 <h3>Server</h3>
131 <button id="admin-shutdown-btn" class="danger">Shut down server</button>
132 </section>
133 </div>
134 </div>
135
136 <!-- NEW / EDIT USER MODAL -->
137 <div id="user-modal" class="modal-overlay hidden">
138 <div class="modal">
139 <button class="modal-close" id="user-modal-close" aria-label="Close">✕</button>
140 <h2 id="user-modal-title">New User</h2>
141 <form id="user-form">
142 <label>Username<input id="user-username" type="text" required /></label>
143 <label id="user-password-label">
144 Password<input id="user-password" type="password" placeholder="Min 8 characters" />
145 </label>
146 <label class="checkbox-label">
147 <input id="user-is-admin" type="checkbox" />
148 Admin privileges
149 </label>
150 <div id="user-permissions"></div>
151 <p id="user-error" class="error hidden"></p>
152 <button type="submit" class="primary">Save</button>
153 </form>
154 </div>
155 </div>
156
157 <!-- RENAME MODAL -->
158 <div id="rename-modal" class="modal-overlay hidden">
159 <div class="modal small">
160 <button class="modal-close" id="rename-modal-close" aria-label="Close">✕</button>
161 <h2>Rename</h2>
162 <form id="rename-form">
163 <label>New name<input id="rename-input" type="text" required /></label>
164 <p id="rename-error" class="error hidden"></p>
165 <button type="submit" class="primary">Rename</button>
166 </form>
167 </div>
168 </div>
169
170 <!-- TOAST -->
171 <div id="toast" aria-live="assertive" aria-atomic="true"></div>
172
173 <script src="app.js"></script>
174 </body>
175 </html>
@@ -0,0 +1,175 @@
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6 <title>File Manager</title>
7 <link rel="stylesheet" href="style.css" />
8</head>
9<body>
10
11<!-- =====================================================================
12 LOGIN / SETUP OVERLAY
13====================================================================== -->
14<div id="auth-overlay" class="overlay hidden">
15 <div class="auth-card">
16 <h1 id="auth-title">Sign In</h1>
17 <p id="auth-subtitle" class="auth-subtitle hidden">
18 No accounts exist yet. Create the first admin account.
19 </p>
20 <form id="auth-form" autocomplete="off">
21 <label>
22 Username
23 <input id="auth-username" type="text" autocomplete="off" required />
24 </label>
25 <label>
26 Password
27 <input id="auth-password" type="password" autocomplete="new-password" required />
28 </label>
29 <p id="auth-error" class="error hidden"></p>
30 <button type="submit" id="auth-submit">Sign In</button>
31 </form>
32 </div>
33</div>
34
35<!-- =====================================================================
36 MAIN APP SHELL
37====================================================================== -->
38<div id="app" class="hidden">
39
40 <!-- TOP BAR -->
41 <header id="topbar">
42 <div id="breadcrumb-wrap">
43 <nav id="breadcrumb" aria-label="Breadcrumb"></nav>
44 </div>
45 <div id="topbar-actions">
46 <button id="btn-upload" class="icon-btn" title="Upload files" aria-label="Upload files">
47 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
48 stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
49 <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
50 <polyline points="17 8 12 3 7 8"/>
51 <line x1="12" y1="3" x2="12" y2="15"/>
52 </svg>
53 Upload
54 </button>
55 <input id="file-input" type="file" multiple class="hidden" aria-hidden="true" />
56
57 <button id="btn-admin" class="icon-btn hidden" title="Admin panel" aria-label="Admin panel">
58 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
59 stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
60 <circle cx="12" cy="8" r="4"/>
61 <path d="M6 20v-2a6 6 0 0 1 12 0v2"/>
62 </svg>
63 Admin
64 </button>
65
66 <button id="btn-logout" class="icon-btn" title="Sign out" aria-label="Sign out">
67 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
68 stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
69 <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>
70 <polyline points="16 17 21 12 16 7"/>
71 <line x1="21" y1="12" x2="9" y2="12"/>
72 </svg>
73 Sign out
74 </button>
75 </div>
76 </header>
77
78 <!-- MAIN CONTENT AREA -->
79 <main id="main-content">
80
81 <!-- Drop zone hint shown when dragging files over the main area -->
82 <div id="drop-overlay" class="hidden">
83 <span>Drop files here to upload</span>
84 </div>
85
86 <!-- File / folder grid -->
87 <div id="file-grid"></div>
88
89 <!-- Empty directory notice -->
90 <p id="empty-notice" class="hidden muted">This folder is empty.</p>
91
92 </main>
93
94 <!-- SIDEBAR -->
95 <aside id="sidebar" class="hidden">
96 <button id="sidebar-close" aria-label="Close sidebar">✕</button>
97 <div id="sidebar-icon"></div>
98 <h2 id="sidebar-name"></h2>
99 <dl id="sidebar-meta"></dl>
100 <div id="sidebar-actions"></div>
101 </aside>
102
103</div>
104
105<!-- =====================================================================
106 ADMIN MODAL
107====================================================================== -->
108<div id="admin-modal" class="modal-overlay hidden">
109 <div class="modal">
110 <button class="modal-close" id="admin-modal-close" aria-label="Close admin panel">✕</button>
111 <h2>Admin Panel</h2>
112
113 <section>
114 <h3>Configured Paths</h3>
115 <div id="admin-paths"></div>
116 <div class="path-add-row">
117 <input id="admin-new-path" type="text" placeholder="/mnt/ssd/media" />
118 <button id="admin-add-path">Add</button>
119 </div>
120 <button id="admin-save-paths" class="primary">Save paths</button>
121 </section>
122
123 <section>
124 <h3>Users</h3>
125 <div id="admin-users-list"></div>
126 <button id="admin-new-user-btn" class="primary">+ New user</button>
127 </section>
128
129 <section>
130 <h3>Server</h3>
131 <button id="admin-shutdown-btn" class="danger">Shut down server</button>
132 </section>
133 </div>
134</div>
135
136<!-- NEW / EDIT USER MODAL -->
137<div id="user-modal" class="modal-overlay hidden">
138 <div class="modal">
139 <button class="modal-close" id="user-modal-close" aria-label="Close">✕</button>
140 <h2 id="user-modal-title">New User</h2>
141 <form id="user-form">
142 <label>Username<input id="user-username" type="text" required /></label>
143 <label id="user-password-label">
144 Password<input id="user-password" type="password" placeholder="Min 8 characters" />
145 </label>
146 <label class="checkbox-label">
147 <input id="user-is-admin" type="checkbox" />
148 Admin privileges
149 </label>
150 <div id="user-permissions"></div>
151 <p id="user-error" class="error hidden"></p>
152 <button type="submit" class="primary">Save</button>
153 </form>
154 </div>
155</div>
156
157<!-- RENAME MODAL -->
158<div id="rename-modal" class="modal-overlay hidden">
159 <div class="modal small">
160 <button class="modal-close" id="rename-modal-close" aria-label="Close">✕</button>
161 <h2>Rename</h2>
162 <form id="rename-form">
163 <label>New name<input id="rename-input" type="text" required /></label>
164 <p id="rename-error" class="error hidden"></p>
165 <button type="submit" class="primary">Rename</button>
166 </form>
167 </div>
168</div>
169
170<!-- TOAST -->
171<div id="toast" aria-live="assertive" aria-atomic="true"></div>
172
173<script src="app.js"></script>
174</body>
175</html>
public/style.css added +415 −0
@@ -0,0 +1,415 @@
1 /* =========================================================
2 RESET & CUSTOM PROPERTIES
3 ========================================================= */
4 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
5
6 :root {
7 --bg: #0f1117;
8 --surface: #1a1d27;
9 --surface2: #21242f;
10 --border: #2e3247;
11 --accent: #5b7fff;
12 --accent-hover:#7b9fff;
13 --text: #e8eaf0;
14 --text-muted: #7880a0;
15 --danger: #e05c6e;
16 --success: #3fcf8e;
17 --radius: 10px;
18 --topbar-h: 56px;
19 --sidebar-w: 300px;
20 --transition: 0.18s ease;
21 }
22
23 html, body { height: 100%; font-family: system-ui, -apple-system, sans-serif; }
24 body { background: var(--bg); color: var(--text); overflow: hidden; }
25
26 .hidden { display: none !important; }
27 .muted { color: var(--text-muted); }
28 .error { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; }
29
30 /* =========================================================
31 AUTH OVERLAY
32 ========================================================= */
33 .overlay {
34 position: fixed; inset: 0;
35 background: var(--bg);
36 display: flex; align-items: center; justify-content: center;
37 z-index: 100;
38 }
39
40 .auth-card {
41 background: var(--surface);
42 border: 1px solid var(--border);
43 border-radius: var(--radius);
44 padding: 2.5rem 2rem;
45 width: min(420px, 92vw);
46 }
47
48 .auth-card h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }
49 .auth-subtitle { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.2rem; }
50
51 #auth-form label {
52 display: flex; flex-direction: column; gap: 0.3rem;
53 font-size: 0.85rem; color: var(--text-muted);
54 margin-bottom: 1rem;
55 }
56
57 #auth-form input {
58 background: var(--bg);
59 border: 1px solid var(--border);
60 border-radius: 6px;
61 padding: 0.55rem 0.75rem;
62 color: var(--text);
63 font-size: 1rem;
64 outline: none;
65 transition: border-color var(--transition);
66 }
67 #auth-form input:focus { border-color: var(--accent); }
68
69 /* =========================================================
70 BUTTONS
71 ========================================================= */
72 button {
73 cursor: pointer;
74 border: none;
75 border-radius: 6px;
76 font-size: 0.9rem;
77 transition: background var(--transition), color var(--transition);
78 }
79
80 .icon-btn {
81 display: flex; align-items: center; gap: 0.4rem;
82 background: transparent;
83 color: var(--text-muted);
84 padding: 0.4rem 0.7rem;
85 border-radius: 6px;
86 }
87 .icon-btn:hover { background: var(--surface2); color: var(--text); }
88 .icon-btn svg { width: 18px; height: 18px; }
89
90 button[type="submit"],
91 .primary {
92 background: var(--accent);
93 color: #fff;
94 padding: 0.55rem 1.2rem;
95 font-weight: 600;
96 width: 100%;
97 margin-top: 0.5rem;
98 }
99 button[type="submit"]:hover,
100 .primary:hover { background: var(--accent-hover); }
101
102 /* =========================================================
103 TOP BAR
104 ========================================================= */
105 #app {
106 display: flex;
107 flex-direction: column;
108 height: 100vh;
109 }
110
111 #topbar {
112 height: var(--topbar-h);
113 background: var(--surface);
114 border-bottom: 1px solid var(--border);
115 display: flex;
116 align-items: center;
117 padding: 0 1rem;
118 gap: 0.5rem;
119 flex-shrink: 0;
120 }
121
122 #breadcrumb-wrap { flex: 1; min-width: 0; }
123
124 #breadcrumb {
125 display: flex; align-items: center; flex-wrap: wrap;
126 gap: 0.1rem;
127 font-size: 0.9rem;
128 white-space: nowrap;
129 overflow: hidden;
130 }
131
132 #breadcrumb .crumb {
133 color: var(--text-muted);
134 background: none;
135 padding: 0.2rem 0.35rem;
136 border-radius: 4px;
137 text-decoration: none;
138 cursor: pointer;
139 }
140 #breadcrumb .crumb:hover { color: var(--text); background: var(--surface2); }
141 #breadcrumb .crumb.active { color: var(--text); cursor: default; }
142 #breadcrumb .sep { color: var(--border); user-select: none; }
143
144 #topbar-actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
145
146 /* =========================================================
147 MAIN + SIDEBAR LAYOUT
148 ========================================================= */
149 #main-content {
150 flex: 1;
151 overflow-y: auto;
152 padding: 1.25rem;
153 position: relative;
154 }
155
156 /* Drop overlay */
157 #drop-overlay {
158 position: absolute; inset: 0;
159 background: rgba(91, 127, 255, 0.12);
160 border: 3px dashed var(--accent);
161 border-radius: var(--radius);
162 display: flex; align-items: center; justify-content: center;
163 z-index: 10;
164 font-size: 1.4rem;
165 color: var(--accent);
166 pointer-events: none;
167 }
168
169 /* When sidebar is open, shrink main content */
170 #app.sidebar-open #main-content { margin-right: var(--sidebar-w); }
171
172 /* =========================================================
173 FILE GRID
174 ========================================================= */
175 #file-grid {
176 display: grid;
177 grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
178 gap: 0.75rem;
179 }
180
181 .file-item {
182 display: flex; flex-direction: column; align-items: center;
183 padding: 0.9rem 0.5rem 0.7rem;
184 border-radius: var(--radius);
185 border: 1px solid transparent;
186 cursor: pointer;
187 user-select: none;
188 transition: background var(--transition), border-color var(--transition);
189 text-align: center;
190 gap: 0.4rem;
191 position: relative;
192 }
193 .file-item:hover { background: var(--surface); border-color: var(--border); }
194 .file-item.selected { background: var(--surface2); border-color: var(--accent); }
195
196 .file-item .icon {
197 width: 52px; height: 52px;
198 display: flex; align-items: center; justify-content: center;
199 }
200 .file-item .icon svg { width: 100%; height: 100%; }
201
202 .file-item .name {
203 font-size: 0.8rem;
204 word-break: break-all;
205 max-width: 100%;
206 line-height: 1.3;
207 color: var(--text);
208 }
209
210 /* =========================================================
211 SIDEBAR
212 ========================================================= */
213 #sidebar {
214 position: fixed;
215 top: var(--topbar-h);
216 right: 0;
217 bottom: 0;
218 width: var(--sidebar-w);
219 background: var(--surface);
220 border-left: 1px solid var(--border);
221 padding: 1.25rem;
222 overflow-y: auto;
223 z-index: 20;
224 display: flex; flex-direction: column; gap: 0.75rem;
225 }
226
227 #sidebar-close {
228 background: none; color: var(--text-muted);
229 align-self: flex-end; font-size: 1.1rem; padding: 0.2rem 0.5rem;
230 }
231 #sidebar-close:hover { color: var(--text); }
232
233 #sidebar-icon { display: flex; justify-content: center; }
234 #sidebar-icon svg { width: 64px; height: 64px; }
235
236 #sidebar-name {
237 font-size: 1rem;
238 word-break: break-all;
239 text-align: center;
240 }
241
242 #sidebar-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.75rem; }
243 #sidebar-meta dt { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
244 #sidebar-meta dd { font-size: 0.8rem; word-break: break-all; }
245
246 #sidebar-actions {
247 display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem;
248 }
249
250 #sidebar-actions button {
251 background: var(--surface2); color: var(--text);
252 padding: 0.5rem 0.8rem;
253 text-align: left;
254 }
255 #sidebar-actions button:hover { background: var(--border); }
256 #sidebar-actions button.danger { color: var(--danger); }
257
258 /* =========================================================
259 MODALS
260 ========================================================= */
261 .modal-overlay {
262 position: fixed; inset: 0;
263 background: rgba(0,0,0,0.65);
264 display: flex; align-items: center; justify-content: center;
265 z-index: 50;
266 }
267
268 .modal {
269 background: var(--surface);
270 border: 1px solid var(--border);
271 border-radius: var(--radius);
272 padding: 2rem;
273 width: min(560px, 94vw);
274 max-height: 90vh;
275 overflow-y: auto;
276 position: relative;
277 }
278 .modal.small { width: min(340px, 94vw); }
279
280 .modal h2 { font-size: 1.3rem; margin-bottom: 1.25rem; }
281 .modal h3 { font-size: 1rem; color: var(--text-muted); margin: 1rem 0 0.5rem; }
282
283 .modal-close {
284 position: absolute; top: 0.75rem; right: 0.75rem;
285 background: none; color: var(--text-muted); font-size: 1.1rem; padding: 0.25rem 0.5rem;
286 }
287 .modal-close:hover { color: var(--text); }
288
289 /* Admin path list */
290 .path-row {
291 display: flex; align-items: center; gap: 0.5rem;
292 padding: 0.4rem 0;
293 border-bottom: 1px solid var(--border);
294 font-size: 0.88rem;
295 }
296 .path-row span { flex: 1; word-break: break-all; }
297 .path-row button { background: none; color: var(--danger); padding: 0.2rem 0.5rem; }
298
299 .path-add-row { display: flex; gap: 0.5rem; margin: 0.5rem 0; }
300 .path-add-row input {
301 flex: 1; background: var(--bg); border: 1px solid var(--border);
302 border-radius: 6px; padding: 0.45rem 0.7rem; color: var(--text);
303 font-size: 0.9rem; outline: none;
304 }
305 .path-add-row input:focus { border-color: var(--accent); }
306 .path-add-row button {
307 background: var(--surface2); color: var(--text); padding: 0.45rem 0.9rem;
308 }
309 .path-add-row button:hover { background: var(--border); }
310
311 /* User list */
312 .user-row {
313 display: flex; align-items: center; gap: 0.6rem;
314 padding: 0.5rem 0;
315 border-bottom: 1px solid var(--border);
316 }
317 .user-row .user-name { flex: 1; font-weight: 600; font-size: 0.9rem; }
318 .user-row .user-admin-badge {
319 font-size: 0.72rem; background: var(--accent); color: #fff;
320 border-radius: 4px; padding: 0.1rem 0.4rem;
321 }
322 .user-row button { background: none; color: var(--text-muted); padding: 0.2rem 0.5rem; font-size: 0.85rem; }
323 .user-row button:hover { color: var(--text); }
324 .user-row button.danger { color: var(--danger); }
325
326 /* User form permissions */
327 #user-permissions { margin-top: 0.75rem; }
328 #user-permissions h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
329 .perm-row {
330 display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
331 font-size: 0.85rem; margin-bottom: 0.4rem;
332 }
333 .perm-row .perm-label { min-width: 130px; color: var(--text); }
334 .checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; margin-bottom: 0.5rem; }
335 .checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
336
337 /* Form labels in modals */
338 .modal form label {
339 display: flex; flex-direction: column; gap: 0.3rem;
340 font-size: 0.85rem; color: var(--text-muted);
341 margin-bottom: 0.9rem;
342 }
343 .modal form input[type="text"],
344 .modal form input[type="password"] {
345 background: var(--bg); border: 1px solid var(--border);
346 border-radius: 6px; padding: 0.5rem 0.75rem;
347 color: var(--text); font-size: 0.95rem; outline: none;
348 transition: border-color var(--transition);
349 }
350 .modal form input:focus { border-color: var(--accent); }
351
352 /* =========================================================
353 TOAST
354 ========================================================= */
355 #toast {
356 position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
357 z-index: 200;
358 display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
359 pointer-events: none;
360 }
361
362 .toast-msg {
363 background: var(--surface2);
364 border: 1px solid var(--border);
365 border-radius: 8px;
366 padding: 0.6rem 1.25rem;
367 font-size: 0.9rem;
368 animation: slideup 0.25s ease;
369 }
370 .toast-msg.err { border-color: var(--danger); color: var(--danger); }
371 .toast-msg.ok { border-color: var(--success); color: var(--success); }
372
373 @keyframes slideup {
374 from { opacity: 0; transform: translateY(12px); }
375 to { opacity: 1; transform: translateY(0); }
376 }
377
378 /* =========================================================
379 UPLOAD PROGRESS
380 ========================================================= */
381 .upload-bar-wrap {
382 position: fixed; bottom: 0; left: 0; right: 0;
383 background: var(--surface);
384 border-top: 1px solid var(--border);
385 padding: 0.5rem 1rem;
386 z-index: 80;
387 font-size: 0.85rem;
388 }
389 .upload-bar-track {
390 height: 6px; background: var(--border); border-radius: 3px; margin-top: 0.3rem;
391 }
392 .upload-bar-fill {
393 height: 100%; background: var(--accent); border-radius: 3px;
394 transition: width 0.2s linear;
395 }
396
397 /* =========================================================
398 RESPONSIVE — narrow screens
399 ========================================================= */
400 @media (max-width: 600px) {
401 #file-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
402
403 #app.sidebar-open #main-content { margin-right: 0; }
404
405 #sidebar {
406 top: auto;
407 left: 0;
408 height: 60vh;
409 border-left: none;
410 border-top: 1px solid var(--border);
411 width: 100%;
412 }
413
414 .modal { padding: 1.25rem; }
415 }
@@ -0,0 +1,415 @@
1/* =========================================================
2 RESET & CUSTOM PROPERTIES
3 ========================================================= */
4*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
5
6:root {
7 --bg: #0f1117;
8 --surface: #1a1d27;
9 --surface2: #21242f;
10 --border: #2e3247;
11 --accent: #5b7fff;
12 --accent-hover:#7b9fff;
13 --text: #e8eaf0;
14 --text-muted: #7880a0;
15 --danger: #e05c6e;
16 --success: #3fcf8e;
17 --radius: 10px;
18 --topbar-h: 56px;
19 --sidebar-w: 300px;
20 --transition: 0.18s ease;
21}
22
23html, body { height: 100%; font-family: system-ui, -apple-system, sans-serif; }
24body { background: var(--bg); color: var(--text); overflow: hidden; }
25
26.hidden { display: none !important; }
27.muted { color: var(--text-muted); }
28.error { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; }
29
30/* =========================================================
31 AUTH OVERLAY
32 ========================================================= */
33.overlay {
34 position: fixed; inset: 0;
35 background: var(--bg);
36 display: flex; align-items: center; justify-content: center;
37 z-index: 100;
38}
39
40.auth-card {
41 background: var(--surface);
42 border: 1px solid var(--border);
43 border-radius: var(--radius);
44 padding: 2.5rem 2rem;
45 width: min(420px, 92vw);
46}
47
48.auth-card h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }
49.auth-subtitle { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.2rem; }
50
51#auth-form label {
52 display: flex; flex-direction: column; gap: 0.3rem;
53 font-size: 0.85rem; color: var(--text-muted);
54 margin-bottom: 1rem;
55}
56
57#auth-form input {
58 background: var(--bg);
59 border: 1px solid var(--border);
60 border-radius: 6px;
61 padding: 0.55rem 0.75rem;
62 color: var(--text);
63 font-size: 1rem;
64 outline: none;
65 transition: border-color var(--transition);
66}
67#auth-form input:focus { border-color: var(--accent); }
68
69/* =========================================================
70 BUTTONS
71 ========================================================= */
72button {
73 cursor: pointer;
74 border: none;
75 border-radius: 6px;
76 font-size: 0.9rem;
77 transition: background var(--transition), color var(--transition);
78}
79
80.icon-btn {
81 display: flex; align-items: center; gap: 0.4rem;
82 background: transparent;
83 color: var(--text-muted);
84 padding: 0.4rem 0.7rem;
85 border-radius: 6px;
86}
87.icon-btn:hover { background: var(--surface2); color: var(--text); }
88.icon-btn svg { width: 18px; height: 18px; }
89
90button[type="submit"],
91.primary {
92 background: var(--accent);
93 color: #fff;
94 padding: 0.55rem 1.2rem;
95 font-weight: 600;
96 width: 100%;
97 margin-top: 0.5rem;
98}
99button[type="submit"]:hover,
100.primary:hover { background: var(--accent-hover); }
101
102/* =========================================================
103 TOP BAR
104 ========================================================= */
105#app {
106 display: flex;
107 flex-direction: column;
108 height: 100vh;
109}
110
111#topbar {
112 height: var(--topbar-h);
113 background: var(--surface);
114 border-bottom: 1px solid var(--border);
115 display: flex;
116 align-items: center;
117 padding: 0 1rem;
118 gap: 0.5rem;
119 flex-shrink: 0;
120}
121
122#breadcrumb-wrap { flex: 1; min-width: 0; }
123
124#breadcrumb {
125 display: flex; align-items: center; flex-wrap: wrap;
126 gap: 0.1rem;
127 font-size: 0.9rem;
128 white-space: nowrap;
129 overflow: hidden;
130}
131
132#breadcrumb .crumb {
133 color: var(--text-muted);
134 background: none;
135 padding: 0.2rem 0.35rem;
136 border-radius: 4px;
137 text-decoration: none;
138 cursor: pointer;
139}
140#breadcrumb .crumb:hover { color: var(--text); background: var(--surface2); }
141#breadcrumb .crumb.active { color: var(--text); cursor: default; }
142#breadcrumb .sep { color: var(--border); user-select: none; }
143
144#topbar-actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
145
146/* =========================================================
147 MAIN + SIDEBAR LAYOUT
148 ========================================================= */
149#main-content {
150 flex: 1;
151 overflow-y: auto;
152 padding: 1.25rem;
153 position: relative;
154}
155
156/* Drop overlay */
157#drop-overlay {
158 position: absolute; inset: 0;
159 background: rgba(91, 127, 255, 0.12);
160 border: 3px dashed var(--accent);
161 border-radius: var(--radius);
162 display: flex; align-items: center; justify-content: center;
163 z-index: 10;
164 font-size: 1.4rem;
165 color: var(--accent);
166 pointer-events: none;
167}
168
169/* When sidebar is open, shrink main content */
170#app.sidebar-open #main-content { margin-right: var(--sidebar-w); }
171
172/* =========================================================
173 FILE GRID
174 ========================================================= */
175#file-grid {
176 display: grid;
177 grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
178 gap: 0.75rem;
179}
180
181.file-item {
182 display: flex; flex-direction: column; align-items: center;
183 padding: 0.9rem 0.5rem 0.7rem;
184 border-radius: var(--radius);
185 border: 1px solid transparent;
186 cursor: pointer;
187 user-select: none;
188 transition: background var(--transition), border-color var(--transition);
189 text-align: center;
190 gap: 0.4rem;
191 position: relative;
192}
193.file-item:hover { background: var(--surface); border-color: var(--border); }
194.file-item.selected { background: var(--surface2); border-color: var(--accent); }
195
196.file-item .icon {
197 width: 52px; height: 52px;
198 display: flex; align-items: center; justify-content: center;
199}
200.file-item .icon svg { width: 100%; height: 100%; }
201
202.file-item .name {
203 font-size: 0.8rem;
204 word-break: break-all;
205 max-width: 100%;
206 line-height: 1.3;
207 color: var(--text);
208}
209
210/* =========================================================
211 SIDEBAR
212 ========================================================= */
213#sidebar {
214 position: fixed;
215 top: var(--topbar-h);
216 right: 0;
217 bottom: 0;
218 width: var(--sidebar-w);
219 background: var(--surface);
220 border-left: 1px solid var(--border);
221 padding: 1.25rem;
222 overflow-y: auto;
223 z-index: 20;
224 display: flex; flex-direction: column; gap: 0.75rem;
225}
226
227#sidebar-close {
228 background: none; color: var(--text-muted);
229 align-self: flex-end; font-size: 1.1rem; padding: 0.2rem 0.5rem;
230}
231#sidebar-close:hover { color: var(--text); }
232
233#sidebar-icon { display: flex; justify-content: center; }
234#sidebar-icon svg { width: 64px; height: 64px; }
235
236#sidebar-name {
237 font-size: 1rem;
238 word-break: break-all;
239 text-align: center;
240}
241
242#sidebar-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.75rem; }
243#sidebar-meta dt { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
244#sidebar-meta dd { font-size: 0.8rem; word-break: break-all; }
245
246#sidebar-actions {
247 display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem;
248}
249
250#sidebar-actions button {
251 background: var(--surface2); color: var(--text);
252 padding: 0.5rem 0.8rem;
253 text-align: left;
254}
255#sidebar-actions button:hover { background: var(--border); }
256#sidebar-actions button.danger { color: var(--danger); }
257
258/* =========================================================
259 MODALS
260 ========================================================= */
261.modal-overlay {
262 position: fixed; inset: 0;
263 background: rgba(0,0,0,0.65);
264 display: flex; align-items: center; justify-content: center;
265 z-index: 50;
266}
267
268.modal {
269 background: var(--surface);
270 border: 1px solid var(--border);
271 border-radius: var(--radius);
272 padding: 2rem;
273 width: min(560px, 94vw);
274 max-height: 90vh;
275 overflow-y: auto;
276 position: relative;
277}
278.modal.small { width: min(340px, 94vw); }
279
280.modal h2 { font-size: 1.3rem; margin-bottom: 1.25rem; }
281.modal h3 { font-size: 1rem; color: var(--text-muted); margin: 1rem 0 0.5rem; }
282
283.modal-close {
284 position: absolute; top: 0.75rem; right: 0.75rem;
285 background: none; color: var(--text-muted); font-size: 1.1rem; padding: 0.25rem 0.5rem;
286}
287.modal-close:hover { color: var(--text); }
288
289/* Admin path list */
290.path-row {
291 display: flex; align-items: center; gap: 0.5rem;
292 padding: 0.4rem 0;
293 border-bottom: 1px solid var(--border);
294 font-size: 0.88rem;
295}
296.path-row span { flex: 1; word-break: break-all; }
297.path-row button { background: none; color: var(--danger); padding: 0.2rem 0.5rem; }
298
299.path-add-row { display: flex; gap: 0.5rem; margin: 0.5rem 0; }
300.path-add-row input {
301 flex: 1; background: var(--bg); border: 1px solid var(--border);
302 border-radius: 6px; padding: 0.45rem 0.7rem; color: var(--text);
303 font-size: 0.9rem; outline: none;
304}
305.path-add-row input:focus { border-color: var(--accent); }
306.path-add-row button {
307 background: var(--surface2); color: var(--text); padding: 0.45rem 0.9rem;
308}
309.path-add-row button:hover { background: var(--border); }
310
311/* User list */
312.user-row {
313 display: flex; align-items: center; gap: 0.6rem;
314 padding: 0.5rem 0;
315 border-bottom: 1px solid var(--border);
316}
317.user-row .user-name { flex: 1; font-weight: 600; font-size: 0.9rem; }
318.user-row .user-admin-badge {
319 font-size: 0.72rem; background: var(--accent); color: #fff;
320 border-radius: 4px; padding: 0.1rem 0.4rem;
321}
322.user-row button { background: none; color: var(--text-muted); padding: 0.2rem 0.5rem; font-size: 0.85rem; }
323.user-row button:hover { color: var(--text); }
324.user-row button.danger { color: var(--danger); }
325
326/* User form permissions */
327#user-permissions { margin-top: 0.75rem; }
328#user-permissions h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
329.perm-row {
330 display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
331 font-size: 0.85rem; margin-bottom: 0.4rem;
332}
333.perm-row .perm-label { min-width: 130px; color: var(--text); }
334.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; margin-bottom: 0.5rem; }
335.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
336
337/* Form labels in modals */
338.modal form label {
339 display: flex; flex-direction: column; gap: 0.3rem;
340 font-size: 0.85rem; color: var(--text-muted);
341 margin-bottom: 0.9rem;
342}
343.modal form input[type="text"],
344.modal form input[type="password"] {
345 background: var(--bg); border: 1px solid var(--border);
346 border-radius: 6px; padding: 0.5rem 0.75rem;
347 color: var(--text); font-size: 0.95rem; outline: none;
348 transition: border-color var(--transition);
349}
350.modal form input:focus { border-color: var(--accent); }
351
352/* =========================================================
353 TOAST
354 ========================================================= */
355#toast {
356 position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
357 z-index: 200;
358 display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
359 pointer-events: none;
360}
361
362.toast-msg {
363 background: var(--surface2);
364 border: 1px solid var(--border);
365 border-radius: 8px;
366 padding: 0.6rem 1.25rem;
367 font-size: 0.9rem;
368 animation: slideup 0.25s ease;
369}
370.toast-msg.err { border-color: var(--danger); color: var(--danger); }
371.toast-msg.ok { border-color: var(--success); color: var(--success); }
372
373@keyframes slideup {
374 from { opacity: 0; transform: translateY(12px); }
375 to { opacity: 1; transform: translateY(0); }
376}
377
378/* =========================================================
379 UPLOAD PROGRESS
380 ========================================================= */
381.upload-bar-wrap {
382 position: fixed; bottom: 0; left: 0; right: 0;
383 background: var(--surface);
384 border-top: 1px solid var(--border);
385 padding: 0.5rem 1rem;
386 z-index: 80;
387 font-size: 0.85rem;
388}
389.upload-bar-track {
390 height: 6px; background: var(--border); border-radius: 3px; margin-top: 0.3rem;
391}
392.upload-bar-fill {
393 height: 100%; background: var(--accent); border-radius: 3px;
394 transition: width 0.2s linear;
395}
396
397/* =========================================================
398 RESPONSIVE — narrow screens
399 ========================================================= */
400@media (max-width: 600px) {
401 #file-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
402
403 #app.sidebar-open #main-content { margin-right: 0; }
404
405 #sidebar {
406 top: auto;
407 left: 0;
408 height: 60vh;
409 border-left: none;
410 border-top: 1px solid var(--border);
411 width: 100%;
412 }
413
414 .modal { padding: 1.25rem; }
415}
server/auth.js added +139 −0
@@ -0,0 +1,139 @@
1 'use strict';
2
3 const jwt = require('jsonwebtoken');
4 const crypto = require('crypto');
5 const geoip = require('geoip-lite');
6 const { getDb } = require('./db');
7
8 // Secret used to sign JWTs — generated fresh each server boot.
9 // Tokens from a previous boot are automatically invalid.
10 const JWT_SECRET = crypto.randomBytes(64).toString('hex');
11
12 // ---------------------------------------------------------------------------
13 // Helpers
14 // ---------------------------------------------------------------------------
15
16 function getClientIp(req) {
17 // Respect X-Forwarded-For only if you trust a reverse proxy in front.
18 // For a direct Pi deployment, req.ip is sufficient.
19 let ip = req.ip || req.connection.remoteAddress || '';
20 // Normalize IPv4-mapped IPv6 (::ffff:127.0.0.1) and IPv6 loopback (::1)
21 // to plain IPv4 so token binding is stable across request variations.
22 ip = ip.replace(/^::ffff:/, '');
23 if (ip === '::1') ip = '127.0.0.1';
24 return ip;
25 }
26
27 function getRegion(ip) {
28 // ip is already normalized by getClientIp (no ::ffff: prefix, no ::1)
29 const geo = geoip.lookup(ip);
30 // Private / RFC1918 addresses won't resolve — use ip itself as region.
31 return geo ? `${geo.country}:${geo.region}` : `local:${ip}`;
32 }
33
34 function fingerprintHash(fingerprint) {
35 return crypto.createHash('sha256').update(fingerprint || '').digest('hex');
36 }
37
38 // ---------------------------------------------------------------------------
39 // Token creation
40 // ---------------------------------------------------------------------------
41
42 /**
43 * Returns a signed JWT that expires at end of the current calendar day (UTC).
44 */
45 function createToken(username, req, fingerprint) {
46 const ip = getClientIp(req);
47 const region = getRegion(ip);
48 const fpHash = fingerprintHash(fingerprint);
49
50 // Expire at 23:59:59 UTC today
51 const now = new Date();
52 const endOfDay = new Date(Date.UTC(
53 now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(),
54 23, 59, 59,
55 ));
56
57 const payload = {
58 u: username,
59 ip: ip,
60 r: region,
61 fp: fpHash,
62 };
63
64 return jwt.sign(payload, JWT_SECRET, { expiresIn: Math.floor((endOfDay - Date.now()) / 1000) });
65 }
66
67 // ---------------------------------------------------------------------------
68 // Middleware
69 // ---------------------------------------------------------------------------
70
71 /**
72 * Verifies the Bearer token in the Authorization header.
73 * On success attaches `req.user = { username, isAdmin }`.
74 * On failure sends 401 with a generic "session invalid" message.
75 */
76 function requireAuth(req, res, next) {
77 const header = req.headers['authorization'] || '';
78 const token = header.startsWith('Bearer ') ? header.slice(7) : null;
79
80 if (!token) {
81 return res.status(401).json({ error: 'Session invalid or expired.' });
82 }
83
84 let payload;
85 try {
86 payload = jwt.verify(token, JWT_SECRET);
87 } catch {
88 return res.status(401).json({ error: 'Session invalid or expired.' });
89 }
90
91 // Verify IP binding
92 const currentIp = getClientIp(req);
93 if (payload.ip !== currentIp) {
94 // Intentionally identical error — do not reveal reason
95 return res.status(401).json({ error: 'Session invalid or expired.' });
96 }
97
98 // Verify region binding
99 const currentRegion = getRegion(currentIp);
100 if (payload.r !== currentRegion) {
101 return res.status(401).json({ error: 'Session invalid or expired.' });
102 }
103
104 // Verify fingerprint (sent on every request as X-Fp header)
105 const fp = req.headers['x-fp'] || '';
106 if (payload.fp !== fingerprintHash(fp)) {
107 return res.status(401).json({ error: 'Session invalid or expired.' });
108 }
109
110 // Load user from DB
111 const db = getDb();
112 const user = db.prepare('SELECT id, username, is_admin, permissions FROM users WHERE username = ?')
113 .get([payload.u]);
114
115 if (!user) {
116 return res.status(401).json({ error: 'Session invalid or expired.' });
117 }
118
119 req.user = {
120 id: user.id,
121 username: user.username,
122 isAdmin: user.is_admin === 1,
123 permissions: JSON.parse(user.permissions || '{}'),
124 };
125
126 next();
127 }
128
129 /**
130 * Middleware that additionally requires admin privileges.
131 */
132 function requireAdmin(req, res, next) {
133 if (!req.user || !req.user.isAdmin) {
134 return res.status(403).json({ error: 'Admin access required.' });
135 }
136 next();
137 }
138
139 module.exports = { createToken, requireAuth, requireAdmin, getClientIp, getRegion };
@@ -0,0 +1,139 @@
1'use strict';
2
3const jwt = require('jsonwebtoken');
4const crypto = require('crypto');
5const geoip = require('geoip-lite');
6const { getDb } = require('./db');
7
8// Secret used to sign JWTs — generated fresh each server boot.
9// Tokens from a previous boot are automatically invalid.
10const JWT_SECRET = crypto.randomBytes(64).toString('hex');
11
12// ---------------------------------------------------------------------------
13// Helpers
14// ---------------------------------------------------------------------------
15
16function getClientIp(req) {
17 // Respect X-Forwarded-For only if you trust a reverse proxy in front.
18 // For a direct Pi deployment, req.ip is sufficient.
19 let ip = req.ip || req.connection.remoteAddress || '';
20 // Normalize IPv4-mapped IPv6 (::ffff:127.0.0.1) and IPv6 loopback (::1)
21 // to plain IPv4 so token binding is stable across request variations.
22 ip = ip.replace(/^::ffff:/, '');
23 if (ip === '::1') ip = '127.0.0.1';
24 return ip;
25}
26
27function getRegion(ip) {
28 // ip is already normalized by getClientIp (no ::ffff: prefix, no ::1)
29 const geo = geoip.lookup(ip);
30 // Private / RFC1918 addresses won't resolve — use ip itself as region.
31 return geo ? `${geo.country}:${geo.region}` : `local:${ip}`;
32}
33
34function fingerprintHash(fingerprint) {
35 return crypto.createHash('sha256').update(fingerprint || '').digest('hex');
36}
37
38// ---------------------------------------------------------------------------
39// Token creation
40// ---------------------------------------------------------------------------
41
42/**
43 * Returns a signed JWT that expires at end of the current calendar day (UTC).
44 */
45function createToken(username, req, fingerprint) {
46 const ip = getClientIp(req);
47 const region = getRegion(ip);
48 const fpHash = fingerprintHash(fingerprint);
49
50 // Expire at 23:59:59 UTC today
51 const now = new Date();
52 const endOfDay = new Date(Date.UTC(
53 now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(),
54 23, 59, 59,
55 ));
56
57 const payload = {
58 u: username,
59 ip: ip,
60 r: region,
61 fp: fpHash,
62 };
63
64 return jwt.sign(payload, JWT_SECRET, { expiresIn: Math.floor((endOfDay - Date.now()) / 1000) });
65}
66
67// ---------------------------------------------------------------------------
68// Middleware
69// ---------------------------------------------------------------------------
70
71/**
72 * Verifies the Bearer token in the Authorization header.
73 * On success attaches `req.user = { username, isAdmin }`.
74 * On failure sends 401 with a generic "session invalid" message.
75 */
76function requireAuth(req, res, next) {
77 const header = req.headers['authorization'] || '';
78 const token = header.startsWith('Bearer ') ? header.slice(7) : null;
79
80 if (!token) {
81 return res.status(401).json({ error: 'Session invalid or expired.' });
82 }
83
84 let payload;
85 try {
86 payload = jwt.verify(token, JWT_SECRET);
87 } catch {
88 return res.status(401).json({ error: 'Session invalid or expired.' });
89 }
90
91 // Verify IP binding
92 const currentIp = getClientIp(req);
93 if (payload.ip !== currentIp) {
94 // Intentionally identical error — do not reveal reason
95 return res.status(401).json({ error: 'Session invalid or expired.' });
96 }
97
98 // Verify region binding
99 const currentRegion = getRegion(currentIp);
100 if (payload.r !== currentRegion) {
101 return res.status(401).json({ error: 'Session invalid or expired.' });
102 }
103
104 // Verify fingerprint (sent on every request as X-Fp header)
105 const fp = req.headers['x-fp'] || '';
106 if (payload.fp !== fingerprintHash(fp)) {
107 return res.status(401).json({ error: 'Session invalid or expired.' });
108 }
109
110 // Load user from DB
111 const db = getDb();
112 const user = db.prepare('SELECT id, username, is_admin, permissions FROM users WHERE username = ?')
113 .get([payload.u]);
114
115 if (!user) {
116 return res.status(401).json({ error: 'Session invalid or expired.' });
117 }
118
119 req.user = {
120 id: user.id,
121 username: user.username,
122 isAdmin: user.is_admin === 1,
123 permissions: JSON.parse(user.permissions || '{}'),
124 };
125
126 next();
127}
128
129/**
130 * Middleware that additionally requires admin privileges.
131 */
132function requireAdmin(req, res, next) {
133 if (!req.user || !req.user.isAdmin) {
134 return res.status(403).json({ error: 'Admin access required.' });
135 }
136 next();
137}
138
139module.exports = { createToken, requireAuth, requireAdmin, getClientIp, getRegion };
server/config.js added +59 −0
@@ -0,0 +1,59 @@
1 'use strict';
2
3 const fs = require('fs');
4 const path = require('path');
5
6 const CONFIG_PATH = path.join(__dirname, '../config.json');
7
8 function loadConfig() {
9 try {
10 const raw = fs.readFileSync(CONFIG_PATH, 'utf8');
11 return JSON.parse(raw);
12 } catch {
13 const defaults = { port: 3000, paths: [] };
14 fs.writeFileSync(CONFIG_PATH, JSON.stringify(defaults, null, 2), 'utf8');
15 return defaults;
16 }
17 }
18
19 function saveConfig(config) {
20 fs.writeFileSync(CONFIG_PATH, JSON.stringify(config, null, 2), 'utf8');
21 }
22
23 /**
24 * Returns the de-duplicated, overlap-filtered list of configured paths.
25 * A child path is dropped when a parent path is also configured.
26 *
27 * Works on both Windows and Linux paths.
28 */
29 function getEffectivePaths(rawPaths) {
30 if (!Array.isArray(rawPaths)) return [];
31
32 const sep = path.sep;
33 const normalized = rawPaths.map(p => path.resolve(p));
34 const unique = [...new Set(normalized)];
35
36 return unique.filter(p => {
37 // Keep p only if no OTHER path in the list is a strict parent of p
38 return !unique.some(other => other !== p && p.startsWith(other + sep));
39 });
40 }
41
42 /**
43 * Checks whether `filePath` is safely inside one of the `allowedRoots`.
44 * Returns the matching root or null.
45 */
46 function getAllowedRoot(filePath, allowedRoots) {
47 const resolved = path.resolve(filePath);
48 const sep = path.sep;
49
50 for (const root of allowedRoots) {
51 const resolvedRoot = path.resolve(root);
52 if (resolved === resolvedRoot || resolved.startsWith(resolvedRoot + sep)) {
53 return resolvedRoot;
54 }
55 }
56 return null;
57 }
58
59 module.exports = { loadConfig, saveConfig, getEffectivePaths, getAllowedRoot };
@@ -0,0 +1,59 @@
1'use strict';
2
3const fs = require('fs');
4const path = require('path');
5
6const CONFIG_PATH = path.join(__dirname, '../config.json');
7
8function loadConfig() {
9 try {
10 const raw = fs.readFileSync(CONFIG_PATH, 'utf8');
11 return JSON.parse(raw);
12 } catch {
13 const defaults = { port: 3000, paths: [] };
14 fs.writeFileSync(CONFIG_PATH, JSON.stringify(defaults, null, 2), 'utf8');
15 return defaults;
16 }
17}
18
19function saveConfig(config) {
20 fs.writeFileSync(CONFIG_PATH, JSON.stringify(config, null, 2), 'utf8');
21}
22
23/**
24 * Returns the de-duplicated, overlap-filtered list of configured paths.
25 * A child path is dropped when a parent path is also configured.
26 *
27 * Works on both Windows and Linux paths.
28 */
29function getEffectivePaths(rawPaths) {
30 if (!Array.isArray(rawPaths)) return [];
31
32 const sep = path.sep;
33 const normalized = rawPaths.map(p => path.resolve(p));
34 const unique = [...new Set(normalized)];
35
36 return unique.filter(p => {
37 // Keep p only if no OTHER path in the list is a strict parent of p
38 return !unique.some(other => other !== p && p.startsWith(other + sep));
39 });
40}
41
42/**
43 * Checks whether `filePath` is safely inside one of the `allowedRoots`.
44 * Returns the matching root or null.
45 */
46function getAllowedRoot(filePath, allowedRoots) {
47 const resolved = path.resolve(filePath);
48 const sep = path.sep;
49
50 for (const root of allowedRoots) {
51 const resolvedRoot = path.resolve(root);
52 if (resolved === resolvedRoot || resolved.startsWith(resolvedRoot + sep)) {
53 return resolvedRoot;
54 }
55 }
56 return null;
57}
58
59module.exports = { loadConfig, saveConfig, getEffectivePaths, getAllowedRoot };
server/crypto.js added +157 −0
@@ -0,0 +1,157 @@
1 'use strict';
2
3 /**
4 * RSA-OAEP (SHA-256) + AES-256-GCM hybrid encryption helpers.
5 *
6 * The server generates a 2048-bit RSA key pair once on startup and stores it
7 * under ./keys/. All login credential decryption and token encryption use
8 * these routines.
9 *
10 * Hybrid scheme (encrypt):
11 * 1. Generate random 256-bit AES key + 96-bit IV.
12 * 2. Encrypt plaintext with AES-256-GCM → ciphertext + 128-bit auth tag.
13 * 3. Encrypt AES key with RSA-OAEP (SHA-256) → encryptedKey.
14 * 4. Return { encryptedKey, iv, ciphertext, tag } all base64-encoded.
15 *
16 * Hybrid scheme (decrypt):
17 * 1. Decrypt AES key with RSA private key.
18 * 2. Decrypt ciphertext with AES-256-GCM.
19 */
20
21 const crypto = require('crypto');
22 const fs = require('fs');
23 const path = require('path');
24
25 const KEYS_DIR = path.join(__dirname, '../keys');
26 const PRIV_KEY_PATH = path.join(KEYS_DIR, 'server.key');
27 const PUB_KEY_PATH = path.join(KEYS_DIR, 'server.pub');
28
29 let _serverPrivateKey = null;
30 let _serverPublicKey = null;
31
32 // ---------------------------------------------------------------------------
33 // Key management
34 // ---------------------------------------------------------------------------
35
36 function ensureServerKeys() {
37 if (!fs.existsSync(KEYS_DIR)) {
38 fs.mkdirSync(KEYS_DIR, { recursive: true });
39 }
40
41 if (fs.existsSync(PRIV_KEY_PATH) && fs.existsSync(PUB_KEY_PATH)) {
42 _serverPrivateKey = fs.readFileSync(PRIV_KEY_PATH, 'utf8');
43 _serverPublicKey = fs.readFileSync(PUB_KEY_PATH, 'utf8');
44 console.log('Server RSA keys loaded.');
45 return;
46 }
47
48 console.log('Generating server RSA key pair (2048-bit) …');
49 const { privateKey, publicKey } = crypto.generateKeyPairSync('rsa', {
50 modulusLength: 2048,
51 publicKeyEncoding: { type: 'spki', format: 'pem' },
52 privateKeyEncoding: { type: 'pkcs8', format: 'pem' },
53 });
54
55 fs.writeFileSync(PRIV_KEY_PATH, privateKey, { mode: 0o600 });
56 fs.writeFileSync(PUB_KEY_PATH, publicKey);
57
58 _serverPrivateKey = privateKey;
59 _serverPublicKey = publicKey;
60 console.log('Server RSA key pair generated and saved.');
61 }
62
63 function getServerPublicKeyPem() {
64 return _serverPublicKey;
65 }
66
67 /**
68 * Returns the server public key as a JWK object (for the browser's
69 * SubtleCrypto.importKey({ format: 'jwk' }) call).
70 */
71 function getServerPublicKeyJwk() {
72 const keyObj = crypto.createPublicKey(_serverPublicKey);
73 return keyObj.export({ format: 'jwk' });
74 }
75
76 // ---------------------------------------------------------------------------
77 // Hybrid decrypt (server receives encrypted payload from client)
78 // ---------------------------------------------------------------------------
79
80 /**
81 * payload: { encryptedKey, iv, ciphertext, tag } — all base64 strings
82 * Returns the decrypted plaintext string.
83 */
84 function hybridDecrypt(payload) {
85 const encryptedKey = Buffer.from(payload.encryptedKey, 'base64');
86 const iv = Buffer.from(payload.iv, 'base64');
87 const ciphertext = Buffer.from(payload.ciphertext, 'base64');
88 const tag = Buffer.from(payload.tag, 'base64');
89
90 // 1. Decrypt AES key with server RSA private key
91 const aesKey = crypto.privateDecrypt(
92 {
93 key: _serverPrivateKey,
94 padding: crypto.constants.RSA_PKCS1_OAEP_PADDING,
95 oaepHash: 'sha256',
96 },
97 encryptedKey,
98 );
99
100 // 2. Decrypt ciphertext with AES-256-GCM
101 const decipher = crypto.createDecipheriv('aes-256-gcm', aesKey, iv);
102 decipher.setAuthTag(tag);
103
104 const plain = Buffer.concat([decipher.update(ciphertext), decipher.final()]);
105 return plain.toString('utf8');
106 }
107
108 // ---------------------------------------------------------------------------
109 // Hybrid encrypt (server sends encrypted payload to client)
110 // ---------------------------------------------------------------------------
111
112 /**
113 * Encrypts `plaintext` (string) for the recipient identified by their RSA
114 * public key in JWK format.
115 * Returns { encryptedKey, iv, ciphertext, tag } — all base64 strings.
116 */
117 function hybridEncryptForClient(plaintext, clientPublicKeyJwk) {
118 // Import client public key
119 const clientPubKey = crypto.createPublicKey({ key: clientPublicKeyJwk, format: 'jwk' });
120
121 // 1. Generate random AES-256 key + IV
122 const aesKey = crypto.randomBytes(32);
123 const iv = crypto.randomBytes(12);
124
125 // 2. Encrypt plaintext with AES-256-GCM
126 const cipher = crypto.createCipheriv('aes-256-gcm', aesKey, iv);
127 const ciphertext = Buffer.concat([
128 cipher.update(Buffer.from(plaintext, 'utf8')),
129 cipher.final(),
130 ]);
131 const tag = cipher.getAuthTag();
132
133 // 3. Encrypt AES key with client's RSA public key
134 const encryptedKey = crypto.publicEncrypt(
135 {
136 key: clientPubKey,
137 padding: crypto.constants.RSA_PKCS1_OAEP_PADDING,
138 oaepHash: 'sha256',
139 },
140 aesKey,
141 );
142
143 return {
144 encryptedKey: encryptedKey.toString('base64'),
145 iv: iv.toString('base64'),
146 ciphertext: ciphertext.toString('base64'),
147 tag: tag.toString('base64'),
148 };
149 }
150
151 module.exports = {
152 ensureServerKeys,
153 getServerPublicKeyPem,
154 getServerPublicKeyJwk,
155 hybridDecrypt,
156 hybridEncryptForClient,
157 };
@@ -0,0 +1,157 @@
1'use strict';
2
3/**
4 * RSA-OAEP (SHA-256) + AES-256-GCM hybrid encryption helpers.
5 *
6 * The server generates a 2048-bit RSA key pair once on startup and stores it
7 * under ./keys/. All login credential decryption and token encryption use
8 * these routines.
9 *
10 * Hybrid scheme (encrypt):
11 * 1. Generate random 256-bit AES key + 96-bit IV.
12 * 2. Encrypt plaintext with AES-256-GCM → ciphertext + 128-bit auth tag.
13 * 3. Encrypt AES key with RSA-OAEP (SHA-256) → encryptedKey.
14 * 4. Return { encryptedKey, iv, ciphertext, tag } all base64-encoded.
15 *
16 * Hybrid scheme (decrypt):
17 * 1. Decrypt AES key with RSA private key.
18 * 2. Decrypt ciphertext with AES-256-GCM.
19 */
20
21const crypto = require('crypto');
22const fs = require('fs');
23const path = require('path');
24
25const KEYS_DIR = path.join(__dirname, '../keys');
26const PRIV_KEY_PATH = path.join(KEYS_DIR, 'server.key');
27const PUB_KEY_PATH = path.join(KEYS_DIR, 'server.pub');
28
29let _serverPrivateKey = null;
30let _serverPublicKey = null;
31
32// ---------------------------------------------------------------------------
33// Key management
34// ---------------------------------------------------------------------------
35
36function ensureServerKeys() {
37 if (!fs.existsSync(KEYS_DIR)) {
38 fs.mkdirSync(KEYS_DIR, { recursive: true });
39 }
40
41 if (fs.existsSync(PRIV_KEY_PATH) && fs.existsSync(PUB_KEY_PATH)) {
42 _serverPrivateKey = fs.readFileSync(PRIV_KEY_PATH, 'utf8');
43 _serverPublicKey = fs.readFileSync(PUB_KEY_PATH, 'utf8');
44 console.log('Server RSA keys loaded.');
45 return;
46 }
47
48 console.log('Generating server RSA key pair (2048-bit) …');
49 const { privateKey, publicKey } = crypto.generateKeyPairSync('rsa', {
50 modulusLength: 2048,
51 publicKeyEncoding: { type: 'spki', format: 'pem' },
52 privateKeyEncoding: { type: 'pkcs8', format: 'pem' },
53 });
54
55 fs.writeFileSync(PRIV_KEY_PATH, privateKey, { mode: 0o600 });
56 fs.writeFileSync(PUB_KEY_PATH, publicKey);
57
58 _serverPrivateKey = privateKey;
59 _serverPublicKey = publicKey;
60 console.log('Server RSA key pair generated and saved.');
61}
62
63function getServerPublicKeyPem() {
64 return _serverPublicKey;
65}
66
67/**
68 * Returns the server public key as a JWK object (for the browser's
69 * SubtleCrypto.importKey({ format: 'jwk' }) call).
70 */
71function getServerPublicKeyJwk() {
72 const keyObj = crypto.createPublicKey(_serverPublicKey);
73 return keyObj.export({ format: 'jwk' });
74}
75
76// ---------------------------------------------------------------------------
77// Hybrid decrypt (server receives encrypted payload from client)
78// ---------------------------------------------------------------------------
79
80/**
81 * payload: { encryptedKey, iv, ciphertext, tag } — all base64 strings
82 * Returns the decrypted plaintext string.
83 */
84function hybridDecrypt(payload) {
85 const encryptedKey = Buffer.from(payload.encryptedKey, 'base64');
86 const iv = Buffer.from(payload.iv, 'base64');
87 const ciphertext = Buffer.from(payload.ciphertext, 'base64');
88 const tag = Buffer.from(payload.tag, 'base64');
89
90 // 1. Decrypt AES key with server RSA private key
91 const aesKey = crypto.privateDecrypt(
92 {
93 key: _serverPrivateKey,
94 padding: crypto.constants.RSA_PKCS1_OAEP_PADDING,
95 oaepHash: 'sha256',
96 },
97 encryptedKey,
98 );
99
100 // 2. Decrypt ciphertext with AES-256-GCM
101 const decipher = crypto.createDecipheriv('aes-256-gcm', aesKey, iv);
102 decipher.setAuthTag(tag);
103
104 const plain = Buffer.concat([decipher.update(ciphertext), decipher.final()]);
105 return plain.toString('utf8');
106}
107
108// ---------------------------------------------------------------------------
109// Hybrid encrypt (server sends encrypted payload to client)
110// ---------------------------------------------------------------------------
111
112/**
113 * Encrypts `plaintext` (string) for the recipient identified by their RSA
114 * public key in JWK format.
115 * Returns { encryptedKey, iv, ciphertext, tag } — all base64 strings.
116 */
117function hybridEncryptForClient(plaintext, clientPublicKeyJwk) {
118 // Import client public key
119 const clientPubKey = crypto.createPublicKey({ key: clientPublicKeyJwk, format: 'jwk' });
120
121 // 1. Generate random AES-256 key + IV
122 const aesKey = crypto.randomBytes(32);
123 const iv = crypto.randomBytes(12);
124
125 // 2. Encrypt plaintext with AES-256-GCM
126 const cipher = crypto.createCipheriv('aes-256-gcm', aesKey, iv);
127 const ciphertext = Buffer.concat([
128 cipher.update(Buffer.from(plaintext, 'utf8')),
129 cipher.final(),
130 ]);
131 const tag = cipher.getAuthTag();
132
133 // 3. Encrypt AES key with client's RSA public key
134 const encryptedKey = crypto.publicEncrypt(
135 {
136 key: clientPubKey,
137 padding: crypto.constants.RSA_PKCS1_OAEP_PADDING,
138 oaepHash: 'sha256',
139 },
140 aesKey,
141 );
142
143 return {
144 encryptedKey: encryptedKey.toString('base64'),
145 iv: iv.toString('base64'),
146 ciphertext: ciphertext.toString('base64'),
147 tag: tag.toString('base64'),
148 };
149}
150
151module.exports = {
152 ensureServerKeys,
153 getServerPublicKeyPem,
154 getServerPublicKeyJwk,
155 hybridDecrypt,
156 hybridEncryptForClient,
157};
server/db.js added +45 −0
@@ -0,0 +1,45 @@
1 'use strict';
2
3 const path = require('path');
4 const { Database } = require('node-sqlite3-wasm');
5
6 const DB_PATH = path.join(__dirname, '../filemanager.db');
7 let db;
8
9 function getDb() {
10 if (!db) {
11 db = new Database(DB_PATH);
12 db.exec('PRAGMA journal_mode = WAL');
13 db.exec('PRAGMA foreign_keys = ON');
14 }
15 return db;
16 }
17
18 function initDb() {
19 const d = getDb();
20
21 d.exec(`
22 CREATE TABLE IF NOT EXISTS users (
23 id INTEGER PRIMARY KEY AUTOINCREMENT,
24 username TEXT UNIQUE NOT NULL,
25 password_hash TEXT NOT NULL,
26 is_admin INTEGER NOT NULL DEFAULT 0,
27 permissions TEXT NOT NULL DEFAULT '{}'
28 );
29
30 CREATE TABLE IF NOT EXISTS file_meta (
31 file_path TEXT PRIMARY KEY,
32 uploader TEXT NOT NULL DEFAULT '',
33 downloaders TEXT NOT NULL DEFAULT '[]'
34 );
35 `);
36 }
37
38 function closeDb() {
39 if (db) {
40 db.close();
41 db = null;
42 }
43 }
44
45 module.exports = { getDb, initDb, closeDb };
@@ -0,0 +1,45 @@
1'use strict';
2
3const path = require('path');
4const { Database } = require('node-sqlite3-wasm');
5
6const DB_PATH = path.join(__dirname, '../filemanager.db');
7let db;
8
9function getDb() {
10 if (!db) {
11 db = new Database(DB_PATH);
12 db.exec('PRAGMA journal_mode = WAL');
13 db.exec('PRAGMA foreign_keys = ON');
14 }
15 return db;
16}
17
18function initDb() {
19 const d = getDb();
20
21 d.exec(`
22 CREATE TABLE IF NOT EXISTS users (
23 id INTEGER PRIMARY KEY AUTOINCREMENT,
24 username TEXT UNIQUE NOT NULL,
25 password_hash TEXT NOT NULL,
26 is_admin INTEGER NOT NULL DEFAULT 0,
27 permissions TEXT NOT NULL DEFAULT '{}'
28 );
29
30 CREATE TABLE IF NOT EXISTS file_meta (
31 file_path TEXT PRIMARY KEY,
32 uploader TEXT NOT NULL DEFAULT '',
33 downloaders TEXT NOT NULL DEFAULT '[]'
34 );
35 `);
36}
37
38function closeDb() {
39 if (db) {
40 db.close();
41 db = null;
42 }
43}
44
45module.exports = { getDb, initDb, closeDb };
server/index.js added +60 −0
@@ -0,0 +1,60 @@
1 'use strict';
2
3 const express = require('express');
4 const path = require('path');
5 const { initDb, closeDb } = require('./db');
6 const { ensureServerKeys } = require('./crypto');
7 const { loadConfig } = require('./config');
8 const authRoutes = require('./routes/auth');
9 const filesRoutes = require('./routes/files');
10 const adminRoutes = require('./routes/admin');
11
12 const app = express();
13
14 app.use(express.json({ limit: '50mb' }));
15 app.use(express.static(path.join(__dirname, '../public')));
16
17 app.use('/api/auth', authRoutes);
18 app.use('/api/files', filesRoutes);
19 app.use('/api/admin', adminRoutes);
20
21 // SPA catch-all (only for non-API routes)
22 app.get('*', (req, res) => {
23 res.sendFile(path.join(__dirname, '../public/index.html'));
24 });
25
26 // Exposed so the shutdown route can trigger a graceful stop.
27 function shutdown(server) {
28 server.close(() => {
29 closeDb();
30 process.exit(0);
31 });
32 // Force-exit after 5 s if connections don't drain in time.
33 setTimeout(() => {
34 closeDb();
35 process.exit(0);
36 }, 5000).unref();
37 }
38
39 function start() {
40 initDb();
41 ensureServerKeys();
42
43 const config = loadConfig();
44 const port = config.port || 3000;
45
46 const server = app.listen(port, '0.0.0.0', () => {
47 console.log(`File manager running at http://localhost:${port}`);
48 });
49
50 // Give the admin route access to the server handle for graceful shutdown.
51 app.set('server', server);
52 app.set('shutdown', () => shutdown(server));
53 }
54
55 try {
56 start();
57 } catch (err) {
58 console.error('Failed to start server:', err);
59 process.exit(1);
60 }
@@ -0,0 +1,60 @@
1'use strict';
2
3const express = require('express');
4const path = require('path');
5const { initDb, closeDb } = require('./db');
6const { ensureServerKeys } = require('./crypto');
7const { loadConfig } = require('./config');
8const authRoutes = require('./routes/auth');
9const filesRoutes = require('./routes/files');
10const adminRoutes = require('./routes/admin');
11
12const app = express();
13
14app.use(express.json({ limit: '50mb' }));
15app.use(express.static(path.join(__dirname, '../public')));
16
17app.use('/api/auth', authRoutes);
18app.use('/api/files', filesRoutes);
19app.use('/api/admin', adminRoutes);
20
21// SPA catch-all (only for non-API routes)
22app.get('*', (req, res) => {
23 res.sendFile(path.join(__dirname, '../public/index.html'));
24});
25
26// Exposed so the shutdown route can trigger a graceful stop.
27function shutdown(server) {
28 server.close(() => {
29 closeDb();
30 process.exit(0);
31 });
32 // Force-exit after 5 s if connections don't drain in time.
33 setTimeout(() => {
34 closeDb();
35 process.exit(0);
36 }, 5000).unref();
37}
38
39function start() {
40 initDb();
41 ensureServerKeys();
42
43 const config = loadConfig();
44 const port = config.port || 3000;
45
46 const server = app.listen(port, '0.0.0.0', () => {
47 console.log(`File manager running at http://localhost:${port}`);
48 });
49
50 // Give the admin route access to the server handle for graceful shutdown.
51 app.set('server', server);
52 app.set('shutdown', () => shutdown(server));
53}
54
55try {
56 start();
57} catch (err) {
58 console.error('Failed to start server:', err);
59 process.exit(1);
60}
server/routes/admin.js added +163 −0
@@ -0,0 +1,163 @@
1 'use strict';
2
3 const express = require('express');
4 const bcrypt = require('bcrypt');
5 const path = require('path');
6 const router = express.Router();
7
8 const { getDb } = require('../db');
9 const { requireAuth, requireAdmin } = require('../auth');
10 const { loadConfig, saveConfig, getEffectivePaths } = require('../config');
11
12 const BCRYPT_ROUNDS = 12;
13
14 // All admin routes require authentication + admin privilege
15 router.use(requireAuth, requireAdmin);
16
17 // ---------------------------------------------------------------------------
18 // GET /api/admin/users
19 // Returns all users.
20 // ---------------------------------------------------------------------------
21 router.get('/users', (req, res) => {
22 const db = getDb();
23 const users = db.prepare('SELECT id, username, is_admin, permissions FROM users').all();
24 res.json({
25 users: users.map(u => ({
26 id: u.id,
27 username: u.username,
28 isAdmin: u.is_admin === 1,
29 permissions: JSON.parse(u.permissions || '{}'),
30 })),
31 });
32 });
33
34 // ---------------------------------------------------------------------------
35 // POST /api/admin/users
36 // Body: { username, password, isAdmin, permissions }
37 // Creates a new user.
38 // ---------------------------------------------------------------------------
39 router.post('/users', (req, res) => {
40 const { username, password, isAdmin, permissions } = req.body;
41
42 if (!username || !password || password.length < 8) {
43 return res.status(400).json({ error: 'Username required and password must be at least 8 characters.' });
44 }
45
46 const db = getDb();
47 const exists = db.prepare('SELECT id FROM users WHERE username = ?').get([username]);
48 if (exists) return res.status(409).json({ error: 'Username already exists.' });
49
50 const hash = bcrypt.hashSync(password, BCRYPT_ROUNDS);
51 db.prepare('INSERT INTO users (username, password_hash, is_admin, permissions) VALUES (?, ?, ?, ?)').run(
52 [username, hash, isAdmin ? 1 : 0, JSON.stringify(permissions || {})]
53 );
54
55 res.status(201).json({ ok: true });
56 });
57
58 // ---------------------------------------------------------------------------
59 // PATCH /api/admin/users/:id
60 // Body: { password?, isAdmin?, permissions? }
61 // Updates an existing user. At least one field must be present.
62 // ---------------------------------------------------------------------------
63 router.patch('/users/:id', (req, res) => {
64 const db = getDb();
65 const user = db.prepare('SELECT * FROM users WHERE id = ?').get(req.params.id);
66 if (!user) return res.status(404).json({ error: 'User not found.' });
67
68 const { password, isAdmin, permissions } = req.body;
69
70 // Prevent removing the last admin
71 if (isAdmin === false || isAdmin === 0) {
72 const adminCount = db.prepare('SELECT COUNT(*) as n FROM users WHERE is_admin = 1').get().n;
73 if (adminCount <= 1 && user.is_admin === 1) {
74 return res.status(400).json({ error: 'Cannot remove the last admin account.' });
75 }
76 }
77
78 if (password !== undefined) {
79 if (password.length < 8) return res.status(400).json({ error: 'Password must be at least 8 characters.' });
80 const hash = bcrypt.hashSync(password, BCRYPT_ROUNDS);
81 db.prepare('UPDATE users SET password_hash = ? WHERE id = ?').run([hash, user.id]);
82 }
83
84 if (isAdmin !== undefined) {
85 db.prepare('UPDATE users SET is_admin = ? WHERE id = ?').run([isAdmin ? 1 : 0, user.id]);
86 }
87
88 if (permissions !== undefined) {
89 db.prepare('UPDATE users SET permissions = ? WHERE id = ?').run([JSON.stringify(permissions), user.id]);
90 }
91
92 res.json({ ok: true });
93 });
94
95 // ---------------------------------------------------------------------------
96 // DELETE /api/admin/users/:id
97 // Deletes a user. Cannot delete yourself or the last admin.
98 // ---------------------------------------------------------------------------
99 router.delete('/users/:id', (req, res) => {
100 const db = getDb();
101 const user = db.prepare('SELECT * FROM users WHERE id = ?').get(req.params.id);
102 if (!user) return res.status(404).json({ error: 'User not found.' });
103
104 if (String(user.id) === String(req.user.id)) {
105 return res.status(400).json({ error: 'Cannot delete your own account.' });
106 }
107
108 if (user.is_admin === 1) {
109 const adminCount = db.prepare('SELECT COUNT(*) as n FROM users WHERE is_admin = 1').get().n;
110 if (adminCount <= 1) {
111 return res.status(400).json({ error: 'Cannot delete the last admin account.' });
112 }
113 }
114
115 db.prepare('DELETE FROM users WHERE id = ?').run([user.id]);
116 res.json({ ok: true });
117 });
118
119 // ---------------------------------------------------------------------------
120 // GET /api/admin/config
121 // Returns the current server config (paths, port).
122 // ---------------------------------------------------------------------------
123 router.get('/config', (req, res) => {
124 const config = loadConfig();
125 const effective = getEffectivePaths(config.paths || []);
126 res.json({ port: config.port || 3000, paths: config.paths || [], effectivePaths: effective });
127 });
128
129 // ---------------------------------------------------------------------------
130 // PUT /api/admin/config
131 // Body: { paths: [...], port: number }
132 // Saves the config.
133 // ---------------------------------------------------------------------------
134 router.put('/config', (req, res) => {
135 const { paths, port } = req.body;
136 if (!Array.isArray(paths)) return res.status(400).json({ error: 'paths must be an array.' });
137
138 const config = loadConfig();
139 config.paths = paths.map(p => p.trim()).filter(Boolean);
140 if (port !== undefined) {
141 const p = parseInt(port, 10);
142 if (isNaN(p) || p < 1 || p > 65535) return res.status(400).json({ error: 'Invalid port.' });
143 config.port = p;
144 }
145
146 saveConfig(config);
147 res.json({ ok: true, effectivePaths: getEffectivePaths(config.paths) });
148 });
149
150 // ---------------------------------------------------------------------------
151 // POST /api/admin/shutdown
152 // Responds immediately then gracefully closes the server and DB.
153 // ---------------------------------------------------------------------------
154 router.post('/shutdown', (req, res) => {
155 res.json({ ok: true });
156 // Defer so the response is flushed before we start closing.
157 setImmediate(() => {
158 const fn = req.app.get('shutdown');
159 if (typeof fn === 'function') fn();
160 });
161 });
162
163 module.exports = router;
@@ -0,0 +1,163 @@
1'use strict';
2
3const express = require('express');
4const bcrypt = require('bcrypt');
5const path = require('path');
6const router = express.Router();
7
8const { getDb } = require('../db');
9const { requireAuth, requireAdmin } = require('../auth');
10const { loadConfig, saveConfig, getEffectivePaths } = require('../config');
11
12const BCRYPT_ROUNDS = 12;
13
14// All admin routes require authentication + admin privilege
15router.use(requireAuth, requireAdmin);
16
17// ---------------------------------------------------------------------------
18// GET /api/admin/users
19// Returns all users.
20// ---------------------------------------------------------------------------
21router.get('/users', (req, res) => {
22 const db = getDb();
23 const users = db.prepare('SELECT id, username, is_admin, permissions FROM users').all();
24 res.json({
25 users: users.map(u => ({
26 id: u.id,
27 username: u.username,
28 isAdmin: u.is_admin === 1,
29 permissions: JSON.parse(u.permissions || '{}'),
30 })),
31 });
32});
33
34// ---------------------------------------------------------------------------
35// POST /api/admin/users
36// Body: { username, password, isAdmin, permissions }
37// Creates a new user.
38// ---------------------------------------------------------------------------
39router.post('/users', (req, res) => {
40 const { username, password, isAdmin, permissions } = req.body;
41
42 if (!username || !password || password.length < 8) {
43 return res.status(400).json({ error: 'Username required and password must be at least 8 characters.' });
44 }
45
46 const db = getDb();
47 const exists = db.prepare('SELECT id FROM users WHERE username = ?').get([username]);
48 if (exists) return res.status(409).json({ error: 'Username already exists.' });
49
50 const hash = bcrypt.hashSync(password, BCRYPT_ROUNDS);
51 db.prepare('INSERT INTO users (username, password_hash, is_admin, permissions) VALUES (?, ?, ?, ?)').run(
52 [username, hash, isAdmin ? 1 : 0, JSON.stringify(permissions || {})]
53 );
54
55 res.status(201).json({ ok: true });
56});
57
58// ---------------------------------------------------------------------------
59// PATCH /api/admin/users/:id
60// Body: { password?, isAdmin?, permissions? }
61// Updates an existing user. At least one field must be present.
62// ---------------------------------------------------------------------------
63router.patch('/users/:id', (req, res) => {
64 const db = getDb();
65 const user = db.prepare('SELECT * FROM users WHERE id = ?').get(req.params.id);
66 if (!user) return res.status(404).json({ error: 'User not found.' });
67
68 const { password, isAdmin, permissions } = req.body;
69
70 // Prevent removing the last admin
71 if (isAdmin === false || isAdmin === 0) {
72 const adminCount = db.prepare('SELECT COUNT(*) as n FROM users WHERE is_admin = 1').get().n;
73 if (adminCount <= 1 && user.is_admin === 1) {
74 return res.status(400).json({ error: 'Cannot remove the last admin account.' });
75 }
76 }
77
78 if (password !== undefined) {
79 if (password.length < 8) return res.status(400).json({ error: 'Password must be at least 8 characters.' });
80 const hash = bcrypt.hashSync(password, BCRYPT_ROUNDS);
81 db.prepare('UPDATE users SET password_hash = ? WHERE id = ?').run([hash, user.id]);
82 }
83
84 if (isAdmin !== undefined) {
85 db.prepare('UPDATE users SET is_admin = ? WHERE id = ?').run([isAdmin ? 1 : 0, user.id]);
86 }
87
88 if (permissions !== undefined) {
89 db.prepare('UPDATE users SET permissions = ? WHERE id = ?').run([JSON.stringify(permissions), user.id]);
90 }
91
92 res.json({ ok: true });
93});
94
95// ---------------------------------------------------------------------------
96// DELETE /api/admin/users/:id
97// Deletes a user. Cannot delete yourself or the last admin.
98// ---------------------------------------------------------------------------
99router.delete('/users/:id', (req, res) => {
100 const db = getDb();
101 const user = db.prepare('SELECT * FROM users WHERE id = ?').get(req.params.id);
102 if (!user) return res.status(404).json({ error: 'User not found.' });
103
104 if (String(user.id) === String(req.user.id)) {
105 return res.status(400).json({ error: 'Cannot delete your own account.' });
106 }
107
108 if (user.is_admin === 1) {
109 const adminCount = db.prepare('SELECT COUNT(*) as n FROM users WHERE is_admin = 1').get().n;
110 if (adminCount <= 1) {
111 return res.status(400).json({ error: 'Cannot delete the last admin account.' });
112 }
113 }
114
115 db.prepare('DELETE FROM users WHERE id = ?').run([user.id]);
116 res.json({ ok: true });
117});
118
119// ---------------------------------------------------------------------------
120// GET /api/admin/config
121// Returns the current server config (paths, port).
122// ---------------------------------------------------------------------------
123router.get('/config', (req, res) => {
124 const config = loadConfig();
125 const effective = getEffectivePaths(config.paths || []);
126 res.json({ port: config.port || 3000, paths: config.paths || [], effectivePaths: effective });
127});
128
129// ---------------------------------------------------------------------------
130// PUT /api/admin/config
131// Body: { paths: [...], port: number }
132// Saves the config.
133// ---------------------------------------------------------------------------
134router.put('/config', (req, res) => {
135 const { paths, port } = req.body;
136 if (!Array.isArray(paths)) return res.status(400).json({ error: 'paths must be an array.' });
137
138 const config = loadConfig();
139 config.paths = paths.map(p => p.trim()).filter(Boolean);
140 if (port !== undefined) {
141 const p = parseInt(port, 10);
142 if (isNaN(p) || p < 1 || p > 65535) return res.status(400).json({ error: 'Invalid port.' });
143 config.port = p;
144 }
145
146 saveConfig(config);
147 res.json({ ok: true, effectivePaths: getEffectivePaths(config.paths) });
148});
149
150// ---------------------------------------------------------------------------
151// POST /api/admin/shutdown
152// Responds immediately then gracefully closes the server and DB.
153// ---------------------------------------------------------------------------
154router.post('/shutdown', (req, res) => {
155 res.json({ ok: true });
156 // Defer so the response is flushed before we start closing.
157 setImmediate(() => {
158 const fn = req.app.get('shutdown');
159 if (typeof fn === 'function') fn();
160 });
161});
162
163module.exports = router;
server/routes/auth.js added +112 −0
@@ -0,0 +1,112 @@
1 'use strict';
2
3 const express = require('express');
4 const bcrypt = require('bcrypt');
5 const router = express.Router();
6
7 const { getDb } = require('../db');
8 const { getServerPublicKeyJwk, hybridDecrypt, hybridEncryptForClient } = require('../crypto');
9 const { createToken, requireAuth } = require('../auth');
10
11 const BCRYPT_ROUNDS = 12;
12
13 // ---------------------------------------------------------------------------
14 // GET /api/auth/server-key
15 // Returns the server's RSA public key as JWK so the browser can import it.
16 // ---------------------------------------------------------------------------
17 router.get('/server-key', (req, res) => {
18 res.json({ publicKey: getServerPublicKeyJwk() });
19 });
20
21 // ---------------------------------------------------------------------------
22 // GET /api/auth/setup-needed
23 // Returns { needed: true } if no users exist yet.
24 // ---------------------------------------------------------------------------
25 router.get('/setup-needed', (req, res) => {
26 const db = getDb();
27 const count = db.prepare('SELECT COUNT(*) as n FROM users').get().n;
28 res.json({ needed: count === 0 });
29 });
30
31 // ---------------------------------------------------------------------------
32 // POST /api/auth/setup
33 // Creates the first admin account (only when no users exist).
34 // Body: { encrypted: { encryptedKey, iv, ciphertext, tag }, clientPublicKey }
35 // The encrypted payload must be: { username, password }
36 // ---------------------------------------------------------------------------
37 router.post('/setup', (req, res) => {
38 const db = getDb();
39 const count = db.prepare('SELECT COUNT(*) as n FROM users').get().n;
40 if (count > 0) {
41 return res.status(403).json({ error: 'Setup already completed.' });
42 }
43
44 let credentials;
45 try {
46 const plain = hybridDecrypt(req.body.encrypted);
47 credentials = JSON.parse(plain);
48 } catch {
49 return res.status(400).json({ error: 'Invalid encrypted payload.' });
50 }
51
52 const { username, password } = credentials;
53 if (!username || !password || username.length < 1 || password.length < 8) {
54 return res.status(400).json({ error: 'Username required and password must be at least 8 characters.' });
55 }
56
57 const hash = bcrypt.hashSync(password, BCRYPT_ROUNDS);
58 db.prepare('INSERT INTO users (username, password_hash, is_admin, permissions) VALUES (?, ?, 1, ?)').run(
59 [username, hash, '{}']
60 );
61
62 // Issue token
63 const token = createToken(username, req, req.body.fingerprint || '');
64 const encrypted = hybridEncryptForClient(token, req.body.clientPublicKey);
65 res.json({ encrypted });
66 });
67
68 // ---------------------------------------------------------------------------
69 // POST /api/auth/login
70 // Body: { encrypted: { encryptedKey, iv, ciphertext, tag }, clientPublicKey, fingerprint }
71 // The encrypted payload must be: { username, password }
72 // ---------------------------------------------------------------------------
73 router.post('/login', (req, res) => {
74 let credentials;
75 try {
76 const plain = hybridDecrypt(req.body.encrypted);
77 credentials = JSON.parse(plain);
78 } catch {
79 return res.status(400).json({ error: 'Invalid encrypted payload.' });
80 }
81
82 const { username, password } = credentials;
83 if (!username || !password) {
84 return res.status(400).json({ error: 'Invalid credentials.' });
85 }
86
87 const db = getDb();
88 const user = db.prepare('SELECT * FROM users WHERE username = ?').get([username]);
89
90 if (!user || !bcrypt.compareSync(password, user.password_hash)) {
91 return res.status(401).json({ error: 'Invalid credentials.' });
92 }
93
94 const fingerprint = req.body.fingerprint || '';
95 const token = createToken(username, req, fingerprint);
96 const encrypted = hybridEncryptForClient(token, req.body.clientPublicKey);
97 res.json({ encrypted });
98 });
99
100 // ---------------------------------------------------------------------------
101 // GET /api/auth/me
102 // Returns the current user's basic info.
103 // ---------------------------------------------------------------------------
104 router.get('/me', requireAuth, (req, res) => {
105 res.json({
106 username: req.user.username,
107 isAdmin: req.user.isAdmin,
108 permissions: req.user.permissions,
109 });
110 });
111
112 module.exports = router;
@@ -0,0 +1,112 @@
1'use strict';
2
3const express = require('express');
4const bcrypt = require('bcrypt');
5const router = express.Router();
6
7const { getDb } = require('../db');
8const { getServerPublicKeyJwk, hybridDecrypt, hybridEncryptForClient } = require('../crypto');
9const { createToken, requireAuth } = require('../auth');
10
11const BCRYPT_ROUNDS = 12;
12
13// ---------------------------------------------------------------------------
14// GET /api/auth/server-key
15// Returns the server's RSA public key as JWK so the browser can import it.
16// ---------------------------------------------------------------------------
17router.get('/server-key', (req, res) => {
18 res.json({ publicKey: getServerPublicKeyJwk() });
19});
20
21// ---------------------------------------------------------------------------
22// GET /api/auth/setup-needed
23// Returns { needed: true } if no users exist yet.
24// ---------------------------------------------------------------------------
25router.get('/setup-needed', (req, res) => {
26 const db = getDb();
27 const count = db.prepare('SELECT COUNT(*) as n FROM users').get().n;
28 res.json({ needed: count === 0 });
29});
30
31// ---------------------------------------------------------------------------
32// POST /api/auth/setup
33// Creates the first admin account (only when no users exist).
34// Body: { encrypted: { encryptedKey, iv, ciphertext, tag }, clientPublicKey }
35// The encrypted payload must be: { username, password }
36// ---------------------------------------------------------------------------
37router.post('/setup', (req, res) => {
38 const db = getDb();
39 const count = db.prepare('SELECT COUNT(*) as n FROM users').get().n;
40 if (count > 0) {
41 return res.status(403).json({ error: 'Setup already completed.' });
42 }
43
44 let credentials;
45 try {
46 const plain = hybridDecrypt(req.body.encrypted);
47 credentials = JSON.parse(plain);
48 } catch {
49 return res.status(400).json({ error: 'Invalid encrypted payload.' });
50 }
51
52 const { username, password } = credentials;
53 if (!username || !password || username.length < 1 || password.length < 8) {
54 return res.status(400).json({ error: 'Username required and password must be at least 8 characters.' });
55 }
56
57 const hash = bcrypt.hashSync(password, BCRYPT_ROUNDS);
58 db.prepare('INSERT INTO users (username, password_hash, is_admin, permissions) VALUES (?, ?, 1, ?)').run(
59 [username, hash, '{}']
60 );
61
62 // Issue token
63 const token = createToken(username, req, req.body.fingerprint || '');
64 const encrypted = hybridEncryptForClient(token, req.body.clientPublicKey);
65 res.json({ encrypted });
66});
67
68// ---------------------------------------------------------------------------
69// POST /api/auth/login
70// Body: { encrypted: { encryptedKey, iv, ciphertext, tag }, clientPublicKey, fingerprint }
71// The encrypted payload must be: { username, password }
72// ---------------------------------------------------------------------------
73router.post('/login', (req, res) => {
74 let credentials;
75 try {
76 const plain = hybridDecrypt(req.body.encrypted);
77 credentials = JSON.parse(plain);
78 } catch {
79 return res.status(400).json({ error: 'Invalid encrypted payload.' });
80 }
81
82 const { username, password } = credentials;
83 if (!username || !password) {
84 return res.status(400).json({ error: 'Invalid credentials.' });
85 }
86
87 const db = getDb();
88 const user = db.prepare('SELECT * FROM users WHERE username = ?').get([username]);
89
90 if (!user || !bcrypt.compareSync(password, user.password_hash)) {
91 return res.status(401).json({ error: 'Invalid credentials.' });
92 }
93
94 const fingerprint = req.body.fingerprint || '';
95 const token = createToken(username, req, fingerprint);
96 const encrypted = hybridEncryptForClient(token, req.body.clientPublicKey);
97 res.json({ encrypted });
98});
99
100// ---------------------------------------------------------------------------
101// GET /api/auth/me
102// Returns the current user's basic info.
103// ---------------------------------------------------------------------------
104router.get('/me', requireAuth, (req, res) => {
105 res.json({
106 username: req.user.username,
107 isAdmin: req.user.isAdmin,
108 permissions: req.user.permissions,
109 });
110});
111
112module.exports = router;
server/routes/files.js added +335 −0
@@ -0,0 +1,335 @@
1 'use strict';
2
3 const express = require('express');
4 const path = require('path');
5 const fs = require('fs');
6 const multer = require('multer');
7 const router = express.Router();
8
9 const { getDb } = require('../db');
10 const { loadConfig, getEffectivePaths, getAllowedRoot } = require('../config');
11 const { requireAuth } = require('../auth');
12
13 // ---------------------------------------------------------------------------
14 // Multer storage — files are written directly to the target directory
15 // ---------------------------------------------------------------------------
16 const storage = multer.diskStorage({
17 destination(req, file, cb) {
18 // The target directory is resolved in the route handler, so we stash it
19 // during the multer middleware call via req._uploadDir.
20 cb(null, req._uploadDir);
21 },
22 filename(req, file, cb) {
23 cb(null, file.originalname);
24 },
25 });
26
27 const upload = multer({
28 storage,
29 limits: { fileSize: 10 * 1024 * 1024 * 1024 }, // 10 GB
30 });
31
32 // ---------------------------------------------------------------------------
33 // Helpers
34 // ---------------------------------------------------------------------------
35
36 function effectivePaths() {
37 return getEffectivePaths(loadConfig().paths || []);
38 }
39
40 /**
41 * Verify that the user has read access to the given configured-path label.
42 * `pathLabel` is the base-name of the effective path (shown in the UI).
43 */
44 function canRead(user, pathLabel) {
45 if (user.isAdmin) return true;
46 return !!(user.permissions[pathLabel] && user.permissions[pathLabel].read);
47 }
48
49 function canWrite(user, pathLabel) {
50 if (user.isAdmin) return true;
51 return !!(user.permissions[pathLabel] && user.permissions[pathLabel].write);
52 }
53
54 /**
55 * Given an absolute path and the effective-paths list, return
56 * { root, label } where label is the base-name of the root, or null.
57 */
58 function resolveRoot(absPath, roots) {
59 const matchedRoot = getAllowedRoot(absPath, roots);
60 if (!matchedRoot) return null;
61 return { root: matchedRoot, label: path.basename(matchedRoot) };
62 }
63
64 // ---------------------------------------------------------------------------
65 // GET /api/files/roots
66 // Returns the effective configured paths the user can read.
67 // ---------------------------------------------------------------------------
68 router.get('/roots', requireAuth, (req, res) => {
69 const roots = effectivePaths();
70 const readable = roots
71 .filter(r => canRead(req.user, path.basename(r)))
72 .map(r => ({ label: path.basename(r), path: r }));
73 res.json({ roots: readable });
74 });
75
76 // ---------------------------------------------------------------------------
77 // GET /api/files/list?dir=<absolute-path>
78 // Lists files and folders in the given directory.
79 // ---------------------------------------------------------------------------
80 router.get('/list', requireAuth, (req, res) => {
81 const dir = req.query.dir;
82 if (!dir) return res.status(400).json({ error: 'dir is required.' });
83
84 const roots = effectivePaths();
85 const info = resolveRoot(dir, roots);
86 if (!info) return res.status(403).json({ error: 'Access denied.' });
87 if (!canRead(req.user, info.label)) return res.status(403).json({ error: 'Access denied.' });
88
89 let entries;
90 try {
91 entries = fs.readdirSync(dir, { withFileTypes: true });
92 } catch {
93 return res.status(404).json({ error: 'Directory not found.' });
94 }
95
96 const items = entries.map(e => {
97 const fullPath = path.join(dir, e.name);
98 let size = null;
99 let mtime = null;
100 try {
101 const stat = fs.statSync(fullPath);
102 size = stat.size;
103 mtime = stat.mtime.toISOString();
104 } catch { /* ignore */ }
105
106 return {
107 name: e.name,
108 isDir: e.isDirectory(),
109 size,
110 mtime,
111 path: fullPath,
112 };
113 });
114
115 res.json({ items });
116 });
117
118 // ---------------------------------------------------------------------------
119 // GET /api/files/meta?file=<absolute-path>
120 // Returns file metadata from the DB.
121 // ---------------------------------------------------------------------------
122 router.get('/meta', requireAuth, (req, res) => {
123 const file = req.query.file;
124 if (!file) return res.status(400).json({ error: 'file is required.' });
125
126 const roots = effectivePaths();
127 const info = resolveRoot(file, roots);
128 if (!info || !canRead(req.user, info.label)) {
129 return res.status(403).json({ error: 'Access denied.' });
130 }
131
132 let stat;
133 try {
134 stat = fs.statSync(file);
135 } catch {
136 return res.status(404).json({ error: 'File not found.' });
137 }
138
139 const db = getDb();
140 const meta = db.prepare('SELECT * FROM file_meta WHERE file_path = ?').get([file]);
141
142 res.json({
143 name: path.basename(file),
144 size: stat.size,
145 mtime: stat.mtime.toISOString(),
146 uploader: meta ? meta.uploader : '',
147 downloaders: meta ? JSON.parse(meta.downloaders) : [],
148 });
149 });
150
151 // ---------------------------------------------------------------------------
152 // GET /api/files/download?file=<absolute-path>
153 // Streams the file to the client; records the download.
154 // ---------------------------------------------------------------------------
155 router.get('/download', requireAuth, (req, res) => {
156 const file = req.query.file;
157 if (!file) return res.status(400).json({ error: 'file is required.' });
158
159 const roots = effectivePaths();
160 const info = resolveRoot(file, roots);
161 if (!info || !canRead(req.user, info.label)) {
162 return res.status(403).json({ error: 'Access denied.' });
163 }
164
165 if (!fs.existsSync(file) || fs.statSync(file).isDirectory()) {
166 return res.status(404).json({ error: 'File not found.' });
167 }
168
169 // Record download
170 const db = getDb();
171 const meta = db.prepare('SELECT * FROM file_meta WHERE file_path = ?').get([file]);
172 if (meta) {
173 const downloaders = JSON.parse(meta.downloaders);
174 if (!downloaders.includes(req.user.username)) {
175 downloaders.push(req.user.username);
176 db.prepare('UPDATE file_meta SET downloaders = ? WHERE file_path = ?')
177 .run([JSON.stringify(downloaders), file]);
178 }
179 } else {
180 db.prepare('INSERT INTO file_meta (file_path, uploader, downloaders) VALUES (?, ?, ?)')
181 .run([file, '', JSON.stringify([req.user.username])]);
182 }
183
184 res.download(file, path.basename(file));
185 });
186
187 // ---------------------------------------------------------------------------
188 // POST /api/files/upload?dir=<absolute-path>
189 // Accepts multipart file upload.
190 // ---------------------------------------------------------------------------
191 router.post('/upload', requireAuth, (req, res, next) => {
192 const dir = req.query.dir;
193 if (!dir) return res.status(400).json({ error: 'dir is required.' });
194
195 const roots = effectivePaths();
196 const info = resolveRoot(dir, roots);
197 if (!info || !canWrite(req.user, info.label)) {
198 return res.status(403).json({ error: 'Access denied.' });
199 }
200
201 if (!fs.existsSync(dir) || !fs.statSync(dir).isDirectory()) {
202 return res.status(404).json({ error: 'Directory not found.' });
203 }
204
205 req._uploadDir = dir;
206
207 upload.array('files')(req, res, (err) => {
208 if (err) return res.status(500).json({ error: err.message });
209
210 const db = getDb();
211 for (const f of (req.files || [])) {
212 const filePath = path.join(dir, f.originalname);
213 const existing = db.prepare('SELECT * FROM file_meta WHERE file_path = ?').get([filePath]);
214 if (existing) {
215 db.prepare('UPDATE file_meta SET uploader = ? WHERE file_path = ?')
216 .run([req.user.username, filePath]);
217 } else {
218 db.prepare('INSERT INTO file_meta (file_path, uploader, downloaders) VALUES (?, ?, ?)')
219 .run([filePath, req.user.username, '[]']);
220 }
221 }
222 res.json({ uploaded: (req.files || []).map(f => f.originalname) });
223 });
224 });
225
226 // ---------------------------------------------------------------------------
227 // POST /api/files/rename
228 // Body: { from: <absolute-path>, to: <new-name> } (to = just the filename, not full path)
229 // ---------------------------------------------------------------------------
230 router.post('/rename', requireAuth, (req, res) => {
231 const { from, to } = req.body;
232 if (!from || !to) return res.status(400).json({ error: 'from and to are required.' });
233
234 // Prevent path traversal in the new name
235 if (path.basename(to) !== to || to.includes('/') || to.includes('\\')) {
236 return res.status(400).json({ error: 'Invalid name.' });
237 }
238
239 const roots = effectivePaths();
240 const info = resolveRoot(from, roots);
241 if (!info || !canWrite(req.user, info.label)) {
242 return res.status(403).json({ error: 'Access denied.' });
243 }
244
245 const dest = path.join(path.dirname(from), to);
246
247 // Ensure dest is still inside the same root
248 if (!getAllowedRoot(dest, roots)) {
249 return res.status(403).json({ error: 'Access denied.' });
250 }
251
252 try {
253 fs.renameSync(from, dest);
254 } catch (err) {
255 return res.status(500).json({ error: err.message });
256 }
257
258 // Update DB meta key
259 const db = getDb();
260 db.prepare('UPDATE file_meta SET file_path = ? WHERE file_path = ?').run([dest, from]);
261
262 res.json({ ok: true });
263 });
264
265 // ---------------------------------------------------------------------------
266 // POST /api/files/mkdir
267 // Body: { dir: <absolute-path>, name: <folder-name> }
268 // ---------------------------------------------------------------------------
269 router.post('/mkdir', requireAuth, (req, res) => {
270 const { dir, name } = req.body;
271 if (!dir || !name) return res.status(400).json({ error: 'dir and name are required.' });
272
273 if (path.basename(name) !== name) {
274 return res.status(400).json({ error: 'Invalid folder name.' });
275 }
276
277 const roots = effectivePaths();
278 const info = resolveRoot(dir, roots);
279 if (!info || !canWrite(req.user, info.label)) {
280 return res.status(403).json({ error: 'Access denied.' });
281 }
282
283 const newDir = path.join(dir, name);
284 if (!getAllowedRoot(newDir, roots)) {
285 return res.status(403).json({ error: 'Access denied.' });
286 }
287
288 try {
289 fs.mkdirSync(newDir, { recursive: false });
290 } catch (err) {
291 return res.status(500).json({ error: err.message });
292 }
293
294 res.json({ ok: true, path: newDir });
295 });
296
297 // ---------------------------------------------------------------------------
298 // POST /api/files/delete
299 // Body: { path: <absolute-path> }
300 // ---------------------------------------------------------------------------
301 router.post('/delete', requireAuth, (req, res) => {
302 const target = req.body.path;
303 if (!target) return res.status(400).json({ error: 'path is required.' });
304
305 const roots = effectivePaths();
306 const info = resolveRoot(target, roots);
307 if (!info || !canWrite(req.user, info.label)) {
308 return res.status(403).json({ error: 'Access denied.' });
309 }
310
311 // Do not allow deleting a configured root itself
312 if (roots.map(r => path.resolve(r)).includes(path.resolve(target))) {
313 return res.status(403).json({ error: 'Cannot delete a configured root path.' });
314 }
315
316 try {
317 const stat = fs.statSync(target);
318 if (stat.isDirectory()) {
319 fs.rmSync(target, { recursive: true, force: true });
320 } else {
321 fs.unlinkSync(target);
322 }
323 } catch (err) {
324 return res.status(500).json({ error: err.message });
325 }
326
327 // Clean up any DB meta entries under that path
328 const db = getDb();
329 db.prepare("DELETE FROM file_meta WHERE file_path = ? OR file_path LIKE ?")
330 .run([target, target + path.sep + '%']);
331
332 res.json({ ok: true });
333 });
334
335 module.exports = router;
@@ -0,0 +1,335 @@
1'use strict';
2
3const express = require('express');
4const path = require('path');
5const fs = require('fs');
6const multer = require('multer');
7const router = express.Router();
8
9const { getDb } = require('../db');
10const { loadConfig, getEffectivePaths, getAllowedRoot } = require('../config');
11const { requireAuth } = require('../auth');
12
13// ---------------------------------------------------------------------------
14// Multer storage — files are written directly to the target directory
15// ---------------------------------------------------------------------------
16const storage = multer.diskStorage({
17 destination(req, file, cb) {
18 // The target directory is resolved in the route handler, so we stash it
19 // during the multer middleware call via req._uploadDir.
20 cb(null, req._uploadDir);
21 },
22 filename(req, file, cb) {
23 cb(null, file.originalname);
24 },
25});
26
27const upload = multer({
28 storage,
29 limits: { fileSize: 10 * 1024 * 1024 * 1024 }, // 10 GB
30});
31
32// ---------------------------------------------------------------------------
33// Helpers
34// ---------------------------------------------------------------------------
35
36function effectivePaths() {
37 return getEffectivePaths(loadConfig().paths || []);
38}
39
40/**
41 * Verify that the user has read access to the given configured-path label.
42 * `pathLabel` is the base-name of the effective path (shown in the UI).
43 */
44function canRead(user, pathLabel) {
45 if (user.isAdmin) return true;
46 return !!(user.permissions[pathLabel] && user.permissions[pathLabel].read);
47}
48
49function canWrite(user, pathLabel) {
50 if (user.isAdmin) return true;
51 return !!(user.permissions[pathLabel] && user.permissions[pathLabel].write);
52}
53
54/**
55 * Given an absolute path and the effective-paths list, return
56 * { root, label } where label is the base-name of the root, or null.
57 */
58function resolveRoot(absPath, roots) {
59 const matchedRoot = getAllowedRoot(absPath, roots);
60 if (!matchedRoot) return null;
61 return { root: matchedRoot, label: path.basename(matchedRoot) };
62}
63
64// ---------------------------------------------------------------------------
65// GET /api/files/roots
66// Returns the effective configured paths the user can read.
67// ---------------------------------------------------------------------------
68router.get('/roots', requireAuth, (req, res) => {
69 const roots = effectivePaths();
70 const readable = roots
71 .filter(r => canRead(req.user, path.basename(r)))
72 .map(r => ({ label: path.basename(r), path: r }));
73 res.json({ roots: readable });
74});
75
76// ---------------------------------------------------------------------------
77// GET /api/files/list?dir=<absolute-path>
78// Lists files and folders in the given directory.
79// ---------------------------------------------------------------------------
80router.get('/list', requireAuth, (req, res) => {
81 const dir = req.query.dir;
82 if (!dir) return res.status(400).json({ error: 'dir is required.' });
83
84 const roots = effectivePaths();
85 const info = resolveRoot(dir, roots);
86 if (!info) return res.status(403).json({ error: 'Access denied.' });
87 if (!canRead(req.user, info.label)) return res.status(403).json({ error: 'Access denied.' });
88
89 let entries;
90 try {
91 entries = fs.readdirSync(dir, { withFileTypes: true });
92 } catch {
93 return res.status(404).json({ error: 'Directory not found.' });
94 }
95
96 const items = entries.map(e => {
97 const fullPath = path.join(dir, e.name);
98 let size = null;
99 let mtime = null;
100 try {
101 const stat = fs.statSync(fullPath);
102 size = stat.size;
103 mtime = stat.mtime.toISOString();
104 } catch { /* ignore */ }
105
106 return {
107 name: e.name,
108 isDir: e.isDirectory(),
109 size,
110 mtime,
111 path: fullPath,
112 };
113 });
114
115 res.json({ items });
116});
117
118// ---------------------------------------------------------------------------
119// GET /api/files/meta?file=<absolute-path>
120// Returns file metadata from the DB.
121// ---------------------------------------------------------------------------
122router.get('/meta', requireAuth, (req, res) => {
123 const file = req.query.file;
124 if (!file) return res.status(400).json({ error: 'file is required.' });
125
126 const roots = effectivePaths();
127 const info = resolveRoot(file, roots);
128 if (!info || !canRead(req.user, info.label)) {
129 return res.status(403).json({ error: 'Access denied.' });
130 }
131
132 let stat;
133 try {
134 stat = fs.statSync(file);
135 } catch {
136 return res.status(404).json({ error: 'File not found.' });
137 }
138
139 const db = getDb();
140 const meta = db.prepare('SELECT * FROM file_meta WHERE file_path = ?').get([file]);
141
142 res.json({
143 name: path.basename(file),
144 size: stat.size,
145 mtime: stat.mtime.toISOString(),
146 uploader: meta ? meta.uploader : '',
147 downloaders: meta ? JSON.parse(meta.downloaders) : [],
148 });
149});
150
151// ---------------------------------------------------------------------------
152// GET /api/files/download?file=<absolute-path>
153// Streams the file to the client; records the download.
154// ---------------------------------------------------------------------------
155router.get('/download', requireAuth, (req, res) => {
156 const file = req.query.file;
157 if (!file) return res.status(400).json({ error: 'file is required.' });
158
159 const roots = effectivePaths();
160 const info = resolveRoot(file, roots);
161 if (!info || !canRead(req.user, info.label)) {
162 return res.status(403).json({ error: 'Access denied.' });
163 }
164
165 if (!fs.existsSync(file) || fs.statSync(file).isDirectory()) {
166 return res.status(404).json({ error: 'File not found.' });
167 }
168
169 // Record download
170 const db = getDb();
171 const meta = db.prepare('SELECT * FROM file_meta WHERE file_path = ?').get([file]);
172 if (meta) {
173 const downloaders = JSON.parse(meta.downloaders);
174 if (!downloaders.includes(req.user.username)) {
175 downloaders.push(req.user.username);
176 db.prepare('UPDATE file_meta SET downloaders = ? WHERE file_path = ?')
177 .run([JSON.stringify(downloaders), file]);
178 }
179 } else {
180 db.prepare('INSERT INTO file_meta (file_path, uploader, downloaders) VALUES (?, ?, ?)')
181 .run([file, '', JSON.stringify([req.user.username])]);
182 }
183
184 res.download(file, path.basename(file));
185});
186
187// ---------------------------------------------------------------------------
188// POST /api/files/upload?dir=<absolute-path>
189// Accepts multipart file upload.
190// ---------------------------------------------------------------------------
191router.post('/upload', requireAuth, (req, res, next) => {
192 const dir = req.query.dir;
193 if (!dir) return res.status(400).json({ error: 'dir is required.' });
194
195 const roots = effectivePaths();
196 const info = resolveRoot(dir, roots);
197 if (!info || !canWrite(req.user, info.label)) {
198 return res.status(403).json({ error: 'Access denied.' });
199 }
200
201 if (!fs.existsSync(dir) || !fs.statSync(dir).isDirectory()) {
202 return res.status(404).json({ error: 'Directory not found.' });
203 }
204
205 req._uploadDir = dir;
206
207 upload.array('files')(req, res, (err) => {
208 if (err) return res.status(500).json({ error: err.message });
209
210 const db = getDb();
211 for (const f of (req.files || [])) {
212 const filePath = path.join(dir, f.originalname);
213 const existing = db.prepare('SELECT * FROM file_meta WHERE file_path = ?').get([filePath]);
214 if (existing) {
215 db.prepare('UPDATE file_meta SET uploader = ? WHERE file_path = ?')
216 .run([req.user.username, filePath]);
217 } else {
218 db.prepare('INSERT INTO file_meta (file_path, uploader, downloaders) VALUES (?, ?, ?)')
219 .run([filePath, req.user.username, '[]']);
220 }
221 }
222 res.json({ uploaded: (req.files || []).map(f => f.originalname) });
223 });
224});
225
226// ---------------------------------------------------------------------------
227// POST /api/files/rename
228// Body: { from: <absolute-path>, to: <new-name> } (to = just the filename, not full path)
229// ---------------------------------------------------------------------------
230router.post('/rename', requireAuth, (req, res) => {
231 const { from, to } = req.body;
232 if (!from || !to) return res.status(400).json({ error: 'from and to are required.' });
233
234 // Prevent path traversal in the new name
235 if (path.basename(to) !== to || to.includes('/') || to.includes('\\')) {
236 return res.status(400).json({ error: 'Invalid name.' });
237 }
238
239 const roots = effectivePaths();
240 const info = resolveRoot(from, roots);
241 if (!info || !canWrite(req.user, info.label)) {
242 return res.status(403).json({ error: 'Access denied.' });
243 }
244
245 const dest = path.join(path.dirname(from), to);
246
247 // Ensure dest is still inside the same root
248 if (!getAllowedRoot(dest, roots)) {
249 return res.status(403).json({ error: 'Access denied.' });
250 }
251
252 try {
253 fs.renameSync(from, dest);
254 } catch (err) {
255 return res.status(500).json({ error: err.message });
256 }
257
258 // Update DB meta key
259 const db = getDb();
260 db.prepare('UPDATE file_meta SET file_path = ? WHERE file_path = ?').run([dest, from]);
261
262 res.json({ ok: true });
263});
264
265// ---------------------------------------------------------------------------
266// POST /api/files/mkdir
267// Body: { dir: <absolute-path>, name: <folder-name> }
268// ---------------------------------------------------------------------------
269router.post('/mkdir', requireAuth, (req, res) => {
270 const { dir, name } = req.body;
271 if (!dir || !name) return res.status(400).json({ error: 'dir and name are required.' });
272
273 if (path.basename(name) !== name) {
274 return res.status(400).json({ error: 'Invalid folder name.' });
275 }
276
277 const roots = effectivePaths();
278 const info = resolveRoot(dir, roots);
279 if (!info || !canWrite(req.user, info.label)) {
280 return res.status(403).json({ error: 'Access denied.' });
281 }
282
283 const newDir = path.join(dir, name);
284 if (!getAllowedRoot(newDir, roots)) {
285 return res.status(403).json({ error: 'Access denied.' });
286 }
287
288 try {
289 fs.mkdirSync(newDir, { recursive: false });
290 } catch (err) {
291 return res.status(500).json({ error: err.message });
292 }
293
294 res.json({ ok: true, path: newDir });
295});
296
297// ---------------------------------------------------------------------------
298// POST /api/files/delete
299// Body: { path: <absolute-path> }
300// ---------------------------------------------------------------------------
301router.post('/delete', requireAuth, (req, res) => {
302 const target = req.body.path;
303 if (!target) return res.status(400).json({ error: 'path is required.' });
304
305 const roots = effectivePaths();
306 const info = resolveRoot(target, roots);
307 if (!info || !canWrite(req.user, info.label)) {
308 return res.status(403).json({ error: 'Access denied.' });
309 }
310
311 // Do not allow deleting a configured root itself
312 if (roots.map(r => path.resolve(r)).includes(path.resolve(target))) {
313 return res.status(403).json({ error: 'Cannot delete a configured root path.' });
314 }
315
316 try {
317 const stat = fs.statSync(target);
318 if (stat.isDirectory()) {
319 fs.rmSync(target, { recursive: true, force: true });
320 } else {
321 fs.unlinkSync(target);
322 }
323 } catch (err) {
324 return res.status(500).json({ error: err.message });
325 }
326
327 // Clean up any DB meta entries under that path
328 const db = getDb();
329 db.prepare("DELETE FROM file_meta WHERE file_path = ? OR file_path LIKE ?")
330 .run([target, target + path.sep + '%']);
331
332 res.json({ ok: true });
333});
334
335module.exports = router;
tests/admin.routes.test.js added +230 −0
@@ -0,0 +1,230 @@
1 'use strict';
2
3 /**
4 * Unit tests for server/routes/admin.js — user CRUD and config management.
5 */
6
7 const express = require('express');
8 const http = require('http');
9 const { once } = require('events');
10 const crypto = require('crypto');
11
12 // ── in-memory DB mock ───────────────────────────────────────────────────────
13 jest.mock('../server/db', () => {
14 const { Database } = require('node-sqlite3-wasm');
15 let db;
16 function getDb() {
17 if (!db) {
18 db = new Database(':memory:');
19 db.exec(`
20 CREATE TABLE IF NOT EXISTS users (
21 id INTEGER PRIMARY KEY AUTOINCREMENT,
22 username TEXT UNIQUE NOT NULL,
23 password_hash TEXT NOT NULL,
24 is_admin INTEGER NOT NULL DEFAULT 0,
25 permissions TEXT NOT NULL DEFAULT '{}'
26 );
27 CREATE TABLE IF NOT EXISTS file_meta (
28 file_path TEXT PRIMARY KEY,
29 uploader TEXT NOT NULL DEFAULT '',
30 downloaders TEXT NOT NULL DEFAULT '[]'
31 );
32 `);
33 }
34 return db;
35 }
36 return { getDb, initDb: getDb };
37 });
38
39 // ── config mock ─────────────────────────────────────────────────────────────
40 const mockConfig = { port: 3000, paths: ['/mnt/data', '/mnt/docs'] };
41 jest.mock('../server/config', () => ({
42 loadConfig: () => ({ ...mockConfig }),
43 saveConfig: (c) => Object.assign(mockConfig, c),
44 getEffectivePaths: (p) => p,
45 getAllowedRoot: () => null,
46 }));
47
48 // ── auth mock — bypass JWT verification ─────────────────────────────────────
49 let mockUser = { id: 1, username: 'admin', isAdmin: true, permissions: {} };
50 jest.mock('../server/auth', () => ({
51 requireAuth: (req, res, next) => { req.user = mockUser; next(); },
52 requireAdmin: (req, res, next) => {
53 if (!req.user.isAdmin) return res.status(403).json({ error: 'Admin required.' });
54 next();
55 },
56 createToken: () => 'mock-token',
57 getClientIp: () => '127.0.0.1',
58 getRegion: () => 'US:CA',
59 }));
60
61 const adminRoutes = require('../server/routes/admin');
62 const { getDb } = require('../server/db');
63 const bcrypt = require('bcrypt');
64
65 jest.setTimeout(30000);
66
67 // ── seed a default admin before anything runs ────────────────────────────────
68 beforeAll(() => {
69 const db = getDb();
70 const hash = bcrypt.hashSync('admin1234', 4); // low rounds for speed
71 db.prepare('INSERT OR IGNORE INTO users (username, password_hash, is_admin, permissions) VALUES (?,?,1,?)')
72 .run(['admin', hash, '{}']);
73 });
74
75 // ── build minimal app ────────────────────────────────────────────────────────
76 let server;
77 let baseUrl;
78
79 beforeAll(async () => {
80 const app = express();
81 app.use(express.json());
82 app.use('/api/admin', adminRoutes);
83 app.use((err, req, res, next) => {
84 res.status(err.status || 500).json({ error: err.message || 'Internal error' });
85 });
86 server = http.createServer(app);
87 server.listen(0);
88 await once(server, 'listening');
89 baseUrl = `http://127.0.0.1:${server.address().port}`;
90 });
91
92 afterAll(() => server.close());
93
94 // ── helpers ──────────────────────────────────────────────────────────────────
95 function req(method, path, body) {
96 const payload = body ? JSON.stringify(body) : undefined;
97 return new Promise((resolve, reject) => {
98 const r = http.request(baseUrl + path, {
99 method,
100 headers: {
101 'Content-Type': 'application/json',
102 ...(payload ? { 'Content-Length': Buffer.byteLength(payload) } : {}),
103 },
104 }, res => {
105 let data = '';
106 res.on('data', d => data += d);
107 res.on('end', () => resolve({ status: res.statusCode, body: JSON.parse(data) }));
108 });
109 r.on('error', reject);
110 if (payload) r.write(payload);
111 r.end();
112 });
113 }
114
115 // ── tests ─────────────────────────────────────────────────────────────────────
116
117 describe('GET /api/admin/users', () => {
118 test('returns the list of users', async () => {
119 const { status, body } = await req('GET', '/api/admin/users');
120 expect(status).toBe(200);
121 expect(Array.isArray(body.users)).toBe(true);
122 expect(body.users[0]).toMatchObject({ username: 'admin', isAdmin: true });
123 });
124 });
125
126 describe('POST /api/admin/users', () => {
127 test('creates a new user', async () => {
128 const { status, body } = await req('POST', '/api/admin/users', {
129 username: 'bob', password: 'bobpass1', isAdmin: false, permissions: {},
130 });
131 expect(status).toBe(201);
132 expect(body.ok).toBe(true);
133 });
134
135 test('rejects duplicate username', async () => {
136 const { status } = await req('POST', '/api/admin/users', {
137 username: 'bob', password: 'bobpass2', isAdmin: false, permissions: {},
138 });
139 expect(status).toBe(409);
140 });
141
142 test('rejects short password', async () => {
143 const { status } = await req('POST', '/api/admin/users', {
144 username: 'carol', password: 'short', isAdmin: false, permissions: {},
145 });
146 expect(status).toBe(400);
147 });
148 });
149
150 describe('PATCH /api/admin/users/:id', () => {
151 let bobId;
152
153 beforeAll(async () => {
154 const { body } = await req('GET', '/api/admin/users');
155 bobId = body.users.find(u => u.username === 'bob').id;
156 });
157
158 test('updates permissions', async () => {
159 const { status, body } = await req('PATCH', `/api/admin/users/${bobId}`, {
160 permissions: { data: { read: true, write: false } },
161 });
162 expect(status).toBe(200);
163 expect(body.ok).toBe(true);
164 });
165
166 test('returns 404 for unknown user', async () => {
167 const { status } = await req('PATCH', '/api/admin/users/99999', { isAdmin: false });
168 expect(status).toBe(404);
169 });
170 });
171
172 describe('DELETE /api/admin/users/:id', () => {
173 let bobId;
174
175 beforeAll(async () => {
176 const { body } = await req('GET', '/api/admin/users');
177 bobId = body.users.find(u => u.username === 'bob').id;
178 });
179
180 test('cannot delete own account', async () => {
181 // mock user id is 1 (admin); bob is a different id — but we test self-delete guard
182 const adminId = mockUser.id;
183 const { status } = await req('DELETE', `/api/admin/users/${adminId}`);
184 expect(status).toBe(400);
185 });
186
187 test('deletes another user', async () => {
188 const { status, body } = await req('DELETE', `/api/admin/users/${bobId}`);
189 expect(status).toBe(200);
190 expect(body.ok).toBe(true);
191 });
192
193 test('cannot delete the last admin', async () => {
194 // Only 'admin' left; try to delete them (switch mockUser to be different)
195 const { body: users } = await req('GET', '/api/admin/users');
196 const adminUser = users.users.find(u => u.username === 'admin');
197 const { status } = await req('DELETE', `/api/admin/users/${adminUser.id}`);
198 // Our mockUser.id === 1 === adminUser.id, so it should fail with "cannot delete own account"
199 expect([400]).toContain(status);
200 });
201 });
202
203 describe('GET /api/admin/config', () => {
204 test('returns port and paths', async () => {
205 const { status, body } = await req('GET', '/api/admin/config');
206 expect(status).toBe(200);
207 expect(body.port).toBe(3000);
208 expect(Array.isArray(body.paths)).toBe(true);
209 });
210 });
211
212 describe('PUT /api/admin/config', () => {
213 test('saves new paths', async () => {
214 const { status, body } = await req('PUT', '/api/admin/config', {
215 paths: ['/mnt/newpath'],
216 });
217 expect(status).toBe(200);
218 expect(body.ok).toBe(true);
219 });
220
221 test('rejects non-array paths', async () => {
222 const { status } = await req('PUT', '/api/admin/config', { paths: 'notanarray' });
223 expect(status).toBe(400);
224 });
225
226 test('rejects invalid port', async () => {
227 const { status } = await req('PUT', '/api/admin/config', { paths: [], port: 99999 });
228 expect(status).toBe(400);
229 });
230 });
@@ -0,0 +1,230 @@
1'use strict';
2
3/**
4 * Unit tests for server/routes/admin.js — user CRUD and config management.
5 */
6
7const express = require('express');
8const http = require('http');
9const { once } = require('events');
10const crypto = require('crypto');
11
12// ── in-memory DB mock ───────────────────────────────────────────────────────
13jest.mock('../server/db', () => {
14 const { Database } = require('node-sqlite3-wasm');
15 let db;
16 function getDb() {
17 if (!db) {
18 db = new Database(':memory:');
19 db.exec(`
20 CREATE TABLE IF NOT EXISTS users (
21 id INTEGER PRIMARY KEY AUTOINCREMENT,
22 username TEXT UNIQUE NOT NULL,
23 password_hash TEXT NOT NULL,
24 is_admin INTEGER NOT NULL DEFAULT 0,
25 permissions TEXT NOT NULL DEFAULT '{}'
26 );
27 CREATE TABLE IF NOT EXISTS file_meta (
28 file_path TEXT PRIMARY KEY,
29 uploader TEXT NOT NULL DEFAULT '',
30 downloaders TEXT NOT NULL DEFAULT '[]'
31 );
32 `);
33 }
34 return db;
35 }
36 return { getDb, initDb: getDb };
37});
38
39// ── config mock ─────────────────────────────────────────────────────────────
40const mockConfig = { port: 3000, paths: ['/mnt/data', '/mnt/docs'] };
41jest.mock('../server/config', () => ({
42 loadConfig: () => ({ ...mockConfig }),
43 saveConfig: (c) => Object.assign(mockConfig, c),
44 getEffectivePaths: (p) => p,
45 getAllowedRoot: () => null,
46}));
47
48// ── auth mock — bypass JWT verification ─────────────────────────────────────
49let mockUser = { id: 1, username: 'admin', isAdmin: true, permissions: {} };
50jest.mock('../server/auth', () => ({
51 requireAuth: (req, res, next) => { req.user = mockUser; next(); },
52 requireAdmin: (req, res, next) => {
53 if (!req.user.isAdmin) return res.status(403).json({ error: 'Admin required.' });
54 next();
55 },
56 createToken: () => 'mock-token',
57 getClientIp: () => '127.0.0.1',
58 getRegion: () => 'US:CA',
59}));
60
61const adminRoutes = require('../server/routes/admin');
62const { getDb } = require('../server/db');
63const bcrypt = require('bcrypt');
64
65jest.setTimeout(30000);
66
67// ── seed a default admin before anything runs ────────────────────────────────
68beforeAll(() => {
69 const db = getDb();
70 const hash = bcrypt.hashSync('admin1234', 4); // low rounds for speed
71 db.prepare('INSERT OR IGNORE INTO users (username, password_hash, is_admin, permissions) VALUES (?,?,1,?)')
72 .run(['admin', hash, '{}']);
73});
74
75// ── build minimal app ────────────────────────────────────────────────────────
76let server;
77let baseUrl;
78
79beforeAll(async () => {
80 const app = express();
81 app.use(express.json());
82 app.use('/api/admin', adminRoutes);
83 app.use((err, req, res, next) => {
84 res.status(err.status || 500).json({ error: err.message || 'Internal error' });
85 });
86 server = http.createServer(app);
87 server.listen(0);
88 await once(server, 'listening');
89 baseUrl = `http://127.0.0.1:${server.address().port}`;
90});
91
92afterAll(() => server.close());
93
94// ── helpers ──────────────────────────────────────────────────────────────────
95function req(method, path, body) {
96 const payload = body ? JSON.stringify(body) : undefined;
97 return new Promise((resolve, reject) => {
98 const r = http.request(baseUrl + path, {
99 method,
100 headers: {
101 'Content-Type': 'application/json',
102 ...(payload ? { 'Content-Length': Buffer.byteLength(payload) } : {}),
103 },
104 }, res => {
105 let data = '';
106 res.on('data', d => data += d);
107 res.on('end', () => resolve({ status: res.statusCode, body: JSON.parse(data) }));
108 });
109 r.on('error', reject);
110 if (payload) r.write(payload);
111 r.end();
112 });
113}
114
115// ── tests ─────────────────────────────────────────────────────────────────────
116
117describe('GET /api/admin/users', () => {
118 test('returns the list of users', async () => {
119 const { status, body } = await req('GET', '/api/admin/users');
120 expect(status).toBe(200);
121 expect(Array.isArray(body.users)).toBe(true);
122 expect(body.users[0]).toMatchObject({ username: 'admin', isAdmin: true });
123 });
124});
125
126describe('POST /api/admin/users', () => {
127 test('creates a new user', async () => {
128 const { status, body } = await req('POST', '/api/admin/users', {
129 username: 'bob', password: 'bobpass1', isAdmin: false, permissions: {},
130 });
131 expect(status).toBe(201);
132 expect(body.ok).toBe(true);
133 });
134
135 test('rejects duplicate username', async () => {
136 const { status } = await req('POST', '/api/admin/users', {
137 username: 'bob', password: 'bobpass2', isAdmin: false, permissions: {},
138 });
139 expect(status).toBe(409);
140 });
141
142 test('rejects short password', async () => {
143 const { status } = await req('POST', '/api/admin/users', {
144 username: 'carol', password: 'short', isAdmin: false, permissions: {},
145 });
146 expect(status).toBe(400);
147 });
148});
149
150describe('PATCH /api/admin/users/:id', () => {
151 let bobId;
152
153 beforeAll(async () => {
154 const { body } = await req('GET', '/api/admin/users');
155 bobId = body.users.find(u => u.username === 'bob').id;
156 });
157
158 test('updates permissions', async () => {
159 const { status, body } = await req('PATCH', `/api/admin/users/${bobId}`, {
160 permissions: { data: { read: true, write: false } },
161 });
162 expect(status).toBe(200);
163 expect(body.ok).toBe(true);
164 });
165
166 test('returns 404 for unknown user', async () => {
167 const { status } = await req('PATCH', '/api/admin/users/99999', { isAdmin: false });
168 expect(status).toBe(404);
169 });
170});
171
172describe('DELETE /api/admin/users/:id', () => {
173 let bobId;
174
175 beforeAll(async () => {
176 const { body } = await req('GET', '/api/admin/users');
177 bobId = body.users.find(u => u.username === 'bob').id;
178 });
179
180 test('cannot delete own account', async () => {
181 // mock user id is 1 (admin); bob is a different id — but we test self-delete guard
182 const adminId = mockUser.id;
183 const { status } = await req('DELETE', `/api/admin/users/${adminId}`);
184 expect(status).toBe(400);
185 });
186
187 test('deletes another user', async () => {
188 const { status, body } = await req('DELETE', `/api/admin/users/${bobId}`);
189 expect(status).toBe(200);
190 expect(body.ok).toBe(true);
191 });
192
193 test('cannot delete the last admin', async () => {
194 // Only 'admin' left; try to delete them (switch mockUser to be different)
195 const { body: users } = await req('GET', '/api/admin/users');
196 const adminUser = users.users.find(u => u.username === 'admin');
197 const { status } = await req('DELETE', `/api/admin/users/${adminUser.id}`);
198 // Our mockUser.id === 1 === adminUser.id, so it should fail with "cannot delete own account"
199 expect([400]).toContain(status);
200 });
201});
202
203describe('GET /api/admin/config', () => {
204 test('returns port and paths', async () => {
205 const { status, body } = await req('GET', '/api/admin/config');
206 expect(status).toBe(200);
207 expect(body.port).toBe(3000);
208 expect(Array.isArray(body.paths)).toBe(true);
209 });
210});
211
212describe('PUT /api/admin/config', () => {
213 test('saves new paths', async () => {
214 const { status, body } = await req('PUT', '/api/admin/config', {
215 paths: ['/mnt/newpath'],
216 });
217 expect(status).toBe(200);
218 expect(body.ok).toBe(true);
219 });
220
221 test('rejects non-array paths', async () => {
222 const { status } = await req('PUT', '/api/admin/config', { paths: 'notanarray' });
223 expect(status).toBe(400);
224 });
225
226 test('rejects invalid port', async () => {
227 const { status } = await req('PUT', '/api/admin/config', { paths: [], port: 99999 });
228 expect(status).toBe(400);
229 });
230});
tests/auth.routes.test.js added +239 −0
@@ -0,0 +1,239 @@
1 'use strict';
2
3 /**
4 * Integration tests for the auth routes.
5 * Spins up an in-memory Express app with a fresh in-memory SQLite database.
6 */
7
8 const express = require('express');
9 const { once } = require('events');
10 const http = require('http');
11 const crypto = require('crypto');
12
13 // ── patch DB to use in-memory database before requiring routes ──────────────
14 jest.mock('../server/db', () => {
15 const { Database } = require('node-sqlite3-wasm');
16 let db;
17 function getDb() {
18 if (!db) {
19 db = new Database(':memory:');
20 db.exec(`
21 CREATE TABLE IF NOT EXISTS users (
22 id INTEGER PRIMARY KEY AUTOINCREMENT,
23 username TEXT UNIQUE NOT NULL,
24 password_hash TEXT NOT NULL,
25 is_admin INTEGER NOT NULL DEFAULT 0,
26 permissions TEXT NOT NULL DEFAULT '{}'
27 );
28 CREATE TABLE IF NOT EXISTS file_meta (
29 file_path TEXT PRIMARY KEY,
30 uploader TEXT NOT NULL DEFAULT '',
31 downloaders TEXT NOT NULL DEFAULT '[]'
32 );
33 `);
34 }
35 return db;
36 }
37 function initDb() { getDb(); }
38 return { getDb, initDb };
39 });
40
41 const { ensureServerKeys, getServerPublicKeyJwk, hybridEncryptForClient, hybridDecrypt } = require('../server/crypto');
42 const authRoutes = require('../server/routes/auth');
43
44 jest.setTimeout(30000);
45
46 // ── build minimal app ──────────────────────────────────────────────────────
47
48 let server;
49 let baseUrl;
50
51 beforeAll(async () => {
52 ensureServerKeys();
53 const app = express();
54 app.use(express.json());
55 app.use('/api/auth', authRoutes);
56 app.use((err, req, res, next) => {
57 res.status(err.status || 500).json({ error: err.message || 'Internal error' });
58 });
59 server = http.createServer(app);
60 server.listen(0);
61 await once(server, 'listening');
62 const port = server.address().port;
63 baseUrl = `http://127.0.0.1:${port}`;
64 });
65
66 afterAll(() => server.close());
67
68 // ── helpers ────────────────────────────────────────────────────────────────
69
70 function get(path) {
71 return new Promise((resolve, reject) => {
72 http.get(baseUrl + path, res => {
73 let body = '';
74 res.on('data', d => body += d);
75 res.on('end', () => resolve({ status: res.statusCode, body: JSON.parse(body) }));
76 }).on('error', reject);
77 });
78 }
79
80 function post(path, data) {
81 const payload = JSON.stringify(data);
82 return new Promise((resolve, reject) => {
83 const req = http.request(baseUrl + path, {
84 method: 'POST',
85 headers: { 'Content-Type': 'application/json', 'Content-Length': Buffer.byteLength(payload) },
86 }, res => {
87 let body = '';
88 res.on('data', d => body += d);
89 res.on('end', () => resolve({ status: res.statusCode, body: JSON.parse(body) }));
90 });
91 req.on('error', reject);
92 req.write(payload);
93 req.end();
94 });
95 }
96
97 /** Simulate the client-side hybrid encrypt targeting the server public key. */
98 function clientEncrypt(obj) {
99 const jwk = getServerPublicKeyJwk();
100 const pubKey = crypto.createPublicKey({ key: jwk, format: 'jwk' });
101 const plain = JSON.stringify(obj);
102 const aesKey = crypto.randomBytes(32);
103 const iv = crypto.randomBytes(12);
104 const cipher = crypto.createCipheriv('aes-256-gcm', aesKey, iv);
105 const ct = Buffer.concat([cipher.update(plain, 'utf8'), cipher.final()]);
106 const tag = cipher.getAuthTag();
107 const ek = crypto.publicEncrypt(
108 { key: pubKey, padding: crypto.constants.RSA_PKCS1_OAEP_PADDING, oaepHash: 'sha256' },
109 aesKey,
110 );
111 return {
112 encryptedKey: ek.toString('base64'),
113 iv: iv.toString('base64'),
114 ciphertext: ct.toString('base64'),
115 tag: tag.toString('base64'),
116 };
117 }
118
119 /** Generate a throwaway RSA key pair and return { privateKey, publicKeyJwk } */
120 function makeClientKeyPair() {
121 const { privateKey, publicKey } = crypto.generateKeyPairSync('rsa', {
122 modulusLength: 2048,
123 publicKeyEncoding: { type: 'spki', format: 'pem' },
124 privateKeyEncoding: { type: 'pkcs8', format: 'pem' },
125 });
126 const publicKeyJwk = crypto.createPublicKey(publicKey).export({ format: 'jwk' });
127 return { privateKey, publicKeyJwk };
128 }
129
130 /** Decrypt the token the server sends back. */
131 function clientDecrypt(payload, privateKey) {
132 const ek = Buffer.from(payload.encryptedKey, 'base64');
133 const iv = Buffer.from(payload.iv, 'base64');
134 const ct = Buffer.from(payload.ciphertext, 'base64');
135 const tg = Buffer.from(payload.tag, 'base64');
136 const rawAes = crypto.privateDecrypt(
137 { key: privateKey, padding: crypto.constants.RSA_PKCS1_OAEP_PADDING, oaepHash: 'sha256' },
138 ek,
139 );
140 const decipher = crypto.createDecipheriv('aes-256-gcm', rawAes, iv);
141 decipher.setAuthTag(tg);
142 return Buffer.concat([decipher.update(ct), decipher.final()]).toString('utf8');
143 }
144
145 // ── tests ──────────────────────────────────────────────────────────────────
146
147 describe('GET /api/auth/server-key', () => {
148 test('returns a JWK public key', async () => {
149 const { status, body } = await get('/api/auth/server-key');
150 expect(status).toBe(200);
151 expect(body.publicKey).toMatchObject({ kty: 'RSA', n: expect.any(String) });
152 });
153 });
154
155 describe('GET /api/auth/setup-needed', () => {
156 test('returns needed=true when no users exist', async () => {
157 const { status, body } = await get('/api/auth/setup-needed');
158 expect(status).toBe(200);
159 expect(body.needed).toBe(true);
160 });
161 });
162
163 describe('POST /api/auth/setup', () => {
164 let kp;
165
166 beforeAll(() => { kp = makeClientKeyPair(); });
167
168 test('rejects weak password', async () => {
169 const encrypted = clientEncrypt({ username: 'admin', password: 'short' });
170 const { status, body } = await post('/api/auth/setup', {
171 encrypted, clientPublicKey: kp.publicKeyJwk, fingerprint: 'test',
172 });
173 expect(status).toBe(400);
174 });
175
176 test('creates admin and returns encrypted token', async () => {
177 const encrypted = clientEncrypt({ username: 'admin', password: 'adminpass1' });
178 const { status, body } = await post('/api/auth/setup', {
179 encrypted, clientPublicKey: kp.publicKeyJwk, fingerprint: 'test',
180 });
181 expect(status).toBe(200);
182 expect(body.encrypted).toMatchObject({
183 encryptedKey: expect.any(String),
184 iv: expect.any(String),
185 ciphertext: expect.any(String),
186 tag: expect.any(String),
187 });
188
189 // Token should be a valid JWT string
190 const token = clientDecrypt(body.encrypted, kp.privateKey);
191 expect(token.split('.').length).toBe(3);
192 });
193
194 test('setup-needed is now false', async () => {
195 const { body } = await get('/api/auth/setup-needed');
196 expect(body.needed).toBe(false);
197 });
198
199 test('cannot run setup again once a user exists', async () => {
200 const kp2 = makeClientKeyPair();
201 const encrypted = clientEncrypt({ username: 'hacker', password: 'hackpass1' });
202 const { status } = await post('/api/auth/setup', {
203 encrypted, clientPublicKey: kp2.publicKeyJwk, fingerprint: 'test',
204 });
205 expect(status).toBe(403);
206 });
207 });
208
209 describe('POST /api/auth/login', () => {
210 let kp;
211 beforeAll(() => { kp = makeClientKeyPair(); });
212
213 test('rejects wrong password', async () => {
214 const encrypted = clientEncrypt({ username: 'admin', password: 'wrongpass' });
215 const { status } = await post('/api/auth/login', {
216 encrypted, clientPublicKey: kp.publicKeyJwk, fingerprint: 'test',
217 });
218 expect(status).toBe(401);
219 });
220
221 test('returns encrypted token on correct credentials', async () => {
222 const encrypted = clientEncrypt({ username: 'admin', password: 'adminpass1' });
223 const { status, body } = await post('/api/auth/login', {
224 encrypted, clientPublicKey: kp.publicKeyJwk, fingerprint: 'test',
225 });
226 expect(status).toBe(200);
227 const token = clientDecrypt(body.encrypted, kp.privateKey);
228 expect(token.split('.').length).toBe(3);
229 });
230
231 test('rejects invalid encrypted payload', async () => {
232 const { status } = await post('/api/auth/login', {
233 encrypted: { encryptedKey: 'bad', iv: 'bad', ciphertext: 'bad', tag: 'bad' },
234 clientPublicKey: kp.publicKeyJwk,
235 fingerprint: 'test',
236 });
237 expect(status).toBe(400);
238 });
239 });
@@ -0,0 +1,239 @@
1'use strict';
2
3/**
4 * Integration tests for the auth routes.
5 * Spins up an in-memory Express app with a fresh in-memory SQLite database.
6 */
7
8const express = require('express');
9const { once } = require('events');
10const http = require('http');
11const crypto = require('crypto');
12
13// ── patch DB to use in-memory database before requiring routes ──────────────
14jest.mock('../server/db', () => {
15 const { Database } = require('node-sqlite3-wasm');
16 let db;
17 function getDb() {
18 if (!db) {
19 db = new Database(':memory:');
20 db.exec(`
21 CREATE TABLE IF NOT EXISTS users (
22 id INTEGER PRIMARY KEY AUTOINCREMENT,
23 username TEXT UNIQUE NOT NULL,
24 password_hash TEXT NOT NULL,
25 is_admin INTEGER NOT NULL DEFAULT 0,
26 permissions TEXT NOT NULL DEFAULT '{}'
27 );
28 CREATE TABLE IF NOT EXISTS file_meta (
29 file_path TEXT PRIMARY KEY,
30 uploader TEXT NOT NULL DEFAULT '',
31 downloaders TEXT NOT NULL DEFAULT '[]'
32 );
33 `);
34 }
35 return db;
36 }
37 function initDb() { getDb(); }
38 return { getDb, initDb };
39});
40
41const { ensureServerKeys, getServerPublicKeyJwk, hybridEncryptForClient, hybridDecrypt } = require('../server/crypto');
42const authRoutes = require('../server/routes/auth');
43
44jest.setTimeout(30000);
45
46// ── build minimal app ──────────────────────────────────────────────────────
47
48let server;
49let baseUrl;
50
51beforeAll(async () => {
52 ensureServerKeys();
53 const app = express();
54 app.use(express.json());
55 app.use('/api/auth', authRoutes);
56 app.use((err, req, res, next) => {
57 res.status(err.status || 500).json({ error: err.message || 'Internal error' });
58 });
59 server = http.createServer(app);
60 server.listen(0);
61 await once(server, 'listening');
62 const port = server.address().port;
63 baseUrl = `http://127.0.0.1:${port}`;
64});
65
66afterAll(() => server.close());
67
68// ── helpers ────────────────────────────────────────────────────────────────
69
70function get(path) {
71 return new Promise((resolve, reject) => {
72 http.get(baseUrl + path, res => {
73 let body = '';
74 res.on('data', d => body += d);
75 res.on('end', () => resolve({ status: res.statusCode, body: JSON.parse(body) }));
76 }).on('error', reject);
77 });
78}
79
80function post(path, data) {
81 const payload = JSON.stringify(data);
82 return new Promise((resolve, reject) => {
83 const req = http.request(baseUrl + path, {
84 method: 'POST',
85 headers: { 'Content-Type': 'application/json', 'Content-Length': Buffer.byteLength(payload) },
86 }, res => {
87 let body = '';
88 res.on('data', d => body += d);
89 res.on('end', () => resolve({ status: res.statusCode, body: JSON.parse(body) }));
90 });
91 req.on('error', reject);
92 req.write(payload);
93 req.end();
94 });
95}
96
97/** Simulate the client-side hybrid encrypt targeting the server public key. */
98function clientEncrypt(obj) {
99 const jwk = getServerPublicKeyJwk();
100 const pubKey = crypto.createPublicKey({ key: jwk, format: 'jwk' });
101 const plain = JSON.stringify(obj);
102 const aesKey = crypto.randomBytes(32);
103 const iv = crypto.randomBytes(12);
104 const cipher = crypto.createCipheriv('aes-256-gcm', aesKey, iv);
105 const ct = Buffer.concat([cipher.update(plain, 'utf8'), cipher.final()]);
106 const tag = cipher.getAuthTag();
107 const ek = crypto.publicEncrypt(
108 { key: pubKey, padding: crypto.constants.RSA_PKCS1_OAEP_PADDING, oaepHash: 'sha256' },
109 aesKey,
110 );
111 return {
112 encryptedKey: ek.toString('base64'),
113 iv: iv.toString('base64'),
114 ciphertext: ct.toString('base64'),
115 tag: tag.toString('base64'),
116 };
117}
118
119/** Generate a throwaway RSA key pair and return { privateKey, publicKeyJwk } */
120function makeClientKeyPair() {
121 const { privateKey, publicKey } = crypto.generateKeyPairSync('rsa', {
122 modulusLength: 2048,
123 publicKeyEncoding: { type: 'spki', format: 'pem' },
124 privateKeyEncoding: { type: 'pkcs8', format: 'pem' },
125 });
126 const publicKeyJwk = crypto.createPublicKey(publicKey).export({ format: 'jwk' });
127 return { privateKey, publicKeyJwk };
128}
129
130/** Decrypt the token the server sends back. */
131function clientDecrypt(payload, privateKey) {
132 const ek = Buffer.from(payload.encryptedKey, 'base64');
133 const iv = Buffer.from(payload.iv, 'base64');
134 const ct = Buffer.from(payload.ciphertext, 'base64');
135 const tg = Buffer.from(payload.tag, 'base64');
136 const rawAes = crypto.privateDecrypt(
137 { key: privateKey, padding: crypto.constants.RSA_PKCS1_OAEP_PADDING, oaepHash: 'sha256' },
138 ek,
139 );
140 const decipher = crypto.createDecipheriv('aes-256-gcm', rawAes, iv);
141 decipher.setAuthTag(tg);
142 return Buffer.concat([decipher.update(ct), decipher.final()]).toString('utf8');
143}
144
145// ── tests ──────────────────────────────────────────────────────────────────
146
147describe('GET /api/auth/server-key', () => {
148 test('returns a JWK public key', async () => {
149 const { status, body } = await get('/api/auth/server-key');
150 expect(status).toBe(200);
151 expect(body.publicKey).toMatchObject({ kty: 'RSA', n: expect.any(String) });
152 });
153});
154
155describe('GET /api/auth/setup-needed', () => {
156 test('returns needed=true when no users exist', async () => {
157 const { status, body } = await get('/api/auth/setup-needed');
158 expect(status).toBe(200);
159 expect(body.needed).toBe(true);
160 });
161});
162
163describe('POST /api/auth/setup', () => {
164 let kp;
165
166 beforeAll(() => { kp = makeClientKeyPair(); });
167
168 test('rejects weak password', async () => {
169 const encrypted = clientEncrypt({ username: 'admin', password: 'short' });
170 const { status, body } = await post('/api/auth/setup', {
171 encrypted, clientPublicKey: kp.publicKeyJwk, fingerprint: 'test',
172 });
173 expect(status).toBe(400);
174 });
175
176 test('creates admin and returns encrypted token', async () => {
177 const encrypted = clientEncrypt({ username: 'admin', password: 'adminpass1' });
178 const { status, body } = await post('/api/auth/setup', {
179 encrypted, clientPublicKey: kp.publicKeyJwk, fingerprint: 'test',
180 });
181 expect(status).toBe(200);
182 expect(body.encrypted).toMatchObject({
183 encryptedKey: expect.any(String),
184 iv: expect.any(String),
185 ciphertext: expect.any(String),
186 tag: expect.any(String),
187 });
188
189 // Token should be a valid JWT string
190 const token = clientDecrypt(body.encrypted, kp.privateKey);
191 expect(token.split('.').length).toBe(3);
192 });
193
194 test('setup-needed is now false', async () => {
195 const { body } = await get('/api/auth/setup-needed');
196 expect(body.needed).toBe(false);
197 });
198
199 test('cannot run setup again once a user exists', async () => {
200 const kp2 = makeClientKeyPair();
201 const encrypted = clientEncrypt({ username: 'hacker', password: 'hackpass1' });
202 const { status } = await post('/api/auth/setup', {
203 encrypted, clientPublicKey: kp2.publicKeyJwk, fingerprint: 'test',
204 });
205 expect(status).toBe(403);
206 });
207});
208
209describe('POST /api/auth/login', () => {
210 let kp;
211 beforeAll(() => { kp = makeClientKeyPair(); });
212
213 test('rejects wrong password', async () => {
214 const encrypted = clientEncrypt({ username: 'admin', password: 'wrongpass' });
215 const { status } = await post('/api/auth/login', {
216 encrypted, clientPublicKey: kp.publicKeyJwk, fingerprint: 'test',
217 });
218 expect(status).toBe(401);
219 });
220
221 test('returns encrypted token on correct credentials', async () => {
222 const encrypted = clientEncrypt({ username: 'admin', password: 'adminpass1' });
223 const { status, body } = await post('/api/auth/login', {
224 encrypted, clientPublicKey: kp.publicKeyJwk, fingerprint: 'test',
225 });
226 expect(status).toBe(200);
227 const token = clientDecrypt(body.encrypted, kp.privateKey);
228 expect(token.split('.').length).toBe(3);
229 });
230
231 test('rejects invalid encrypted payload', async () => {
232 const { status } = await post('/api/auth/login', {
233 encrypted: { encryptedKey: 'bad', iv: 'bad', ciphertext: 'bad', tag: 'bad' },
234 clientPublicKey: kp.publicKeyJwk,
235 fingerprint: 'test',
236 });
237 expect(status).toBe(400);
238 });
239});
tests/config.test.js added +93 −0
@@ -0,0 +1,93 @@
1 'use strict';
2
3 /**
4 * Unit tests for server/config.js
5 * Tests path de-duplication and child-path suppression.
6 */
7
8 const path = require('path');
9 const { getEffectivePaths, getAllowedRoot } = require('../server/config');
10
11 // Normalise separator so tests pass on both Windows and Linux
12 const sep = path.sep;
13 const join = (...parts) => parts.join(sep);
14
15 describe('getEffectivePaths', () => {
16 test('returns empty array for empty input', () => {
17 expect(getEffectivePaths([])).toEqual([]);
18 });
19
20 test('returns empty array for non-array input', () => {
21 expect(getEffectivePaths(null)).toEqual([]);
22 expect(getEffectivePaths(undefined)).toEqual([]);
23 });
24
25 test('de-duplicates identical paths', () => {
26 const dir = path.resolve('/mnt/data');
27 const result = getEffectivePaths(['/mnt/data', '/mnt/data']);
28 expect(result).toHaveLength(1);
29 expect(result[0]).toBe(dir);
30 });
31
32 test('drops child paths when parent is also configured', () => {
33 const parent = '/mnt/data';
34 const child = '/mnt/data/photos';
35 const result = getEffectivePaths([parent, child]);
36 // child should be dropped
37 expect(result).toHaveLength(1);
38 expect(result[0]).toBe(path.resolve(parent));
39 });
40
41 test('keeps sibling paths that share a common prefix but are not children', () => {
42 const a = '/mnt/data';
43 const b = '/mnt/documents';
44 const result = getEffectivePaths([a, b]);
45 expect(result).toHaveLength(2);
46 });
47
48 test('handles deeply nested child suppression', () => {
49 const root = '/mnt/storage';
50 const deep = '/mnt/storage/a/b/c/d';
51 const result = getEffectivePaths([root, deep]);
52 expect(result).toHaveLength(1);
53 expect(result[0]).toBe(path.resolve(root));
54 });
55
56 test('keeps multiple independent roots', () => {
57 const paths = ['/mnt/ssd', '/home/user/shared', '/tmp/uploads'];
58 const result = getEffectivePaths(paths);
59 expect(result).toHaveLength(3);
60 });
61 });
62
63 describe('getAllowedRoot', () => {
64 const roots = ['/mnt/data', '/mnt/docs'];
65
66 test('returns the root when file is directly inside it', () => {
67 const file = path.join('/mnt/data', 'file.txt');
68 const result = getAllowedRoot(file, roots);
69 expect(result).toBe(path.resolve('/mnt/data'));
70 });
71
72 test('returns null when file is not inside any root', () => {
73 const result = getAllowedRoot('/etc/passwd', roots);
74 expect(result).toBeNull();
75 });
76
77 test('path traversal attempt returns null', () => {
78 const traversal = path.join('/mnt/data', '..', '..', 'etc', 'passwd');
79 const result = getAllowedRoot(traversal, roots);
80 expect(result).toBeNull();
81 });
82
83 test('returns root when path equals root exactly', () => {
84 const result = getAllowedRoot('/mnt/docs', roots);
85 expect(result).toBe(path.resolve('/mnt/docs'));
86 });
87
88 test('returns correct root for nested file', () => {
89 const file = path.join('/mnt/docs', 'sub', 'report.pdf');
90 const result = getAllowedRoot(file, roots);
91 expect(result).toBe(path.resolve('/mnt/docs'));
92 });
93 });
@@ -0,0 +1,93 @@
1'use strict';
2
3/**
4 * Unit tests for server/config.js
5 * Tests path de-duplication and child-path suppression.
6 */
7
8const path = require('path');
9const { getEffectivePaths, getAllowedRoot } = require('../server/config');
10
11// Normalise separator so tests pass on both Windows and Linux
12const sep = path.sep;
13const join = (...parts) => parts.join(sep);
14
15describe('getEffectivePaths', () => {
16 test('returns empty array for empty input', () => {
17 expect(getEffectivePaths([])).toEqual([]);
18 });
19
20 test('returns empty array for non-array input', () => {
21 expect(getEffectivePaths(null)).toEqual([]);
22 expect(getEffectivePaths(undefined)).toEqual([]);
23 });
24
25 test('de-duplicates identical paths', () => {
26 const dir = path.resolve('/mnt/data');
27 const result = getEffectivePaths(['/mnt/data', '/mnt/data']);
28 expect(result).toHaveLength(1);
29 expect(result[0]).toBe(dir);
30 });
31
32 test('drops child paths when parent is also configured', () => {
33 const parent = '/mnt/data';
34 const child = '/mnt/data/photos';
35 const result = getEffectivePaths([parent, child]);
36 // child should be dropped
37 expect(result).toHaveLength(1);
38 expect(result[0]).toBe(path.resolve(parent));
39 });
40
41 test('keeps sibling paths that share a common prefix but are not children', () => {
42 const a = '/mnt/data';
43 const b = '/mnt/documents';
44 const result = getEffectivePaths([a, b]);
45 expect(result).toHaveLength(2);
46 });
47
48 test('handles deeply nested child suppression', () => {
49 const root = '/mnt/storage';
50 const deep = '/mnt/storage/a/b/c/d';
51 const result = getEffectivePaths([root, deep]);
52 expect(result).toHaveLength(1);
53 expect(result[0]).toBe(path.resolve(root));
54 });
55
56 test('keeps multiple independent roots', () => {
57 const paths = ['/mnt/ssd', '/home/user/shared', '/tmp/uploads'];
58 const result = getEffectivePaths(paths);
59 expect(result).toHaveLength(3);
60 });
61});
62
63describe('getAllowedRoot', () => {
64 const roots = ['/mnt/data', '/mnt/docs'];
65
66 test('returns the root when file is directly inside it', () => {
67 const file = path.join('/mnt/data', 'file.txt');
68 const result = getAllowedRoot(file, roots);
69 expect(result).toBe(path.resolve('/mnt/data'));
70 });
71
72 test('returns null when file is not inside any root', () => {
73 const result = getAllowedRoot('/etc/passwd', roots);
74 expect(result).toBeNull();
75 });
76
77 test('path traversal attempt returns null', () => {
78 const traversal = path.join('/mnt/data', '..', '..', 'etc', 'passwd');
79 const result = getAllowedRoot(traversal, roots);
80 expect(result).toBeNull();
81 });
82
83 test('returns root when path equals root exactly', () => {
84 const result = getAllowedRoot('/mnt/docs', roots);
85 expect(result).toBe(path.resolve('/mnt/docs'));
86 });
87
88 test('returns correct root for nested file', () => {
89 const file = path.join('/mnt/docs', 'sub', 'report.pdf');
90 const result = getAllowedRoot(file, roots);
91 expect(result).toBe(path.resolve('/mnt/docs'));
92 });
93});
tests/crypto.test.js added +103 −0
@@ -0,0 +1,103 @@
1 'use strict';
2
3 /**
4 * Unit tests for server/crypto.js
5 * Verifies the hybrid encrypt/decrypt round-trip.
6 */
7
8 const { ensureServerKeys, hybridDecrypt, hybridEncryptForClient, getServerPublicKeyJwk } = require('../server/crypto');
9
10 beforeAll(() => {
11 ensureServerKeys();
12 });
13
14 describe('hybrid encrypt / decrypt round-trip', () => {
15 test('encrypting and decrypting a string returns the original', () => {
16 const plaintext = JSON.stringify({ username: 'alice', password: 'hunter22' });
17
18 // Get the server public key and create a temporary Node.js key to simulate
19 // what the client would do — encrypt with server pub, decrypt with server priv
20 const crypto = require('crypto');
21 const jwk = getServerPublicKeyJwk();
22 const pubKey = crypto.createPublicKey({ key: jwk, format: 'jwk' });
23
24 // Simulate client-side hybrid encrypt targeting the server
25 const aesKey = crypto.randomBytes(32);
26 const iv = crypto.randomBytes(12);
27 const cipher = crypto.createCipheriv('aes-256-gcm', aesKey, iv);
28 const ciphertext = Buffer.concat([cipher.update(plaintext, 'utf8'), cipher.final()]);
29 const tag = cipher.getAuthTag();
30 const encryptedKey = crypto.publicEncrypt(
31 { key: pubKey, padding: crypto.constants.RSA_PKCS1_OAEP_PADDING, oaepHash: 'sha256' },
32 aesKey,
33 );
34
35 const payload = {
36 encryptedKey: encryptedKey.toString('base64'),
37 iv: iv.toString('base64'),
38 ciphertext: ciphertext.toString('base64'),
39 tag: tag.toString('base64'),
40 };
41
42 const result = hybridDecrypt(payload);
43 expect(result).toBe(plaintext);
44 });
45
46 test('hybridEncryptForClient round-trip using Node crypto', () => {
47 const crypto = require('crypto');
48 const plaintext = 'test-token-value';
49
50 // Generate a throwaway RSA key pair to act as the "client"
51 const { privateKey, publicKey } = crypto.generateKeyPairSync('rsa', {
52 modulusLength: 2048,
53 publicKeyEncoding: { type: 'spki', format: 'pem' },
54 privateKeyEncoding: { type: 'pkcs8', format: 'pem' },
55 });
56
57 const clientPubJwk = crypto.createPublicKey(publicKey).export({ format: 'jwk' });
58 const payload = hybridEncryptForClient(plaintext, clientPubJwk);
59
60 // Decrypt using the client private key
61 const encryptedKey = Buffer.from(payload.encryptedKey, 'base64');
62 const iv = Buffer.from(payload.iv, 'base64');
63 const ciphertext = Buffer.from(payload.ciphertext, 'base64');
64 const tag = Buffer.from(payload.tag, 'base64');
65
66 const rawAes = crypto.privateDecrypt(
67 { key: privateKey, padding: crypto.constants.RSA_PKCS1_OAEP_PADDING, oaepHash: 'sha256' },
68 encryptedKey,
69 );
70 const decipher = crypto.createDecipheriv('aes-256-gcm', rawAes, iv);
71 decipher.setAuthTag(tag);
72 const decrypted = Buffer.concat([decipher.update(ciphertext), decipher.final()]).toString('utf8');
73
74 expect(decrypted).toBe(plaintext);
75 });
76
77 test('hybridDecrypt throws on tampered ciphertext', () => {
78 const crypto = require('crypto');
79 const jwk = getServerPublicKeyJwk();
80 const pubKey = crypto.createPublicKey({ key: jwk, format: 'jwk' });
81 const aesKey = crypto.randomBytes(32);
82 const iv = crypto.randomBytes(12);
83 const cipher = crypto.createCipheriv('aes-256-gcm', aesKey, iv);
84 const ct = Buffer.concat([cipher.update('hello', 'utf8'), cipher.final()]);
85 const tag = cipher.getAuthTag();
86 const ek = crypto.publicEncrypt(
87 { key: pubKey, padding: crypto.constants.RSA_PKCS1_OAEP_PADDING, oaepHash: 'sha256' },
88 aesKey,
89 );
90
91 // Flip a byte in the ciphertext
92 ct[0] ^= 0xff;
93
94 const payload = {
95 encryptedKey: ek.toString('base64'),
96 iv: iv.toString('base64'),
97 ciphertext: ct.toString('base64'),
98 tag: tag.toString('base64'),
99 };
100
101 expect(() => hybridDecrypt(payload)).toThrow();
102 });
103 });
@@ -0,0 +1,103 @@
1'use strict';
2
3/**
4 * Unit tests for server/crypto.js
5 * Verifies the hybrid encrypt/decrypt round-trip.
6 */
7
8const { ensureServerKeys, hybridDecrypt, hybridEncryptForClient, getServerPublicKeyJwk } = require('../server/crypto');
9
10beforeAll(() => {
11 ensureServerKeys();
12});
13
14describe('hybrid encrypt / decrypt round-trip', () => {
15 test('encrypting and decrypting a string returns the original', () => {
16 const plaintext = JSON.stringify({ username: 'alice', password: 'hunter22' });
17
18 // Get the server public key and create a temporary Node.js key to simulate
19 // what the client would do — encrypt with server pub, decrypt with server priv
20 const crypto = require('crypto');
21 const jwk = getServerPublicKeyJwk();
22 const pubKey = crypto.createPublicKey({ key: jwk, format: 'jwk' });
23
24 // Simulate client-side hybrid encrypt targeting the server
25 const aesKey = crypto.randomBytes(32);
26 const iv = crypto.randomBytes(12);
27 const cipher = crypto.createCipheriv('aes-256-gcm', aesKey, iv);
28 const ciphertext = Buffer.concat([cipher.update(plaintext, 'utf8'), cipher.final()]);
29 const tag = cipher.getAuthTag();
30 const encryptedKey = crypto.publicEncrypt(
31 { key: pubKey, padding: crypto.constants.RSA_PKCS1_OAEP_PADDING, oaepHash: 'sha256' },
32 aesKey,
33 );
34
35 const payload = {
36 encryptedKey: encryptedKey.toString('base64'),
37 iv: iv.toString('base64'),
38 ciphertext: ciphertext.toString('base64'),
39 tag: tag.toString('base64'),
40 };
41
42 const result = hybridDecrypt(payload);
43 expect(result).toBe(plaintext);
44 });
45
46 test('hybridEncryptForClient round-trip using Node crypto', () => {
47 const crypto = require('crypto');
48 const plaintext = 'test-token-value';
49
50 // Generate a throwaway RSA key pair to act as the "client"
51 const { privateKey, publicKey } = crypto.generateKeyPairSync('rsa', {
52 modulusLength: 2048,
53 publicKeyEncoding: { type: 'spki', format: 'pem' },
54 privateKeyEncoding: { type: 'pkcs8', format: 'pem' },
55 });
56
57 const clientPubJwk = crypto.createPublicKey(publicKey).export({ format: 'jwk' });
58 const payload = hybridEncryptForClient(plaintext, clientPubJwk);
59
60 // Decrypt using the client private key
61 const encryptedKey = Buffer.from(payload.encryptedKey, 'base64');
62 const iv = Buffer.from(payload.iv, 'base64');
63 const ciphertext = Buffer.from(payload.ciphertext, 'base64');
64 const tag = Buffer.from(payload.tag, 'base64');
65
66 const rawAes = crypto.privateDecrypt(
67 { key: privateKey, padding: crypto.constants.RSA_PKCS1_OAEP_PADDING, oaepHash: 'sha256' },
68 encryptedKey,
69 );
70 const decipher = crypto.createDecipheriv('aes-256-gcm', rawAes, iv);
71 decipher.setAuthTag(tag);
72 const decrypted = Buffer.concat([decipher.update(ciphertext), decipher.final()]).toString('utf8');
73
74 expect(decrypted).toBe(plaintext);
75 });
76
77 test('hybridDecrypt throws on tampered ciphertext', () => {
78 const crypto = require('crypto');
79 const jwk = getServerPublicKeyJwk();
80 const pubKey = crypto.createPublicKey({ key: jwk, format: 'jwk' });
81 const aesKey = crypto.randomBytes(32);
82 const iv = crypto.randomBytes(12);
83 const cipher = crypto.createCipheriv('aes-256-gcm', aesKey, iv);
84 const ct = Buffer.concat([cipher.update('hello', 'utf8'), cipher.final()]);
85 const tag = cipher.getAuthTag();
86 const ek = crypto.publicEncrypt(
87 { key: pubKey, padding: crypto.constants.RSA_PKCS1_OAEP_PADDING, oaepHash: 'sha256' },
88 aesKey,
89 );
90
91 // Flip a byte in the ciphertext
92 ct[0] ^= 0xff;
93
94 const payload = {
95 encryptedKey: ek.toString('base64'),
96 iv: iv.toString('base64'),
97 ciphertext: ct.toString('base64'),
98 tag: tag.toString('base64'),
99 };
100
101 expect(() => hybridDecrypt(payload)).toThrow();
102 });
103});