diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e2d7a31 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +* text=auto eol=lf +*.png binary +*.ico binary diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0508def --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 24 + cache: npm + - run: npm ci + - run: npm run typecheck + - run: npm test + - run: npm run build + - name: End-to-end with the synthetic camera + run: node scripts/e2e.mjs --fake + - uses: actions/upload-artifact@v4 + if: always() + with: + name: e2e-output + path: test-output/fake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ae22208 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +node_modules/ +dist/ +release/ +.worktrees/ +*.log +.DS_Store +test-output/ diff --git a/README.md b/README.md index 9ac6c4a..39b5026 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,73 @@ # Electroscope -Electronics microscope companion: live camera viewer for humans, on-demand snapshots for AI over MCP. + +

Electroscope icon

+ +A live viewer for your electronics microscope that Claude can look through, over MCP. + +A camera can usually be opened by one app at a time. If you are watching the microscope, Claude cannot also have a stream. Electroscope owns the camera, shows you the live view in a native window, and hands Claude still frames only when it asks. You keep looking at your board; Claude can still look at it too. + +![Electroscope showing an ESP32 module, with the frames Claude has captured](docs/screenshot.png) + +## What you get + +- **Live view** with wheel-zoom, drag-pan, grid and crosshair overlays, freeze, rotate and mirror, and a live **sharpness meter** to find best focus. +- **Every camera on the machine**, listed and switchable. Hardware controls (focus, zoom, exposure and so on) appear when the camera supports them. +- **An MCP server** with tools to capture a frame, take a sequence, crop a full-resolution close-up of any region, look at exactly what you have zoomed to, and adjust the camera. +- **Visible and in your control.** A switch pauses Claude's access. Every frame Claude takes shows up in a strip under the viewer, and the live view flashes when it captures. +- **Share with Claude**: pin a frame with a note ("U3 gets hot right after power-on") and ask Claude to look at it. + +## Install and run + +Electroscope is an Electron app. Windows 11 is the primary target; macOS builds from the same code. + +```bash +git clone https://github.com/UnlikeOtherAI/Electroscope.git +cd Electroscope +npm install +npm start +``` + +Then connect Claude Code: + +```bash +claude mcp add --transport http electroscope http://127.0.0.1:47821/mcp +``` + +Ask Claude something like "look at the board under the microscope and tell me if the solder joints on U2 look bridged". See [docs/mcp.md](docs/mcp.md) for the tools, arguments and security model, and for connecting other clients. + +If the app says the camera is busy, another program has it. Close the Windows Camera app, Teams, or a browser tab using the camera. Electroscope keeps retrying and connects as soon as it is free. + +### Build a package + +```bash +npm run dist # unpacked app in release/win-unpacked +npm run dist:installer # NSIS installer and portable exe +``` + +Builds are unsigned. + +## Develop + +```bash +npm run typecheck +npm test # unit tests for the MCP server, transport, settings and bridge +npm run test:e2e # launches the app and drives it over MCP with your real camera +node scripts/e2e.mjs --fake # same, with Chromium's synthetic camera (what CI runs) +npm run icons # re-render build/icon.* from build/icon.svg +``` + +The end-to-end script writes the app window and every image Claude would receive to `test-output/`. + +How it fits together: + +- `src/main`: Electron main process and the MCP server (`mcp/tools.ts` defines the tools, `mcp/http.ts` is the Streamable HTTP transport). +- `src/renderer`: the window. It owns the camera, draws the live view, and answers capture and control requests from the main process. +- `src/shared`: types and IPC channel names used by both. + +## Status + +Tested on Windows 11 with a UVC microscope camera (end to end over MCP, 16 checks) and with the synthetic camera. The macOS build is configured but has not been run on a Mac yet. + +## License + +[MIT](LICENSE) diff --git a/build/entitlements.mac.plist b/build/entitlements.mac.plist new file mode 100644 index 0000000..e74b3cd --- /dev/null +++ b/build/entitlements.mac.plist @@ -0,0 +1,10 @@ + + + + + com.apple.security.cs.allow-jit + + com.apple.security.device.camera + + + diff --git a/build/icon-256.png b/build/icon-256.png new file mode 100644 index 0000000..7bb1baa Binary files /dev/null and b/build/icon-256.png differ diff --git a/build/icon.ico b/build/icon.ico new file mode 100644 index 0000000..64c4b08 Binary files /dev/null and b/build/icon.ico differ diff --git a/build/icon.png b/build/icon.png new file mode 100644 index 0000000..5fa1be5 Binary files /dev/null and b/build/icon.png differ diff --git a/build/icon.svg b/build/icon.svg new file mode 100644 index 0000000..cd018e8 --- /dev/null +++ b/build/icon.svg @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/mcp.md b/docs/mcp.md new file mode 100644 index 0000000..8ee65f4 --- /dev/null +++ b/docs/mcp.md @@ -0,0 +1,74 @@ +# Electroscope MCP reference + +Electroscope runs an MCP server inside the app, over Streamable HTTP, on `http://127.0.0.1:47821/mcp`. +If that port is taken it tries the next nine; the live address is always shown in the app. You can change the port in Settings. + +The app owns the camera. Claude never opens it, so the live view in the window keeps running while Claude asks for stills. + +## Connect a client + +```bash +# Claude Code +claude mcp add --transport http electroscope http://127.0.0.1:47821/mcp +``` + +Any client that speaks Streamable HTTP can use the same URL. For clients that only launch local stdio servers (Claude Desktop), bridge it: + +```json +{ + "mcpServers": { + "electroscope": { "command": "npx", "args": ["-y", "mcp-remote", "http://127.0.0.1:47821/mcp"] } + } +} +``` + +## Tools + +| Tool | What it does | +| --- | --- | +| `get_status` | Active camera, resolution, fps, orientation, live focus score, adjustable controls with ranges, and whether the human has paused Claude. Works even while paused. | +| `list_cameras` | Rescans and lists every camera on the machine. Works even while paused. | +| `capture_snapshot` | One still frame, returned as an image plus metrics and hints. | +| `capture_sequence` | 2-6 frames at a fixed interval, to watch an LED blink or a part heat up. | +| `select_camera` | Switch the live view to another camera, optionally at a given resolution. | +| `set_camera_controls` | Set focus, zoom, exposure, brightness and so on, where the camera supports them. | +| `set_orientation` | Rotate (0/90/180/270) and/or mirror. Affects the human's view and Claude's captures. | +| `get_shared_frames` | Frames the human pinned with **Share with Claude**, with their notes. | + +### `capture_snapshot` arguments + +| Argument | Default | Meaning | +| --- | --- | --- | +| `camera` | active camera | Camera id or part of its name. A non-active camera is opened just long enough for one frame. | +| `max_width` | 1280 | Longest-edge budget in pixels (160-3840). Never upscales. | +| `format` | `jpeg` | `jpeg` or `png`. | +| `quality` | 85 | JPEG quality (30-100). | +| `region` | whole frame | `{x, y, width, height}`, normalised 0..1 in the oriented frame. The crop is taken from the full-resolution frame, so a small region is a real close-up, not an upscale. | +| `follow_user_view` | false | Capture exactly the area the human has zoomed and panned to in the window. Overrides `region`. | + +The text part of the result carries: + +- `focus_score`: variance of the Laplacian on a normalised copy of the image. Higher is sharper. Compare scores of the same scene, not across scenes. +- `brightness` (0-255), `overexposed_fraction`, `underexposed_fraction`. +- `source_resolution`, `region`, `orientation`, `captured_at`, `saved_to` (the file on disk). +- `hints`: plain-language warnings such as blown highlights, a dark image, or very low focus. + +### Controls + +`get_status` lists the controls the camera exposes, for example `focusMode`, `focusDistance`, `zoom`, `exposureMode`, `exposureTime`, `brightness`, `contrast`, `saturation`, `sharpness`, `colorTemperature`, `torch`. Setting a manual value (`focusDistance`, `exposureTime`, `colorTemperature`) switches the matching mode to manual first. + +Many inexpensive UVC microscope cameras accept a control without applying it. Electroscope reads the value back; if the camera ignored the change, the tool reports that in `rejected` and marks the control `"responsive": false` in `get_status`. + +## What the human controls + +- **Claude access** switch (also the pill in the title bar). When off, every tool except `get_status` and `list_cameras` returns an error telling Claude to ask the human to resume. +- **Claude's view** strip lists every frame Claude captured, with time, camera and size. Click a frame to open the saved file. A coral ring and flash show on the live view whenever Claude captures. +- **Share with Claude** pins the current frame (or the zoomed view) with a note. Claude picks it up with `get_shared_frames`. + +## Security model + +- The server binds to `127.0.0.1` only. +- Requests whose `Host` is not localhost, or whose `Origin` is not a localhost origin, get `403`. This blocks DNS-rebinding and drive-by requests from web pages. +- Only the app's bundled page can use the camera. The renderer is sandboxed with context isolation and a strict content security policy. +- Claude's captures are saved under the app data folder (`%APPDATA%\Electroscope\captures` on Windows) and pruned to the newest 200. Frames you shared are kept separately. Photos you save yourself go to `Pictures\Electroscope`. +- There is no authentication token. Anything running as you on this machine can reach the port. Pause Claude access when you do not want frames available. diff --git a/docs/screenshot.png b/docs/screenshot.png new file mode 100644 index 0000000..675db99 Binary files /dev/null and b/docs/screenshot.png differ diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..a1da961 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,7146 @@ +{ + "name": "electroscope", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "electroscope", + "version": "0.1.0", + "license": "MIT", + "dependencies": { + "@modelcontextprotocol/sdk": "^1.32.2", + "zod": "^4.6.7" + }, + "devDependencies": { + "@types/node": "^26.6.6", + "electron": "^45.2.1", + "electron-builder": "^26.18.0", + "esbuild": "^0.28.2", + "playwright-core": "^1.64.1", + "sharp": "^0.35.5", + "typescript": "^7.0.2", + "vitest": "^5.0.5" + } + }, + "node_modules/@electron-internal/extract-zip": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@electron-internal/extract-zip/-/extract-zip-1.0.8.tgz", + "integrity": "sha512-8iajeLFbzNwM0m3AsQZSZgYREWglAImyGvvFSWU34FgMW8sHlzdwj9QKvv9dgN7jMP591EFUF/sLOC3Jl9YIjQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@electron/asar": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@electron/asar/-/asar-3.4.1.tgz", + "integrity": "sha512-i4/rNPRS84t0vSRa2HorerGRXWyF4vThfHesw0dmcWHp+cspK743UanA0suA5Q5y8kzY2y6YKrvbIUn69BCAiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "commander": "^5.0.0", + "glob": "^7.1.6", + "minimatch": "^3.0.4" + }, + "bin": { + "asar": "bin/asar.js" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/@electron/asar/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@electron/asar/node_modules/brace-expansion": { + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@electron/asar/node_modules/minimatch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@electron/fuses": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@electron/fuses/-/fuses-1.8.0.tgz", + "integrity": "sha512-zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.1.1", + "fs-extra": "^9.0.1", + "minimist": "^1.2.5" + }, + "bin": { + "electron-fuses": "dist/bin.js" + } + }, + "node_modules/@electron/fuses/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@electron/get": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-5.1.0.tgz", + "integrity": "sha512-3kSBtG8ObcTVfXanm5vVJ6UnBLEVmVsRk1M+vGqCuMBV+XLCbJYuWQful+yIy0GQDsSlK0kHEriEHn7SPk4EnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.1.1", + "env-paths": "^3.0.0", + "graceful-fs": "^4.2.11", + "progress": "^2.0.3", + "semver": "^7.6.3", + "sumchecker": "^3.0.1" + }, + "engines": { + "node": ">=22.12.0" + }, + "optionalDependencies": { + "undici": "^7.24.4" + } + }, + "node_modules/@electron/notarize": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@electron/notarize/-/notarize-2.5.0.tgz", + "integrity": "sha512-jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.1.1", + "fs-extra": "^9.0.1", + "promise-retry": "^2.0.1" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@electron/notarize/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@electron/osx-sign": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.3.3.tgz", + "integrity": "sha512-KZ8mhXvWv2rIEgMbWZ4y33bDHyUKMXnx4M0sTyPNK/vcB81ImdeY9Ggdqy0SWbMDgmbqyQ+phgejh6V3R2QuSg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "compare-version": "^0.1.2", + "debug": "^4.3.4", + "fs-extra": "^10.0.0", + "isbinaryfile": "^4.0.8", + "minimist": "^1.2.6", + "plist": "^3.0.5" + }, + "bin": { + "electron-osx-flat": "bin/electron-osx-flat.js", + "electron-osx-sign": "bin/electron-osx-sign.js" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@electron/osx-sign/node_modules/isbinaryfile": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz", + "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/gjtorikian/" + } + }, + "node_modules/@electron/rebuild": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@electron/rebuild/-/rebuild-4.2.1.tgz", + "integrity": "sha512-IS4pG3BysRrCLJ8xTAfvg+IQDbiUoAzdJy2SfjcYKnLDy5DpCdjnPdhS5Zf5UMfrkB24xu0KC+TqcOxg+eG+6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@malept/cross-spawn-promise": "^2.0.0", + "debug": "^4.1.1", + "node-abi": "^4.2.0", + "node-api-version": "^0.2.1", + "node-gyp": "^12.2.0", + "read-binary-file-arch": "^1.0.6" + }, + "bin": { + "electron-rebuild": "lib/cli.js" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@electron/universal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-2.0.3.tgz", + "integrity": "sha512-Wn9sPYIVFRFl5HmwMJkARCCf7rqK/EurkfQ/rJZ14mHP3iYTjZSIOSVonEAnhWeAXwtw7zOekGRlc6yTtZ0t+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@electron/asar": "^3.3.1", + "@malept/cross-spawn-promise": "^2.0.0", + "debug": "^4.3.1", + "dir-compare": "^4.2.0", + "fs-extra": "^11.1.1", + "minimatch": "^9.0.3", + "plist": "^3.1.0" + }, + "engines": { + "node": ">=16.4" + } + }, + "node_modules/@electron/universal/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@electron/universal/node_modules/brace-expansion": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", + "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@electron/universal/node_modules/fs-extra": { + "version": "11.4.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.1.tgz", + "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/@electron/universal/node_modules/minimatch": { + "version": "9.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", + "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.2" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@electron/windows-sign": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@electron/windows-sign/-/windows-sign-1.2.2.tgz", + "integrity": "sha512-dfZeox66AvdPtb2lD8OsIIQh12Tp0GNCRUDfBHIKGpbmopZto2/A8nSpYYLoedPIHpqkeblZ/k8OV0Gy7PYuyQ==", + "dev": true, + "license": "BSD-2-Clause", + "optional": true, + "peer": true, + "dependencies": { + "cross-dirname": "^0.1.0", + "debug": "^4.3.4", + "fs-extra": "^11.1.1", + "minimist": "^1.2.8", + "postject": "^1.0.0-alpha.6" + }, + "bin": { + "electron-windows-sign": "bin/electron-windows-sign.js" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/@electron/windows-sign/node_modules/fs-extra": { + "version": "11.4.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.1.tgz", + "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", + "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz", + "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz", + "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz", + "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz", + "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz", + "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz", + "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz", + "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz", + "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz", + "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz", + "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz", + "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz", + "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz", + "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz", + "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz", + "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz", + "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz", + "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz", + "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz", + "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz", + "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz", + "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz", + "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz", + "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz", + "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz", + "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz", + "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hono/node-server": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.5.tgz", + "integrity": "sha512-MgP/I06GdvsilDspMk/qmRzpk8LOUStP6jFAbSRi40W09DhoyUn+Mj7eyKICPqeYKybOjVFLVIAQzvu1bfIa7Q==", + "license": "MIT", + "engines": { + "node": ">=20" + }, + "peerDependencies": { + "hono": "^4 || ^5.0.0-0" + } + }, + "node_modules/@img/colour": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", + "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@img/sharp-darwin-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz", + "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-darwin-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz", + "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-freebsd-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz", + "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "dependencies": { + "@img/sharp-wasm32": "0.35.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz", + "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz", + "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz", + "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz", + "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-ppc64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz", + "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-riscv64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz", + "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-s390x": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz", + "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz", + "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz", + "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz", + "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-linux-arm": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz", + "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz", + "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-ppc64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz", + "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-ppc64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-riscv64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz", + "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-riscv64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-s390x": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz", + "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-s390x": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz", + "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-linuxmusl-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz", + "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-linuxmusl-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz", + "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz", + "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==", + "dev": true, + "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", + "optional": true, + "dependencies": { + "@emnapi/runtime": "^1.11.3" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-webcontainers-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz", + "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@img/sharp-wasm32": "0.35.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz", + "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-ia32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz", + "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz", + "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@isaacs/fs-minipass": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", + "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.4" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@malept/cross-spawn-promise": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-2.0.0.tgz", + "integrity": "sha512-1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/malept" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund" + } + ], + "license": "Apache-2.0", + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/@malept/flatpak-bundler": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@malept/flatpak-bundler/-/flatpak-bundler-0.4.0.tgz", + "integrity": "sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.1.1", + "fs-extra": "^9.0.0", + "lodash": "^4.17.15", + "tmp-promise": "^3.0.2" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@malept/flatpak-bundler/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@modelcontextprotocol/sdk": { + "version": "1.32.2", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.32.2.tgz", + "integrity": "sha512-SWsVtH/0vULSQStoZ6xxH2K09Li8fXYTMC64ZeogCdpZ3XSi1eCPOByV1OpuJxuI3OcmHhosDWYyii07tpPsLw==", + "license": "MIT", + "dependencies": { + "@hono/node-server": "^1.19.9 || ^2.0.5", + "ajv": "^8.17.1", + "ajv-formats": "^3.0.1", + "content-type": "^1.0.5", + "cors": "^2.8.5", + "cross-spawn": "^7.0.5", + "eventsource": "^3.0.2", + "eventsource-parser": "^3.0.0", + "express": "^5.2.1", + "express-rate-limit": "^8.2.1", + "hono": "^4.11.4", + "jose": "^6.1.3", + "json-schema-typed": "^8.0.2", + "pkce-challenge": "^5.0.0", + "raw-body": "^3.0.0", + "zod": "^3.25 || ^4.0", + "zod-to-json-schema": "^3.25.1" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@cfworker/json-schema": "^4.1.1", + "zod": "^3.25 || ^4.0" + }, + "peerDependenciesMeta": { + "@cfworker/json-schema": { + "optional": true + }, + "zod": { + "optional": false + } + } + }, + "node_modules/@noble/hashes": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.156.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.156.0.tgz", + "integrity": "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==", + "dev": true, + "license": "MIT", + "peer": true, + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@peculiar/asn1-schema": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.11.1.tgz", + "integrity": "sha512-jaU9OaCcbZUdyXx9hMETZB9xoNmxTGjOGFqd3cOwKFkpKnyKd9WxF3uqj4PvX4cyOMP9bSdHg5YyML2qtx/d/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@peculiar/utils": "^2.0.2", + "asn1js": "^3.0.10", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@peculiar/json-schema": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz", + "integrity": "sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@peculiar/utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@peculiar/utils/-/utils-2.0.3.tgz", + "integrity": "sha512-+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.8.1" + } + }, + "node_modules/@peculiar/webcrypto": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@peculiar/webcrypto/-/webcrypto-1.7.2.tgz", + "integrity": "sha512-ktTSACRJ5WdpfjHjFT2EWJQQPacGv1cPCDfEbdmpAHOxdFiYqPe4lfnXGA3D8Dg9/0kHPYSvyRlgujIOVlTdvQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@peculiar/asn1-schema": "^2.7.0", + "@peculiar/json-schema": "^1.1.12", + "@peculiar/utils": "^2.0.2", + "tslib": "^2.8.1", + "webcrypto-core": "^1.9.2" + }, + "engines": { + "node": ">=14.18.0" + } + }, + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.16.tgz", + "integrity": "sha512-ia3DwAs0OsMGS7+IConptSiyk9pEXkOx/AbJ2n/lAGxH3QkWQus1t8d7gnAT38FCU2sQu8lUbeR6AiZFv4JxaA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.16.tgz", + "integrity": "sha512-kx5wBiMB6E7TEvpl2B9gjLU004BkvEm2Dr941BFjx/SontPwSzNuQUIoVKxHHoSjpFIfHMmcguyLOtyn0hObRg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.16.tgz", + "integrity": "sha512-qslZrXnKJU4cUpjoAmtAo/KQM9e2IRMlmpig6Zpwj+8KWxW8v+nkAf9216Bsek9lOC1jvg2yCjygCFo2f83msQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.16.tgz", + "integrity": "sha512-FdF+y48ND13eAyM2mQn+85kvAqNlvRWROy2rhgA463X/0Gv4vGtazZtfaF1mRBLscYvtOlh4QnLjOWiFzX69OQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.16.tgz", + "integrity": "sha512-ddjqFM5e95AgLbUPtKIS7V1KTVlA0RUgCVr5mn+/IEhsdy3pr+Vuj/HZ7nlMN2FyxIwUktOH1LEPIQXO1v9y1Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.16.tgz", + "integrity": "sha512-tHdKWbFkFBI687iim3LIyIvyL7j66VvQYkDPss5Stn/qyE2tWkR1YD0dXmXPFKKqT/o5ZEJVsaRsWS2meQwGOA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.16.tgz", + "integrity": "sha512-FJiLGAblPBMlBEdbOqw6kW6QcXDWAf/oJu7gYs9ZJZwmg+K+/zjFLxPTIY9izJUzxzc24FHvmseyA0IvJSl17w==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.16.tgz", + "integrity": "sha512-hrJpblMsrQ58U9veWpbXzkhV5zStunds6HWLprqq1qauvgBr1E6P+24kLj6lSLI9vjRn/RYpjprhkHQPKGWpNg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.16.tgz", + "integrity": "sha512-qJd/dC6j6CwLG9/s/RP2nb1RZ0GIgj7Ioj7x/SYa3RzjVrlzrmH0fhIOpfvqQDeIsdP0loi+kHaMhJzY1PBIaA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.16.tgz", + "integrity": "sha512-Vx7Xg5uUJuNcujJjI70OICaH0EYj80BtOLZTSN7uOYg8QOLlyKnaG0IW7Fn/J0IpJsaKzmDKMhOQv1JBM9m9vg==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.16.tgz", + "integrity": "sha512-TNKhgE3uJTsTzatUSSYt0Kgo+Oa2uSlSjz4r1aEIea7HX6ULBym4fAlYUhG1i6pjNf2njfCUAfKwr6C3E9Xg1w==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.16.tgz", + "integrity": "sha512-7chXdpjXZ8qG0+mIxECN3cT9kvhZ3/oZhMX6Pp876P7CDrIy8nJswva6Mq357JR7eYXfuskwZxMeV1SzoZdHrA==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.16.tgz", + "integrity": "sha512-Kwjt+7uNTJK5/MDkGWGVO2KQPnj8yAV75dMpfwyHZrJSXWHrniOB0aUEWlVYf3H1hOqFLIStLdM5QXq6bnKmOQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.16.tgz", + "integrity": "sha512-/LH6WfjDRXXJz/p5xl4TmU+jpcnwcxbKEQBW/GZE0JHfN0lGIyTtsUEGaQ/q/GikkGJ2yLKe6pwm7AnEWO8pdw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.16.tgz", + "integrity": "sha512-1lv1KvX0Z871zfk7vw+dnXMMnHNyDwMzWG8Kv3HxDXMOhzCX4SHc7HK319fInP0i+0p9D8brkfzL7pJOaGl+tw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@sindresorhus/is": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", + "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" + } + }, + "node_modules/@szmarczak/http-timer": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", + "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", + "dev": true, + "license": "MIT", + "dependencies": { + "defer-to-connect": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@types/cacheable-request": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", + "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/http-cache-semantics": "*", + "@types/keyv": "^3.1.4", + "@types/node": "*", + "@types/responselike": "^1.0.0" + } + }, + "node_modules/@types/chai": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", + "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/deep-eql": "*", + "assertion-error": "^2.0.1" + } + }, + "node_modules/@types/debug": { + "version": "4.1.13", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz", + "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/deep-eql": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", + "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz", + "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/fs-extra": { + "version": "9.0.13", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz", + "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/http-cache-semantics": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", + "integrity": "sha512-L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/keyv": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", + "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "26.6.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz", + "integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~8.9.0" + } + }, + "node_modules/@types/responselike": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz", + "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@typescript/typescript-aix-ppc64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz", + "integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-darwin-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz", + "integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-darwin-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz", + "integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-freebsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz", + "integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-freebsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz", + "integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-arm": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz", + "integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz", + "integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-loong64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz", + "integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-mips64el": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz", + "integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-ppc64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz", + "integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-riscv64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz", + "integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-s390x": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz", + "integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz", + "integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-netbsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz", + "integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-netbsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz", + "integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-openbsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz", + "integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-openbsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz", + "integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-sunos-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz", + "integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-win32-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz", + "integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-win32-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz", + "integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@vitest/mocker": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.5.tgz", + "integrity": "sha512-xLL3lkDegJZw+MGoGaCCsFayDZthGgpAtr3Vziyfc4p7xH89K7KRPcRBBh/kEYm0Aqkt5DtTmkYpBtRV/FrHZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.31", + "@vitest/spy": "5.0.5", + "estree-walker": "^3.0.3", + "magic-string": "^1.4.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "msw": "^2.4.9 || ^3.0.0", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "msw": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/@vitest/spy": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.5.tgz", + "integrity": "sha512-lwJRExuH417257Q5wv9QYugN9IMJkoxcrKrYxGPQkBzl7wlNpTUxD/5yNX4ESKVUIShKPgkGchYPFMWOOk0wzw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.15", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.15.tgz", + "integrity": "sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/abbrev": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-4.0.0.tgz", + "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/accepts": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", + "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", + "license": "MIT", + "dependencies": { + "mime-types": "^3.0.0", + "negotiator": "^1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/ajv": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "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, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "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, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/app-builder-lib": { + "version": "26.18.0", + "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-26.18.0.tgz", + "integrity": "sha512-lx+KkuCSZHcbECf4R3IAcC9VOFk0+cMUwljO63s5y8yqS1Lw0sRGmjPaWsPwP3zv3ohZYbMhUvjXeiQXXZhJXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@electron/asar": "3.4.1", + "@electron/fuses": "^1.8.0", + "@electron/get": "^3.0.0", + "@electron/notarize": "2.5.0", + "@electron/osx-sign": "1.3.3", + "@electron/rebuild": "^4.2.1", + "@electron/universal": "2.0.3", + "@malept/flatpak-bundler": "^0.4.0", + "@noble/hashes": "^1.8.0", + "@peculiar/webcrypto": "^1.7.1", + "@types/fs-extra": "9.0.13", + "ajv": "^8.18.0", + "asn1js": "^3.0.10", + "async-exit-hook": "^2.0.1", + "builder-util": "26.16.0", + "builder-util-runtime": "9.7.0", + "chromium-pickle-js": "^0.2.0", + "ci-info": "4.3.1", + "debug": "^4.3.4", + "dotenv": "^16.4.5", + "dotenv-expand": "^11.0.6", + "ejs": "^3.1.8", + "electron-publish": "26.18.0", + "fs-extra": "^10.1.0", + "hosted-git-info": "^4.1.0", + "isbinaryfile": "^5.0.0", + "jiti": "^2.4.2", + "js-yaml": "^4.1.0", + "json5": "^2.2.3", + "lazy-val": "^1.0.5", + "minimatch": "^10.2.5", + "pkijs": "^3.4.0", + "plist": "3.1.0", + "proper-lockfile": "^4.1.2", + "resedit": "^1.7.0", + "semver": "~7.7.3", + "tar": "^7.5.7", + "temp-file": "^3.4.0", + "tiny-async-pool": "1.3.0", + "unzipper": "^0.12.3", + "which": "^5.0.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "dmg-builder": "26.18.0", + "electron-builder-squirrel-windows": "26.18.0" + } + }, + "node_modules/app-builder-lib/node_modules/@electron/get": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-3.1.0.tgz", + "integrity": "sha512-F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.1.1", + "env-paths": "^2.2.0", + "fs-extra": "^8.1.0", + "got": "^11.8.5", + "progress": "^2.0.3", + "semver": "^6.2.0", + "sumchecker": "^3.0.1" + }, + "engines": { + "node": ">=14" + }, + "optionalDependencies": { + "global-agent": "^3.0.0" + } + }, + "node_modules/app-builder-lib/node_modules/@electron/get/node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/app-builder-lib/node_modules/@electron/get/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/app-builder-lib/node_modules/ci-info": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz", + "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/app-builder-lib/node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/app-builder-lib/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "license": "MIT", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/app-builder-lib/node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/app-builder-lib/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, + "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, + "license": "Python-2.0" + }, + "node_modules/asn1js": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.1.0.tgz", + "integrity": "sha512-HWYi1THkOqguCiO+vwj09ZkQFD2kKEsejYHAYCtX0D80WVdoDnvRc9IukXX/jeb0T9NRWJnRtqwdbHltnFjwXA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "pvtsutils": "^1.3.6", + "pvutils": "^1.2.0", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "dev": true, + "license": "MIT" + }, + "node_modules/async-exit-hook": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/async-exit-hook/-/async-exit-hook-2.0.1.tgz", + "integrity": "sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/aws4": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz", + "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==", + "dev": true, + "license": "MIT" + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "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" + } + ], + "license": "MIT" + }, + "node_modules/bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "dev": true, + "license": "MIT" + }, + "node_modules/body-parser": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.4.0.tgz", + "integrity": "sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==", + "license": "MIT", + "dependencies": { + "bytes": "^3.1.2", + "content-type": "^2.1.0", + "debug": "^4.4.3", + "http-errors": "^2.0.1", + "iconv-lite": "^0.7.3", + "on-finished": "^2.4.1", + "qs": "^6.16.1", + "raw-body": "^3.0.2", + "type-is": "^2.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/body-parser/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/boolean": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", + "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/brace-expansion": { + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/builder-util": { + "version": "26.16.0", + "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-26.16.0.tgz", + "integrity": "sha512-RLyJhB7Si3YkzKR9ubQslWuXW3Vhs3CGe1i+SeixBZ0qTd1mk3XBmssvY22TlB6CS5blyko8Gu1JzpYk8UkYAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/debug": "^4.1.6", + "builder-util-runtime": "9.7.0", + "chalk": "^4.1.2", + "cross-spawn": "^7.0.6", + "debug": "^4.3.4", + "fs-extra": "^10.1.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", + "js-yaml": "^4.1.0", + "sanitize-filename": "^1.6.3", + "source-map-support": "^0.5.19", + "stat-mode": "^1.0.0", + "temp-file": "^3.4.0", + "tiny-async-pool": "1.3.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/builder-util-runtime": { + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.7.0.tgz", + "integrity": "sha512-g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.3.4", + "sax": "^1.2.4" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/bytestreamjs": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/bytestreamjs/-/bytestreamjs-2.0.1.tgz", + "integrity": "sha512-U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/cacheable-lookup": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", + "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.6.0" + } + }, + "node_modules/cacheable-request": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", + "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", + "dev": true, + "license": "MIT", + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^4.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^6.0.1", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/chai": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/chai/-/chai-6.3.0.tgz", + "integrity": "sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "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, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chownr": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", + "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/chromium-pickle-js": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz", + "integrity": "sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==", + "dev": true, + "license": "MIT" + }, + "node_modules/ci-info": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz", + "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/clone-response": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", + "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-response": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "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, + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/compare-version": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz", + "integrity": "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/content-disposition": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-2.0.1.tgz", + "integrity": "sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", + "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", + "license": "MIT", + "engines": { + "node": ">=6.6.0" + } + }, + "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, + "license": "MIT" + }, + "node_modules/cors": { + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz", + "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==", + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/cross-dirname": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/cross-dirname/-/cross-dirname-0.1.0.tgz", + "integrity": "sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cross-spawn/node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "license": "ISC" + }, + "node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decompress-response": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-response": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decompress-response/node_modules/mimic-response": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/defer-to-connect": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", + "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/dir-compare": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/dir-compare/-/dir-compare-4.2.0.tgz", + "integrity": "sha512-2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "minimatch": "^3.0.5", + "p-limit": "^3.1.0 " + } + }, + "node_modules/dir-compare/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/dir-compare/node_modules/brace-expansion": { + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/dir-compare/node_modules/minimatch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/dmg-builder": { + "version": "26.18.0", + "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-26.18.0.tgz", + "integrity": "sha512-ozCGC54wi2C1RkS2v69y9lQxvoQ1Coh+iT8CmWiyY8y1ZuOKVvuNson2Hd+HEOs9+EZNNsOBbzKgQZ4SNqWd0w==", + "dev": true, + "license": "MIT", + "dependencies": { + "app-builder-lib": "26.18.0", + "builder-util": "26.16.0", + "fs-extra": "^10.1.0", + "js-yaml": "^4.1.0" + } + }, + "node_modules/dotenv": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dotenv-expand": { + "version": "11.0.7", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-11.0.7.tgz", + "integrity": "sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "dotenv": "^16.4.5" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "readable-stream": "^2.0.2" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, + "node_modules/ejs": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/electron": { + "version": "45.2.1", + "resolved": "https://registry.npmjs.org/electron/-/electron-45.2.1.tgz", + "integrity": "sha512-t433yuo8Kh8WG/mTStnPRT/NtpWw8A+caNLJgeU0tS/FlfOkeNEntFsac4ViLgDxZOmDe7BeSkOANVqrqNHhDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@electron-internal/extract-zip": "^1.0.1", + "@electron/get": "^5.0.0", + "@types/node": "^24.9.0" + }, + "bin": { + "electron": "cli.js", + "install-electron": "install.js" + }, + "engines": { + "node": ">= 22.12.0" + } + }, + "node_modules/electron-builder": { + "version": "26.18.0", + "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-26.18.0.tgz", + "integrity": "sha512-ASgIuQnOq4RuD8jMhS9hI0LS3EMRT1I/M5R6utqifB/BHN80IcCjBdt+DED+NmNPvmBgEtrlExXZitNdA7kXOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "app-builder-lib": "26.18.0", + "builder-util": "26.16.0", + "builder-util-runtime": "9.7.0", + "chalk": "^4.1.2", + "ci-info": "^4.2.0", + "dmg-builder": "26.18.0", + "fs-extra": "^10.1.0", + "lazy-val": "^1.0.5", + "simple-update-notifier": "2.0.0", + "yargs": "^17.6.2" + }, + "bin": { + "electron-builder": "cli.js", + "install-app-deps": "install-app-deps.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/electron-builder-squirrel-windows": { + "version": "26.18.0", + "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-26.18.0.tgz", + "integrity": "sha512-a2elgTipboXNIsxqS1HOmHMGp4Pd3LJgIZOdIFTOskBSawvxKyZWYWQ1d7KKA4CtINSchYCYEKzhxRqiKZev9Q==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "app-builder-lib": "26.18.0", + "builder-util": "26.16.0", + "electron-winstaller": "5.4.0" + } + }, + "node_modules/electron-publish": { + "version": "26.18.0", + "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-26.18.0.tgz", + "integrity": "sha512-MagnqaZSALSWjcdKu5HEVhYUZD/2BDL3q7XzrqWwub6gf/UfD3ItMgmthVDv9w5y9E0gH1C3JWqKaXwf6f4ROg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/fs-extra": "^9.0.11", + "aws4": "^1.13.2", + "builder-util": "26.16.0", + "builder-util-runtime": "9.7.0", + "chalk": "^4.1.2", + "form-data": "^4.0.5", + "fs-extra": "^10.1.0", + "lazy-val": "^1.0.5", + "mime": "^2.5.2" + } + }, + "node_modules/electron-winstaller": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/electron-winstaller/-/electron-winstaller-5.4.0.tgz", + "integrity": "sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@electron/asar": "^3.2.1", + "debug": "^4.1.1", + "fs-extra": "^7.0.1", + "lodash": "^4.17.21", + "temp": "^0.9.0" + }, + "engines": { + "node": ">=8.0.0" + }, + "optionalDependencies": { + "@electron/windows-sign": "^1.1.2" + } + }, + "node_modules/electron-winstaller/node_modules/fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/electron-winstaller/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "license": "MIT", + "peer": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/electron-winstaller/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/electron/node_modules/@types/node": { + "version": "24.19.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.2.tgz", + "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": ">=7.24.0 <7.24.7" + } + }, + "node_modules/electron/node_modules/undici-types": { + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", + "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", + "dev": true, + "license": "MIT" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.1.tgz", + "integrity": "sha512-Ev/hIyePLZtpL98x562lvPtenrUfGr0lfaf44HFZ+hDEwso7ccV9QAZrEVLg0hxNAzygaAFxy2dYaAKKM0G06A==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/env-paths": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-3.0.0.tgz", + "integrity": "sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/err-code": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", + "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==", + "dev": true, + "license": "MIT" + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-module-lexer": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", + "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==", + "dev": true, + "license": "MIT" + }, + "node_modules/es-object-atoms": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es6-error": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/esbuild": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz", + "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.28.2", + "@esbuild/android-arm": "0.28.2", + "@esbuild/android-arm64": "0.28.2", + "@esbuild/android-x64": "0.28.2", + "@esbuild/darwin-arm64": "0.28.2", + "@esbuild/darwin-x64": "0.28.2", + "@esbuild/freebsd-arm64": "0.28.2", + "@esbuild/freebsd-x64": "0.28.2", + "@esbuild/linux-arm": "0.28.2", + "@esbuild/linux-arm64": "0.28.2", + "@esbuild/linux-ia32": "0.28.2", + "@esbuild/linux-loong64": "0.28.2", + "@esbuild/linux-mips64el": "0.28.2", + "@esbuild/linux-ppc64": "0.28.2", + "@esbuild/linux-riscv64": "0.28.2", + "@esbuild/linux-s390x": "0.28.2", + "@esbuild/linux-x64": "0.28.2", + "@esbuild/netbsd-arm64": "0.28.2", + "@esbuild/netbsd-x64": "0.28.2", + "@esbuild/openbsd-arm64": "0.28.2", + "@esbuild/openbsd-x64": "0.28.2", + "@esbuild/openharmony-arm64": "0.28.2", + "@esbuild/sunos-x64": "0.28.2", + "@esbuild/win32-arm64": "0.28.2", + "@esbuild/win32-ia32": "0.28.2", + "@esbuild/win32-x64": "0.28.2" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "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, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/eventsource": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz", + "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==", + "license": "MIT", + "dependencies": { + "eventsource-parser": "^3.0.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/eventsource-parser": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.1.1.tgz", + "integrity": "sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==", + "license": "MIT", + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/expect-type": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz", + "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/exponential-backoff": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.3.tgz", + "integrity": "sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/express": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/express/-/express-5.3.0.tgz", + "integrity": "sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==", + "license": "MIT", + "dependencies": { + "accepts": "^2.0.0", + "body-parser": "^2.3.0", + "content-disposition": "^2.0.1", + "content-type": "^2.0.0", + "cookie": "^0.7.1", + "cookie-signature": "^1.2.1", + "debug": "^4.4.0", + "depd": "^2.0.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "finalhandler": "^2.1.0", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "merge-descriptors": "^2.0.0", + "mime-types": "^3.0.0", + "on-finished": "^2.4.1", + "once": "^1.4.0", + "parseurl": "^1.3.3", + "proxy-addr": "^2.0.8", + "qs": "^6.16.0", + "range-parser": "^1.2.1", + "router": "^2.2.0", + "send": "^1.1.0", + "serve-static": "^2.2.0", + "statuses": "^2.0.1", + "type-is": "^2.1.0", + "vary": "^1.1.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/express-rate-limit": { + "version": "8.7.2", + "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.7.2.tgz", + "integrity": "sha512-U1ScocxDD9WI09LaBVypvNkOtNR5yWAmZLkuKJdAzIchA4YKFYF6GT5IKER7epG58oXtjvGlV0/6ii0F83EyZg==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "ip-address": "^10.2.0" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/express-rate-limit" + }, + "peerDependencies": { + "express": ">= 4.11" + } + }, + "node_modules/express/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/express/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "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==", + "license": "MIT" + }, + "node_modules/fast-uri": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz", + "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/filelist": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.6.tgz", + "integrity": "sha512-5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", + "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz", + "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/finalhandler": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", + "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "on-finished": "^2.4.1", + "parseurl": "^1.3.3", + "statuses": "^2.0.1" + }, + "engines": { + "node": ">= 18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/form-data": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz", + "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.4", + "mime-types": "^2.1.35" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", + "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true, + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/global-agent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz", + "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==", + "dev": true, + "license": "BSD-3-Clause", + "optional": true, + "dependencies": { + "boolean": "^3.0.1", + "es6-error": "^4.1.1", + "matcher": "^3.0.0", + "roarr": "^2.15.3", + "semver": "^7.3.2", + "serialize-error": "^7.0.1" + }, + "engines": { + "node": ">=10.0" + } + }, + "node_modules/globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/got": { + "version": "11.8.6", + "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", + "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sindresorhus/is": "^4.0.0", + "@szmarczak/http-timer": "^4.0.5", + "@types/cacheable-request": "^6.0.1", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^5.0.3", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "http2-wrapper": "^1.0.0-beta.5.2", + "lowercase-keys": "^2.0.0", + "p-cancelable": "^2.0.0", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=10.19.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/got?sponsor=1" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "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, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hono": { + "version": "4.13.14", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.14.tgz", + "integrity": "sha512-yhRLQ21U6qa9Hsu2N7Qcbh8tE+WKEcoErjIo56LeSGiGXGp9sA7UpE86Ui9uexb61KakiGwuHMn2QdV7w6i6kQ==", + "license": "MIT", + "engines": { + "node": ">=16.9.0" + } + }, + "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, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/http-cache-semantics": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.3.0.tgz", + "integrity": "sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==", + "dev": true, + "license": "BSD-2-Clause" + }, + "node_modules/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", + "license": "MIT", + "dependencies": { + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/http-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/http2-wrapper": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", + "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.0.0" + }, + "engines": { + "node": ">=10.19.0" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/iconv-lite": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", + "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "license": "ISC", + "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==", + "license": "ISC" + }, + "node_modules/ip-address": { + "version": "10.7.5", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.5.tgz", + "integrity": "sha512-t2v0rkILYv9WXmSL7TpAaU3HXgaFYOPUcH3QHgwQ++gpJuH3bqyMy4Fvt/DJCTKwzH3Cf+bAp5W/mFL39KPLzA==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-promise": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", + "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", + "license": "MIT" + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/isbinaryfile": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.7.tgz", + "integrity": "sha512-gnWD14Jh3FzS3CPhF0AxNOJ8CxqeblPTADzI38r0wt8ZyQl5edpy75myt08EG2oKvpyiqSqsx+Wkz9vtkbTqYQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 18.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/gjtorikian/" + } + }, + "node_modules/isexe": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.5.tgz", + "integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/jake": { + "version": "10.9.4", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.4.tgz", + "integrity": "sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "async": "^3.2.6", + "filelist": "^1.0.4", + "picocolors": "^1.1.1" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/jose": { + "version": "6.2.14", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.14.tgz", + "integrity": "sha512-3JasLuki1NRLQvY4wCoC37KZk4qxoBx2k2aFqLxT84IezqW0bkJKnNtxnZj/Fu1xsQivoc/lytxaRHJoGLjJ1A==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/js-yaml": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", + "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "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, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, + "node_modules/json-schema-typed": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz", + "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==", + "license": "BSD-2-Clause" + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true, + "license": "ISC", + "optional": 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, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "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, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/lazy-val": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/lazy-val/-/lazy-val-1.0.5.tgz", + "integrity": "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "dev": true, + "license": "MPL-2.0", + "peer": true, + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lodash": { + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz", + "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "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==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/magic-string": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.5.tgz", + "integrity": "sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.6.0" + } + }, + "node_modules/matcher": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", + "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "escape-string-regexp": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz", + "integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/merge-descriptors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", + "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mime": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "dev": true, + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/minimatch": { + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.8" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/minizlib": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", + "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.1.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "peer": true, + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/negotiator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.1.0.tgz", + "integrity": "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==", + "license": "MIT", + "dependencies": { + "content-type": "^2.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/negotiator/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/node-abi": { + "version": "4.40.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-4.40.0.tgz", + "integrity": "sha512-GuvqvtrOk+AC27RidBxBsMzVNkwNl7PjHgc4NXbmdvSVLgIUjpaqcG1FjNRYnt2Yn9Ytq+Ln37XsBaglUcte/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.6.3" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/node-api-version": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/node-api-version/-/node-api-version-0.2.1.tgz", + "integrity": "sha512-2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.3.5" + } + }, + "node_modules/node-gyp": { + "version": "12.4.0", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-12.4.0.tgz", + "integrity": "sha512-OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", + "graceful-fs": "^4.2.6", + "nopt": "^9.0.0", + "proc-log": "^6.0.0", + "semver": "^7.3.5", + "tar": "^7.5.4", + "tinyglobby": "^0.2.12", + "undici": "^6.25.0", + "which": "^6.0.0" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/node-gyp/node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/node-gyp/node_modules/isexe": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-4.0.0.tgz", + "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=20" + } + }, + "node_modules/node-gyp/node_modules/undici": { + "version": "6.29.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.1.tgz", + "integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.17" + } + }, + "node_modules/node-gyp/node_modules/which": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz", + "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^4.0.0" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/nopt": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-9.0.0.tgz", + "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==", + "dev": true, + "license": "ISC", + "dependencies": { + "abbrev": "^4.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/obug": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/obug/-/obug-3.0.0.tgz", + "integrity": "sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==", + "dev": true, + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT", + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/on-finished": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.2.tgz", + "integrity": "sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/p-cancelable": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", + "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "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, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.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": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "license": "MIT", + "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==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-to-regexp": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", + "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/pe-library": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/pe-library/-/pe-library-0.4.1.tgz", + "integrity": "sha512-eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12", + "npm": ">=6" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jet2jet" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pkce-challenge": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz", + "integrity": "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==", + "license": "MIT", + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/pkijs": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.4.3.tgz", + "integrity": "sha512-V9kOzaItwDgqlryhXysQsAXUEKi5O7kqWUaP3dXI7MLvkPqWWMb4wVb1QAtmEDCKI+XIAINsZoNKMFF7sZb1eg==", + "dev": true, + "license": "BSD-3-Clause", + "workspaces": [ + "website" + ], + "dependencies": { + "@noble/hashes": "1.8.0", + "asn1js": "^3.0.6", + "bytestreamjs": "^2.0.1", + "pvtsutils": "^1.3.6", + "pvutils": "^1.1.3", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/playwright-core": { + "version": "1.64.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.64.1.tgz", + "integrity": "sha512-BC4s8y6SEVA6Q1rSxZTto8hI1KUI3xXlHGZgvGqP4IqPdI/a6FX9H29IDNz7vKo9l21b6LfYosScPL6M3xxyDQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/plist": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz", + "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@xmldom/xmldom": "^0.8.8", + "base64-js": "^1.5.1", + "xmlbuilder": "^15.1.1" + }, + "engines": { + "node": ">=10.4.0" + } + }, + "node_modules/postcss": { + "version": "8.5.32", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.32.tgz", + "integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "peer": true, + "dependencies": { + "nanoid": "^3.3.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postject": { + "version": "1.0.0-alpha.6", + "resolved": "https://registry.npmjs.org/postject/-/postject-1.0.0-alpha.6.tgz", + "integrity": "sha512-b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "commander": "^9.4.0" + }, + "bin": { + "postject": "dist/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/postject/node_modules/commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": "^12.20.0 || >=14" + } + }, + "node_modules/proc-log": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.1.0.tgz", + "integrity": "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.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, + "license": "MIT" + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/promise-retry": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", + "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/proper-lockfile": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz", + "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "retry": "^0.12.0", + "signal-exit": "^3.0.2" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz", + "integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/pump": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz", + "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/pvtsutils": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.6.tgz", + "integrity": "sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.8.1" + } + }, + "node_modules/pvutils": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pvutils/-/pvutils-1.2.0.tgz", + "integrity": "sha512-BbubeCEyTuQjVMakvJQ/Sxbc93F2pwmbsxONT/ZRrwU7Ua38d8unYTwXpTVLAKJ4BDuH9IGztCjQcd/N/39Dvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/qs": { + "version": "6.17.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.17.1.tgz", + "integrity": "sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==", + "license": "BSD-3-Clause", + "dependencies": { + "es-define-property": "^1.0.1", + "side-channel": "^1.1.1" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/quick-lru": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/range-parser": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz", + "integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/raw-body": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", + "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.7.0", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/read-binary-file-arch": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/read-binary-file-arch/-/read-binary-file-arch-1.0.6.tgz", + "integrity": "sha512-BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.3.4" + }, + "bin": { + "read-binary-file-arch": "cli.js" + } + }, + "node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "license": "MIT", + "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/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resedit": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/resedit/-/resedit-1.7.2.tgz", + "integrity": "sha512-vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pe-library": "^0.4.1" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jet2jet" + } + }, + "node_modules/resolve-alpn": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", + "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==", + "dev": true, + "license": "MIT" + }, + "node_modules/responselike": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", + "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", + "dev": true, + "license": "MIT", + "dependencies": { + "lowercase-keys": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/rimraf": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/roarr": { + "version": "2.15.4", + "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", + "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", + "dev": true, + "license": "BSD-3-Clause", + "optional": true, + "dependencies": { + "boolean": "^3.0.1", + "detect-node": "^2.0.4", + "globalthis": "^1.0.1", + "json-stringify-safe": "^5.0.1", + "semver-compare": "^1.0.0", + "sprintf-js": "^1.1.2" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/rolldown": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.16.tgz", + "integrity": "sha512-bWvlMpFKiTfDKfnK7FC2MPgPeWCf/Kpwsq49ApdW+FQaBZb6O6dZ4MAPbPUjp7hYQrw/RobqCzn64BRrQecGHw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@oxc-project/types": "=0.156.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.2.16", + "@rolldown/binding-android-arm64": "1.2.16", + "@rolldown/binding-darwin-arm64": "1.2.16", + "@rolldown/binding-darwin-x64": "1.2.16", + "@rolldown/binding-freebsd-x64": "1.2.16", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.16", + "@rolldown/binding-linux-arm64-gnu": "1.2.16", + "@rolldown/binding-linux-arm64-musl": "1.2.16", + "@rolldown/binding-linux-ppc64-gnu": "1.2.16", + "@rolldown/binding-linux-s390x-gnu": "1.2.16", + "@rolldown/binding-linux-x64-gnu": "1.2.16", + "@rolldown/binding-linux-x64-musl": "1.2.16", + "@rolldown/binding-openharmony-arm64": "1.2.16", + "@rolldown/binding-win32-arm64-msvc": "1.2.16", + "@rolldown/binding-win32-x64-msvc": "1.2.16" + } + }, + "node_modules/router": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", + "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "depd": "^2.0.0", + "is-promise": "^4.0.0", + "parseurl": "^1.3.3", + "path-to-regexp": "^8.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "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, + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/sanitize-filename": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.4.tgz", + "integrity": "sha512-9ZyI08PsvdQl2r/bBIGubpVdR3RR9sY6RDiWFPreA21C/EFlQhmgo20UZlNjZMMZNubusLhAQozkA0Od5J21Eg==", + "dev": true, + "license": "WTFPL OR ISC", + "dependencies": { + "truncate-utf8-bytes": "^1.0.0" + } + }, + "node_modules/sax": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz", + "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=11.0.0" + } + }, + "node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/send": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", + "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "fresh": "^2.0.0", + "http-errors": "^2.0.1", + "mime-types": "^3.0.2", + "ms": "^2.1.3", + "on-finished": "^2.4.1", + "range-parser": "^1.2.1", + "statuses": "^2.0.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/send/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/send/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/serialize-error": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", + "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "type-fest": "^0.13.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/serve-static": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", + "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", + "license": "MIT", + "dependencies": { + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "parseurl": "^1.3.3", + "send": "^1.2.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, + "node_modules/sharp": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz", + "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@img/colour": "^1.1.0", + "detect-libc": "^2.1.2", + "semver": "^7.8.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-darwin-arm64": "0.35.5", + "@img/sharp-darwin-x64": "0.35.5", + "@img/sharp-freebsd-wasm32": "0.35.5", + "@img/sharp-libvips-darwin-arm64": "1.3.4", + "@img/sharp-libvips-darwin-x64": "1.3.4", + "@img/sharp-libvips-linux-arm": "1.3.4", + "@img/sharp-libvips-linux-arm64": "1.3.4", + "@img/sharp-libvips-linux-ppc64": "1.3.4", + "@img/sharp-libvips-linux-riscv64": "1.3.4", + "@img/sharp-libvips-linux-s390x": "1.3.4", + "@img/sharp-libvips-linux-x64": "1.3.4", + "@img/sharp-libvips-linuxmusl-arm64": "1.3.4", + "@img/sharp-libvips-linuxmusl-x64": "1.3.4", + "@img/sharp-linux-arm": "0.35.5", + "@img/sharp-linux-arm64": "0.35.5", + "@img/sharp-linux-ppc64": "0.35.5", + "@img/sharp-linux-riscv64": "0.35.5", + "@img/sharp-linux-s390x": "0.35.5", + "@img/sharp-linux-x64": "0.35.5", + "@img/sharp-linuxmusl-arm64": "0.35.5", + "@img/sharp-linuxmusl-x64": "0.35.5", + "@img/sharp-webcontainers-wasm32": "0.35.5", + "@img/sharp-win32-arm64": "0.35.5", + "@img/sharp-win32-ia32": "0.35.5", + "@img/sharp-win32-x64": "0.35.5" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "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==", + "license": "MIT", + "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==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", + "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4", + "side-channel-list": "^1.0.1", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", + "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/simple-update-notifier": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", + "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", + "dev": true, + "license": "BSD-3-Clause", + "optional": true + }, + "node_modules/stat-mode": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-1.0.0.tgz", + "integrity": "sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/std-env": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.3.0.tgz", + "integrity": "sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==", + "dev": true, + "license": "MIT" + }, + "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, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "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, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/sumchecker": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz", + "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "debug": "^4.1.0" + }, + "engines": { + "node": ">= 8.0" + } + }, + "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, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tar": { + "version": "7.5.22", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.22.tgz", + "integrity": "sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/fs-minipass": "^4.0.0", + "chownr": "^3.0.0", + "minipass": "^7.1.2", + "minizlib": "^3.1.0", + "yallist": "^5.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/tar/node_modules/yallist": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", + "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/temp": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/temp/-/temp-0.9.4.tgz", + "integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "mkdirp": "^0.5.1", + "rimraf": "~2.6.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/temp-file": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/temp-file/-/temp-file-3.4.0.tgz", + "integrity": "sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==", + "dev": true, + "license": "MIT", + "dependencies": { + "async-exit-hook": "^2.0.1", + "fs-extra": "^10.0.0" + } + }, + "node_modules/tiny-async-pool": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/tiny-async-pool/-/tiny-async-pool-1.3.0.tgz", + "integrity": "sha512-01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^5.5.0" + } + }, + "node_modules/tiny-async-pool/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, + "license": "ISC", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/tinybench": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.2.2.tgz", + "integrity": "sha512-nIZ2N2dFpjBsg2hgitKu7mA+FvsIJuGJOwysRngmVRRmWgR/UyPjwJj8c/fT/dhm8EkHnF5EOogRf+0Z2qrimA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/tinyexec": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz", + "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tmp": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.7.tgz", + "integrity": "sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.14" + } + }, + "node_modules/tmp-promise": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz", + "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "tmp": "^0.2.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/truncate-utf8-bytes": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz", + "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==", + "dev": true, + "license": "WTFPL", + "dependencies": { + "utf8-byte-length": "^1.0.1" + } + }, + "node_modules/tslib": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz", + "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==", + "dev": true, + "license": "0BSD" + }, + "node_modules/type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz", + "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==", + "license": "MIT", + "dependencies": { + "content-type": "^2.0.0", + "media-typer": "^1.1.0", + "mime-types": "^3.0.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/type-is/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/type-is/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/type-is/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/typescript": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz", + "integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc" + }, + "engines": { + "node": ">=16.20.0" + }, + "optionalDependencies": { + "@typescript/typescript-aix-ppc64": "7.0.2", + "@typescript/typescript-darwin-arm64": "7.0.2", + "@typescript/typescript-darwin-x64": "7.0.2", + "@typescript/typescript-freebsd-arm64": "7.0.2", + "@typescript/typescript-freebsd-x64": "7.0.2", + "@typescript/typescript-linux-arm": "7.0.2", + "@typescript/typescript-linux-arm64": "7.0.2", + "@typescript/typescript-linux-loong64": "7.0.2", + "@typescript/typescript-linux-mips64el": "7.0.2", + "@typescript/typescript-linux-ppc64": "7.0.2", + "@typescript/typescript-linux-riscv64": "7.0.2", + "@typescript/typescript-linux-s390x": "7.0.2", + "@typescript/typescript-linux-x64": "7.0.2", + "@typescript/typescript-netbsd-arm64": "7.0.2", + "@typescript/typescript-netbsd-x64": "7.0.2", + "@typescript/typescript-openbsd-arm64": "7.0.2", + "@typescript/typescript-openbsd-x64": "7.0.2", + "@typescript/typescript-sunos-x64": "7.0.2", + "@typescript/typescript-win32-arm64": "7.0.2", + "@typescript/typescript-win32-x64": "7.0.2" + } + }, + "node_modules/undici": { + "version": "7.30.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.1.tgz", + "integrity": "sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=20.18.1" + } + }, + "node_modules/undici-types": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz", + "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==", + "dev": true, + "license": "MIT" + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/unzipper": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/unzipper/-/unzipper-0.12.5.tgz", + "integrity": "sha512-tXYOi9R57Uj/2Z25SOs5RRSzq886MBQj2gY8dPL+xl/kv6s6SvByoKfAtvfVeEuhntWDgjd2o9p2lb4TVPAz0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "bluebird": "~3.7.2", + "duplexer2": "~0.1.4", + "fs-extra": "11.3.1", + "graceful-fs": "^4.2.2", + "node-int64": "^0.4.0" + } + }, + "node_modules/unzipper/node_modules/fs-extra": { + "version": "11.3.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.1.tgz", + "integrity": "sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/utf8-byte-length": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.5.tgz", + "integrity": "sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==", + "dev": true, + "license": "(WTFPL OR MIT)" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/vite": { + "version": "8.3.5", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.5.tgz", + "integrity": "sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.30", + "rolldown": "~1.2.14", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1 || ^0.8.0", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vitest": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.5.tgz", + "integrity": "sha512-cPODOMF8YnkiiYtDdHo6n4wWmBrOBBbOIYH2d33M4l3CdNn72h+qMmO6uXffUN6A5AZFXNND/d+krS9mgkXRfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/chai": "^5.2.2", + "@vitest/mocker": "5.0.5", + "chai": "^6.3.0", + "es-module-lexer": "^2.3.2", + "expect-type": "^1.4.0", + "magic-string": "^1.4.3", + "obug": "^3.0.0", + "picomatch": "^4.0.7", + "std-env": "^4.3.0", + "tinybench": "^6.2.2", + "tinyexec": "^1.3.1", + "tinyglobby": "^0.2.17", + "why-is-node-running": "3.2.1" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^22.12.0 || ^24.0.0 || >=26.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@opentelemetry/api": "^1.9.0", + "@types/node": "^22.0.0 || >=24.0.0", + "@vitest/browser-playwright": "5.0.5", + "@vitest/browser-preview": "5.0.5", + "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0", + "@vitest/coverage-istanbul": "5.0.5", + "@vitest/coverage-v8": "5.0.5", + "@vitest/ui": "5.0.5", + "happy-dom": "*", + "jsdom": "*", + "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@opentelemetry/api": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser-playwright": { + "optional": true + }, + "@vitest/browser-preview": { + "optional": true + }, + "@vitest/browser-webdriverio": { + "optional": true + }, + "@vitest/coverage-istanbul": { + "optional": true + }, + "@vitest/coverage-v8": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + }, + "vite": { + "optional": false + } + } + }, + "node_modules/webcrypto-core": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.9.2.tgz", + "integrity": "sha512-gsXecm82UQNlTBURJGuqOWy1Ww08S3kZUcr3aOJS02Pk0xLtkfeUAVC0u0xhgdonFme80edSJUIJyuvL/7250Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@peculiar/asn1-schema": "^2.7.0", + "@peculiar/json-schema": "^1.1.12", + "@peculiar/utils": "^2.0.2", + "asn1js": "^3.0.10", + "tslib": "^2.8.1" + } + }, + "node_modules/which": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", + "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^3.1.1" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/why-is-node-running": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-3.2.1.tgz", + "integrity": "sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==", + "dev": true, + "license": "MIT", + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=20.11" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" + }, + "node_modules/xmlbuilder": { + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", + "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.0" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true, + "license": "ISC" + }, + "node_modules/yargs": { + "version": "17.7.3", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz", + "integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "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, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "4.6.7", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", + "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-to-json-schema": { + "version": "3.25.2", + "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.2.tgz", + "integrity": "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==", + "license": "ISC", + "peerDependencies": { + "zod": "^3.25.28 || ^4" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..6890322 --- /dev/null +++ b/package.json @@ -0,0 +1,60 @@ +{ + "name": "electroscope", + "productName": "Electroscope", + "version": "0.1.0", + "description": "Electronics microscope companion: a live camera viewer for you, on-demand snapshots for AI over MCP.", + "license": "MIT", + "author": "UnlikeOtherAI", + "homepage": "https://github.com/UnlikeOtherAI/Electroscope", + "repository": { + "type": "git", + "url": "git+https://github.com/UnlikeOtherAI/Electroscope.git" + }, + "type": "module", + "main": "dist/main/index.cjs", + "scripts": { + "build": "node scripts/build.mjs", + "start": "npm run build && electron .", + "typecheck": "tsc --noEmit", + "test": "vitest run", + "test:e2e": "npm run build && node scripts/e2e.mjs", + "dist": "npm run build && electron-builder --win --dir", + "dist:installer": "npm run build && electron-builder --win", + "icons": "node scripts/make-icons.mjs" + }, + "build": { + "appId": "ai.unlikeother.electroscope", + "productName": "Electroscope", + "copyright": "Copyright (c) UnlikeOtherAI", + "directories": { "output": "release", "buildResources": "build" }, + "files": ["dist/**/*", "package.json"], + "win": { + "icon": "build/icon.ico", + "target": [{ "target": "nsis", "arch": ["x64"] }, { "target": "portable", "arch": ["x64"] }] + }, + "nsis": { "oneClick": false, "allowToChangeInstallationDirectory": true }, + "mac": { + "icon": "build/icon.png", + "category": "public.app-category.developer-tools", + "target": ["dmg"], + "hardenedRuntime": true, + "entitlements": "build/entitlements.mac.plist", + "entitlementsInherit": "build/entitlements.mac.plist", + "extendInfo": { "NSCameraUsageDescription": "Electroscope shows your microscope camera and shares still frames with your AI assistant when you allow it." } + } + }, + "devDependencies": { + "@types/node": "^26.6.6", + "electron": "^45.2.1", + "electron-builder": "^26.18.0", + "esbuild": "^0.28.2", + "playwright-core": "^1.64.1", + "sharp": "^0.35.5", + "typescript": "^7.0.2", + "vitest": "^5.0.5" + }, + "dependencies": { + "@modelcontextprotocol/sdk": "^1.32.2", + "zod": "^4.6.7" + } +} diff --git a/scripts/build.mjs b/scripts/build.mjs new file mode 100644 index 0000000..f3d8941 --- /dev/null +++ b/scripts/build.mjs @@ -0,0 +1,47 @@ +import { build } from 'esbuild'; +import { cp, mkdir, rm } from 'node:fs/promises'; +import { dirname, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const root = resolve(dirname(fileURLToPath(import.meta.url)), '..'); +const out = resolve(root, 'dist'); +const watch = process.argv.includes('--check'); + +await rm(out, { recursive: true, force: true }); +await mkdir(resolve(out, 'renderer'), { recursive: true }); + +const common = { bundle: true, sourcemap: true, logLevel: 'info', absWorkingDir: root }; + +await Promise.all([ + build({ + ...common, + entryPoints: ['src/main/index.ts'], + outfile: 'dist/main/index.cjs', + platform: 'node', + format: 'cjs', + target: 'node24', + external: ['electron'], + }), + build({ + ...common, + entryPoints: ['src/preload/index.ts'], + outfile: 'dist/preload/index.cjs', + platform: 'node', + format: 'cjs', + target: 'node24', + external: ['electron'], + }), + build({ + ...common, + entryPoints: ['src/renderer/main.ts'], + outfile: 'dist/renderer/main.js', + platform: 'browser', + format: 'iife', + target: 'chrome140', + }), +]); + +await cp(resolve(root, 'src/renderer/index.html'), resolve(out, 'renderer/index.html')); +await cp(resolve(root, 'src/renderer/styles.css'), resolve(out, 'renderer/styles.css')); +await cp(resolve(root, 'build/icon-256.png'), resolve(out, 'icon.png')); +if (watch) console.log('build ok'); diff --git a/scripts/e2e.mjs b/scripts/e2e.mjs new file mode 100644 index 0000000..7ae8ca1 --- /dev/null +++ b/scripts/e2e.mjs @@ -0,0 +1,247 @@ +// End-to-end check: launch the built app, then drive it exactly as Claude would, over MCP. +// node scripts/e2e.mjs real camera +// node scripts/e2e.mjs --fake Chromium's synthetic camera (CI) +import { _electron as electron } from 'playwright-core'; +import { Client } from '@modelcontextprotocol/sdk/client/index.js'; +import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js'; +import { mkdir, mkdtemp, writeFile } from 'node:fs/promises'; +import { tmpdir } from 'node:os'; +import { dirname, join, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import assert from 'node:assert/strict'; +import electronPath from 'electron'; + +const root = resolve(dirname(fileURLToPath(import.meta.url)), '..'); +const fake = process.argv.includes('--fake'); +const outDir = join(root, 'test-output', fake ? 'fake' : 'real'); +await mkdir(outDir, { recursive: true }); +const userData = await mkdtemp(join(tmpdir(), 'electroscope-e2e-')); + +const results = []; +const step = async (name, fn) => { + try { + const v = await fn(); + results.push({ name, ok: true }); + console.log(` ok ${name}`); + return v; + } catch (e) { + results.push({ name, ok: false, error: e.message }); + console.log(` FAIL ${name}\n ${e.message}`); + return undefined; + } +}; + +const app = await electron.launch({ + // ELECTROSCOPE_EXE tests a packaged build (npm run dist) instead of the source tree. + executablePath: process.env.ELECTROSCOPE_EXE ?? electronPath, + args: process.env.ELECTROSCOPE_EXE ? [] : [root], + env: { + ...process.env, + ELECTROSCOPE_USER_DATA: userData, + ELECTROSCOPE_PORT: '0', + ...(fake ? { ELECTROSCOPE_FAKE_CAMERA: '1' } : {}), + }, +}); +process.on('uncaughtException', async (e) => { + console.error(e); + await app.close().catch(() => undefined); + process.exit(1); +}); +const page = await app.firstWindow(); +page.on('console', (m) => m.type() === 'error' && console.log(' [renderer error]', m.text())); +await page.setViewportSize({ width: 1420, height: 900 }).catch(() => undefined); + +await step('window shows a live camera', async () => { + await page.waitForFunction(() => document.getElementById('video')?.videoWidth > 0, null, { timeout: 30000 }); + const info = await page.evaluate(() => ({ + w: document.getElementById('video').videoWidth, + h: document.getElementById('video').videoHeight, + cam: document.getElementById('hud-cam').textContent, + })); + console.log(` ${info.cam} ${info.w}x${info.h}`); + assert.ok(info.w > 0 && info.h > 0); +}); +await page.waitForTimeout(1500); +await page.screenshot({ path: join(outDir, 'app-window.png') }); + +const endpoint = await page.evaluate(() => document.getElementById('endpoint').textContent); +console.log(` MCP endpoint ${endpoint}`); + +const client = new Client({ name: 'electroscope-e2e', version: '1.0.0' }); +await client.connect(new StreamableHTTPClientTransport(new URL(endpoint))); + +const text = (r) => r.content.find((c) => c.type === 'text')?.text ?? ''; +const images = (r) => r.content.filter((c) => c.type === 'image'); +const save = async (name, img) => { + const ext = img.mimeType === 'image/png' ? 'png' : 'jpg'; + const file = join(outDir, `${name}.${ext}`); + await writeFile(file, Buffer.from(img.data, 'base64')); + return file; +}; + +await step('tools are listed', async () => { + const { tools } = await client.listTools(); + const names = tools.map((t) => t.name).sort(); + console.log(` ${names.join(', ')}`); + for (const n of ['capture_snapshot', 'capture_sequence', 'get_status', 'list_cameras', 'select_camera', 'set_camera_controls', 'set_orientation', 'get_shared_frames']) { + assert.ok(names.includes(n), `missing ${n}`); + } +}); + +const status = await step('get_status', async () => { + const s = JSON.parse(text(await client.callTool({ name: 'get_status', arguments: {} }))); + console.log(` ${s.active_camera} ${s.resolution} @ ${s.fps}fps, controls: ${s.controls.map((c) => c.name).join(', ') || 'none'}`); + assert.ok(s.active_camera); + assert.equal(s.claude_access, true); + return s; +}); + +await step('list_cameras', async () => { + const r = JSON.parse(text(await client.callTool({ name: 'list_cameras', arguments: {} }))); + assert.ok(r.cameras.length >= 1); + assert.equal(r.cameras.filter((c) => c.active).length, 1); +}); + +await step('capture_snapshot returns a real image', async () => { + const r = await client.callTool({ name: 'capture_snapshot', arguments: {} }); + assert.ok(!r.isError, text(r)); + const [img] = images(r); + assert.ok(img && img.mimeType === 'image/jpeg'); + const bytes = Buffer.from(img.data, 'base64'); + assert.ok(bytes.length > 2000, `tiny image: ${bytes.length}`); + assert.equal(bytes[0], 0xff); // JPEG magic + const meta = JSON.parse(text(r)); + console.log(` ${meta.width}x${meta.height} of ${meta.source_resolution}, focus ${meta.focus_score}, brightness ${meta.brightness}`); + await save('snapshot', img); + assert.ok(meta.saved_to); +}); + +await step('capture_snapshot region is a full-res close-up', async () => { + const r = await client.callTool({ + name: 'capture_snapshot', + arguments: { region: { x: 0.25, y: 0.25, width: 0.5, height: 0.5 }, max_width: 3000, format: 'png' }, + }); + assert.ok(!r.isError, text(r)); + const meta = JSON.parse(text(r)); + const [img] = images(r); + assert.equal(img.mimeType, 'image/png'); + const [sw] = meta.source_resolution.split('x').map(Number); + assert.ok(Math.abs(meta.width - sw / 2) <= 2, `crop should keep source pixels, got ${meta.width} for ${sw}`); + await save('region', img); +}); + +await step('capture_snapshot with max_width scales down', async () => { + const r = await client.callTool({ name: 'capture_snapshot', arguments: { max_width: 320 } }); + const meta = JSON.parse(text(r)); + assert.ok(Math.max(meta.width, meta.height) <= 320); + await save('small', images(r)[0]); +}); + +await step('capture_sequence returns N frames', async () => { + const r = await client.callTool({ name: 'capture_sequence', arguments: { count: 3, interval_ms: 300, max_width: 480 } }); + assert.ok(!r.isError, text(r)); + assert.equal(images(r).length, 3); + const frames = JSON.parse(text(r)).frames; + assert.equal(frames.length, 3); + assert.ok(frames[2].t_ms >= 550); + for (let i = 0; i < 3; i++) await save(`sequence-${i + 1}`, images(r)[i]); +}); + +await step('set_orientation rotates what Claude receives', async () => { + const before = JSON.parse(text(await client.callTool({ name: 'capture_snapshot', arguments: { max_width: 640 } }))); + const r = await client.callTool({ name: 'set_orientation', arguments: { rotation: 90 } }); + assert.ok(!r.isError, text(r)); + const after = await client.callTool({ name: 'capture_snapshot', arguments: { max_width: 640 } }); + const meta = JSON.parse(text(after)); + assert.equal(meta.orientation.rotation, 90); + assert.ok(meta.height > meta.width, `rotated frame should be portrait, got ${meta.width}x${meta.height}`); + assert.ok(before.width > before.height); + await save('rotated', images(after)[0]); + await page.waitForTimeout(400); + await page.screenshot({ path: join(outDir, 'app-rotated.png') }); + await client.callTool({ name: 'set_orientation', arguments: { rotation: 0, mirror: false } }); +}); + +await step('set_camera_controls rejects unknown controls clearly', async () => { + const r = await client.callTool({ name: 'set_camera_controls', arguments: { controls: { warpDrive: 9 } } }); + assert.ok(r.isError); + assert.match(text(r), /Not supported/); +}); + +if (status?.controls?.length) { + await step('set_camera_controls changes a supported control', async () => { + const c = status.controls.find((x) => x.range); + if (!c) return; + const target = c.range.min + (c.range.max - c.range.min) / 2; + const r = await client.callTool({ name: 'set_camera_controls', arguments: { controls: { [c.name]: target } } }); + console.log(` ${c.name} -> ${target}: ${text(r).slice(0, 120).replace(/\s+/g, ' ')}`); + }); +} + +await step('follow_user_view captures the zoomed area', async () => { + await page.evaluate(() => document.getElementById('tb-zoom-in').click()); + await page.evaluate(() => document.getElementById('tb-zoom-in').click()); + await page.waitForTimeout(300); + const r = await client.callTool({ name: 'capture_snapshot', arguments: { follow_user_view: true, max_width: 2000 } }); + assert.ok(!r.isError, text(r)); + const meta = JSON.parse(text(r)); + assert.ok(meta.region && meta.region.width < 0.6, `expected a crop, got ${JSON.stringify(meta.region)}`); + await save('user-view', images(r)[0]); + await page.screenshot({ path: join(outDir, 'app-zoomed.png') }); + await page.evaluate(() => document.getElementById('tb-zoom-reset').click()); +}); + +await step('human shares a frame and Claude receives it with the note', async () => { + await page.evaluate(() => document.getElementById('tb-share').click()); + await page.waitForSelector('#share-dialog[open]'); + await page.fill('#share-note', 'U3 gets hot right after power-on'); + await page.screenshot({ path: join(outDir, 'app-share-dialog.png') }); + await page.click('#share-form button[value="ok"]'); + await page.waitForTimeout(500); + const r = await client.callTool({ name: 'get_shared_frames', arguments: { clear: true } }); + assert.equal(images(r).length, 1); + assert.match(text(r), /U3 gets hot/); + const again = await client.callTool({ name: 'get_shared_frames', arguments: {} }); + assert.match(text(again), /not shared any/); +}); + +await step('activity strip shows what Claude captured', async () => { + const n = await page.evaluate(() => document.querySelectorAll('#activity-strip .shot').length); + assert.ok(n >= 6, `expected thumbnails, got ${n}`); + await page.screenshot({ path: join(outDir, 'app-activity.png') }); +}); + +await step('pausing access blocks capture with a helpful message', async () => { + await page.evaluate(() => document.getElementById('claude-pill').click()); + await page.waitForTimeout(300); + const r = await client.callTool({ name: 'capture_snapshot', arguments: {} }); + assert.ok(r.isError); + assert.match(text(r), /paused/i); + await page.screenshot({ path: join(outDir, 'app-paused.png') }); + await page.evaluate(() => document.getElementById('claude-pill').click()); + await page.waitForTimeout(300); + const ok = await client.callTool({ name: 'capture_snapshot', arguments: { max_width: 320 } }); + assert.ok(!ok.isError); +}); + +await step('requests from a foreign Origin or Host are refused', async () => { + const bad = await fetch(endpoint, { method: 'POST', headers: { 'content-type': 'application/json', origin: 'https://evil.example' }, body: '{}' }); + assert.equal(bad.status, 403); + const badHost = await new Promise((res) => { + import('node:http').then(({ request }) => { + const url = new URL(endpoint); + const req = request({ host: '127.0.0.1', port: url.port, path: '/mcp', method: 'POST', headers: { host: 'evil.example', 'content-type': 'application/json' } }, (r) => res(r.statusCode)); + req.end('{}'); + }); + }); + assert.equal(badHost, 403); +}); + +await client.close(); +await page.waitForTimeout(300); +await page.screenshot({ path: join(outDir, 'app-final.png') }); +await app.close(); + +const failed = results.filter((r) => !r.ok); +console.log(`\n${results.length - failed.length}/${results.length} passed. Output: ${outDir}`); +process.exit(failed.length ? 1 : 0); diff --git a/scripts/make-icons.mjs b/scripts/make-icons.mjs new file mode 100644 index 0000000..4096dbb --- /dev/null +++ b/scripts/make-icons.mjs @@ -0,0 +1,46 @@ +// Renders build/icon.svg to PNGs and a multi-size Windows .ico (PNG-compressed entries). +import sharp from 'sharp'; +import { readFile, writeFile } from 'node:fs/promises'; +import { dirname, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const root = resolve(dirname(fileURLToPath(import.meta.url)), '..'); +const svg = await readFile(resolve(root, 'build/icon.svg')); + +const png = (size) => sharp(svg, { density: 384 }).resize(size, size).png({ compressionLevel: 9 }).toBuffer(); + +await writeFile(resolve(root, 'build/icon.png'), await png(1024)); +await writeFile(resolve(root, 'build/icon-256.png'), await png(256)); + +const sizes = [16, 24, 32, 48, 64, 128, 256]; +const images = await Promise.all(sizes.map(png)); +const header = Buffer.alloc(6); +header.writeUInt16LE(1, 2); // type: icon +header.writeUInt16LE(sizes.length, 4); +let offset = 6 + 16 * sizes.length; +const entries = images.map((img, i) => { + const e = Buffer.alloc(16); + const s = sizes[i]; + e.writeUInt8(s === 256 ? 0 : s, 0); + e.writeUInt8(s === 256 ? 0 : s, 1); + e.writeUInt16LE(1, 4); // planes + e.writeUInt16LE(32, 6); // bits per pixel + e.writeUInt32LE(img.length, 8); + e.writeUInt32LE(offset, 12); + offset += img.length; + return e; +}); +await writeFile(resolve(root, 'build/icon.ico'), Buffer.concat([header, ...entries, ...images])); + +// A contact sheet to eyeball small sizes. +const tiles = await Promise.all([16, 32, 48, 64, 128, 256].map(async (s) => ({ s, b: await png(s) }))); +const W = tiles.reduce((a, t) => a + t.s + 24, 24); +const sheet = sharp({ create: { width: W, height: 300, channels: 4, background: '#e9edf2' } }); +let x = 24; +const comps = tiles.map((t) => { + const c = { input: t.b, left: x, top: 20 }; + x += t.s + 24; + return c; +}); +await sheet.composite(comps).png().toFile(resolve(root, 'test-output/icon-sizes.png')); +console.log('icons written'); diff --git a/src/main/bridge.ts b/src/main/bridge.ts new file mode 100644 index 0000000..188c872 --- /dev/null +++ b/src/main/bridge.ts @@ -0,0 +1,77 @@ +import { randomUUID } from 'node:crypto'; +import type { RendererCommandName, RendererCommands } from '../shared/types.js'; +import type { CameraBackend } from './mcp/tools.js'; + +export interface CommandEnvelope { + id: string; + name: RendererCommandName; + args: unknown; +} + +export interface CommandResult { + id: string; + ok: boolean; + value?: unknown; + error?: string; +} + +interface Pending { + resolve(v: unknown): void; + reject(e: Error): void; + timer: NodeJS.Timeout; +} + +/** + * Request/response over a one-way `send` channel. The renderer owns the camera; + * the main process (MCP) asks it to do things and awaits the reply. + */ +export class RendererBridge implements CameraBackend { + private readonly pending = new Map(); + private ready: Promise; + private markReady!: () => void; + + constructor( + private readonly send: (envelope: CommandEnvelope) => boolean, + private readonly timeoutMs = 20_000, + ) { + this.ready = new Promise((r) => (this.markReady = r)); + } + + rendererReady(): void { + this.markReady(); + } + + handleResult(msg: CommandResult): void { + const p = this.pending.get(msg.id); + if (!p) return; + this.pending.delete(msg.id); + clearTimeout(p.timer); + if (msg.ok) p.resolve(msg.value); + else p.reject(new Error(msg.error ?? 'Renderer command failed')); + } + + async call( + name: K, + args: Parameters[0], + ): Promise> { + await Promise.race([ + this.ready, + new Promise((_, rej) => + setTimeout(() => rej(new Error('Electroscope window is not ready yet')), this.timeoutMs), + ), + ]); + const id = randomUUID(); + return new Promise((resolve, reject) => { + const timer = setTimeout(() => { + this.pending.delete(id); + reject(new Error(`Camera did not respond to "${name}" in ${this.timeoutMs / 1000}s`)); + }, this.timeoutMs); + this.pending.set(id, { resolve: resolve as (v: unknown) => void, reject, timer }); + if (!this.send({ id, name, args })) { + this.pending.delete(id); + clearTimeout(timer); + reject(new Error('Electroscope window is closed')); + } + }); + } +} diff --git a/src/main/captures.ts b/src/main/captures.ts new file mode 100644 index 0000000..43b57f0 --- /dev/null +++ b/src/main/captures.ts @@ -0,0 +1,39 @@ +import { mkdir, readdir, readFile, stat, unlink, writeFile } from 'node:fs/promises'; +import { join } from 'node:path'; + +/** Saves frames to a folder and keeps only the newest `maxFiles`. */ +export class CaptureStore { + private counter = 0; + + constructor( + readonly dir: string, + private readonly maxFiles = 200, + ) {} + + async save(data: Uint8Array, mimeType: string, label: string): Promise { + await mkdir(this.dir, { recursive: true }); + const ext = mimeType === 'image/png' ? 'png' : 'jpg'; + const stamp = new Date().toISOString().replace(/[:.]/g, '-'); + const safe = label.replace(/[^a-z0-9-]+/gi, '-').replace(/^-+|-+$/g, '').toLowerCase() || 'frame'; + const file = join(this.dir, `${stamp}-${String(this.counter++ % 1000).padStart(3, '0')}-${safe}.${ext}`); + await writeFile(file, data); + void this.prune().catch(() => undefined); + return file; + } + + async read(path: string): Promise { + return new Uint8Array(await readFile(path)); + } + + private async prune(): Promise { + const names = await readdir(this.dir); + if (names.length <= this.maxFiles) return; + const withTimes = await Promise.all( + names.map(async (n) => ({ n, t: (await stat(join(this.dir, n))).mtimeMs })), + ); + withTimes.sort((a, b) => a.t - b.t); + for (const { n } of withTimes.slice(0, names.length - this.maxFiles)) { + await unlink(join(this.dir, n)).catch(() => undefined); + } + } +} diff --git a/src/main/hub.ts b/src/main/hub.ts new file mode 100644 index 0000000..1b155aa --- /dev/null +++ b/src/main/hub.ts @@ -0,0 +1,96 @@ +import { randomUUID } from 'node:crypto'; +import type { ActivityEntry, CaptureResult, SharedFrame } from '../shared/types.js'; +import type { CaptureStore } from './captures.js'; +import type { AppFacade } from './mcp/tools.js'; + +export interface HubEvents { + activityAdded(entry: ActivityEntry): void; + claudeCapturing(tool: string): void; +} + +const MAX_ACTIVITY = 60; + +/** App-side state the MCP tools rely on: access switch, activity log, frames shared by the human. */ +export class AppHub implements AppFacade { + private activity: ActivityEntry[] = []; + private shared: SharedFrame[] = []; + + constructor( + private readonly access: () => boolean, + private readonly claudeStore: CaptureStore, + private readonly sharedStore: CaptureStore, + private readonly events: HubEvents, + ) {} + + claudeAccess(): boolean { + return this.access(); + } + + announceCapture(tool: string): void { + this.events.claudeCapturing(tool); + } + + async recordCapture(result: CaptureResult, tool: string, source: 'claude' | 'user'): Promise { + const path = await this.claudeStore.save(result.data, result.mimeType, tool); + const entry = this.toEntry(result, tool, source, path); + this.push(entry); + return entry; + } + + /** The human pinned a frame for Claude. */ + async addShared(result: CaptureResult, note: string): Promise { + const path = await this.sharedStore.save(result.data, result.mimeType, 'shared'); + const entry: SharedFrame = { ...this.toEntry(result, 'share', 'user', path), note }; + this.shared.push(entry); + this.push(entry); + return entry; + } + + async sharedFrames() { + return Promise.all( + this.shared.map(async (entry) => ({ + entry, + data: await this.sharedStore.read(entry.path), + mimeType: entry.path.endsWith('.png') ? 'image/png' : 'image/jpeg', + })), + ); + } + + async clearShared(): Promise { + this.shared = []; + } + + sharedCount(): number { + return this.shared.length; + } + + listActivity(): ActivityEntry[] { + return [...this.activity]; + } + + clearActivity(): void { + this.activity = []; + } + + private push(entry: ActivityEntry): void { + this.activity.push(entry); + if (this.activity.length > MAX_ACTIVITY) this.activity.shift(); + this.events.activityAdded(entry); + } + + private toEntry(result: CaptureResult, tool: string, source: 'claude' | 'user', path: string): ActivityEntry { + return { + id: randomUUID(), + at: result.capturedAt, + source, + tool, + cameraLabel: result.camera.label, + width: result.width, + height: result.height, + bytes: result.data.byteLength, + path, + thumbnail: result.thumbnail, + region: result.region, + }; + } +} diff --git a/src/main/index.ts b/src/main/index.ts new file mode 100644 index 0000000..6cebf5f --- /dev/null +++ b/src/main/index.ts @@ -0,0 +1,201 @@ +import { join } from 'node:path'; +import { app, BrowserWindow, ipcMain, nativeTheme, session, shell } from 'electron'; +import { IPC } from '../shared/ipc.js'; +import type { CaptureResult, ServerInfo, Settings } from '../shared/types.js'; +import { RendererBridge, type CommandResult } from './bridge.js'; +import { CaptureStore } from './captures.js'; +import { AppHub } from './hub.js'; +import { startMcpHttp, type McpHttp } from './mcp/http.js'; +import { createMcpServer } from './mcp/tools.js'; +import { SettingsStore } from './store.js'; + +const isMac = process.platform === 'darwin'; +const useFakeCamera = process.env['ELECTROSCOPE_FAKE_CAMERA'] === '1'; + +// Frames must keep flowing while the human works in another window (a terminal, a schematic). +app.commandLine.appendSwitch('disable-renderer-backgrounding'); +app.commandLine.appendSwitch('disable-background-timer-throttling'); +app.commandLine.appendSwitch('disable-backgrounding-occluded-windows'); +if (useFakeCamera) { + app.commandLine.appendSwitch('use-fake-device-for-media-stream'); + app.commandLine.appendSwitch('use-fake-ui-for-media-stream'); +} +if (process.env['ELECTROSCOPE_USER_DATA']) { + app.setPath('userData', process.env['ELECTROSCOPE_USER_DATA']); +} + +let win: BrowserWindow | null = null; +let store: SettingsStore; +let hub: AppHub; +let http: McpHttp | null = null; +let serverInfo: ServerInfo = { running: false, port: 0, url: '', clients: [] }; + +const bridge = new RendererBridge((envelope) => { + if (!win || win.isDestroyed()) return false; + win.webContents.send(IPC.command, envelope); + return true; +}); + +function toRenderer(channel: string, payload?: unknown): void { + if (win && !win.isDestroyed()) win.webContents.send(channel, payload); +} + +function publishServerInfo(patch: Partial = {}): void { + serverInfo = { ...serverInfo, ...patch }; + toRenderer(IPC.serverInfo, serverInfo); +} + +async function startServer(preferredPort: number): Promise { + if (http) { + await http.close(); + http = null; + } + const version = app.getVersion(); + let lastError = ''; + const attempts = preferredPort === 0 ? 1 : 10; + for (let port = preferredPort; port < preferredPort + attempts; port++) { + try { + http = await startMcpHttp({ + port, + version, + createServer: () => createMcpServer(bridge, hub, version), + onClientsChanged: (clients) => publishServerInfo({ clients }), + }); + publishServerInfo({ running: true, port: http.port, url: http.url, clients: [], error: '' }); + return; + } catch (e) { + lastError = (e as Error).message; + } + } + publishServerInfo({ running: false, port: preferredPort, url: '', error: lastError }); +} + +async function patchSettings(patch: Partial): Promise { + const before = store.get(); + const next = await store.patch(patch); + if (patch.theme) nativeTheme.themeSource = next.theme; + if (patch.port !== undefined && patch.port !== before.port) await startServer(next.port); + toRenderer(IPC.settingsChanged, next); + return next; +} + +function createWindow(): void { + win = new BrowserWindow({ + width: 1420, + height: 900, + minWidth: 980, + minHeight: 620, + show: false, + title: 'Electroscope', + icon: join(__dirname, '../icon.png'), + backgroundColor: '#00000000', + ...(isMac + ? { titleBarStyle: 'hiddenInset' as const, vibrancy: 'under-window' as const, trafficLightPosition: { x: 16, y: 14 } } + : { + backgroundMaterial: 'mica' as const, + titleBarStyle: 'hidden' as const, + titleBarOverlay: { color: '#00000000', symbolColor: '#ffffff', height: 44 }, + }), + webPreferences: { + preload: join(__dirname, '../preload/index.cjs'), + contextIsolation: true, + nodeIntegration: false, + sandbox: true, + backgroundThrottling: false, + }, + }); + + const updateOverlay = () => { + if (isMac || !win || win.isDestroyed()) return; + win.setTitleBarOverlay({ + color: '#00000000', + symbolColor: nativeTheme.shouldUseDarkColors ? '#ffffff' : '#1b1b1b', + height: 44, + }); + }; + nativeTheme.on('updated', updateOverlay); + + win.once('ready-to-show', () => { + updateOverlay(); + win?.show(); + }); + win.webContents.setWindowOpenHandler(({ url }) => { + if (url.startsWith('https://')) void shell.openExternal(url); + return { action: 'deny' }; + }); + win.webContents.on('will-navigate', (e) => e.preventDefault()); + win.on('closed', () => { + win = null; + }); + void win.loadFile(join(__dirname, '../renderer/index.html')); +} + +function registerIpc(): void { + ipcMain.handle(IPC.getSettings, () => store.get()); + ipcMain.handle(IPC.patchSettings, (_e, patch: Partial) => patchSettings(patch)); + ipcMain.handle(IPC.getServerInfo, () => serverInfo); + ipcMain.handle(IPC.getActivity, () => hub.listActivity()); + ipcMain.handle(IPC.clearActivity, () => hub.clearActivity()); + ipcMain.handle(IPC.getShared, () => hub.sharedCount()); + ipcMain.handle(IPC.shareFrame, async (_e, result: CaptureResult, note: string) => { + const entry = await hub.addShared(result, note); + return { path: entry.path, count: hub.sharedCount() }; + }); + ipcMain.handle(IPC.saveCapture, async (_e, data: Uint8Array, mimeType: string) => { + const store = new CaptureStore(join(app.getPath('pictures'), 'Electroscope'), 100_000); + return store.save(data, mimeType, 'capture'); + }); + ipcMain.handle(IPC.openCaptures, async () => { + await shell.openPath(join(app.getPath('pictures'), 'Electroscope')); + }); + ipcMain.handle(IPC.revealFile, (_e, path: string) => { + shell.showItemInFolder(path); + }); + ipcMain.on(IPC.rendererReady, () => bridge.rendererReady()); + ipcMain.on(IPC.commandResult, (_e, msg: CommandResult) => bridge.handleResult(msg)); +} + +if (!app.requestSingleInstanceLock()) { + app.quit(); +} else { + app.on('second-instance', () => { + if (win) { + if (win.isMinimized()) win.restore(); + win.focus(); + } + }); + + void app.whenReady().then(async () => { + app.setAppUserModelId('ai.unlikeother.electroscope'); + store = SettingsStore.at(app.getPath('userData')); + const settings = await store.load(); + nativeTheme.themeSource = settings.theme; + + hub = new AppHub( + () => store.get().claudeAccess, + new CaptureStore(join(app.getPath('userData'), 'captures'), 200), + new CaptureStore(join(app.getPath('userData'), 'shared'), 200), + { + activityAdded: (entry) => toRenderer(IPC.activityAdded, entry), + claudeCapturing: (tool) => toRenderer(IPC.claudeCapturing, tool), + }, + ); + + // Only our own bundled page may use the camera. + session.defaultSession.setPermissionRequestHandler((wc, permission, callback) => { + callback(permission === 'media' && wc === win?.webContents); + }); + session.defaultSession.setPermissionCheckHandler((wc, permission) => { + return permission === 'media' && (!wc || wc === win?.webContents); + }); + + registerIpc(); + await startServer(process.env['ELECTROSCOPE_PORT'] ? Number(process.env['ELECTROSCOPE_PORT']) : settings.port); + createWindow(); + }); + + app.on('window-all-closed', () => app.quit()); + app.on('before-quit', () => { + void http?.close(); + }); +} diff --git a/src/main/mcp/http.ts b/src/main/mcp/http.ts new file mode 100644 index 0000000..e7214a3 --- /dev/null +++ b/src/main/mcp/http.ts @@ -0,0 +1,202 @@ +import { createServer, type IncomingMessage, type Server, type ServerResponse } from 'node:http'; +import { randomUUID } from 'node:crypto'; +import type { AddressInfo } from 'node:net'; +import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; +import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js'; +import { isInitializeRequest } from '@modelcontextprotocol/sdk/types.js'; +import type { ClientInfo } from '../../shared/types.js'; + +export interface McpHttpOptions { + port: number; + host?: string; + version: string; + createServer: () => McpServer; + onClientsChanged?: (clients: ClientInfo[]) => void; + /** Sessions idle for longer than this are dropped. */ + sessionTtlMs?: number; +} + +interface Session { + transport: StreamableHTTPServerTransport; + server: McpServer; + info: ClientInfo; +} + +export interface McpHttp { + port: number; + url: string; + clients(): ClientInfo[]; + close(): Promise; +} + +const MAX_BODY = 1_000_000; + +/** Loopback only: reject anything whose Host or Origin is not localhost (DNS-rebinding protection). */ +function isLocalHost(value: string | undefined): boolean { + if (!value) return false; + const host = value.replace(/:\d+$/, '').replace(/^\[|\]$/g, '').toLowerCase(); + return host === '127.0.0.1' || host === 'localhost' || host === '::1'; +} + +function isAllowedOrigin(origin: string | undefined): boolean { + if (!origin) return true; // non-browser clients send none + try { + return isLocalHost(new URL(origin).host); + } catch { + return false; + } +} + +function readBody(req: IncomingMessage): Promise { + return new Promise((resolve, reject) => { + let size = 0; + const chunks: Buffer[] = []; + req.on('data', (c: Buffer) => { + size += c.length; + if (size > MAX_BODY) { + reject(new Error('Request body too large')); + req.destroy(); + return; + } + chunks.push(c); + }); + req.on('end', () => { + if (chunks.length === 0) return resolve(undefined); + try { + resolve(JSON.parse(Buffer.concat(chunks).toString('utf8'))); + } catch { + reject(new SyntaxError('Invalid JSON')); + } + }); + req.on('error', reject); + }); +} + +function sendJson(res: ServerResponse, status: number, body: unknown): void { + if (res.headersSent) return; + res.writeHead(status, { 'content-type': 'application/json' }); + res.end(JSON.stringify(body)); +} + +function rpcError(res: ServerResponse, status: number, code: number, message: string): void { + sendJson(res, status, { jsonrpc: '2.0', error: { code, message }, id: null }); +} + +export async function startMcpHttp(opts: McpHttpOptions): Promise { + const host = opts.host ?? '127.0.0.1'; + const ttl = opts.sessionTtlMs ?? 30 * 60_000; + const sessions = new Map(); + + const emit = () => opts.onClientsChanged?.([...sessions.values()].map((s) => s.info)); + + const drop = (id: string) => { + const s = sessions.get(id); + if (!s) return; + sessions.delete(id); + void s.server.close().catch(() => undefined); + emit(); + }; + + const sweeper = setInterval(() => { + const cutoff = Date.now() - ttl; + for (const [id, s] of sessions) if (Date.parse(s.info.lastSeen) < cutoff) drop(id); + }, 60_000); + sweeper.unref(); + + const handle = async (req: IncomingMessage, res: ServerResponse): Promise => { + if (!isLocalHost(req.headers.host) || !isAllowedOrigin(req.headers.origin)) { + return rpcError(res, 403, -32000, 'Forbidden: Electroscope only accepts local connections'); + } + const url = new URL(req.url ?? '/', `http://${host}`); + + if (url.pathname === '/health') { + return sendJson(res, 200, { name: 'electroscope', version: opts.version, ok: true, clients: sessions.size }); + } + if (url.pathname !== '/mcp') { + return sendJson(res, 404, { error: 'Not found. The MCP endpoint is /mcp' }); + } + + const sessionId = req.headers['mcp-session-id']; + const sid = Array.isArray(sessionId) ? sessionId[0] : sessionId; + + if (req.method === 'POST') { + let body: unknown; + try { + body = await readBody(req); + } catch (e) { + return rpcError(res, 400, -32700, (e as Error).message); + } + let session = sid ? sessions.get(sid) : undefined; + if (!session) { + if (sid || !isInitializeRequest(body)) { + return rpcError(res, sid ? 404 : 400, -32000, sid ? 'Unknown session' : 'No session: send initialize first'); + } + const params = (body as { params?: { clientInfo?: { name?: string; version?: string } } }).params; + const now = new Date().toISOString(); + const info: ClientInfo = { + id: '', + name: params?.clientInfo?.name ?? 'unknown client', + version: params?.clientInfo?.version ?? '', + connectedAt: now, + lastSeen: now, + }; + const server = opts.createServer(); + const transport = new StreamableHTTPServerTransport({ + sessionIdGenerator: () => randomUUID(), + onsessioninitialized: (id) => { + info.id = id; + sessions.set(id, { transport, server, info }); + emit(); + }, + }); + transport.onclose = () => { + if (info.id) drop(info.id); + }; + await server.connect(transport); + session = { transport, server, info }; + } + session.info.lastSeen = new Date().toISOString(); + await session.transport.handleRequest(req, res, body); + return; + } + + if (req.method === 'GET' || req.method === 'DELETE') { + const session = sid ? sessions.get(sid) : undefined; + if (!session) return rpcError(res, sid ? 404 : 400, -32000, 'Unknown or missing session'); + session.info.lastSeen = new Date().toISOString(); + await session.transport.handleRequest(req, res); + if (req.method === 'DELETE' && sid) drop(sid); + return; + } + + res.setHeader('allow', 'GET, POST, DELETE'); + rpcError(res, 405, -32000, 'Method not allowed'); + }; + + const httpServer: Server = createServer((req, res) => { + handle(req, res).catch((err: unknown) => { + rpcError(res, 500, -32603, err instanceof Error ? err.message : 'Internal error'); + }); + }); + + await new Promise((resolve, reject) => { + httpServer.once('error', reject); + httpServer.listen(opts.port, host, () => { + httpServer.off('error', reject); + resolve(); + }); + }); + + const port = (httpServer.address() as AddressInfo).port; + return { + port, + url: `http://127.0.0.1:${port}/mcp`, + clients: () => [...sessions.values()].map((s) => s.info), + close: async () => { + clearInterval(sweeper); + for (const id of [...sessions.keys()]) drop(id); + httpServer.closeAllConnections(); + await new Promise((r) => httpServer.close(() => r())); + }, + }; +} diff --git a/src/main/mcp/tools.ts b/src/main/mcp/tools.ts new file mode 100644 index 0000000..9a9871f --- /dev/null +++ b/src/main/mcp/tools.ts @@ -0,0 +1,350 @@ +import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; +import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js'; +import { z } from 'zod'; +import type { + ActivityEntry, + CameraState, + CaptureRequest, + CaptureResult, + RendererCommandName, + RendererCommands, + SharedFrame, +} from '../../shared/types.js'; + +/** Talks to whatever owns the camera (the renderer in the app, a fake in tests). */ +export interface CameraBackend { + call( + name: K, + args: Parameters[0], + ): Promise>; +} + +/** Everything the tools need from the app besides the camera. */ +export interface AppFacade { + claudeAccess(): boolean; + /** Persist a capture and add it to the activity strip. */ + recordCapture(result: CaptureResult, tool: string, source: 'claude' | 'user'): Promise; + sharedFrames(): Promise>; + clearShared(): Promise; + announceCapture(tool: string): void; +} + +export const SERVER_INSTRUCTIONS = [ + 'Electroscope is a live electronics microscope camera. The human is watching the same camera in the Electroscope window, so do not ask them to stop or switch streams: you receive still frames on demand.', + 'Start with get_status to see the active camera, resolution and controls. Use capture_snapshot to look at the board. Pass region (normalised 0..1) to get a full-resolution close-up of a part of the frame, or follow_user_view to look at exactly what the human has zoomed to.', + 'Check focus_score, brightness and the exposure hints in the capture metadata before trusting fine detail. Use capture_sequence to watch something change (LED blinking, flux smoking, a part heating).', + 'If the human says they shared a frame, call get_shared_frames. The human can pause your access at any time; a paused response means you should ask them to resume it.', +].join('\n'); + +const regionSchema = z + .object({ + x: z.number().min(0).max(1).describe('Left edge, 0..1 of the (oriented) frame width'), + y: z.number().min(0).max(1).describe('Top edge, 0..1 of the frame height'), + width: z.number().min(0.02).max(1).describe('Width, 0..1'), + height: z.number().min(0.02).max(1).describe('Height, 0..1'), + }) + .describe('Crop rectangle in normalised coordinates, taken from the full-resolution frame'); + +const captureShape = { + camera: z.string().optional().describe('Camera id or part of its name. Defaults to the active camera.'), + max_width: z + .number() + .int() + .min(160) + .max(3840) + .optional() + .describe('Longest-edge budget in pixels (default 1280). Larger costs more tokens.'), + format: z.enum(['jpeg', 'png']).optional().describe('Default jpeg. Use png for lossless detail on small crops.'), + quality: z.number().int().min(30).max(100).optional().describe('JPEG quality, default 85.'), + region: regionSchema.optional(), + follow_user_view: z + .boolean() + .optional() + .describe('Capture exactly the area the human has zoomed/panned to in the window. Overrides region.'), +}; + +type CaptureArgs = { + camera?: string | undefined; + max_width?: number | undefined; + format?: 'jpeg' | 'png' | undefined; + quality?: number | undefined; + region?: { x: number; y: number; width: number; height: number } | undefined; + follow_user_view?: boolean | undefined; +}; + +function textResult(value: unknown, isError = false): CallToolResult { + const text = typeof value === 'string' ? value : JSON.stringify(value, null, 2); + return { content: [{ type: 'text', text }], ...(isError ? { isError: true } : {}) }; +} + +function paused(): CallToolResult { + return textResult( + 'The user has paused Claude access in Electroscope. Ask them to switch "Claude access" back on in the app, then try again.', + true, + ); +} + +function round(n: number, digits = 2): number { + const f = 10 ** digits; + return Math.round(n * f) / f; +} + +function hints(r: CaptureResult): string[] { + const out: string[] = []; + if (r.metrics.overexposed > 0.12) { + out.push( + `${Math.round(r.metrics.overexposed * 100)}% of pixels are blown out; reduce exposure/brightness (set_camera_controls) or ask for lighting to be dimmed.`, + ); + } + if (r.metrics.underexposed > 0.4 || r.metrics.brightness < 25) { + out.push('Image is very dark; raise exposure/brightness or add light.'); + } + if (r.metrics.focusScore < 15) { + out.push('Focus score is very low: the image is probably out of focus or the field is featureless.'); + } + return out; +} + +function describeCapture(r: CaptureResult, entry: ActivityEntry, extra: Record = {}) { + return { + ...extra, + camera: r.camera.label, + width: r.width, + height: r.height, + source_resolution: `${r.sourceWidth}x${r.sourceHeight}`, + region: r.region, + orientation: r.orientation, + focus_score: round(r.metrics.focusScore, 1), + brightness: round(r.metrics.brightness, 1), + overexposed_fraction: round(r.metrics.overexposed, 3), + underexposed_fraction: round(r.metrics.underexposed, 3), + captured_at: r.capturedAt, + saved_to: entry.path, + hints: hints(r), + }; +} + +function toRequest(args: CaptureArgs, defaults: { maxWidth: number }): CaptureRequest { + const req: CaptureRequest = { + maxWidth: args.max_width ?? defaults.maxWidth, + format: args.format ?? 'jpeg', + quality: (args.quality ?? 85) / 100, + source: 'claude', + }; + if (args.camera) req.cameraId = args.camera; + if (args.follow_user_view) req.followUserView = true; + else if (args.region) req.region = args.region; + return req; +} + +function summarise(state: CameraState, claudeAccess: boolean) { + return { + claude_access: claudeAccess, + active_camera: state.active?.label ?? null, + cameras: state.cameras.map((c) => ({ id: c.id, label: c.label, active: c.active })), + resolution: state.active ? `${state.width}x${state.height}` : null, + max_resolution: state.maxResolution ? `${state.maxResolution.width}x${state.maxResolution.height}` : null, + fps: state.fps ? round(state.fps, 1) : null, + orientation: state.orientation, + live_focus_score: state.focusScore === null ? null : round(state.focusScore, 1), + controls: state.controls, + }; +} + +export function createMcpServer(backend: CameraBackend, app: AppFacade, version: string): McpServer { + const server = new McpServer( + { name: 'electroscope', title: 'Electroscope', version }, + { instructions: SERVER_INSTRUCTIONS }, + ); + + server.registerTool( + 'get_status', + { + title: 'Get microscope status', + description: + 'Report the active camera, resolution, fps, orientation, live focus score, adjustable camera controls (with ranges) and whether the human currently allows Claude access.', + annotations: { readOnlyHint: true, openWorldHint: false }, + }, + async () => { + const state = await backend.call('getState', undefined); + return textResult(summarise(state, app.claudeAccess())); + }, + ); + + server.registerTool( + 'list_cameras', + { + title: 'List cameras', + description: 'List every camera attached to the computer and which one the app is showing.', + annotations: { readOnlyHint: true, openWorldHint: false }, + }, + async () => { + const state = await backend.call('refreshCameras', undefined); + return textResult({ cameras: state.cameras }); + }, + ); + + server.registerTool( + 'select_camera', + { + title: 'Switch camera', + description: + "Switch the live view (and therefore the human's window) to another camera, optionally at a given resolution.", + inputSchema: { + camera: z.string().describe('Camera id or part of its name'), + width: z.number().int().min(160).max(7680).optional(), + height: z.number().int().min(120).max(4320).optional(), + }, + annotations: { readOnlyHint: false, idempotentHint: true, openWorldHint: false }, + }, + async ({ camera, width, height }) => { + if (!app.claudeAccess()) return paused(); + const args: { cameraId: string; width?: number; height?: number } = { cameraId: camera }; + if (width !== undefined) args.width = width; + if (height !== undefined) args.height = height; + const state = await backend.call('selectCamera', args); + return textResult(summarise(state, true)); + }, + ); + + server.registerTool( + 'set_camera_controls', + { + title: 'Adjust camera controls', + description: + 'Set hardware camera controls such as focusMode ("manual"/"continuous"), focusDistance, zoom, exposureMode, exposureTime, brightness, contrast, sharpness, colorTemperature, torch. Names and ranges come from get_status; the camera decides which it supports. The human sees the change live.', + inputSchema: { + controls: z + .record(z.string(), z.union([z.number(), z.string(), z.boolean()])) + .describe('Map of control name to value, e.g. {"focusMode":"manual","focusDistance":120}'), + }, + annotations: { readOnlyHint: false, idempotentHint: true, openWorldHint: false }, + }, + async ({ controls }) => { + if (!app.claudeAccess()) return paused(); + const out = await backend.call('setControls', { controls }); + const nothingApplied = Object.keys(out.applied).length === 0 && Object.keys(out.rejected).length > 0; + return textResult({ applied: out.applied, rejected: out.rejected, controls: out.state.controls }, nothingApplied); + }, + ); + + server.registerTool( + 'set_orientation', + { + title: 'Rotate or mirror the view', + description: + "Rotate (0/90/180/270 degrees clockwise) and/or mirror the image. Microscopes often flip the image; this changes both the human's view and your captures.", + inputSchema: { + rotation: z.union([z.literal(0), z.literal(90), z.literal(180), z.literal(270)]).optional(), + mirror: z.boolean().optional(), + }, + annotations: { readOnlyHint: false, idempotentHint: true, openWorldHint: false }, + }, + async ({ rotation, mirror }) => { + if (!app.claudeAccess()) return paused(); + const patch: { rotation?: 0 | 90 | 180 | 270; mirror?: boolean } = {}; + if (rotation !== undefined) patch.rotation = rotation; + if (mirror !== undefined) patch.mirror = mirror; + const state = await backend.call('setOrientation', patch); + return textResult({ orientation: state.orientation }); + }, + ); + + server.registerTool( + 'capture_snapshot', + { + title: 'Capture a snapshot', + description: + "Grab one still frame from the microscope without interrupting the human's live view. Returns the image plus metrics (focus_score, brightness, exposure) and hints. Use region for a high-detail close-up, or follow_user_view to see what the human is zoomed in on.", + inputSchema: captureShape, + annotations: { readOnlyHint: true, openWorldHint: false }, + }, + async (args) => { + if (!app.claudeAccess()) return paused(); + app.announceCapture('capture_snapshot'); + const result = await backend.call('capture', toRequest(args, { maxWidth: 1280 })); + const entry = await app.recordCapture(result, 'capture_snapshot', 'claude'); + return { + content: [ + { type: 'image', data: Buffer.from(result.data).toString('base64'), mimeType: result.mimeType }, + { type: 'text', text: JSON.stringify(describeCapture(result, entry), null, 2) }, + ], + }; + }, + ); + + server.registerTool( + 'capture_sequence', + { + title: 'Capture a short sequence', + description: + 'Capture 2-6 frames at a fixed interval to watch something change over time (blinking LED, heating part, smoke). Images are smaller by default (max_width 800).', + inputSchema: { + ...captureShape, + count: z.number().int().min(2).max(6).describe('Number of frames'), + interval_ms: z.number().int().min(100).max(5000).describe('Delay between frames in milliseconds'), + }, + annotations: { readOnlyHint: true, openWorldHint: false }, + }, + async ({ count, interval_ms, ...args }) => { + if (!app.claudeAccess()) return paused(); + app.announceCapture('capture_sequence'); + const content: CallToolResult['content'] = []; + const frames: unknown[] = []; + const started = Date.now(); + for (let i = 0; i < count; i++) { + if (i > 0) await new Promise((r) => setTimeout(r, interval_ms)); + const result = await backend.call('capture', toRequest(args, { maxWidth: 800 })); + const entry = await app.recordCapture(result, 'capture_sequence', 'claude'); + content.push({ type: 'image', data: Buffer.from(result.data).toString('base64'), mimeType: result.mimeType }); + frames.push(describeCapture(result, entry, { index: i + 1, t_ms: Date.now() - started })); + } + content.push({ type: 'text', text: JSON.stringify({ frames }, null, 2) }); + return { content }; + }, + ); + + server.registerTool( + 'get_shared_frames', + { + title: 'Get frames the human shared', + description: + 'Return the frames the human pinned with "Share with Claude" in the app, newest last, with their notes. Optionally clear them afterwards.', + inputSchema: { + clear: z.boolean().optional().describe('Remove the returned frames from the share list'), + }, + annotations: { readOnlyHint: false, openWorldHint: false }, + }, + async ({ clear }) => { + if (!app.claudeAccess()) return paused(); + const frames = await app.sharedFrames(); + if (frames.length === 0) return textResult('The human has not shared any frames.'); + const content: CallToolResult['content'] = []; + for (const f of frames) { + content.push({ type: 'image', data: Buffer.from(f.data).toString('base64'), mimeType: f.mimeType }); + } + content.push({ + type: 'text', + text: JSON.stringify( + { + frames: frames.map((f, i) => ({ + index: i + 1, + note: f.entry.note, + shared_at: f.entry.at, + camera: f.entry.cameraLabel, + width: f.entry.width, + height: f.entry.height, + saved_to: f.entry.path, + })), + }, + null, + 2, + ), + }); + if (clear) await app.clearShared(); + return { content }; + }, + ); + + return server; +} diff --git a/src/main/store.ts b/src/main/store.ts new file mode 100644 index 0000000..e716a89 --- /dev/null +++ b/src/main/store.ts @@ -0,0 +1,42 @@ +import { mkdir, readFile, rename, writeFile } from 'node:fs/promises'; +import { dirname, join } from 'node:path'; +import { DEFAULT_SETTINGS, type Settings } from '../shared/types.js'; + +/** Small JSON settings file with atomic writes. */ +export class SettingsStore { + private current: Settings = { ...DEFAULT_SETTINGS }; + private writing: Promise = Promise.resolve(); + + constructor(private readonly file: string) {} + + static at(dir: string): SettingsStore { + return new SettingsStore(join(dir, 'settings.json')); + } + + async load(): Promise { + try { + const raw = JSON.parse(await readFile(this.file, 'utf8')) as Partial; + this.current = { ...DEFAULT_SETTINGS, ...raw }; + } catch { + this.current = { ...DEFAULT_SETTINGS }; + } + return this.get(); + } + + get(): Settings { + return structuredClone(this.current); + } + + async patch(patch: Partial): Promise { + this.current = { ...this.current, ...patch }; + const snapshot = JSON.stringify(this.current, null, 2); + this.writing = this.writing.then(async () => { + await mkdir(dirname(this.file), { recursive: true }); + const tmp = `${this.file}.tmp`; + await writeFile(tmp, snapshot, 'utf8'); + await rename(tmp, this.file); + }); + await this.writing; + return this.get(); + } +} diff --git a/src/preload/index.ts b/src/preload/index.ts new file mode 100644 index 0000000..ba7bc54 --- /dev/null +++ b/src/preload/index.ts @@ -0,0 +1,37 @@ +import { contextBridge, ipcRenderer, type IpcRendererEvent } from 'electron'; +import { IPC } from '../shared/ipc.js'; +import type { ActivityEntry, CaptureResult, ServerInfo, Settings } from '../shared/types.js'; + +type Unsubscribe = () => void; + +function on(channel: string, cb: (payload: T) => void): Unsubscribe { + const listener = (_e: IpcRendererEvent, payload: T) => cb(payload); + ipcRenderer.on(channel, listener); + return () => ipcRenderer.removeListener(channel, listener); +} + +const api = { + platform: process.platform, + getSettings: (): Promise => ipcRenderer.invoke(IPC.getSettings), + patchSettings: (patch: Partial): Promise => ipcRenderer.invoke(IPC.patchSettings, patch), + getServerInfo: (): Promise => ipcRenderer.invoke(IPC.getServerInfo), + getActivity: (): Promise => ipcRenderer.invoke(IPC.getActivity), + clearActivity: (): Promise => ipcRenderer.invoke(IPC.clearActivity), + shareFrame: (result: CaptureResult, note: string): Promise<{ path: string; count: number }> => + ipcRenderer.invoke(IPC.shareFrame, result, note), + saveCapture: (data: Uint8Array, mimeType: string): Promise => + ipcRenderer.invoke(IPC.saveCapture, data, mimeType), + openCaptures: (): Promise => ipcRenderer.invoke(IPC.openCaptures), + revealFile: (path: string): Promise => ipcRenderer.invoke(IPC.revealFile, path), + ready: (): void => ipcRenderer.send(IPC.rendererReady), + sendCommandResult: (msg: unknown): void => ipcRenderer.send(IPC.commandResult, msg), + onCommand: (cb: (envelope: { id: string; name: string; args: unknown }) => void) => on(IPC.command, cb), + onServerInfo: (cb: (info: ServerInfo) => void) => on(IPC.serverInfo, cb), + onActivity: (cb: (entry: ActivityEntry) => void) => on(IPC.activityAdded, cb), + onSettings: (cb: (s: Settings) => void) => on(IPC.settingsChanged, cb), + onClaudeCapturing: (cb: (tool: string) => void) => on(IPC.claudeCapturing, cb), +}; + +export type ElectroscopeApi = typeof api; + +contextBridge.exposeInMainWorld('electroscope', api); diff --git a/src/renderer/camera.ts b/src/renderer/camera.ts new file mode 100644 index 0000000..aca998d --- /dev/null +++ b/src/renderer/camera.ts @@ -0,0 +1,403 @@ +import type { CameraControl, CameraInfo, CameraState, Orientation } from '../shared/types.js'; +import { computeMetrics } from './frames.js'; + +const NUMERIC = [ + 'zoom', + 'focusDistance', + 'exposureTime', + 'exposureCompensation', + 'brightness', + 'contrast', + 'saturation', + 'sharpness', + 'colorTemperature', + 'iso', + 'pan', + 'tilt', +] as const; +const MODES = ['focusMode', 'exposureMode', 'whiteBalanceMode'] as const; +const TOGGLES = ['torch'] as const; + +/** A mode must be set before the value it governs. */ +const MODE_FOR: Record = { + focusDistance: { mode: 'focusMode', value: 'manual' }, + exposureTime: { mode: 'exposureMode', value: 'manual' }, + colorTemperature: { mode: 'whiteBalanceMode', value: 'manual' }, +}; + +const PREFERRED_SIZE = { width: 1920, height: 1080 }; + +type Caps = Record; + +export const DEFAULT_ORIENTATION: Orientation = { rotation: 0, mirror: false }; + +export class CameraSession extends EventTarget { + readonly video: HTMLVideoElement; + cameras: Array<{ id: string; label: string }> = []; + activeId: string | null = null; + width = 0; + height = 0; + fps = 0; + focusScore: number | null = null; + controls: CameraControl[] = []; + maxResolution: { width: number; height: number } | null = null; + error: string | null = null; + /** The camera exists but another app holds it; we keep retrying. */ + busy = false; + /** Controls the camera accepted but did not apply (common on cheap UVC cameras). */ + private unresponsive = new Set(); + private wantedId: string | null = null; + orientations: Record = {}; + + private stream: MediaStream | null = null; + private frames = 0; + private fpsTimer: number | undefined; + private focusTimer: number | undefined; + private opening: Promise = Promise.resolve(); + + constructor(video: HTMLVideoElement) { + super(); + this.video = video; + navigator.mediaDevices.addEventListener('devicechange', () => void this.onDeviceChange()); + this.fpsTimer = window.setInterval(() => { + this.fps = this.frames; + this.frames = 0; + this.changed(); + }, 1000); + this.focusTimer = window.setInterval(() => this.updateFocus(), 300); + const tick = () => { + this.frames++; + this.video.requestVideoFrameCallback(tick); + }; + this.video.requestVideoFrameCallback(tick); + } + + get activeCamera(): CameraInfo | null { + const c = this.cameras.find((x) => x.id === this.activeId); + return c ? { ...c, active: true } : null; + } + + get orientation(): Orientation { + return (this.activeId && this.orientations[this.activeId]) || DEFAULT_ORIENTATION; + } + + orientationFor(id: string): Orientation { + return this.orientations[id] ?? DEFAULT_ORIENTATION; + } + + state(): CameraState { + return { + active: this.activeCamera, + cameras: this.cameras.map((c) => ({ ...c, active: c.id === this.activeId })), + width: this.width, + height: this.height, + fps: this.fps, + orientation: this.orientation, + focusScore: this.focusScore, + controls: this.controls, + maxResolution: this.maxResolution, + }; + } + + /** Find a camera by exact id, or by a case-insensitive part of its label. */ + resolve(query: string): { id: string; label: string } { + const q = query.trim().toLowerCase(); + const hit = + this.cameras.find((c) => c.id === query) ?? + this.cameras.find((c) => c.label.toLowerCase() === q) ?? + this.cameras.find((c) => c.label.toLowerCase().includes(q)); + if (!hit) { + const names = this.cameras.map((c) => `"${c.label}"`).join(', ') || 'none'; + throw new Error(`No camera matches "${query}". Available: ${names}`); + } + return hit; + } + + async refresh(): Promise { + const devices = await navigator.mediaDevices.enumerateDevices(); + this.cameras = devices + .filter((d) => d.kind === 'videoinput') + .map((d, i) => ({ id: d.deviceId, label: d.label || `Camera ${i + 1}` })); + this.changed(); + } + + /** Ask for permission once so device labels become available, then list cameras. */ + async init(preferred: string | null): Promise { + try { + const probe = await navigator.mediaDevices.getUserMedia({ video: true }); + probe.getTracks().forEach((t) => t.stop()); + } catch (e) { + this.error = describeError(e); + } + await this.refresh(); + const target = this.cameras.find((c) => c.id === preferred) ?? this.cameras[0]; + if (target) await this.open(target.id).catch(() => undefined); + else if (!this.error) this.error = 'No camera found. Plug in your microscope and it will appear here.'; + this.changed(); + } + + open(id: string, size?: { width: number; height: number }): Promise { + // Serialise opens: Windows allows only one handle per camera. + this.opening = this.opening.catch(() => undefined).then(() => this.doOpen(id, size)); + return this.opening; + } + + private async doOpen(id: string, size?: { width: number; height: number }): Promise { + this.closeStream(); + this.error = null; + this.wantedId = id; + this.unresponsive.clear(); + const want = size ?? PREFERRED_SIZE; + try { + // A camera that was just released can report "busy" for a moment; retry before giving up. + for (let attempt = 0; ; attempt++) { + try { + this.stream = await navigator.mediaDevices.getUserMedia({ + video: { + deviceId: { exact: id }, + width: { ideal: want.width }, + height: { ideal: want.height }, + frameRate: { ideal: 30 }, + }, + audio: false, + }); + break; + } catch (e) { + if ((e as DOMException).name !== 'NotReadableError' || attempt >= 3) throw e; + await new Promise((r) => setTimeout(r, 700)); + } + } + } catch (e) { + this.activeId = null; + this.busy = (e as DOMException).name === 'NotReadableError'; + this.error = describeError(e); + this.changed(); + throw new Error(this.error); + } + this.activeId = id; + this.busy = false; + this.video.srcObject = this.stream; + await this.video.play().catch(() => undefined); + await waitForFrame(this.video); + this.readTrack(); + this.stream.getVideoTracks()[0]?.addEventListener('ended', () => { + this.activeId = null; + this.error = 'The camera was disconnected.'; + this.closeStream(); + void this.refresh(); + }); + this.changed(); + } + + /** Called on a timer: if another app had the camera, take it as soon as it is free. */ + async retryIfBusy(): Promise { + if (this.busy && !this.activeId && this.wantedId) await this.open(this.wantedId).catch(() => undefined); + } + + private closeStream(): void { + this.stream?.getTracks().forEach((t) => t.stop()); + this.stream = null; + this.video.srcObject = null; + this.controls = []; + this.width = this.height = 0; + this.focusScore = null; + } + + private get track(): MediaStreamTrack | null { + return this.stream?.getVideoTracks()[0] ?? null; + } + + private readTrack(): void { + const track = this.track; + if (!track) return; + const s = track.getSettings(); + this.width = s.width ?? this.video.videoWidth; + this.height = s.height ?? this.video.videoHeight; + const caps = (track.getCapabilities?.() ?? {}) as Caps; + const settings = s as Record; + const wr = caps['width'] as { max?: number } | undefined; + const hr = caps['height'] as { max?: number } | undefined; + this.maxResolution = wr?.max && hr?.max ? { width: wr.max, height: hr.max } : null; + + const out: CameraControl[] = []; + for (const name of NUMERIC) { + const c = caps[name] as { min?: number; max?: number; step?: number } | undefined; + if (c && typeof c.min === 'number' && typeof c.max === 'number' && c.max > c.min) { + out.push({ + name, + value: (settings[name] as number | undefined) ?? null, + range: { min: c.min, max: c.max, step: c.step || (c.max - c.min) / 100 }, + }); + } + } + for (const name of MODES) { + const c = caps[name] as string[] | undefined; + if (Array.isArray(c) && c.length > 1) { + out.push({ name, value: (settings[name] as string | undefined) ?? null, options: c }); + } + } + for (const name of TOGGLES) { + if (caps[name]) out.push({ name, value: Boolean(settings[name]) }); + } + this.controls = out.map((c) => (this.unresponsive.has(c.name) ? { ...c, responsive: false } : c)); + } + + async applyControls( + wanted: Record, + ): Promise<{ applied: Record; rejected: Record }> { + const track = this.track; + if (!track) throw new Error('No camera is open'); + const applied: Record = {}; + const rejected: Record = {}; + const known = new Map(this.controls.map((c) => [c.name, c])); + + const entries = Object.entries(wanted).sort(([a], [b]) => Number(b.endsWith('Mode')) - Number(a.endsWith('Mode'))); + for (const [name, value] of entries) { + const control = known.get(name); + if (!control) { + rejected[name] = `Not supported by this camera. Supported: ${[...known.keys()].join(', ') || 'none'}`; + continue; + } + if (control.range && typeof value !== 'number') { + rejected[name] = 'Expected a number'; + continue; + } + if (control.range && typeof value === 'number') { + if (value < control.range.min || value > control.range.max) { + rejected[name] = `Out of range ${control.range.min}..${control.range.max}`; + continue; + } + } + if (control.options && !control.options.includes(String(value))) { + rejected[name] = `Must be one of ${control.options.join(', ')}`; + continue; + } + // Setting a manual value implies manual mode. + const needs = MODE_FOR[name]; + if (needs && !(needs.mode in wanted) && known.has(needs.mode)) { + await track.applyConstraints({ advanced: [{ [needs.mode]: needs.value } as MediaTrackConstraintSet] }).catch(() => undefined); + } + try { + await track.applyConstraints({ advanced: [{ [name]: value } as MediaTrackConstraintSet] }); + } catch (e) { + rejected[name] = (e as Error).message; + continue; + } + applied[name] = value; + } + + this.readTrack(); + for (const [name, value] of Object.entries(applied)) { + const now = this.controls.find((c) => c.name === name)?.value; + if (typeof value === 'number' && typeof now === 'number') { + const step = known.get(name)?.range?.step ?? 1; + if (Math.abs(now - value) > Math.max(step, Math.abs(value) * 0.02)) { + delete applied[name]; + this.unresponsive.add(name); + rejected[name] = `Camera ignored the request and kept ${now}; this control has no effect on this camera`; + } + } else if (now !== null && now !== undefined && now !== value) { + delete applied[name]; + this.unresponsive.add(name); + rejected[name] = `Camera ignored the request and kept ${String(now)}; this control has no effect on this camera`; + } + } + this.readTrack(); + this.changed(); + return { applied, rejected }; + } + + /** The current frame as something drawable, plus its pixel size. */ + async grab(): Promise<{ src: CanvasImageSource; width: number; height: number; release(): void }> { + const track = this.track; + if (!track) throw new Error('No camera is open'); + if (typeof ImageCapture !== 'undefined') { + try { + const bmp = await new ImageCapture(track).grabFrame(); + return { src: bmp, width: bmp.width, height: bmp.height, release: () => bmp.close() }; + } catch { + /* fall through to the video element */ + } + } + return { src: this.video, width: this.video.videoWidth, height: this.video.videoHeight, release: () => undefined }; + } + + /** Open a different camera just long enough to take one frame, leaving the live view untouched. */ + async grabFromOther(id: string): Promise<{ src: CanvasImageSource; width: number; height: number; release(): void }> { + const stream = await navigator.mediaDevices.getUserMedia({ + video: { deviceId: { exact: id }, width: { ideal: PREFERRED_SIZE.width }, height: { ideal: PREFERRED_SIZE.height } }, + audio: false, + }); + const video = document.createElement('video'); + video.muted = true; + video.srcObject = stream; + await video.play(); + await waitForFrame(video); + // Let auto exposure settle for a moment. + await new Promise((r) => setTimeout(r, 400)); + const bmp = await createImageBitmap(video); + stream.getTracks().forEach((t) => t.stop()); + video.srcObject = null; + return { src: bmp, width: bmp.width, height: bmp.height, release: () => bmp.close() }; + } + + private updateFocus(): void { + if (!this.stream || this.video.readyState < 2 || !this.video.videoWidth) return; + try { + this.focusScore = computeMetrics(this.video, this.video.videoWidth, this.video.videoHeight).focusScore; + this.dispatchEvent(new Event('focus')); + } catch { + /* frame not ready */ + } + } + + private async onDeviceChange(): Promise { + await this.refresh(); + if (this.activeId && !this.cameras.some((c) => c.id === this.activeId)) { + this.activeId = null; + this.closeStream(); + this.error = 'The camera was disconnected.'; + } else if (!this.activeId && this.cameras[0]) { + await this.open(this.cameras[0].id).catch(() => undefined); + } + this.changed(); + } + + changed(): void { + this.dispatchEvent(new Event('change')); + } + + dispose(): void { + window.clearInterval(this.fpsTimer); + window.clearInterval(this.focusTimer); + this.closeStream(); + } +} + +function waitForFrame(video: HTMLVideoElement): Promise { + if (video.readyState >= 2 && video.videoWidth > 0) return Promise.resolve(); + return new Promise((resolve) => { + const done = () => { + video.removeEventListener('loadeddata', done); + resolve(); + }; + video.addEventListener('loadeddata', done); + setTimeout(done, 5000); + }); +} + +export function describeError(e: unknown): string { + const err = e as DOMException; + switch (err?.name) { + case 'NotAllowedError': + return 'Camera access is blocked. On Windows, open Settings > Privacy & security > Camera and allow desktop apps to use your camera.'; + case 'NotFoundError': + return 'No camera found. Plug in your microscope and it will appear here.'; + case 'NotReadableError': + return 'Another app is using this camera (often the Windows Camera app, Teams or a browser tab). Close it and Electroscope will connect automatically.'; + case 'OverconstrainedError': + return 'The camera does not support that resolution.'; + default: + return err?.message || 'Could not open the camera.'; + } +} diff --git a/src/renderer/commands.ts b/src/renderer/commands.ts new file mode 100644 index 0000000..2601985 --- /dev/null +++ b/src/renderer/commands.ts @@ -0,0 +1,100 @@ +import type { + CameraState, + CaptureRequest, + CaptureResult, + Orientation, + Region, + RendererCommands, +} from '../shared/types.js'; +import { DEFAULT_ORIENTATION, type CameraSession } from './camera.js'; +import { computeMetrics, encode, renderFrame, thumbnailDataUrl } from './frames.js'; + +export interface CommandContext { + session: CameraSession; + userViewRegion(): Region; + setOrientation(cameraId: string, o: Orientation): Promise; + rememberCamera(cameraId: string, size?: { width: number; height: number }): Promise; +} + +/** Grab, orient, crop, scale and encode a frame. Used for both Claude's requests and the human's "share". */ +export async function captureFrame(ctx: CommandContext, req: CaptureRequest): Promise { + const { session } = ctx; + let cam = session.activeCamera; + let orientation = session.orientation; + let grab: Awaited>; + + if (req.cameraId && req.cameraId !== session.activeId) { + const target = session.resolve(req.cameraId); + if (target.id === session.activeId) { + grab = await session.grab(); + } else { + cam = { ...target, active: false }; + orientation = session.orientationFor(target.id); + grab = await session.grabFromOther(target.id); + } + } else { + grab = await session.grab(); + } + if (!cam) throw new Error('No camera is open. Ask the human to plug in or select a camera.'); + + try { + const region = req.followUserView ? ctx.userViewRegion() : (req.region ?? null); + const rendered = renderFrame(grab.src, grab.width, grab.height, orientation, region, req.maxWidth); + const metrics = computeMetrics(rendered.canvas, rendered.canvas.width, rendered.canvas.height); + const [data, thumbnail] = await Promise.all([ + encode(rendered.canvas, req.format, req.quality), + thumbnailDataUrl(rendered.canvas), + ]); + const full = rendered.region.width > 0.999 && rendered.region.height > 0.999; + return { + data, + mimeType: req.format === 'png' ? 'image/png' : 'image/jpeg', + width: rendered.canvas.width, + height: rendered.canvas.height, + sourceWidth: grab.width, + sourceHeight: grab.height, + camera: cam, + region: full ? null : rendered.region, + orientation, + metrics, + thumbnail, + capturedAt: new Date().toISOString(), + }; + } finally { + grab.release(); + } +} + +export function createCommands(ctx: CommandContext): { + [K in keyof RendererCommands]: (args: Parameters[0]) => Promise>; +} { + const { session } = ctx; + return { + async getState() { + return session.state(); + }, + async refreshCameras() { + await session.refresh(); + return session.state(); + }, + async selectCamera({ cameraId, width, height }) { + const target = session.resolve(cameraId); + const size = width && height ? { width, height } : undefined; + await session.open(target.id, size); + await ctx.rememberCamera(target.id, size); + return session.state(); + }, + async setControls({ controls }) { + const { applied, rejected } = await session.applyControls(controls); + return { applied, rejected, state: session.state() as CameraState }; + }, + async setOrientation(patch) { + const id = session.activeId; + if (!id) throw new Error('No camera is open'); + const next = { ...(session.orientations[id] ?? DEFAULT_ORIENTATION), ...patch }; + await ctx.setOrientation(id, next); + return session.state(); + }, + capture: (req) => captureFrame(ctx, req), + }; +} diff --git a/src/renderer/frames.ts b/src/renderer/frames.ts new file mode 100644 index 0000000..525b58f --- /dev/null +++ b/src/renderer/frames.ts @@ -0,0 +1,141 @@ +import type { FrameMetrics, Orientation, Region } from '../shared/types.js'; + +/** Size of a frame after rotation. */ +export function orientedSize(w: number, h: number, o: Orientation): { width: number; height: number } { + return o.rotation === 90 || o.rotation === 270 ? { width: h, height: w } : { width: w, height: h }; +} + +export function clampRegion(r: Region): Region { + const x = Math.min(Math.max(r.x, 0), 0.98); + const y = Math.min(Math.max(r.y, 0), 0.98); + return { + x, + y, + width: Math.min(Math.max(r.width, 0.02), 1 - x), + height: Math.min(Math.max(r.height, 0.02), 1 - y), + }; +} + +export interface RenderedFrame { + canvas: OffscreenCanvas; + region: Region; + sourceWidth: number; + sourceHeight: number; +} + +/** + * Draw `src` into a new canvas: mirrored/rotated, cropped to `region` (normalised, in oriented + * coordinates) and scaled so the longest edge is at most `maxLongEdge`. One draw call straight + * from the source pixels, so a crop keeps the camera's full resolution. + */ +export function renderFrame( + src: CanvasImageSource, + sw: number, + sh: number, + o: Orientation, + region: Region | null, + maxLongEdge: number, +): RenderedFrame { + const { width: ow, height: oh } = orientedSize(sw, sh, o); + const reg = clampRegion(region ?? { x: 0, y: 0, width: 1, height: 1 }); + const rx = Math.round(reg.x * ow); + const ry = Math.round(reg.y * oh); + const rw = Math.max(1, Math.min(ow - rx, Math.round(reg.width * ow))); + const rh = Math.max(1, Math.min(oh - ry, Math.round(reg.height * oh))); + const scale = Math.min(1, maxLongEdge / Math.max(rw, rh)); + const outW = Math.max(1, Math.round(rw * scale)); + const outH = Math.max(1, Math.round(rh * scale)); + + const canvas = new OffscreenCanvas(outW, outH); + const ctx = canvas.getContext('2d'); + if (!ctx) throw new Error('2D canvas unavailable'); + ctx.imageSmoothingEnabled = true; + ctx.imageSmoothingQuality = 'high'; + ctx.scale(outW / rw, outH / rh); + ctx.translate(-rx, -ry); + ctx.translate(ow / 2, oh / 2); + ctx.rotate((o.rotation * Math.PI) / 180); + ctx.scale(o.mirror ? -1 : 1, 1); + ctx.drawImage(src, -sw / 2, -sh / 2, sw, sh); + + return { + canvas, + region: { x: rx / ow, y: ry / oh, width: rw / ow, height: rh / oh }, + sourceWidth: sw, + sourceHeight: sh, + }; +} + +const ANALYSIS_LONG_EDGE = 640; +let analysisCanvas: OffscreenCanvas | null = null; + +/** + * Focus (variance of the Laplacian), brightness and clipping on a normalised copy of the frame, + * so scores are comparable between live view and captures of the same scene. + */ +export function computeMetrics(src: CanvasImageSource, sw: number, sh: number): FrameMetrics { + const scale = Math.min(1, ANALYSIS_LONG_EDGE / Math.max(sw, sh)); + const w = Math.max(3, Math.round(sw * scale)); + const h = Math.max(3, Math.round(sh * scale)); + if (!analysisCanvas || analysisCanvas.width !== w || analysisCanvas.height !== h) { + analysisCanvas = new OffscreenCanvas(w, h); + } + const ctx = analysisCanvas.getContext('2d', { willReadFrequently: true }); + if (!ctx) throw new Error('2D canvas unavailable'); + ctx.drawImage(src, 0, 0, w, h); + const { data } = ctx.getImageData(0, 0, w, h); + + const grey = new Float32Array(w * h); + let sum = 0; + let hot = 0; + let dark = 0; + for (let i = 0, p = 0; i < grey.length; i++, p += 4) { + const y = 0.2126 * data[p]! + 0.7152 * data[p + 1]! + 0.0722 * data[p + 2]!; + grey[i] = y; + sum += y; + if (y >= 250) hot++; + else if (y <= 5) dark++; + } + + let lapSum = 0; + let lapSq = 0; + let n = 0; + for (let y = 1; y < h - 1; y++) { + for (let x = 1; x < w - 1; x++) { + const i = y * w + x; + const l = grey[i - 1]! + grey[i + 1]! + grey[i - w]! + grey[i + w]! - 4 * grey[i]!; + lapSum += l; + lapSq += l * l; + n++; + } + } + const mean = lapSum / n; + return { + focusScore: lapSq / n - mean * mean, + brightness: sum / grey.length, + overexposed: hot / grey.length, + underexposed: dark / grey.length, + }; +} + +export async function encode(canvas: OffscreenCanvas, format: 'jpeg' | 'png', quality: number): Promise { + const blob = await canvas.convertToBlob({ + type: format === 'png' ? 'image/png' : 'image/jpeg', + ...(format === 'jpeg' ? { quality } : {}), + }); + return new Uint8Array(await blob.arrayBuffer()); +} + +export async function thumbnailDataUrl(canvas: OffscreenCanvas, longEdge = 240): Promise { + const scale = Math.min(1, longEdge / Math.max(canvas.width, canvas.height)); + const t = new OffscreenCanvas(Math.max(1, Math.round(canvas.width * scale)), Math.max(1, Math.round(canvas.height * scale))); + const ctx = t.getContext('2d'); + if (!ctx) throw new Error('2D canvas unavailable'); + ctx.imageSmoothingQuality = 'high'; + ctx.drawImage(canvas, 0, 0, t.width, t.height); + const blob = await t.convertToBlob({ type: 'image/jpeg', quality: 0.72 }); + const bytes = new Uint8Array(await blob.arrayBuffer()); + let bin = ''; + for (let i = 0; i < bytes.length; i += 0x8000) bin += String.fromCharCode(...bytes.subarray(i, i + 0x8000)); + return `data:image/jpeg;base64,${btoa(bin)}`; +} diff --git a/src/renderer/global.d.ts b/src/renderer/global.d.ts new file mode 100644 index 0000000..93ce465 --- /dev/null +++ b/src/renderer/global.d.ts @@ -0,0 +1,30 @@ +import type { ElectroscopeApi } from '../preload/index.js'; + +declare global { + interface Window { + electroscope: ElectroscopeApi; + } + + // Chromium's ImageCapture is not in lib.dom.d.ts. + class ImageCapture { + constructor(track: MediaStreamTrack); + grabFrame(): Promise; + } + + interface MediaTrackCapabilities { + focusMode?: string[]; + focusDistance?: { min: number; max: number; step: number }; + exposureMode?: string[]; + exposureTime?: { min: number; max: number; step: number }; + whiteBalanceMode?: string[]; + colorTemperature?: { min: number; max: number; step: number }; + brightness?: { min: number; max: number; step: number }; + contrast?: { min: number; max: number; step: number }; + saturation?: { min: number; max: number; step: number }; + sharpness?: { min: number; max: number; step: number }; + zoom?: { min: number; max: number; step: number }; + torch?: boolean; + } +} + +export {}; diff --git a/src/renderer/icons.ts b/src/renderer/icons.ts new file mode 100644 index 0000000..1666bd7 --- /dev/null +++ b/src/renderer/icons.ts @@ -0,0 +1,27 @@ +const base = (body: string) => + ``; + +export const icons = { + camera: base(''), + refresh: base(''), + zoomIn: base(''), + zoomOut: base(''), + fit: base(''), + grid: base(''), + crosshair: base(''), + freeze: base(''), + save: base(''), + share: base(''), + folder: base(''), + settings: base(''), + copy: base(''), + rotateCw: base(''), + rotateCcw: base(''), + flip: base(''), + eye: base(''), + close: base(''), + check: base(''), + trash: base(''), + // A small version of build/icon.svg, for the title bar. + logo: ``, +}; diff --git a/src/renderer/index.html b/src/renderer/index.html new file mode 100644 index 0000000..8d71502 --- /dev/null +++ b/src/renderer/index.html @@ -0,0 +1,145 @@ + + + + + + + Electroscope + + + +
+
+
Electroscope
+
+ +
+
+
+ + + +
+
+ + +
+ + + +
+
+

