From a4c1181894aa092ac413e2703af464fbdaf3ef8d Mon Sep 17 00:00:00 2001 From: Daelon Suzuka Date: Sun, 12 Nov 2023 10:46:44 -0500 Subject: [PATCH] Rewrite debugger for Godot 4 support + improved maintainability (#452) * Significantly rework the debugger to add Godot 4 support. * Simplify debugger internal message handling and shorten code paths, to enable easier maintenance in the future. * Streamline debugger configs: almost all fields are now optional, and the debugger should work out-of-the-box in a wider set of situations. * Add guardrails, error handling, and input prompts to help guide the user to correct usage/configuration. * Add the following commands: * godotTools.debugger.debugCurrentFile * godotTools.debugger.debugPinnedFile * godotTools.debugger.pinFile * godotTools.debugger.unpinFile * godotTools.debugger.openPinnedFile --------- Co-authored-by: RedMser Co-authored-by: Zachary Gardner <30502195+ZachIsAGardner@users.noreply.github.com> --- .eslintrc.json | 55 + README.md | 46 +- package-lock.json | 5373 ++++++++--------- package.json | 353 +- src/debugger/commands/command.ts | 7 - src/debugger/commands/command_parser.ts | 170 - .../commands/commands/command_debug_enter.ts | 9 - .../commands/commands/command_debug_exit.ts | 8 - .../command_message_inspect_object.ts | 18 - .../commands/command_message_scene_tree.ts | 25 - .../commands/commands/command_null.ts | 5 - .../commands/commands/command_output.ts | 9 - .../commands/commands/command_stack_dump.ts | 17 - .../commands/command_stack_frame_vars.ts | 31 - src/debugger/debug_adapter.ts | 3 - src/debugger/debug_runtime.ts | 156 +- src/debugger/debugger.ts | 318 + src/debugger/debugger_context.ts | 223 - src/debugger/{ => godot3}/debug_session.ts | 558 +- src/debugger/godot3/helpers.ts | 116 + src/debugger/godot3/server_controller.ts | 523 ++ .../{ => godot3}/variables/variant_decoder.ts | 164 +- .../{ => godot3}/variables/variant_encoder.ts | 25 +- .../{ => godot3}/variables/variants.ts | 2 +- src/debugger/godot4/debug_session.ts | 550 ++ src/debugger/godot4/helpers.ts | 123 + src/debugger/godot4/server_controller.ts | 529 ++ .../godot4/variables/variant_decoder.ts | 652 ++ .../godot4/variables/variant_encoder.ts | 446 ++ src/debugger/godot4/variables/variants.ts | 475 ++ .../{scene_tree => }/inspector_provider.ts | 23 +- src/debugger/mediator.ts | 263 - .../{scene_tree => }/scene_tree_provider.ts | 81 +- src/debugger/server_controller.ts | 314 - src/extension.ts | 164 +- src/logger.ts | 128 +- src/lsp/ClientConnectionManager.ts | 82 +- src/lsp/GDScriptLanguageClient.ts | 17 +- src/lsp/MessageIO.ts | 9 +- src/lsp/NativeDocumentManager.ts | 4 +- src/scene_preview_provider.ts | 4 +- src/settings_updater.ts | 10 +- src/utils.ts | 54 +- src/utils/prompts.ts | 33 + src/utils/subspawn.ts | 25 +- syntaxes/examples/project.godot | 0 tools/generate_icons.ts | 4 +- tsconfig.json | 2 +- 48 files changed, 7411 insertions(+), 4795 deletions(-) create mode 100644 .eslintrc.json delete mode 100644 src/debugger/commands/command.ts delete mode 100644 src/debugger/commands/command_parser.ts delete mode 100644 src/debugger/commands/commands/command_debug_enter.ts delete mode 100644 src/debugger/commands/commands/command_debug_exit.ts delete mode 100644 src/debugger/commands/commands/command_message_inspect_object.ts delete mode 100644 src/debugger/commands/commands/command_message_scene_tree.ts delete mode 100644 src/debugger/commands/commands/command_null.ts delete mode 100644 src/debugger/commands/commands/command_output.ts delete mode 100644 src/debugger/commands/commands/command_stack_dump.ts delete mode 100644 src/debugger/commands/commands/command_stack_frame_vars.ts delete mode 100644 src/debugger/debug_adapter.ts create mode 100644 src/debugger/debugger.ts delete mode 100644 src/debugger/debugger_context.ts rename src/debugger/{ => godot3}/debug_session.ts (52%) create mode 100644 src/debugger/godot3/helpers.ts create mode 100644 src/debugger/godot3/server_controller.ts rename src/debugger/{ => godot3}/variables/variant_decoder.ts (70%) rename src/debugger/{ => godot3}/variables/variant_encoder.ts (94%) rename src/debugger/{ => godot3}/variables/variants.ts (99%) create mode 100644 src/debugger/godot4/debug_session.ts create mode 100644 src/debugger/godot4/helpers.ts create mode 100644 src/debugger/godot4/server_controller.ts create mode 100644 src/debugger/godot4/variables/variant_decoder.ts create mode 100644 src/debugger/godot4/variables/variant_encoder.ts create mode 100644 src/debugger/godot4/variables/variants.ts rename src/debugger/{scene_tree => }/inspector_provider.ts (92%) delete mode 100644 src/debugger/mediator.ts rename src/debugger/{scene_tree => }/scene_tree_provider.ts (57%) delete mode 100644 src/debugger/server_controller.ts create mode 100644 src/utils/prompts.ts delete mode 100644 syntaxes/examples/project.godot diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 000000000..ce2a6db5c --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,55 @@ +{ + "env": { + "node": true + }, + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended" + ], + "ignorePatterns": [ + "out/**", + "node_modules/**", + "prism.js" + ], + "overrides": [ + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": [ + "@typescript-eslint", + "@typescript-eslint/tslint" + ], + "rules": { + "@typescript-eslint/no-empty-function": "off", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-unused-vars": "off", + "@typescript-eslint/no-inferrable-types": "off", + "@typescript-eslint/ban-types": "warn", + "no-async-promise-executor": "warn", + "no-inner-declarations": "warn", + "no-prototype-builtins": "warn", + "no-constant-condition": "warn", + "prefer-const": "warn", + "no-useless-escape": "off", + "no-var": "off", + "indent": [ + "off", + "tab" + ], + "linebreak-style": [ + "off", + "windows" + ], + "quotes": [ + "warn", + "double" + ], + "semi": [ + "error", + "always" + ] + } +} diff --git a/README.md b/README.md index cbc07e028..bc8ad367c 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,6 @@ A complete set of tools to code games with [Godot Engine](http://www.godotengine.org/) in Visual Studio Code. -> **Warning** -> -> This plugin requires manual configuration to work with Godot 4! -> See the [`gdscript_lsp_server_port` setting](#gdscript_lsp_server_port) -> item under the Configuration section below. - **IMPORTANT NOTE:** Versions 1.0.0 and later of this extension only support Godot 3.2 or later. @@ -19,10 +13,13 @@ experience as comfortable as possible: - Syntax highlighting for the GDScript (`.gd`) language - Syntax highlighting for the `.tscn` and `.tres` scene formats +- Syntax highlighting for the `.gdshader` shader format - Full typed GDScript support - Optional "Smart Mode" to improve productivity with dynamically typed scripts - Function definitions and documentation display on hover (see image below) - Rich autocompletion +- Switch from a `.gd` file to the related `.tscn` file (default keybind is `alt+o`) +- In-editor Scene Preview - Display script warnings and errors - Ctrl + click on a variable or method call to jump to its definition - Full documentation of the Godot Engine's API supported (select *Godot Tools: List native classes of Godot* in the Command Palette) @@ -73,18 +70,14 @@ for Godot by following these steps: You can use the following settings to configure Godot Tools: -##### `editor_path` - -The absolute path to the Godot editor executable. _Under Mac OS, this is the executable inside of Godot.app._ - -##### `gdscript_lsp_server_port` +- `godotTools.editorPath.godot3` +- `godotTools.editorPath.godot4` -The WebSocket server port of the GDScript language server. +The path to the Godot editor executable. _Under Mac OS, this is the executable inside of Godot.app._ -For Godot 3, the default value of `6008` should work out of the box. - -**For Godot 4, this value must be changed to `6005` for this extension to connect to the language server.** -See [this tracking issue](https://github.com/godotengine/godot-vscode-plugin/issues/473) for more information. +- `godotTools.lsp.headless` + +When using Godot >3.6 or >4.2, Headless LSP mode is available. In Headless mode, the extension will attempt to launch a windowless instance of the Godot editor to use as its Language Server. #### GDScript Debugger @@ -102,19 +95,24 @@ To configure the GDScript debugger: 5. Change any relevant settings. 6. Press F5 to launch. -*Configurations* +### *Configurations* _Required_ -- "project": Absolute path to a directory with a project.godot file. Defaults to the currently open VSCode workspace with `${workspaceFolder}`. -- "port": Number that represents the port the Godot remote debugger will connect with. Defaults to `6007`. -- "address": String that represents the IP address that the Godot remote debugger will connect to. Defaults to `127.0.0.1`. +None: seriously. This is valid debugging configuration: + +```json +{ "name": "Launch", "type": "godot" } +``` _Optional_ -- "launch_game_instance": true/false. If true, an instance of Godot will be launched. Will use the path provided in `editor_path`. Defaults to `true`. -- "launch_scene": true/false. If true, and launch_game_instance is true, will launch an instance of Godot to a currently active opened TSCN file. Defaults to `false`. -- "scene_file": Path _relative to the project.godot file_ to a TSCN file. If launch_game_instance and launch_scene are both true, will use this file instead of looking for the currently active opened TSCN file. +`project`: Absolute path to a directory with a project.godot file. Defaults to the currently open VSCode workspace with `${workspaceFolder}`. +`port`: The port number for the Godot remote debugger to use. +`address`: The IP address for the Godot remote debugger to use. +`scene_file`: Path to a scene file to run instead of the projects 'main scene'. +`editor_path`: Absolute path to the Godot executable to be used for this debug profile. +`additional_options`: Additional command line arguments. *Usage* @@ -166,4 +164,4 @@ When developing for the extension, you can open this project in Visual Studio Co - GDScript is a dynamically typed script language. The language server can't infer all variable types. - To increase the number of results displayed, open the **Editor Settings**, - go to the **Language Server** section then check **Enable Smart Resolve**. \ No newline at end of file + go to the **Language Server** section then check **Enable Smart Resolve**. diff --git a/package-lock.json b/package-lock.json index 78e3cf632..84671780a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,7 +1,7 @@ { "name": "godot-tools", "version": "1.3.1", - "lockfileVersion": 2, + "lockfileVersion": 3, "requires": true, "packages": { "": { @@ -9,26 +9,32 @@ "version": "1.3.1", "license": "MIT", "dependencies": { + "@vscode/debugadapter": "^1.64.0", + "@vscode/debugprotocol": "^1.64.0", "await-notify": "^1.0.1", "global": "^4.4.0", "marked": "^4.0.11", "net": "^1.0.2", "prismjs": "^1.17.1", "terminate": "^2.5.0", - "vscode-debugadapter": "^1.38.0", "vscode-languageclient": "^7.0.0", - "ws": "^8.4.2" + "ws": "^8.13.0" }, "devDependencies": { - "@types/marked": "^0.6.5", + "@types/marked": "^4.0.8", "@types/mocha": "^9.1.0", "@types/node": "^18.15.0", "@types/prismjs": "^1.16.8", "@types/vscode": "^1.80.0", - "@types/ws": "^8.2.2", + "@types/ws": "^8.5.4", + "@typescript-eslint/eslint-plugin": "^5.57.1", + "@typescript-eslint/eslint-plugin-tslint": "^5.57.1", + "@typescript-eslint/parser": "^5.57.1", "@vscode/vsce": "^2.21.0", - "esbuild": "^0.15.2", + "esbuild": "^0.17.15", + "eslint": "^8.37.0", "ts-node": "^10.9.1", + "tsconfig-paths": "^4.2.0", "tslint": "^5.20.1", "typescript": "^5.2.2" }, @@ -36,6 +42,15 @@ "vscode": "^1.80.0" } }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/@babel/code-frame": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", @@ -74,2275 +89,668 @@ "node": ">=12" } }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.2.tgz", - "integrity": "sha512-lcfRxKY3CIBFop9slpNu04+fGro1S0QN5n+HrbOwR6eHHdYeidvMtSVK4vbbYmEMwQr3MFAt2yU6bhwl4dqL/A==", + "node_modules/@esbuild/android-arm": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.19.tgz", + "integrity": "sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==", "cpu": [ - "loong64" + "arm" ], "dev": true, "optional": true, "os": [ - "linux" + "android" ], "engines": { "node": ">=12" } }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "node_modules/@esbuild/android-arm64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz", + "integrity": "sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==", + "cpu": [ + "arm64" + ], "dev": true, + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">=6.0.0" + "node": ">=12" } }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "dev": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "node_modules/@esbuild/android-x64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.19.tgz", + "integrity": "sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" } }, - "node_modules/@tsconfig/node10": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", - "dev": true - }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true - }, - "node_modules/@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true - }, - "node_modules/@tsconfig/node16": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", - "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", - "dev": true - }, - "node_modules/@types/marked": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/@types/marked/-/marked-0.6.5.tgz", - "integrity": "sha512-6kBKf64aVfx93UJrcyEZ+OBM5nGv4RLsI6sR1Ar34bpgvGVRoyTgpxn4ZmtxOM5aDTAaaznYuYUH8bUX3Nk3YA==", - "dev": true - }, - "node_modules/@types/mocha": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-9.1.0.tgz", - "integrity": "sha512-QCWHkbMv4Y5U9oW10Uxbr45qMMSzl4OzijsozynUAgx3kEHUdXB00udx2dWDQ7f2TU2a2uuiFaRZjCe3unPpeg==", - "dev": true - }, - "node_modules/@types/node": { - "version": "18.18.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.18.3.tgz", - "integrity": "sha512-0OVfGupTl3NBFr8+iXpfZ8NR7jfFO+P1Q+IO/q0wbo02wYkP5gy36phojeYWpLQ6WAMjl+VfmqUk2YbUfp0irA==", - "dev": true - }, - "node_modules/@types/prismjs": { - "version": "1.16.8", - "resolved": "https://registry.npmjs.org/@types/prismjs/-/prismjs-1.16.8.tgz", - "integrity": "sha512-I8v3yZIvhIwB55MhV+9+FhK5OMokviuQQP4vGmffW18iQGw5cyB6CaBGWFhcIJk+0cyi/PNhNPedlUYTAHoc2Q==", - "dev": true - }, - "node_modules/@types/vscode": { - "version": "1.82.0", - "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.82.0.tgz", - "integrity": "sha512-VSHV+VnpF8DEm8LNrn8OJ8VuUNcBzN3tMvKrNpbhhfuVjFm82+6v44AbDhLvVFgCzn6vs94EJNTp7w8S6+Q1Rw==", - "dev": true - }, - "node_modules/@types/ws": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz", - "integrity": "sha512-NOn5eIcgWLOo6qW8AcuLZ7G8PycXu0xTxxkS6Q18VWFxgPUSOwV0pBj2a/4viNZVu25i7RIB7GttdkAIUUXOOg==", + "node_modules/@esbuild/darwin-arm64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz", + "integrity": "sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "@types/node": "*" + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" } }, - "node_modules/@vscode/vsce": { - "version": "2.21.1", - "resolved": "https://registry.npmjs.org/@vscode/vsce/-/vsce-2.21.1.tgz", - "integrity": "sha512-f45/aT+HTubfCU2oC7IaWnH9NjOWp668ML002QiFObFRVUCoLtcwepp9mmql/ArFUy+HCHp54Xrq4koTcOD6TA==", + "node_modules/@esbuild/darwin-x64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz", + "integrity": "sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "azure-devops-node-api": "^11.0.1", - "chalk": "^2.4.2", - "cheerio": "^1.0.0-rc.9", - "commander": "^6.2.1", - "glob": "^7.0.6", - "hosted-git-info": "^4.0.2", - "jsonc-parser": "^3.2.0", - "leven": "^3.1.0", - "markdown-it": "^12.3.2", - "mime": "^1.3.4", - "minimatch": "^3.0.3", - "parse-semver": "^1.1.1", - "read": "^1.0.7", - "semver": "^7.5.2", - "tmp": "^0.2.1", - "typed-rest-client": "^1.8.4", - "url-join": "^4.0.1", - "xml2js": "^0.5.0", - "yauzl": "^2.3.1", - "yazl": "^2.2.2" - }, - "bin": { - "vsce": "vsce" - }, + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": ">= 14" - }, - "optionalDependencies": { - "keytar": "^7.7.0" + "node": ">=12" } }, - "node_modules/@vscode/vsce/node_modules/commander": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", - "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz", + "integrity": "sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==", + "cpu": [ + "arm64" + ], "dev": true, + "optional": true, + "os": [ + "freebsd" + ], "engines": { - "node": ">= 6" + "node": ">=12" } }, - "node_modules/@vscode/vsce/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "node_modules/@esbuild/freebsd-x64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz", + "integrity": "sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, + "optional": true, + "os": [ + "freebsd" + ], "engines": { - "node": ">=10" + "node": ">=12" } }, - "node_modules/@vscode/vsce/node_modules/xml2js": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", - "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", + "node_modules/@esbuild/linux-arm": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz", + "integrity": "sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==", + "cpu": [ + "arm" + ], "dev": true, - "dependencies": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=4.0.0" + "node": ">=12" } }, - "node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "node_modules/@esbuild/linux-arm64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz", + "integrity": "sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==", + "cpu": [ + "arm64" + ], "dev": true, - "bin": { - "acorn": "bin/acorn" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=0.4.0" + "node": ">=12" } }, - "node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "node_modules/@esbuild/linux-ia32": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz", + "integrity": "sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==", + "cpu": [ + "ia32" + ], "dev": true, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=0.4.0" + "node": ">=12" } }, - "node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "node_modules/@esbuild/linux-loong64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz", + "integrity": "sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==", + "cpu": [ + "loong64" + ], "dev": true, "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "node_modules/@esbuild/linux-mips64el": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz", + "integrity": "sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==", + "cpu": [ + "mips64el" + ], "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=4" + "node": ">=12" } }, - "node_modules/aproba": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "dev": true, - "optional": true - }, - "node_modules/are-we-there-yet": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz", - "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==", - "dev": true, - "optional": true, - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/await-notify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/await-notify/-/await-notify-1.0.1.tgz", - "integrity": "sha1-C0gTOyLlJBgeEVV2ZRhfKi885Hw=" - }, - "node_modules/azure-devops-node-api": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-11.1.0.tgz", - "integrity": "sha512-6/2YZuf+lJzJLrjXNYEA5RXAkMCb8j/4VcHD0qJQRsgG/KsRMYo0HgDh0by1FGHyZkQWY5LmQyJqCwRVUB3Y7Q==", - "dev": true, - "dependencies": { - "tunnel": "0.0.6", - "typed-rest-client": "^1.8.4" - } - }, - "node_modules/balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "optional": true - }, - "node_modules/bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "dev": true, - "optional": true, - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "node_modules/bl/node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "optional": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", - "dev": true - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "optional": true, - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/builtin-modules": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/cheerio": { - "version": "1.0.0-rc.10", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.10.tgz", - "integrity": "sha512-g0J0q/O6mW8z5zxQ3A8E8J1hUgp4SMOvEoW/x84OwyHKe/Zccz83PVT4y5Crcr530FV6NgmKI1qvGTKVl9XXVw==", - "dev": true, - "dependencies": { - "cheerio-select": "^1.5.0", - "dom-serializer": "^1.3.2", - "domhandler": "^4.2.0", - "htmlparser2": "^6.1.0", - "parse5": "^6.0.1", - "parse5-htmlparser2-tree-adapter": "^6.0.1", - "tslib": "^2.2.0" - }, - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/cheeriojs/cheerio?sponsor=1" - } - }, - "node_modules/cheerio-select": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-1.5.0.tgz", - "integrity": "sha512-qocaHPv5ypefh6YNxvnbABM07KMxExbtbfuJoIie3iZXX1ERwYmJcIiRrr9H05ucQP1k28dav8rpdDgjQd8drg==", - "dev": true, - "dependencies": { - "css-select": "^4.1.3", - "css-what": "^5.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0", - "domutils": "^2.7.0" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/cheerio/node_modules/tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", - "dev": true - }, - "node_modules/chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "dev": true, - "optional": true - }, - "node_modules/code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true, - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" - }, - "node_modules/console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true, - "optional": true - }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "dev": true, - "optional": true - }, - "node_modules/create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true - }, - "node_modules/css-select": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.2.1.tgz", - "integrity": "sha512-/aUslKhzkTNCQUB2qTX84lVmfia9NyjP3WpDGtj/WxhwBzWBYUV3DgUpurHTme8UTPcPlAD1DJ+b0nN/t50zDQ==", - "dev": true, - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^5.1.0", - "domhandler": "^4.3.0", - "domutils": "^2.8.0", - "nth-check": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/css-what": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-5.1.0.tgz", - "integrity": "sha512-arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==", - "dev": true, - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/decompress-response": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz", - "integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==", - "dev": true, - "optional": true, - "dependencies": { - "mimic-response": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true, - "optional": true, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", - "dev": true, - "optional": true - }, - "node_modules/detect-libc": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", - "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", - "dev": true, - "optional": true, - "bin": { - "detect-libc": "bin/detect-libc.js" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/dom-serializer": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz", - "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==", - "dev": true, - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/dom-walk": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.2.tgz", - "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==" - }, - "node_modules/domelementtype": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", - "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ] - }, - "node_modules/domhandler": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.0.tgz", - "integrity": "sha512-fC0aXNQXqKSFTr2wDNZDhsEYjCiYsDWl3D01kwt25hm1YIPyDGHvvi3rw+PLqHAl/m71MaiF7d5zvBr0p5UB2g==", - "dev": true, - "dependencies": { - "domelementtype": "^2.2.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "dev": true, - "dependencies": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/duplexer": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", - "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=" - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, - "optional": true, - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "dev": true, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/esbuild": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.2.tgz", - "integrity": "sha512-iKfJsm2u5ATPI3x3sq/WrxISWhAZB/VpvygGG8Pr3q+xQhkIhyI737t+xUa71f50g0ioihQSGaHiQO5hbVDoSQ==", - "dev": true, - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/linux-loong64": "0.15.2", - "esbuild-android-64": "0.15.2", - "esbuild-android-arm64": "0.15.2", - "esbuild-darwin-64": "0.15.2", - "esbuild-darwin-arm64": "0.15.2", - "esbuild-freebsd-64": "0.15.2", - "esbuild-freebsd-arm64": "0.15.2", - "esbuild-linux-32": "0.15.2", - "esbuild-linux-64": "0.15.2", - "esbuild-linux-arm": "0.15.2", - "esbuild-linux-arm64": "0.15.2", - "esbuild-linux-mips64le": "0.15.2", - "esbuild-linux-ppc64le": "0.15.2", - "esbuild-linux-riscv64": "0.15.2", - "esbuild-linux-s390x": "0.15.2", - "esbuild-netbsd-64": "0.15.2", - "esbuild-openbsd-64": "0.15.2", - "esbuild-sunos-64": "0.15.2", - "esbuild-windows-32": "0.15.2", - "esbuild-windows-64": "0.15.2", - "esbuild-windows-arm64": "0.15.2" - } - }, - "node_modules/esbuild-android-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.2.tgz", - "integrity": "sha512-lEyRmwmdkkKBpIOi0wKGheuCPECgl5/GCOQkhVpDFEj1lec3cinEk37EbD3f4PUvix1eAHtTa0UI1ga0Bznntg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-android-arm64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.2.tgz", - "integrity": "sha512-znXfd7QBNrpAVnB8ZP5Zj4a3ah5dPBPZwbn6v0f4Lub4iwwZJ1h34VWMuo2f7KZdIbl2axrei6FxlQncS8zzEw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-darwin-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.2.tgz", - "integrity": "sha512-keNq6K+qhEJ5kZ6L1UJGYjAnv6Kkpf2KjOjC6r0JMsX6ZAaXnA3OqqXJttEYzBKpZ+W6/T+paS4Slzk3N2bSvQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-darwin-arm64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.2.tgz", - "integrity": "sha512-H/0vtLB/dY+TVGsAskmyuaQ7qegNVi+A4N5a+vpPHPFutzoGjcj4tf/77jZ3UsMTlN1dq+Ldala1P1pf486L8Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-freebsd-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.2.tgz", - "integrity": "sha512-KMskcfVTisa2h/xaOwmoWEBm6CVWbKbrnEAv3sEfOF0wodjQfcPvW7HAxatMGL7AW9PIUP6UXLCCCUUnxL2yLQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-freebsd-arm64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.2.tgz", - "integrity": "sha512-RJJ3c4L6XGfZeiFqphK58KL+3LfrmebMLgB9QJ0Gygmjx1F6tnLUrLwNBNXrpMT7X4bEtCvP9Gvhkt5HVTdt7g==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-32": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.2.tgz", - "integrity": "sha512-GfCEEs+D+vBrluCUBFr3MP8/PH/fNc5xl2JbsHkwivBXlbORXf5m4Ts8vII9qPxEkLAUsoYx4Bjp+Ca0WqQ9tA==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.2.tgz", - "integrity": "sha512-F6GfpZrcTisWFrJZdx73NNVjY64iOqhxFsdmnftHZFfeLG4KyJg9hO5kd6E+Rq3udoRk41jPS+fg0+iCyq5Utg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-arm": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.2.tgz", - "integrity": "sha512-u2YXH9ZCuyN9KwcpKCzhgUckBgy8O07oivv3cV/Z+WnFOjXhKFc+IY0v41nFODPEzEIbozMUx8boVexvHMXHDA==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-arm64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.2.tgz", - "integrity": "sha512-CacsuBpOzU/WVWMS19iGHCrijgheCtmNb9mjlvpoxwLEVjHycc9/X+Pup6vp8dk5jRrhm/7lkY8Fbw9OxM+oug==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-mips64le": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.2.tgz", - "integrity": "sha512-VY8pEtXAEyPfVCP/SKPGxaiNF7b259Le0wvEPQTYMeJycAVfahBhpg/9qk2Ufd7mMVGT7G2izr86jJsvuiMVZw==", - "cpu": [ - "mips64el" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-ppc64le": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.2.tgz", - "integrity": "sha512-+Sma8cuiVciTU+xuqErEU4hm8k2bMivqEXPGsXFPKJAV2XrLQlkT5zuPA4FWuKpxwVLUxxuYhkq0nv4j5Dv/3Q==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-riscv64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.2.tgz", - "integrity": "sha512-HkqtnuEiVq2VvqD6Wb9LEWAedbpxXkq7h3Imop6vaAQUr5z8HROfTyY349QsP9aGY3aF/NiBkX20C6vOqTex8A==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-s390x": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.2.tgz", - "integrity": "sha512-nIqNFoovQRoz/YBm64xRWXT4yg5BtT2DXA8ogI8lJKy6B+mOKeOVVkvAbFU5YrvUq6AHhMuCsoa3CYFK5a4/vg==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-netbsd-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.2.tgz", - "integrity": "sha512-CY5kHo3C3+aY1VBv76lDTe/D/+4nkhA6cE8ENRezeEvWmu8pPqnIVk1cy/jLNNPBYkbZiR30z/QeZy5yWsW1kg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-openbsd-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.2.tgz", - "integrity": "sha512-fXpQW8I6Lm9gJubvW/QjR1OwQQ4tMriVhxznJJmbaX7EYHtcog6Fy+xqbl+YUBZ3dxmEBkBXd6LZaXkn10yavQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-sunos-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.2.tgz", - "integrity": "sha512-8xaprqT/rxfbxljQrd2A4iASOnw46eiieghh6JgzjlrXP/6kbhN3fe8IgQclcdu6SjDPmQvNSURQ5xCeVATpbQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-windows-32": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.2.tgz", - "integrity": "sha512-lGLNGBmDQ0gZphbUfxT7n6OO1l6iOQM2xnYN90+etzTWZeI76CYLbVPCZR+kp3vzyIRAbcsS6NtM4SknHAwEww==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-windows-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.2.tgz", - "integrity": "sha512-Rc6cUwOiQiGgpAxlCl8Lj3o2Ds4n3OU8UyoWpOBXmms+gXdwlKBzxjwj5FxrZJ6EveYpFqzDP07tbzOa9YpTKw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-windows-arm64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.2.tgz", - "integrity": "sha512-0bpQcIvd6TBIThA+nr9QsTfaU23Co5IPMlXmuNja6buDEu92b9im9ZMGV/BLF+jwKwG8/f1L/0Yfl9QzNuH4Eg==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/event-stream": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", - "integrity": "sha1-SrTJoPWlTbkzi0w02Gv86PSzVXE=", - "dependencies": { - "duplexer": "~0.1.1", - "from": "~0", - "map-stream": "~0.1.0", - "pause-stream": "0.0.11", - "split": "0.3", - "stream-combiner": "~0.0.4", - "through": "~2.3.1" - } - }, - "node_modules/expand-template": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", - "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", - "dev": true, - "optional": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", - "dev": true, - "dependencies": { - "pend": "~1.2.0" - } - }, - "node_modules/from": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", - "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=" - }, - "node_modules/fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "dev": true, - "optional": true - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "node_modules/gauge": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", - "dev": true, - "optional": true, - "dependencies": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "node_modules/get-intrinsic": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", - "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/github-from-package": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", - "integrity": "sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=", - "dev": true, - "optional": true - }, - "node_modules/glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/global": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/global/-/global-4.4.0.tgz", - "integrity": "sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==", - "dependencies": { - "min-document": "^2.19.0", - "process": "^0.11.10" - } - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/has-symbols": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", - "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", - "dev": true, - "optional": true - }, - "node_modules/hosted-git-info": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", - "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/htmlparser2": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", - "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", - "dev": true, - "funding": [ - "https://github.com/fb55/htmlparser2?sponsor=1", - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.0.0", - "domutils": "^2.5.2", - "entities": "^2.0.0" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "optional": true - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true, - "optional": true - }, - "node_modules/is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "optional": true, - "dependencies": { - "number-is-nan": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true, - "optional": true - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "node_modules/js-yaml": { - "version": "3.14.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", - "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsonc-parser": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", - "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", - "dev": true - }, - "node_modules/keytar": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/keytar/-/keytar-7.7.0.tgz", - "integrity": "sha512-YEY9HWqThQc5q5xbXbRwsZTh2PJ36OSYRjSv3NN2xf5s5dpLTjEZnC2YikR29OaVybf9nQ0dJ/80i40RS97t/A==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "dependencies": { - "node-addon-api": "^3.0.0", - "prebuild-install": "^6.0.0" - } - }, - "node_modules/leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/linkify-it": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz", - "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==", - "dev": true, - "dependencies": { - "uc.micro": "^1.0.1" - } - }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, - "node_modules/map-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", - "integrity": "sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=" - }, - "node_modules/markdown-it": { - "version": "12.3.2", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz", - "integrity": "sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1", - "entities": "~2.1.0", - "linkify-it": "^3.0.1", - "mdurl": "^1.0.1", - "uc.micro": "^1.0.5" - }, - "bin": { - "markdown-it": "bin/markdown-it.js" - } - }, - "node_modules/markdown-it/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/markdown-it/node_modules/entities": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", - "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==", - "dev": true, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/marked": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/marked/-/marked-4.0.11.tgz", - "integrity": "sha512-xL2aJ5JDggqToKOqKHJWIDXaYk24XoGm1mNlhSPFP+0OKRCcKx+/hH7hlAr5LYqBKUzqCANylALgwNstVRgtCw==", - "bin": { - "marked": "bin/marked.js" - }, - "engines": { - "node": ">= 12" - } - }, - "node_modules/mdurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=", - "dev": true - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true, - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mimic-response": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz", - "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==", - "dev": true, - "optional": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/min-document": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.0.tgz", - "integrity": "sha1-e9KC4/WELtKVu3SM3Z8f+iyCRoU=", - "dependencies": { - "dom-walk": "^0.1.0" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" - }, - "node_modules/mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dependencies": { - "minimist": "^1.2.5" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/mkdirp-classic": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", - "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", - "dev": true, - "optional": true - }, - "node_modules/mute-stream": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", - "dev": true - }, - "node_modules/napi-build-utils": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz", - "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==", - "dev": true, - "optional": true - }, - "node_modules/net": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/net/-/net-1.0.2.tgz", - "integrity": "sha1-0XV+yaf7I3HYPPR1XOPifhCCk4g=" - }, - "node_modules/node-abi": { - "version": "2.30.1", - "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.30.1.tgz", - "integrity": "sha512-/2D0wOQPgaUWzVSVgRMx+trKJRC2UG4SUc4oCJoXx9Uxjtp0Vy3/kt7zcbxHF8+Z/pK3UloLWzBISg72brfy1w==", - "dev": true, - "optional": true, - "dependencies": { - "semver": "^5.4.1" - } - }, - "node_modules/node-addon-api": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", - "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==", - "dev": true, - "optional": true - }, - "node_modules/npmlog": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", - "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", - "dev": true, - "optional": true, - "dependencies": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "node_modules/nth-check": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz", - "integrity": "sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==", - "dev": true, - "dependencies": { - "boolbase": "^1.0.0" - }, - "funding": { - "url": "https://github.com/fb55/nth-check?sponsor=1" - } - }, - "node_modules/number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true, - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true, - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.0.tgz", - "integrity": "sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/parse-semver": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/parse-semver/-/parse-semver-1.1.1.tgz", - "integrity": "sha1-mkr9bfBj3Egm+T+6SpnPIj9mbLg=", - "dev": true, - "dependencies": { - "semver": "^5.1.0" - } - }, - "node_modules/parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "dev": true - }, - "node_modules/parse5-htmlparser2-tree-adapter": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz", - "integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==", - "dev": true, - "dependencies": { - "parse5": "^6.0.1" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/pause-stream": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", - "dependencies": { - "through": "~2.3" - } - }, - "node_modules/pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", - "dev": true - }, - "node_modules/prebuild-install": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-6.1.4.tgz", - "integrity": "sha512-Z4vpywnK1lBg+zdPCVCsKq0xO66eEV9rWo2zrROGGiRS4JtueBOdlB1FnY8lcy7JsUud/Q3ijUxyWN26Ika0vQ==", - "dev": true, - "optional": true, - "dependencies": { - "detect-libc": "^1.0.3", - "expand-template": "^2.0.3", - "github-from-package": "0.0.0", - "minimist": "^1.2.3", - "mkdirp-classic": "^0.5.3", - "napi-build-utils": "^1.0.1", - "node-abi": "^2.21.0", - "npmlog": "^4.0.1", - "pump": "^3.0.0", - "rc": "^1.2.7", - "simple-get": "^3.0.3", - "tar-fs": "^2.0.0", - "tunnel-agent": "^0.6.0" - }, - "bin": { - "prebuild-install": "bin.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/prismjs": { - "version": "1.29.0", - "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", - "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==", - "engines": { - "node": ">=6" - } - }, - "node_modules/process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true, - "optional": true - }, - "node_modules/ps-tree": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.2.0.tgz", - "integrity": "sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA==", - "dependencies": { - "event-stream": "=3.3.4" - }, - "bin": { - "ps-tree": "bin/ps-tree.js" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "optional": true, - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/qs": { - "version": "6.10.3", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.3.tgz", - "integrity": "sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==", - "dev": true, - "dependencies": { - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "node_modules/@esbuild/linux-ppc64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz", + "integrity": "sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==", + "cpu": [ + "ppc64" + ], "dev": true, "optional": true, - "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "bin": { - "rc": "cli.js" - } - }, - "node_modules/read": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz", - "integrity": "sha1-s9oZvQUkMal2cdRKQmNK33ELQMQ=", - "dev": true, - "dependencies": { - "mute-stream": "~0.0.4" - }, + "os": [ + "linux" + ], "engines": { - "node": ">=0.8" - } - }, - "node_modules/readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dev": true, - "optional": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/resolve": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", - "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", - "dev": true, - "dependencies": { - "path-parse": "^1.0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "optional": true - }, - "node_modules/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "dev": true - }, - "node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true, - "optional": true - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=12" } }, - "node_modules/signal-exit": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.6.tgz", - "integrity": "sha512-sDl4qMFpijcGw22U5w63KmD3cZJfBuFlVNbVMKje2keoKML7X2UzWbc4XrmEbDwg0NXJc3yv4/ox7b+JWb57kQ==", - "dev": true, - "optional": true - }, - "node_modules/simple-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", - "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } + "node_modules/@esbuild/linux-riscv64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz", + "integrity": "sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==", + "cpu": [ + "riscv64" ], - "optional": true - }, - "node_modules/simple-get": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz", - "integrity": "sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==", "dev": true, "optional": true, - "dependencies": { - "decompress-response": "^4.2.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" - } - }, - "node_modules/split": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", - "integrity": "sha1-zQ7qXmOiEd//frDwkcQTPi0N0o8=", - "dependencies": { - "through": "2" - }, + "os": [ + "linux" + ], "engines": { - "node": "*" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "node_modules/stream-combiner": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", - "integrity": "sha1-TV5DPBhSYd3mI8o/RMWGvPXErRQ=", - "dependencies": { - "duplexer": "~0.1.1" + "node": ">=12" } }, - "node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "node_modules/@esbuild/linux-s390x": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz", + "integrity": "sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==", + "cpu": [ + "s390x" + ], "dev": true, "optional": true, - "dependencies": { - "safe-buffer": "~5.1.0" + "os": [ + "linux" + ], + "engines": { + "node": ">=12" } }, - "node_modules/string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "node_modules/@esbuild/linux-x64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz", + "integrity": "sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==", + "cpu": [ + "x64" + ], "dev": true, "optional": true, - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - }, + "os": [ + "linux" + ], "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "node_modules/@esbuild/netbsd-x64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz", + "integrity": "sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==", + "cpu": [ + "x64" + ], "dev": true, "optional": true, - "dependencies": { - "ansi-regex": "^2.0.0" - }, + "os": [ + "netbsd" + ], "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "node_modules/@esbuild/openbsd-x64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz", + "integrity": "sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==", + "cpu": [ + "x64" + ], "dev": true, "optional": true, + "os": [ + "openbsd" + ], "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "node_modules/@esbuild/sunos-x64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz", + "integrity": "sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, + "optional": true, + "os": [ + "sunos" + ], "engines": { - "node": ">=4" + "node": ">=12" } }, - "node_modules/tar-fs": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", - "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", + "node_modules/@esbuild/win32-arm64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz", + "integrity": "sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==", + "cpu": [ + "arm64" + ], "dev": true, "optional": true, - "dependencies": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.1.4" + "os": [ + "win32" + ], + "engines": { + "node": ">=12" } }, - "node_modules/tar-stream": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "node_modules/@esbuild/win32-ia32": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz", + "integrity": "sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==", + "cpu": [ + "ia32" + ], "dev": true, "optional": true, - "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - }, + "os": [ + "win32" + ], "engines": { - "node": ">=6" + "node": ">=12" } }, - "node_modules/tar-stream/node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "node_modules/@esbuild/win32-x64": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz", + "integrity": "sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==", + "cpu": [ + "x64" + ], "dev": true, "optional": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, + "os": [ + "win32" + ], "engines": { - "node": ">= 6" + "node": ">=12" } }, - "node_modules/terminate": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/terminate/-/terminate-2.5.0.tgz", - "integrity": "sha512-WnhIjfoTiIvmrfey4GSkqJevEHbIFnSdKeutHwA+cm81/1+GlAHLw1pBKxsKqkrqMaQKK65V6WrvUa851phbgA==", + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, "dependencies": { - "ps-tree": "^1.2.0" + "eslint-visitor-keys": "^3.3.0" }, "engines": { - "node": ">=0.10" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "node_modules/through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" - }, - "node_modules/tmp": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", - "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", + "node_modules/@eslint-community/regexpp": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.9.1.tgz", + "integrity": "sha512-Y27x+MBLjXa+0JWDhykM3+JE+il3kHKAEqabfEWq3SDhZjLYb6/BHL/JKFnH3fe207JaXkyDo685Oc2Glt6ifA==", "dev": true, - "dependencies": { - "rimraf": "^3.0.0" - }, "engines": { - "node": ">=8.17.0" + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, - "node_modules/ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "node_modules/@eslint/eslintrc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz", + "integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==", "dev": true, "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true - } + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/tslib": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", - "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", + "node_modules/@eslint/eslintrc/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, - "node_modules/tslint": { - "version": "5.20.1", - "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.1.tgz", - "integrity": "sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg==", + "node_modules/@eslint/eslintrc/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.0.0", - "builtin-modules": "^1.1.1", - "chalk": "^2.3.0", - "commander": "^2.12.1", - "diff": "^4.0.1", - "glob": "^7.1.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", - "mkdirp": "^0.5.1", - "resolve": "^1.3.2", - "semver": "^5.3.0", - "tslib": "^1.8.0", - "tsutils": "^2.29.0" + "argparse": "^2.0.1" }, "bin": { - "tslint": "bin/tslint" - }, + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@eslint/eslintrc/node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, "engines": { - "node": ">=4.8.0" + "node": ">=8" }, - "peerDependencies": { - "typescript": ">=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >=3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/tsutils": { - "version": "2.29.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", - "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "node_modules/@eslint/js": { + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.51.0.tgz", + "integrity": "sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.11", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz", + "integrity": "sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==", "dev": true, "dependencies": { - "tslib": "^1.8.1" + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" }, - "peerDependencies": { - "typescript": ">=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >= 3.0.0-dev || >= 3.1.0-dev" + "engines": { + "node": ">=10.10.0" } }, - "node_modules/tunnel": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", - "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", "dev": true, - "engines": { - "node": ">=0.6.11 <=0.7.0 || >=0.7.3" + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" } }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, - "optional": true, "dependencies": { - "safe-buffer": "^5.0.1" + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" }, "engines": { - "node": "*" + "node": ">= 8" } }, - "node_modules/typed-rest-client": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.6.tgz", - "integrity": "sha512-xcQpTEAJw2DP7GqVNECh4dD+riS+C1qndXLfBCJ3xk0kqprtGN491P5KlmrDbKdtuW8NEcP/5ChxiJI3S9WYTA==", + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, - "dependencies": { - "qs": "^6.9.1", - "tunnel": "0.0.6", - "underscore": "^1.12.1" + "engines": { + "node": ">= 8" } }, - "node_modules/typescript": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", - "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" }, "engines": { - "node": ">=14.17" + "node": ">= 8" } }, - "node_modules/uc.micro": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", - "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", "dev": true }, - "node_modules/underscore": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.2.tgz", - "integrity": "sha512-ekY1NhRzq0B08g4bGuX4wd2jZx5GnKz6mKSqFL4nqBlfyMGiG10gDFhDTMEfYmDL6Jy0FUIZp7wiRB+0BP7J2g==", + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", "dev": true }, - "node_modules/url-join": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", - "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", "dev": true }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true, - "optional": true + "node_modules/@tsconfig/node16": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", + "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", + "dev": true }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "node_modules/@types/json-schema": { + "version": "7.0.13", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.13.tgz", + "integrity": "sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==", + "dev": true + }, + "node_modules/@types/marked": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/@types/marked/-/marked-4.3.2.tgz", + "integrity": "sha512-a79Yc3TOk6dGdituy8hmTTJXjOkZ7zsFYV10L337ttq/rec8lRMDBpV7fL3uLx6TgbFCa5DU/h8FmIBQPSbU0w==", + "dev": true + }, + "node_modules/@types/mocha": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-9.1.0.tgz", + "integrity": "sha512-QCWHkbMv4Y5U9oW10Uxbr45qMMSzl4OzijsozynUAgx3kEHUdXB00udx2dWDQ7f2TU2a2uuiFaRZjCe3unPpeg==", + "dev": true + }, + "node_modules/@types/node": { + "version": "18.18.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.18.3.tgz", + "integrity": "sha512-0OVfGupTl3NBFr8+iXpfZ8NR7jfFO+P1Q+IO/q0wbo02wYkP5gy36phojeYWpLQ6WAMjl+VfmqUk2YbUfp0irA==", + "dev": true + }, + "node_modules/@types/prismjs": { + "version": "1.16.8", + "resolved": "https://registry.npmjs.org/@types/prismjs/-/prismjs-1.16.8.tgz", + "integrity": "sha512-I8v3yZIvhIwB55MhV+9+FhK5OMokviuQQP4vGmffW18iQGw5cyB6CaBGWFhcIJk+0cyi/PNhNPedlUYTAHoc2Q==", + "dev": true + }, + "node_modules/@types/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw==", + "dev": true + }, + "node_modules/@types/vscode": { + "version": "1.82.0", + "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.82.0.tgz", + "integrity": "sha512-VSHV+VnpF8DEm8LNrn8OJ8VuUNcBzN3tMvKrNpbhhfuVjFm82+6v44AbDhLvVFgCzn6vs94EJNTp7w8S6+Q1Rw==", "dev": true }, - "node_modules/vscode-debugadapter": { - "version": "1.41.0", - "resolved": "https://registry.npmjs.org/vscode-debugadapter/-/vscode-debugadapter-1.41.0.tgz", - "integrity": "sha512-b+J8wmsa3NCxJ+L9DAMpRfPM+8bmp4gFBoFp9lhkpwqn3UMs3sYvdcwugQr/T4lDaCCEr807HKMppRsD1EHhPQ==", - "deprecated": "This package has been renamed to @vscode/debugadapter, please update to the new name", + "node_modules/@types/ws": { + "version": "8.5.7", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.7.tgz", + "integrity": "sha512-6UrLjiDUvn40CMrAubXuIVtj2PEfKDffJS7ychvnPU44j+KVeXmdHHTgqcM/dxLUTHxlXHiFM8Skmb8ozGdTnQ==", + "dev": true, "dependencies": { - "mkdirp": "^0.5.1", - "vscode-debugprotocol": "1.41.0" + "@types/node": "*" } }, - "node_modules/vscode-debugprotocol": { - "version": "1.41.0", - "resolved": "https://registry.npmjs.org/vscode-debugprotocol/-/vscode-debugprotocol-1.41.0.tgz", - "integrity": "sha512-Sxp7kDDuhpEZiDaIfhM0jLF3RtMqvc6CpoESANE77t351uezsd/oDoqALLcOnmmsDzTgQ3W0sCvM4gErnjDFpA==", - "deprecated": "This package has been renamed to @vscode/debugprotocol, please update to the new name" - }, - "node_modules/vscode-jsonrpc": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-6.0.0.tgz", - "integrity": "sha512-wnJA4BnEjOSyFMvjZdpiOwhSq9uDoK8e/kpRJDTaMYzwlkrhG1fwDIZI94CLsLzlCK5cIbMMtFlJlfR57Lavmg==", + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", + "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/type-utils": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, "engines": { - "node": ">=8.0.0 || >=10.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/vscode-languageclient": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/vscode-languageclient/-/vscode-languageclient-7.0.0.tgz", - "integrity": "sha512-P9AXdAPlsCgslpP9pRxYPqkNYV7Xq8300/aZDpO35j1fJm/ncize8iGswzYlcvFw5DQUx4eVk+KvfXdL0rehNg==", + "node_modules/@typescript-eslint/eslint-plugin-tslint": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin-tslint/-/eslint-plugin-tslint-5.62.0.tgz", + "integrity": "sha512-qsYLld1+xed2lVwHbCxkCWdhRcByLNOjpccxK6HHlem724PbMcL1/dmH7jMQaqIpbfPAGkIypyyk3q5nUgtkhA==", + "dev": true, "dependencies": { - "minimatch": "^3.0.4", - "semver": "^7.3.4", - "vscode-languageserver-protocol": "3.16.0" + "@typescript-eslint/utils": "5.62.0" }, "engines": { - "vscode": "^1.52.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0", + "tslint": "^5.0.0 || ^6.0.0", + "typescript": "*" } }, - "node_modules/vscode-languageclient/node_modules/semver": { + "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -2353,233 +761,257 @@ "node": ">=10" } }, - "node_modules/vscode-languageserver-protocol": { - "version": "3.16.0", - "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.16.0.tgz", - "integrity": "sha512-sdeUoAawceQdgIfTI+sdcwkiK2KU+2cbEYA0agzM2uqaUy2UpnnGHtWTHVEtS0ES4zHU0eMFRGN+oQgDxlD66A==", + "node_modules/@typescript-eslint/eslint-plugin/node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, "dependencies": { - "vscode-jsonrpc": "6.0.0", - "vscode-languageserver-types": "3.16.0" + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" } }, - "node_modules/vscode-languageserver-types": { - "version": "3.16.0", - "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.16.0.tgz", - "integrity": "sha512-k8luDIWJWyenLc5ToFQQMaSrqCHiLwyKPHKPQZ5zz21vM+vIVUSvsRpcbiECH4WR88K2XZqc4ScRcZ7nk/jbeA==" - }, - "node_modules/wide-align": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", - "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "node_modules/@typescript-eslint/parser": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", + "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", "dev": true, - "optional": true, "dependencies": { - "string-width": "^1.0.2 || 2 || 3 || 4" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "node_modules/ws": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.4.2.tgz", - "integrity": "sha512-Kbk4Nxyq7/ZWqr/tarI9yIt/+iNNFOjBXEWgTb4ydaNHBNGgvf2QHbS9fdfsndfjFlFwEd4Al+mw83YkaD10ZA==", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "debug": "^4.3.4" + }, "engines": { - "node": ">=10.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { + "typescript": { "optional": true } } }, - "node_modules/xmlbuilder": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", - "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", + "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0" + }, "engines": { - "node": ">=4.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", + "node_modules/@typescript-eslint/type-utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", + "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", "dev": true, "dependencies": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" + "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/yazl": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/yazl/-/yazl-2.5.1.tgz", - "integrity": "sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw==", + "node_modules/@typescript-eslint/type-utils/node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", "dev": true, "dependencies": { - "buffer-crc32": "~0.2.3" + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" } }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "node_modules/@typescript-eslint/types": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", + "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", "dev": true, "engines": { - "node": ">=6" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } - } - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", - "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", + "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", "dev": true, - "requires": { - "@babel/highlight": "^7.10.1" + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "@babel/helper-validator-identifier": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.1.tgz", - "integrity": "sha512-5vW/JXLALhczRCWP0PnFDMCJAchlBvM7f4uk/jXritBnIa6E1KmqmtrS3yn1LAnxFBypQ3eneLuXjsnfQsgILw==", - "dev": true - }, - "@babel/highlight": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", - "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", + "node_modules/@typescript-eslint/typescript-estree/node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.10.1", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" } }, - "@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "node_modules/@typescript-eslint/utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", + "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", "dev": true, - "requires": { - "@jridgewell/trace-mapping": "0.3.9" + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "@esbuild/linux-loong64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.2.tgz", - "integrity": "sha512-lcfRxKY3CIBFop9slpNu04+fGro1S0QN5n+HrbOwR6eHHdYeidvMtSVK4vbbYmEMwQr3MFAt2yU6bhwl4dqL/A==", + "node_modules/@typescript-eslint/utils/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, - "optional": true - }, - "@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "dev": true - }, - "@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "dev": true + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } }, - "@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", + "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", "dev": true, - "requires": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "@tsconfig/node10": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", - "dev": true - }, - "@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true - }, - "@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true - }, - "@tsconfig/node16": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", - "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", - "dev": true - }, - "@types/marked": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/@types/marked/-/marked-0.6.5.tgz", - "integrity": "sha512-6kBKf64aVfx93UJrcyEZ+OBM5nGv4RLsI6sR1Ar34bpgvGVRoyTgpxn4ZmtxOM5aDTAaaznYuYUH8bUX3Nk3YA==", - "dev": true - }, - "@types/mocha": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-9.1.0.tgz", - "integrity": "sha512-QCWHkbMv4Y5U9oW10Uxbr45qMMSzl4OzijsozynUAgx3kEHUdXB00udx2dWDQ7f2TU2a2uuiFaRZjCe3unPpeg==", - "dev": true - }, - "@types/node": { - "version": "18.18.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.18.3.tgz", - "integrity": "sha512-0OVfGupTl3NBFr8+iXpfZ8NR7jfFO+P1Q+IO/q0wbo02wYkP5gy36phojeYWpLQ6WAMjl+VfmqUk2YbUfp0irA==", - "dev": true - }, - "@types/prismjs": { - "version": "1.16.8", - "resolved": "https://registry.npmjs.org/@types/prismjs/-/prismjs-1.16.8.tgz", - "integrity": "sha512-I8v3yZIvhIwB55MhV+9+FhK5OMokviuQQP4vGmffW18iQGw5cyB6CaBGWFhcIJk+0cyi/PNhNPedlUYTAHoc2Q==", - "dev": true - }, - "@types/vscode": { - "version": "1.82.0", - "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.82.0.tgz", - "integrity": "sha512-VSHV+VnpF8DEm8LNrn8OJ8VuUNcBzN3tMvKrNpbhhfuVjFm82+6v44AbDhLvVFgCzn6vs94EJNTp7w8S6+Q1Rw==", - "dev": true - }, - "@types/ws": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz", - "integrity": "sha512-NOn5eIcgWLOo6qW8AcuLZ7G8PycXu0xTxxkS6Q18VWFxgPUSOwV0pBj2a/4viNZVu25i7RIB7GttdkAIUUXOOg==", - "dev": true, - "requires": { - "@types/node": "*" + "node_modules/@vscode/debugadapter": { + "version": "1.64.0", + "resolved": "https://registry.npmjs.org/@vscode/debugadapter/-/debugadapter-1.64.0.tgz", + "integrity": "sha512-XygE985qmNCzJExDnam4bErK6FG9Ck8S5TRPDNESwkt7i3OXqw5a3vYb7Dteyhz9YMEf7hwhFoT46Mjc45nJUg==", + "dependencies": { + "@vscode/debugprotocol": "1.64.0" + }, + "engines": { + "node": ">=14" } }, - "@vscode/vsce": { + "node_modules/@vscode/debugprotocol": { + "version": "1.64.0", + "resolved": "https://registry.npmjs.org/@vscode/debugprotocol/-/debugprotocol-1.64.0.tgz", + "integrity": "sha512-Zhf3KvB+J04M4HPE2yCvEILGVtPixXUQMLBvx4QcAtjhc5lnwlZbbt80LCsZO2B+2BH8RMgVXk3QQ5DEzEne2Q==" + }, + "node_modules/@vscode/vsce": { "version": "2.21.1", "resolved": "https://registry.npmjs.org/@vscode/vsce/-/vsce-2.21.1.tgz", "integrity": "sha512-f45/aT+HTubfCU2oC7IaWnH9NjOWp668ML002QiFObFRVUCoLtcwepp9mmql/ArFUy+HCHp54Xrq4koTcOD6TA==", "dev": true, - "requires": { + "dependencies": { "azure-devops-node-api": "^11.0.1", "chalk": "^2.4.2", "cheerio": "^1.0.0-rc.9", @@ -2587,7 +1019,6 @@ "glob": "^7.0.6", "hosted-git-info": "^4.0.2", "jsonc-parser": "^3.2.0", - "keytar": "^7.7.0", "leven": "^3.1.0", "markdown-it": "^12.3.2", "mime": "^1.3.4", @@ -2602,213 +1033,343 @@ "yauzl": "^2.3.1", "yazl": "^2.2.2" }, + "bin": { + "vsce": "vsce" + }, + "engines": { + "node": ">= 14" + }, + "optionalDependencies": { + "keytar": "^7.7.0" + } + }, + "node_modules/@vscode/vsce/node_modules/commander": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", + "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@vscode/vsce/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@vscode/vsce/node_modules/xml2js": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", + "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", + "dev": true, "dependencies": { - "commander": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", - "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", - "dev": true - }, - "semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "xml2js": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", - "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", - "dev": true, - "requires": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - } - } + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" } }, - "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true + "node_modules/acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } }, - "acorn-walk": { + "node_modules/acorn-walk": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } }, - "ansi-regex": { + "node_modules/ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "dev": true, - "optional": true + "optional": true, + "engines": { + "node": ">=0.10.0" + } }, - "ansi-styles": { + "node_modules/ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, - "requires": { + "dependencies": { "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" } }, - "aproba": { + "node_modules/aproba": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", "dev": true, "optional": true }, - "are-we-there-yet": { + "node_modules/are-we-there-yet": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz", "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==", "dev": true, "optional": true, - "requires": { + "dependencies": { "delegates": "^1.0.0", "readable-stream": "^2.0.6" } }, - "arg": { + "node_modules/arg": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", "dev": true }, - "argparse": { + "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, - "requires": { + "dependencies": { "sprintf-js": "~1.0.2" } }, - "await-notify": { + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/await-notify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/await-notify/-/await-notify-1.0.1.tgz", "integrity": "sha1-C0gTOyLlJBgeEVV2ZRhfKi885Hw=" }, - "azure-devops-node-api": { + "node_modules/azure-devops-node-api": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-11.1.0.tgz", "integrity": "sha512-6/2YZuf+lJzJLrjXNYEA5RXAkMCb8j/4VcHD0qJQRsgG/KsRMYo0HgDh0by1FGHyZkQWY5LmQyJqCwRVUB3Y7Q==", "dev": true, - "requires": { + "dependencies": { "tunnel": "0.0.6", "typed-rest-client": "^1.8.4" } }, - "balanced-match": { + "node_modules/balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, - "base64-js": { + "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], "optional": true }, - "bl": { + "node_modules/bl": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", "dev": true, "optional": true, - "requires": { + "dependencies": { "buffer": "^5.5.0", "inherits": "^2.0.4", "readable-stream": "^3.4.0" - }, + } + }, + "node_modules/bl/node_modules/readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "optional": true, "dependencies": { - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "optional": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" } }, - "boolbase": { + "node_modules/boolbase": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", "dev": true }, - "brace-expansion": { + "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { + "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, - "buffer": { + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/buffer": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], "optional": true, - "requires": { + "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" } }, - "buffer-crc32": { + "node_modules/buffer-crc32": { "version": "0.2.13", "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", - "dev": true + "dev": true, + "engines": { + "node": "*" + } }, - "builtin-modules": { + "node_modules/builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "call-bind": { + "node_modules/call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", "dev": true, - "requires": { + "dependencies": { "function-bind": "^1.1.1", "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" } }, - "chalk": { + "node_modules/chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, - "requires": { + "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" } }, - "cheerio": { + "node_modules/cheerio": { "version": "1.0.0-rc.10", "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.10.tgz", "integrity": "sha512-g0J0q/O6mW8z5zxQ3A8E8J1hUgp4SMOvEoW/x84OwyHKe/Zccz83PVT4y5Crcr530FV6NgmKI1qvGTKVl9XXVw==", "dev": true, - "requires": { + "dependencies": { "cheerio-select": "^1.5.0", "dom-serializer": "^1.3.2", "domhandler": "^4.2.0", @@ -2817,393 +1378,689 @@ "parse5-htmlparser2-tree-adapter": "^6.0.1", "tslib": "^2.2.0" }, - "dependencies": { - "tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", - "dev": true - } + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/cheeriojs/cheerio?sponsor=1" } }, - "cheerio-select": { + "node_modules/cheerio-select": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-1.5.0.tgz", "integrity": "sha512-qocaHPv5ypefh6YNxvnbABM07KMxExbtbfuJoIie3iZXX1ERwYmJcIiRrr9H05ucQP1k28dav8rpdDgjQd8drg==", "dev": true, - "requires": { + "dependencies": { "css-select": "^4.1.3", "css-what": "^5.0.1", "domelementtype": "^2.2.0", "domhandler": "^4.2.0", "domutils": "^2.7.0" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" } }, - "chownr": { + "node_modules/cheerio/node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "dev": true + }, + "node_modules/chownr": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", "dev": true, "optional": true }, - "code-point-at": { + "node_modules/code-point-at": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true, - "optional": true + "optional": true, + "engines": { + "node": ">=0.10.0" + } }, - "color-convert": { + "node_modules/color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, - "requires": { + "dependencies": { "color-name": "1.1.3" } }, - "color-name": { + "node_modules/color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", "dev": true }, - "commander": { + "node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", "dev": true }, - "concat-map": { + "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, - "console-control-strings": { + "node_modules/console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", "dev": true, "optional": true }, - "core-util-is": { + "node_modules/core-util-is": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", "dev": true, "optional": true }, - "create-require": { + "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", "dev": true }, - "css-select": { + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/css-select": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.2.1.tgz", "integrity": "sha512-/aUslKhzkTNCQUB2qTX84lVmfia9NyjP3WpDGtj/WxhwBzWBYUV3DgUpurHTme8UTPcPlAD1DJ+b0nN/t50zDQ==", "dev": true, - "requires": { + "dependencies": { "boolbase": "^1.0.0", "css-what": "^5.1.0", "domhandler": "^4.3.0", "domutils": "^2.8.0", "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" } }, - "css-what": { + "node_modules/css-what": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/css-what/-/css-what-5.1.0.tgz", "integrity": "sha512-arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } }, - "decompress-response": { + "node_modules/decompress-response": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz", "integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==", "dev": true, "optional": true, - "requires": { + "dependencies": { "mimic-response": "^2.0.0" + }, + "engines": { + "node": ">=8" } }, - "deep-extend": { + "node_modules/deep-extend": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "dev": true, - "optional": true + "optional": true, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true }, - "delegates": { + "node_modules/delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", "dev": true, "optional": true }, - "detect-libc": { + "node_modules/detect-libc": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", "dev": true, - "optional": true + "optional": true, + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } }, - "diff": { + "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } }, - "dom-serializer": { + "node_modules/dom-serializer": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz", "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==", "dev": true, - "requires": { + "dependencies": { "domelementtype": "^2.0.1", "domhandler": "^4.2.0", "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" } }, - "dom-walk": { + "node_modules/dom-walk": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.2.tgz", "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==" }, - "domelementtype": { + "node_modules/domelementtype": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==", - "dev": true + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ] }, - "domhandler": { + "node_modules/domhandler": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.0.tgz", "integrity": "sha512-fC0aXNQXqKSFTr2wDNZDhsEYjCiYsDWl3D01kwt25hm1YIPyDGHvvi3rw+PLqHAl/m71MaiF7d5zvBr0p5UB2g==", "dev": true, - "requires": { + "dependencies": { "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" } }, - "domutils": { + "node_modules/domutils": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", "dev": true, - "requires": { + "dependencies": { "dom-serializer": "^1.0.1", "domelementtype": "^2.2.0", "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" } }, - "duplexer": { + "node_modules/duplexer": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=" }, - "end-of-stream": { + "node_modules/end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dev": true, "optional": true, - "requires": { + "dependencies": { "once": "^1.4.0" } }, - "entities": { + "node_modules/entities": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "dev": true + "dev": true, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } }, - "esbuild": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.2.tgz", - "integrity": "sha512-iKfJsm2u5ATPI3x3sq/WrxISWhAZB/VpvygGG8Pr3q+xQhkIhyI737t+xUa71f50g0ioihQSGaHiQO5hbVDoSQ==", - "dev": true, - "requires": { - "@esbuild/linux-loong64": "0.15.2", - "esbuild-android-64": "0.15.2", - "esbuild-android-arm64": "0.15.2", - "esbuild-darwin-64": "0.15.2", - "esbuild-darwin-arm64": "0.15.2", - "esbuild-freebsd-64": "0.15.2", - "esbuild-freebsd-arm64": "0.15.2", - "esbuild-linux-32": "0.15.2", - "esbuild-linux-64": "0.15.2", - "esbuild-linux-arm": "0.15.2", - "esbuild-linux-arm64": "0.15.2", - "esbuild-linux-mips64le": "0.15.2", - "esbuild-linux-ppc64le": "0.15.2", - "esbuild-linux-riscv64": "0.15.2", - "esbuild-linux-s390x": "0.15.2", - "esbuild-netbsd-64": "0.15.2", - "esbuild-openbsd-64": "0.15.2", - "esbuild-sunos-64": "0.15.2", - "esbuild-windows-32": "0.15.2", - "esbuild-windows-64": "0.15.2", - "esbuild-windows-arm64": "0.15.2" - } - }, - "esbuild-android-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.2.tgz", - "integrity": "sha512-lEyRmwmdkkKBpIOi0wKGheuCPECgl5/GCOQkhVpDFEj1lec3cinEk37EbD3f4PUvix1eAHtTa0UI1ga0Bznntg==", + "node_modules/esbuild": { + "version": "0.17.19", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.19.tgz", + "integrity": "sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==", "dev": true, - "optional": true + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.17.19", + "@esbuild/android-arm64": "0.17.19", + "@esbuild/android-x64": "0.17.19", + "@esbuild/darwin-arm64": "0.17.19", + "@esbuild/darwin-x64": "0.17.19", + "@esbuild/freebsd-arm64": "0.17.19", + "@esbuild/freebsd-x64": "0.17.19", + "@esbuild/linux-arm": "0.17.19", + "@esbuild/linux-arm64": "0.17.19", + "@esbuild/linux-ia32": "0.17.19", + "@esbuild/linux-loong64": "0.17.19", + "@esbuild/linux-mips64el": "0.17.19", + "@esbuild/linux-ppc64": "0.17.19", + "@esbuild/linux-riscv64": "0.17.19", + "@esbuild/linux-s390x": "0.17.19", + "@esbuild/linux-x64": "0.17.19", + "@esbuild/netbsd-x64": "0.17.19", + "@esbuild/openbsd-x64": "0.17.19", + "@esbuild/sunos-x64": "0.17.19", + "@esbuild/win32-arm64": "0.17.19", + "@esbuild/win32-ia32": "0.17.19", + "@esbuild/win32-x64": "0.17.19" + } }, - "esbuild-android-arm64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.2.tgz", - "integrity": "sha512-znXfd7QBNrpAVnB8ZP5Zj4a3ah5dPBPZwbn6v0f4Lub4iwwZJ1h34VWMuo2f7KZdIbl2axrei6FxlQncS8zzEw==", + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true, - "optional": true + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint": { + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.51.0.tgz", + "integrity": "sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.2", + "@eslint/js": "8.51.0", + "@humanwhocodes/config-array": "^0.11.11", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } }, - "esbuild-darwin-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.2.tgz", - "integrity": "sha512-keNq6K+qhEJ5kZ6L1UJGYjAnv6Kkpf2KjOjC6r0JMsX6ZAaXnA3OqqXJttEYzBKpZ+W6/T+paS4Slzk3N2bSvQ==", + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, - "optional": true + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/eslint/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } }, - "esbuild-darwin-arm64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.2.tgz", - "integrity": "sha512-H/0vtLB/dY+TVGsAskmyuaQ7qegNVi+A4N5a+vpPHPFutzoGjcj4tf/77jZ3UsMTlN1dq+Ldala1P1pf486L8Q==", + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "optional": true + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } }, - "esbuild-freebsd-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.2.tgz", - "integrity": "sha512-KMskcfVTisa2h/xaOwmoWEBm6CVWbKbrnEAv3sEfOF0wodjQfcPvW7HAxatMGL7AW9PIUP6UXLCCCUUnxL2yLQ==", - "dev": true, - "optional": true + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "esbuild-freebsd-arm64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.2.tgz", - "integrity": "sha512-RJJ3c4L6XGfZeiFqphK58KL+3LfrmebMLgB9QJ0Gygmjx1F6tnLUrLwNBNXrpMT7X4bEtCvP9Gvhkt5HVTdt7g==", + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, - "optional": true + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "esbuild-linux-32": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.2.tgz", - "integrity": "sha512-GfCEEs+D+vBrluCUBFr3MP8/PH/fNc5xl2JbsHkwivBXlbORXf5m4Ts8vII9qPxEkLAUsoYx4Bjp+Ca0WqQ9tA==", + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, - "optional": true + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } }, - "esbuild-linux-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.2.tgz", - "integrity": "sha512-F6GfpZrcTisWFrJZdx73NNVjY64iOqhxFsdmnftHZFfeLG4KyJg9hO5kd6E+Rq3udoRk41jPS+fg0+iCyq5Utg==", + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, - "optional": true + "engines": { + "node": ">=4.0" + } }, - "esbuild-linux-arm": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.2.tgz", - "integrity": "sha512-u2YXH9ZCuyN9KwcpKCzhgUckBgy8O07oivv3cV/Z+WnFOjXhKFc+IY0v41nFODPEzEIbozMUx8boVexvHMXHDA==", + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "optional": true + "engines": { + "node": ">=8" + } }, - "esbuild-linux-arm64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.2.tgz", - "integrity": "sha512-CacsuBpOzU/WVWMS19iGHCrijgheCtmNb9mjlvpoxwLEVjHycc9/X+Pup6vp8dk5jRrhm/7lkY8Fbw9OxM+oug==", + "node_modules/eslint/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, - "optional": true + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } }, - "esbuild-linux-mips64le": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.2.tgz", - "integrity": "sha512-VY8pEtXAEyPfVCP/SKPGxaiNF7b259Le0wvEPQTYMeJycAVfahBhpg/9qk2Ufd7mMVGT7G2izr86jJsvuiMVZw==", + "node_modules/eslint/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "optional": true + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } }, - "esbuild-linux-ppc64le": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.2.tgz", - "integrity": "sha512-+Sma8cuiVciTU+xuqErEU4hm8k2bMivqEXPGsXFPKJAV2XrLQlkT5zuPA4FWuKpxwVLUxxuYhkq0nv4j5Dv/3Q==", + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "optional": true + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } }, - "esbuild-linux-riscv64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.2.tgz", - "integrity": "sha512-HkqtnuEiVq2VvqD6Wb9LEWAedbpxXkq7h3Imop6vaAQUr5z8HROfTyY349QsP9aGY3aF/NiBkX20C6vOqTex8A==", + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dev": true, - "optional": true + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } }, - "esbuild-linux-s390x": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.2.tgz", - "integrity": "sha512-nIqNFoovQRoz/YBm64xRWXT4yg5BtT2DXA8ogI8lJKy6B+mOKeOVVkvAbFU5YrvUq6AHhMuCsoa3CYFK5a4/vg==", + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true, - "optional": true + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } }, - "esbuild-netbsd-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.2.tgz", - "integrity": "sha512-CY5kHo3C3+aY1VBv76lDTe/D/+4nkhA6cE8ENRezeEvWmu8pPqnIVk1cy/jLNNPBYkbZiR30z/QeZy5yWsW1kg==", + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, - "optional": true + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } }, - "esbuild-openbsd-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.2.tgz", - "integrity": "sha512-fXpQW8I6Lm9gJubvW/QjR1OwQQ4tMriVhxznJJmbaX7EYHtcog6Fy+xqbl+YUBZ3dxmEBkBXd6LZaXkn10yavQ==", + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, - "optional": true + "engines": { + "node": ">=4.0" + } }, - "esbuild-sunos-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.2.tgz", - "integrity": "sha512-8xaprqT/rxfbxljQrd2A4iASOnw46eiieghh6JgzjlrXP/6kbhN3fe8IgQclcdu6SjDPmQvNSURQ5xCeVATpbQ==", + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, - "optional": true + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } }, - "esbuild-windows-32": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.2.tgz", - "integrity": "sha512-lGLNGBmDQ0gZphbUfxT7n6OO1l6iOQM2xnYN90+etzTWZeI76CYLbVPCZR+kp3vzyIRAbcsS6NtM4SknHAwEww==", + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, - "optional": true + "engines": { + "node": ">=4.0" + } }, - "esbuild-windows-64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.2.tgz", - "integrity": "sha512-Rc6cUwOiQiGgpAxlCl8Lj3o2Ds4n3OU8UyoWpOBXmms+gXdwlKBzxjwj5FxrZJ6EveYpFqzDP07tbzOa9YpTKw==", + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", "dev": true, - "optional": true + "engines": { + "node": ">=4.0" + } }, - "esbuild-windows-arm64": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.2.tgz", - "integrity": "sha512-0bpQcIvd6TBIThA+nr9QsTfaU23Co5IPMlXmuNja6buDEu92b9im9ZMGV/BLF+jwKwG8/f1L/0Yfl9QzNuH4Eg==", + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true, - "optional": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "engines": { + "node": ">=0.10.0" + } }, - "event-stream": { + "node_modules/event-stream": { "version": "3.3.4", "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", "integrity": "sha1-SrTJoPWlTbkzi0w02Gv86PSzVXE=", - "requires": { + "dependencies": { "duplexer": "~0.1.1", "from": "~0", "map-stream": "~0.1.0", @@ -3213,53 +2070,171 @@ "through": "~2.3.1" } }, - "expand-template": { + "node_modules/expand-template": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", "dev": true, - "optional": true + "optional": true, + "engines": { + "node": ">=6" + } }, - "fd-slicer": { + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fd-slicer": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", "dev": true, - "requires": { + "dependencies": { "pend": "~1.2.0" } }, - "from": { + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.1.tgz", + "integrity": "sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", + "dev": true + }, + "node_modules/from": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=" }, - "fs-constants": { + "node_modules/fs-constants": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", "dev": true, "optional": true }, - "fs.realpath": { + "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, - "function-bind": { + "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, - "gauge": { + "node_modules/gauge": { "version": "2.7.4", "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "dev": true, "optional": true, - "requires": { + "dependencies": { "aproba": "^1.0.3", "console-control-strings": "^1.0.0", "has-unicode": "^2.0.0", @@ -3270,440 +2245,886 @@ "wide-align": "^1.1.0" } }, - "get-intrinsic": { + "node_modules/get-intrinsic": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", "dev": true, - "requires": { + "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", "has-symbols": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "github-from-package": { + "node_modules/github-from-package": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", "integrity": "sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=", "dev": true, "optional": true }, - "glob": { + "node_modules/glob": { "version": "7.1.6", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", "dev": true, - "requires": { + "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.0.4", "once": "^1.3.0", "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "global": { + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/global": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/global/-/global-4.4.0.tgz", "integrity": "sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==", - "requires": { + "dependencies": { "min-document": "^2.19.0", "process": "^0.11.10" } }, - "has": { + "node_modules/globals": { + "version": "13.23.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", + "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "dev": true, - "requires": { + "dependencies": { "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" } }, - "has-flag": { + "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "has-symbols": { + "node_modules/has-symbols": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "has-unicode": { + "node_modules/has-unicode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", "dev": true, "optional": true }, - "hosted-git-info": { + "node_modules/hosted-git-info": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", "dev": true, - "requires": { + "dependencies": { "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" } }, - "htmlparser2": { + "node_modules/htmlparser2": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", "dev": true, - "requires": { + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "dependencies": { "domelementtype": "^2.0.1", "domhandler": "^4.0.0", "domutils": "^2.5.2", "entities": "^2.0.0" } }, - "ieee754": { + "node_modules/ieee754": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], "optional": true }, - "inflight": { + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, - "requires": { + "dependencies": { "once": "^1.3.0", "wrappy": "1" } }, - "inherits": { + "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, - "ini": { + "node_modules/ini": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", "dev": true, "optional": true }, - "is-fullwidth-code-point": { + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "optional": true, - "requires": { + "dependencies": { "number-is-nan": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" } }, - "isarray": { + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true, "optional": true }, - "js-tokens": { + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true }, - "js-yaml": { + "node_modules/js-yaml": { "version": "3.14.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", "dev": true, - "requires": { + "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "jsonc-parser": { + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonc-parser": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", "dev": true }, - "keytar": { + "node_modules/keytar": { "version": "7.7.0", "resolved": "https://registry.npmjs.org/keytar/-/keytar-7.7.0.tgz", "integrity": "sha512-YEY9HWqThQc5q5xbXbRwsZTh2PJ36OSYRjSv3NN2xf5s5dpLTjEZnC2YikR29OaVybf9nQ0dJ/80i40RS97t/A==", "dev": true, + "hasInstallScript": true, "optional": true, - "requires": { + "dependencies": { "node-addon-api": "^3.0.0", "prebuild-install": "^6.0.0" } }, - "leven": { + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/leven": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } }, - "linkify-it": { + "node_modules/linkify-it": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz", "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==", "dev": true, - "requires": { + "dependencies": { "uc.micro": "^1.0.1" } }, - "lru-cache": { + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { + "dependencies": { "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" } }, - "make-error": { + "node_modules/make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", "dev": true }, - "map-stream": { + "node_modules/map-stream": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", "integrity": "sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=" }, - "markdown-it": { + "node_modules/markdown-it": { "version": "12.3.2", "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz", "integrity": "sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==", "dev": true, - "requires": { + "dependencies": { "argparse": "^2.0.1", "entities": "~2.1.0", "linkify-it": "^3.0.1", "mdurl": "^1.0.1", "uc.micro": "^1.0.5" }, - "dependencies": { - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "entities": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", - "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==", - "dev": true - } + "bin": { + "markdown-it": "bin/markdown-it.js" } }, - "marked": { + "node_modules/markdown-it/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/markdown-it/node_modules/entities": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", + "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==", + "dev": true, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/marked": { "version": "4.0.11", "resolved": "https://registry.npmjs.org/marked/-/marked-4.0.11.tgz", - "integrity": "sha512-xL2aJ5JDggqToKOqKHJWIDXaYk24XoGm1mNlhSPFP+0OKRCcKx+/hH7hlAr5LYqBKUzqCANylALgwNstVRgtCw==" + "integrity": "sha512-xL2aJ5JDggqToKOqKHJWIDXaYk24XoGm1mNlhSPFP+0OKRCcKx+/hH7hlAr5LYqBKUzqCANylALgwNstVRgtCw==", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 12" + } }, - "mdurl": { + "node_modules/mdurl": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", "integrity": "sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=", "dev": true }, - "mime": { + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true + "dev": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } }, - "mimic-response": { + "node_modules/mimic-response": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz", "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==", "dev": true, - "optional": true + "optional": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "min-document": { + "node_modules/min-document": { "version": "2.19.0", "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.0.tgz", "integrity": "sha1-e9KC4/WELtKVu3SM3Z8f+iyCRoU=", - "requires": { + "dependencies": { "dom-walk": "^0.1.0" } }, - "minimatch": { + "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "requires": { + "dependencies": { "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" } }, - "minimist": { + "node_modules/minimist": { "version": "1.2.6", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", + "dev": true }, - "mkdirp": { + "node_modules/mkdirp": { "version": "0.5.5", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "requires": { + "dev": true, + "dependencies": { "minimist": "^1.2.5" + }, + "bin": { + "mkdirp": "bin/cmd.js" } }, - "mkdirp-classic": { + "node_modules/mkdirp-classic": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", "dev": true, "optional": true }, - "mute-stream": { + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/mute-stream": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", "dev": true }, - "napi-build-utils": { + "node_modules/napi-build-utils": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz", "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==", "dev": true, "optional": true }, - "net": { + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true + }, + "node_modules/net": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/net/-/net-1.0.2.tgz", "integrity": "sha1-0XV+yaf7I3HYPPR1XOPifhCCk4g=" }, - "node-abi": { + "node_modules/node-abi": { "version": "2.30.1", "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.30.1.tgz", "integrity": "sha512-/2D0wOQPgaUWzVSVgRMx+trKJRC2UG4SUc4oCJoXx9Uxjtp0Vy3/kt7zcbxHF8+Z/pK3UloLWzBISg72brfy1w==", "dev": true, "optional": true, - "requires": { + "dependencies": { "semver": "^5.4.1" } }, - "node-addon-api": { + "node_modules/node-addon-api": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==", "dev": true, "optional": true }, - "npmlog": { + "node_modules/npmlog": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "dev": true, "optional": true, - "requires": { + "dependencies": { "are-we-there-yet": "~1.1.2", "console-control-strings": "~1.1.0", "gauge": "~2.7.3", "set-blocking": "~2.0.0" } }, - "nth-check": { + "node_modules/nth-check": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz", "integrity": "sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==", "dev": true, - "requires": { + "dependencies": { "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" } }, - "number-is-nan": { + "node_modules/number-is-nan": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", "dev": true, - "optional": true + "optional": true, + "engines": { + "node": ">=0.10.0" + } }, - "object-assign": { + "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true, - "optional": true + "optional": true, + "engines": { + "node": ">=0.10.0" + } }, - "object-inspect": { + "node_modules/object-inspect": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.0.tgz", "integrity": "sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g==", - "dev": true + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "once": { + "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, - "requires": { + "dependencies": { "wrappy": "1" } }, - "parse-semver": { + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-semver": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/parse-semver/-/parse-semver-1.1.1.tgz", "integrity": "sha1-mkr9bfBj3Egm+T+6SpnPIj9mbLg=", "dev": true, - "requires": { + "dependencies": { "semver": "^5.1.0" } }, - "parse5": { + "node_modules/parse5": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", "dev": true }, - "parse5-htmlparser2-tree-adapter": { + "node_modules/parse5-htmlparser2-tree-adapter": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz", "integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==", "dev": true, - "requires": { + "dependencies": { "parse5": "^6.0.1" } }, - "path-is-absolute": { + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } }, - "path-parse": { + "node_modules/path-parse": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, - "pause-stream": { + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/pause-stream": { "version": "0.0.11", "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", - "requires": { + "dependencies": { "through": "~2.3" } }, - "pend": { + "node_modules/pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", "dev": true }, - "prebuild-install": { + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/prebuild-install": { "version": "6.1.4", "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-6.1.4.tgz", "integrity": "sha512-Z4vpywnK1lBg+zdPCVCsKq0xO66eEV9rWo2zrROGGiRS4JtueBOdlB1FnY8lcy7JsUud/Q3ijUxyWN26Ika0vQ==", "dev": true, "optional": true, - "requires": { + "dependencies": { "detect-libc": "^1.0.3", "expand-template": "^2.0.3", "github-from-package": "0.0.0", @@ -3717,82 +3138,150 @@ "simple-get": "^3.0.3", "tar-fs": "^2.0.0", "tunnel-agent": "^0.6.0" + }, + "bin": { + "prebuild-install": "bin.js" + }, + "engines": { + "node": ">=6" } }, - "prismjs": { + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prismjs": { "version": "1.29.0", "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", - "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==" + "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==", + "engines": { + "node": ">=6" + } }, - "process": { + "node_modules/process": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=" + "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", + "engines": { + "node": ">= 0.6.0" + } }, - "process-nextick-args": { + "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true, "optional": true }, - "ps-tree": { + "node_modules/ps-tree": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.2.0.tgz", "integrity": "sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA==", - "requires": { + "dependencies": { "event-stream": "=3.3.4" + }, + "bin": { + "ps-tree": "bin/ps-tree.js" + }, + "engines": { + "node": ">= 0.10" } }, - "pump": { + "node_modules/pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "dev": true, "optional": true, - "requires": { + "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, - "qs": { + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { "version": "6.10.3", "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.3.tgz", "integrity": "sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==", "dev": true, - "requires": { + "dependencies": { "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "rc": { + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/rc": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "dev": true, "optional": true, - "requires": { + "dependencies": { "deep-extend": "^0.6.0", "ini": "~1.3.0", "minimist": "^1.2.0", "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" } }, - "read": { + "node_modules/read": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz", "integrity": "sha1-s9oZvQUkMal2cdRKQmNK33ELQMQ=", "dev": true, - "requires": { + "dependencies": { "mute-stream": "~0.0.4" + }, + "engines": { + "node": ">=0.8" } }, - "readable-stream": { + "node_modules/readable-stream": { "version": "2.3.7", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", "dev": true, "optional": true, - "requires": { + "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", @@ -3802,226 +3291,379 @@ "util-deprecate": "~1.0.1" } }, - "resolve": { + "node_modules/resolve": { "version": "1.17.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", "dev": true, - "requires": { + "dependencies": { "path-parse": "^1.0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" } }, - "rimraf": { + "node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, - "requires": { + "dependencies": { "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" } }, - "safe-buffer": { + "node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true, "optional": true }, - "sax": { + "node_modules/sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", "dev": true }, - "semver": { + "node_modules/semver": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true + "dev": true, + "bin": { + "semver": "bin/semver" + } }, - "set-blocking": { + "node_modules/set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true, "optional": true }, - "side-channel": { + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.0", "get-intrinsic": "^1.0.2", "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "signal-exit": { + "node_modules/signal-exit": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.6.tgz", "integrity": "sha512-sDl4qMFpijcGw22U5w63KmD3cZJfBuFlVNbVMKje2keoKML7X2UzWbc4XrmEbDwg0NXJc3yv4/ox7b+JWb57kQ==", "dev": true, "optional": true }, - "simple-concat": { + "node_modules/simple-concat": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], "optional": true }, - "simple-get": { + "node_modules/simple-get": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz", "integrity": "sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==", "dev": true, "optional": true, - "requires": { + "dependencies": { "decompress-response": "^4.2.0", "once": "^1.3.1", "simple-concat": "^1.0.0" } }, - "split": { + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/split": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", "integrity": "sha1-zQ7qXmOiEd//frDwkcQTPi0N0o8=", - "requires": { + "dependencies": { "through": "2" + }, + "engines": { + "node": "*" } }, - "sprintf-js": { + "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, - "stream-combiner": { + "node_modules/stream-combiner": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", "integrity": "sha1-TV5DPBhSYd3mI8o/RMWGvPXErRQ=", - "requires": { + "dependencies": { "duplexer": "~0.1.1" } }, - "string_decoder": { + "node_modules/string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "optional": true, - "requires": { + "dependencies": { "safe-buffer": "~5.1.0" } }, - "string-width": { + "node_modules/string-width": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "optional": true, - "requires": { + "dependencies": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", "strip-ansi": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "strip-ansi": { + "node_modules/strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "optional": true, - "requires": { + "dependencies": { "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" } }, - "strip-json-comments": { + "node_modules/strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "dev": true, - "optional": true + "optional": true, + "engines": { + "node": ">=0.10.0" + } }, - "supports-color": { + "node_modules/supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, - "requires": { + "dependencies": { "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" } }, - "tar-fs": { + "node_modules/tar-fs": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", "dev": true, "optional": true, - "requires": { + "dependencies": { "chownr": "^1.1.1", "mkdirp-classic": "^0.5.2", "pump": "^3.0.0", "tar-stream": "^2.1.4" } }, - "tar-stream": { + "node_modules/tar-stream": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", "dev": true, "optional": true, - "requires": { + "dependencies": { "bl": "^4.0.3", "end-of-stream": "^1.4.1", "fs-constants": "^1.0.0", "inherits": "^2.0.3", "readable-stream": "^3.1.1" }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tar-stream/node_modules/readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "optional": true, "dependencies": { - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "optional": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" } }, - "terminate": { + "node_modules/terminate": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/terminate/-/terminate-2.5.0.tgz", "integrity": "sha512-WnhIjfoTiIvmrfey4GSkqJevEHbIFnSdKeutHwA+cm81/1+GlAHLw1pBKxsKqkrqMaQKK65V6WrvUa851phbgA==", - "requires": { + "dependencies": { "ps-tree": "^1.2.0" + }, + "engines": { + "node": ">=0.10" } }, - "through": { + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" }, - "tmp": { + "node_modules/tmp": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", "dev": true, - "requires": { + "dependencies": { "rimraf": "^3.0.0" + }, + "engines": { + "node": ">=8.17.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" } }, - "ts-node": { + "node_modules/ts-node": { "version": "10.9.1", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", "dev": true, - "requires": { + "dependencies": { "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", "@tsconfig/node12": "^1.0.7", @@ -4035,20 +3677,56 @@ "make-error": "^1.1.1", "v8-compile-cache-lib": "^3.0.1", "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } } }, - "tslib": { + "node_modules/tsconfig-paths": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz", + "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==", + "dev": true, + "dependencies": { + "json5": "^2.2.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tslib": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", "dev": true }, - "tslint": { + "node_modules/tslint": { "version": "5.20.1", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.1.tgz", "integrity": "sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg==", "dev": true, - "requires": { + "dependencies": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", "chalk": "^2.3.0", @@ -4062,191 +3740,292 @@ "semver": "^5.3.0", "tslib": "^1.8.0", "tsutils": "^2.29.0" + }, + "bin": { + "tslint": "bin/tslint" + }, + "engines": { + "node": ">=4.8.0" + }, + "peerDependencies": { + "typescript": ">=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >=3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev" } }, - "tsutils": { + "node_modules/tsutils": { "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", "dev": true, - "requires": { + "dependencies": { "tslib": "^1.8.1" + }, + "peerDependencies": { + "typescript": ">=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >= 3.0.0-dev || >= 3.1.0-dev" } }, - "tunnel": { + "node_modules/tunnel": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.6.11 <=0.7.0 || >=0.7.3" + } }, - "tunnel-agent": { + "node_modules/tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", "dev": true, "optional": true, - "requires": { + "dependencies": { "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "typed-rest-client": { + "node_modules/typed-rest-client": { "version": "1.8.6", "resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.6.tgz", "integrity": "sha512-xcQpTEAJw2DP7GqVNECh4dD+riS+C1qndXLfBCJ3xk0kqprtGN491P5KlmrDbKdtuW8NEcP/5ChxiJI3S9WYTA==", "dev": true, - "requires": { + "dependencies": { "qs": "^6.9.1", "tunnel": "0.0.6", "underscore": "^1.12.1" } }, - "typescript": { + "node_modules/typescript": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", - "dev": true + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } }, - "uc.micro": { + "node_modules/uc.micro": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", "dev": true }, - "underscore": { + "node_modules/underscore": { "version": "1.13.2", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.2.tgz", "integrity": "sha512-ekY1NhRzq0B08g4bGuX4wd2jZx5GnKz6mKSqFL4nqBlfyMGiG10gDFhDTMEfYmDL6Jy0FUIZp7wiRB+0BP7J2g==", "dev": true }, - "url-join": { + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/url-join": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", "dev": true }, - "util-deprecate": { + "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true, "optional": true }, - "v8-compile-cache-lib": { + "node_modules/v8-compile-cache-lib": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", "dev": true }, - "vscode-debugadapter": { - "version": "1.41.0", - "resolved": "https://registry.npmjs.org/vscode-debugadapter/-/vscode-debugadapter-1.41.0.tgz", - "integrity": "sha512-b+J8wmsa3NCxJ+L9DAMpRfPM+8bmp4gFBoFp9lhkpwqn3UMs3sYvdcwugQr/T4lDaCCEr807HKMppRsD1EHhPQ==", - "requires": { - "mkdirp": "^0.5.1", - "vscode-debugprotocol": "1.41.0" - } - }, - "vscode-debugprotocol": { - "version": "1.41.0", - "resolved": "https://registry.npmjs.org/vscode-debugprotocol/-/vscode-debugprotocol-1.41.0.tgz", - "integrity": "sha512-Sxp7kDDuhpEZiDaIfhM0jLF3RtMqvc6CpoESANE77t351uezsd/oDoqALLcOnmmsDzTgQ3W0sCvM4gErnjDFpA==" - }, - "vscode-jsonrpc": { + "node_modules/vscode-jsonrpc": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-6.0.0.tgz", - "integrity": "sha512-wnJA4BnEjOSyFMvjZdpiOwhSq9uDoK8e/kpRJDTaMYzwlkrhG1fwDIZI94CLsLzlCK5cIbMMtFlJlfR57Lavmg==" + "integrity": "sha512-wnJA4BnEjOSyFMvjZdpiOwhSq9uDoK8e/kpRJDTaMYzwlkrhG1fwDIZI94CLsLzlCK5cIbMMtFlJlfR57Lavmg==", + "engines": { + "node": ">=8.0.0 || >=10.0.0" + } }, - "vscode-languageclient": { + "node_modules/vscode-languageclient": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/vscode-languageclient/-/vscode-languageclient-7.0.0.tgz", "integrity": "sha512-P9AXdAPlsCgslpP9pRxYPqkNYV7Xq8300/aZDpO35j1fJm/ncize8iGswzYlcvFw5DQUx4eVk+KvfXdL0rehNg==", - "requires": { + "dependencies": { "minimatch": "^3.0.4", "semver": "^7.3.4", "vscode-languageserver-protocol": "3.16.0" }, + "engines": { + "vscode": "^1.52.0" + } + }, + "node_modules/vscode-languageclient/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { - "semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "requires": { - "lru-cache": "^6.0.0" - } - } + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "vscode-languageserver-protocol": { + "node_modules/vscode-languageserver-protocol": { "version": "3.16.0", "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.16.0.tgz", "integrity": "sha512-sdeUoAawceQdgIfTI+sdcwkiK2KU+2cbEYA0agzM2uqaUy2UpnnGHtWTHVEtS0ES4zHU0eMFRGN+oQgDxlD66A==", - "requires": { + "dependencies": { "vscode-jsonrpc": "6.0.0", "vscode-languageserver-types": "3.16.0" } }, - "vscode-languageserver-types": { + "node_modules/vscode-languageserver-types": { "version": "3.16.0", "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.16.0.tgz", "integrity": "sha512-k8luDIWJWyenLc5ToFQQMaSrqCHiLwyKPHKPQZ5zz21vM+vIVUSvsRpcbiECH4WR88K2XZqc4ScRcZ7nk/jbeA==" }, - "wide-align": { + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wide-align": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", "dev": true, "optional": true, - "requires": { + "dependencies": { "string-width": "^1.0.2 || 2 || 3 || 4" } }, - "wrappy": { + "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, - "ws": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.4.2.tgz", - "integrity": "sha512-Kbk4Nxyq7/ZWqr/tarI9yIt/+iNNFOjBXEWgTb4ydaNHBNGgvf2QHbS9fdfsndfjFlFwEd4Al+mw83YkaD10ZA==", - "requires": {} + "node_modules/ws": { + "version": "8.14.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz", + "integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } }, - "xmlbuilder": { + "node_modules/xmlbuilder": { "version": "11.0.1", "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "dev": true + "dev": true, + "engines": { + "node": ">=4.0" + } }, - "yallist": { + "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, - "yauzl": { + "node_modules/yauzl": { "version": "2.10.0", "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", "dev": true, - "requires": { + "dependencies": { "buffer-crc32": "~0.2.3", "fd-slicer": "~1.1.0" } }, - "yazl": { + "node_modules/yazl": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/yazl/-/yazl-2.5.1.tgz", "integrity": "sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw==", "dev": true, - "requires": { + "dependencies": { "buffer-crc32": "~0.2.3" } }, - "yn": { + "node_modules/yn": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } } } diff --git a/package.json b/package.json index 0f58a798b..1d1dd774b 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "main": "./out/extension.js", "scripts": { "compile": "tsc -p ./", - "lint": "tslint -p ./", + "lint": "eslint ./src --quiet", "watch": "tsc -watch -p ./", "package": "vsce package", "vscode:prepublish": "npm run esbuild-base -- --minify", @@ -43,34 +43,32 @@ "contributes": { "commands": [ { + "category": "Godot Tools", "command": "godotTools.openEditor", - "title": "Godot Tools: Open workspace with Godot editor" + "title": "Open workspace with Godot editor" }, { + "category": "Godot Tools", "command": "godotTools.startLanguageServer", - "title": "Godot Tools: Start the GDScript Language Server for this workspace" + "title": "Start the GDScript Language Server for this workspace" }, { + "category": "Godot Tools", "command": "godotTools.stopLanguageServer", - "title": "Godot Tools: Stop the GDScript Language Server for this workspace" - }, - { - "command": "godotTools.runProject", - "title": "Godot Tools: Run workspace as Godot project" - }, - { - "command": "godotTools.runProjectDebug", - "title": "Godot Tools: Run workspace as Godot project with visible collision shapes and navigation meshes" + "title": "Stop the GDScript Language Server for this workspace" }, { + "category": "Godot Tools", "command": "godotTools.listNativeClasses", - "title": "Godot Tools: List native classes of godot" + "title": "List native classes of godot" }, { + "category": "Godot Tools", "command": "godotTools.openTypeDocumentation", - "title": "Godot Tools: Open Type Documentation" + "title": "Open Type Documentation" }, { + "category": "Godot Tools", "command": "godotTools.debugger.inspectNode", "title": "Inspect Remote Node", "icon": { @@ -79,6 +77,7 @@ } }, { + "category": "Godot Tools", "command": "godotTools.debugger.refreshSceneTree", "title": "Refresh", "icon": { @@ -87,6 +86,7 @@ } }, { + "category": "Godot Tools", "command": "godotTools.debugger.refreshInspector", "title": "Refresh", "icon": { @@ -95,6 +95,7 @@ } }, { + "category": "Godot Tools", "command": "godotTools.debugger.editValue", "title": "Edit value", "icon": { @@ -103,54 +104,85 @@ } }, { + "category": "Godot Tools", + "command": "godotTools.debugger.debugCurrentFile", + "title": "Debug Current File", + "icon": "$(play)" + }, + { + "category": "Godot Tools", + "command": "godotTools.debugger.debugPinnedFile", + "title": "Debug Pinned File", + "icon": "$(play)" + }, + { + "category": "Godot Tools", + "command": "godotTools.debugger.pinFile", + "title": "Pin Scene File", + "icon": "resources/pin_off.svg" + }, + { + "category": "Godot Tools", + "command": "godotTools.debugger.unpinFile", + "title": "Unpin Scene File", + "icon": "resources/pin_on.svg" + }, + { + "category": "Godot Tools", + "command": "godotTools.debugger.openPinnedFile", + "title": "Open the currently pinned scene" + }, + { + "category": "Godot Tools", "command": "godotTools.scenePreview.refresh", - "title": "Godot Tools: Refresh Scene Preview" + "title": "Refresh Scene Preview" }, { + "category": "Godot Tools", "command": "godotTools.scenePreview.pin", "title": "Pin Scene Preview", "icon": "resources/pin_off.svg" }, { + "category": "Godot Tools", "command": "godotTools.scenePreview.unpin", "title": "Unpin Scene Preview", "icon": "resources/pin_on.svg" }, { + "category": "Godot Tools", "command": "godotTools.scenePreview.goToDefinition", "title": "Go to Definition" }, { + "category": "Godot Tools", "command": "godotTools.scenePreview.copyNodePath", "title": "Copy Node Path" }, { + "category": "Godot Tools", "command": "godotTools.scenePreview.copyResourcePath", "title": "Copy Resource Path" }, { + "category": "Godot Tools", "command": "godotTools.scenePreview.openScene", "title": "Open Scene" }, { + "category": "Godot Tools", "command": "godotTools.scenePreview.openScript", "title": "Open Script" }, { + "category": "Godot Tools", "command": "godotTools.switchSceneScript", - "title": "Godot Tools: Switch Scene/Script" - }, - { - "command": "godotTools.setSceneFile", - "title": "Set as Scene File" - }, - { - "command": "godotTools.copyResourcePathContext", - "title": "Copy Resource Path" + "title": "Switch Scene/Script" }, { + "category": "Godot Tools", "command": "godotTools.copyResourcePath", - "title": "Godot Tools: Copy Resource Path" + "title": "Copy Resource Path" } ], "keybindings": [ @@ -164,6 +196,16 @@ "type": "object", "title": "Godot Tools", "properties": { + "godotTools.editorPath.godot3": { + "type": "string", + "default": "godot3", + "description": "The absolute path to the Godot 3 editor executable" + }, + "godotTools.editorPath.godot4": { + "type": "string", + "default": "godot4", + "description": "The absolute path to the Godot 4 editor executable" + }, "godotTools.lsp.serverProtocol": { "type": [ "string" @@ -194,21 +236,6 @@ "default": false, "description": "Whether to launch the LSP as a headless child process" }, - "godotTools.editorPath.godot3": { - "type": "string", - "default": "godot3", - "description": "The absolute path to the Godot 3 editor executable" - }, - "godotTools.editorPath.godot4": { - "type": "string", - "default": "godot4", - "description": "The absolute path to the Godot 4 editor executable" - }, - "godotTools.sceneFileConfig": { - "type": "string", - "default": "", - "description": "The scene file to run" - }, "godotTools.lsp.autoReconnect.enabled": { "type": "boolean", "default": true, @@ -224,27 +251,27 @@ "default": 10, "description": "How many times the client will attempt to reconnect" }, - "godotTools.forceVisibleCollisionShapes": { + "godotTools.debugger.forceVisibleCollisionShapes": { "type": "boolean", "default": false, "description": "Force the project to run with visible collision shapes" }, - "godotTools.forceVisibleNavMesh": { + "godotTools.debugger.forceVisibleNavMesh": { "type": "boolean", "default": false, "description": "Force the project to run with visible navigation meshes" }, - "godotTools.nativeSymbolPlacement": { + "godotTools.documentation.newTabPlacement": { "enum": [ "active", "beside" ], "enumDescriptions": [ - "Place the native symbol window in the active tabs group", - "Place the native symbol window beside the active tabs group" + "Place new documentation views in the active tabs group", + "Place new documentation views beside the active tabs group" ], "default": "beside", - "description": "Where to place the native symbol windows" + "description": "Where to place new documentation views" }, "godotTools.scenePreview.previewRelatedScenes": { "enum": [ @@ -274,6 +301,17 @@ ], "configuration": "./configurations/gdscript-configuration.json" }, + { + "id": "gdscene", + "aliases": [ + "GDScene", + "gdscene" + ], + "extensions": [ + "tscn" + ], + "configuration": "./configurations/gdresource-configuration.json" + }, { "id": "gdresource", "aliases": [ @@ -283,7 +321,6 @@ "extensions": [ "godot", "tres", - "tscn", "import", "gdns", "gdnlib" @@ -328,64 +365,74 @@ { "type": "godot", "label": "GDScript Godot Debug", - "program": "./out/debugger/debug_adapter.js", "runtime": "node", "configurationAttributes": { "launch": { - "required": [ - "project", - "port", - "address" - ], + "required": [], "properties": { "project": { "type": "string", "description": "Absolute path to a directory with a project.godot file.", "default": "${workspaceFolder}" }, - "port": { - "type": "number", - "description": "The port number for the Godot remote debugger to use.", - "default": 6007 - }, "address": { "type": "string", "description": "The IP address for the Godot remote debugger to use.", "default": "127.0.0.1" }, - "launch_game_instance": { - "type": "boolean", - "description": "Whether to launch an instance of the workspace's game, or wait for a debug session to connect.", - "default": true - }, - "launch_scene": { - "type": "boolean", - "description": "Whether to launch an instance the currently opened TSCN file, or launch the game project. Only works with launch_game_instance being true.", - "default": false + "port": { + "type": "number", + "description": "The port number for the Godot remote debugger to use.", + "default": 6007 }, - "scene_file": { + "scene": { "type": "string", - "description": "Relative path from the godot.project file to a TSCN file. If launch_scene and launch_game_instance are true, and this file is defined, will launch the specified file instead of looking for an active TSCN file.", + "enum": [ + "main", + "current", + "pinned" + ], + "enumDescriptions": [ + "Launch the 'main_scene' specified in project.godot", + "Launch the scene (or related scene) in the current editor", + "Launch the pinned scene" + ], + "description": "Scene file to run when debugging. Choices are 'main', 'current', 'pinned', or providing a custom path to a scene.", "default": "" }, + "editor_path": { + "type": "string", + "description": "Absolute path to the Godot executable to be used for this debug profile." + }, "additional_options": { "type": "string", "description": "Additional command line arguments.", "default": "" } } + }, + "attach": { + "required": [], + "properties": { + "address": { + "type": "string", + "description": "The IP address for the Godot remote debugger to use.", + "default": "127.0.0.1" + }, + "port": { + "type": "number", + "description": "The port number for the Godot remote debugger to use.", + "default": 6007 + } + } } }, "initialConfigurations": [ { - "name": "GDScript Godot", + "name": "GDScript: Launch Godot", "type": "godot", "request": "launch", "project": "${workspaceFolder}", - "port": 6007, - "address": "127.0.0.1", - "launch_game_instance": true, - "launch_scene": false, "additional_options": "" } ], @@ -394,15 +441,47 @@ "label": "GDScript Godot Debug: Launch", "description": "A new configuration for debugging a Godot project.", "body": { + "name": "GDScript: Launch Project", "type": "godot", "request": "launch", "project": "${workspaceFolder}", - "port": 6007, - "address": "127.0.0.1", - "launch_game_instance": true, - "launch_scene": false, "additional_options": "" } + }, + { + "label": "GDScript: Launch Current File", + "description": "A new configuration for debugging a Godot project.", + "body": { + "name": "GDScript: Launch Current File", + "type": "godot", + "request": "launch", + "scene": "current", + "project": "${workspaceFolder}", + "additional_options": "" + } + }, + { + "label": "GDScript: Launch Pinned File", + "description": "A new configuration for debugging a Godot project.", + "body": { + "name": "GDScript: Launch Pinned File", + "type": "godot", + "request": "launch", + "scene": "pinned", + "project": "${workspaceFolder}", + "additional_options": "" + } + }, + { + "label": "GDScript Godot Debug: Attach", + "description": "A new configuration for debugging a Godot project.", + "body": { + "name": "GDScript: Attach to Godot", + "type": "godot", + "request": "attach", + "address": "127.0.0.1", + "port": 6007 + } } ] } @@ -424,14 +503,12 @@ "views": { "debug": [ { - "id": "active-scene-tree", - "name": "Active Scene Tree", - "when": "inDebugMode && debugType == 'godot'" + "id": "activeSceneTree", + "name": "Active Scene Tree" }, { - "id": "inspect-node", - "name": "Inspector", - "when": "inDebugMode && debugType == 'godot'" + "id": "inspectNode", + "name": "Inspector" } ], "godotTools": [ @@ -441,6 +518,20 @@ } ] }, + "viewsWelcome": [ + { + "view": "activeSceneTree", + "contents": "Scene Tree data has not been requested" + }, + { + "view": "inspectNode", + "contents": "Node has not been inspected" + }, + { + "view": "scenePreview", + "contents": "Open a Scene to see a preview of its structure" + } + ], "menus": { "commandPalette": [ { @@ -476,46 +567,58 @@ "when": "false" }, { - "command": "godotTools.copyResourcePathContext", + "command": "godotTools.debugger.editValue", + "when": "false" + }, + { + "command": "godotTools.debugger.inspectNode", + "when": "false" + }, + { + "command": "godotTools.debugger.refreshSceneTree", + "when": "false" + }, + { + "command": "godotTools.debugger.refreshInspector", "when": "false" } ], "view/title": [ { "command": "godotTools.debugger.refreshSceneTree", - "when": "view == active-scene-tree", + "when": "view == activeSceneTree", "group": "navigation" }, { "command": "godotTools.debugger.refreshInspector", - "when": "view == inspect-node", + "when": "view == inspectNode", "group": "navigation" }, { "command": "godotTools.scenePreview.pin", - "when": "view == scenePreview && !godotTools.context.scenePreviewPinned", + "when": "view == scenePreview && !godotTools.context.scenePreview.pinned", "group": "navigation" }, { "command": "godotTools.scenePreview.unpin", - "when": "view == scenePreview && godotTools.context.scenePreviewPinned", + "when": "view == scenePreview && godotTools.context.scenePreview.pinned", "group": "navigation" } ], "view/item/context": [ { "command": "godotTools.debugger.inspectNode", - "when": "view == active-scene-tree", + "when": "view == activeSceneTree", "group": "inline" }, { "command": "godotTools.debugger.inspectNode", - "when": "view == inspect-node && viewItem == remote_object", + "when": "view == inspectNode && viewItem == remote_object", "group": "inline" }, { "command": "godotTools.debugger.editValue", - "when": "view == inspect-node && viewItem == editable_value", + "when": "view == inspectNode && viewItem == editable_value", "group": "inline" }, { @@ -544,18 +647,58 @@ ], "explorer/context": [ { - "command": "godotTools.setSceneFile", - "group": "2_workspace" + "command": "godotTools.debugger.pinFile", + "group": "2_workspace", + "when": "resourceLangId in godotTools.context.sceneLikeFiles && !(resourcePath in godotTools.context.pinnedScene)" }, { - "command": "godotTools.copyResourcePathContext", + "command": "godotTools.debugger.unpinFile", + "group": "2_workspace", + "when": "resourceLangId in godotTools.context.sceneLikeFiles && (resourcePath in godotTools.context.pinnedScene)" + }, + { + "command": "godotTools.copyResourcePath", "group": "6_copypath" } ], + "editor/title/run": [ + { + "command": "godotTools.debugger.debugCurrentFile", + "group": "navigation@10", + "when": "editorLangId in godotTools.context.sceneLikeFiles && !isInDiffEditor && !virtualWorkspace" + }, + { + "command": "godotTools.debugger.debugPinnedFile", + "group": "navigation@10", + "when": "editorLangId in godotTools.context.sceneLikeFiles && !isInDiffEditor && !virtualWorkspace" + } + ], + "editor/title": [ + { + "command": "godotTools.debugger.pinFile", + "group": "navigation@11", + "when": "editorLangId in godotTools.context.sceneLikeFiles && !isInDiffEditor && !virtualWorkspace && !(resourcePath in godotTools.context.pinnedScene)" + }, + { + "command": "godotTools.debugger.unpinFile", + "group": "navigation@11", + "when": "editorLangId in godotTools.context.sceneLikeFiles && !isInDiffEditor && !virtualWorkspace && (resourcePath in godotTools.context.pinnedScene)" + } + ], "editor/title/context": [ { - "command": "godotTools.copyResourcePathContext", + "command": "godotTools.copyResourcePath", "group": "1_godot" + }, + { + "command": "godotTools.debugger.pinFile", + "group": "1_godot", + "when": "resourceLangId in godotTools.context.sceneLikeFiles && !(resourcePath in godotTools.context.pinnedScene)" + }, + { + "command": "godotTools.debugger.unpinFile", + "group": "1_godot", + "when": "resourceLangId in godotTools.context.sceneLikeFiles && (resourcePath in godotTools.context.pinnedScene)" } ], "editor/context": [ @@ -566,34 +709,40 @@ }, { "command": "godotTools.switchSceneScript", - "when": "editorLangId == 'gdscript' || editorLangId == 'gdresource'", + "when": "editorLangId in godotTools.context.sceneLikeFiles", "group": "custom1@1" } ] } }, "devDependencies": { - "@types/marked": "^0.6.5", + "@types/marked": "^4.0.8", "@types/mocha": "^9.1.0", "@types/node": "^18.15.0", "@types/prismjs": "^1.16.8", "@types/vscode": "^1.80.0", - "@types/ws": "^8.2.2", + "@types/ws": "^8.5.4", + "@typescript-eslint/eslint-plugin": "^5.57.1", + "@typescript-eslint/eslint-plugin-tslint": "^5.57.1", + "@typescript-eslint/parser": "^5.57.1", "@vscode/vsce": "^2.21.0", - "esbuild": "^0.15.2", + "esbuild": "^0.17.15", + "eslint": "^8.37.0", "ts-node": "^10.9.1", + "tsconfig-paths": "^4.2.0", "tslint": "^5.20.1", "typescript": "^5.2.2" }, "dependencies": { + "@vscode/debugadapter": "^1.64.0", + "@vscode/debugprotocol": "^1.64.0", "await-notify": "^1.0.1", "global": "^4.4.0", "marked": "^4.0.11", "net": "^1.0.2", "prismjs": "^1.17.1", "terminate": "^2.5.0", - "vscode-debugadapter": "^1.38.0", "vscode-languageclient": "^7.0.0", - "ws": "^8.4.2" + "ws": "^8.13.0" } } diff --git a/src/debugger/commands/command.ts b/src/debugger/commands/command.ts deleted file mode 100644 index 4f32452fb..000000000 --- a/src/debugger/commands/command.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Mediator } from "../mediator"; - -export abstract class Command { - public param_count: number = -1; - - public abstract trigger(parameters: any[]): void; -} diff --git a/src/debugger/commands/command_parser.ts b/src/debugger/commands/command_parser.ts deleted file mode 100644 index 25325c76b..000000000 --- a/src/debugger/commands/command_parser.ts +++ /dev/null @@ -1,170 +0,0 @@ -import { Command } from "./command"; -import { CommandDebugEnter } from "./commands/command_debug_enter"; -import { CommandOutput } from "./commands/command_output"; -import { CommandStackDump } from "./commands/command_stack_dump"; -import { CommandStackFrameVars } from "./commands/command_stack_frame_vars"; -import { CommandNull } from "./commands/command_null"; -import { CommandMessageSceneTree } from "./commands/command_message_scene_tree"; -import { CommandMessageInspectObject } from "./commands/command_message_inspect_object"; -import { CommandDebugExit } from "./commands/command_debug_exit"; -import { VariantEncoder } from "../variables/variant_encoder"; - -export class CommandParser { - private commands: Map Command> = new Map([ - [ - "output", - function () { - return new CommandOutput(); - }, - ], - [ - "message:scene_tree", - function () { - return new CommandMessageSceneTree(); - }, - ], - [ - "message:inspect_object", - function () { - return new CommandMessageInspectObject(); - }, - ], - [ - "stack_dump", - function () { - return new CommandStackDump(); - }, - ], - [ - "stack_frame_vars", - function () { - return new CommandStackFrameVars(); - }, - ], - [ - "debug_enter", - function () { - return new CommandDebugEnter(); - }, - ], - [ - "debug_exit", - function () { - return new CommandDebugExit(); - }, - ], - ]); - private current_command?: Command; - private encoder = new VariantEncoder(); - private parameters: any[] = []; - - public has_command() { - return this.current_command; - } - - public make_break_command(): Buffer { - return this.build_buffered_command("break"); - } - - public make_continue_command(): Buffer { - return this.build_buffered_command("continue"); - } - - public make_inspect_object_command(object_id: bigint): Buffer { - return this.build_buffered_command("inspect_object", [object_id]); - } - - public make_next_command(): Buffer { - return this.build_buffered_command("next"); - } - - public make_remove_breakpoint_command(path_to: string, line: number): Buffer { - return this.build_buffered_command("breakpoint", [path_to, line, false]); - } - - public make_request_scene_tree_command(): Buffer { - return this.build_buffered_command("request_scene_tree"); - } - - public make_send_breakpoint_command(path_to: string, line: number): Buffer { - return this.build_buffered_command("breakpoint", [path_to, line, true]); - } - - public make_set_object_value_command( - object_id: bigint, - label: string, - new_parsed_value: any - ): Buffer { - return this.build_buffered_command("set_object_property", [ - object_id, - label, - new_parsed_value, - ]); - } - - public make_stack_dump_command(): Buffer { - return this.build_buffered_command("get_stack_dump"); - } - - public make_stack_frame_vars_command(frame_id: number): Buffer { - return this.build_buffered_command("get_stack_frame_vars", [frame_id]); - } - - public make_step_command() { - return this.build_buffered_command("step"); - } - - public parse_message(dataset: any[]) { - while (dataset && dataset.length > 0) { - if (this.current_command) { - this.parameters.push(dataset.shift()); - if (this.current_command.param_count !== -1) { - if (this.current_command.param_count === this.parameters.length) { - try { - this.current_command.trigger(this.parameters); - } catch (e) { - // FIXME: Catch exception during trigger command: TypeError: class_name.replace is not a function - // class_name is the key of Mediator.inspect_callbacks - console.error("Catch exception during trigger command: " + e); - } finally { - this.current_command = undefined; - this.parameters = []; - } - } else if(this.current_command.param_count < this.parameters.length) { - // we debugged that an exception occures during this.current_command.trigger(this.parameters) - // because we do not understand the root cause of the exception, we set the current command to undefined - // to avoid a infinite loop of parse_message(...) - this.current_command = undefined; - this.parameters = []; - console.log("Exception not catched. Reset current_command to avoid infinite loop."); - } - } else { - this.current_command.param_count = this.parameters.shift(); - if (this.current_command.param_count === 0) { - this.current_command.trigger([]); - this.current_command = undefined; - } - } - } else { - let data = dataset.shift(); - if (data && this.commands.has(data)) { - this.current_command = this.commands.get(data)(); - } else { - this.current_command = new CommandNull(); - } - } - } - } - - private build_buffered_command(command: string, parameters?: any[]) { - let command_array: any[] = [command]; - if (parameters) { - parameters.forEach((param) => { - command_array.push(param); - }); - } - - let buffer = this.encoder.encode_variant(command_array); - return buffer; - } -} diff --git a/src/debugger/commands/commands/command_debug_enter.ts b/src/debugger/commands/commands/command_debug_enter.ts deleted file mode 100644 index 7247fd962..000000000 --- a/src/debugger/commands/commands/command_debug_enter.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Command } from "../command"; -import { Mediator } from "../../mediator"; - -export class CommandDebugEnter extends Command { - public trigger(parameters: any[]) { - let reason: string = parameters[1]; - Mediator.notify("debug_enter", [reason]); - } -} diff --git a/src/debugger/commands/commands/command_debug_exit.ts b/src/debugger/commands/commands/command_debug_exit.ts deleted file mode 100644 index c6400b59f..000000000 --- a/src/debugger/commands/commands/command_debug_exit.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Command } from "../command"; -import { Mediator } from "../../mediator"; - -export class CommandDebugExit extends Command { - public trigger(parameters: any[]) { - Mediator.notify("debug_exit"); - } -} diff --git a/src/debugger/commands/commands/command_message_inspect_object.ts b/src/debugger/commands/commands/command_message_inspect_object.ts deleted file mode 100644 index 42a1311eb..000000000 --- a/src/debugger/commands/commands/command_message_inspect_object.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Command } from "../command"; -import { RawObject } from "../../variables/variants"; -import { Mediator } from "../../mediator"; - -export class CommandMessageInspectObject extends Command { - public trigger(parameters: any[]) { - let id = BigInt(parameters[0]); - let class_name: string = parameters[1]; - let properties: any[] = parameters[2]; - - let raw_object = new RawObject(class_name); - properties.forEach((prop) => { - raw_object.set(prop[0], prop[5]); - }); - - Mediator.notify("inspected_object", [id, raw_object]); - } -} diff --git a/src/debugger/commands/commands/command_message_scene_tree.ts b/src/debugger/commands/commands/command_message_scene_tree.ts deleted file mode 100644 index 8bd1b4744..000000000 --- a/src/debugger/commands/commands/command_message_scene_tree.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Command } from "../command"; -import { Mediator } from "../../mediator"; -import { SceneNode } from "../../scene_tree/scene_tree_provider"; - -export class CommandMessageSceneTree extends Command { - public trigger(parameters: any[]) { - let scene = this.parse_next(parameters, { offset: 0 }); - - Mediator.notify("scene_tree", [scene]); - } - - private parse_next(params: any[], ofs: { offset: number }): SceneNode { - let child_count: number = params[ofs.offset++]; - let name: string = params[ofs.offset++]; - let class_name: string = params[ofs.offset++]; - let id: number = params[ofs.offset++]; - - let children: SceneNode[] = []; - for (let i = 0; i < child_count; ++i) { - children.push(this.parse_next(params, ofs)); - } - - return new SceneNode(name, class_name, id, children); - } -} diff --git a/src/debugger/commands/commands/command_null.ts b/src/debugger/commands/commands/command_null.ts deleted file mode 100644 index c4ea53b40..000000000 --- a/src/debugger/commands/commands/command_null.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Command } from "../command"; - -export class CommandNull extends Command { - public trigger(parameters: any[]) {} -} diff --git a/src/debugger/commands/commands/command_output.ts b/src/debugger/commands/commands/command_output.ts deleted file mode 100644 index afcab3b02..000000000 --- a/src/debugger/commands/commands/command_output.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Command } from "../command"; -import { Mediator } from "../../mediator"; - -export class CommandOutput extends Command { - public trigger(parameters: any[]) { - let lines: string[] = parameters; - Mediator.notify("output", lines); - } -} diff --git a/src/debugger/commands/commands/command_stack_dump.ts b/src/debugger/commands/commands/command_stack_dump.ts deleted file mode 100644 index e88fc2a1b..000000000 --- a/src/debugger/commands/commands/command_stack_dump.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Command } from "../command"; -import { Mediator } from "../../mediator"; -import { GodotStackFrame } from "../../debug_runtime"; - -export class CommandStackDump extends Command { - public trigger(parameters: any[]) { - let frames: GodotStackFrame[] = parameters.map((sf, i) => { - return { - id: i, - file: sf.get("file"), - function: sf.get("function"), - line: sf.get("line"), - }; - }); - Mediator.notify("stack_dump", frames); - } -} diff --git a/src/debugger/commands/commands/command_stack_frame_vars.ts b/src/debugger/commands/commands/command_stack_frame_vars.ts deleted file mode 100644 index 58011751e..000000000 --- a/src/debugger/commands/commands/command_stack_frame_vars.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Command } from "../command"; -import { Mediator } from "../../mediator"; - -export class CommandStackFrameVars extends Command { - public trigger(parameters: any[]) { - let globals: any[] = []; - let locals: any[] = []; - let members: any[] = []; - - let local_count = parameters[0] * 2; - let member_count = parameters[1 + local_count] * 2; - let global_count = parameters[2 + local_count + member_count] * 2; - - if (local_count > 0) { - let offset = 1; - locals = parameters.slice(offset, offset + local_count); - } - - if (member_count > 0) { - let offset = 2 + local_count; - members = parameters.slice(offset, offset + member_count); - } - - if (global_count > 0) { - let offset = 3 + local_count + member_count; - globals = parameters.slice(offset, offset + global_count); - } - - Mediator.notify("stack_frame_vars", [locals, members, globals]); - } -} diff --git a/src/debugger/debug_adapter.ts b/src/debugger/debug_adapter.ts deleted file mode 100644 index e90b6252f..000000000 --- a/src/debugger/debug_adapter.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { GodotDebugSession } from "./debug_session"; - -GodotDebugSession.run(GodotDebugSession); diff --git a/src/debugger/debug_runtime.ts b/src/debugger/debug_runtime.ts index f870b5b9b..afe9e25b6 100644 --- a/src/debugger/debug_runtime.ts +++ b/src/debugger/debug_runtime.ts @@ -1,6 +1,8 @@ -import { Mediator } from "./mediator"; -import { SceneTreeProvider } from "./scene_tree/scene_tree_provider"; -const path = require("path"); +import { SceneTreeProvider } from "./scene_tree_provider"; +import path = require("path"); +import { createLogger } from "../logger"; + +const log = createLogger("debugger.runtime"); export interface GodotBreakpoint { file: string; @@ -15,11 +17,64 @@ export interface GodotStackFrame { line: number; } +export class GodotStackVars { + public remaining = 0; + + constructor( + public locals: GodotVariable[] = [], + public members: GodotVariable[] = [], + public globals: GodotVariable[] = [], + ) { } + + public reset(count: number = 0) { + this.locals = []; + this.members = []; + this.globals = []; + this.remaining = count; + } + + public forEach(callbackfn: (value: GodotVariable, index: number, array: GodotVariable[]) => void, thisArg?: any) { + this.locals.forEach(callbackfn); + this.members.forEach(callbackfn); + this.globals.forEach(callbackfn); + } +} + export interface GodotVariable { name: string; scope_path?: string; sub_values?: GodotVariable[]; value: any; + type?: bigint; + id?: bigint; +} + +export interface GDObject { + stringify_value(): string; + sub_values(): GodotVariable[]; + type_name(): string; +} + +export class RawObject extends Map { + constructor(public class_name: string) { + super(); + } +} + +export class ObjectId implements GDObject { + constructor(public id: bigint) { } + + public stringify_value(): string { + return `<${this.id}>`; + } + + public sub_values(): GodotVariable[] { + return [{ name: "id", value: this.id }]; + } + + public type_name(): string { + return "Object"; + } } export class GodotDebugData { @@ -28,63 +83,90 @@ export class GodotDebugData { public last_frame: GodotStackFrame; public last_frames: GodotStackFrame[] = []; - public project_path: string; + public projectPath: string; public scene_tree?: SceneTreeProvider; public stack_count: number = 0; public stack_files: string[] = []; + public session; - public constructor() {} - - public get_all_breakpoints(): GodotBreakpoint[] { - let output: GodotBreakpoint[] = []; - Array.from(this.breakpoints.values()).forEach((bp_array) => { - output.push(...bp_array); - }); - return output; + public constructor(session) { + this.session = session; } - public get_breakpoints(path: string) { - return this.breakpoints.get(path) || []; + public set_breakpoint(path_to: string, line: number) { + const bp = { + file: path_to.replace(/\\/g, "/"), + line: line, + id: this.breakpoint_id++, + }; + + let bps: GodotBreakpoint[] = this.breakpoints.get(bp.file); + if (!bps) { + bps = []; + this.breakpoints.set(bp.file, bps); + } + + bps.push(bp); + + if (this.projectPath) { + const out_file = `res://${path.relative(this.projectPath, bp.file)}`; + this.session?.controller.set_breakpoint(out_file.replace(/\\/g, "/"), line); + } } - public remove_breakpoint(path_to: string, line: number) { - let bps = this.breakpoints.get(path_to); + public remove_breakpoint(pathTo: string, line: number) { + const bps = this.breakpoints.get(pathTo); if (bps) { - let index = bps.findIndex((bp) => { + const index = bps.findIndex((bp) => { return bp.line === line; }); if (index !== -1) { - let bp = bps[index]; + const bp = bps[index]; bps.splice(index, 1); - this.breakpoints.set(path_to, bps); - let file = `res://${path.relative(this.project_path, bp.file)}`; - Mediator.notify("remove_breakpoint", [ + this.breakpoints.set(pathTo, bps); + const file = `res://${path.relative(this.projectPath, bp.file)}`; + this.session?.controller.remove_breakpoint( file.replace(/\\/g, "/"), bp.line, - ]); + ); } } } - public set_breakpoint(path_to: string, line: number) { - let bp = { - file: path_to.replace(/\\/g, "/"), - line: line, - id: this.breakpoint_id++, - }; + public get_all_breakpoints(): GodotBreakpoint[] { + const output: GodotBreakpoint[] = []; + Array.from(this.breakpoints.values()).forEach((bp_array) => { + output.push(...bp_array); + }); + return output; + } - let bps: GodotBreakpoint[] = this.breakpoints.get(bp.file); - if (!bps) { - bps = []; - this.breakpoints.set(bp.file, bps); - } + public get_breakpoints(path: string) { + return this.breakpoints.get(path) || []; + } - bps.push(bp); + public get_breakpoint_string() { + const breakpoints = this.get_all_breakpoints(); + let output = ""; + if (breakpoints.length > 0) { + output += " --breakpoints \""; + breakpoints.forEach((bp, i) => { + output += `${this.get_breakpoint_path(bp.file)}:${bp.line}`; + if (i < breakpoints.length - 1) { + output += ","; + } + }); + output += "\""; + } + return output; + } - if (this.project_path) { - let out_file = `res://${path.relative(this.project_path, bp.file)}`; - Mediator.notify("set_breakpoint", [out_file.replace(/\\/g, "/"), line]); + public get_breakpoint_path(file: string) { + const relativePath = path.relative(this.projectPath, file).replace(/\\/g, "/"); + if (relativePath.length !== 0) { + return `res://${relativePath}`; } + return undefined; } } diff --git a/src/debugger/debugger.ts b/src/debugger/debugger.ts new file mode 100644 index 000000000..257e02bbf --- /dev/null +++ b/src/debugger/debugger.ts @@ -0,0 +1,318 @@ +import * as fs from "fs"; +import { + debug, + window, + workspace, + ExtensionContext, + DebugConfigurationProvider, + WorkspaceFolder, + DebugAdapterInlineImplementation, + DebugAdapterDescriptorFactory, + DebugConfiguration, + DebugAdapterDescriptor, + DebugSession, + CancellationToken, + ProviderResult, + Uri +} from "vscode"; +import { DebugProtocol } from "@vscode/debugprotocol"; +import { GodotDebugSession as Godot3DebugSession } from "./godot3/debug_session"; +import { GodotDebugSession as Godot4DebugSession } from "./godot4/debug_session"; +import { register_command, projectVersion, set_context } from "../utils"; +import { SceneTreeProvider, SceneNode } from "./scene_tree_provider"; +import { InspectorProvider, RemoteProperty } from "./inspector_provider"; +import { createLogger } from "../logger"; + +const log = createLogger("debugger", { output: "Godot Debugger" }); + +export interface LaunchRequestArguments extends DebugProtocol.LaunchRequestArguments { + address: string; + port: number; + project: string; + scene: string; + editor_path: string; + additional_options: string; +} + +export interface AttachRequestArguments extends DebugProtocol.AttachRequestArguments { + address: string; + port: number; + project: string; + scene: string; + additional_options: string; +} + +export let pinnedScene: Uri; + +export class GodotDebugger implements DebugAdapterDescriptorFactory, DebugConfigurationProvider { + public session?: Godot3DebugSession | Godot4DebugSession; + public inspectorProvider = new InspectorProvider(); + public sceneTreeProvider = new SceneTreeProvider(); + + + constructor(private context: ExtensionContext) { + log.info("Initializing Godot Debugger"); + + context.subscriptions.push( + debug.registerDebugConfigurationProvider("godot", this), + debug.registerDebugAdapterDescriptorFactory("godot", this), + window.registerTreeDataProvider("inspectNode", this.inspectorProvider), + window.registerTreeDataProvider("activeSceneTree", this.sceneTreeProvider), + register_command("debugger.inspectNode", this.inspect_node.bind(this)), + register_command("debugger.refreshSceneTree", this.refresh_scene_tree.bind(this)), + register_command("debugger.refreshInspector", this.refresh_inspector.bind(this)), + register_command("debugger.editValue", this.edit_value.bind(this)), + register_command("debugger.debugCurrentFile", this.debug_current_file.bind(this)), + register_command("debugger.debugPinnedFile", this.debug_pinned_file.bind(this)), + register_command("debugger.pinFile", this.pin_file.bind(this)), + register_command("debugger.unpinFile", this.unpin_file.bind(this)), + register_command("debugger.openPinnedFile", this.open_pinned_file.bind(this)), + ); + } + + public createDebugAdapterDescriptor(session: DebugSession): ProviderResult { + log.info("Creating debug session"); + log.info(`Project version identified as ${projectVersion}`); + + if (projectVersion.startsWith("4")) { + this.session = new Godot4DebugSession(); + } else { + this.session = new Godot3DebugSession(); + } + this.context.subscriptions.push(this.session); + + this.session.sceneTree = this.sceneTreeProvider; + return new DebugAdapterInlineImplementation(this.session); + } + + public resolveDebugConfiguration( + folder: WorkspaceFolder | undefined, + config: DebugConfiguration, + token?: CancellationToken + ): ProviderResult { + // request is actually a required field according to vscode + // however, setting it here lets us catch a possible misconfiguration + if (!config.request) { + config.request = "launch"; + } + + if (config.request === "launch") { + if (!config.address) { + config.address = "127.0.0.1"; + } + if (!config.port) { + config.port = -1; + } + if (!config.project) { + config.project = "${workspaceFolder}"; + } + } + return config; + } + + public debug_current_file() { + log.info("Attempting to debug current file"); + const configs: DebugConfiguration[] = workspace.getConfiguration("launch", window.activeTextEditor.document.uri).get("configurations"); + const launches = configs.filter((c) => c.request === "launch"); + const currents = configs.filter((c) => c.scene === "current"); + + let path = window.activeTextEditor.document.fileName; + if (path.endsWith(".gd")) { + const scenePath = path.replace(".gd", ".tscn"); + if (!fs.existsSync(scenePath)) { + log.warn(`Can't find associated scene for '${path}', aborting debug`); + window.showWarningMessage(`Can't find associated scene file for '${path}'`); + return; + } + path = scenePath; + } + + const default_config = { + name: `Debug ${path} : 'File'}`, + type: "godot", + request: "launch", + scene: "current", + }; + + const config = currents[0] ?? launches[0] ?? configs[0] ?? default_config; + config.scene = path; + + log.info(`Starting debug session for '${path}'`); + debug.startDebugging(workspace.workspaceFolders[0], config); + } + + public debug_pinned_file() { + log.info("Attempting to debug pinned scene"); + const configs: DebugConfiguration[] = workspace.getConfiguration("launch", pinnedScene).get("configurations"); + const launches = configs.filter((c) => c.request === "launch"); + const currents = configs.filter((c) => c.scene === "pinned"); + + if (!pinnedScene) { + log.warn("No pinned scene found, aborting debug"); + window.showWarningMessage("No pinned scene found"); + return; + } + let path = pinnedScene.fsPath; + if (path.endsWith(".gd")) { + const scenePath = path.replace(".gd", ".tscn"); + if (!fs.existsSync(scenePath)) { + log.warn(`Can't find associated scene for '${path}', aborting debug`); + window.showWarningMessage(`Can't find associated scene file for '${path}'`); + return; + } + path = scenePath; + } + const default_config = { + name: `Debug ${path} : 'File'}`, + type: "godot", + request: "launch", + scene: "pinned", + }; + + const config = currents[0] ?? launches[0] ?? configs[0] ?? default_config; + config.scene = path; + + log.info(`Starting debug session for '${path}'`); + debug.startDebugging(workspace.workspaceFolders[0], config); + } + + public pin_file(uri: Uri) { + if (uri === undefined) { + uri = window.activeTextEditor.document.uri; + } + log.info(`Pinning debug target file: '${uri.fsPath}'`); + set_context("pinnedScene", [uri.fsPath]); + pinnedScene = uri; + } + + public unpin_file(uri: Uri) { + log.info(`Unpinning debug target file: '${pinnedScene}'`); + set_context("pinnedScene", []); + pinnedScene = undefined; + } + + public open_pinned_file() { + log.info(`Opening pinned debug target file: '${pinnedScene}'`); + if (pinnedScene){ + window.showTextDocument(pinnedScene); + } + } + + public inspect_node(element: SceneNode | RemoteProperty) { + this.session?.controller.request_inspect_object(BigInt(element.object_id)); + this.session?.inspect_callbacks.set( + BigInt(element.object_id), + (class_name, variable) => { + this.inspectorProvider.fill_tree( + element.label, + class_name, + element.object_id, + variable + ); + }, + ); + } + + public refresh_scene_tree() { + this.session?.controller.request_scene_tree(); + } + + public refresh_inspector() { + if (this.inspectorProvider.has_tree()) { + const name = this.inspectorProvider.get_top_name(); + const id = this.inspectorProvider.get_top_id(); + + this.session?.controller.request_inspect_object(BigInt(id)); + this.session?.inspect_callbacks.set( + BigInt(id), + (class_name, variable) => { + this.inspectorProvider.fill_tree( + name, + class_name, + id, + variable + ); + }, + ); + } + } + + public edit_value(property: RemoteProperty) { + const previous_value = property.value; + const type = typeof previous_value; + const is_float = type === "number" && !Number.isInteger(previous_value); + window + .showInputBox({ value: `${property.description}` }) + .then((value) => { + let new_parsed_value: any; + switch (type) { + case "string": + new_parsed_value = value; + break; + case "number": + if (is_float) { + new_parsed_value = parseFloat(value); + if (isNaN(new_parsed_value)) { + return; + } + } else { + new_parsed_value = parseInt(value); + if (isNaN(new_parsed_value)) { + return; + } + } + break; + case "boolean": + if ( + value.toLowerCase() === "true" || + value.toLowerCase() === "false" + ) { + new_parsed_value = value.toLowerCase() === "true"; + } else if (value === "0" || value === "1") { + new_parsed_value = value === "1"; + } else { + return; + } + } + if (property.changes_parent) { + const parents = [property.parent]; + let idx = 0; + while (parents[idx].changes_parent) { + parents.push(parents[idx++].parent); + } + const changed_value = this.inspectorProvider.get_changed_value( + parents, + property, + new_parsed_value + ); + this.session?.controller.set_object_property( + BigInt(property.object_id), + parents[idx].label, + changed_value, + ); + } else { + this.session?.controller.set_object_property( + BigInt(property.object_id), + property.label, + new_parsed_value, + ); + } + + const name = this.inspectorProvider.get_top_name(); + const id = this.inspectorProvider.get_top_id(); + + this.session?.controller.request_inspect_object(BigInt(id)); + this.session?.inspect_callbacks.set( + BigInt(id), + (class_name, variable) => { + this.inspectorProvider.fill_tree( + name, + class_name, + id, + variable + ); + }, + ); + }); + } +} diff --git a/src/debugger/debugger_context.ts b/src/debugger/debugger_context.ts deleted file mode 100644 index 481c3aadd..000000000 --- a/src/debugger/debugger_context.ts +++ /dev/null @@ -1,223 +0,0 @@ -import { - ExtensionContext, - debug, - DebugConfigurationProvider, - WorkspaceFolder, - DebugAdapterInlineImplementation, - DebugAdapterDescriptorFactory, - DebugConfiguration, - DebugAdapterDescriptor, - DebugSession, - CancellationToken, - ProviderResult, - window, - commands, -} from "vscode"; -import { GodotDebugSession } from "./debug_session"; -import fs = require("fs"); -import { SceneTreeProvider, SceneNode } from "./scene_tree/scene_tree_provider"; -import { - RemoteProperty, - InspectorProvider, -} from "./scene_tree/inspector_provider"; -import { Mediator } from "./mediator"; - -export function register_debugger(context: ExtensionContext) { - let provider = new GodotConfigurationProvider(); - context.subscriptions.push( - debug.registerDebugConfigurationProvider("godot", provider) - ); - - let inspector_provider = new InspectorProvider(); - window.registerTreeDataProvider("inspect-node", inspector_provider); - - let scene_tree_provider = new SceneTreeProvider(); - window.registerTreeDataProvider("active-scene-tree", scene_tree_provider); - - let factory = new GodotDebugAdapterFactory(scene_tree_provider); - context.subscriptions.push( - debug.registerDebugAdapterDescriptorFactory("godot", factory) - ); - - commands.registerCommand( - "godotTools.debugger.inspectNode", - (element: SceneNode | RemoteProperty) => { - if (element instanceof SceneNode) { - Mediator.notify("inspect_object", [ - element.object_id, - (class_name, variable) => { - inspector_provider.fill_tree( - element.label, - class_name, - element.object_id, - variable - ); - }, - ]); - } else if (element instanceof RemoteProperty) { - Mediator.notify("inspect_object", [ - element.object_id, - (class_name, properties) => { - inspector_provider.fill_tree( - element.label, - class_name, - element.object_id, - properties - ); - }, - ]); - } - } - ); - - commands.registerCommand("godotTools.debugger.refreshSceneTree", () => { - Mediator.notify("request_scene_tree", []); - }); - - commands.registerCommand("godotTools.debugger.refreshInspector", () => { - if (inspector_provider.has_tree()) { - let name = inspector_provider.get_top_name(); - let id = inspector_provider.get_top_id(); - Mediator.notify("inspect_object", [ - id, - (class_name, properties) => { - inspector_provider.fill_tree(name, class_name, id, properties); - }, - ]); - } - }); - - commands.registerCommand( - "godotTools.debugger.editValue", - (property: RemoteProperty) => { - let previous_value = property.value; - let type = typeof previous_value; - let is_float = type === "number" && !Number.isInteger(previous_value); - window - .showInputBox({ value: `${property.description}` }) - .then((value) => { - let new_parsed_value: any; - switch (type) { - case "string": - new_parsed_value = value; - break; - case "number": - if (is_float) { - new_parsed_value = parseFloat(value); - if (isNaN(new_parsed_value)) { - return; - } - } else { - new_parsed_value = parseInt(value); - if (isNaN(new_parsed_value)) { - return; - } - } - break; - case "boolean": - if ( - value.toLowerCase() === "true" || - value.toLowerCase() === "false" - ) { - new_parsed_value = value.toLowerCase() === "true"; - } else if (value === "0" || value === "1") { - new_parsed_value = value === "1"; - } else { - return; - } - } - if (property.changes_parent) { - let parents = [property.parent]; - let idx = 0; - while (parents[idx].changes_parent) { - parents.push(parents[idx++].parent); - } - let changed_value = inspector_provider.get_changed_value( - parents, - property, - new_parsed_value - ); - Mediator.notify("changed_value", [ - property.object_id, - parents[idx].label, - changed_value, - ]); - } else { - Mediator.notify("changed_value", [ - property.object_id, - property.label, - new_parsed_value, - ]); - } - - Mediator.notify("inspect_object", [ - inspector_provider.get_top_id(), - (class_name, properties) => { - inspector_provider.fill_tree( - inspector_provider.get_top_name(), - class_name, - inspector_provider.get_top_id(), - properties - ); - }, - ]); - }); - } - ); - - context.subscriptions.push(factory); -} - -class GodotConfigurationProvider implements DebugConfigurationProvider { - public resolveDebugConfiguration( - folder: WorkspaceFolder | undefined, - config: DebugConfiguration, - token?: CancellationToken - ): ProviderResult { - if (!config.type && !config.request && !config.name) { - const editor = window.activeTextEditor; - if (editor && fs.existsSync(`${folder.uri.fsPath}/project.godot`)) { - config.type = "godot"; - config.name = "Debug Godot"; - config.request = "launch"; - config.project = "${workspaceFolder}"; - config.port = 6007; - config.address = "127.0.0.1"; - config.launch_game_instance = true; - config.launch_scene = false; - config.additional_options = ""; - } - } - - if (!config.project) { - return window - .showInformationMessage( - "Cannot find a project.godot in active workspace." - ) - .then(() => { - return undefined; - }); - } - - return config; - } -} - -class GodotDebugAdapterFactory implements DebugAdapterDescriptorFactory { - public session: GodotDebugSession | undefined; - - constructor(private scene_tree_provider: SceneTreeProvider) {} - - public createDebugAdapterDescriptor( - session: DebugSession - ): ProviderResult { - this.session = new GodotDebugSession(); - this.session.set_scene_tree(this.scene_tree_provider); - return new DebugAdapterInlineImplementation(this.session); - } - - public dispose() { - this.session.dispose(); - this.session = undefined; - } -} diff --git a/src/debugger/debug_session.ts b/src/debugger/godot3/debug_session.ts similarity index 52% rename from src/debugger/debug_session.ts rename to src/debugger/godot3/debug_session.ts index f791ed43e..e7a1a308f 100644 --- a/src/debugger/debug_session.ts +++ b/src/debugger/godot3/debug_session.ts @@ -1,84 +1,111 @@ +import * as fs from "fs"; import { - Breakpoint, InitializedEvent, LoggingDebugSession, Source, Thread -} from "vscode-debugadapter"; -import { DebugProtocol } from "vscode-debugprotocol"; -import { get_configuration } from "../utils"; -import { GodotDebugData, GodotVariable } from "./debug_runtime"; -import { Mediator } from "./mediator"; -import { SceneTreeProvider } from "./scene_tree/scene_tree_provider"; + LoggingDebugSession, + InitializedEvent, + Thread, + Source, + Breakpoint, + StoppedEvent, + TerminatedEvent, +} from "@vscode/debugadapter"; +import { DebugProtocol } from "@vscode/debugprotocol"; +import { debug } from "vscode"; +import { Subject } from "await-notify"; +import { GodotDebugData, GodotVariable, GodotStackVars } from "../debug_runtime"; +import { LaunchRequestArguments, AttachRequestArguments } from "../debugger"; +import { SceneTreeProvider } from "../scene_tree_provider"; +import { ObjectId } from "./variables/variants"; +import { parse_variable, is_variable_built_in_type } from "./helpers"; import { ServerController } from "./server_controller"; -import { ObjectId, RawObject } from "./variables/variants"; -const { Subject } = require("await-notify"); -import fs = require("fs"); - -interface LaunchRequestArguments extends DebugProtocol.LaunchRequestArguments { - address: string; - launch_game_instance: boolean; - launch_scene: boolean; - port: number; - project: string; - scene_file: string; - additional_options: string; -} +import { createLogger } from "../../logger"; + +const log = createLogger("debugger.session", { output: "Godot Debugger" }); export class GodotDebugSession extends LoggingDebugSession { private all_scopes: GodotVariable[]; - private controller?: ServerController; - private debug_data = new GodotDebugData(); + public controller = new ServerController(this); + public debug_data = new GodotDebugData(this); + public sceneTree: SceneTreeProvider; private exception = false; - private got_scope = new Subject(); + private got_scope: Subject = new Subject(); private ongoing_inspections: bigint[] = []; private previous_inspections: bigint[] = []; - private configuration_done = new Subject(); + private configuration_done: Subject = new Subject(); + private mode: "launch" | "attach" | "" = ""; + public inspect_callbacks: Map< + bigint, + (class_name: string, variable: GodotVariable) => void + > = new Map(); public constructor() { super(); this.setDebuggerLinesStartAt1(false); this.setDebuggerColumnsStartAt1(false); + } - Mediator.set_session(this); - this.controller = new ServerController(); - Mediator.set_controller(this.controller); - Mediator.set_debug_data(this.debug_data); + public dispose() { + this.controller.stop(); } - public dispose() {} + protected initializeRequest( + response: DebugProtocol.InitializeResponse, + args: DebugProtocol.InitializeRequestArguments + ) { + response.body = response.body || {}; - public set_exception(exception: boolean) { - this.exception = true; + response.body.supportsConfigurationDoneRequest = true; + response.body.supportsTerminateRequest = true; + response.body.supportsEvaluateForHovers = false; + response.body.supportsStepBack = false; + response.body.supportsGotoTargetsRequest = false; + response.body.supportsCancelRequest = false; + response.body.supportsCompletionsRequest = false; + response.body.supportsFunctionBreakpoints = false; + response.body.supportsDataBreakpoints = false; + response.body.supportsBreakpointLocationsRequest = false; + response.body.supportsConditionalBreakpoints = false; + response.body.supportsHitConditionalBreakpoints = false; + response.body.supportsLogPoints = false; + response.body.supportsModulesRequest = false; + response.body.supportsReadMemoryRequest = false; + response.body.supportsRestartFrame = false; + response.body.supportsRestartRequest = false; + response.body.supportsSetExpression = false; + response.body.supportsStepInTargetsRequest = false; + response.body.supportsTerminateThreadsRequest = false; + + this.sendResponse(response); + this.sendEvent(new InitializedEvent()); } - public set_inspection(id: bigint, replacement: GodotVariable) { - let variables = this.all_scopes.filter( - (va) => va && va.value instanceof ObjectId && va.value.id === id - ); + protected async launchRequest( + response: DebugProtocol.LaunchResponse, + args: LaunchRequestArguments + ) { + await this.configuration_done.wait(1000); - variables.forEach((va) => { - let index = this.all_scopes.findIndex((va_id) => va_id === va); - let old = this.all_scopes.splice(index, 1); - replacement.name = old[0].name; - replacement.scope_path = old[0].scope_path; - this.append_variable(replacement, index); - }); + this.mode = "launch"; - this.ongoing_inspections.splice( - this.ongoing_inspections.findIndex((va_id) => va_id === id), - 1 - ); + this.debug_data.projectPath = args.project; + this.exception = false; + await this.controller.launch(args); - this.previous_inspections.push(id); + this.sendResponse(response); + } - this.add_to_inspections(); + protected async attachRequest( + response: DebugProtocol.AttachResponse, + args: AttachRequestArguments + ) { + await this.configuration_done.wait(1000); - if (this.ongoing_inspections.length === 0) { - this.previous_inspections = []; - this.got_scope.notify(); - } - } + this.mode = "attach"; + + this.exception = false; + await this.controller.attach(args); - public set_scene_tree(scene_tree_provider: SceneTreeProvider) { - this.debug_data.scene_tree = scene_tree_provider; + this.sendResponse(response); } public configurationDoneRequest( @@ -89,80 +116,35 @@ export class GodotDebugSession extends LoggingDebugSession { this.sendResponse(response); } - public set_scopes( - locals: GodotVariable[], - members: GodotVariable[], - globals: GodotVariable[] - ) { - this.all_scopes = [ - undefined, - { name: "local", value: undefined, sub_values: locals, scope_path: "@" }, - { - name: "member", - value: undefined, - sub_values: members, - scope_path: "@", - }, - { - name: "global", - value: undefined, - sub_values: globals, - scope_path: "@", - }, - ]; - - locals.forEach((va) => { - va.scope_path = `@.local`; - this.append_variable(va); - }); - - members.forEach((va) => { - va.scope_path = `@.member`; - this.append_variable(va); - }); - - globals.forEach((va) => { - va.scope_path = `@.global`; - this.append_variable(va); - }); - - this.add_to_inspections(); - - if (this.ongoing_inspections.length === 0) { - this.previous_inspections = []; - this.got_scope.notify(); - } - } - protected continueRequest( response: DebugProtocol.ContinueResponse, args: DebugProtocol.ContinueArguments ) { if (!this.exception) { response.body = { allThreadsContinued: true }; - Mediator.notify("continue"); + this.controller.continue(); this.sendResponse(response); } } - protected evaluateRequest( + protected async evaluateRequest( response: DebugProtocol.EvaluateResponse, args: DebugProtocol.EvaluateArguments ) { + await debug.activeDebugSession.customRequest("scopes", { frameId: 0 }); + if (this.all_scopes) { - let expression = args.expression; - let matches = expression.match(/^[_a-zA-Z0-9]+?$/); - if (matches) { - let result_idx = this.all_scopes.findIndex( - (va) => va && va.name === expression - ); - if (result_idx !== -1) { - let result = this.all_scopes[result_idx]; - response.body = { - result: this.parse_variable(result).value, - variablesReference: result_idx, - }; - } + var variable = this.get_variable(args.expression, null, null, null); + + if (variable.error == null) { + var parsed_variable = parse_variable(variable.variable); + response.body = { + result: parsed_variable.value, + variablesReference: !is_variable_built_in_type(variable.variable) ? variable.index : 0 + }; + } else { + response.success = false; + response.message = variable.error; } } @@ -176,76 +158,12 @@ export class GodotDebugSession extends LoggingDebugSession { this.sendResponse(response); } - protected initializeRequest( - response: DebugProtocol.InitializeResponse, - args: DebugProtocol.InitializeRequestArguments - ) { - response.body = response.body || {}; - - response.body.supportsConfigurationDoneRequest = true; - response.body.supportsTerminateRequest = true; - - response.body.supportsEvaluateForHovers = false; - - response.body.supportsStepBack = false; - response.body.supportsGotoTargetsRequest = false; - - response.body.supportsCancelRequest = false; - - response.body.supportsCompletionsRequest = false; - - response.body.supportsFunctionBreakpoints = false; - response.body.supportsDataBreakpoints = false; - response.body.supportsBreakpointLocationsRequest = false; - response.body.supportsConditionalBreakpoints = false; - response.body.supportsHitConditionalBreakpoints = false; - - response.body.supportsLogPoints = false; - - response.body.supportsModulesRequest = false; - - response.body.supportsReadMemoryRequest = false; - - response.body.supportsRestartFrame = false; - response.body.supportsRestartRequest = false; - - response.body.supportsSetExpression = false; - - response.body.supportsStepInTargetsRequest = false; - - response.body.supportsTerminateThreadsRequest = false; - - this.sendResponse(response); - this.sendEvent(new InitializedEvent()); - } - - protected async launchRequest( - response: DebugProtocol.LaunchResponse, - args: LaunchRequestArguments - ) { - await this.configuration_done.wait(1000); - this.debug_data.project_path = args.project; - this.exception = false; - Mediator.notify("start", [ - args.project, - args.address, - args.port, - args.launch_game_instance, - args.launch_scene, - args.scene_file, - args.additional_options, - get_configuration("sceneFileConfig", "") || args.scene_file, - ]); - - this.sendResponse(response); - } - protected nextRequest( response: DebugProtocol.NextResponse, args: DebugProtocol.NextArguments ) { if (!this.exception) { - Mediator.notify("next"); + this.controller.next(); this.sendResponse(response); } } @@ -255,7 +173,7 @@ export class GodotDebugSession extends LoggingDebugSession { args: DebugProtocol.PauseArguments ) { if (!this.exception) { - Mediator.notify("break"); + this.controller.break(); this.sendResponse(response); } } @@ -264,10 +182,7 @@ export class GodotDebugSession extends LoggingDebugSession { response: DebugProtocol.ScopesResponse, args: DebugProtocol.ScopesArguments ) { - while (this.ongoing_inspections.length > 0) { - await this.got_scope.wait(100); - } - Mediator.notify("get_scopes", [args.frameId]); + this.controller.request_stack_frame_vars(args.frameId); await this.got_scope.wait(2000); response.body = { @@ -284,12 +199,12 @@ export class GodotDebugSession extends LoggingDebugSession { response: DebugProtocol.SetBreakpointsResponse, args: DebugProtocol.SetBreakpointsArguments ) { - let path = (args.source.path as string).replace(/\\/g, "/"); - let client_lines = args.lines || []; + const path = (args.source.path as string).replace(/\\/g, "/"); + const client_lines = args.lines || []; if (fs.existsSync(path)) { let bps = this.debug_data.get_breakpoints(path); - let bp_lines = bps.map((bp) => bp.line); + const bp_lines = bps.map((bp) => bp.line); bps.forEach((bp) => { if (client_lines.indexOf(bp.line) === -1) { @@ -298,7 +213,7 @@ export class GodotDebugSession extends LoggingDebugSession { }); client_lines.forEach((l) => { if (bp_lines.indexOf(l) === -1) { - let bp = args.breakpoints.find((bp_at_line) => (bp_at_line.line == l)); + const bp = args.breakpoints.find((bp_at_line) => (bp_at_line.line == l)); if (!bp.condition) { this.debug_data.set_breakpoint(path, l); } @@ -339,7 +254,7 @@ export class GodotDebugSession extends LoggingDebugSession { column: 1, source: new Source( sf.file, - `${this.debug_data.project_path}/${sf.file.replace("res://", "")}` + `${this.debug_data.projectPath}/${sf.file.replace("res://", "")}` ), }; }), @@ -353,7 +268,7 @@ export class GodotDebugSession extends LoggingDebugSession { args: DebugProtocol.StepInArguments ) { if (!this.exception) { - Mediator.notify("step"); + this.controller.step(); this.sendResponse(response); } } @@ -363,7 +278,7 @@ export class GodotDebugSession extends LoggingDebugSession { args: DebugProtocol.StepOutArguments ) { if (!this.exception) { - Mediator.notify("step_out"); + this.controller.step_out(); this.sendResponse(response); } } @@ -372,7 +287,10 @@ export class GodotDebugSession extends LoggingDebugSession { response: DebugProtocol.TerminateResponse, args: DebugProtocol.TerminateArguments ) { - Mediator.notify("stop"); + if (this.mode === "launch") { + this.controller.stop(); + this.sendEvent(new TerminatedEvent()); + } this.sendResponse(response); } @@ -385,25 +303,32 @@ export class GodotDebugSession extends LoggingDebugSession { response: DebugProtocol.VariablesResponse, args: DebugProtocol.VariablesArguments ) { - let reference = this.all_scopes[args.variablesReference]; + if (!this.all_scopes) { + response.body = { + variables: [] + }; + this.sendResponse(response); + return; + } + + const reference = this.all_scopes[args.variablesReference]; let variables: DebugProtocol.Variable[]; if (!reference.sub_values) { variables = []; } else { variables = reference.sub_values.map((va) => { - let sva = this.all_scopes.find( + const sva = this.all_scopes.find( (sva) => sva && sva.scope_path === va.scope_path && sva.name === va.name ); if (sva) { - return this.parse_variable( + return parse_variable( sva, this.all_scopes.findIndex( (va_idx) => va_idx && - va_idx.scope_path === - `${reference.scope_path}.${reference.name}` && + va_idx.scope_path === `${reference.scope_path}.${reference.name}` && va_idx.name === va.name ) ); @@ -418,83 +343,208 @@ export class GodotDebugSession extends LoggingDebugSession { this.sendResponse(response); } + public set_exception(exception: boolean) { + this.exception = true; + } + + public set_scopes(stackVars: GodotStackVars) { + this.all_scopes = [ + undefined, + { + name: "local", + value: undefined, + sub_values: stackVars.locals, + scope_path: "@" + }, + { + name: "member", + value: undefined, + sub_values: stackVars.members, + scope_path: "@", + }, + { + name: "global", + value: undefined, + sub_values: stackVars.globals, + scope_path: "@", + }, + ]; + + stackVars.locals.forEach((va) => { + va.scope_path = "@.local"; + this.append_variable(va); + }); + + stackVars.members.forEach((va) => { + va.scope_path = "@.member"; + this.append_variable(va); + }); + + stackVars.globals.forEach((va) => { + va.scope_path = "@.global"; + this.append_variable(va); + }); + + this.add_to_inspections(); + + if (this.ongoing_inspections.length === 0) { + this.previous_inspections = []; + this.got_scope.notify(); + } + } + + public set_inspection(id: bigint, replacement: GodotVariable) { + const variables = this.all_scopes.filter( + (va) => va && va.value instanceof ObjectId && va.value.id === id + ); + + variables.forEach((va) => { + const index = this.all_scopes.findIndex((va_id) => va_id === va); + const old = this.all_scopes.splice(index, 1); + replacement.name = old[0].name; + replacement.scope_path = old[0].scope_path; + this.append_variable(replacement, index); + }); + + this.ongoing_inspections.splice( + this.ongoing_inspections.findIndex((va_id) => va_id === id), + 1 + ); + + this.previous_inspections.push(id); + + // this.add_to_inspections(); + + if (this.ongoing_inspections.length === 0) { + this.previous_inspections = []; + this.got_scope.notify(); + } + } + private add_to_inspections() { this.all_scopes.forEach((va) => { if (va && va.value instanceof ObjectId) { if ( - !this.ongoing_inspections.find((va_id) => va_id === va.value.id) && - !this.previous_inspections.find((va_id) => va_id === va.value.id) + !this.ongoing_inspections.includes(va.value.id) && + !this.previous_inspections.includes(va.value.id) ) { - Mediator.notify("inspect_object", [va.value.id]); + this.controller.request_inspect_object(va.value.id); this.ongoing_inspections.push(va.value.id); } } }); } + protected get_variable(expression: string, root: GodotVariable = null, index: number = 0, object_id: number = null): { variable: GodotVariable, index: number, object_id: number, error: string } { + var result: { variable: GodotVariable, index: number, object_id: number, error: string } = { variable: null, index: null, object_id: null, error: null }; + + if (!root) { + if (!expression.includes("self")) { + expression = "self." + expression; + } + + root = this.all_scopes.find(x => x && x.name == "self"); + object_id = this.all_scopes.find(x => x && x.name == "id" && x.scope_path == "@.member.self").value; + } + + var items = expression.split("."); + var propertyName = items[index + 1]; + var path = items.slice(0, index + 1).join(".") + .split("self.").join("") + .split("self").join("") + .split("[").join(".") + .split("]").join(""); + + if (items.length == 1 && items[0] == "self") { + propertyName = "self"; + } + + // Detect index/key + var key = (propertyName.match(/(?<=\[).*(?=\])/) || [null])[0]; + if (key) { + key = key.replace(/['"]+/g, ""); + propertyName = propertyName.split(/(?<=\[).*(?=\])/).join("").split("\[\]").join(""); + if (path) path += "."; + path += propertyName; + propertyName = key; + } + + function sanitizeName(name: string) { + return name.split("Members/").join("").split("Locals/").join(""); + } + + function sanitizeScopePath(scope_path: string) { + return scope_path.split("@.member.self.").join("") + .split("@.member.self").join("") + .split("@.member.").join("") + .split("@.member").join("") + .split("@.local.").join("") + .split("@.local").join("") + .split("Locals/").join("") + .split("Members/").join("") + .split("@").join(""); + } + + var sanitized_all_scopes = this.all_scopes.filter(x => x).map(function (x) { + return { + sanitized: { + name: sanitizeName(x.name), + scope_path: sanitizeScopePath(x.scope_path) + }, + real: x + }; + }); + + result.variable = sanitized_all_scopes + .find(x => x.sanitized.name == propertyName && x.sanitized.scope_path == path) + ?.real; + if (!result.variable) { + result.error = `Could not find: ${propertyName}`; + return result; + } + + if (root.value.entries) { + if (result.variable.name == "self") { + result.object_id = this.all_scopes + .find(x => x && x.name == "id" && x.scope_path == "@.member.self").value; + } else if (key) { + var collection = path.split(".")[path.split(".").length - 1]; + var collection_items = Array.from(root.value.entries()) + .find(x => x && x[0].split("Members/").join("").split("Locals/").join("") == collection)[1]; + result.object_id = collection_items.get + ? collection_items.get(key)?.id + : collection_items[key]?.id; + } else { + result.object_id = Array.from(root.value.entries()) + .find(x => x && x[0].split("Members/").join("").split("Locals/").join("") == propertyName)[1].id; + } + } + + if (!result.object_id) { + result.object_id = object_id; + } + + result.index = this.all_scopes.findIndex(x => x && x.name == result.variable.name && x.scope_path == result.variable.scope_path); + + if (items.length > 2 && index < items.length - 2) { + result = this.get_variable(items.join("."), result.variable, index + 1, result.object_id); + } + + return result; + } + private append_variable(variable: GodotVariable, index?: number) { if (index) { this.all_scopes.splice(index, 0, variable); } else { this.all_scopes.push(variable); } - let base_path = `${variable.scope_path}.${variable.name}`; + const base_path = `${variable.scope_path}.${variable.name}`; if (variable.sub_values) { variable.sub_values.forEach((va, i) => { - va.scope_path = `${base_path}`; + va.scope_path = base_path; this.append_variable(va, index ? index + i + 1 : undefined); }); } } - - private parse_variable(va: GodotVariable, i?: number) { - let value = va.value; - let rendered_value = ""; - let reference = 0; - let array_size = 0; - let array_type = undefined; - - if (typeof value === "number") { - if (Number.isInteger(value)) { - rendered_value = `${value}`; - } else { - rendered_value = `${parseFloat(value.toFixed(5))}`; - } - } else if ( - typeof value === "bigint" || - typeof value === "boolean" || - typeof value === "string" - ) { - rendered_value = `${value}`; - } else if (typeof value === "undefined") { - rendered_value = "null"; - } else { - if (Array.isArray(value)) { - rendered_value = `Array[${value.length}]`; - array_size = value.length; - array_type = "indexed"; - reference = i ? i : 0; - } else if (value instanceof Map) { - if (value instanceof RawObject) { - rendered_value = `${value.class_name}`; - } else { - rendered_value = `Dictionary[${value.size}]`; - } - array_size = value.size; - array_type = "named"; - reference = i ? i : 0; - } else { - rendered_value = `${value.type_name()}${value.stringify_value()}`; - reference = i ? i : 0; - } - } - - return { - name: va.name, - value: rendered_value, - variablesReference: reference, - array_size: array_size > 0 ? array_size : undefined, - filter: array_type, - }; - } } diff --git a/src/debugger/godot3/helpers.ts b/src/debugger/godot3/helpers.ts new file mode 100644 index 000000000..60f00a407 --- /dev/null +++ b/src/debugger/godot3/helpers.ts @@ -0,0 +1,116 @@ +import { GodotVariable, RawObject } from "../debug_runtime"; +import { SceneNode } from "../scene_tree_provider"; + +export function parse_next_scene_node(params: any[], ofs: { offset: number } = { offset: 0 }): SceneNode { + const child_count: number = params[ofs.offset++]; + const name: string = params[ofs.offset++]; + const class_name: string = params[ofs.offset++]; + const id: number = params[ofs.offset++]; + + const children: SceneNode[] = []; + for (let i = 0; i < child_count; ++i) { + children.push(parse_next_scene_node(params, ofs)); + } + + return new SceneNode(name, class_name, id, children); +} + +export function split_buffers(buffer: Buffer) { + let len = buffer.byteLength; + let offset = 0; + const buffers: Buffer[] = []; + while (len > 0) { + const subLength = buffer.readUInt32LE(offset) + 4; + buffers.push(buffer.subarray(offset, offset + subLength)); + offset += subLength; + len -= subLength; + } + + return buffers; +} + +export function is_variable_built_in_type(va: GodotVariable) { + var type = typeof va.value; + return ["number", "bigint", "boolean", "string"].some(x => x == type); +} + +export function build_sub_values(va: GodotVariable) { + const value = va.value; + + let subValues: GodotVariable[] = undefined; + + if (value && Array.isArray(value)) { + subValues = value.map((va, i) => { + return { name: `${i}`, value: va } as GodotVariable; + }); + } else if (value instanceof Map) { + subValues = Array.from(value.keys()).map((va) => { + if (typeof va["stringify_value"] === "function") { + return { + name: `${va.type_name()}${va.stringify_value()}`, + value: value.get(va), + } as GodotVariable; + } else { + return { + name: `${va}`, + value: value.get(va), + } as GodotVariable; + } + }); + } else if (value && typeof value["sub_values"] === "function") { + subValues = value.sub_values().map((sva) => { + return { name: sva.name, value: sva.value } as GodotVariable; + }); + } + + va.sub_values = subValues; + + subValues?.forEach((sva) => build_sub_values(sva)); +} + +export function parse_variable(va: GodotVariable, i?: number) { + const value = va.value; + let rendered_value = ""; + let reference = 0; + let array_size = 0; + let array_type = undefined; + + if (typeof value === "number") { + if (Number.isInteger(value)) { + rendered_value = `${value}`; + } else { + rendered_value = `${parseFloat(value.toFixed(5))}`; + } + } else if ( + typeof value === "bigint" || + typeof value === "boolean" || + typeof value === "string" + ) { + rendered_value = `${value}`; + } else if (typeof value === "undefined") { + rendered_value = "null"; + } else { + if (Array.isArray(value)) { + rendered_value = `Array[${value.length}]`; + array_size = value.length; + array_type = "indexed"; + reference = i ? i : 0; + } else if (value instanceof Map) { + rendered_value = value["class_name"] ?? `Dictionary[${value.size}]`; + array_size = value.size; + array_type = "named"; + reference = i ? i : 0; + } else { + rendered_value = `${value.type_name()}${value.stringify_value()}`; + reference = i ? i : 0; + } + } + + return { + name: va.name, + value: rendered_value, + variablesReference: reference, + array_size: array_size > 0 ? array_size : undefined, + filter: array_type, + }; +} diff --git a/src/debugger/godot3/server_controller.ts b/src/debugger/godot3/server_controller.ts new file mode 100644 index 000000000..a45fdde98 --- /dev/null +++ b/src/debugger/godot3/server_controller.ts @@ -0,0 +1,523 @@ +import * as fs from "fs"; +import net = require("net"); +import { debug, window } from "vscode"; +import { execSync } from "child_process"; +import { StoppedEvent, TerminatedEvent } from "@vscode/debugadapter"; +import { VariantEncoder } from "./variables/variant_encoder"; +import { VariantDecoder } from "./variables/variant_decoder"; +import { RawObject } from "./variables/variants"; +import { GodotStackFrame, GodotStackVars } from "../debug_runtime"; +import { GodotDebugSession } from "./debug_session"; +import { parse_next_scene_node, split_buffers, build_sub_values } from "./helpers"; +import { get_configuration, get_free_port, projectVersion } from "../../utils"; +import { prompt_for_godot_executable } from "../../utils/prompts"; +import { subProcess, killSubProcesses } from "../../utils/subspawn"; +import { LaunchRequestArguments, AttachRequestArguments, pinnedScene } from "../debugger"; +import { createLogger } from "../../logger"; + +const log = createLogger("debugger.controller", { output: "Godot Debugger" }); +const socketLog = createLogger("debugger.socket"); + +class Command { + public command: string = ""; + public paramCount: number = -1; + public parameters: any[] = []; + public complete: boolean = false; + public threadId: number = 0; +} + +export class ServerController { + private commandBuffer: Buffer[] = []; + private encoder = new VariantEncoder(); + private decoder = new VariantDecoder(); + private draining = false; + private exception = ""; + private server?: net.Server; + private socket?: net.Socket; + private steppingOut = false; + private currentCommand: Command = undefined; + private didFirstOutput: boolean = false; + private connectedVersion = ""; + + public constructor( + public session: GodotDebugSession + ) { } + + public break() { + this.send_command("break"); + } + + public continue() { + this.send_command("continue"); + } + + public next() { + this.send_command("next"); + } + + public step() { + this.send_command("step"); + } + + public step_out() { + this.steppingOut = true; + this.send_command("next"); + } + + public set_breakpoint(path_to: string, line: number) { + this.send_command("breakpoint", [path_to, line, true]); + } + + public remove_breakpoint(path_to: string, line: number) { + this.session.debug_data.remove_breakpoint(path_to, line); + this.send_command("breakpoint", [path_to, line, false]); + } + + public request_inspect_object(object_id: bigint) { + this.send_command("inspect_object", [object_id]); + } + + public request_scene_tree() { + this.send_command("request_scene_tree"); + } + + public request_stack_dump() { + this.send_command("get_stack_dump"); + } + + public request_stack_frame_vars(frame_id: number) { + this.send_command("get_stack_frame_vars", [frame_id]); + } + + public set_object_property(objectId: bigint, label: string, newParsedValue: any) { + this.send_command("set_object_property", [ + objectId, + label, + newParsedValue, + ]); + } + + public set_exception(exception: string) { + this.exception = exception; + } + + private start_game(args: LaunchRequestArguments) { + log.info("Starting game process"); + const settingName = "editorPath.godot3"; + const godotPath: string = get_configuration(settingName); + + try { + log.info(`Verifying version of '${godotPath}'`); + const output = execSync(`${godotPath} --version`).toString().trim(); + const pattern = /([34])\.([0-9]+)\.(?:[0-9]+\.)?\w+.\w+.[0-9a-f]{9}/; + const match = output.match(pattern); + if (!match) { + const message = `Cannot launch debug session: '${settingName}' of '${godotPath}' is not a valid Godot executable`; + log.warn(message); + prompt_for_godot_executable(message, settingName); + this.abort(); + return; + } + log.info(`Got version string: '${output}'`); + this.connectedVersion = output; + if (match[1] !== settingName.slice(-1)) { + const message = `Cannot launch debug session: The current project uses Godot '${projectVersion}', but the specified Godot executable is version '${match[0]}'`; + log.warn(message); + prompt_for_godot_executable(message, settingName); + this.abort(); + return; + } + } catch { + const message = `Cannot launch debug session: '${settingName}' of '${godotPath}' is not a valid Godot executable`; + log.warn(message); + prompt_for_godot_executable(message, settingName); + this.abort(); + return; + } + + let command = `"${godotPath}" --path "${args.project}"`; + const address = args.address.replace("tcp://", ""); + command += ` --remote-debug "${address}:${args.port}"`; + + if (get_configuration("debugger.forceVisibleCollisionShapes")) { + command += " --debug-collisions"; + } + if (get_configuration("debugger.forceVisibleNavMesh")) { + command += " --debug-navigation"; + } + + if (args.scene && args.scene !== "main") { + log.info(`Custom scene argument provided: ${args.scene}`); + let filename = args.scene; + if (args.scene === "current") { + let path = window.activeTextEditor.document.fileName; + if (path.endsWith(".gd")) { + path = path.replace(".gd", ".tscn"); + if (!fs.existsSync(path)) { + const message = `Can't find associated scene file for ${path}`; + log.warn(message); + window.showErrorMessage(message, "Ok"); + this.abort(); + return; + } + } + filename = path; + } + if (args.scene === "pinned") { + if (!pinnedScene) { + const message = "No pinned scene found"; + log.warn(message); + window.showErrorMessage(message, "Ok"); + this.abort(); + return; + } + let path = pinnedScene.fsPath; + if (path.endsWith(".gd")) { + path = path.replace(".gd", ".tscn"); + if (!fs.existsSync(path)) { + const message = `Can't find associated scene file for ${path}`; + log.warn(message); + window.showErrorMessage(message, "Ok"); + this.abort(); + return; + } + } + filename = path; + } + command += ` "${filename}"`; + } + + command += this.session.debug_data.get_breakpoint_string(); + + if (args.additional_options) { + command += " " + args.additional_options; + } + + log.info(`Launching game process using command: '${command}'`); + const debugProcess = subProcess("debug", command, { shell: true }); + + debugProcess.stdout.on("data", (data) => { }); + debugProcess.stderr.on("data", (data) => { }); + debugProcess.on("close", (code) => { }); + } + + private stash: Buffer; + + private on_data(buffer: Buffer) { + if (this.stash) { + buffer = Buffer.concat([this.stash, buffer]); + this.stash = undefined; + } + + const buffers = split_buffers(buffer); + while (buffers.length > 0) { + const chunk = buffers.shift(); + const data = this.decoder.get_dataset(chunk)?.slice(1); + if (data === undefined) { + this.stash = Buffer.alloc(chunk.length); + chunk.copy(this.stash); + return; + } + this.parse_message(data); + } + } + + public async launch(args: LaunchRequestArguments) { + log.info("Starting debug controller in 'launch' mode"); + + this.server = net.createServer((socket) => { + this.socket = socket; + + socket.on("data", this.on_data.bind(this)); + + socket.on("close", (had_error) => { + // log.debug("socket close"); + this.abort(); + }); + + socket.on("end", () => { + // log.debug("socket end"); + this.abort(); + }); + + socket.on("error", (error) => { + // log.debug("socket error"); + // this.session.sendEvent(new TerminatedEvent()); + // this.stop(); + }); + + socket.on("drain", () => { + // log.debug("socket drain"); + socket.resume(); + this.draining = false; + this.send_buffer(); + }); + }); + + if (args.port === -1) { + args.port = await get_free_port(); + } + + this.server.listen(args.port, args.address); + + this.start_game(args); + } + + public async attach(args: AttachRequestArguments) { + log.info("Starting debug controller in 'attach' mode"); + + this.server = net.createServer((socket) => { + this.socket = socket; + + socket.on("data", this.on_data.bind(this)); + + socket.on("close", (had_error) => { + // log.debug("socket close"); + // this.session.sendEvent(new TerminatedEvent()); + // this.stop(); + }); + + socket.on("end", () => { + // log.debug("socket end"); + // this.session.sendEvent(new TerminatedEvent()); + // this.stop(); + }); + + socket.on("error", (error) => { + // log.error("socket error", error); + }); + + socket.on("drain", () => { + // log.debug("socket drain"); + socket.resume(); + this.draining = false; + this.send_buffer(); + }); + }); + + this.server.listen(args.port, args.address); + } + + private parse_message(dataset: any[]) { + if (!this.currentCommand || this.currentCommand.complete) { + this.currentCommand = new Command(); + this.currentCommand.command = dataset.shift(); + } + + while (dataset && dataset.length > 0) { + if (this.currentCommand.paramCount === -1) { + this.currentCommand.paramCount = dataset.shift(); + } else { + this.currentCommand.parameters.push(dataset.shift()); + } + + if (this.currentCommand.paramCount === this.currentCommand.parameters.length) { + this.currentCommand.complete = true; + } + } + + if (this.currentCommand.complete) { + socketLog.debug("rx:", [this.currentCommand.command, ...this.currentCommand.parameters]); + this.handle_command(this.currentCommand); + } + } + + private handle_command(command: Command) { + switch (command.command) { + case "debug_enter": { + const reason: string = command.parameters[1]; + if (reason !== "Breakpoint") { + this.set_exception(reason); + } else { + this.set_exception(""); + } + this.request_stack_dump(); + break; + } + case "debug_exit": + break; + case "message:click_ctrl": + // TODO: what is this? + break; + case "performance": + // TODO: what is this? + break; + case "message:scene_tree": { + const tree = parse_next_scene_node(command.parameters); + this.session.sceneTree.fill_tree(tree); + break; + } + case "message:inspect_object": { + const id = BigInt(command.parameters[0]); + const className: string = command.parameters[1]; + const properties: any[] = command.parameters[2]; + + const rawObject = new RawObject(className); + properties.forEach((prop) => { + rawObject.set(prop[0], prop[5]); + }); + const inspectedVariable = { name: "", value: rawObject }; + build_sub_values(inspectedVariable); + if (this.session.inspect_callbacks.has(BigInt(id))) { + this.session.inspect_callbacks.get(BigInt(id))( + inspectedVariable.name, + inspectedVariable + ); + this.session.inspect_callbacks.delete(BigInt(id)); + } + this.session.set_inspection(id, inspectedVariable); + break; + } + case "stack_dump": { + const frames: GodotStackFrame[] = command.parameters.map((sf, i) => { + return { + id: i, + file: sf.get("file"), + function: sf.get("function"), + line: sf.get("line"), + }; + }); + this.trigger_breakpoint(frames); + this.request_scene_tree(); + break; + } + case "stack_frame_vars": { + this.do_stack_frame_vars(command.parameters); + break; + } + case "output": { + if (!this.didFirstOutput) { + this.didFirstOutput = true; + // this.request_scene_tree(); + } + + command.parameters.forEach((line) => { + debug.activeDebugConsole.appendLine(line[0]); + }); + break; + } + } + } + + public abort() { + log.info("Aborting debug controller"); + this.session.sendEvent(new TerminatedEvent()); + this.stop(); + } + + public stop() { + log.info("Stopping debug controller"); + killSubProcesses("debug"); + + this.socket?.destroy(); + this.server?.close((error) => { + if (error) { + log.error(error); + } + this.server.unref(); + this.server = undefined; + }); + } + + public trigger_breakpoint(stackFrames: GodotStackFrame[]) { + let continueStepping = false; + const stackCount = stackFrames.length; + if (stackCount === 0) { + // Engine code is being executed, no user stack trace + this.session.debug_data.last_frames = []; + this.session.sendEvent(new StoppedEvent("breakpoint", 0)); + return; + } + + const file = stackFrames[0].file.replace("res://", `${this.session.debug_data.projectPath}/`); + const line = stackFrames[0].line; + + if (this.steppingOut) { + const breakpoint = this.session.debug_data + .get_breakpoints(file) + .find((bp) => bp.line === line); + if (!breakpoint) { + if (this.session.debug_data.stack_count > 1) { + continueStepping = this.session.debug_data.stack_count === stackCount; + } else { + const fileSame = + stackFrames[0].file === this.session.debug_data.last_frame.file; + const funcSame = + stackFrames[0].function === this.session.debug_data.last_frame.function; + const lineGreater = + stackFrames[0].line >= this.session.debug_data.last_frame.line; + + continueStepping = fileSame && funcSame && lineGreater; + } + } + } + + this.session.debug_data.stack_count = stackCount; + this.session.debug_data.last_frame = stackFrames[0]; + this.session.debug_data.last_frames = stackFrames; + + if (continueStepping) { + this.next(); + return; + } + + this.steppingOut = false; + + this.session.debug_data.stack_files = stackFrames.map((sf) => { + return sf.file; + }); + + if (this.exception.length === 0) { + this.session.sendEvent(new StoppedEvent("breakpoint", 0)); + } else { + this.session.set_exception(true); + this.session.sendEvent( + new StoppedEvent("exception", 0, this.exception) + ); + } + } + + private send_command(command: string, parameters: any[] = []) { + const commandArray: any[] = [command, ...parameters]; + socketLog.debug("tx:", commandArray); + const buffer = this.encoder.encode_variant(commandArray); + this.commandBuffer.push(buffer); + this.send_buffer(); + } + + private send_buffer() { + if (!this.socket) { + return; + } + + while (!this.draining && this.commandBuffer.length > 0) { + const command = this.commandBuffer.shift(); + this.draining = !this.socket.write(command); + } + } + + private do_stack_frame_vars(parameters: any[]) { + const stackVars = new GodotStackVars(); + + let localsRemaining = parameters[0]; + let membersRemaining = parameters[1 + (localsRemaining * 2)]; + let globalsRemaining = parameters[2 + ((localsRemaining + membersRemaining) * 2)]; + + let i = 1; + while (localsRemaining--) { + stackVars.locals.push({ name: parameters[i++], value: parameters[i++] }); + } + i++; + while (membersRemaining--) { + stackVars.members.push({ name: parameters[i++], value: parameters[i++] }); + } + i++; + while (globalsRemaining--) { + stackVars.globals.push({ name: parameters[i++], value: parameters[i++] }); + } + + stackVars.forEach(item => build_sub_values(item)); + + this.session.set_scopes(stackVars); + } +} diff --git a/src/debugger/variables/variant_decoder.ts b/src/debugger/godot3/variables/variant_decoder.ts similarity index 70% rename from src/debugger/variables/variant_decoder.ts rename to src/debugger/godot3/variables/variant_decoder.ts index 2fe012cfa..84961761a 100644 --- a/src/debugger/variables/variant_decoder.ts +++ b/src/debugger/godot3/variables/variant_decoder.ts @@ -18,7 +18,7 @@ import { export class VariantDecoder { public decode_variant(model: BufferModel) { - let type = this.decode_UInt32(model); + const type = this.decode_UInt32(model); switch (type & 0xff) { case GDScriptTypes.BOOL: return this.decode_UInt32(model) !== 0; @@ -87,18 +87,21 @@ export class VariantDecoder { } } - public get_dataset(buffer: Buffer, offset: number) { - let len = buffer.readUInt32LE(offset); - let model: BufferModel = { + public get_dataset(buffer: Buffer) { + const len = buffer.readUInt32LE(0); + if (buffer.length != len + 4) { + return undefined; + } + const model: BufferModel = { buffer: buffer, - offset: offset + 4, + offset: 4, // data starts after the initial length len: len, }; - let output = []; + const output = []; output.push(len + 4); do { - let value = this.decode_variant(model); + const value = this.decode_variant(model); output.push(value); } while (model.len > 0); @@ -110,12 +113,12 @@ export class VariantDecoder { } private decode_Array(model: BufferModel) { - let output: Array = []; + const output: Array = []; - let count = this.decode_UInt32(model); + const count = this.decode_UInt32(model); for (let i = 0; i < count; i++) { - let value = this.decode_variant(model); + const value = this.decode_variant(model); output.push(value); } @@ -131,19 +134,19 @@ export class VariantDecoder { } private decode_Color(model: BufferModel) { - let rgb = this.decode_Vector3(model); - let a = this.decode_Float(model); + const rgb = this.decode_Vector3(model); + const a = this.decode_Float(model); return new Color(rgb.x, rgb.y, rgb.z, a); } private decode_Dictionary(model: BufferModel) { - let output = new Map(); + const output = new Map(); - let count = this.decode_UInt32(model); + const count = this.decode_UInt32(model); for (let i = 0; i < count; i++) { - let key = this.decode_variant(model); - let value = this.decode_variant(model); + const key = this.decode_variant(model); + const value = this.decode_variant(model); output.set(key, value); } @@ -151,7 +154,7 @@ export class VariantDecoder { } private decode_Double(model: BufferModel) { - let d = model.buffer.readDoubleLE(model.offset); + const d = model.buffer.readDoubleLE(model.offset); model.offset += 8; model.len -= 8; @@ -160,7 +163,7 @@ export class VariantDecoder { } private decode_Float(model: BufferModel) { - let f = model.buffer.readFloatLE(model.offset); + const f = model.buffer.readFloatLE(model.offset); model.offset += 4; model.len -= 4; @@ -169,41 +172,53 @@ export class VariantDecoder { } private decode_Int32(model: BufferModel) { - let u = model.buffer.readInt32LE(model.offset); + const result = model.buffer.readInt32LE(model.offset); + + model.len -= 4; + model.offset += 4; + + return result; + } + private decode_UInt32(model: BufferModel) { + const result = model.buffer.readUInt32LE(model.offset); model.len -= 4; model.offset += 4; - return u; + return result; } private decode_Int64(model: BufferModel) { - let hi = model.buffer.readInt32LE(model.offset); - let lo = model.buffer.readInt32LE(model.offset + 4); + const result = model.buffer.readBigInt64LE(model.offset); + model.len -= 8; + model.offset += 8; - let u: BigInt = BigInt((hi << 32) | lo); + return result; + } + private decode_UInt64(model: BufferModel) { + const result = model.buffer.readBigUInt64LE(model.offset); model.len -= 8; model.offset += 8; - return u; + return result; } private decode_NodePath(model: BufferModel) { - let name_count = this.decode_UInt32(model) & 0x7fffffff; + const name_count = this.decode_UInt32(model) & 0x7fffffff; let subname_count = this.decode_UInt32(model); - let flags = this.decode_UInt32(model); - let is_absolute = (flags & 1) === 1; + const flags = this.decode_UInt32(model); + const is_absolute = (flags & 1) === 1; if (flags & 2) { //Obsolete format with property separate from subPath subname_count++; } - let total = name_count + subname_count; - let names: string[] = []; - let sub_names: string[] = []; + const total = name_count + subname_count; + const names: string[] = []; + const sub_names: string[] = []; for (let i = 0; i < total; i++) { - let str = this.decode_String(model); + const str = this.decode_String(model); if (i < name_count) { names.push(str); } else { @@ -215,13 +230,13 @@ export class VariantDecoder { } private decode_Object(model: BufferModel) { - let class_name = this.decode_String(model); - let prop_count = this.decode_UInt32(model); - let output = new RawObject(class_name); + const class_name = this.decode_String(model); + const prop_count = this.decode_UInt32(model); + const output = new RawObject(class_name); for (let i = 0; i < prop_count; i++) { - let name = this.decode_String(model); - let value = this.decode_variant(model); + const name = this.decode_String(model); + const value = this.decode_variant(model); output.set(name, value); } @@ -229,23 +244,23 @@ export class VariantDecoder { } private decode_Object_id(model: BufferModel) { - let id = this.decode_UInt64(model); + const id = this.decode_UInt64(model); return new ObjectId(id); } private decode_Plane(model: BufferModel) { - let x = this.decode_Float(model); - let y = this.decode_Float(model); - let z = this.decode_Float(model); - let d = this.decode_Float(model); + const x = this.decode_Float(model); + const y = this.decode_Float(model); + const z = this.decode_Float(model); + const d = this.decode_Float(model); return new Plane(x, y, z, d); } private decode_PoolByteArray(model: BufferModel) { - let count = this.decode_UInt32(model); - let output: number[] = []; + const count = this.decode_UInt32(model); + const output: number[] = []; for (let i = 0; i < count; i++) { output.push(model.buffer.readUInt8(model.offset)); model.offset++; @@ -256,8 +271,8 @@ export class VariantDecoder { } private decode_PoolColorArray(model: BufferModel) { - let count = this.decode_UInt32(model); - let output: Color[] = []; + const count = this.decode_UInt32(model); + const output: Color[] = []; for (let i = 0; i < count; i++) { output.push(this.decode_Color(model)); } @@ -266,8 +281,8 @@ export class VariantDecoder { } private decode_PoolFloatArray(model: BufferModel) { - let count = this.decode_UInt32(model); - let output: number[] = []; + const count = this.decode_UInt32(model); + const output: number[] = []; for (let i = 0; i < count; i++) { output.push(this.decode_Float(model)); } @@ -276,8 +291,8 @@ export class VariantDecoder { } private decode_PoolIntArray(model: BufferModel) { - let count = this.decode_UInt32(model); - let output: number[] = []; + const count = this.decode_UInt32(model); + const output: number[] = []; for (let i = 0; i < count; i++) { output.push(this.decode_Int32(model)); } @@ -286,8 +301,8 @@ export class VariantDecoder { } private decode_PoolStringArray(model: BufferModel) { - let count = this.decode_UInt32(model); - let output: string[] = []; + const count = this.decode_UInt32(model); + const output: string[] = []; for (let i = 0; i < count; i++) { output.push(this.decode_String(model)); } @@ -296,8 +311,8 @@ export class VariantDecoder { } private decode_PoolVector2Array(model: BufferModel) { - let count = this.decode_UInt32(model); - let output: Vector2[] = []; + const count = this.decode_UInt32(model); + const output: Vector2[] = []; for (let i = 0; i < count; i++) { output.push(this.decode_Vector2(model)); } @@ -306,8 +321,8 @@ export class VariantDecoder { } private decode_PoolVector3Array(model: BufferModel) { - let count = this.decode_UInt32(model); - let output: Vector3[] = []; + const count = this.decode_UInt32(model); + const output: Vector3[] = []; for (let i = 0; i < count; i++) { output.push(this.decode_Vector3(model)); } @@ -316,10 +331,10 @@ export class VariantDecoder { } private decode_Quat(model: BufferModel) { - let x = this.decode_Float(model); - let y = this.decode_Float(model); - let z = this.decode_Float(model); - let w = this.decode_Float(model); + const x = this.decode_Float(model); + const y = this.decode_Float(model); + const z = this.decode_Float(model); + const w = this.decode_Float(model); return new Quat(x, y, z, w); } @@ -335,7 +350,7 @@ export class VariantDecoder { pad = 4 - (len % 4); } - let str = model.buffer.toString("utf8", model.offset, model.offset + len); + const str = model.buffer.toString("utf8", model.offset, model.offset + len); len += pad; model.offset += len; @@ -356,36 +371,17 @@ export class VariantDecoder { ); } - private decode_UInt32(model: BufferModel) { - let u = model.buffer.readUInt32LE(model.offset); - model.len -= 4; - model.offset += 4; - - return u; - } - - private decode_UInt64(model: BufferModel) { - let hi = model.buffer.readUInt32LE(model.offset); - let lo = model.buffer.readUInt32LE(model.offset + 4); - - let u = BigInt((hi << 32) | lo); - model.len -= 8; - model.offset += 8; - - return u; - } - private decode_Vector2(model: BufferModel) { - let x = this.decode_Float(model); - let y = this.decode_Float(model); + const x = this.decode_Float(model); + const y = this.decode_Float(model); return new Vector2(x, y); } private decode_Vector3(model: BufferModel) { - let x = this.decode_Float(model); - let y = this.decode_Float(model); - let z = this.decode_Float(model); + const x = this.decode_Float(model); + const y = this.decode_Float(model); + const z = this.decode_Float(model); return new Vector3(x, y, z); } diff --git a/src/debugger/variables/variant_encoder.ts b/src/debugger/godot3/variables/variant_encoder.ts similarity index 94% rename from src/debugger/variables/variant_encoder.ts rename to src/debugger/godot3/variables/variant_encoder.ts index 9da4f9590..9b318684a 100644 --- a/src/debugger/variables/variant_encoder.ts +++ b/src/debugger/godot3/variables/variant_encoder.ts @@ -35,8 +35,8 @@ export class VariantEncoder { } if (!model) { - let size = this.size_variant(value); - let buffer = Buffer.alloc(size + 4); + const size = this.size_variant(value); + const buffer = Buffer.alloc(size + 4); model = { buffer: buffer, offset: 0, @@ -48,7 +48,7 @@ export class VariantEncoder { switch (typeof value) { case "number": { - let is_integer = Number.isInteger(value); + const is_integer = Number.isInteger(value); if (is_integer) { this.encode_UInt32(GDScriptTypes.INT, model); this.encode_UInt32(value, model); @@ -123,7 +123,7 @@ export class VariantEncoder { } private encode_Array(arr: any[], model: BufferModel) { - let size = arr.length; + const size = arr.length; this.encode_UInt32(size, model); arr.forEach((e) => { this.encode_variant(e, model); @@ -148,11 +148,11 @@ export class VariantEncoder { } private encode_Dictionary(dict: Map, model: BufferModel) { - let size = dict.size; + const size = dict.size; this.encode_UInt32(size, model); - let keys = Array.from(dict.keys()); + const keys = Array.from(dict.keys()); keys.forEach((key) => { - let value = dict.get(key); + const value = dict.get(key); this.encode_variant(key, model); this.encode_variant(value, model); }); @@ -217,11 +217,8 @@ export class VariantEncoder { } private encode_UInt64(value: bigint, model: BufferModel) { - let hi = Number(value >> BigInt(32)); - let lo = Number(value); - - this.encode_UInt32(lo, model); - this.encode_UInt32(hi, model); + model.buffer.writeBigUInt64LE(value, model.offset); + model.offset += 8; } private encode_Vector2(value: Vector2, model: BufferModel) { @@ -241,9 +238,9 @@ export class VariantEncoder { private size_Dictionary(dict: Map): number { let size = this.size_UInt32(); - let keys = Array.from(dict.keys()); + const keys = Array.from(dict.keys()); keys.forEach((key) => { - let value = dict.get(key); + const value = dict.get(key); size += this.size_variant(key); size += this.size_variant(value); }); diff --git a/src/debugger/variables/variants.ts b/src/debugger/godot3/variables/variants.ts similarity index 99% rename from src/debugger/variables/variants.ts rename to src/debugger/godot3/variables/variants.ts index 265136398..19cca934b 100644 --- a/src/debugger/variables/variants.ts +++ b/src/debugger/godot3/variables/variants.ts @@ -1,4 +1,4 @@ -import { GodotVariable } from "../debug_runtime"; +import { GodotVariable } from "../../debug_runtime"; export enum GDScriptTypes { NIL, diff --git a/src/debugger/godot4/debug_session.ts b/src/debugger/godot4/debug_session.ts new file mode 100644 index 000000000..e7a1a308f --- /dev/null +++ b/src/debugger/godot4/debug_session.ts @@ -0,0 +1,550 @@ +import * as fs from "fs"; +import { + LoggingDebugSession, + InitializedEvent, + Thread, + Source, + Breakpoint, + StoppedEvent, + TerminatedEvent, +} from "@vscode/debugadapter"; +import { DebugProtocol } from "@vscode/debugprotocol"; +import { debug } from "vscode"; +import { Subject } from "await-notify"; +import { GodotDebugData, GodotVariable, GodotStackVars } from "../debug_runtime"; +import { LaunchRequestArguments, AttachRequestArguments } from "../debugger"; +import { SceneTreeProvider } from "../scene_tree_provider"; +import { ObjectId } from "./variables/variants"; +import { parse_variable, is_variable_built_in_type } from "./helpers"; +import { ServerController } from "./server_controller"; +import { createLogger } from "../../logger"; + +const log = createLogger("debugger.session", { output: "Godot Debugger" }); + +export class GodotDebugSession extends LoggingDebugSession { + private all_scopes: GodotVariable[]; + public controller = new ServerController(this); + public debug_data = new GodotDebugData(this); + public sceneTree: SceneTreeProvider; + private exception = false; + private got_scope: Subject = new Subject(); + private ongoing_inspections: bigint[] = []; + private previous_inspections: bigint[] = []; + private configuration_done: Subject = new Subject(); + private mode: "launch" | "attach" | "" = ""; + public inspect_callbacks: Map< + bigint, + (class_name: string, variable: GodotVariable) => void + > = new Map(); + + public constructor() { + super(); + + this.setDebuggerLinesStartAt1(false); + this.setDebuggerColumnsStartAt1(false); + } + + public dispose() { + this.controller.stop(); + } + + protected initializeRequest( + response: DebugProtocol.InitializeResponse, + args: DebugProtocol.InitializeRequestArguments + ) { + response.body = response.body || {}; + + response.body.supportsConfigurationDoneRequest = true; + response.body.supportsTerminateRequest = true; + response.body.supportsEvaluateForHovers = false; + response.body.supportsStepBack = false; + response.body.supportsGotoTargetsRequest = false; + response.body.supportsCancelRequest = false; + response.body.supportsCompletionsRequest = false; + response.body.supportsFunctionBreakpoints = false; + response.body.supportsDataBreakpoints = false; + response.body.supportsBreakpointLocationsRequest = false; + response.body.supportsConditionalBreakpoints = false; + response.body.supportsHitConditionalBreakpoints = false; + response.body.supportsLogPoints = false; + response.body.supportsModulesRequest = false; + response.body.supportsReadMemoryRequest = false; + response.body.supportsRestartFrame = false; + response.body.supportsRestartRequest = false; + response.body.supportsSetExpression = false; + response.body.supportsStepInTargetsRequest = false; + response.body.supportsTerminateThreadsRequest = false; + + this.sendResponse(response); + this.sendEvent(new InitializedEvent()); + } + + protected async launchRequest( + response: DebugProtocol.LaunchResponse, + args: LaunchRequestArguments + ) { + await this.configuration_done.wait(1000); + + this.mode = "launch"; + + this.debug_data.projectPath = args.project; + this.exception = false; + await this.controller.launch(args); + + this.sendResponse(response); + } + + protected async attachRequest( + response: DebugProtocol.AttachResponse, + args: AttachRequestArguments + ) { + await this.configuration_done.wait(1000); + + this.mode = "attach"; + + this.exception = false; + await this.controller.attach(args); + + this.sendResponse(response); + } + + public configurationDoneRequest( + response: DebugProtocol.ConfigurationDoneResponse, + args: DebugProtocol.ConfigurationDoneArguments + ) { + this.configuration_done.notify(); + this.sendResponse(response); + } + + protected continueRequest( + response: DebugProtocol.ContinueResponse, + args: DebugProtocol.ContinueArguments + ) { + if (!this.exception) { + response.body = { allThreadsContinued: true }; + this.controller.continue(); + this.sendResponse(response); + } + } + + protected async evaluateRequest( + response: DebugProtocol.EvaluateResponse, + args: DebugProtocol.EvaluateArguments + ) { + await debug.activeDebugSession.customRequest("scopes", { frameId: 0 }); + + if (this.all_scopes) { + var variable = this.get_variable(args.expression, null, null, null); + + if (variable.error == null) { + var parsed_variable = parse_variable(variable.variable); + response.body = { + result: parsed_variable.value, + variablesReference: !is_variable_built_in_type(variable.variable) ? variable.index : 0 + }; + } else { + response.success = false; + response.message = variable.error; + } + } + + if (!response.body) { + response.body = { + result: "null", + variablesReference: 0, + }; + } + + this.sendResponse(response); + } + + protected nextRequest( + response: DebugProtocol.NextResponse, + args: DebugProtocol.NextArguments + ) { + if (!this.exception) { + this.controller.next(); + this.sendResponse(response); + } + } + + protected pauseRequest( + response: DebugProtocol.PauseResponse, + args: DebugProtocol.PauseArguments + ) { + if (!this.exception) { + this.controller.break(); + this.sendResponse(response); + } + } + + protected async scopesRequest( + response: DebugProtocol.ScopesResponse, + args: DebugProtocol.ScopesArguments + ) { + this.controller.request_stack_frame_vars(args.frameId); + await this.got_scope.wait(2000); + + response.body = { + scopes: [ + { name: "Locals", variablesReference: 1, expensive: false }, + { name: "Members", variablesReference: 2, expensive: false }, + { name: "Globals", variablesReference: 3, expensive: false }, + ], + }; + this.sendResponse(response); + } + + protected setBreakPointsRequest( + response: DebugProtocol.SetBreakpointsResponse, + args: DebugProtocol.SetBreakpointsArguments + ) { + const path = (args.source.path as string).replace(/\\/g, "/"); + const client_lines = args.lines || []; + + if (fs.existsSync(path)) { + let bps = this.debug_data.get_breakpoints(path); + const bp_lines = bps.map((bp) => bp.line); + + bps.forEach((bp) => { + if (client_lines.indexOf(bp.line) === -1) { + this.debug_data.remove_breakpoint(path, bp.line); + } + }); + client_lines.forEach((l) => { + if (bp_lines.indexOf(l) === -1) { + const bp = args.breakpoints.find((bp_at_line) => (bp_at_line.line == l)); + if (!bp.condition) { + this.debug_data.set_breakpoint(path, l); + } + } + }); + + bps = this.debug_data.get_breakpoints(path); + // Sort to ensure breakpoints aren't out-of-order, which would confuse VS Code. + bps.sort((a, b) => (a.line < b.line ? -1 : 1)); + + response.body = { + breakpoints: bps.map((bp) => { + return new Breakpoint( + true, + bp.line, + 1, + new Source(bp.file.split("/").reverse()[0], bp.file) + ); + }), + }; + + this.sendResponse(response); + } + } + + protected stackTraceRequest( + response: DebugProtocol.StackTraceResponse, + args: DebugProtocol.StackTraceArguments + ) { + if (this.debug_data.last_frame) { + response.body = { + totalFrames: this.debug_data.last_frames.length, + stackFrames: this.debug_data.last_frames.map((sf) => { + return { + id: sf.id, + name: sf.function, + line: sf.line, + column: 1, + source: new Source( + sf.file, + `${this.debug_data.projectPath}/${sf.file.replace("res://", "")}` + ), + }; + }), + }; + } + this.sendResponse(response); + } + + protected stepInRequest( + response: DebugProtocol.StepInResponse, + args: DebugProtocol.StepInArguments + ) { + if (!this.exception) { + this.controller.step(); + this.sendResponse(response); + } + } + + protected stepOutRequest( + response: DebugProtocol.StepOutResponse, + args: DebugProtocol.StepOutArguments + ) { + if (!this.exception) { + this.controller.step_out(); + this.sendResponse(response); + } + } + + protected terminateRequest( + response: DebugProtocol.TerminateResponse, + args: DebugProtocol.TerminateArguments + ) { + if (this.mode === "launch") { + this.controller.stop(); + this.sendEvent(new TerminatedEvent()); + } + this.sendResponse(response); + } + + protected threadsRequest(response: DebugProtocol.ThreadsResponse) { + response.body = { threads: [new Thread(0, "thread_1")] }; + this.sendResponse(response); + } + + protected async variablesRequest( + response: DebugProtocol.VariablesResponse, + args: DebugProtocol.VariablesArguments + ) { + if (!this.all_scopes) { + response.body = { + variables: [] + }; + this.sendResponse(response); + return; + } + + const reference = this.all_scopes[args.variablesReference]; + let variables: DebugProtocol.Variable[]; + + if (!reference.sub_values) { + variables = []; + } else { + variables = reference.sub_values.map((va) => { + const sva = this.all_scopes.find( + (sva) => + sva && sva.scope_path === va.scope_path && sva.name === va.name + ); + if (sva) { + return parse_variable( + sva, + this.all_scopes.findIndex( + (va_idx) => + va_idx && + va_idx.scope_path === `${reference.scope_path}.${reference.name}` && + va_idx.name === va.name + ) + ); + } + }); + } + + response.body = { + variables: variables, + }; + + this.sendResponse(response); + } + + public set_exception(exception: boolean) { + this.exception = true; + } + + public set_scopes(stackVars: GodotStackVars) { + this.all_scopes = [ + undefined, + { + name: "local", + value: undefined, + sub_values: stackVars.locals, + scope_path: "@" + }, + { + name: "member", + value: undefined, + sub_values: stackVars.members, + scope_path: "@", + }, + { + name: "global", + value: undefined, + sub_values: stackVars.globals, + scope_path: "@", + }, + ]; + + stackVars.locals.forEach((va) => { + va.scope_path = "@.local"; + this.append_variable(va); + }); + + stackVars.members.forEach((va) => { + va.scope_path = "@.member"; + this.append_variable(va); + }); + + stackVars.globals.forEach((va) => { + va.scope_path = "@.global"; + this.append_variable(va); + }); + + this.add_to_inspections(); + + if (this.ongoing_inspections.length === 0) { + this.previous_inspections = []; + this.got_scope.notify(); + } + } + + public set_inspection(id: bigint, replacement: GodotVariable) { + const variables = this.all_scopes.filter( + (va) => va && va.value instanceof ObjectId && va.value.id === id + ); + + variables.forEach((va) => { + const index = this.all_scopes.findIndex((va_id) => va_id === va); + const old = this.all_scopes.splice(index, 1); + replacement.name = old[0].name; + replacement.scope_path = old[0].scope_path; + this.append_variable(replacement, index); + }); + + this.ongoing_inspections.splice( + this.ongoing_inspections.findIndex((va_id) => va_id === id), + 1 + ); + + this.previous_inspections.push(id); + + // this.add_to_inspections(); + + if (this.ongoing_inspections.length === 0) { + this.previous_inspections = []; + this.got_scope.notify(); + } + } + + private add_to_inspections() { + this.all_scopes.forEach((va) => { + if (va && va.value instanceof ObjectId) { + if ( + !this.ongoing_inspections.includes(va.value.id) && + !this.previous_inspections.includes(va.value.id) + ) { + this.controller.request_inspect_object(va.value.id); + this.ongoing_inspections.push(va.value.id); + } + } + }); + } + + protected get_variable(expression: string, root: GodotVariable = null, index: number = 0, object_id: number = null): { variable: GodotVariable, index: number, object_id: number, error: string } { + var result: { variable: GodotVariable, index: number, object_id: number, error: string } = { variable: null, index: null, object_id: null, error: null }; + + if (!root) { + if (!expression.includes("self")) { + expression = "self." + expression; + } + + root = this.all_scopes.find(x => x && x.name == "self"); + object_id = this.all_scopes.find(x => x && x.name == "id" && x.scope_path == "@.member.self").value; + } + + var items = expression.split("."); + var propertyName = items[index + 1]; + var path = items.slice(0, index + 1).join(".") + .split("self.").join("") + .split("self").join("") + .split("[").join(".") + .split("]").join(""); + + if (items.length == 1 && items[0] == "self") { + propertyName = "self"; + } + + // Detect index/key + var key = (propertyName.match(/(?<=\[).*(?=\])/) || [null])[0]; + if (key) { + key = key.replace(/['"]+/g, ""); + propertyName = propertyName.split(/(?<=\[).*(?=\])/).join("").split("\[\]").join(""); + if (path) path += "."; + path += propertyName; + propertyName = key; + } + + function sanitizeName(name: string) { + return name.split("Members/").join("").split("Locals/").join(""); + } + + function sanitizeScopePath(scope_path: string) { + return scope_path.split("@.member.self.").join("") + .split("@.member.self").join("") + .split("@.member.").join("") + .split("@.member").join("") + .split("@.local.").join("") + .split("@.local").join("") + .split("Locals/").join("") + .split("Members/").join("") + .split("@").join(""); + } + + var sanitized_all_scopes = this.all_scopes.filter(x => x).map(function (x) { + return { + sanitized: { + name: sanitizeName(x.name), + scope_path: sanitizeScopePath(x.scope_path) + }, + real: x + }; + }); + + result.variable = sanitized_all_scopes + .find(x => x.sanitized.name == propertyName && x.sanitized.scope_path == path) + ?.real; + if (!result.variable) { + result.error = `Could not find: ${propertyName}`; + return result; + } + + if (root.value.entries) { + if (result.variable.name == "self") { + result.object_id = this.all_scopes + .find(x => x && x.name == "id" && x.scope_path == "@.member.self").value; + } else if (key) { + var collection = path.split(".")[path.split(".").length - 1]; + var collection_items = Array.from(root.value.entries()) + .find(x => x && x[0].split("Members/").join("").split("Locals/").join("") == collection)[1]; + result.object_id = collection_items.get + ? collection_items.get(key)?.id + : collection_items[key]?.id; + } else { + result.object_id = Array.from(root.value.entries()) + .find(x => x && x[0].split("Members/").join("").split("Locals/").join("") == propertyName)[1].id; + } + } + + if (!result.object_id) { + result.object_id = object_id; + } + + result.index = this.all_scopes.findIndex(x => x && x.name == result.variable.name && x.scope_path == result.variable.scope_path); + + if (items.length > 2 && index < items.length - 2) { + result = this.get_variable(items.join("."), result.variable, index + 1, result.object_id); + } + + return result; + } + + private append_variable(variable: GodotVariable, index?: number) { + if (index) { + this.all_scopes.splice(index, 0, variable); + } else { + this.all_scopes.push(variable); + } + const base_path = `${variable.scope_path}.${variable.name}`; + if (variable.sub_values) { + variable.sub_values.forEach((va, i) => { + va.scope_path = base_path; + this.append_variable(va, index ? index + i + 1 : undefined); + }); + } + } +} diff --git a/src/debugger/godot4/helpers.ts b/src/debugger/godot4/helpers.ts new file mode 100644 index 000000000..a40d4bb45 --- /dev/null +++ b/src/debugger/godot4/helpers.ts @@ -0,0 +1,123 @@ +import { GodotVariable, RawObject } from "../debug_runtime"; +import { SceneNode } from "../scene_tree_provider"; +import { createLogger } from "../../logger"; + +const log = createLogger("debugger.helpers"); + +export function parse_next_scene_node(params: any[], ofs: { offset: number } = { offset: 0 }): SceneNode { + const child_count: number = params[ofs.offset++]; + const name: string = params[ofs.offset++]; + const class_name: string = params[ofs.offset++]; + const id: number = params[ofs.offset++]; + const scene_file_path: string = params[ofs.offset++]; + const view_flags: number = params[ofs.offset++]; + + const children: SceneNode[] = []; + for (let i = 0; i < child_count; ++i) { + children.push(parse_next_scene_node(params, ofs)); + } + + return new SceneNode(name, class_name, id, children, scene_file_path, view_flags); +} + +export function split_buffers(buffer: Buffer) { + let len = buffer.byteLength; + let offset = 0; + const buffers: Buffer[] = []; + while (len > 0) { + const subLength = buffer.readUInt32LE(offset) + 4; + buffers.push(buffer.subarray(offset, offset + subLength)); + offset += subLength; + len -= subLength; + } + + return buffers; +} + +export function is_variable_built_in_type(va: GodotVariable) { + var type = typeof va.value; + return ["number", "bigint", "boolean", "string"].some(x => x == type); +} + + +export function build_sub_values(va: GodotVariable) { + const value = va.value; + + let subValues: GodotVariable[] = undefined; + + if (value && Array.isArray(value)) { + subValues = value.map((va, i) => { + return { name: `${i}`, value: va } as GodotVariable; + }); + } else if (value instanceof Map) { + subValues = Array.from(value.keys()).map((va) => { + if (typeof va["stringify_value"] === "function") { + return { + name: `${va.type_name()}${va.stringify_value()}`, + value: value.get(va), + } as GodotVariable; + } else { + return { + name: `${va}`, + value: value.get(va), + } as GodotVariable; + } + }); + } else if (value && typeof value["sub_values"] === "function") { + subValues = value.sub_values().map((sva) => { + return { name: sva.name, value: sva.value } as GodotVariable; + }); + } + + va.sub_values = subValues; + + subValues?.forEach(build_sub_values); +} + + +export function parse_variable(va: GodotVariable, i?: number) { + const value = va.value; + let rendered_value = ""; + let reference = 0; + let array_size = 0; + let array_type = undefined; + + if (typeof value === "number") { + if (Number.isInteger(value)) { + rendered_value = `${value}`; + } else { + rendered_value = `${parseFloat(value.toFixed(5))}`; + } + } else if ( + typeof value === "bigint" || + typeof value === "boolean" || + typeof value === "string" + ) { + rendered_value = `${value}`; + } else if (typeof value === "undefined") { + rendered_value = "null"; + } else { + if (Array.isArray(value)) { + rendered_value = `Array[${value.length}]`; + array_size = value.length; + array_type = "indexed"; + reference = i ? i : 0; + } else if (value instanceof Map) { + rendered_value = value["class_name"] ?? `Dictionary[${value.size}]`; + array_size = value.size; + array_type = "named"; + reference = i ? i : 0; + } else { + rendered_value = `${value.type_name()}${value.stringify_value()}`; + reference = i ? i : 0; + } + } + + return { + name: va.name, + value: rendered_value, + variablesReference: reference, + array_size: array_size > 0 ? array_size : undefined, + filter: array_type, + }; +} diff --git a/src/debugger/godot4/server_controller.ts b/src/debugger/godot4/server_controller.ts new file mode 100644 index 000000000..a34bb1f42 --- /dev/null +++ b/src/debugger/godot4/server_controller.ts @@ -0,0 +1,529 @@ +import * as fs from "fs"; +import net = require("net"); +import { debug, window } from "vscode"; +import { execSync } from "child_process"; +import { StoppedEvent, TerminatedEvent } from "@vscode/debugadapter"; +import { VariantEncoder } from "./variables/variant_encoder"; +import { VariantDecoder } from "./variables/variant_decoder"; +import { RawObject } from "./variables/variants"; +import { GodotStackFrame, GodotVariable, GodotStackVars } from "../debug_runtime"; +import { GodotDebugSession } from "./debug_session"; +import { parse_next_scene_node, split_buffers, build_sub_values } from "./helpers"; +import { get_configuration, get_free_port, projectVersion } from "../../utils"; +import { prompt_for_godot_executable } from "../../utils/prompts"; +import { subProcess, killSubProcesses } from "../../utils/subspawn"; +import { LaunchRequestArguments, AttachRequestArguments, pinnedScene } from "../debugger"; +import { createLogger } from "../../logger"; + +const log = createLogger("debugger.controller", { output: "Godot Debugger" }); +const socketLog = createLogger("debugger.socket"); + +class Command { + public command: string = ""; + public paramCount: number = -1; + public parameters: any[] = []; + public complete: boolean = false; + public threadId: number = 0; +} + +export class ServerController { + private commandBuffer: Buffer[] = []; + private encoder = new VariantEncoder(); + private decoder = new VariantDecoder(); + private draining = false; + private exception = ""; + private threadId: number; + private server?: net.Server; + private socket?: net.Socket; + private steppingOut = false; + private didFirstOutput: boolean = false; + private partialStackVars = new GodotStackVars(); + private connectedVersion = ""; + + public constructor( + public session: GodotDebugSession + ) { } + + public break() { + this.send_command("break"); + } + + public continue() { + this.send_command("continue"); + } + + public next() { + this.send_command("next"); + } + + public step() { + this.send_command("step"); + } + + public step_out() { + this.steppingOut = true; + this.send_command("next"); + } + + public set_breakpoint(path_to: string, line: number) { + this.send_command("breakpoint", [path_to, line, true]); + } + + public remove_breakpoint(path_to: string, line: number) { + this.session.debug_data.remove_breakpoint(path_to, line); + this.send_command("breakpoint", [path_to, line, false]); + } + + public request_inspect_object(object_id: bigint) { + this.send_command("scene:inspect_object", [object_id]); + } + + public request_scene_tree() { + this.send_command("scene:request_scene_tree"); + } + + public request_stack_dump() { + this.send_command("get_stack_dump"); + } + + public request_stack_frame_vars(frame_id: number) { + this.send_command("get_stack_frame_vars", [frame_id]); + } + + public set_object_property(objectId: bigint, label: string, newParsedValue: any) { + this.send_command("scene:set_object_property", [ + objectId, + label, + newParsedValue, + ]); + } + + public set_exception(exception: string) { + this.exception = exception; + } + + private start_game(args: LaunchRequestArguments) { + log.info("Starting game process"); + const settingName = "editorPath.godot4"; + const godotPath: string = get_configuration(settingName); + + try { + log.info(`Verifying version of '${godotPath}'`); + const output = execSync(`${godotPath} --version`).toString().trim(); + const pattern = /([34])\.([0-9]+)\.(?:[0-9]+\.)?\w+.\w+.[0-9a-f]{9}/; + const match = output.match(pattern); + if (!match) { + const message = `Cannot launch debug session: '${settingName}' of '${godotPath}' is not a valid Godot executable`; + log.warn(message); + prompt_for_godot_executable(message, settingName); + this.abort(); + return; + } + log.info(`Got version string: '${output}'`); + this.connectedVersion = output; + if (match[1] !== settingName.slice(-1)) { + const message = `Cannot launch debug session: The current project uses Godot '${projectVersion}', but the specified Godot executable is version '${match[0]}'`; + log.warn(message); + prompt_for_godot_executable(message, settingName); + this.abort(); + return; + } + } catch { + const message = `Cannot launch debug session: '${settingName}' of '${godotPath}' is not a valid Godot executable`; + log.warn(message); + prompt_for_godot_executable(message, settingName); + this.abort(); + return; + } + + let command = `"${godotPath}" --path "${args.project}"`; + const address = args.address.replace("tcp://", ""); + command += ` --remote-debug "tcp://${address}:${args.port}"`; + + if (get_configuration("debugger.forceVisibleCollisionShapes")) { + command += " --debug-collisions"; + } + if (get_configuration("debugger.forceVisibleNavMesh")) { + command += " --debug-navigation"; + } + + if (args.scene && args.scene !== "main") { + log.info(`Custom scene argument provided: ${args.scene}`); + let filename = args.scene; + if (args.scene === "current") { + let path = window.activeTextEditor.document.fileName; + if (path.endsWith(".gd")) { + path = path.replace(".gd", ".tscn"); + if (!fs.existsSync(path)) { + const message = `Can't find associated scene file for ${path}`; + log.warn(message); + window.showErrorMessage(message, "Ok"); + this.abort(); + return; + } + } + filename = path; + } + if (args.scene === "pinned") { + if (!pinnedScene) { + const message = "No pinned scene found"; + log.warn(message); + window.showErrorMessage(message, "Ok"); + this.abort(); + return; + } + let path = pinnedScene.fsPath; + if (path.endsWith(".gd")) { + path = path.replace(".gd", ".tscn"); + if (!fs.existsSync(path)) { + const message = `Can't find associated scene file for ${path}`; + log.warn(message); + window.showErrorMessage(message, "Ok"); + this.abort(); + return; + } + } + filename = path; + } + command += ` "${filename}"`; + } + + command += this.session.debug_data.get_breakpoint_string(); + + if (args.additional_options) { + command += " " + args.additional_options; + } + + log.info(`Launching game process using command: '${command}'`); + const debugProcess = subProcess("debug", command, { shell: true }); + + debugProcess.stdout.on("data", (data) => { }); + debugProcess.stderr.on("data", (data) => { }); + debugProcess.on("close", (code) => { }); + } + + private stash: Buffer; + + private on_data(buffer: Buffer) { + if (this.stash) { + buffer = Buffer.concat([this.stash, buffer]); + this.stash = undefined; + } + + const buffers = split_buffers(buffer); + while (buffers.length > 0) { + const chunk = buffers.shift(); + const data = this.decoder.get_dataset(chunk)?.slice(1); + if (data === undefined) { + this.stash = Buffer.alloc(chunk.length); + chunk.copy(this.stash); + return; + } + + socketLog.debug("rx:", data[0]); + const command = this.parse_message(data[0]); + this.handle_command(command); + } + } + + public async launch(args: LaunchRequestArguments) { + log.info("Starting debug controller in 'launch' mode"); + + this.server = net.createServer((socket) => { + this.socket = socket; + + socket.on("data", this.on_data.bind(this)); + + socket.on("close", (had_error) => { + // log.debug("socket close"); + this.abort(); + }); + + socket.on("end", () => { + // log.debug("socket end"); + this.abort(); + }); + + socket.on("error", (error) => { + // log.debug("socket error"); + // this.session.sendEvent(new TerminatedEvent()); + // this.stop(); + }); + + socket.on("drain", () => { + // log.debug("socket drain"); + socket.resume(); + this.draining = false; + this.send_buffer(); + }); + }); + + if (args.port === -1) { + args.port = await get_free_port(); + } + + this.server.listen(args.port, args.address); + + this.start_game(args); + } + + public async attach(args: AttachRequestArguments) { + log.info("Starting debug controller in 'attach' mode"); + + this.server = net.createServer((socket) => { + this.socket = socket; + + socket.on("data", this.on_data.bind(this)); + + socket.on("close", (had_error) => { + // log.debug("socket close"); + // this.session.sendEvent(new TerminatedEvent()); + // this.stop(); + }); + + socket.on("end", () => { + // log.debug("socket end"); + // this.session.sendEvent(new TerminatedEvent()); + // this.stop(); + }); + + socket.on("error", (error) => { + // log.error("socket error", error); + }); + + socket.on("drain", () => { + // log.debug("socket drain"); + socket.resume(); + this.draining = false; + this.send_buffer(); + }); + }); + + this.server.listen(args.port, args.address); + } + + private parse_message(dataset: any[]) { + const command = new Command(); + let i = 0; + command.command = dataset[i++]; + if (this.connectedVersion[2] >= "2") { + command.threadId = dataset[i++]; + } + command.parameters = dataset[i++]; + return command; + } + + private handle_command(command: Command) { + switch (command.command) { + case "debug_enter": { + const reason: string = command.parameters[1]; + if (reason !== "Breakpoint") { + this.set_exception(reason); + } else { + this.set_exception(""); + } + this.request_stack_dump(); + break; + } + case "debug_exit": + break; + case "message:click_ctrl": + // TODO: what is this? + break; + case "performance:profile_frame": + // TODO: what is this? + break; + case "set_pid": + this.threadId = command.threadId; + break; + case "scene:scene_tree": { + const tree = parse_next_scene_node(command.parameters); + this.session.sceneTree.fill_tree(tree); + break; + } + case "scene:inspect_object": { + const id = BigInt(command.parameters[0]); + const className: string = command.parameters[1]; + const properties: any[] = command.parameters[2]; + + const rawObject = new RawObject(className); + properties.forEach((prop) => { + rawObject.set(prop[0], prop[5]); + }); + const inspectedVariable = { name: "", value: rawObject }; + build_sub_values(inspectedVariable); + if (this.session.inspect_callbacks.has(BigInt(id))) { + this.session.inspect_callbacks.get(BigInt(id))( + inspectedVariable.name, + inspectedVariable + ); + this.session.inspect_callbacks.delete(BigInt(id)); + } + this.session.set_inspection(id, inspectedVariable); + break; + } + case "stack_dump": { + const frames: GodotStackFrame[] = []; + + for (let i = 1; i < command.parameters.length; i += 3) { + frames.push({ + id: frames.length, + file: command.parameters[i + 0], + line: command.parameters[i + 1], + function: command.parameters[i + 2], + }); + } + + this.trigger_breakpoint(frames); + this.request_scene_tree(); + break; + } + case "stack_frame_vars": { + this.partialStackVars.reset(command.parameters[0]); + this.session.set_scopes(this.partialStackVars); + break; + } + case "stack_frame_var": { + this.do_stack_frame_var( + command.parameters[0], + command.parameters[1], + command.parameters[2], + command.parameters[3], + ); + break; + } + case "output": { + if (!this.didFirstOutput) { + this.didFirstOutput = true; + // this.request_scene_tree(); + } + + debug.activeDebugConsole.appendLine(command.parameters[0]); + break; + } + } + } + + public abort() { + log.info("Aborting debug controller"); + this.session.sendEvent(new TerminatedEvent()); + this.stop(); + } + + public stop() { + log.info("Stopping debug controller"); + killSubProcesses("debug"); + + this.socket?.destroy(); + this.server?.close((error) => { + if (error) { + log.error(error); + } + this.server.unref(); + this.server = undefined; + }); + } + + public trigger_breakpoint(stackFrames: GodotStackFrame[]) { + let continueStepping = false; + const stackCount = stackFrames.length; + if (stackCount === 0) { + // Engine code is being executed, no user stack trace + this.session.debug_data.last_frames = []; + this.session.sendEvent(new StoppedEvent("breakpoint", 0)); + return; + } + + const file = stackFrames[0].file.replace("res://", `${this.session.debug_data.projectPath}/`); + const line = stackFrames[0].line; + + if (this.steppingOut) { + const breakpoint = this.session.debug_data + .get_breakpoints(file) + .find((bp) => bp.line === line); + if (!breakpoint) { + if (this.session.debug_data.stack_count > 1) { + continueStepping = this.session.debug_data.stack_count === stackCount; + } else { + const fileSame = + stackFrames[0].file === this.session.debug_data.last_frame.file; + const funcSame = + stackFrames[0].function === this.session.debug_data.last_frame.function; + const lineGreater = + stackFrames[0].line >= this.session.debug_data.last_frame.line; + + continueStepping = fileSame && funcSame && lineGreater; + } + } + } + + this.session.debug_data.stack_count = stackCount; + this.session.debug_data.last_frame = stackFrames[0]; + this.session.debug_data.last_frames = stackFrames; + + if (continueStepping) { + this.next(); + return; + } + + this.steppingOut = false; + + this.session.debug_data.stack_files = stackFrames.map((sf) => { + return sf.file; + }); + + if (this.exception.length === 0) { + this.session.sendEvent(new StoppedEvent("breakpoint", 0)); + } else { + this.session.set_exception(true); + this.session.sendEvent( + new StoppedEvent("exception", 0, this.exception) + ); + } + } + + private send_command(command: string, parameters?: any[]) { + const commandArray: any[] = [command]; + if (this.connectedVersion[2] >= "2") { + commandArray.push(this.threadId); + } + commandArray.push(parameters ?? []); + socketLog.debug("tx:", commandArray); + const buffer = this.encoder.encode_variant(commandArray); + this.commandBuffer.push(buffer); + this.send_buffer(); + } + + private send_buffer() { + if (!this.socket) { + return; + } + + while (!this.draining && this.commandBuffer.length > 0) { + const command = this.commandBuffer.shift(); + this.draining = !this.socket.write(command); + } + } + + private do_stack_frame_var( + name: string, + scope: 0 | 1 | 2, // 0 = locals, 1 = members, 2 = globals + type: bigint, + value: any, + ) { + if (this.partialStackVars.remaining === 0) { + throw new Error("More stack frame variables were sent than expected."); + } + + const variable: GodotVariable = { name, value, type }; + build_sub_values(variable); + + const scopeName = ["locals", "members", "globals"][scope]; + this.partialStackVars[scopeName].push(variable); + this.partialStackVars.remaining--; + + if (this.partialStackVars.remaining === 0) { + this.session.set_scopes(this.partialStackVars); + } + } +} diff --git a/src/debugger/godot4/variables/variant_decoder.ts b/src/debugger/godot4/variables/variant_decoder.ts new file mode 100644 index 000000000..7358889e3 --- /dev/null +++ b/src/debugger/godot4/variables/variant_decoder.ts @@ -0,0 +1,652 @@ +import { + GDScriptTypes, + BufferModel, + Vector3, + Vector2, + Basis, + AABB, + Color, + NodePath, + ObjectId, + Plane, + Quat, + Rect2, + Transform3D, + Transform2D, + RawObject, + Vector2i, + Vector3i, + Rect2i, + Vector4, + Vector4i, + StringName, + Projection, + ENCODE_FLAG_64, + ENCODE_FLAG_OBJECT_AS_ID, + RID, + Callable, + Signal, +} from "./variants"; + +export class VariantDecoder { + public decode_variant(model: BufferModel) { + const type = this.decode_UInt32(model); + switch (type & 0xff) { + case GDScriptTypes.BOOL: + return this.decode_UInt32(model) !== 0; + case GDScriptTypes.INT: + if (type & ENCODE_FLAG_64) { + return this.decode_Int64(model); + } else { + return this.decode_Int32(model); + } + case GDScriptTypes.FLOAT: + if (type & ENCODE_FLAG_64) { + return this.decode_Float64(model); + } else { + return this.decode_Float32(model); + } + case GDScriptTypes.STRING: + return this.decode_String(model); + case GDScriptTypes.VECTOR2: + if (type & ENCODE_FLAG_64) { + return this.decode_Vector2d(model); + } else { + return this.decode_Vector2f(model); + } + case GDScriptTypes.VECTOR2I: + return this.decode_Vector2i(model); + case GDScriptTypes.RECT2: + if (type & ENCODE_FLAG_64) { + return this.decode_Rect2d(model); + } else { + return this.decode_Rect2f(model); + } + case GDScriptTypes.RECT2I: + return this.decode_Rect2i(model); + case GDScriptTypes.VECTOR3: + if (type & ENCODE_FLAG_64) { + return this.decode_Vector3d(model); + } else { + return this.decode_Vector3f(model); + } + case GDScriptTypes.VECTOR3I: + return this.decode_Vector3i(model); + case GDScriptTypes.TRANSFORM2D: + if (type & ENCODE_FLAG_64) { + return this.decode_Transform2Dd(model); + } else { + return this.decode_Transform2Df(model); + } + case GDScriptTypes.PLANE: + if (type & ENCODE_FLAG_64) { + return this.decode_Planed(model); + } else { + return this.decode_Planef(model); + } + case GDScriptTypes.VECTOR4: + if (type & ENCODE_FLAG_64) { + return this.decode_Vector4d(model); + } else { + return this.decode_Vector4f(model); + } + case GDScriptTypes.VECTOR4I: + return this.decode_Vector4i(model); + case GDScriptTypes.QUATERNION: + if (type & ENCODE_FLAG_64) { + return this.decode_Quaterniond(model); + } else { + return this.decode_Quaternionf(model); + } + case GDScriptTypes.AABB: + if (type & ENCODE_FLAG_64) { + return this.decode_AABBd(model); + } else { + return this.decode_AABBf(model); + } + case GDScriptTypes.BASIS: + if (type & ENCODE_FLAG_64) { + return this.decode_Basisd(model); + } else { + return this.decode_Basisf(model); + } + case GDScriptTypes.TRANSFORM3D: + if (type & ENCODE_FLAG_64) { + return this.decode_Transform3Dd(model); + } else { + return this.decode_Transform3Df(model); + } + case GDScriptTypes.PROJECTION: + if (type & ENCODE_FLAG_64) { + return this.decode_Projectiond(model); + } else { + return this.decode_Projectionf(model); + } + case GDScriptTypes.COLOR: + return this.decode_Color(model); + case GDScriptTypes.STRING_NAME: + return this.decode_StringName(model); + case GDScriptTypes.NODE_PATH: + return this.decode_NodePath(model); + case GDScriptTypes.RID: + return this.decode_RID(model); + case GDScriptTypes.OBJECT: + if (type & ENCODE_FLAG_OBJECT_AS_ID) { + return this.decode_Object_id(model); + } else { + return this.decode_Object(model); + } + case GDScriptTypes.CALLABLE: + return this.decode_Callable(model); + case GDScriptTypes.SIGNAL: + return this.decode_Signal(model); + case GDScriptTypes.DICTIONARY: + return this.decode_Dictionary(model); + case GDScriptTypes.ARRAY: + return this.decode_Array(model); + case GDScriptTypes.PACKED_BYTE_ARRAY: + return this.decode_PackedByteArray(model); + case GDScriptTypes.PACKED_INT32_ARRAY: + return this.decode_PackedInt32Array(model); + case GDScriptTypes.PACKED_INT64_ARRAY: + return this.decode_PackedInt64Array(model); + case GDScriptTypes.PACKED_FLOAT32_ARRAY: + return this.decode_PackedFloat32Array(model); + case GDScriptTypes.PACKED_FLOAT64_ARRAY: + return this.decode_PackedFloat32Array(model); + case GDScriptTypes.PACKED_STRING_ARRAY: + return this.decode_PackedStringArray(model); + case GDScriptTypes.PACKED_VECTOR2_ARRAY: + if (type & ENCODE_FLAG_OBJECT_AS_ID) { + return this.decode_PackedVector2dArray(model); + } else { + return this.decode_PackedVector2fArray(model); + } + case GDScriptTypes.PACKED_VECTOR3_ARRAY: + if (type & ENCODE_FLAG_OBJECT_AS_ID) { + return this.decode_PackedVector3dArray(model); + } else { + return this.decode_PackedVector3fArray(model); + } + case GDScriptTypes.PACKED_COLOR_ARRAY: + return this.decode_PackedColorArray(model); + default: + return undefined; + } + } + + public get_dataset(buffer: Buffer) { + const len = buffer.readUInt32LE(0); + if (buffer.length != len + 4) { + return undefined; + } + const model: BufferModel = { + buffer: buffer, + offset: 4, // data starts after the initial length + len: len, + }; + + const output = []; + output.push(len + 4); + do { + const value = this.decode_variant(model); + if (value === undefined) { + throw new Error("Unable to decode variant."); + } + output.push(value); + } while (model.len > 0); + + return output; + } + + private decode_AABBf(model: BufferModel) { + return new AABB(this.decode_Vector3f(model), this.decode_Vector3f(model)); + } + + private decode_AABBd(model: BufferModel) { + return new AABB(this.decode_Vector3d(model), this.decode_Vector3d(model)); + } + + private decode_Array(model: BufferModel) { + const output: Array = []; + + const count = this.decode_UInt32(model); + + for (let i = 0; i < count; i++) { + const value = this.decode_variant(model); + output.push(value); + } + + return output; + } + + private decode_Basisf(model: BufferModel) { + return new Basis( + this.decode_Vector3f(model), + this.decode_Vector3f(model), + this.decode_Vector3f(model) + ); + } + + private decode_Basisd(model: BufferModel) { + return new Basis( + this.decode_Vector3d(model), + this.decode_Vector3d(model), + this.decode_Vector3d(model) + ); + } + + private decode_Color(model: BufferModel) { + const rgb = this.decode_Vector3f(model); + const a = this.decode_Float32(model); + + return new Color(rgb.x, rgb.y, rgb.z, a); + } + + private decode_Dictionary(model: BufferModel) { + const output = new Map(); + + const count = this.decode_UInt32(model); + for (let i = 0; i < count; i++) { + const key = this.decode_variant(model); + const value = this.decode_variant(model); + output.set(key, value); + } + + return output; + } + + private decode_Float32(model: BufferModel) { + const f = model.buffer.readFloatLE(model.offset); + + model.offset += 4; + model.len -= 4; + + return f; // + (f < 0 ? -1e-10 : 1e-10); + } + + private decode_Float64(model: BufferModel) { + const f = model.buffer.readDoubleLE(model.offset); + + model.offset += 8; + model.len -= 8; + + return f; // + (f < 0 ? -1e-10 : 1e-10); + } + + private decode_Int32(model: BufferModel) { + const result = model.buffer.readInt32LE(model.offset); + + model.len -= 4; + model.offset += 4; + + return result; + } + + private decode_UInt32(model: BufferModel) { + const result = model.buffer.readUInt32LE(model.offset); + model.len -= 4; + model.offset += 4; + + return result; + } + + private decode_Int64(model: BufferModel) { + const result = model.buffer.readBigInt64LE(model.offset); + model.len -= 8; + model.offset += 8; + + return result; + } + + private decode_UInt64(model: BufferModel) { + const result = model.buffer.readBigUInt64LE(model.offset); + model.len -= 8; + model.offset += 8; + + return result; + } + + private decode_NodePath(model: BufferModel) { + const name_count = this.decode_UInt32(model) & 0x7fffffff; + let subname_count = this.decode_UInt32(model); + const flags = this.decode_UInt32(model); + const is_absolute = (flags & 1) === 1; + if (flags & 2) { + //Obsolete format with property separate from subPath + subname_count++; + } + + const total = name_count + subname_count; + const names: string[] = []; + const sub_names: string[] = []; + for (let i = 0; i < total; i++) { + const str = this.decode_String(model); + if (i < name_count) { + names.push(str); + } else { + sub_names.push(str); + } + } + + return new NodePath(names, sub_names, is_absolute); + } + + private decode_Object(model: BufferModel) { + const class_name = this.decode_String(model); + const prop_count = this.decode_UInt32(model); + const output = new RawObject(class_name); + + for (let i = 0; i < prop_count; i++) { + const name = this.decode_String(model); + const value = this.decode_variant(model); + output.set(name, value); + } + + return output; + } + + private decode_Object_id(model: BufferModel) { + const id = this.decode_UInt64(model); + + return new ObjectId(id); + } + + private decode_RID(model: BufferModel) { + const id = this.decode_UInt64(model); + + return new RID(id); + } + + private decode_Callable(model: BufferModel) { + return new Callable(); + } + + private decode_Signal(model: BufferModel) { + return new Signal(this.decode_String(model), this.decode_Object_id(model)); + } + + private decode_Planef(model: BufferModel) { + const x = this.decode_Float32(model); + const y = this.decode_Float32(model); + const z = this.decode_Float32(model); + const d = this.decode_Float32(model); + + return new Plane(x, y, z, d); + } + + private decode_Planed(model: BufferModel) { + const x = this.decode_Float64(model); + const y = this.decode_Float64(model); + const z = this.decode_Float64(model); + const d = this.decode_Float64(model); + + return new Plane(x, y, z, d); + } + + private decode_PackedByteArray(model: BufferModel) { + const count = this.decode_UInt32(model); + const output: number[] = []; + for (let i = 0; i < count; i++) { + output.push(model.buffer.readUInt8(model.offset)); + model.offset++; + model.len--; + } + + return output; + } + + private decode_PackedColorArray(model: BufferModel) { + const count = this.decode_UInt32(model); + const output: Color[] = []; + for (let i = 0; i < count; i++) { + output.push(this.decode_Color(model)); + } + + return output; + } + + private decode_PackedFloat32Array(model: BufferModel) { + const count = this.decode_UInt32(model); + const output: number[] = []; + for (let i = 0; i < count; i++) { + output.push(this.decode_Float32(model)); + } + + return output; + } + + private decode_PackedFloat64Array(model: BufferModel) { + const count = this.decode_UInt32(model); + const output: number[] = []; + for (let i = 0; i < count; i++) { + output.push(this.decode_Float64(model)); + } + + return output; + } + + private decode_PackedInt32Array(model: BufferModel) { + const count = this.decode_UInt32(model); + const output: number[] = []; + for (let i = 0; i < count; i++) { + output.push(this.decode_Int32(model)); + } + + return output; + } + + private decode_PackedInt64Array(model: BufferModel) { + const count = this.decode_UInt32(model); + const output: bigint[] = []; + for (let i = 0; i < count; i++) { + output.push(this.decode_Int64(model)); + } + + return output; + } + + private decode_PackedStringArray(model: BufferModel) { + const count = this.decode_UInt32(model); + const output: string[] = []; + for (let i = 0; i < count; i++) { + output.push(this.decode_String(model)); + } + + return output; + } + + private decode_PackedVector2fArray(model: BufferModel) { + const count = this.decode_UInt32(model); + const output: Vector2[] = []; + for (let i = 0; i < count; i++) { + output.push(this.decode_Vector2f(model)); + } + + return output; + } + + private decode_PackedVector3fArray(model: BufferModel) { + const count = this.decode_UInt32(model); + const output: Vector3[] = []; + for (let i = 0; i < count; i++) { + output.push(this.decode_Vector3f(model)); + } + + return output; + } + + private decode_PackedVector2dArray(model: BufferModel) { + const count = this.decode_UInt32(model); + const output: Vector2[] = []; + for (let i = 0; i < count; i++) { + output.push(this.decode_Vector2d(model)); + } + + return output; + } + + private decode_PackedVector3dArray(model: BufferModel) { + const count = this.decode_UInt32(model); + const output: Vector3[] = []; + for (let i = 0; i < count; i++) { + output.push(this.decode_Vector3d(model)); + } + + return output; + } + + private decode_Quaternionf(model: BufferModel) { + const x = this.decode_Float32(model); + const y = this.decode_Float32(model); + const z = this.decode_Float32(model); + const w = this.decode_Float32(model); + + return new Quat(x, y, z, w); + } + + private decode_Quaterniond(model: BufferModel) { + const x = this.decode_Float64(model); + const y = this.decode_Float64(model); + const z = this.decode_Float64(model); + const w = this.decode_Float64(model); + + return new Quat(x, y, z, w); + } + + private decode_Rect2f(model: BufferModel) { + return new Rect2(this.decode_Vector2f(model), this.decode_Vector2f(model)); + } + + private decode_Rect2d(model: BufferModel) { + return new Rect2(this.decode_Vector2d(model), this.decode_Vector2d(model)); + } + + private decode_Rect2i(model: BufferModel) { + return new Rect2i(this.decode_Vector2f(model), this.decode_Vector2f(model)); + } + + private decode_String(model: BufferModel) { + let len = this.decode_UInt32(model); + let pad = 0; + if (len % 4 !== 0) { + pad = 4 - (len % 4); + } + + const str = model.buffer.toString("utf8", model.offset, model.offset + len); + len += pad; + + model.offset += len; + model.len -= len; + + return str; + } + + private decode_StringName(model: BufferModel) { + return new StringName(this.decode_String(model)); + } + + private decode_Transform3Df(model: BufferModel) { + return new Transform3D(this.decode_Basisf(model), this.decode_Vector3f(model)); + } + + private decode_Transform3Dd(model: BufferModel) { + return new Transform3D(this.decode_Basisd(model), this.decode_Vector3d(model)); + } + + private decode_Projectionf(model: BufferModel) { + return new Projection(this.decode_Vector4f(model), this.decode_Vector4f(model), this.decode_Vector4f(model), this.decode_Vector4f(model)); + } + + private decode_Projectiond(model: BufferModel) { + return new Projection(this.decode_Vector4d(model), this.decode_Vector4d(model), this.decode_Vector4d(model), this.decode_Vector4d(model)); + } + + private decode_Transform2Df(model: BufferModel) { + return new Transform2D( + this.decode_Vector2f(model), + this.decode_Vector2f(model), + this.decode_Vector2f(model) + ); + } + + private decode_Transform2Dd(model: BufferModel) { + return new Transform2D( + this.decode_Vector2d(model), + this.decode_Vector2d(model), + this.decode_Vector2d(model) + ); + } + + private decode_Vector2f(model: BufferModel) { + const x = this.decode_Float32(model); + const y = this.decode_Float32(model); + + return new Vector2(x, y); + } + + private decode_Vector2d(model: BufferModel) { + const x = this.decode_Float64(model); + const y = this.decode_Float64(model); + + return new Vector2(x, y); + } + + private decode_Vector2i(model: BufferModel) { + const x = this.decode_Int32(model); + const y = this.decode_Int32(model); + + return new Vector2i(x, y); + } + + private decode_Vector3f(model: BufferModel) { + const x = this.decode_Float32(model); + const y = this.decode_Float32(model); + const z = this.decode_Float32(model); + + return new Vector3(x, y, z); + } + + private decode_Vector3d(model: BufferModel) { + const x = this.decode_Float64(model); + const y = this.decode_Float64(model); + const z = this.decode_Float64(model); + + return new Vector3(x, y, z); + } + + private decode_Vector3i(model: BufferModel) { + const x = this.decode_Int32(model); + const y = this.decode_Int32(model); + const z = this.decode_Int32(model); + + return new Vector3i(x, y, z); + } + + private decode_Vector4f(model: BufferModel) { + const x = this.decode_Float32(model); + const y = this.decode_Float32(model); + const z = this.decode_Float32(model); + const w = this.decode_Float32(model); + + return new Vector4(x, y, z, w); + } + + private decode_Vector4d(model: BufferModel) { + const x = this.decode_Float64(model); + const y = this.decode_Float64(model); + const z = this.decode_Float64(model); + const w = this.decode_Float64(model); + + return new Vector4(x, y, z, w); + } + + private decode_Vector4i(model: BufferModel) { + const x = this.decode_Int32(model); + const y = this.decode_Int32(model); + const z = this.decode_Int32(model); + const w = this.decode_Int32(model); + + return new Vector4i(x, y, z, w); + } +} diff --git a/src/debugger/godot4/variables/variant_encoder.ts b/src/debugger/godot4/variables/variant_encoder.ts new file mode 100644 index 000000000..cd2ceb1ca --- /dev/null +++ b/src/debugger/godot4/variables/variant_encoder.ts @@ -0,0 +1,446 @@ +import { + GDScriptTypes, + BufferModel, + Vector3, + Vector2, + Basis, + AABB, + Color, + Plane, + Quat, + Rect2, + Transform3D, + Transform2D, + Vector3i, + Vector2i, + Rect2i, + Vector4i, + Vector4, + StringName, + Projection, + ENCODE_FLAG_64, +} from "./variants"; + +export class VariantEncoder { + public encode_variant( + value: + | number + | bigint + | boolean + | string + | Map + | Array + | object + | undefined, + model?: BufferModel + ) { + if ( + typeof value === "number" && + Number.isInteger(value) && + (value > 2147483647 || value < -2147483648) + ) { + value = BigInt(value); + } + + if (!model) { + const size = this.size_variant(value); + const buffer = Buffer.alloc(size + 4); + model = { + buffer: buffer, + offset: 0, + len: 0, + }; + this.encode_UInt32(size, model); + } + + switch (typeof value) { + case "number": + { + const is_integer = Number.isInteger(value); + if (is_integer) { + this.encode_UInt32(GDScriptTypes.INT, model); + this.encode_UInt32(value, model); + } else { + this.encode_UInt32(GDScriptTypes.FLOAT, model); + this.encode_Float32(value, model); + } + } + break; + case "bigint": + this.encode_UInt32(GDScriptTypes.INT | ENCODE_FLAG_64, model); + this.encode_UInt64(value, model); + break; + case "boolean": + this.encode_UInt32(GDScriptTypes.BOOL, model); + this.encode_Bool(value, model); + break; + case "string": + this.encode_UInt32(GDScriptTypes.STRING, model); + this.encode_String(value, model); + break; + case "undefined": + break; + default: + if (Array.isArray(value)) { + this.encode_UInt32(GDScriptTypes.ARRAY, model); + this.encode_Array(value, model); + } else if (value instanceof Map) { + this.encode_UInt32(GDScriptTypes.DICTIONARY, model); + this.encode_Dictionary(value, model); + } else { + if (value instanceof Vector2i) { + this.encode_UInt32(GDScriptTypes.VECTOR2I, model); + this.encode_Vector2i(value, model); + } else if (value instanceof Vector2) { + this.encode_UInt32(GDScriptTypes.VECTOR2, model); + this.encode_Vector2(value, model); + } else if (value instanceof Rect2i) { + this.encode_UInt32(GDScriptTypes.RECT2I, model); + this.encode_Rect2i(value, model); + } else if (value instanceof Rect2) { + this.encode_UInt32(GDScriptTypes.RECT2, model); + this.encode_Rect2(value, model); + } else if (value instanceof Vector3i) { + this.encode_UInt32(GDScriptTypes.VECTOR3I, model); + this.encode_Vector3i(value, model); + } else if (value instanceof Vector3) { + this.encode_UInt32(GDScriptTypes.VECTOR3, model); + this.encode_Vector3(value, model); + } else if (value instanceof Vector4i) { + this.encode_UInt32(GDScriptTypes.VECTOR4I, model); + this.encode_Vector4i(value, model); + } else if (value instanceof Vector4) { + this.encode_UInt32(GDScriptTypes.VECTOR4, model); + this.encode_Vector4(value, model); + } else if (value instanceof Transform2D) { + this.encode_UInt32(GDScriptTypes.TRANSFORM2D, model); + this.encode_Transform2D(value, model); + } else if (value instanceof StringName) { + this.encode_UInt32(GDScriptTypes.STRING_NAME, model); + this.encode_StringName(value, model); + } else if (value instanceof Plane) { + this.encode_UInt32(GDScriptTypes.PLANE, model); + this.encode_Plane(value, model); + } else if (value instanceof Projection) { + this.encode_UInt32(GDScriptTypes.PROJECTION, model); + this.encode_Projection(value, model); + } else if (value instanceof Quat) { + this.encode_UInt32(GDScriptTypes.QUATERNION, model); + this.encode_Quaternion(value, model); + } else if (value instanceof AABB) { + this.encode_UInt32(GDScriptTypes.AABB, model); + this.encode_AABB(value, model); + } else if (value instanceof Basis) { + this.encode_UInt32(GDScriptTypes.BASIS, model); + this.encode_Basis(value, model); + } else if (value instanceof Transform3D) { + this.encode_UInt32(GDScriptTypes.TRANSFORM3D, model); + this.encode_Transform3D(value, model); + } else if (value instanceof Color) { + this.encode_UInt32(GDScriptTypes.COLOR, model); + this.encode_Color(value, model); + } + } + } + + return model.buffer; + } + + private encode_AABB(value: AABB, model: BufferModel) { + this.encode_Vector3(value.position, model); + this.encode_Vector3(value.size, model); + } + + private encode_Array(arr: any[], model: BufferModel) { + const size = arr.length; + this.encode_UInt32(size, model); + arr.forEach((e) => { + this.encode_variant(e, model); + }); + } + + private encode_Basis(value: Basis, model: BufferModel) { + this.encode_Vector3(value.x, model); + this.encode_Vector3(value.y, model); + this.encode_Vector3(value.z, model); + } + + private encode_Bool(bool: boolean, model: BufferModel) { + this.encode_UInt32(bool ? 1 : 0, model); + } + + private encode_Color(value: Color, model: BufferModel) { + this.encode_Float32(value.r, model); + this.encode_Float32(value.g, model); + this.encode_Float32(value.b, model); + this.encode_Float32(value.a, model); + } + + private encode_Dictionary(dict: Map, model: BufferModel) { + const size = dict.size; + this.encode_UInt32(size, model); + const keys = Array.from(dict.keys()); + keys.forEach((key) => { + const value = dict.get(key); + this.encode_variant(key, model); + this.encode_variant(value, model); + }); + } + + private encode_Float64(value: number, model: BufferModel) { + model.buffer.writeDoubleLE(value, model.offset); + model.offset += 8; + } + + private encode_Float32(value: number, model: BufferModel) { + model.buffer.writeFloatLE(value, model.offset); + model.offset += 4; + } + + private encode_Plane(value: Plane, model: BufferModel) { + this.encode_Float32(value.x, model); + this.encode_Float32(value.y, model); + this.encode_Float32(value.z, model); + this.encode_Float32(value.d, model); + } + + private encode_Quaternion(value: Quat, model: BufferModel) { + this.encode_Float32(value.x, model); + this.encode_Float32(value.y, model); + this.encode_Float32(value.z, model); + this.encode_Float32(value.w, model); + } + + private encode_Rect2(value: Rect2, model: BufferModel) { + this.encode_Vector2(value.position, model); + this.encode_Vector2(value.size, model); + } + + private encode_Rect2i(value: Rect2i, model: BufferModel) { + this.encode_Vector2i(value.position, model); + this.encode_Vector2i(value.size, model); + } + + private encode_String(str: string, model: BufferModel) { + let str_len = str.length; + this.encode_UInt32(str_len, model); + model.buffer.write(str, model.offset, str_len, "utf8"); + model.offset += str_len; + str_len += 4; + while (str_len % 4) { + str_len++; + model.buffer.writeUInt8(0, model.offset); + model.offset++; + } + } + + private encode_Transform3D(value: Transform3D, model: BufferModel) { + this.encode_Basis(value.basis, model); + this.encode_Vector3(value.origin, model); + } + + private encode_Transform2D(value: Transform2D, model: BufferModel) { + this.encode_Vector2(value.origin, model); + this.encode_Vector2(value.x, model); + this.encode_Vector2(value.y, model); + } + + private encode_Projection(value: Projection, model: BufferModel) { + this.encode_Vector4(value.x, model); + this.encode_Vector4(value.y, model); + this.encode_Vector4(value.z, model); + this.encode_Vector4(value.w, model); + } + + private encode_UInt32(int: number, model: BufferModel) { + model.buffer.writeUInt32LE(int, model.offset); + model.offset += 4; + } + + private encode_Int32(int: number, model: BufferModel) { + model.buffer.writeInt32LE(int, model.offset); + model.offset += 4; + } + + private encode_UInt64(value: bigint, model: BufferModel) { + model.buffer.writeBigUInt64LE(value, model.offset); + model.offset += 8; + } + + private encode_Vector2(value: Vector2, model: BufferModel) { + this.encode_Float32(value.x, model); + this.encode_Float32(value.y, model); + } + + private encode_Vector3(value: Vector3, model: BufferModel) { + this.encode_Float32(value.x, model); + this.encode_Float32(value.y, model); + this.encode_Float32(value.z, model); + } + + private encode_Vector4(value: Vector4, model: BufferModel) { + this.encode_Float32(value.x, model); + this.encode_Float32(value.y, model); + this.encode_Float32(value.z, model); + this.encode_Float32(value.w, model); + } + + private encode_Vector2i(value: Vector2i, model: BufferModel) { + this.encode_Int32(value.x, model); + this.encode_Int32(value.y, model); + } + + private encode_Vector3i(value: Vector3i, model: BufferModel) { + this.encode_Int32(value.x, model); + this.encode_Int32(value.y, model); + this.encode_Int32(value.z, model); + } + + private encode_Vector4i(value: Vector4i, model: BufferModel) { + this.encode_Int32(value.x, model); + this.encode_Int32(value.y, model); + this.encode_Int32(value.z, model); + this.encode_Int32(value.w, model); + } + + private encode_StringName(value: StringName, model: BufferModel) { + this.encode_String(value.value, model); + } + + private size_Bool(): number { + return this.size_UInt32(); + } + + private size_Dictionary(dict: Map): number { + let size = this.size_UInt32(); + const keys = Array.from(dict.keys()); + keys.forEach((key) => { + const value = dict.get(key); + size += this.size_variant(key); + size += this.size_variant(value); + }); + + return size; + } + + private size_String(str: string): number { + let size = this.size_UInt32() + str.length; + while (size % 4) { + size++; + } + return size; + } + + private size_UInt32(): number { + return 4; + } + + private size_UInt64(): number { + return 8; + } + + private size_array(arr: any[]): number { + let size = this.size_UInt32(); + arr.forEach((e) => { + size += this.size_variant(e); + }); + + return size; + } + + private size_variant( + value: + | number + | bigint + | boolean + | string + | Map + | any[] + | object + | undefined + ): number { + let size = 4; + + if ( + typeof value === "number" && + (value > 2147483647 || value < -2147483648) + ) { + value = BigInt(value); + } + + switch (typeof value) { + case "number": + size += this.size_UInt32(); + break; + case "bigint": + size += this.size_UInt64(); + break; + case "boolean": + size += this.size_Bool(); + break; + case "string": + size += this.size_String(value); + break; + case "undefined": + break; + default: + // TODO: size of nodepath, rid, object, callable, signal + if (Array.isArray(value)) { + size += this.size_array(value); + break; + } else if (value instanceof Map) { + size += this.size_Dictionary(value); + break; + } else if (value instanceof StringName) { + size += this.size_String(value.value); + break; + } else { + switch (value["__type__"]) { + case "Vector2": + case "Vector2i": + size += this.size_UInt32() * 2; + break; + case "Rect2": + case "Rect2i": + size += this.size_UInt32() * 4; + break; + case "Vector3": + case "Vector3i": + size += this.size_UInt32() * 3; + break; + case "Vector4": + case "Vector4i": + size += this.size_UInt32() * 4; + break; + case "Transform2D": + size += this.size_UInt32() * 6; + break; + case "Projection": + size += this.size_UInt32() * 16; + break; + case "Plane": + size += this.size_UInt32() * 4; + break; + case "Quaternion": + size += this.size_UInt32() * 4; + break; + case "AABB": + size += this.size_UInt32() * 6; + break; + case "Basis": + size += this.size_UInt32() * 9; + break; + case "Transform3D": + size += this.size_UInt32() * 12; + break; + case "Color": + size += this.size_UInt32() * 4; + break; + } + } + break; + } + + return size; + } +} diff --git a/src/debugger/godot4/variables/variants.ts b/src/debugger/godot4/variables/variants.ts new file mode 100644 index 000000000..01d5051ac --- /dev/null +++ b/src/debugger/godot4/variables/variants.ts @@ -0,0 +1,475 @@ +import { GodotVariable } from "../../debug_runtime"; + +export enum GDScriptTypes { + NIL, + + // atomic types + BOOL, + INT, + FLOAT, + STRING, + + // math types + VECTOR2, + VECTOR2I, + RECT2, + RECT2I, + VECTOR3, + VECTOR3I, + TRANSFORM2D, + VECTOR4, + VECTOR4I, + PLANE, + QUATERNION, + AABB, + BASIS, + TRANSFORM3D, + PROJECTION, + + // misc types + COLOR, + STRING_NAME, + NODE_PATH, + RID, + OBJECT, + CALLABLE, + SIGNAL, + DICTIONARY, + ARRAY, + + // typed arrays + PACKED_BYTE_ARRAY, + PACKED_INT32_ARRAY, + PACKED_INT64_ARRAY, + PACKED_FLOAT32_ARRAY, + PACKED_FLOAT64_ARRAY, + PACKED_STRING_ARRAY, + PACKED_VECTOR2_ARRAY, + PACKED_VECTOR3_ARRAY, + PACKED_COLOR_ARRAY, + + VARIANT_MAX +} + +export const ENCODE_FLAG_64 = 1 << 16; +export const ENCODE_FLAG_OBJECT_AS_ID = 1 << 16; + +export interface BufferModel { + buffer: Buffer; + len: number; + offset: number; +} + +export interface GDObject { + stringify_value(): string; + sub_values(): GodotVariable[]; + type_name(): string; +} + +function clean_number(value: number) { + return +Number.parseFloat(String(value)).toFixed(1); +} + +export class Vector3 implements GDObject { + constructor( + public x: number = 0.0, + public y: number = 0.0, + public z: number = 0.0 + ) {} + + public stringify_value(): string { + return `(${clean_number(this.x)}, ${clean_number(this.y)}, ${clean_number( + this.z + )})`; + } + + public sub_values(): GodotVariable[] { + return [ + { name: "x", value: this.x }, + { name: "y", value: this.y }, + { name: "z", value: this.z }, + ]; + } + + public type_name(): string { + return "Vector3"; + } +} + +export class Vector3i extends Vector3 { + // TODO: Truncate values in sub_values and stringify_value + public type_name(): string { + return "Vector3i"; + } +} + +export class Vector4 implements GDObject { + constructor( + public x: number = 0.0, + public y: number = 0.0, + public z: number = 0.0, + public w: number = 0.0 + ) {} + + public stringify_value(): string { + return `(${clean_number(this.x)}, ${clean_number(this.y)}, ${ + clean_number(this.z)}, ${clean_number(this.w)})`; + } + + public sub_values(): GodotVariable[] { + return [ + { name: "x", value: this.x }, + { name: "y", value: this.y }, + { name: "z", value: this.z }, + { name: "w", value: this.w }, + ]; + } + + public type_name(): string { + return "Vector4"; + } +} + +export class Vector4i extends Vector4 { + // TODO: Truncate values in sub_values and stringify_value + public type_name(): string { + return "Vector4i"; + } +} + +export class Vector2 implements GDObject { + constructor(public x: number = 0.0, public y: number = 0.0) {} + + public stringify_value(): string { + return `(${clean_number(this.x)}, ${clean_number(this.y)})`; + } + + public sub_values(): GodotVariable[] { + return [ + { name: "x", value: this.x }, + { name: "y", value: this.y }, + ]; + } + + public type_name(): string { + return "Vector2"; + } +} + +export class Vector2i extends Vector2 { + // TODO: Truncate values in sub_values and stringify_value + public type_name(): string { + return "Vector2i"; + } +} + +export class Basis implements GDObject { + constructor(public x: Vector3, public y: Vector3, public z: Vector3) {} + + public stringify_value(): string { + return `(${this.x.stringify_value()}, ${this.y.stringify_value()}, ${this.z.stringify_value()})`; + } + + public sub_values(): GodotVariable[] { + return [ + { name: "x", value: this.x }, + { name: "y", value: this.y }, + { name: "z", value: this.z }, + ]; + } + + public type_name(): string { + return "Basis"; + } +} + +export class AABB implements GDObject { + constructor(public position: Vector3, public size: Vector3) {} + + public stringify_value(): string { + return `(${this.position.stringify_value()}, ${this.size.stringify_value()})`; + } + + public sub_values(): GodotVariable[] { + return [ + { name: "position", value: this.position }, + { name: "size", value: this.size }, + ]; + } + + public type_name(): string { + return "AABB"; + } +} + +export class Color implements GDObject { + constructor( + public r: number, + public g: number, + public b: number, + public a: number = 1.0 + ) {} + + public stringify_value(): string { + return `(${clean_number(this.r)}, ${clean_number(this.g)}, ${clean_number( + this.b + )}, ${clean_number(this.a)})`; + } + + public sub_values(): GodotVariable[] { + return [ + { name: "r", value: this.r }, + { name: "g", value: this.g }, + { name: "b", value: this.b }, + { name: "a", value: this.a }, + ]; + } + + public type_name(): string { + return "Color"; + } +} + +export class NodePath implements GDObject { + constructor( + public names: string[], + public sub_names: string[], + public absolute: boolean + ) {} + + public stringify_value(): string { + return `(/${this.names.join("/")}${ + this.sub_names.length > 0 ? ":" : "" + }${this.sub_names.join(":")})`; + } + + public sub_values(): GodotVariable[] { + return [ + { name: "names", value: this.names }, + { name: "sub_names", value: this.sub_names }, + { name: "absolute", value: this.absolute }, + ]; + } + + public type_name(): string { + return "NodePath"; + } +} + +export class RawObject extends Map { + constructor(public class_name: string) { + super(); + } +} + +export class ObjectId implements GDObject { + constructor(public id: bigint) {} + + public stringify_value(): string { + return `<${this.id}>`; + } + + public sub_values(): GodotVariable[] { + return [{ name: "id", value: this.id }]; + } + + public type_name(): string { + return "Object"; + } +} + +export class RID extends ObjectId { + public type_name(): string { + return "RID"; + } +} + +export class Plane implements GDObject { + constructor( + public x: number, + public y: number, + public z: number, + public d: number + ) {} + + public stringify_value(): string { + return `(${clean_number(this.x)}, ${clean_number(this.y)}, ${clean_number( + this.z + )}, ${clean_number(this.d)})`; + } + + public sub_values(): GodotVariable[] { + return [ + { name: "x", value: this.x }, + { name: "y", value: this.y }, + { name: "z", value: this.z }, + { name: "d", value: this.d }, + ]; + } + + public type_name(): string { + return "Plane"; + } +} + +export class Quat implements GDObject { + constructor( + public x: number, + public y: number, + public z: number, + public w: number + ) {} + + public stringify_value(): string { + return `(${clean_number(this.x)}, ${clean_number(this.y)}, ${clean_number( + this.z + )}, ${clean_number(this.w)})`; + } + + public sub_values(): GodotVariable[] { + return [ + { name: "x", value: this.x }, + { name: "y", value: this.y }, + { name: "z", value: this.z }, + { name: "w", value: this.w }, + ]; + } + + public type_name(): string { + return "Quat"; + } +} + +export class Rect2 implements GDObject { + constructor(public position: Vector2, public size: Vector2) {} + + public stringify_value(): string { + return `(${this.position.stringify_value()} - ${this.size.stringify_value()})`; + } + + public sub_values(): GodotVariable[] { + return [ + { name: "position", value: this.position }, + { name: "size", value: this.size }, + ]; + } + + public type_name(): string { + return "Rect2"; + } +} + +export class Rect2i extends Rect2 { + // TODO: Truncate values in sub_values and stringify_value + public type_name(): string { + return "Rect2i"; + } +} + +export class Projection implements GDObject { + constructor(public x: Vector4, public y: Vector4, public z: Vector4, public w: Vector4) {} + + public stringify_value(): string { + return `(${this.x.stringify_value()}, ${this.y.stringify_value()}, ${this.z.stringify_value()}, ${this.w.stringify_value()})`; + } + + public sub_values(): GodotVariable[] { + return [ + { name: "x", value: this.x }, + { name: "y", value: this.y }, + { name: "z", value: this.z }, + { name: "w", value: this.w }, + ]; + } + + public type_name(): string { + return "Projection"; + } +} + +export class Transform3D implements GDObject { + constructor(public basis: Basis, public origin: Vector3) {} + + public stringify_value(): string { + return `(${this.basis.stringify_value()} - ${this.origin.stringify_value()})`; + } + + public sub_values(): GodotVariable[] { + return [ + { name: "basis", value: this.basis }, + { name: "origin", value: this.origin }, + ]; + } + + public type_name(): string { + return "Transform"; + } +} + +export class Transform2D implements GDObject { + constructor(public origin: Vector2, public x: Vector2, public y: Vector2) {} + + public stringify_value(): string { + return `(${this.origin.stringify_value()} - (${this.x.stringify_value()}, ${this.y.stringify_value()})`; + } + + public sub_values(): GodotVariable[] { + return [ + { name: "origin", value: this.origin }, + { name: "x", value: this.x }, + { name: "y", value: this.y }, + ]; + } + + public type_name(): string { + return "Transform2D"; + } +} + +export class StringName implements GDObject { + constructor(public value: string) {} + + public stringify_value(): string { + return this.value; + } + + public sub_values(): GodotVariable[] { + return [ + { name: "value", value: this.value }, + ]; + } + + public type_name(): string { + return "StringName"; + } +} + +export class Callable implements GDObject { + public stringify_value(): string { + return "()"; + } + + public sub_values(): GodotVariable[] { + return []; + } + + public type_name(): string { + return "Callable"; + } +} + +export class Signal implements GDObject { + constructor(public name: string, public oid: ObjectId) {} + + public stringify_value(): string { + return `${this.name}() ${this.oid.stringify_value()}`; + } + + public sub_values(): GodotVariable[] { + return undefined; + } + + public type_name(): string { + return "Signal"; + } +} diff --git a/src/debugger/scene_tree/inspector_provider.ts b/src/debugger/inspector_provider.ts similarity index 92% rename from src/debugger/scene_tree/inspector_provider.ts rename to src/debugger/inspector_provider.ts index b971970c2..c2e4e6357 100644 --- a/src/debugger/scene_tree/inspector_provider.ts +++ b/src/debugger/inspector_provider.ts @@ -6,8 +6,7 @@ import { TreeItem, TreeItemCollapsibleState, } from "vscode"; -import { GodotVariable } from "../debug_runtime"; -import { RawObject, ObjectId } from "../variables/variants"; +import { GodotVariable, RawObject, ObjectId } from "./debug_runtime"; export class InspectorProvider implements TreeDataProvider { private _on_did_change_tree_data: EventEmitter< @@ -63,10 +62,10 @@ export class InspectorProvider implements TreeDataProvider { property: RemoteProperty, new_parsed_value: any ) { - let idx = parents.length - 1; - let value = parents[idx].value; + const idx = parents.length - 1; + const value = parents[idx].value; if (Array.isArray(value)) { - let idx = parseInt(property.label); + const idx = parseInt(property.label); if (idx < value.length) { value[idx] = new_parsed_value; } @@ -98,7 +97,7 @@ export class InspectorProvider implements TreeDataProvider { } private parse_variable(va: GodotVariable, object_id?: number) { - let value = va.value; + const value = va.value; let rendered_value = ""; if (typeof value === "number") { @@ -132,31 +131,31 @@ export class InspectorProvider implements TreeDataProvider { let child_props: RemoteProperty[] = []; if (value) { - let sub_variables = + const sub_variables = typeof value["sub_values"] === "function" && value instanceof ObjectId === false ? value.sub_values() : Array.isArray(value) ? value.map((va, i) => { return { name: `${i}`, value: va }; - }) + }) : value instanceof Map ? Array.from(value.keys()).map((va) => { - let name = + const name = typeof va["rendered_value"] === "function" ? va.rendered_value() : `${va}`; - let map_value = value.get(va); + const map_value = value.get(va); return { name: name, value: map_value }; - }) + }) : []; child_props = sub_variables?.map((va) => { return this.parse_variable(va, object_id); }); } - let out_prop = new RemoteProperty( + const out_prop = new RemoteProperty( va.name, value, object_id, diff --git a/src/debugger/mediator.ts b/src/debugger/mediator.ts deleted file mode 100644 index 06dda8abe..000000000 --- a/src/debugger/mediator.ts +++ /dev/null @@ -1,263 +0,0 @@ -import { ServerController } from "./server_controller"; -import { window, OutputChannel } from "vscode"; -import { GodotDebugSession } from "./debug_session"; -import { StoppedEvent, TerminatedEvent } from "vscode-debugadapter"; -import { GodotDebugData, GodotVariable } from "./debug_runtime"; - -export class Mediator { - private static controller?: ServerController; - private static debug_data?: GodotDebugData; - private static inspect_callbacks: Map< - number, - (class_name: string, variable: GodotVariable) => void - > = new Map(); - private static session?: GodotDebugSession; - private static first_output = false; - private static output: OutputChannel = window.createOutputChannel("Godot"); - - private constructor() {} - - public static notify(event: string, parameters: any[] = []) { - switch (event) { - case "output": - if (!this.first_output) { - this.first_output = true; - this.output.show(true); - this.output.clear(); - this.controller?.send_request_scene_tree_command(); - } - - let lines: string[] = parameters; - lines.forEach((line) => { - let message_content: string = line[0]; - //let message_kind: number = line[1]; - - // OutputChannel doesn't give a way to distinguish between a - // regular string (message_kind == 0) and an error string (message_kind == 1). - - this.output.appendLine(message_content); - }); - break; - - case "continue": - this.controller?.continue(); - break; - - case "next": - this.controller?.next(); - break; - - case "step": - this.controller?.step(); - break; - - case "step_out": - this.controller?.step_out(); - break; - - case "inspect_object": - this.controller?.send_inspect_object_request(parameters[0]); - if (parameters[1]) { - this.inspect_callbacks.set(parameters[0], parameters[1]); - } - break; - - case "inspected_object": - let inspected_variable = { name: "", value: parameters[1] }; - this.build_sub_values(inspected_variable); - if (this.inspect_callbacks.has(Number(parameters[0]))) { - this.inspect_callbacks.get(Number(parameters[0]))( - inspected_variable.name, - inspected_variable - ); - this.inspect_callbacks.delete(Number(parameters[0])); - } else { - this.session?.set_inspection(parameters[0], inspected_variable); - } - break; - - case "stack_dump": - this.controller?.trigger_breakpoint(parameters); - this.controller?.send_request_scene_tree_command(); - break; - - case "request_scene_tree": - this.controller?.send_request_scene_tree_command(); - break; - - case "scene_tree": - this.debug_data?.scene_tree?.fill_tree(parameters[0]); - break; - - case "get_scopes": - this.controller?.send_scope_request(parameters[0]); - break; - - case "stack_frame_vars": - this.do_stack_frame_vars(parameters[0], parameters[1], parameters[2]); - break; - - case "remove_breakpoint": - this.controller?.remove_breakpoint(parameters[0], parameters[1]); - break; - - case "set_breakpoint": - this.controller?.set_breakpoint(parameters[0], parameters[1]); - break; - - case "stopped_on_breakpoint": - this.debug_data.last_frames = parameters[0]; - this.session?.sendEvent(new StoppedEvent("breakpoint", 0)); - break; - - case "stopped_on_exception": - this.debug_data.last_frames = parameters[0]; - this.session?.set_exception(true); - this.session?.sendEvent( - new StoppedEvent("exception", 0, parameters[1]) - ); - break; - - case "break": - this.controller?.break(); - break; - - case "changed_value": - this.controller?.set_object_property( - parameters[0], - parameters[1], - parameters[2] - ); - break; - - case "debug_enter": - let reason: string = parameters[0]; - if (reason !== "Breakpoint") { - this.controller?.set_exception(reason); - } else { - this.controller?.set_exception(""); - } - this.controller?.stack_dump(); - break; - - case "start": - this.first_output = false; - this.controller?.start( - parameters[0], - parameters[1], - parameters[2], - parameters[3], - parameters[4], - parameters[5], - parameters[6], - this.debug_data - ); - break; - - case "debug_exit": - break; - - case "stop": - this.controller?.stop(); - this.session?.sendEvent(new TerminatedEvent()); - break; - - case "error": - this.controller?.set_exception(parameters[0]); - this.controller?.stop(); - this.session?.sendEvent(new TerminatedEvent()); - break; - } - } - - public static set_controller(controller: ServerController) { - this.controller = controller; - } - - public static set_debug_data(debug_data: GodotDebugData) { - this.debug_data = debug_data; - } - - public static set_session(debug_session: GodotDebugSession) { - this.session = debug_session; - } - - private static build_sub_values(va: GodotVariable) { - let value = va.value; - - let sub_values: GodotVariable[] = undefined; - - if (value && Array.isArray(value)) { - sub_values = value.map((va, i) => { - return { name: `${i}`, value: va } as GodotVariable; - }); - } else if (value instanceof Map) { - sub_values = Array.from(value.keys()).map((va) => { - if (typeof va["stringify_value"] === "function") { - return { - name: `${va.type_name()}${va.stringify_value()}`, - value: value.get(va), - } as GodotVariable; - } else { - return { - name: `${va}`, - value: value.get(va), - } as GodotVariable; - } - }); - } else if (value && typeof value["sub_values"] === "function") { - sub_values = value.sub_values().map((sva) => { - return { name: sva.name, value: sva.value } as GodotVariable; - }); - } - - va.sub_values = sub_values; - - sub_values?.forEach((sva) => this.build_sub_values(sva)); - } - - private static do_stack_frame_vars( - locals: any[], - members: any[], - globals: any[] - ) { - let locals_out: GodotVariable[] = []; - let members_out: GodotVariable[] = []; - let globals_out: GodotVariable[] = []; - - for ( - let i = 0; - i < locals.length + members.length + globals.length; - i += 2 - ) { - const name = - i < locals.length - ? locals[i] - : i < members.length + locals.length - ? members[i - locals.length] - : globals[i - locals.length - members.length]; - - const value = - i < locals.length - ? locals[i + 1] - : i < members.length + locals.length - ? members[i - locals.length + 1] - : globals[i - locals.length - members.length + 1]; - - let variable: GodotVariable = { - name: name, - value: value, - }; - - this.build_sub_values(variable); - - i < locals.length - ? locals_out.push(variable) - : i < members.length + locals.length - ? members_out.push(variable) - : globals_out.push(variable); - } - - this.session?.set_scopes(locals_out, members_out, globals_out); - } -} diff --git a/src/debugger/scene_tree/scene_tree_provider.ts b/src/debugger/scene_tree_provider.ts similarity index 57% rename from src/debugger/scene_tree/scene_tree_provider.ts rename to src/debugger/scene_tree_provider.ts index 8e7f4463b..acbf8228e 100644 --- a/src/debugger/scene_tree/scene_tree_provider.ts +++ b/src/debugger/scene_tree_provider.ts @@ -7,7 +7,6 @@ import { TreeItemCollapsibleState, } from "vscode"; import path = require("path"); -import fs = require("fs"); export class SceneTreeProvider implements TreeDataProvider { private _on_did_change_tree_data: EventEmitter< @@ -18,7 +17,7 @@ export class SceneTreeProvider implements TreeDataProvider { public readonly onDidChangeTreeData: Event | undefined = this ._on_did_change_tree_data.event; - constructor() {} + constructor() { } public fill_tree(tree: SceneNode) { this.tree = tree; @@ -38,9 +37,8 @@ export class SceneTreeProvider implements TreeDataProvider { } public getTreeItem(element: SceneNode): TreeItem | Thenable { - let has_children = element.children.length > 0; - let tree_item: TreeItem | undefined; - tree_item = new TreeItem( + const has_children = element.children.length > 0; + const tree_item: TreeItem = new TreeItem( element.label, has_children ? element === this.tree @@ -51,77 +49,38 @@ export class SceneTreeProvider implements TreeDataProvider { tree_item.description = element.class_name; tree_item.iconPath = element.iconPath; + if (element.scene_file_path) { + let tooltip = ""; + tooltip += `${element.label}`; + tooltip += `\n${element.class_name}`; + tooltip += `\n${element.object_id}`; + if (element.scene_file_path) { + tooltip += `\n${element.scene_file_path}`; + } + tree_item.tooltip = tooltip; + } return tree_item; } } -function match_icon_to_class(class_name: string) { - let icon_name = `icon${class_name - .replace(/(2|3)D/, "$1d") - .replace(/([A-Z0-9])/g, "_$1") - .toLowerCase()}.svg`; - return icon_name; -} - export class SceneNode extends TreeItem { constructor( public label: string, public class_name: string, public object_id: number, public children: SceneNode[], - public collapsibleState?: TreeItemCollapsibleState + public scene_file_path?: string, + public view_flags?: number, ) { - super(label, collapsibleState); + super(label); - let light = path.join( - __filename, - "..", - "..", - "..", - "..", - "resources", - "light", - match_icon_to_class(class_name) - ); - if (!fs.existsSync(light)) { - path.join( - __filename, - "..", - "..", - "..", - "..", - "resources", - "light", - "node.svg" - ); - } - let dark = path.join( - __filename, - "..", - "..", - "..", - "..", - "resources", - "dark", - match_icon_to_class(class_name) - ); - if (!fs.existsSync(light)) { - path.join( - __filename, - "..", - "..", - "..", - "..", - "resources", - "dark", - "node.svg" - ); - } + const iconDir = path.join(__filename, "..", "..", "..", "resources", "godot_icons"); + const iconName = class_name + ".svg"; this.iconPath = { - light: light, - dark: dark, + light: path.join(iconDir, "light", iconName), + dark: path.join(iconDir, "dark", iconName), }; } } diff --git a/src/debugger/server_controller.ts b/src/debugger/server_controller.ts deleted file mode 100644 index 48272102f..000000000 --- a/src/debugger/server_controller.ts +++ /dev/null @@ -1,314 +0,0 @@ -import { CommandParser } from "./commands/command_parser"; -import { Mediator } from "./mediator"; -import { VariantDecoder } from "./variables/variant_decoder"; -import { - GodotBreakpoint, - GodotStackFrame, - GodotDebugData, -} from "./debug_runtime"; -import { window } from "vscode"; -const TERMINATE = require("terminate"); -import net = require("net"); -import utils = require("../utils"); -import cp = require("child_process"); -import path = require("path"); - -export class ServerController { - private command_buffer: Buffer[] = []; - private commands = new CommandParser(); - private debug_data: GodotDebugData; - private decoder = new VariantDecoder(); - private draining = false; - private exception = ""; - private godot_pid: number; - private server?: net.Server; - private socket?: net.Socket; - private stepping_out = false; - private terminated = false; - - public break() { - this.add_and_send(this.commands.make_break_command()); - } - - public continue() { - this.add_and_send(this.commands.make_continue_command()); - } - - public next() { - this.add_and_send(this.commands.make_next_command()); - } - - public remove_breakpoint(path_to: string, line: number) { - this.debug_data.remove_breakpoint(path_to, line); - this.add_and_send( - this.commands.make_remove_breakpoint_command(path_to, line) - ); - } - - public send_inspect_object_request(object_id: bigint) { - this.add_and_send(this.commands.make_inspect_object_command(object_id)); - } - - public send_request_scene_tree_command() { - this.add_and_send(this.commands.make_request_scene_tree_command()); - } - - public send_scope_request(frame_id: number) { - this.add_and_send(this.commands.make_stack_frame_vars_command(frame_id)); - } - - public set_breakpoint(path_to: string, line: number) { - this.add_and_send( - this.commands.make_send_breakpoint_command(path_to, line) - ); - } - - public set_exception(exception: string) { - this.exception = exception; - } - - public set_object_property( - object_id: bigint, - label: string, - new_parsed_value: any - ) { - this.add_and_send( - this.commands.make_set_object_value_command( - BigInt(object_id), - label, - new_parsed_value - ) - ); - } - - public stack_dump() { - this.add_and_send(this.commands.make_stack_dump_command()); - } - - public start( - project_path: string, - address: string, - port: number, - launch_instance: boolean, - launch_scene: boolean, - scene_file: string | undefined, - additional_options: string | undefined, - debug_data: GodotDebugData - ) { - this.debug_data = debug_data; - - if (launch_instance) { - let godot_path: string = utils.get_configuration("editorPath", "godot"); - const force_visible_collision_shapes = utils.get_configuration("forceVisibleCollisionShapes", false); - const force_visible_nav_mesh = utils.get_configuration("forceVisibleNavMesh", false); - - let executable_line = `"${godot_path}" --path "${project_path}" --remote-debug ${address}:${port}`; - - if (force_visible_collision_shapes) { - executable_line += " --debug-collisions"; - } - if (force_visible_nav_mesh) { - executable_line += " --debug-navigation"; - } - if (launch_scene) { - let filename = ""; - if (scene_file) { - filename = scene_file; - } else { - filename = window.activeTextEditor.document.fileName; - } - executable_line += ` "${filename}"`; - } - if(additional_options){ - executable_line += " " + additional_options; - } - executable_line += this.breakpoint_string( - debug_data.get_all_breakpoints(), - project_path - ); - let godot_exec = cp.exec(executable_line, (error) => { - if (!this.terminated) { - window.showErrorMessage(`Failed to launch Godot instance: ${error}`); - } - }); - this.godot_pid = godot_exec.pid; - } - - this.server = net.createServer((socket) => { - this.socket = socket; - - if (!launch_instance) { - let breakpoints = this.debug_data.get_all_breakpoints(); - breakpoints.forEach((bp) => { - this.set_breakpoint( - this.breakpoint_path(project_path, bp.file), - bp.line - ); - }); - } - - socket.on("data", (buffer) => { - let buffers = this.split_buffers(buffer); - while (buffers.length > 0) { - let sub_buffer = buffers.shift(); - let data = this.decoder.get_dataset(sub_buffer, 0).slice(1); - this.commands.parse_message(data); - } - }); - - socket.on("close", (had_error) => { - Mediator.notify("stop"); - }); - - socket.on("end", () => { - Mediator.notify("stop"); - }); - - socket.on("error", (error) => { - Mediator.notify("error", [error]); - }); - - socket.on("drain", () => { - socket.resume(); - this.draining = false; - this.send_buffer(); - }); - }); - - this.server.listen(port, address); - } - - public step() { - this.add_and_send(this.commands.make_step_command()); - } - - public step_out() { - this.stepping_out = true; - this.add_and_send(this.commands.make_next_command()); - } - - public stop() { - this.socket?.destroy(); - this.server?.close((error) => { - if (error) { - console.log(error); - } - this.server.unref(); - this.server = undefined; - }); - - if (this.godot_pid) { - this.terminate(); - } - } - - private terminate() { - this.terminated = true; - TERMINATE(this.godot_pid); - this.godot_pid = undefined; - } - - public trigger_breakpoint(stack_frames: GodotStackFrame[]) { - let continue_stepping = false; - let stack_count = stack_frames.length; - - let file = stack_frames[0].file.replace( - "res://", - `${this.debug_data.project_path}/` - ); - let line = stack_frames[0].line; - - if (this.stepping_out) { - let breakpoint = this.debug_data - .get_breakpoints(file) - .find((bp) => bp.line === line); - if (!breakpoint) { - if (this.debug_data.stack_count > 1) { - continue_stepping = this.debug_data.stack_count === stack_count; - } else { - let file_same = - stack_frames[0].file === this.debug_data.last_frame.file; - let func_same = - stack_frames[0].function === this.debug_data.last_frame.function; - let line_greater = - stack_frames[0].line >= this.debug_data.last_frame.line; - - continue_stepping = file_same && func_same && line_greater; - } - } - } - - this.debug_data.stack_count = stack_count; - this.debug_data.last_frame = stack_frames[0]; - - if (continue_stepping) { - this.next(); - return; - } - - this.stepping_out = false; - - this.debug_data.stack_files = stack_frames.map((sf) => { - return sf.file; - }); - - if (this.exception.length === 0) { - Mediator.notify("stopped_on_breakpoint", [stack_frames]); - } else { - Mediator.notify("stopped_on_exception", [stack_frames, this.exception]); - } - } - - private add_and_send(buffer: Buffer) { - this.command_buffer.push(buffer); - this.send_buffer(); - } - - private breakpoint_path(project_path: string, file: string) { - let relative_path = path.relative(project_path, file).replace(/\\/g, "/"); - if (relative_path.length !== 0) { - return `res://${relative_path}`; - } - return undefined; - } - - private breakpoint_string( - breakpoints: GodotBreakpoint[], - project_path: string - ) { - let output = ""; - if (breakpoints.length > 0) { - output += " --breakpoints "; - breakpoints.forEach((bp, i) => { - output += `${this.breakpoint_path(project_path, bp.file)}:${bp.line}${i < breakpoints.length - 1 ? "," : "" - }`; - }); - } - - return output; - } - - private send_buffer() { - if (!this.socket) { - return; - } - - while (!this.draining && this.command_buffer.length > 0) { - this.draining = !this.socket.write(this.command_buffer.shift()); - } - } - - private split_buffers(buffer: Buffer) { - let len = buffer.byteLength; - let offset = 0; - let buffers: Buffer[] = []; - while (len > 0) { - let sub_len = buffer.readUInt32LE(offset) + 4; - buffers.push(buffer.slice(offset, offset + sub_len)); - offset += sub_len; - len -= sub_len; - } - - return buffers; - } -} diff --git a/src/extension.ts b/src/extension.ts index 71a5fe591..ff8f47453 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1,24 +1,27 @@ -import * as fs from "fs"; import * as path from "path"; import * as vscode from "vscode"; import { attemptSettingsUpdate } from "./settings_updater"; -import { register_debugger } from "./debugger/debugger_context"; import { GDDocumentLinkProvider } from "./document_link_provider"; import { ClientConnectionManager } from "./lsp/ClientConnectionManager"; import { ScenePreviewProvider } from "./scene_preview_provider"; +import { GodotDebugger } from "./debugger/debugger"; +import { exec, execSync } from "child_process"; import { get_configuration, - set_configuration, find_file, find_project_file, - register_command + register_command, + get_project_version, + set_context, + projectDir, + projectVersion, } from "./utils"; - -const TOOL_NAME = "GodotTools"; +import { prompt_for_godot_executable } from "./utils/prompts"; let lspClientManager: ClientConnectionManager = null; let linkProvider: GDDocumentLinkProvider = null; let scenePreviewManager: ScenePreviewProvider = null; +let godotDebugger: GodotDebugger = null; export function activate(context: vscode.ExtensionContext) { attemptSettingsUpdate(context); @@ -26,24 +29,19 @@ export function activate(context: vscode.ExtensionContext) { lspClientManager = new ClientConnectionManager(context); linkProvider = new GDDocumentLinkProvider(context); scenePreviewManager = new ScenePreviewProvider(); - - register_debugger(context); + godotDebugger = new GodotDebugger(context); context.subscriptions.push( - register_command("openEditor", () => { - open_workspace_with_editor("-e").catch(err => vscode.window.showErrorMessage(err)); - }), - register_command("runProject", () => { - open_workspace_with_editor().catch(err => vscode.window.showErrorMessage(err)); - }), - register_command("runProjectDebug", () => { - open_workspace_with_editor("--debug-collisions --debug-navigation").catch(err => vscode.window.showErrorMessage(err)); - }), - register_command("copyResourcePathContext", copy_resource_path), + register_command("openEditor", open_workspace_with_editor), register_command("copyResourcePath", copy_resource_path), register_command("openTypeDocumentation", open_type_documentation), register_command("switchSceneScript", switch_scene_script), - ) + ); + + set_context("godotFiles", ["gdscript", "gdscene", "gdresource", "gdshader",]); + set_context("sceneLikeFiles", ["gdscript", "gdscene"]); + + get_project_version(); } export function deactivate(): Thenable { @@ -89,113 +87,29 @@ async function switch_scene_script() { } } -function open_workspace_with_editor(params = "") { - return new Promise(async (resolve, reject) => { - let valid = false; - let project_dir = ''; - let project_file = ''; - - if (vscode.workspace.workspaceFolders != undefined) { - const files = await vscode.workspace.findFiles("**/project.godot"); - if (files) { - project_file = files[0].fsPath; - project_dir = path.dirname(project_file); - let cfg = project_file; - valid = (fs.existsSync(cfg) && fs.statSync(cfg).isFile()); - } +function open_workspace_with_editor() { + const settingName = `editorPath.godot${projectVersion[0]}`; + const godotPath = get_configuration(settingName); + + try { + const output = execSync(`${godotPath} --version`).toString().trim(); + const pattern = /([34])\.([0-9]+)\.(?:[0-9]+\.)?\w+.\w+.[0-9a-f]{9}/; + const match = output.match(pattern); + if (!match) { + const message = `Cannot launch Godot editor: '${settingName}' of '${godotPath}' is not a valid Godot executable`; + prompt_for_godot_executable(message, settingName); + return; } - if (valid) { - run_editor(`--path "${project_dir}" ${params}`).then(() => resolve()).catch(err => { - reject(err); - }); - } else { - reject("Current workspace is not a Godot project"); + if (match[1] !== settingName.slice(-1)) { + const message = `Cannot launch Godot editor: The current project uses Godot v${projectVersion}, but the specified Godot executable is version ${match[0]}`; + prompt_for_godot_executable(message, settingName); + return; } - }); -} + } catch { + const message = `Cannot launch Godot editor: ${settingName} of ${godotPath} is not a valid Godot executable`; + prompt_for_godot_executable(message, settingName); + return; + } -function run_editor(params = "") { - // TODO: rewrite this entire function - return new Promise((resolve, reject) => { - const run_godot = (path: string, params: string) => { - const is_powershell_path = (path?: string) => { - const POWERSHELL = "powershell.exe"; - const POWERSHELL_CORE = "pwsh.exe"; - return path && (path.endsWith(POWERSHELL) || path.endsWith(POWERSHELL_CORE)); - }; - const escape_command = (cmd: string) => { - const cmdEsc = `"${cmd}"`; - if (process.platform === "win32") { - const shell_plugin = vscode.workspace.getConfiguration("terminal.integrated.shell"); - - if (shell_plugin) { - const shell = shell_plugin.get("windows"); - if (shell) { - if (is_powershell_path(shell)) { - return `&${cmdEsc}`; - } else { - return cmdEsc; - } - } - } - - const POWERSHELL_SOURCE = "PowerShell"; - const default_profile = vscode.workspace.getConfiguration("terminal.integrated.defaultProfile"); - if (default_profile) { - const profile_name = default_profile.get("windows"); - if (profile_name) { - if (POWERSHELL_SOURCE === profile_name) { - return `&${cmdEsc}`; - } - const profiles = vscode.workspace.getConfiguration("terminal.integrated.profiles.windows"); - const profile = profiles.get<{ source?: string, path?: string }>(profile_name); - if (profile) { - if (POWERSHELL_SOURCE === profile.source || is_powershell_path(profile.path)) { - return `&${cmdEsc}`; - } else { - return cmdEsc; - } - } - } - } - // default for Windows if nothing is set is PowerShell - return `&${cmdEsc}`; - - } - return cmdEsc; - }; - let existingTerminal = vscode.window.terminals.find(t => t.name === TOOL_NAME); - if (existingTerminal) { - existingTerminal.dispose(); - } - let terminal = vscode.window.createTerminal(TOOL_NAME); - let editorPath = escape_command(path); - let cmmand = `${editorPath} ${params}`; - terminal.sendText(cmmand, true); - terminal.show(); - resolve(); - }; - - // TODO: This config doesn't exist anymore - let editorPath = get_configuration("editorPath"); - if (!fs.existsSync(editorPath) || !fs.statSync(editorPath).isFile()) { - vscode.window.showOpenDialog({ - openLabel: "Run", - filters: process.platform === "win32" ? { "Godot Editor Binary": ["exe", "EXE"] } : undefined - }).then((uris: vscode.Uri[]) => { - if (!uris) { - return; - } - let path = uris[0].fsPath; - if (!fs.existsSync(path) || !fs.statSync(path).isFile()) { - reject("Invalid editor path to run the project"); - } else { - run_godot(path, params); - set_configuration("editorPath", path); - } - }); - } else { - run_godot(editorPath, params); - } - }); + exec(`${godotPath} --path "${projectDir}" -e`); } diff --git a/src/logger.ts b/src/logger.ts index 7d2f45782..c70d55cdc 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -1,48 +1,5 @@ - -export class Logger { - protected buffer: string = ""; - protected tag: string = ""; - protected time: boolean = false; - - constructor(tag: string, time: boolean) { - this.tag = tag; - this.time = time; - } - - clear() { - this.buffer = ""; - } - - log(...messages) { - - let line = ""; - if (this.tag) { - line += `[${this.tag}]`; - } - if (this.time) { - line += `[${new Date().toISOString()}]`; - } - if (line) { - line += " "; - } - - for (let index = 0; index < messages.length; index++) { - line += messages[index]; - if (index < messages.length) { - line += " "; - } else { - line += "\n"; - } - } - - this.buffer += line; - console.log(line); - } - - get_buffer(): string { - return this.buffer; - } -} +import { LogOutputChannel, window } from "vscode"; +import { is_debug_mode } from "./utils"; export enum LOG_LEVEL { SILENT, @@ -58,9 +15,9 @@ const LOG_LEVEL_NAMES = [ "WARN ", "INFO ", "DEBUG", -] +]; -const RESET = "\u001b[0m" +const RESET = "\u001b[0m"; const LOG_COLORS = [ RESET, // SILENT, normal @@ -68,39 +25,67 @@ const LOG_COLORS = [ "\u001b[1;33m", // WARNING, yellow "\u001b[1;36m", // INFO, cyan "\u001b[1;32m", // DEBUG, green -] +]; -export class Logger2 { +export interface LoggerOptions { + level?: LOG_LEVEL + time?: boolean; + output?: string; +} + +export class Logger { + private level: LOG_LEVEL = LOG_LEVEL.DEBUG; private show_tag: boolean = true; private show_time: boolean; - private show_label: boolean; private show_level: boolean = false; + private output?: LogOutputChannel; constructor( private tag: string, - private level: LOG_LEVEL = LOG_LEVEL.DEBUG, - { time = false, label = false }: { time?: boolean, label?: boolean } = {}, + { level = LOG_LEVEL.DEBUG, time = false, output = "" }: LoggerOptions = {}, ) { + this.level = level; this.show_time = time; - this.show_label = label; + if (output) { + this.output = window.createOutputChannel(output, { log: true }); + } } private log(level: LOG_LEVEL, ...messages) { - let prefix = ""; - if (this.show_label) { - prefix += "[godotTools]"; - } - if (this.show_time) { - prefix += `[${new Date().toISOString()}]`; - } - if (this.show_level) { - prefix += "[" + LOG_COLORS[level] + LOG_LEVEL_NAMES[level] + RESET + "]"; - } - if (this.show_tag) { - prefix += "[" + LOG_COLORS[level] + this.tag + RESET + "]"; + if (is_debug_mode()) { + let prefix = ""; + if (this.show_time) { + prefix += `[${new Date().toISOString()}]`; + } + if (this.show_level) { + prefix += "[" + LOG_COLORS[level] + LOG_LEVEL_NAMES[level] + RESET + "]"; + } + if (this.show_tag) { + prefix += "[" + LOG_COLORS[level] + this.tag + RESET + "]"; + } + + console.log(prefix, ...messages); } - console.log(prefix, ...messages); + if (this.output) { + const line = `${messages[0]}`; + switch (level) { + case LOG_LEVEL.ERROR: + this.output.error(line); + break; + case LOG_LEVEL.WARNING: + this.output.warn(line); + break; + case LOG_LEVEL.INFO: + this.output.info(line); + break; + case LOG_LEVEL.DEBUG: + this.output.debug(line); + break; + default: + break; + } + } } info(...messages) { @@ -125,9 +110,10 @@ export class Logger2 { } } -export function createLogger(tag, level: LOG_LEVEL = LOG_LEVEL.DEBUG) { - return new Logger2(tag, level); -} +const loggers: Map = new Map(); -const logger = new Logger("godot-tools", true); -export default logger; +export function createLogger(tag, options?: LoggerOptions) { + const logger = new Logger(tag, options); + loggers.set(tag, logger); + return logger; +} diff --git a/src/lsp/ClientConnectionManager.ts b/src/lsp/ClientConnectionManager.ts index ed9706296..827d29c79 100644 --- a/src/lsp/ClientConnectionManager.ts +++ b/src/lsp/ClientConnectionManager.ts @@ -10,9 +10,10 @@ import { register_command, set_configuration, } from "../utils"; +import { prompt_for_godot_executable, prompt_for_reload, select_godot_executable } from "../utils/prompts"; import { createLogger } from "../logger"; import { execSync } from "child_process"; -import { subProcess, killSubProcesses } from '../utils/subspawn'; +import { subProcess, killSubProcesses } from "../utils/subspawn"; const log = createLogger("lsp.manager"); @@ -83,7 +84,7 @@ export class ClientConnectionManager { } private stop_language_server() { - killSubProcesses('LSP'); + killSubProcesses("LSP"); } private async start_language_server() { @@ -98,11 +99,11 @@ export class ClientConnectionManager { const projectVersion = await get_project_version(); - let minimumVersion = '6'; - let targetVersion = '3.6'; - if (projectVersion.startsWith('4')) { - minimumVersion = '2'; - targetVersion = '4.2'; + let minimumVersion = "6"; + let targetVersion = "3.6"; + if (projectVersion.startsWith("4")) { + minimumVersion = "2"; + targetVersion = "4.2"; } const settingName = `editorPath.godot${projectVersion[0]}`; const godotPath = get_configuration(settingName); @@ -113,21 +114,13 @@ export class ClientConnectionManager { const match = output.match(pattern); if (!match) { const message = `Cannot launch headless LSP: '${settingName}' of '${godotPath}' is not a valid Godot executable`; - vscode.window.showErrorMessage(message, "Select Godot executable", "Ignore").then(item => { - if (item == "Select Godot executable") { - this.select_godot_executable(settingName); - } - }); + prompt_for_godot_executable(message, settingName); return; } this.connectedVersion = output; if (match[1] !== projectVersion[0]) { const message = `Cannot launch headless LSP: The current project uses Godot v${projectVersion}, but the specified Godot executable is version ${match[0]}`; - vscode.window.showErrorMessage(message, "Select Godot executable", "Ignore").then(item => { - if (item == "Select Godot executable") { - this.select_godot_executable(settingName); - } - }); + prompt_for_godot_executable(message, settingName); return; } @@ -135,21 +128,17 @@ export class ClientConnectionManager { const message = `Cannot launch headless LSP: Headless LSP mode is only available on version ${targetVersion} or newer, but the specified Godot executable is version ${match[0]}.`; vscode.window.showErrorMessage(message, "Select Godot executable", "Disable Headless LSP", "Ignore").then(item => { if (item == "Select Godot executable") { - this.select_godot_executable(settingName); + select_godot_executable(settingName); } else if (item == "Disable Headless LSP") { set_configuration("lsp.headless", false); - this.prompt_for_reload(); + prompt_for_reload(); } }); return; } } catch (e) { const message = `Cannot launch headless LSP: ${settingName} of ${godotPath} is not a valid Godot executable`; - vscode.window.showErrorMessage(message, "Select Godot executable", "Ignore").then(item => { - if (item == "Select Godot executable") { - this.select_godot_executable(settingName); - } - }); + prompt_for_godot_executable(message, settingName); return; } @@ -159,10 +148,10 @@ export class ClientConnectionManager { const headlessFlags = "--headless --no-window"; const command = `${godotPath} --path "${projectDir}" --editor ${headlessFlags} --lsp-port ${this.client.port}`; - const lspProcess = subProcess("LSP", command, { shell: true }); + const lspProcess = subProcess("LSP", command, { shell: true, detached: true }); const lspStdout = createLogger("lsp.stdout"); - lspProcess.stdout.on('data', (data) => { + lspProcess.stdout.on("data", (data) => { const out = data.toString().trim(); if (out) { lspStdout.debug(out); @@ -170,41 +159,18 @@ export class ClientConnectionManager { }); // const lspStderr = createLogger("lsp.stderr"); - lspProcess.stderr.on('data', (data) => { + lspProcess.stderr.on("data", (data) => { // const out = data.toString().trim(); // if (out) { // lspStderr.debug(out); // } }); - lspProcess.on('close', (code) => { + lspProcess.on("close", (code) => { log.info(`LSP process exited with code ${code}`); }); } - private async select_godot_executable(settingName: string) { - vscode.window.showOpenDialog({ - openLabel: "Select Godot executable", - filters: process.platform === "win32" ? { "Godot Editor Binary": ["exe", "EXE"] } : undefined - }).then(async (uris: vscode.Uri[]) => { - if (!uris) { - return; - } - const path = uris[0].fsPath; - set_configuration(settingName, path); - this.prompt_for_reload(); - }); - } - - private async prompt_for_reload() { - const message = `Reload VSCode to apply settings`; - vscode.window.showErrorMessage(message, "Reload").then(item => { - if (item == "Reload") { - vscode.commands.executeCommand("workbench.action.reloadWindow"); - } - }); - } - private get_lsp_connection_string() { let host = get_configuration("lsp.serverHost"); let port = get_configuration("lsp.serverPort"); @@ -250,13 +216,13 @@ export class ClientConnectionManager { private update_status_widget() { const lspTarget = this.get_lsp_connection_string(); - const maxAttempts = get_configuration("lsp.autoReconnect.attempts") + const maxAttempts = get_configuration("lsp.autoReconnect.attempts"); let text = ""; let tooltip = ""; switch (this.status) { case ManagerStatus.INITIALIZING: - text = `$(sync~spin) Initializing`; - tooltip = `Initializing extension...`; + text = "$(sync~spin) Initializing"; + tooltip = "Initializing extension..."; break; case ManagerStatus.INITIALIZING_LSP: text = `$(sync~spin) Initializing LSP ${this.reconnectionAttempts}/${maxAttempts}`; @@ -266,19 +232,19 @@ export class ClientConnectionManager { } break; case ManagerStatus.PENDING: - text = `$(sync~spin) Connecting`; + text = "$(sync~spin) Connecting"; tooltip = `Connecting to the GDScript language server at ${lspTarget}`; break; case ManagerStatus.CONNECTED: - text = `$(check) Connected`; + text = "$(check) Connected"; tooltip = `Connected to the GDScript language server.\n${lspTarget}`; if (this.connectedVersion) { tooltip += `\n${this.connectedVersion}`; } break; case ManagerStatus.DISCONNECTED: - text = `$(x) Disconnected`; - tooltip = `Disconnected from the GDScript language server.`; + text = "$(x) Disconnected"; + tooltip = "Disconnected from the GDScript language server."; break; case ManagerStatus.RETRYING: text = `$(sync~spin) Connecting ${this.reconnectionAttempts}/${maxAttempts}`; diff --git a/src/lsp/GDScriptLanguageClient.ts b/src/lsp/GDScriptLanguageClient.ts index cc5e38ef0..606a1b9b6 100644 --- a/src/lsp/GDScriptLanguageClient.ts +++ b/src/lsp/GDScriptLanguageClient.ts @@ -1,12 +1,12 @@ import { EventEmitter } from "events"; import * as vscode from 'vscode'; import { LanguageClient, RequestMessage, ResponseMessage, integer } from "vscode-languageclient/node"; -import { createLogger } from "../logger"; +import { createLogger, LOG_LEVEL } from "../logger"; import { get_configuration, set_context } from "../utils"; import { Message, MessageIO, MessageIOReader, MessageIOWriter, TCPMessageIO, WebSocketMessageIO } from "./MessageIO"; import { NativeDocumentManager } from './NativeDocumentManager'; -const log = createLogger("lsp.client"); +const log = createLogger("lsp.client", {level: LOG_LEVEL.SILENT}); export enum ClientStatus { PENDING, @@ -19,7 +19,7 @@ export enum TargetLSP { EDITOR, } -const CUSTOM_MESSAGE = "gdscrip_client/"; +const CUSTOM_MESSAGE = "gdscript_client/"; export default class GDScriptLanguageClient extends LanguageClient { public readonly io: MessageIO = (get_configuration("lsp.serverProtocol") == "ws") ? new WebSocketMessageIO() : new TCPMessageIO(); @@ -153,8 +153,8 @@ export default class GDScriptLanguageClient extends LanguageClient { // this is a dirty hack to fix language server sending us prerendered // markdown but not correctly stripping leading #'s, leading to // docstrings being displayed as titles - const value: string = message.result["contents"].value; - message.result["contents"].value = value.replace(/\n[#]+/g, '\n'); + const value: string = message.result["contents"]?.value; + message.result["contents"].value = value?.replace(/\n[#]+/g, '\n'); } this.message_handler.on_message(message); @@ -164,8 +164,11 @@ export default class GDScriptLanguageClient extends LanguageClient { this.lastSymbolHovered = ""; set_context("typeFound", false); - let decl: string = message.result["contents"].value; - decl = decl.split('\n')[0].trim(); + let decl: string = message?.result["contents"]?.value; + if (!decl) { + return; + } + decl = decl.split("\n")[0].trim(); // strip off the value if (decl.includes("=")) { diff --git a/src/lsp/MessageIO.ts b/src/lsp/MessageIO.ts index ba652e331..a430542ef 100644 --- a/src/lsp/MessageIO.ts +++ b/src/lsp/MessageIO.ts @@ -86,6 +86,7 @@ export class TCPMessageIO extends MessageIO { socket.on('data', this.on_message.bind(this)); socket.on('end', this.on_disconnected.bind(this)); socket.on('close', this.on_disconnected.bind(this)); + socket.on('error', this.on_error.bind(this)); }); } @@ -98,6 +99,10 @@ export class TCPMessageIO extends MessageIO { this.socket = null; this.emit('disconnected'); } + + protected on_error(error) { + // TODO: handle errors? + } } @@ -111,7 +116,7 @@ export class MessageIOReader extends AbstractMessageReader implements MessageRea private partialMessageTimer: NodeJS.Timeout | undefined; private _partialMessageTimeout: number; - public constructor(io: MessageIO, encoding: string = 'utf8') { + public constructor(io: MessageIO, encoding: BufferEncoding = 'utf8') { super(); this.io = io; this.io.reader = this; @@ -207,7 +212,7 @@ export class MessageIOWriter extends AbstractMessageWriter implements MessageWri private encoding: BufferEncoding; private errorCount: number; - public constructor(io: MessageIO, encoding: string = 'utf8') { + public constructor(io: MessageIO, encoding: BufferEncoding = 'utf8') { super(); this.io = io; this.io.writer = this; diff --git a/src/lsp/NativeDocumentManager.ts b/src/lsp/NativeDocumentManager.ts index a37a9c9c4..71f89303c 100644 --- a/src/lsp/NativeDocumentManager.ts +++ b/src/lsp/NativeDocumentManager.ts @@ -4,7 +4,7 @@ import { EventEmitter } from "events"; import { MessageIO } from "./MessageIO"; import { NotificationMessage } from "vscode-jsonrpc"; import * as Prism from "prismjs"; -import * as marked from "marked"; +import { marked } from "marked"; import { get_configuration, register_command } from "../utils"; import { Methods, @@ -127,7 +127,7 @@ export class NativeDocumentManager extends EventEmitter { * configuration and previously opened native symbols. */ private get_new_native_symbol_column(): vscode.ViewColumn { - const config_placement = get_configuration("nativeSymbolPlacement"); + const config_placement = get_configuration("documentation.newTabPlacement"); if (config_placement == "active") { return vscode.ViewColumn.Active; diff --git a/src/scene_preview_provider.ts b/src/scene_preview_provider.ts index adb267b0e..4a13aeff5 100644 --- a/src/scene_preview_provider.ts +++ b/src/scene_preview_provider.ts @@ -109,12 +109,12 @@ export class ScenePreviewProvider implements TreeDataProvider { private pin_preview() { this.scenePreviewPinned = true; - set_context("godotTools.context.scenePreviewPinned", true); + set_context("scenePreview.pinned", true); } private unpin_preview() { this.scenePreviewPinned = false; - set_context("godotTools.context.scenePreviewPinned", false); + set_context("scenePreview.pinned", false); this.refresh(); } diff --git a/src/settings_updater.ts b/src/settings_updater.ts index db0c63492..13d176e50 100644 --- a/src/settings_updater.ts +++ b/src/settings_updater.ts @@ -1,17 +1,16 @@ import * as vscode from "vscode"; const OLD_SETTINGS_CONVERSIONS = [ + ["godot_tools.editor_path", "godotTools.editorPath.godot3"], ["godot_tools.gdscript_lsp_server_protocol", "godotTools.lsp.serverProtocol"], ["godot_tools.gdscript_lsp_server_host", "godotTools.lsp.serverHost"], ["godot_tools.gdscript_lsp_server_port", "godotTools.lsp.serverPort"], - ["godot_tools.editor_path", "godotTools.editorPath"], - ["godot_tools.scene_file_config", "godotTools.sceneFileConfig"], ["godot_tools.reconnect_automatically", "godotTools.lsp.autoReconnect.enabled"], ["godot_tools.reconnect_cooldown", "godotTools.lsp.autoReconnect.cooldown"], ["godot_tools.reconnect_attempts", "godotTools.lsp.autoReconnect.attempts"], - ["godot_tools.force_visible_collision_shapes", "godotTools.forceVisibleCollisionShapes"], - ["godot_tools.force_visible_nav_mesh", "godotTools.forceVisibleNavMesh"], - ["godot_tools.native_symbol_placement", "godotTools.nativeSymbolPlacement"], + ["godot_tools.force_visible_collision_shapes", "godotTools.debugger.forceVisibleCollisionShapes"], + ["godot_tools.force_visible_nav_mesh", "godotTools.debugger.forceVisibleNavMesh"], + ["godot_tools.native_symbol_placement", "godotTools.documentation.newTabPlacement"], ["godot_tools.scenePreview.previewRelatedScenes", "godotTools.scenePreview.previewRelatedScenes"] ]; @@ -23,7 +22,6 @@ export function updateOldStyleSettings() { if (value === undefined) { continue; } - configuration.update(old_style_key, undefined, true); configuration.update(new_style_key, value, true); settings_changed = true; } diff --git a/src/utils.ts b/src/utils.ts index 35aa71c2c..a8c8bc418 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -5,12 +5,12 @@ import { AddressInfo, createServer } from "net"; const EXTENSION_PREFIX = "godotTools"; -export function get_configuration(name: string, default_value?: any) { - let config_value = vscode.workspace.getConfiguration(EXTENSION_PREFIX).get(name, null); - if (default_value && config_value === null) { - return default_value; +export function get_configuration(name: string, defaultValue?: any) { + const configValue = vscode.workspace.getConfiguration(EXTENSION_PREFIX).get(name, null); + if (defaultValue && configValue === null) { + return defaultValue; } - return config_value; + return configValue; } export function set_configuration(name: string, value: any) { @@ -40,16 +40,19 @@ export function get_word_under_cursor(): string { return symbolName; } +export let projectVersion = undefined; + export async function get_project_version(): Promise { - const project_dir = await get_project_dir(); + const dir = await get_project_dir(); - if (!project_dir) { + if (!dir) { + projectVersion = undefined; return undefined; } - let godot_version = '3.x'; - const project_file = vscode.Uri.file(path.join(project_dir, 'project.godot')); - const document = await vscode.workspace.openTextDocument(project_file); + let godotVersion = "3.x"; + const projectFile = vscode.Uri.file(path.join(dir, "project.godot")); + const document = await vscode.workspace.openTextDocument(projectFile); const text = document.getText(); const match = text.match(/config\/features=PackedStringArray\((.*)\)/); @@ -57,25 +60,30 @@ export async function get_project_version(): Promise { const line = match[0]; const version = line.match(/\"(4.[0-9]+)\"/); if (version) { - godot_version = version[1]; + godotVersion = version[1]; } } - return godot_version; + + projectVersion = godotVersion; + return godotVersion; } +export let projectDir = undefined; + export async function get_project_dir() { - let project_dir = undefined; - let project_file = ''; + let dir = undefined; + let projectFile = ""; if (vscode.workspace.workspaceFolders != undefined) { const files = await vscode.workspace.findFiles("**/project.godot"); if (files) { - project_file = files[0].fsPath; - if (fs.existsSync(project_file) && fs.statSync(project_file).isFile()) { - project_dir = path.dirname(project_file); + projectFile = files[0].fsPath; + if (fs.existsSync(projectFile) && fs.statSync(projectFile).isFile()) { + dir = path.dirname(projectFile); } } } - return project_dir; + projectDir = dir; + return dir; } export function find_project_file(start: string, depth: number = 20) { @@ -86,10 +94,10 @@ export function find_project_file(start: string, depth: number = 20) { if (start == folder) { return null; } - const project_file = path.join(folder, "project.godot"); + const projectFile = path.join(folder, "project.godot"); - if (fs.existsSync(project_file) && fs.statSync(project_file).isFile()) { - return project_file; + if (fs.existsSync(projectFile) && fs.statSync(projectFile).isFile()) { + return projectFile; } else { if (depth === 0) { return null; @@ -116,8 +124,8 @@ export async function convert_resource_path_to_uri(resPath: string): Promise { diff --git a/src/utils/prompts.ts b/src/utils/prompts.ts new file mode 100644 index 000000000..e4ed9f8f5 --- /dev/null +++ b/src/utils/prompts.ts @@ -0,0 +1,33 @@ +import * as vscode from "vscode"; +import { set_configuration } from "../utils"; + +export function prompt_for_reload() { + const message = "Reload VSCode to apply settings"; + vscode.window.showErrorMessage(message, "Reload").then(item => { + if (item == "Reload") { + vscode.commands.executeCommand("workbench.action.reloadWindow"); + } + }); +} + +export function select_godot_executable(settingName: string) { + vscode.window.showOpenDialog({ + openLabel: "Select Godot executable", + filters: process.platform === "win32" ? { "Godot Editor Binary": ["exe", "EXE"] } : undefined + }).then(async (uris: vscode.Uri[]) => { + if (!uris) { + return; + } + const path = uris[0].fsPath; + set_configuration(settingName, path); + prompt_for_reload(); + }); +} + +export function prompt_for_godot_executable(message: string, settingName: string) { + vscode.window.showErrorMessage(message, "Select Godot executable", "Ignore").then(item => { + if (item == "Select Godot executable") { + select_godot_executable(settingName); + } + }); +} diff --git a/src/utils/subspawn.ts b/src/utils/subspawn.ts index 2e633729d..ca48eab54 100644 --- a/src/utils/subspawn.ts +++ b/src/utils/subspawn.ts @@ -5,7 +5,10 @@ Original library copyright (c) 2022 Craig Wardman I had to vendor this library to fix the API in a couple places. */ -import { ChildProcess, execSync, spawn, SpawnOptions } from 'child_process'; +import { ChildProcess, execSync, spawn, SpawnOptions } from "child_process"; +import { createLogger } from "../logger"; + +const log = createLogger("subspawn"); interface DictionaryOfStringChildProcessArray { [key: string]: ChildProcess[]; @@ -20,17 +23,23 @@ export function killSubProcesses(owner: string) { children[owner].forEach((c) => { try { if (c.pid) { - if (process.platform === 'win32') { + if (process.platform === "win32") { execSync(`taskkill /pid ${c.pid} /T /F`); + } else if (process.platform === "darwin") { + execSync(`kill -9 ${c.pid}`); } else { - process.kill(-c.pid); + process.kill(c.pid); } } - } catch { } + } catch { + log.error(`couldn't kill task ${owner}`); + } }); + + children[owner] = []; } -process.on('exit', () => { +process.on("exit", () => { Object.keys(children).forEach((owner) => killSubProcesses(owner)); }); @@ -38,9 +47,9 @@ function gracefulExitHandler() { process.exit(); } -process.on('SIGINT', gracefulExitHandler); -process.on('SIGTERM', gracefulExitHandler); -process.on('SIGQUIT', gracefulExitHandler); +process.on("SIGINT", gracefulExitHandler); +process.on("SIGTERM", gracefulExitHandler); +process.on("SIGQUIT", gracefulExitHandler); export function subProcess(owner: string, command: string, options?: SpawnOptions) { const childProcess = spawn(command, options); diff --git a/syntaxes/examples/project.godot b/syntaxes/examples/project.godot deleted file mode 100644 index e69de29bb..000000000 diff --git a/tools/generate_icons.ts b/tools/generate_icons.ts index 49de0a23b..62935c9f1 100644 --- a/tools/generate_icons.ts +++ b/tools/generate_icons.ts @@ -86,7 +86,7 @@ function get_class_list(modules) { } function discover_modules() { - const modules = [] + const modules = []; // a valid module is a subdir of modulesPath, and contains a subdir 'icons' fs.readdirSync(modulesPath, {withFileTypes:true}).forEach(mod => { @@ -106,7 +106,7 @@ function get_icons() { const modules = discover_modules(); const classes = get_class_list(modules); - const searchPaths = [iconsPath] + const searchPaths = [iconsPath]; modules.forEach(mod => { searchPaths.push(join(mod, 'icons')); }); diff --git a/tsconfig.json b/tsconfig.json index d5b58a735..5f9b6afd4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "target": "es2020", "outDir": "out", "lib": [ - "es2020", + "es2022", "dom" ], "sourceMap": true,