Claude's view 0

+
+
+

Frames Claude captures, and frames you share, show up here so you always know what it has seen.

+
+
+ + +
+ + +
+

Settings

+ + +

Electroscope listens on 127.0.0.1 only. Nothing leaves this computer unless Claude asks for a frame.

+
+
+
+ + +
+

Share with Claude

+ + +
+
+
+ + + Captured frame + + + +
+ + + diff --git a/src/renderer/main.ts b/src/renderer/main.ts new file mode 100644 index 0000000..1a9c235 --- /dev/null +++ b/src/renderer/main.ts @@ -0,0 +1,639 @@ +import type { + ActivityEntry, + CameraControl, + CaptureResult, + Orientation, + RendererCommandName, + ServerInfo, + Settings, +} from '../shared/types.js'; +import { CameraSession } from './camera.js'; +import { captureFrame, createCommands, type CommandContext } from './commands.js'; +import { icons } from './icons.js'; +import { Viewer } from './viewer.js'; + +const api = window.electroscope; +const $ = (id: string): T => { + const el = document.getElementById(id); + if (!el) throw new Error(`Missing #${id}`); + return el as T; +}; + +function h( + tag: K, + props: Partial & { class?: string } = {}, + ...children: Array +): HTMLElementTagNameMap[K] { + const el = document.createElement(tag); + const { class: cls, ...rest } = props as Record; + if (cls) el.className = String(cls); + Object.assign(el, rest); + el.append(...children); + return el; +} + +const PRESETS = [ + [3840, 2160], + [2592, 1944], + [2560, 1440], + [1920, 1080], + [1600, 1200], + [1280, 720], + [1024, 768], + [800, 600], + [640, 480], +] as const; + +let settings: Settings; +let serverInfo: ServerInfo = { running: false, port: 0, url: '', clients: [] }; +let activity: ActivityEntry[] = []; +let controlsSignature = ''; +let frozen = false; +let pendingShare: CaptureResult | null = null; + +const video = $('video'); +const session = new CameraSession(video); +const viewer = new Viewer($('stage'), $('frame'), $('zoomer'), video, session); + +// ---------- helpers ---------- +function toast(message: string, kind: 'claude' | 'error' | 'info' = 'info', ms = 4200): void { + const el = h('div', { class: `toast ${kind}`, textContent: message }); + $('toasts').append(el); + setTimeout(() => el.remove(), ms); +} + +function clock(iso: string): string { + return new Date(iso).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' }); +} + +function ago(iso: string): string { + const s = Math.max(0, Math.round((Date.now() - Date.parse(iso)) / 1000)); + if (s < 5) return 'just now'; + if (s < 60) return `${s}s ago`; + if (s < 3600) return `${Math.round(s / 60)} min ago`; + return `${Math.round(s / 3600)} h ago`; +} + +function humanize(name: string): string { + return name.replace(/([A-Z])/g, ' $1').replace(/^./, (c) => c.toUpperCase()); +} + +async function copy(text: string, what: string): Promise { + try { + await navigator.clipboard.writeText(text); + } catch { + const ta = h('textarea', { value: text }); + document.body.append(ta); + ta.select(); + document.execCommand('copy'); + ta.remove(); + } + toast(`${what} copied`); +} + +function fileUrl(path: string): string { + return encodeURI(`file:///${path.replace(/\\/g, '/')}`).replace(/#/g, '%23'); +} + +// ---------- commands (what Claude's tool calls land on) ---------- +const ctx: CommandContext = { + session, + userViewRegion: () => viewer.visibleRegion(), + async setOrientation(cameraId: string, o: Orientation) { + const orientations = { ...settings.orientations, [cameraId]: o }; + settings = await api.patchSettings({ orientations }); + session.orientations = settings.orientations; + viewer.reset(); + viewer.layout(); + session.changed(); + }, + async rememberCamera(cameraId, size) { + const patch: Partial = { lastCameraId: cameraId }; + if (size) patch.resolutions = { ...settings.resolutions, [cameraId]: size }; + settings = await api.patchSettings(patch); + viewer.reset(); + }, +}; +const commands = createCommands(ctx); + +api.onCommand(async ({ id, name, args }) => { + try { + const fn = commands[name as RendererCommandName] as (a: unknown) => Promise; + if (!fn) throw new Error(`Unknown command ${name}`); + const value = await fn(args); + api.sendCommandResult({ id, ok: true, value }); + } catch (e) { + api.sendCommandResult({ id, ok: false, error: (e as Error).message }); + } +}); + +// ---------- rendering ---------- +function renderCameras(): void { + const list = $('camera-list'); + list.replaceChildren(); + if (session.cameras.length === 0) { + list.append(h('li', { class: 'list-empty', textContent: 'No cameras detected.' })); + return; + } + for (const cam of session.cameras) { + const active = cam.id === session.activeId; + const btn = h('button', { class: `camera-item${active ? ' active' : ''}`, type: 'button' }); + btn.dataset['id'] = cam.id; + btn.append( + h('span', { class: 'ico', innerHTML: icons.camera }), + h( + 'span', + { class: 'meta' }, + h('div', { class: 'name', textContent: cam.label, title: cam.label }), + h('div', { class: 'sub', textContent: active ? `${session.width}×${session.height}` : 'Click to switch' }), + ), + ); + if (active) btn.append(h('span', { class: 'live-dot', title: 'Live' })); + btn.addEventListener('click', () => { + if (!active) void switchCamera(cam.id); + }); + list.append(h('li', {}, btn)); + } +} + +async function switchCamera(id: string): Promise { + try { + const size = settings.resolutions[id]; + await session.open(id, size); + settings = await api.patchSettings({ lastCameraId: id }); + viewer.reset(); + viewer.layout(); + } catch (e) { + toast((e as Error).message, 'error', 7000); + } +} + +function renderHud(): void { + const cam = session.activeCamera; + $('hud-cam').textContent = cam?.label ?? '—'; + $('hud-res').textContent = session.width ? `${session.width}×${session.height}` : '—'; + $('hud-fps').textContent = frozen ? 'Frozen' : session.fps ? `${session.fps} fps` : '—'; + const zoom = $('hud-zoom'); + zoom.hidden = viewer.zoom <= 1.001; + zoom.textContent = `${Math.round(viewer.zoom * 100)}%`; + $('tb-zoom-reset').textContent = `${Math.round(viewer.zoom * 100)}%`; +} + +let focusPeak = 1; +function renderFocus(): void { + const score = session.focusScore; + if (score === null) { + $('focus-val').textContent = '—'; + return; + } + focusPeak = Math.max(score, focusPeak * 0.995); + const pct = Math.min(1, score / Math.max(focusPeak, 1)); + ($('focus-bar') as HTMLElement).style.width = `${(pct * 100).toFixed(0)}%`; + ($('focus-peak') as HTMLElement).style.left = `calc(100% - 2px)`; + $('focus-val').textContent = score >= 100 ? Math.round(score).toString() : score.toFixed(1); +} + +function renderStageState(): void { + const has = session.activeId !== null && session.width > 0; + $('frame').hidden = !has; + const empty = $('empty'); + empty.hidden = has; + if (!has) { + const noCam = session.cameras.length === 0; + $('empty-art').innerHTML = icons.camera; + $('empty-title').textContent = noCam ? 'No camera found' : 'Camera unavailable'; + $('empty-text').textContent = + session.error ?? (noCam ? 'Plug in your microscope and it will appear here.' : 'Pick a camera from the list.'); + } else { + viewer.layout(); + } +} + +function renderResolution(): void { + const sel = $('resolution'); + const max = session.maxResolution; + const options = PRESETS.filter(([w, hgt]) => !max || (w <= max.width && hgt <= max.height)); + const current = `${session.width}x${session.height}`; + const sig = `${current}|${options.map((o) => o.join('x')).join(',')}|${session.activeId}`; + if (sel.dataset['sig'] === sig) return; + sel.dataset['sig'] = sig; + sel.replaceChildren(); + const seen = new Set(); + const add = (w: number, hgt: number) => { + const v = `${w}x${hgt}`; + if (seen.has(v)) return; + seen.add(v); + sel.append(h('option', { value: v, textContent: `${w} × ${hgt}` })); + }; + if (session.width) add(session.width, session.height); + for (const [w, hgt] of options) add(w, hgt); + sel.value = current; + sel.disabled = !session.activeId; +} + +function renderControls(): void { + const box = $('controls'); + const sig = JSON.stringify(session.controls.map((c) => [c.name, c.range, c.options, c.responsive])) + session.activeId; + if (sig !== controlsSignature) { + controlsSignature = sig; + box.replaceChildren(); + if (session.controls.length === 0) { + box.append( + h('p', { + class: 'none', + textContent: session.activeId + ? 'This camera does not expose adjustable controls. Use the lens focus ring and your lighting.' + : 'Open a camera to see its controls.', + }), + ); + return; + } + for (const c of session.controls) box.append(controlRow(c)); + } + syncControlValues(); +} + +function controlRow(c: CameraControl): HTMLElement { + const row = h('div', { class: 'control' }); + row.dataset['name'] = c.name; + if (c.responsive === false) row.classList.add('dead'); + const value = h('span', { class: 'v' }); + row.append(h('div', { class: 'head' }, h('span', { textContent: humanize(c.name) }), value)); + if (c.responsive === false) row.append(h('div', { class: 'tiny', textContent: 'No effect on this camera' })); + if (c.range) { + const input = h('input', { type: 'range' }); + input.min = String(c.range.min); + input.max = String(c.range.max); + input.step = String(c.range.step); + input.value = String(c.value ?? c.range.min); + input.setAttribute('aria-label', humanize(c.name)); + let timer: number | undefined; + input.addEventListener('input', () => { + value.textContent = input.value; + window.clearTimeout(timer); + timer = window.setTimeout(() => { + void session.applyControls({ [c.name]: Number(input.value) }).then((r) => { + const why = r.rejected[c.name]; + if (why) toast(`${humanize(c.name)}: ${why}`, 'error'); + }); + }, 60); + }); + row.append(input); + } else if (c.options) { + const seg = h('div', { class: 'mode-seg' }); + for (const o of c.options) { + const b = h('button', { type: 'button', textContent: o }); + b.dataset['value'] = o; + b.addEventListener('click', () => void session.applyControls({ [c.name]: o })); + seg.append(b); + } + row.append(seg); + } else { + const b = h('button', { class: 'mode-seg-toggle chip-btn', type: 'button', textContent: 'Off' }); + b.addEventListener('click', () => void session.applyControls({ [c.name]: !(b.getAttribute('aria-pressed') === 'true') })); + row.append(b); + } + return row; +} + +function syncControlValues(): void { + for (const c of session.controls) { + const row = $('controls').querySelector(`[data-name="${c.name}"]`); + if (!row) continue; + const v = row.querySelector('.v'); + const input = row.querySelector('input[type=range]'); + if (input) { + if (document.activeElement !== input && c.value !== null) input.value = String(c.value); + if (v) v.textContent = c.value === null ? '' : String(Math.round(Number(c.value) * 100) / 100); + } + row.querySelectorAll('.mode-seg button').forEach((b) => { + b.setAttribute('aria-pressed', String(b.dataset['value'] === c.value)); + }); + const t = row.querySelector('.mode-seg-toggle'); + if (t) { + t.setAttribute('aria-pressed', String(Boolean(c.value))); + t.textContent = c.value ? 'On' : 'Off'; + } + } +} + +function renderOrientation(): void { + $('mirror').setAttribute('aria-pressed', String(session.orientation.mirror)); +} + +function renderClaude(): void { + const on = settings.claudeAccess; + const toggle = $('access-toggle'); + toggle.checked = on; + $('claude-card').classList.toggle('off', !on); + const live = serverInfo.clients.length > 0; + const pill = $('claude-pill'); + pill.className = `claude-pill ${on ? 'on' : 'off'}${on && live ? ' connected' : ''}`; + $('claude-pill-text').textContent = !on ? 'Claude paused' : live ? 'Claude connected' : 'Claude can see'; + + const status = $('claude-status'); + if (!serverInfo.running) { + status.textContent = serverInfo.error ? `Server not running: ${serverInfo.error}` : 'Starting…'; + } else if (!on) { + status.textContent = 'Paused. Claude cannot capture frames until you switch this back on.'; + } else if (!live) { + status.textContent = 'Ready. Add the server to Claude, then ask it to take a look.'; + } else { + status.textContent = 'Connected. Claude captures stills on request.'; + } + $('endpoint').textContent = serverInfo.url || '—'; + const list = $('client-list'); + list.replaceChildren( + ...serverInfo.clients.map((c) => + h( + 'li', + {}, + h('span', { class: 'dot' }), + h('span', { textContent: `${c.name}${c.version ? ` ${c.version}` : ''}` }), + h('span', { class: 'when', textContent: ago(c.lastSeen) }), + ), + ), + ); +} + +function renderActivity(): void { + const strip = $('activity-strip'); + $('activity-count').textContent = String(activity.length); + if (activity.length === 0) { + strip.replaceChildren( + h('p', { + class: 'muted small strip-empty', + textContent: 'Frames Claude captures, and frames you share, show up here so you always know what it has seen.', + }), + ); + return; + } + strip.replaceChildren( + ...[...activity].reverse().map((a) => { + const b = h('button', { class: `shot ${a.source}`, type: 'button' }); + b.title = `${a.source === 'claude' ? 'Claude captured' : 'You shared'} · ${a.cameraLabel} · ${a.width}×${a.height}`; + b.append( + h('img', { src: a.thumbnail, alt: '' }), + h( + 'div', + { class: 'cap' }, + h('span', { class: 'who' }), + h('span', { textContent: a.source === 'claude' ? 'Claude' : 'Shared' }), + h('span', { class: 't', textContent: clock(a.at) }), + ), + ); + if (a.note) b.append(h('div', { class: 'note', textContent: a.note })); + b.addEventListener('click', () => openLightbox(a)); + return b; + }), + ); +} + +function openLightbox(a: ActivityEntry): void { + $('lightbox-img').src = fileUrl(a.path); + $('lightbox-meta').textContent = `${a.source === 'claude' ? 'Claude' : 'You'} · ${a.cameraLabel} · ${a.width}×${a.height} · ${clock(a.at)}${a.note ? ` · “${a.note}”` : ''}`; + $('lightbox-reveal').onclick = () => void api.revealFile(a.path); + $('lightbox').showModal(); +} + +function renderAll(): void { + renderCameras(); + renderStageState(); + renderHud(); + renderResolution(); + renderControls(); + renderOrientation(); + renderClaude(); +} + +// ---------- Claude capture feedback ---------- +let ringTimer: number | undefined; +function showClaudeRing(text = 'Claude is looking…'): void { + $('claude-ring-text').textContent = text; + $('claude-ring').classList.add('active'); + window.clearTimeout(ringTimer); + ringTimer = window.setTimeout(() => $('claude-ring').classList.remove('active'), 1600); +} + +function flash(): void { + const el = h('div', { class: 'flash go' }); + $('frame').append(el); + setTimeout(() => el.remove(), 500); +} + +// ---------- wiring ---------- +function wireStatic(): void { + $('logo').innerHTML = icons.logo; + $('open-settings').innerHTML = icons.settings; + $('refresh').innerHTML = icons.refresh; + $('copy-url').innerHTML = icons.copy; + $('copy-cmd').innerHTML = `${icons.copy}Copy Claude Code command`; + $('tb-zoom-out').innerHTML = icons.zoomOut; + $('tb-zoom-in').innerHTML = icons.zoomIn; + $('tb-grid').innerHTML = icons.grid; + $('tb-cross').innerHTML = icons.crosshair; + $('tb-freeze').innerHTML = icons.freeze; + $('tb-save').innerHTML = `${icons.save}Save photo`; + $('tb-share').innerHTML = `${icons.share}Share with Claude`; + $('rot-ccw').innerHTML = icons.rotateCcw; + $('rot-cw').innerHTML = icons.rotateCw; + $('mirror').innerHTML = icons.flip; + $('open-folder').innerHTML = `${icons.folder}Photos`; + $('clear-activity').innerHTML = `${icons.trash}Clear`; + + $('refresh').addEventListener('click', () => void session.refresh()); + $('open-settings').addEventListener('click', () => { + $('set-port').value = String(settings.port); + $('set-theme').value = settings.theme; + $('settings').showModal(); + }); + $('settings-form').addEventListener('submit', (e) => { + const submitter = (e as SubmitEvent).submitter as HTMLButtonElement | null; + if (submitter?.value !== 'ok') return; + const port = Number($('set-port').value); + const patch: Partial = { theme: $('set-theme').value as Settings['theme'] }; + if (Number.isInteger(port) && port >= 1024 && port <= 65535) patch.port = port; + void api.patchSettings(patch).then((s) => { + settings = s; + renderClaude(); + }); + }); + + const setAccess = async (on: boolean) => { + settings = await api.patchSettings({ claudeAccess: on }); + renderClaude(); + toast(on ? 'Claude can capture frames again' : 'Claude access paused', 'claude'); + }; + $('access-toggle').addEventListener('change', (e) => void setAccess((e.target as HTMLInputElement).checked)); + $('claude-pill').addEventListener('click', () => void setAccess(!settings.claudeAccess)); + $('copy-url').addEventListener('click', () => void copy(serverInfo.url, 'URL')); + $('copy-cmd').addEventListener('click', () => + void copy(`claude mcp add --transport http electroscope ${serverInfo.url}`, 'Command'), + ); + + $('tb-zoom-in').addEventListener('click', () => viewer.zoomBy(1.5)); + $('tb-zoom-out').addEventListener('click', () => viewer.zoomBy(1 / 1.5)); + $('tb-zoom-reset').addEventListener('click', () => viewer.reset()); + const toggleOverlay = (btn: string, overlay: string) => { + const b = $(btn); + b.addEventListener('click', () => { + const on = b.getAttribute('aria-pressed') !== 'true'; + b.setAttribute('aria-pressed', String(on)); + $(overlay).hidden = !on; + }); + }; + toggleOverlay('tb-grid', 'overlay-grid'); + toggleOverlay('tb-cross', 'overlay-cross'); + const toggleFreeze = () => { + frozen = !frozen; + $('tb-freeze').setAttribute('aria-pressed', String(frozen)); + if (frozen) video.pause(); + else void video.play(); + renderHud(); + }; + $('tb-freeze').addEventListener('click', toggleFreeze); + window.addEventListener('keydown', (e) => { + const t = e.target as HTMLElement; + if (['INPUT', 'TEXTAREA', 'SELECT'].includes(t.tagName)) return; + if (e.key === ' ') { + e.preventDefault(); + toggleFreeze(); + } else if (e.key === '+' || e.key === '=') viewer.zoomBy(1.4); + else if (e.key === '-') viewer.zoomBy(1 / 1.4); + else if (e.key === '0') viewer.reset(); + }); + + const rotate = (delta: number) => { + const id = session.activeId; + if (!id) return; + const rotation = ((session.orientation.rotation + delta + 360) % 360) as Orientation['rotation']; + void ctx.setOrientation(id, { ...session.orientation, rotation }); + }; + $('rot-cw').addEventListener('click', () => rotate(90)); + $('rot-ccw').addEventListener('click', () => rotate(-90)); + $('mirror').addEventListener('click', () => { + const id = session.activeId; + if (id) void ctx.setOrientation(id, { ...session.orientation, mirror: !session.orientation.mirror }); + }); + $('resolution').addEventListener('change', async (e) => { + const [w, hgt] = (e.target as HTMLSelectElement).value.split('x').map(Number); + const id = session.activeId; + if (!id || !w || !hgt) return; + try { + await session.open(id, { width: w, height: hgt }); + settings = await api.patchSettings({ resolutions: { ...settings.resolutions, [id]: { width: w, height: hgt } } }); + } catch (err) { + toast((err as Error).message, 'error', 6000); + } + }); + + $('tb-save').addEventListener('click', async () => { + try { + const res = await captureFrame(ctx, { + maxWidth: 8192, + format: 'png', + quality: 1, + source: 'user', + ...(viewer.zoom > 1.001 ? { followUserView: true } : {}), + }); + const path = await api.saveCapture(res.data, res.mimeType); + toast(`Saved ${res.width}×${res.height} photo to ${path}`); + } catch (e) { + toast((e as Error).message, 'error'); + } + }); + + $('tb-share').addEventListener('click', async () => { + try { + pendingShare = await captureFrame(ctx, { + maxWidth: 2400, + format: 'jpeg', + quality: 0.92, + source: 'user', + ...(viewer.zoom > 1.001 ? { followUserView: true } : {}), + }); + $('share-preview').src = pendingShare.thumbnail; + $('share-note').value = ''; + $('share-dialog').showModal(); + $('share-note').focus(); + } catch (e) { + toast((e as Error).message, 'error'); + } + }); + $('share-form').addEventListener('submit', (e) => { + const submitter = (e as SubmitEvent).submitter as HTMLButtonElement | null; + const shot = pendingShare; + pendingShare = null; + if (submitter?.value !== 'ok' || !shot) return; + const note = $('share-note').value.trim(); + void api.shareFrame(shot, note).then(() => toast('Shared. Tell Claude to look at the frame you shared.', 'claude', 6000)); + }); + + $('open-folder').addEventListener('click', () => void api.openCaptures()); + $('clear-activity').addEventListener('click', async () => { + await api.clearActivity(); + activity = []; + renderActivity(); + }); + $('lightbox-close').addEventListener('click', () => $('lightbox').close()); + $('empty-retry').addEventListener('click', () => void session.init(settings.lastCameraId).then(renderAll)); +} + +async function main(): Promise { + document.documentElement.classList.add(`platform-${api.platform}`); + settings = await api.getSettings(); + serverInfo = await api.getServerInfo(); + activity = await api.getActivity(); + session.orientations = settings.orientations; + wireStatic(); + + session.addEventListener('change', () => { + renderCameras(); + renderStageState(); + renderHud(); + renderResolution(); + renderControls(); + renderOrientation(); + }); + session.addEventListener('focus', renderFocus); + viewer.addEventListener('change', renderHud); + + api.onServerInfo((info) => { + serverInfo = info; + renderClaude(); + }); + api.onSettings((s) => { + settings = s; + session.orientations = s.orientations; + viewer.layout(); + renderClaude(); + renderOrientation(); + }); + api.onActivity((entry) => { + activity = [...activity, entry].slice(-60); + renderActivity(); + if (entry.source === 'claude') { + showClaudeRing('Claude captured a frame'); + flash(); + } + }); + api.onClaudeCapturing((tool) => showClaudeRing(tool === 'capture_sequence' ? 'Claude is watching…' : 'Claude is looking…')); + setInterval(renderClaude, 15_000); + setInterval(() => void session.retryIfBusy(), 3000); + + renderAll(); + renderActivity(); + await session.init(settings.lastCameraId); + const lastSize = session.activeId ? settings.resolutions[session.activeId] : undefined; + if (lastSize && session.activeId && (lastSize.width !== session.width || lastSize.height !== session.height)) { + await session.open(session.activeId, lastSize).catch(() => undefined); + } + renderAll(); + api.ready(); +} + +void main().catch((e) => { + console.error(e); + toast(`Startup failed: ${(e as Error).message}`, 'error', 10_000); + api.ready(); +}); diff --git a/src/renderer/styles.css b/src/renderer/styles.css new file mode 100644 index 0000000..219e4e5 --- /dev/null +++ b/src/renderer/styles.css @@ -0,0 +1,327 @@ +:root { + color-scheme: light dark; + --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif; + --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; + --mono: "Cascadia Mono", "SF Mono", Consolas, monospace; + + --text: #1b1b1b; + --text-2: #5a5a5a; + --text-3: #8a8a8a; + --surface: rgba(255, 255, 255, 0.62); + --surface-2: rgba(255, 255, 255, 0.86); + --surface-hover: rgba(255, 255, 255, 0.95); + --stroke: rgba(0, 0, 0, 0.09); + --stroke-strong: rgba(0, 0, 0, 0.16); + --accent: #0a64d6; + --accent-text: #fff; + --accent-soft: rgba(10, 100, 214, 0.12); + --claude: #c8553a; + --claude-soft: rgba(200, 85, 58, 0.14); + --ok: #1a8f4a; + --stage-bg: #0d0f12; + --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.06); + --radius: 10px; + --window-bg: #eef1f5; +} + +@media (prefers-color-scheme: dark) { + :root { + --text: #f4f5f7; + --text-2: #b4b8c0; + --text-3: #868b95; + --surface: rgba(255, 255, 255, 0.045); + --surface-2: rgba(255, 255, 255, 0.075); + --surface-hover: rgba(255, 255, 255, 0.11); + --stroke: rgba(255, 255, 255, 0.075); + --stroke-strong: rgba(255, 255, 255, 0.15); + --accent: #5cb6ff; + --accent-text: #04121f; + --accent-soft: rgba(92, 182, 255, 0.15); + --claude: #ee8a6b; + --claude-soft: rgba(238, 138, 107, 0.16); + --ok: #53d28a; + --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25); + --window-bg: #14171c; + } +} + +* { box-sizing: border-box; } +html, body { height: 100%; margin: 0; } +body { + font: 13px/1.45 var(--font); + color: var(--text); + /* Transparent so the Mica / vibrancy material of the window shows through. */ + background: transparent; + overflow: hidden; + user-select: none; + -webkit-font-smoothing: antialiased; +} +.no-material body { background: var(--window-bg); } +button, select, input, textarea { font: inherit; color: inherit; } +button { cursor: pointer; } +:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } +h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; } +h2 { font-size: 13px; letter-spacing: 0.01em; display: flex; align-items: center; gap: 8px; } +code { font-family: var(--mono); } +.muted { color: var(--text-2); } +.small { font-size: 12px; } +.tiny { font-size: 11px; color: var(--text-3); margin: 0; } +[hidden] { display: none !important; } +.row { display: flex; gap: 6px; align-items: center; } +.spacer { flex: 1; } + +/* ---------- layout ---------- */ +#app { + height: 100%; + display: grid; + grid-template-columns: 276px minmax(0, 1fr) 300px; + grid-template-rows: 44px minmax(0, 1fr); + gap: 0 12px; + padding: 0 12px 12px; +} +.titlebar { + grid-column: 1 / -1; + display: flex; + align-items: center; + margin: 0 -12px; + padding-left: 16px; + padding-right: calc(100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px) + 8px); + -webkit-app-region: drag; + position: relative; +} +.platform-darwin .titlebar { padding-left: 84px; padding-right: 12px; } +.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 13px; } +.brand svg { display: block; } +.titlebar-center { position: absolute; left: 50%; transform: translateX(-50%); } +.titlebar-actions { margin-left: auto; } +.titlebar button, .titlebar-actions * { -webkit-app-region: no-drag; } + +.rail { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; padding-bottom: 2px; } +.center { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; } + +/* ---------- cards ---------- */ +.card { + background: var(--surface); + border: 1px solid var(--stroke); + border-radius: var(--radius); + padding: 12px; + box-shadow: var(--shadow); +} +.card.grow { flex: 1; min-height: 0; overflow-y: auto; } +.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; } + +/* ---------- buttons ---------- */ +.icon-btn, .chip-btn, .btn, .select, .input { + border: 1px solid var(--stroke); + background: var(--surface-2); + border-radius: 7px; + transition: background 0.12s, border-color 0.12s, transform 0.06s; +} +.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; color: var(--text); } +.icon-btn.small { width: 26px; height: 26px; } +.icon-btn.toggle[aria-pressed="true"], .chip-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); } +.titlebar .icon-btn { background: transparent; border-color: transparent; } +.chip-btn { height: 32px; padding: 0 10px; min-width: 56px; font-variant-numeric: tabular-nums; } +.btn { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; justify-content: center; white-space: nowrap; } +.btn.wide { width: 100%; } +.btn.small { height: 26px; padding: 0 10px; font-size: 12px; } +.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); } +.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; } +.btn.accent { background: var(--claude); border-color: var(--claude); color: #fff; font-weight: 600; } +.icon-btn:hover, .btn:hover, .chip-btn:hover { background: var(--surface-hover); border-color: var(--stroke-strong); } +.btn.primary:hover { filter: brightness(1.08); background: var(--accent); } +.btn.accent:hover { filter: brightness(1.08); background: var(--claude); } +.icon-btn:active, .btn:active { transform: scale(0.97); } +.btn:disabled, .icon-btn:disabled { opacity: 0.45; pointer-events: none; } + +/* ---------- Claude pill (title bar) ---------- */ +.claude-pill { + -webkit-app-region: no-drag; + display: inline-flex; align-items: center; gap: 8px; + height: 28px; padding: 0 14px 0 11px; + border-radius: 999px; + border: 1px solid var(--stroke); + background: var(--surface); + font-size: 12px; font-weight: 500; +} +.claude-pill .pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); } +.claude-pill.on .pill-dot { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); } +.claude-pill.off { color: var(--text-2); } +.claude-pill.connected { border-color: color-mix(in srgb, var(--ok) 45%, transparent); } +.claude-pill:hover { background: var(--surface-hover); } + +/* ---------- camera list ---------- */ +.camera-list, .client-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; } +.camera-item { + display: flex; align-items: center; gap: 10px; width: 100%; + padding: 9px 10px; text-align: left; + border-radius: 8px; border: 1px solid transparent; background: transparent; +} +.camera-item:hover { background: var(--surface-2); } +.camera-item.active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); } +.camera-item .ico { color: var(--text-2); display: grid; } +.camera-item.active .ico { color: var(--accent); } +.camera-item .meta { min-width: 0; flex: 1; } +.camera-item .name { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.camera-item .sub { font-size: 11px; color: var(--text-2); } +.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; animation: pulse 1.8s infinite; } +@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } } +.list-empty { padding: 8px 4px; color: var(--text-2); font-size: 12px; } + +/* ---------- Claude card ---------- */ +.claude-mark { width: 10px; height: 10px; border-radius: 3px; background: var(--claude); display: inline-block; transform: rotate(45deg); } +.claude-card #claude-status { margin: 0 0 8px; } +.client-list { margin-bottom: 8px; } +.client-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 8px; border-radius: 7px; background: var(--claude-soft); } +.client-list .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); } +.client-list .when { margin-left: auto; color: var(--text-2); font-size: 11px; } +.endpoint { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 4px 4px 4px 10px; border: 1px solid var(--stroke); border-radius: 7px; background: var(--surface); } +.endpoint code { flex: 1; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: text; } +.claude-card.off { opacity: 0.85; } + +/* ---------- switch ---------- */ +.switch { position: relative; display: inline-block; width: 40px; height: 20px; } +.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; } +.switch .track { position: absolute; inset: 0; border-radius: 999px; border: 1px solid var(--stroke-strong); background: transparent; transition: background 0.15s, border-color 0.15s; } +.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-2); transition: transform 0.15s, background 0.15s, width 0.15s; } +.switch input:checked + .track { background: var(--accent); border-color: var(--accent); } +.switch input:checked + .track::after { transform: translateX(20px); background: var(--accent-text); } +.switch input:active + .track::after { width: 16px; } +.switch input:checked:active + .track::after { transform: translateX(16px); } +.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; } + +/* ---------- stage ---------- */ +.stage { + flex: 1; min-height: 0; + background: var(--stage-bg); + border: 1px solid var(--stroke); + border-radius: var(--radius); + display: grid; place-items: center; + overflow: hidden; position: relative; + box-shadow: var(--shadow); + background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.045) 1px, transparent 0); + background-size: 18px 18px; +} +.frame { position: relative; overflow: hidden; background: #000; cursor: grab; touch-action: none; border-radius: 2px; } +.frame.zoomed { cursor: grab; } +.frame.dragging { cursor: grabbing; } +.zoomer { position: absolute; inset: 0; transform-origin: center; will-change: transform; } +.zoomer video { position: absolute; object-fit: fill; transform-origin: center; pointer-events: none; background: #000; } +.freeze { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } +.overlay { position: absolute; inset: 0; pointer-events: none; } +#overlay-grid { + background-image: + linear-gradient(to right, transparent calc(33.333% - 0.5px), rgba(255,255,255,0.35) calc(33.333% - 0.5px), rgba(255,255,255,0.35) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), rgba(255,255,255,0.35) calc(66.666% - 0.5px), rgba(255,255,255,0.35) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)), + linear-gradient(to bottom, transparent calc(33.333% - 0.5px), rgba(255,255,255,0.35) calc(33.333% - 0.5px), rgba(255,255,255,0.35) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), rgba(255,255,255,0.35) calc(66.666% - 0.5px), rgba(255,255,255,0.35) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)); +} +#overlay-cross::before, #overlay-cross::after { content: ""; position: absolute; background: rgba(255, 80, 80, 0.85); box-shadow: 0 0 0 1px rgba(0,0,0,0.35); } +#overlay-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; } +#overlay-cross::after { top: 50%; left: 0; right: 0; height: 1px; } + +.hud { + position: absolute; z-index: 3; pointer-events: none; + padding: 5px 10px; border-radius: 8px; + background: rgba(10, 12, 16, 0.62); + backdrop-filter: blur(10px); + color: #f2f4f7; font-size: 11.5px; + border: 1px solid rgba(255, 255, 255, 0.08); + display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; +} +.hud-tl { top: 12px; left: 12px; } +.hud-bl { bottom: 12px; left: 12px; pointer-events: auto; } +.hud-br { bottom: 12px; right: 12px; font-weight: 600; } +.hud .sep { width: 1px; height: 11px; background: rgba(255,255,255,0.25); } +.focus-meter .label { opacity: 0.7; } +.focus-meter .bar { position: relative; width: 120px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.14); overflow: hidden; } +.focus-meter .bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, #f59e0b, #5ee0a0); transition: width 0.18s; } +.focus-meter .bar b { position: absolute; top: -1px; bottom: -1px; width: 2px; background: #fff; left: 0; transition: left 0.18s; } +.focus-meter #focus-val { min-width: 34px; text-align: right; } + +.claude-ring { + position: absolute; inset: 0; z-index: 4; pointer-events: none; + border: 2px solid var(--claude); border-radius: 2px; + opacity: 0; transition: opacity 0.35s; + box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 0 60px color-mix(in srgb, var(--claude) 35%, transparent); + display: flex; align-items: flex-start; justify-content: center; +} +.claude-ring span { margin-top: 12px; padding: 4px 12px; border-radius: 999px; background: var(--claude); color: #fff; font-weight: 600; font-size: 12px; } +.claude-ring.active { opacity: 1; transition: opacity 0.08s; } +.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 5; } +.flash.go { animation: flash 0.45s ease-out; } +@keyframes flash { 0% { opacity: 0.55; } 100% { opacity: 0; } } + +.empty { text-align: center; max-width: 420px; padding: 24px; color: #e8eaee; } +.empty h3 { font-size: 18px; margin: 12px 0 6px; } +.empty p { margin: 0 0 16px; color: #b4b9c2; line-height: 1.5; } +.empty-art { color: #6b7380; display: grid; place-items: center; } +.empty-art svg { width: 56px; height: 56px; stroke-width: 1.2; } + +/* ---------- toolbar ---------- */ +.toolbar { + display: flex; align-items: center; gap: 12px; + padding: 6px 8px; + background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); +} +.group { display: flex; gap: 4px; align-items: center; } +.group + .group { padding-left: 12px; border-left: 1px solid var(--stroke); } +.group:last-child { border-left: 0; } + +/* ---------- activity ---------- */ +.activity { padding-bottom: 10px; } +.activity .card-head { margin-bottom: 8px; } +.badge { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--claude-soft); color: var(--claude); } +.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; min-height: 96px; align-items: stretch; } +.strip-empty { margin: auto 0; max-width: 520px; } +.shot { + flex: 0 0 auto; width: 148px; align-self: flex-start; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; position: relative; + border: 1px solid var(--stroke); background: var(--surface-2); padding: 0; text-align: left; + animation: pop 0.35s cubic-bezier(.2,.9,.3,1.2); +} +@keyframes pop { from { transform: scale(0.85) translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } } +.shot:hover { border-color: var(--stroke-strong); } +.shot img { display: block; width: 100%; height: 83px; object-fit: cover; background: #000; } +.shot .cap { display: flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 11px; color: var(--text-2); } +.shot .who { width: 7px; height: 7px; border-radius: 50%; background: var(--claude); flex: none; } +.shot.user .who { background: var(--accent); } +.shot .cap .t { margin-left: auto; font-variant-numeric: tabular-nums; } +.shot .note { padding: 0 8px 5px; font-size: 11px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } + +/* ---------- right rail ---------- */ +.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; } +.field:last-child { margin-bottom: 0; } +.field-label { font-size: 11.5px; color: var(--text-2); font-weight: 500; } +.seg { display: flex; gap: 4px; } +.select, .input { height: 32px; padding: 0 10px; width: 100%; } +textarea.input { height: auto; padding: 8px 10px; resize: vertical; user-select: text; } +.controls { display: flex; flex-direction: column; gap: 14px; } +.control .head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; } +.control .head .v { color: var(--text-2); font-variant-numeric: tabular-nums; } +.controls .none { color: var(--text-2); font-size: 12px; margin: 0; } +input[type="range"] { width: 100%; accent-color: var(--accent); margin: 0; height: 18px; } +.mode-seg { display: flex; flex-wrap: wrap; gap: 4px; } +.mode-seg button { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 6px; border: 1px solid var(--stroke); background: var(--surface-2); } +.mode-seg button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; } + +/* ---------- dialogs & toasts ---------- */ +.dialog { border: 1px solid var(--stroke-strong); border-radius: 14px; padding: 20px; width: 400px; max-width: 90vw; background: var(--window-bg); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,0.45); } +.dialog::backdrop { background: rgba(0, 0, 0, 0.45); } +.dialog h3 { font-size: 16px; margin-bottom: 14px; } +.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; } +.share-preview { width: 100%; border-radius: 8px; margin-bottom: 12px; background: #000; max-height: 220px; object-fit: contain; } +.lightbox { width: min(92vw, 1100px); padding: 12px; } +.lightbox img { width: 100%; max-height: 74vh; object-fit: contain; border-radius: 8px; background: #000; display: block; } +.lightbox-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 12px; } +.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; } +.toast { padding: 10px 14px; border-radius: 9px; background: var(--window-bg); border: 1px solid var(--stroke-strong); box-shadow: var(--shadow); max-width: 360px; font-size: 12.5px; animation: pop 0.3s ease-out; } +.toast.claude { border-left: 3px solid var(--claude); } +.toast.error { border-left: 3px solid #e5484d; } + +@media (max-width: 1180px) { + #app { grid-template-columns: 240px minmax(0, 1fr) 260px; } +} +@media (prefers-reduced-motion: reduce) { + *, *::before, *::after { animation: none !important; transition: none !important; } +} + +.control.dead input, .control.dead .head { opacity: 0.45; } +.control.dead .tiny { margin: 0 0 4px; } diff --git a/src/renderer/viewer.ts b/src/renderer/viewer.ts new file mode 100644 index 0000000..3527235 --- /dev/null +++ b/src/renderer/viewer.ts @@ -0,0 +1,133 @@ +import type { Region } from '../shared/types.js'; +import { orientedSize } from './frames.js'; +import type { CameraSession } from './camera.js'; + +const MAX_ZOOM = 12; + +/** + * Shows the live video fitted to the stage, with wheel-zoom and drag-pan. The visible area is + * always a normalised rectangle of the oriented frame, so "what the human sees" can be captured exactly. + */ +export class Viewer extends EventTarget { + zoom = 1; + cx = 0.5; + cy = 0.5; + private boxW = 0; + private boxH = 0; + + constructor( + private readonly stage: HTMLElement, + private readonly frame: HTMLElement, + private readonly zoomer: HTMLElement, + private readonly video: HTMLVideoElement, + private readonly session: CameraSession, + ) { + super(); + new ResizeObserver(() => this.layout()).observe(stage); + this.bindPointer(); + } + + visibleRegion(): Region { + const w = 1 / this.zoom; + return { x: this.cx - w / 2, y: this.cy - w / 2, width: w, height: w }; + } + + reset(): void { + this.zoom = 1; + this.cx = this.cy = 0.5; + this.apply(); + } + + zoomBy(factor: number, nx = 0.5, ny = 0.5): void { + const z2 = Math.min(MAX_ZOOM, Math.max(1, this.zoom * factor)); + const ox = this.cx + (nx - 0.5) / this.zoom; + const oy = this.cy + (ny - 0.5) / this.zoom; + this.zoom = z2; + this.cx = ox - (nx - 0.5) / z2; + this.cy = oy - (ny - 0.5) / z2; + this.apply(); + } + + layout(): void { + const { width, height } = this.session; + if (!width || !height) { + this.frame.hidden = true; + return; + } + this.frame.hidden = false; + const o = this.session.orientation; + const { width: ow, height: oh } = orientedSize(width, height, o); + const availW = this.stage.clientWidth; + const availH = this.stage.clientHeight; + const fit = Math.min(availW / ow, availH / oh); + this.boxW = Math.max(1, Math.floor(ow * fit)); + this.boxH = Math.max(1, Math.floor(oh * fit)); + this.frame.style.width = `${this.boxW}px`; + this.frame.style.height = `${this.boxH}px`; + + const odd = o.rotation === 90 || o.rotation === 270; + const vw = odd ? this.boxH : this.boxW; + const vh = odd ? this.boxW : this.boxH; + this.video.style.width = `${vw}px`; + this.video.style.height = `${vh}px`; + this.video.style.left = `${(this.boxW - vw) / 2}px`; + this.video.style.top = `${(this.boxH - vh) / 2}px`; + this.video.style.transform = `rotate(${o.rotation}deg) scaleX(${o.mirror ? -1 : 1})`; + this.apply(); + } + + private apply(): void { + const half = 0.5 / this.zoom; + this.cx = Math.min(1 - half, Math.max(half, this.cx)); + this.cy = Math.min(1 - half, Math.max(half, this.cy)); + const tx = (0.5 - this.cx) * this.boxW * this.zoom; + const ty = (0.5 - this.cy) * this.boxH * this.zoom; + this.zoomer.style.transform = `translate(${tx}px, ${ty}px) scale(${this.zoom})`; + this.frame.classList.toggle('zoomed', this.zoom > 1.001); + this.dispatchEvent(new Event('change')); + } + + private bindPointer(): void { + const frame = this.frame; + const norm = (e: MouseEvent) => { + const r = frame.getBoundingClientRect(); + return { x: (e.clientX - r.left) / r.width, y: (e.clientY - r.top) / r.height }; + }; + frame.addEventListener( + 'wheel', + (e) => { + e.preventDefault(); + const n = norm(e); + this.zoomBy(Math.exp(-e.deltaY * 0.0018), n.x, n.y); + }, + { passive: false }, + ); + let drag: { x: number; y: number } | null = null; + frame.addEventListener('pointerdown', (e) => { + if (e.button !== 0) return; + drag = { x: e.clientX, y: e.clientY }; + frame.setPointerCapture(e.pointerId); + frame.classList.add('dragging'); + }); + frame.addEventListener('pointermove', (e) => { + if (!drag) return; + this.cx -= (e.clientX - drag.x) / (this.boxW * this.zoom); + this.cy -= (e.clientY - drag.y) / (this.boxH * this.zoom); + drag = { x: e.clientX, y: e.clientY }; + this.apply(); + }); + const end = () => { + drag = null; + frame.classList.remove('dragging'); + }; + frame.addEventListener('pointerup', end); + frame.addEventListener('pointercancel', end); + frame.addEventListener('dblclick', (e) => { + if (this.zoom > 1.001) this.reset(); + else { + const n = norm(e); + this.zoomBy(3, n.x, n.y); + } + }); + } +} diff --git a/src/shared/ipc.ts b/src/shared/ipc.ts new file mode 100644 index 0000000..295aa7b --- /dev/null +++ b/src/shared/ipc.ts @@ -0,0 +1,22 @@ +/** IPC channel names. */ +export const IPC = { + // renderer -> main (invoke) + getSettings: 'settings:get', + patchSettings: 'settings:patch', + getServerInfo: 'server:info', + getActivity: 'activity:list', + getShared: 'shared:list', + saveCapture: 'capture:save', + shareFrame: 'shared:add', + openCaptures: 'captures:open', + revealFile: 'captures:reveal', + clearActivity: 'activity:clear', + rendererReady: 'renderer:ready', + commandResult: 'command:result', + // main -> renderer (send) + command: 'command:run', + serverInfo: 'server:info:update', + activityAdded: 'activity:added', + settingsChanged: 'settings:changed', + claudeCapturing: 'claude:capturing', +} as const; diff --git a/src/shared/types.ts b/src/shared/types.ts new file mode 100644 index 0000000..ddf2109 --- /dev/null +++ b/src/shared/types.ts @@ -0,0 +1,156 @@ +/** Types shared by the main process, the renderer and the MCP layer. */ + +export interface CameraInfo { + id: string; + label: string; + active: boolean; +} + +export type Rotation = 0 | 90 | 180 | 270; + +export interface Orientation { + rotation: Rotation; + mirror: boolean; +} + +/** A normalised rectangle (0..1) in the coordinates of the oriented camera frame. */ +export interface Region { + x: number; + y: number; + width: number; + height: number; +} + +export interface ControlRange { + min: number; + max: number; + step: number; +} + +export interface CameraControl { + name: string; + value: number | string | boolean | null; + range?: ControlRange; + options?: string[]; + /** False once the camera has been seen to ignore changes to this control. */ + responsive?: boolean; +} + +export interface CameraState { + active: CameraInfo | null; + cameras: CameraInfo[]; + width: number; + height: number; + fps: number; + orientation: Orientation; + focusScore: number | null; + controls: CameraControl[]; + maxResolution: { width: number; height: number } | null; +} + +export interface CaptureRequest { + cameraId?: string; + maxWidth: number; + format: 'jpeg' | 'png'; + quality: number; + region?: Region; + followUserView?: boolean; + /** Where the capture came from, for the activity strip. */ + source: 'claude' | 'user'; + note?: string; +} + +export interface FrameMetrics { + /** Variance of the Laplacian on a downscaled grey image. Higher is sharper; only comparable within one scene. */ + focusScore: number; + /** Mean luma, 0..255. */ + brightness: number; + /** Share of pixels clipped to white (>=250), 0..1. */ + overexposed: number; + /** Share of pixels crushed to black (<=5), 0..1. */ + underexposed: number; +} + +export interface CaptureResult { + data: Uint8Array; + mimeType: 'image/jpeg' | 'image/png'; + width: number; + height: number; + sourceWidth: number; + sourceHeight: number; + camera: CameraInfo; + region: Region | null; + orientation: Orientation; + metrics: FrameMetrics; + thumbnail: string; + capturedAt: string; +} + +export interface ActivityEntry { + id: string; + at: string; + source: 'claude' | 'user'; + tool: string; + cameraLabel: string; + width: number; + height: number; + bytes: number; + path: string; + thumbnail: string; + note?: string; + region: Region | null; +} + +export interface SharedFrame extends ActivityEntry { + note: string; +} + +export interface ClientInfo { + id: string; + name: string; + version: string; + connectedAt: string; + lastSeen: string; +} + +export interface ServerInfo { + running: boolean; + port: number; + url: string; + error?: string; + clients: ClientInfo[]; +} + +export interface Settings { + port: number; + claudeAccess: boolean; + lastCameraId: string | null; + orientations: Record; + resolutions: Record; + theme: 'system' | 'dark' | 'light'; +} + +export const DEFAULT_SETTINGS: Settings = { + port: 47821, + claudeAccess: true, + lastCameraId: null, + orientations: {}, + resolutions: {}, + theme: 'system', +}; + +/** Commands the main process (MCP) sends to the renderer, which owns the camera. */ +export interface RendererCommands { + getState(): CameraState; + selectCamera(args: { cameraId: string; width?: number; height?: number }): CameraState; + setControls(args: { controls: Record }): { + applied: Record; + rejected: Record; + state: CameraState; + }; + setOrientation(args: Partial): CameraState; + capture(args: CaptureRequest): CaptureResult; + refreshCameras(): CameraState; +} + +export type RendererCommandName = keyof RendererCommands; diff --git a/test/mcp.test.ts b/test/mcp.test.ts new file mode 100644 index 0000000..539ae08 --- /dev/null +++ b/test/mcp.test.ts @@ -0,0 +1,267 @@ +import { afterAll, beforeAll, describe, expect, it } from 'vitest'; +import { Client } from '@modelcontextprotocol/sdk/client/index.js'; +import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js'; +import { mkdtemp, readFile } from 'node:fs/promises'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; +import { request } from 'node:http'; +import { AppHub } from '../src/main/hub.js'; +import { CaptureStore } from '../src/main/captures.js'; +import { startMcpHttp, type McpHttp } from '../src/main/mcp/http.js'; +import { createMcpServer, type CameraBackend } from '../src/main/mcp/tools.js'; +import type { CameraState, CaptureRequest, CaptureResult, RendererCommands } from '../src/shared/types.js'; + +// A minimal valid JPEG header + padding; the tools only forward bytes. +const JPEG = new Uint8Array([0xff, 0xd8, 0xff, 0xe0, ...new Array(64).fill(7), 0xff, 0xd9]); + +const cam = { id: 'cam-1', label: 'Test Scope', active: true }; +let state: CameraState = { + active: cam, + cameras: [cam, { id: 'cam-2', label: 'Webcam', active: false }], + width: 1920, + height: 1080, + fps: 30, + orientation: { rotation: 0, mirror: false }, + focusScore: 120, + maxResolution: { width: 1920, height: 1080 }, + controls: [ + { name: 'zoom', value: 100, range: { min: 100, max: 500, step: 1 } }, + { name: 'focusMode', value: 'continuous', options: ['manual', 'continuous'] }, + ], +}; + +const captures: CaptureRequest[] = []; + +const backend: CameraBackend = { + async call(name, args) { + switch (name) { + case 'getState': + case 'refreshCameras': + return state as never; + case 'selectCamera': { + const a = args as Parameters[0]; + const target = state.cameras.find((c) => c.id === a.cameraId || c.label.toLowerCase().includes(a.cameraId.toLowerCase())); + if (!target) throw new Error(`No camera matches "${a.cameraId}"`); + state = { ...state, active: { ...target, active: true }, cameras: state.cameras.map((c) => ({ ...c, active: c.id === target.id })) }; + return state as never; + } + case 'setControls': { + const a = args as Parameters[0]; + const applied: Record = {}; + const rejected: Record = {}; + for (const [k, v] of Object.entries(a.controls)) { + if (state.controls.some((c) => c.name === k)) applied[k] = v; + else rejected[k] = 'Not supported by this camera'; + } + return { applied, rejected, state } as never; + } + case 'setOrientation': { + state = { ...state, orientation: { ...state.orientation, ...(args as object) } }; + return state as never; + } + case 'capture': { + const req = args as CaptureRequest; + captures.push(req); + const result: CaptureResult = { + data: JPEG, + mimeType: req.format === 'png' ? 'image/png' : 'image/jpeg', + width: Math.min(req.maxWidth, 1920), + height: Math.round((Math.min(req.maxWidth, 1920) * 9) / 16), + sourceWidth: 1920, + sourceHeight: 1080, + camera: cam, + region: req.region ?? null, + orientation: state.orientation, + metrics: { focusScore: 5, brightness: 130, overexposed: 0.3, underexposed: 0 }, + thumbnail: 'data:image/jpeg;base64,AAAA', + capturedAt: new Date().toISOString(), + }; + return result as never; + } + } + }, +}; + +let http: McpHttp; +let hub: AppHub; +let access = true; +let client: Client; +let announced: string[] = []; +let dir: string; + +beforeAll(async () => { + dir = await mkdtemp(join(tmpdir(), 'electroscope-test-')); + hub = new AppHub(() => access, new CaptureStore(join(dir, 'c')), new CaptureStore(join(dir, 's')), { + activityAdded: () => undefined, + claudeCapturing: (t) => announced.push(t), + }); + http = await startMcpHttp({ port: 0, version: 'test', createServer: () => createMcpServer(backend, hub, 'test') }); + client = new Client({ name: 'vitest', version: '0.0.1' }); + await client.connect(new StreamableHTTPClientTransport(new URL(http.url))); +}); + +afterAll(async () => { + await client.close(); + await http.close(); +}); + +const text = (r: unknown) => + ((r as { content: unknown }).content as Array<{ type: string; text?: string }>).find((c) => c.type === 'text')?.text ?? ''; + +describe('MCP server', () => { + it('registers the documented tools and instructions', async () => { + const { tools } = await client.listTools(); + expect(tools.map((t) => t.name).sort()).toEqual([ + 'capture_sequence', + 'capture_snapshot', + 'get_shared_frames', + 'get_status', + 'list_cameras', + 'select_camera', + 'set_camera_controls', + 'set_orientation', + ]); + expect(client.getInstructions()).toMatch(/do not ask them to stop/); + }); + + it('tracks connected clients by name', () => { + expect(http.clients().map((c) => c.name)).toContain('vitest'); + }); + + it('get_status reports camera, controls and access', async () => { + const s = JSON.parse(text(await client.callTool({ name: 'get_status', arguments: {} }))); + expect(s).toMatchObject({ claude_access: true, active_camera: 'Test Scope', resolution: '1920x1080' }); + expect(s.controls.map((c: { name: string }) => c.name)).toEqual(['zoom', 'focusMode']); + }); + + it('capture_snapshot returns an image block, metrics and hints, and saves the file', async () => { + announced = []; + const r = await client.callTool({ name: 'capture_snapshot', arguments: { max_width: 640 } }); + const blocks = r.content as Array<{ type: string; data?: string; mimeType?: string }>; + expect(blocks[0]).toMatchObject({ type: 'image', mimeType: 'image/jpeg' }); + expect(Buffer.from(blocks[0]!.data!, 'base64')).toEqual(Buffer.from(JPEG)); + const meta = JSON.parse(text(r)); + expect(meta).toMatchObject({ width: 640, camera: 'Test Scope', focus_score: 5 }); + expect(meta.hints.join(' ')).toMatch(/blown out/); + expect(meta.hints.join(' ')).toMatch(/out of focus/); + expect(await readFile(meta.saved_to)).toEqual(Buffer.from(JPEG)); + expect(announced).toEqual(['capture_snapshot']); + expect(captures.at(-1)).toMatchObject({ maxWidth: 640, format: 'jpeg', source: 'claude' }); + }); + + it('passes region, format and follow_user_view through', async () => { + await client.callTool({ + name: 'capture_snapshot', + arguments: { region: { x: 0.1, y: 0.2, width: 0.3, height: 0.4 }, format: 'png', quality: 100 }, + }); + expect(captures.at(-1)).toMatchObject({ format: 'png', region: { x: 0.1, y: 0.2, width: 0.3, height: 0.4 } }); + await client.callTool({ name: 'capture_snapshot', arguments: { follow_user_view: true, region: { x: 0, y: 0, width: 1, height: 1 } } }); + expect(captures.at(-1)?.followUserView).toBe(true); + expect(captures.at(-1)?.region).toBeUndefined(); + }); + + it('rejects out-of-range arguments', async () => { + const r = await client.callTool({ name: 'capture_snapshot', arguments: { max_width: 99999 } }).catch((e: Error) => e); + const failed = r instanceof Error || (r as { isError?: boolean }).isError; + expect(failed).toBe(true); + }); + + it('capture_sequence returns one image per frame with timing', async () => { + const r = await client.callTool({ name: 'capture_sequence', arguments: { count: 3, interval_ms: 100 } }); + const blocks = r.content as Array<{ type: string }>; + expect(blocks.filter((b) => b.type === 'image')).toHaveLength(3); + const frames = JSON.parse(text(r)).frames; + expect(frames.map((f: { index: number }) => f.index)).toEqual([1, 2, 3]); + expect(frames[2].t_ms).toBeGreaterThanOrEqual(190); + expect(captures.at(-1)?.maxWidth).toBe(800); + }); + + it('select_camera switches by partial name and errors clearly on a miss', async () => { + const ok = JSON.parse(text(await client.callTool({ name: 'select_camera', arguments: { camera: 'webcam' } }))); + expect(ok.active_camera).toBe('Webcam'); + const bad = await client.callTool({ name: 'select_camera', arguments: { camera: 'nope' } }); + expect(bad.isError).toBe(true); + expect(text(bad)).toMatch(/No camera matches/); + await client.callTool({ name: 'select_camera', arguments: { camera: 'cam-1' } }); + }); + + it('set_camera_controls reports applied and rejected controls', async () => { + const r = await client.callTool({ name: 'set_camera_controls', arguments: { controls: { zoom: 300, bogus: 1 } } }); + const out = JSON.parse(text(r)); + expect(out.applied).toEqual({ zoom: 300 }); + expect(out.rejected.bogus).toMatch(/Not supported/); + expect(r.isError).toBeFalsy(); + const allBad = await client.callTool({ name: 'set_camera_controls', arguments: { controls: { bogus: 1 } } }); + expect(allBad.isError).toBe(true); + }); + + it('set_orientation updates orientation', async () => { + const r = JSON.parse(text(await client.callTool({ name: 'set_orientation', arguments: { rotation: 270, mirror: true } }))); + expect(r.orientation).toEqual({ rotation: 270, mirror: true }); + }); + + it('shared frames: empty, then delivered with note, then cleared', async () => { + expect(text(await client.callTool({ name: 'get_shared_frames', arguments: {} }))).toMatch(/not shared any/); + const result = await backend.call('capture', { maxWidth: 1000, format: 'jpeg', quality: 0.9, source: 'user' }); + await hub.addShared(result, 'check the 3V3 rail'); + const r = await client.callTool({ name: 'get_shared_frames', arguments: { clear: true } }); + expect((r.content as Array<{ type: string }>).filter((c) => c.type === 'image')).toHaveLength(1); + expect(JSON.parse(text(r)).frames[0].note).toBe('check the 3V3 rail'); + expect(text(await client.callTool({ name: 'get_shared_frames', arguments: {} }))).toMatch(/not shared any/); + }); + + it('is paused by the human: capture-type tools refuse, get_status still works', async () => { + access = false; + try { + for (const name of ['capture_snapshot', 'select_camera', 'set_orientation', 'get_shared_frames']) { + const args = name === 'select_camera' ? { camera: 'x' } : {}; + const r = await client.callTool({ name, arguments: args }); + expect(r.isError, name).toBe(true); + expect(text(r)).toMatch(/paused/); + } + const s = JSON.parse(text(await client.callTool({ name: 'get_status', arguments: {} }))); + expect(s.claude_access).toBe(false); + } finally { + access = true; + } + }); +}); + +describe('HTTP transport safety', () => { + const post = (headers: Record, path = '/mcp') => + new Promise((resolve, reject) => { + const req = request({ host: '127.0.0.1', port: http.port, path, method: 'POST', headers: { 'content-type': 'application/json', ...headers } }, (res) => { + res.resume(); + resolve(res.statusCode ?? 0); + }); + req.on('error', reject); + req.end('{}'); + }); + + it('refuses a foreign Host header (DNS rebinding)', async () => { + expect(await post({ host: 'evil.example' })).toBe(403); + }); + + it('refuses a foreign Origin (browser pages)', async () => { + expect(await post({ origin: 'https://evil.example' })).toBe(403); + }); + + it('accepts a localhost Origin', async () => { + expect(await post({ origin: `http://localhost:${http.port}` })).not.toBe(403); + }); + + it('requires initialize before anything else and rejects unknown sessions', async () => { + expect(await post({})).toBe(400); + expect(await post({ 'mcp-session-id': 'nope' })).toBe(404); + }); + + it('serves /health and 404s other paths', async () => { + const h = await fetch(`http://127.0.0.1:${http.port}/health`).then((r) => r.json()); + expect(h).toMatchObject({ name: 'electroscope', ok: true }); + expect((await fetch(`http://127.0.0.1:${http.port}/other`)).status).toBe(404); + }); + + it('only listens on loopback', () => { + expect(http.url.startsWith('http://127.0.0.1:')).toBe(true); + }); +}); diff --git a/test/store.test.ts b/test/store.test.ts new file mode 100644 index 0000000..af5b778 --- /dev/null +++ b/test/store.test.ts @@ -0,0 +1,68 @@ +import { describe, expect, it, vi } from 'vitest'; +import { mkdtemp, readdir, writeFile } from 'node:fs/promises'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; +import { SettingsStore } from '../src/main/store.js'; +import { CaptureStore } from '../src/main/captures.js'; +import { RendererBridge } from '../src/main/bridge.js'; +import { DEFAULT_SETTINGS } from '../src/shared/types.js'; + +describe('SettingsStore', () => { + it('returns defaults, persists patches and survives a corrupt file', async () => { + const dir = await mkdtemp(join(tmpdir(), 'electroscope-store-')); + const store = SettingsStore.at(dir); + expect(await store.load()).toEqual(DEFAULT_SETTINGS); + await store.patch({ port: 5555, claudeAccess: false }); + + const again = SettingsStore.at(dir); + expect(await again.load()).toMatchObject({ port: 5555, claudeAccess: false, theme: 'system' }); + + await writeFile(join(dir, 'settings.json'), '{not json'); + expect(await SettingsStore.at(dir).load()).toEqual(DEFAULT_SETTINGS); + }); +}); + +describe('CaptureStore', () => { + it('names files by time and prunes the oldest beyond the limit', async () => { + const dir = await mkdtemp(join(tmpdir(), 'electroscope-caps-')); + const store = new CaptureStore(dir, 3); + for (let i = 0; i < 6; i++) { + await store.save(new Uint8Array([i]), i % 2 ? 'image/png' : 'image/jpeg', 'Capture Snapshot!'); + await new Promise((r) => setTimeout(r, 15)); + } + await new Promise((r) => setTimeout(r, 100)); + const files = await readdir(dir); + expect(files.length).toBeLessThanOrEqual(4); + expect(files.every((f) => /^\d{4}-.*-capture-snapshot\.(png|jpg)$/.test(f))).toBe(true); + }); +}); + +describe('RendererBridge', () => { + it('correlates replies, and surfaces renderer errors', async () => { + const sent: Array<{ id: string; name: string }> = []; + const bridge = new RendererBridge((e) => (sent.push(e), true), 500); + bridge.rendererReady(); + const ok = bridge.call('getState', undefined); + await vi.waitFor(() => expect(sent).toHaveLength(1)); + bridge.handleResult({ id: sent[0]!.id, ok: true, value: { hello: 1 } }); + await expect(ok).resolves.toEqual({ hello: 1 }); + + const bad = bridge.call('getState', undefined); + await vi.waitFor(() => expect(sent).toHaveLength(2)); + bridge.handleResult({ id: sent[1]!.id, ok: false, error: 'boom' }); + await expect(bad).rejects.toThrow('boom'); + }); + + it('times out when the renderer never answers and fails fast when the window is gone', async () => { + const silent = new RendererBridge(() => true, 50); + silent.rendererReady(); + await expect(silent.call('getState', undefined)).rejects.toThrow(/did not respond/); + + const gone = new RendererBridge(() => false, 50); + gone.rendererReady(); + await expect(gone.call('getState', undefined)).rejects.toThrow(/closed/); + + const notReady = new RendererBridge(() => true, 50); + await expect(notReady.call('getState', undefined)).rejects.toThrow(/not ready/); + }); +}); diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..4c86e1c --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "Bundler", + "lib": ["ES2023", "DOM", "DOM.Iterable"], + "strict": true, + "noUncheckedIndexedAccess": true, + "noEmit": true, + "skipLibCheck": true, + "esModuleInterop": true, + "resolveJsonModule": true, + "isolatedModules": true, + "types": ["node"] + }, + "include": ["src", "test", "scripts"] +}