From a7f84306621ca82068150dabbd689f4a9e2cbb07 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 20 May 2026 04:58:35 +0000 Subject: [PATCH 01/42] Initial plan From e99af7f829eeb3f47bfd50172e90cffc56b0f114 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 20 May 2026 07:54:08 +0000 Subject: [PATCH 02/42] Build client-only KeyBpmMap app Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/c0f558bc-e1a9-4945-80b0-fb7e2ddfbe74 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- .github/workflows/deploy.yml | 50 + .gitignore | 24 + README.md | 48 +- eslint.config.js | 22 + index.html | 17 + package-lock.json | 3543 ++++++++++++++++++++++++++ package.json | 35 + public/favicon.svg | 1 + src/App.css | 306 +++ src/App.tsx | 446 ++++ src/components/HeatmapChart.tsx | 115 + src/components/PolarDensityChart.tsx | 102 + src/index.css | 73 + src/lib/analysis.ts | 101 + src/lib/camelot.ts | 57 + src/lib/engineDj.ts | 275 ++ src/lib/exportSvg.ts | 45 + src/lib/mockData.ts | 164 ++ src/main.tsx | 10 + src/types.ts | 68 + tsconfig.app.json | 25 + tsconfig.json | 7 + tsconfig.node.json | 24 + vite.config.ts | 7 + 24 files changed, 5564 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy.yml create mode 100644 .gitignore create mode 100644 eslint.config.js create mode 100644 index.html create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 public/favicon.svg create mode 100644 src/App.css create mode 100644 src/App.tsx create mode 100644 src/components/HeatmapChart.tsx create mode 100644 src/components/PolarDensityChart.tsx create mode 100644 src/index.css create mode 100644 src/lib/analysis.ts create mode 100644 src/lib/camelot.ts create mode 100644 src/lib/engineDj.ts create mode 100644 src/lib/exportSvg.ts create mode 100644 src/lib/mockData.ts create mode 100644 src/main.tsx create mode 100644 src/types.ts create mode 100644 tsconfig.app.json create mode 100644 tsconfig.json create mode 100644 tsconfig.node.json create mode 100644 vite.config.ts diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..7bf8b1c --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,50 @@ +name: Deploy Pages + +on: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + + - name: Configure Pages + uses: actions/configure-pages@v5 + + - name: Install dependencies + run: npm ci + + - name: Build app + run: npm run build + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./dist + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/README.md b/README.md index bf1c4d4..4df9990 100644 --- a/README.md +++ b/README.md @@ -1 +1,47 @@ -# KeyBpmMap \ No newline at end of file +# KeyBpmMap + +KeyBpmMap is a client-only React application for exploring the harmonic and tempo shape of an Engine DJ music library. +It reads a local SQLite database in the browser with `sql.js`, converts Engine numeric keys into Camelot notation, and renders both a polar density map and a BPM-vs-key heatmap for fast DJ library analysis. + +## Features + +- Browser-only Engine DJ database loading (`Track`, `Playlist`, `PlaylistEntity`) +- Engine numeric key → Camelot conversion (`0=8B ... 23=7A`) +- Polar harmonic density map and rectangular BPM heatmap +- Playlist, rating, BPM, and text filters +- Region inspection for exact track lists inside a selected cell +- Playlist transition summaries derived from playlist ordering +- Sparse / missing region surfacing +- Mock dataset mode for first-run exploration +- PNG export for both charts +- GitHub Pages-ready static deployment + +## Local development + +```bash +npm install +npm run dev +``` + +Open the Vite dev server URL in your browser, then either: + +1. Load a local Engine DJ SQLite database file (`.db`, `.sqlite`, `.sqlite3`, `.backup`), or +2. Use the built-in mock crate to explore the interface without a real library. + +## Build and lint + +```bash +npm run build +npm run lint +``` + +## Deployment + +The repository includes a GitHub Pages workflow in `.github/workflows/deploy.yml`. +When the default branch is updated, the workflow builds the Vite app and deploys the generated static site to Pages. + +## Notes + +- Processing happens locally in the browser; there is no upload endpoint or server component. +- The parser is intentionally tolerant of minor schema variations by matching common column names case-insensitively. +- If a database is missing the `Track` table, the app shows a validation error instead of failing silently. diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..ef614d2 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,22 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import tseslint from 'typescript-eslint' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + js.configs.recommended, + tseslint.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + globals: globals.browser, + }, + }, +]) diff --git a/index.html b/index.html new file mode 100644 index 0000000..98c0331 --- /dev/null +++ b/index.html @@ -0,0 +1,17 @@ + + + + + + + + KeyBpmMap + + +
+ + + diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..f1b0221 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3543 @@ +{ + "name": "keybpmmap", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "keybpmmap", + "version": "0.0.0", + "dependencies": { + "d3": "^7.9.0", + "react": "^19.2.6", + "react-dom": "^19.2.6", + "sql.js": "^1.14.1" + }, + "devDependencies": { + "@eslint/js": "^10.0.1", + "@types/d3": "^7.4.3", + "@types/d3-scale-chromatic": "^3.1.0", + "@types/node": "^24.12.3", + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", + "@types/sql.js": "^1.4.11", + "@vitejs/plugin-react": "^6.0.1", + "eslint": "^10.3.0", + "eslint-plugin-react-hooks": "^7.1.1", + "eslint-plugin-react-refresh": "^0.5.2", + "globals": "^17.6.0", + "typescript": "~6.0.2", + "typescript-eslint": "^8.59.2", + "vite": "^8.0.12" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.3.tgz", + "integrity": "sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz", + "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz", + "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/template": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@emnapi/core": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", + "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.1", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", + "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", + "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", + "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.23.5", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", + "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^3.0.5", + "debug": "^4.3.1", + "minimatch": "^10.2.4" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.6.0.tgz", + "integrity": "sha512-ii6Bw9jJ2zi2cWA2Z+9/QZ/+3DX6kwaV5Q986D/CdP3Lap3w/pgQZ373FV7byY/i7L4IRH/G43I5dz1ClsCbpA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/core": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz", + "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/js": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz", + "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "eslint": "^10.0.0" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/@eslint/object-schema": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz", + "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.1.tgz", + "integrity": "sha512-rZAP3aVgB9ds9KOeUSL+zZ21hPmo8dh6fnIFwRQj5EAZl9gzR7wxYbYXYysAM8CTqGmUGyp2S4kUdV17MnGuWQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1", + "levn": "^0.4.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", + "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/types": "^0.15.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", + "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.2", + "@humanfs/types": "^0.15.0", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/types": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", + "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "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.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "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/@napi-rs/wasm-runtime": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.4.tgz", + "integrity": "sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.130.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.130.0.tgz", + "integrity": "sha512-ibD2usx9JRu7f5pu2tMKMI4cpA4NgXJQoYRP4pQ7Pxmn1l6k/53qWtQWZayhYy3X4QZkt90Ot+mJEaeXouio6Q==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Boshen" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.1.tgz", + "integrity": "sha512-fJI3I0r3C3Oj/zdBCpaCmBRZYf07xpaq4yCfDDoSFm+beWNzbIl26puW8RraUdugoJw/95zerNOn6jasAhzSmg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.1.tgz", + "integrity": "sha512-cKnAhWEsV7TPcA/5EAteDp6KcJZBQ2G+BqE7zayMMi7kMvwRsbv7WT9aOnn0WNl4SKEIf43vjS31iUPu80nzXg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.1.tgz", + "integrity": "sha512-YKrVwQjIRBPo+5G/u03wGjbdy4q7pyzCe93DK9VJ7zkVmeg8LJ7GbgsiHWdR4xSoe4CAXRD7Bcjgbtr64bkXNg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.1.tgz", + "integrity": "sha512-z/oBsREo46SsFqBwYtFe0kpJeBijAT48O/WXLI4suiCLBkr03RTtTJMCzSdDd2znlh8VJizL09XVkQgk8IZonw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.1.tgz", + "integrity": "sha512-ik8q7GM11zxvYxFc2PeDcT6TBvhCQMaUxfph/M5l9sKuTs/Sjg3L+Byw0F7w0ZVLBZmx30P+gG0ECzzN+MFcmQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.1.tgz", + "integrity": "sha512-QoSx2EkyrrdZ6kcyE8stqZ62t0Yra8Fs5ia9lOxJrh6TMQJK7gQKmscdTHf7pOXKREKrVwOtJcQG3qVSfc866A==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.1.tgz", + "integrity": "sha512-uwNwFpwKeNiZawfAWBgg0VIztPTV3ihhh1vV334h9ivnNLorxnQMU6Fz8wG1Zb4Qh9LC1/MkcyT3YlDXG3Rsgg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.1.tgz", + "integrity": "sha512-zY1bul7OWr7DFBiJ++wofXvnr8B45ce3QsQUhKrIhXsygAh7bTkwyeM1bi1a2g5C/yC/N8TZyGDEoMfm/l9mpg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.1.tgz", + "integrity": "sha512-0frlsT/f4Ft6I7SMESTKnF3cZsdicQn1dCMkF/jT9wDLE+gGoiQfv1nmT9e+s7s/fekvvy6tZM2jHvI2tkbJDQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.1.tgz", + "integrity": "sha512-XABVmGp9Tg0WspTVvwduTc4fpqy6JnAUrSQe6OuyqD/03nI7r0O9OWUkMIwFrjKAIqolvqoA4ZrJppgwE0Gxmw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.1.tgz", + "integrity": "sha512-bV4fzswuzVcKD90o/VM6QqKxnxlDq0g2BISDLNVmxrnhpv1DDbyPhCIjYfvzYLV+MvkKKnQt2Q6AO86SEBULUQ==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.1.tgz", + "integrity": "sha512-/Mh0Zhq3OP7fVs0kcQHZP6lZEthMGTaSf8UBQYSFEZDWGXXlEC+nJ6EqenaK2t4LBXMe3A+K/G2BVXXdtOr4PQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.1.tgz", + "integrity": "sha512-+1xc9X45l8ufsBAm6Gjvx2qDRIY9lTVt0cgWNcJ+1gdhXvkbxePA60yRTwSTuXL09CMhyJmjpV7E3NoyxbqFQQ==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "1.10.0", + "@emnapi/runtime": "1.10.0", + "@napi-rs/wasm-runtime": "^1.1.4" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.1.tgz", + "integrity": "sha512-1D+UqZdfnuR+Jy1GgMJwi85bD40H21uNmOPRWQhw4oRSuolZ/B5rixZ45DK2KXOTCvmVCecauWgEhbw8bI7tOw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.1.tgz", + "integrity": "sha512-INAycaWuhlOK3wk4mRHGsdgwYWmd9cChdPdE9bwWmy6rn9VqVNYNFGhOdXrofXUxwHIncSiPNb8tNm8knDVIeQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "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" + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz", + "integrity": "sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/d3": { + "version": "7.4.3", + "resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz", + "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/d3-array": "*", + "@types/d3-axis": "*", + "@types/d3-brush": "*", + "@types/d3-chord": "*", + "@types/d3-color": "*", + "@types/d3-contour": "*", + "@types/d3-delaunay": "*", + "@types/d3-dispatch": "*", + "@types/d3-drag": "*", + "@types/d3-dsv": "*", + "@types/d3-ease": "*", + "@types/d3-fetch": "*", + "@types/d3-force": "*", + "@types/d3-format": "*", + "@types/d3-geo": "*", + "@types/d3-hierarchy": "*", + "@types/d3-interpolate": "*", + "@types/d3-path": "*", + "@types/d3-polygon": "*", + "@types/d3-quadtree": "*", + "@types/d3-random": "*", + "@types/d3-scale": "*", + "@types/d3-scale-chromatic": "*", + "@types/d3-selection": "*", + "@types/d3-shape": "*", + "@types/d3-time": "*", + "@types/d3-time-format": "*", + "@types/d3-timer": "*", + "@types/d3-transition": "*", + "@types/d3-zoom": "*" + } + }, + "node_modules/@types/d3-array": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz", + "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-axis": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.6.tgz", + "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-brush": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.6.tgz", + "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-chord": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz", + "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-color": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", + "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-contour": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.6.tgz", + "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/d3-array": "*", + "@types/geojson": "*" + } + }, + "node_modules/@types/d3-delaunay": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz", + "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-dispatch": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.7.tgz", + "integrity": "sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-drag": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.7.tgz", + "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-dsv": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz", + "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-ease": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", + "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-fetch": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.7.tgz", + "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/d3-dsv": "*" + } + }, + "node_modules/@types/d3-force": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.10.tgz", + "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-format": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-format/-/d3-format-3.0.4.tgz", + "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-geo": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.0.tgz", + "integrity": "sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/geojson": "*" + } + }, + "node_modules/@types/d3-hierarchy": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz", + "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-interpolate": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", + "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/d3-color": "*" + } + }, + "node_modules/@types/d3-path": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz", + "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-polygon": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz", + "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-quadtree": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz", + "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-random": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.3.tgz", + "integrity": "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-scale": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz", + "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/d3-time": "*" + } + }, + "node_modules/@types/d3-scale-chromatic": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", + "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-selection": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.11.tgz", + "integrity": "sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-shape": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.8.tgz", + "integrity": "sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/d3-path": "*" + } + }, + "node_modules/@types/d3-time": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", + "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-time-format": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-4.0.3.tgz", + "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-timer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", + "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/d3-transition": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.9.tgz", + "integrity": "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-zoom": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.8.tgz", + "integrity": "sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/d3-interpolate": "*", + "@types/d3-selection": "*" + } + }, + "node_modules/@types/emscripten": { + "version": "1.41.5", + "resolved": "https://registry.npmjs.org/@types/emscripten/-/emscripten-1.41.5.tgz", + "integrity": "sha512-cMQm7pxu6BxtHyqJ7mQZ2kXWV5SLmugybFdHCBbJ5eHzOo6VhBckEgAT3//rP5FwPHNPeEiq4SmQ5ucBwsOo4Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/esrecurse": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz", + "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/geojson": { + "version": "7946.0.16", + "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz", + "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "24.12.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.12.4.tgz", + "integrity": "sha512-GUUEShf+PBCGW2KaXwcIt3Yk+e3pkKwWKb9GSyM9WQVE+ep2jzmHdGsHzu4wgcZy5fN9FBdVzjpBQsYlpfpgLA==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/@types/react": { + "version": "19.2.15", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.15.tgz", + "integrity": "sha512-eRwcGNHve+E8qtEQSSRl6urh+rFop4v8gm6O8rGv25CodbvFdLjA1vVQ1KkiFE0w0UPOnb8tDiFKL5lp0rtY5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.2.0" + } + }, + "node_modules/@types/sql.js": { + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/@types/sql.js/-/sql.js-1.4.11.tgz", + "integrity": "sha512-QXIx38p2ZThJaK9vP5ZdqdlRe1FG9I8SmCZOS7FHfB/2qPAjZwkL7/vlfPg6N/oWHuuOaGg/P/IRwfP2W0kWVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/emscripten": "*", + "@types/node": "*" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.59.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.59.4.tgz", + "integrity": "sha512-PegsU+XfyJJNjd4+u/k6f9yTyp0lEXXiPopUNobZcIAUJFGICFLN+sP0Rb3JehVmiij1Ph0dFGYqODoRo/2+6A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.12.2", + "@typescript-eslint/scope-manager": "8.59.4", + "@typescript-eslint/type-utils": "8.59.4", + "@typescript-eslint/utils": "8.59.4", + "@typescript-eslint/visitor-keys": "8.59.4", + "ignore": "^7.0.5", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.5.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.59.4", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.59.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.59.4.tgz", + "integrity": "sha512-zORHqO/tuhxY1zWuTvMUqddRxpiFJ72xVfcNoWpqdLjs6lfPbuQBJuW4pk+49/uBMy7Ssr4bzgjiKmmDB1UbZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.59.4", + "@typescript-eslint/types": "8.59.4", + "@typescript-eslint/typescript-estree": "8.59.4", + "@typescript-eslint/visitor-keys": "8.59.4", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.59.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.59.4.tgz", + "integrity": "sha512-Ly00Vu4oAacfDeHp2Zg85ioNG6l8HG+tN1D7J+xTHSxu9y0awYKJ2zH1rFBn8ZSfuGK+7FxK3Cgl3uAz0aZZLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.59.4", + "@typescript-eslint/types": "^8.59.4", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.59.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.59.4.tgz", + "integrity": "sha512-mUeR/3H1WrTAddJrwut8OoPjfauaztMQmRwV5fQTUyNVJCLiUXXe4lGEyYIL2oFDpP7UtgbGJXCt72wT0z2S3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.59.4", + "@typescript-eslint/visitor-keys": "8.59.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.59.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.59.4.tgz", + "integrity": "sha512-DLCpnKgD4alVxTBSKulK+gU1KCqOgUXfDRDXh2mZgzokQKa/70ax93I2uVO3m/LLvIAtWZIFoiifudmIqAxpMA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.59.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.59.4.tgz", + "integrity": "sha512-uonTuPAAKr9XaBGqJ3LjYTh72zy5DyGesljO9gtmk/eFW0W1fRHjnwVYKB35Lm8d5Q5CluEW3gPHjTvZTmgrfA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.59.4", + "@typescript-eslint/typescript-estree": "8.59.4", + "@typescript-eslint/utils": "8.59.4", + "debug": "^4.4.3", + "ts-api-utils": "^2.5.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.59.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.59.4.tgz", + "integrity": "sha512-F1o7WJcCq+bc8dwcO/YsSEOudAH8RDtaOhM6wcAQhcUsFhnWQl81JKy48q1hoxAU0qrzM89+31GYh1515Zde3Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.59.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.59.4.tgz", + "integrity": "sha512-F+RuOmcDXo4+TPdfd/TCLS3m2nw8gE9XXyZLrA3JBfaA5tz9TtdkyD3YJFmPxulyc2cKbEok/CvFE3MgSLWnag==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.59.4", + "@typescript-eslint/tsconfig-utils": "8.59.4", + "@typescript-eslint/types": "8.59.4", + "@typescript-eslint/visitor-keys": "8.59.4", + "debug": "^4.4.3", + "minimatch": "^10.2.2", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.5.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.0.tgz", + "integrity": "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.59.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.59.4.tgz", + "integrity": "sha512-cYXeNAUsG4lJo5dbc1FcKm+JwIWrj1/UpTORsC6tGMjEZ81DYcvIr9/ueikhMa/Y/gDQYGp+YX9/xQrXje5BJw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.59.4", + "@typescript-eslint/types": "8.59.4", + "@typescript-eslint/typescript-estree": "8.59.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.59.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.59.4.tgz", + "integrity": "sha512-U3gxVaDVnuZKhSspW/MzMxE1kq7zOdc072FcSNoqA1I9p8HyKbBFfEHoWckBAMgNMph4MamwS5iTVzFmrnt8TQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.59.4", + "eslint-visitor-keys": "^5.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.2.tgz", + "integrity": "sha512-DlSMqo4WhThw4vB8Mpn0Woe9J+Jfq1geJ61AKW0QEgLzGMNwtIMdxbDUzLxcun8W7NbJO0e2Jg/Nxm3cCSVzzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.0" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", + "babel-plugin-react-compiler": "^1.0.0", + "vite": "^8.0.0" + }, + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + } + } + }, + "node_modules/acorn": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "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/baseline-browser-mapping": { + "version": "2.10.31", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.31.tgz", + "integrity": "sha512-MujYO3eP72uvmSE0i4wltsodRfIpZATP3jvzRNRGGxgzId7aVocVJJV3nf01qnzzKFGxQVC9bpWxl5cjxTr/7Q==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/brace-expansion": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz", + "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/browserslist": { + "version": "4.28.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz", + "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.10.12", + "caniuse-lite": "^1.0.30001782", + "electron-to-chromium": "^1.5.328", + "node-releases": "^2.0.36", + "update-browserslist-db": "^1.2.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001793", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001793.tgz", + "integrity": "sha512-iwSsYWaCOoh26cV8NwNRViHlrfUvYsHDfRVcbtmw0Kg6PJIZZXwMkj1442FYLBGkeUf1juAsU3DTfxW579mrPA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/d3": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/d3/-/d3-7.9.0.tgz", + "integrity": "sha512-e1U46jVP+w7Iut8Jt8ri1YsPOvFpg46k+K8TpCb0P+zjCkjkPnV7WzfDJzMHy1LnA+wj5pLT1wjO901gLXeEhA==", + "license": "ISC", + "dependencies": { + "d3-array": "3", + "d3-axis": "3", + "d3-brush": "3", + "d3-chord": "3", + "d3-color": "3", + "d3-contour": "4", + "d3-delaunay": "6", + "d3-dispatch": "3", + "d3-drag": "3", + "d3-dsv": "3", + "d3-ease": "3", + "d3-fetch": "3", + "d3-force": "3", + "d3-format": "3", + "d3-geo": "3", + "d3-hierarchy": "3", + "d3-interpolate": "3", + "d3-path": "3", + "d3-polygon": "3", + "d3-quadtree": "3", + "d3-random": "3", + "d3-scale": "4", + "d3-scale-chromatic": "3", + "d3-selection": "3", + "d3-shape": "3", + "d3-time": "3", + "d3-time-format": "4", + "d3-timer": "3", + "d3-transition": "3", + "d3-zoom": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-array": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", + "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", + "license": "ISC", + "dependencies": { + "internmap": "1 - 2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-axis": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-axis/-/d3-axis-3.0.0.tgz", + "integrity": "sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-brush": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-3.0.0.tgz", + "integrity": "sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "3", + "d3-transition": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-chord": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-chord/-/d3-chord-3.0.1.tgz", + "integrity": "sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==", + "license": "ISC", + "dependencies": { + "d3-path": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-color": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", + "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-contour": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-contour/-/d3-contour-4.0.2.tgz", + "integrity": "sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==", + "license": "ISC", + "dependencies": { + "d3-array": "^3.2.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-delaunay": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/d3-delaunay/-/d3-delaunay-6.0.4.tgz", + "integrity": "sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A==", + "license": "ISC", + "dependencies": { + "delaunator": "5" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-dispatch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz", + "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-drag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz", + "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-selection": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-dsv": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-3.0.1.tgz", + "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==", + "license": "ISC", + "dependencies": { + "commander": "7", + "iconv-lite": "0.6", + "rw": "1" + }, + "bin": { + "csv2json": "bin/dsv2json.js", + "csv2tsv": "bin/dsv2dsv.js", + "dsv2dsv": "bin/dsv2dsv.js", + "dsv2json": "bin/dsv2json.js", + "json2csv": "bin/json2dsv.js", + "json2dsv": "bin/json2dsv.js", + "json2tsv": "bin/json2dsv.js", + "tsv2csv": "bin/dsv2dsv.js", + "tsv2json": "bin/dsv2json.js" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-ease": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", + "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-fetch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-fetch/-/d3-fetch-3.0.1.tgz", + "integrity": "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==", + "license": "ISC", + "dependencies": { + "d3-dsv": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-force": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-3.0.0.tgz", + "integrity": "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-quadtree": "1 - 3", + "d3-timer": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-format": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.2.tgz", + "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-geo": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-3.1.1.tgz", + "integrity": "sha512-637ln3gXKXOwhalDzinUgY83KzNWZRKbYubaG+fGVuc/dxO64RRljtCTnf5ecMyE1RIdtqpkVcq0IbtU2S8j2Q==", + "license": "ISC", + "dependencies": { + "d3-array": "2.5.0 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-hierarchy": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz", + "integrity": "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-interpolate": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", + "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-polygon": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-3.0.1.tgz", + "integrity": "sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-quadtree": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-3.0.1.tgz", + "integrity": "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-random": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-random/-/d3-random-3.0.1.tgz", + "integrity": "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-scale": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", + "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", + "license": "ISC", + "dependencies": { + "d3-array": "2.10.0 - 3", + "d3-format": "1 - 3", + "d3-interpolate": "1.2.0 - 3", + "d3-time": "2.1.1 - 3", + "d3-time-format": "2 - 4" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-scale-chromatic": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", + "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3", + "d3-interpolate": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-selection": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", + "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-shape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", + "license": "ISC", + "dependencies": { + "d3-path": "^3.1.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", + "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", + "license": "ISC", + "dependencies": { + "d3-array": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time-format": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", + "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", + "license": "ISC", + "dependencies": { + "d3-time": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-timer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", + "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-transition": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz", + "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3", + "d3-dispatch": "1 - 3", + "d3-ease": "1 - 3", + "d3-interpolate": "1 - 3", + "d3-timer": "1 - 3" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "d3-selection": "2 - 3" + } + }, + "node_modules/d3-zoom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz", + "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "2 - 3", + "d3-transition": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/delaunator": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/delaunator/-/delaunator-5.1.0.tgz", + "integrity": "sha512-AGrQ4QSgssa1NGmWmLPqN5NY2KajF5MqxetNEO+o0n3ZwZZeTmt7bBnvzHWrmkZFxGgr4HdyFgelzgi06otLuQ==", + "license": "ISC", + "dependencies": { + "robust-predicates": "^3.0.2" + } + }, + "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/electron-to-chromium": { + "version": "1.5.360", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.360.tgz", + "integrity": "sha512-GkcBt6YYAw9SxFWn+xVar4cLVGlXVuswwtRLBozi2zp0GjXs4ZnOrqV4zbXzg35n7w81hCkyJNYicgXlVHAmBA==", + "dev": true, + "license": "ISC" + }, + "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-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", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.4.0.tgz", + "integrity": "sha512-loXy6bWOoP3EP6JA7jo6p5jMpBJmHmsNZM5SFRHLdh1MGOPurMnNBj4ZlAbaqUAaQWbCr7jHV4P7gzAyryZWkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.2", + "@eslint/config-array": "^0.23.5", + "@eslint/config-helpers": "^0.6.0", + "@eslint/core": "^1.2.1", + "@eslint/plugin-kit": "^0.7.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.14.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^9.1.2", + "eslint-visitor-keys": "^5.0.1", + "espree": "^11.2.0", + "esquery": "^1.7.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "minimatch": "^10.2.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz", + "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.24.4", + "@babel/parser": "^7.24.4", + "hermes-parser": "^0.25.1", + "zod": "^3.25.0 || ^4.0.0", + "zod-validation-error": "^3.5.0 || ^4.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0" + } + }, + "node_modules/eslint-plugin-react-refresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.5.2.tgz", + "integrity": "sha512-hmgTH57GfzoTFjVN0yBwTggnsVUF2tcqi7RJZHqi9lIezSs4eFyAMktA68YD4r5kNw1mxyY4dmkyoFDb3FIqrA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "eslint": "^9 || ^10" + } + }, + "node_modules/eslint-scope": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", + "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@types/esrecurse": "^4.3.1", + "@types/estree": "^1.0.8", + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", + "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.16.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^5.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "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/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz", + "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==", + "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" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-17.6.0.tgz", + "integrity": "sha512-sepffkT8stwnIYbsMBpoCHJuJM5l98FUF2AnE07hfvE0m/qp3R586hw4jF4uadbhvg1ooIdzuu7CsfD2jzCaNA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/hermes-estree": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz", + "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", + "dev": true, + "license": "MIT" + }, + "node_modules/hermes-parser": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz", + "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hermes-estree": "0.25.1" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/internmap": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", + "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "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": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "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/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/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lightningcss": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", + "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.32.0", + "lightningcss-darwin-arm64": "1.32.0", + "lightningcss-darwin-x64": "1.32.0", + "lightningcss-freebsd-x64": "1.32.0", + "lightningcss-linux-arm-gnueabihf": "1.32.0", + "lightningcss-linux-arm64-gnu": "1.32.0", + "lightningcss-linux-arm64-musl": "1.32.0", + "lightningcss-linux-x64-gnu": "1.32.0", + "lightningcss-linux-x64-musl": "1.32.0", + "lightningcss-win32-arm64-msvc": "1.32.0", + "lightningcss-win32-x64-msvc": "1.32.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", + "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", + "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", + "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", + "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", + "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", + "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", + "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/minimatch": { + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.5" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "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==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.44", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.44.tgz", + "integrity": "sha512-5WUyunoPMsvvEhS8AxHtRzP+oA8UCkJ7YRxatWKjngndhDGLiqEVAQKWjFAiAiuL8zMRGzGSJxFnLetoa43qGQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "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.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", + "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", + "dependencies": { + "nanoid": "^3.3.12", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/react": { + "version": "19.2.6", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.6.tgz", + "integrity": "sha512-sfWGGfavi0xr8Pg0sVsyHMAOziVYKgPLNrS7ig+ivMNb3wbCBw3KxtflsGBAwD3gYQlE/AEZsTLgToRrSCjb0Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.6", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.6.tgz", + "integrity": "sha512-0prMI+hvBbPjsWnxDLxlCGyM8PN6UuWjEUCYmZhO67xIV9Xasa/r/vDnq+Xyq4Lo27g8QSbO5YzARu0D1Sps3g==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.6" + } + }, + "node_modules/robust-predicates": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz", + "integrity": "sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==", + "license": "Unlicense" + }, + "node_modules/rolldown": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.1.tgz", + "integrity": "sha512-X0KQHljNnEkWNqqiz9zJrGunh1B0HgOxLXvnFpCOcadzcy5qohZ3tqMEUg00vncoRovXuK3ZqCT9KnnKzoInFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.130.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm64": "1.0.1", + "@rolldown/binding-darwin-arm64": "1.0.1", + "@rolldown/binding-darwin-x64": "1.0.1", + "@rolldown/binding-freebsd-x64": "1.0.1", + "@rolldown/binding-linux-arm-gnueabihf": "1.0.1", + "@rolldown/binding-linux-arm64-gnu": "1.0.1", + "@rolldown/binding-linux-arm64-musl": "1.0.1", + "@rolldown/binding-linux-ppc64-gnu": "1.0.1", + "@rolldown/binding-linux-s390x-gnu": "1.0.1", + "@rolldown/binding-linux-x64-gnu": "1.0.1", + "@rolldown/binding-linux-x64-musl": "1.0.1", + "@rolldown/binding-openharmony-arm64": "1.0.1", + "@rolldown/binding-wasm32-wasi": "1.0.1", + "@rolldown/binding-win32-arm64-msvc": "1.0.1", + "@rolldown/binding-win32-x64-msvc": "1.0.1" + } + }, + "node_modules/rw": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", + "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==", + "license": "BSD-3-Clause" + }, + "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/scheduler": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", + "license": "MIT" + }, + "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/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "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==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sql.js": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/sql.js/-/sql.js-1.14.1.tgz", + "integrity": "sha512-gcj8zBWU5cFsi9WUP+4bFNXAyF1iRpA3LLyS/DP5xlrNzGmPIizUeBggKa8DbDwdqaKwUcTEnChtd2grWo/x/A==", + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.16", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz", + "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==", + "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/ts-api-utils": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz", + "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD", + "optional": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typescript": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.59.4", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.59.4.tgz", + "integrity": "sha512-Rw6+44QNFaXtgHSjPy+Kw8hrJniMYzR85E9yLmOLcfZ91/rz+JXQbDTCmc6ccxMPY6K6PgAq26f0JCBfR7LIPQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.59.4", + "@typescript-eslint/parser": "8.59.4", + "@typescript-eslint/typescript-estree": "8.59.4", + "@typescript-eslint/utils": "8.59.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "dev": true, + "license": "MIT" + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/vite": { + "version": "8.0.13", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.13.tgz", + "integrity": "sha512-MFtjBYgzmSxmgA4RAfjIyXWpGe1oALnjgUTzzV7QLx/TKxCzjtMH6Fd9/eVK+5Fg1qNoz5VAwsmMs/NofrmJvw==", + "dev": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.32.0", + "picomatch": "^4.0.4", + "postcss": "^8.5.14", + "rolldown": "1.0.1", + "tinyglobby": "^0.2.16" + }, + "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.1.18", + "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/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "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.4.3", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz", + "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-validation-error": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", + "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..2e447ee --- /dev/null +++ b/package.json @@ -0,0 +1,35 @@ +{ + "name": "keybpmmap", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc -b && vite build", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "d3": "^7.9.0", + "react": "^19.2.6", + "react-dom": "^19.2.6", + "sql.js": "^1.14.1" + }, + "devDependencies": { + "@eslint/js": "^10.0.1", + "@types/d3": "^7.4.3", + "@types/d3-scale-chromatic": "^3.1.0", + "@types/node": "^24.12.3", + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", + "@types/sql.js": "^1.4.11", + "@vitejs/plugin-react": "^6.0.1", + "eslint": "^10.3.0", + "eslint-plugin-react-hooks": "^7.1.1", + "eslint-plugin-react-refresh": "^0.5.2", + "globals": "^17.6.0", + "typescript": "~6.0.2", + "typescript-eslint": "^8.59.2", + "vite": "^8.0.12" + } +} diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..6893eb1 --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/App.css b/src/App.css new file mode 100644 index 0000000..352c435 --- /dev/null +++ b/src/App.css @@ -0,0 +1,306 @@ +.app-shell { + width: min(1380px, calc(100% - 32px)); + margin: 0 auto; + padding: 32px 0 48px; + display: grid; + gap: 20px; +} + +.panel { + background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(7, 11, 20, 0.96)); + border: 1px solid rgba(148, 163, 184, 0.18); + border-radius: 24px; + box-shadow: 0 18px 50px rgba(2, 6, 23, 0.35); +} + +.hero-panel { + display: grid; + gap: 20px; + padding: 32px; +} + +.eyebrow, +.label, +.chart-label, +.muted { + color: #94a3b8; +} + +.eyebrow, +.label { + margin: 0 0 8px; + text-transform: uppercase; + letter-spacing: 0.18em; + font-size: 0.78rem; +} + +.lede { + max-width: 68rem; +} + +.hero-actions { + display: flex; + flex-wrap: wrap; + gap: 12px; +} + +.hero-notes { + margin: 0; + padding-left: 18px; + display: grid; + gap: 8px; + color: #cbd5e1; +} + +.primary-button, +.secondary-button, +.simple-list button { + border: 0; + border-radius: 999px; + padding: 0.85rem 1.2rem; + font: inherit; + cursor: pointer; + transition: + transform 120ms ease, + box-shadow 120ms ease, + background 120ms ease; +} + +.primary-button { + background: linear-gradient(135deg, #7c3aed, #06b6d4); + color: white; + box-shadow: 0 12px 30px rgba(14, 165, 233, 0.22); +} + +.secondary-button, +.simple-list button { + background: rgba(148, 163, 184, 0.12); + color: #e2e8f0; +} + +.primary-button:hover, +.secondary-button:hover, +.simple-list button:hover { + transform: translateY(-1px); +} + +.primary-button:disabled { + cursor: wait; + opacity: 0.7; +} + +.source-panel, +.filters-panel { + padding: 24px 28px; +} + +.source-panel { + display: grid; + gap: 16px; + grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); +} + +.field-grid { + display: grid; + gap: 16px; + grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); +} + +.field-grid label { + display: grid; + gap: 8px; + font-weight: 600; + color: #e2e8f0; +} + +input, +select { + width: 100%; + border: 1px solid rgba(148, 163, 184, 0.25); + border-radius: 14px; + padding: 0.78rem 0.95rem; + font: inherit; + color: #f8fafc; + background: rgba(15, 23, 42, 0.72); + box-sizing: border-box; +} + +.stats-grid, +.visual-grid, +.insights-grid { + display: grid; + gap: 20px; +} + +.stats-grid { + grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); +} + +.stat-card { + padding: 22px 24px; +} + +.stat-card span { + color: #94a3b8; +} + +.stat-card strong { + display: block; + font-size: 2rem; + margin: 10px 0 6px; +} + +.visual-grid { + grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); +} + +.chart-panel, +.insight-panel { + padding: 24px; +} + +.chart-header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 16px; + margin-bottom: 18px; +} + +.chart-svg { + width: 100%; + height: auto; + display: block; +} + +.chart-region { + cursor: pointer; +} + +.chart-label { + font-size: 0.78rem; + fill: #cbd5e1; +} + +.muted { + fill: #94a3b8; +} + +.insights-grid { + grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); +} + +.insight-subtitle, +.placeholder-text, +.error-banner { + color: #cbd5e1; +} + +.error-banner { + padding: 16px 20px; + border-color: rgba(248, 113, 113, 0.4); + background: rgba(127, 29, 29, 0.35); +} + +.track-list, +.simple-list { + list-style: none; + margin: 0; + padding: 0; + display: grid; + gap: 12px; +} + +.track-list li, +.simple-list li { + border: 1px solid rgba(148, 163, 184, 0.16); + border-radius: 18px; + padding: 14px 16px; + background: rgba(15, 23, 42, 0.55); +} + +.track-list li { + display: grid; + gap: 8px; +} + +.track-list strong, +.simple-list strong, +.source-panel strong { + color: #f8fafc; +} + +.track-list span, +.simple-list span, +.source-panel p, +.stat-card p, +.chart-header p, +.insight-panel p { + color: #cbd5e1; +} + +.track-meta { + display: flex; + flex-wrap: wrap; + gap: 8px; + font-size: 0.92rem; +} + +.track-meta span, +.simple-list em { + background: rgba(148, 163, 184, 0.12); + border-radius: 999px; + padding: 0.28rem 0.65rem; + font-style: normal; +} + +.simple-list button { + width: 100%; + padding: 0; + display: flex; + justify-content: space-between; + align-items: center; + gap: 10px; + background: transparent; +} + +.simple-list li > div { + display: grid; + gap: 4px; +} + +.visually-hidden { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; +} + +@media (max-width: 720px) { + .app-shell { + width: min(100% - 20px, 100%); + padding-top: 20px; + } + + .hero-panel, + .source-panel, + .filters-panel, + .chart-panel, + .insight-panel { + padding: 20px; + } + + .chart-header { + flex-direction: column; + } + + .simple-list button { + align-items: flex-start; + flex-direction: column; + } +} diff --git a/src/App.tsx b/src/App.tsx new file mode 100644 index 0000000..7e774eb --- /dev/null +++ b/src/App.tsx @@ -0,0 +1,446 @@ +import { useMemo, useRef, useState, type ChangeEvent } from 'react' +import './App.css' +import HeatmapChart from './components/HeatmapChart' +import PolarDensityChart from './components/PolarDensityChart' +import { + BPM_BANDS, + buildDensityCells, + findSparseCells, + summarizeTracks, + summarizeTransitions, +} from './lib/analysis' +import { loadEngineDjLibrary } from './lib/engineDj' +import { downloadSvgAsPng } from './lib/exportSvg' +import { createMockLibrary } from './lib/mockData' +import type { LibraryData, TrackRecord } from './types' + +const initialFilters = { + playlistId: 'all', + query: '', + minRating: '0', + bpmMin: '', + bpmMax: '', +} + +function App() { + const [library, setLibrary] = useState(() => createMockLibrary()) + const [filters, setFilters] = useState(initialFilters) + const [selectedCellId, setSelectedCellId] = useState(null) + const [error, setError] = useState(null) + const [loading, setLoading] = useState(false) + const fileInputRef = useRef(null) + const polarRef = useRef(null) + const heatmapRef = useRef(null) + + const playlistLookup = useMemo( + () => new Map(library.playlists.map((playlist) => [playlist.id, playlist])), + [library.playlists], + ) + + const filteredTracks = useMemo(() => { + const playlistTrackIds = + filters.playlistId === 'all' + ? null + : new Set(playlistLookup.get(filters.playlistId)?.trackIds ?? []) + const query = filters.query.trim().toLowerCase() + const minRating = Number(filters.minRating) || 0 + const bpmMin = filters.bpmMin === '' ? null : Number(filters.bpmMin) + const bpmMax = filters.bpmMax === '' ? null : Number(filters.bpmMax) + + return library.tracks.filter((track) => { + if (playlistTrackIds && !playlistTrackIds.has(track.id)) { + return false + } + + if (query) { + const haystack = `${track.artist} ${track.title} ${track.camelotKey}`.toLowerCase() + if (!haystack.includes(query)) { + return false + } + } + + if ((track.rating ?? 0) < minRating) { + return false + } + + if (bpmMin !== null && (track.bpm === null || track.bpm < bpmMin)) { + return false + } + + if (bpmMax !== null && (track.bpm === null || track.bpm > bpmMax)) { + return false + } + + return true + }) + }, [filters, library.tracks, playlistLookup]) + + const filteredTrackIds = useMemo( + () => new Set(filteredTracks.map((track) => track.id)), + [filteredTracks], + ) + + const filteredTransitions = useMemo(() => { + return library.transitions.filter((transition) => { + if ( + filters.playlistId !== 'all' && + transition.playlistId !== filters.playlistId + ) { + return false + } + + return ( + filteredTrackIds.has(transition.fromTrackId) && + filteredTrackIds.has(transition.toTrackId) + ) + }) + }, [filteredTrackIds, filters.playlistId, library.transitions]) + + const densityCells = useMemo(() => buildDensityCells(filteredTracks), [filteredTracks]) + const selectedCell = useMemo( + () => densityCells.find((cell) => cell.id === selectedCellId) ?? null, + [densityCells, selectedCellId], + ) + const summary = useMemo(() => summarizeTracks(filteredTracks), [filteredTracks]) + const sparseCells = useMemo(() => findSparseCells(densityCells), [densityCells]) + const topTransitions = useMemo( + () => summarizeTransitions(filteredTransitions), + [filteredTransitions], + ) + + const handleLoadMockData = () => { + setLibrary(createMockLibrary()) + setSelectedCellId(null) + setFilters(initialFilters) + setError(null) + } + + const handleFileChange = async (event: ChangeEvent) => { + const file = event.target.files?.[0] + if (!file) { + return + } + + setLoading(true) + setError(null) + + try { + const nextLibrary = await loadEngineDjLibrary(file) + setLibrary(nextLibrary) + setSelectedCellId(null) + setFilters(initialFilters) + } catch (caughtError) { + setError( + caughtError instanceof Error + ? caughtError.message + : 'The selected database could not be parsed.', + ) + } finally { + setLoading(false) + event.target.value = '' + } + } + + const exportChart = async ( + svgElement: SVGSVGElement | null, + fileName: string, + ) => { + if (!svgElement) { + return + } + + await downloadSvgAsPng(svgElement, fileName) + } + + const selectedPlaylistName = + filters.playlistId === 'all' + ? 'All playlists' + : playlistLookup.get(filters.playlistId)?.name ?? 'Selected playlist' + + return ( +
+
+
+

Client-only Engine DJ map

+

See where your key and BPM density actually lives.

+

+ Load a local Engine DJ SQLite database in the browser, inspect harmonic and + tempo hotspots, and drill into sparse areas or playlist transitions without + uploading your library anywhere. +

+
+ +
+ + + +
+ +
    +
  • Reads SQLite locally with sql.js (WASM).
  • +
  • Understands Track / Playlist / PlaylistEntity relationships.
  • +
  • Exports both charts as PNG snapshots for notes or prep docs.
  • +
+
+ +
+
+

Current source

+ {library.sourceName} +

{library.source === 'mock' ? 'Demo dataset' : 'Local SQLite database'}

+
+
+

Playlist scope

+ {selectedPlaylistName} +

{library.playlists.length} detected playlists

+
+
+

Privacy

+ Browser only +

No upload path, no remote API, no backend.

+
+
+ + {error ?
{error}
: null} + +
+
+ + + + + + + + + +
+
+ +
+
+ Tracks in scope + {summary.totalTracks} +

{summary.playableTracks} with BPM analysis

+
+
+ Average BPM + {summary.averageBpm ? summary.averageBpm.toFixed(1) : '—'} +

{BPM_BANDS.length} concentric BPM bands

+
+
+ Average rating + {summary.averageRating ? summary.averageRating.toFixed(1) : '—'} +

0–5 star normalized scale

+
+
+ Key coverage + {summary.keyCoverage}/24 +

Camelot cells represented

+
+
+ +
+
+
+
+

Polar harmonic density map

+

Camelot wedges outside-in by BPM ring.

+
+ +
+ +
+ +
+
+
+

BPM versus key heatmap

+

Quick comparison of dense and empty harmonic/tempo cells.

+
+ +
+ +
+
+ +
+
+

Selected region

+ {selectedCell ? ( + <> +

+ {selectedCell.camelotKey} · {selectedCell.bandLabel} · {selectedCell.count} track + {selectedCell.count === 1 ? '' : 's'} +

+
    + {selectedCell.tracks.length > 0 ? ( + selectedCell.tracks.map((track) => ( +
  • +
    + {track.artist} + {track.title} +
    +
    + {track.bpm ? `${track.bpm.toFixed(1)} BPM` : 'No BPM'} + {track.camelotKey} + {formatRating(track)} +
    +
  • + )) + ) : ( +
  • No tracks live in this cell with the current filters.
  • + )} +
+ + ) : ( +

+ Click a polar wedge or heatmap cell to inspect the exact tracks inside it. +

+ )} +
+ +
+

Sparse / missing regions

+
    + {sparseCells.map((cell) => ( +
  • + +
  • + ))} +
+
+ +
+

Top playlist transitions

+
    + {topTransitions.length > 0 ? ( + topTransitions.map((transition) => ( +
  • +
    + {transition.label} + {transition.count} chained mix points +
    +
  • + )) + ) : ( +
  • No playlist transitions remain after the current filters.
  • + )} +
+
+
+
+ ) +} + +function formatRating(track: TrackRecord): string { + if (track.rating === null) { + return 'No rating' + } + + return `${track.rating.toFixed(1)}★` +} + +export default App diff --git a/src/components/HeatmapChart.tsx b/src/components/HeatmapChart.tsx new file mode 100644 index 0000000..101ca8b --- /dev/null +++ b/src/components/HeatmapChart.tsx @@ -0,0 +1,115 @@ +import { scaleLinear, scaleSequential } from 'd3' +import { interpolateTurbo } from 'd3-scale-chromatic' +import { forwardRef, useMemo } from 'react' +import { BPM_BANDS } from '../lib/analysis' +import { CAMELOT_KEYS } from '../lib/camelot' +import type { DensityCell } from '../types' + +interface HeatmapChartProps { + cells: DensityCell[] + selectedCellId: string | null + onSelect: (cellId: string) => void +} + +const width = 920 +const height = 420 +const margin = { top: 32, right: 24, bottom: 72, left: 76 } + +const HeatmapChart = forwardRef( + ({ cells, selectedCellId, onSelect }, ref) => { + const maximum = Math.max(1, ...cells.map((cell) => cell.count)) + const colorScale = useMemo( + () => scaleSequential(interpolateTurbo).domain([0, maximum]), + [maximum], + ) + const xScale = useMemo( + () => + scaleLinear() + .domain([0, CAMELOT_KEYS.length]) + .range([margin.left, width - margin.right]), + [], + ) + const yScale = useMemo( + () => + scaleLinear() + .domain([0, BPM_BANDS.length]) + .range([margin.top, height - margin.bottom]), + [], + ) + + return ( + + + + {cells.map((cell) => { + const keyIndex = CAMELOT_KEYS.indexOf(cell.camelotKey) + const x = xScale(keyIndex) + const y = yScale(cell.bandIndex) + const cellWidth = xScale(keyIndex + 1) - xScale(keyIndex) - 2 + const cellHeight = yScale(cell.bandIndex + 1) - yScale(cell.bandIndex) - 2 + + return ( + onSelect(cell.id)} + > + {`${cell.camelotKey} / ${cell.bandLabel}: ${cell.count} track${cell.count === 1 ? '' : 's'}\n${cell.tracks + .slice(0, 4) + .map((track) => `${track.artist} — ${track.title}`) + .join('\n')}`} + + ) + })} + + {CAMELOT_KEYS.map((camelotKey, index) => { + const x = xScale(index + 0.5) + return ( + + {camelotKey} + + ) + })} + + {BPM_BANDS.map((band, index) => { + const y = yScale(index + 0.5) + return ( + + {band.label} + + ) + })} + + ) + }, +) + +HeatmapChart.displayName = 'HeatmapChart' + +export default HeatmapChart diff --git a/src/components/PolarDensityChart.tsx b/src/components/PolarDensityChart.tsx new file mode 100644 index 0000000..41c7260 --- /dev/null +++ b/src/components/PolarDensityChart.tsx @@ -0,0 +1,102 @@ +import { arc, scaleSequential } from 'd3' +import { interpolatePlasma } from 'd3-scale-chromatic' +import { forwardRef, useMemo } from 'react' +import { BPM_BANDS } from '../lib/analysis' +import { CAMELOT_KEYS } from '../lib/camelot' +import type { DensityCell } from '../types' + +interface PolarDensityChartProps { + cells: DensityCell[] + selectedCellId: string | null + onSelect: (cellId: string) => void +} + +const width = 620 +const height = 620 +const outerRadius = 240 +const innerRadius = 64 + +const PolarDensityChart = forwardRef( + ({ cells, selectedCellId, onSelect }, ref) => { + const maximum = Math.max(1, ...cells.map((cell) => cell.count)) + const colorScale = useMemo( + () => scaleSequential(interpolatePlasma).domain([0, maximum]), + [maximum], + ) + + return ( + + + + {BPM_BANDS.map((band, index) => { + const radius = + innerRadius + ((outerRadius - innerRadius) / BPM_BANDS.length) * (index + 1) + return ( + + + + {band.label} + + + ) + })} + + {cells.map((cell) => { + const keyIndex = CAMELOT_KEYS.indexOf(cell.camelotKey) + const startAngle = (keyIndex / CAMELOT_KEYS.length) * Math.PI * 2 - Math.PI / 2 + const endAngle = + ((keyIndex + 1) / CAMELOT_KEYS.length) * Math.PI * 2 - Math.PI / 2 + const ringSize = (outerRadius - innerRadius) / BPM_BANDS.length + const path = arc()({ + innerRadius: innerRadius + ringSize * cell.bandIndex, + outerRadius: innerRadius + ringSize * (cell.bandIndex + 1) - 3, + startAngle, + endAngle, + padAngle: 0.01, + }) + + return ( + onSelect(cell.id)} + > + {`${cell.camelotKey} / ${cell.bandLabel}: ${cell.count} track${cell.count === 1 ? '' : 's'}\n${cell.tracks + .slice(0, 4) + .map((track) => `${track.artist} — ${track.title}`) + .join('\n')}`} + + ) + })} + + {CAMELOT_KEYS.map((camelotKey, index) => { + const angle = ((index + 0.5) / CAMELOT_KEYS.length) * Math.PI * 2 - Math.PI / 2 + const labelRadius = outerRadius + 24 + const x = Math.cos(angle) * labelRadius + const y = Math.sin(angle) * labelRadius + + return ( + + {camelotKey} + + ) + })} + + + ) + }, +) + +PolarDensityChart.displayName = 'PolarDensityChart' + +export default PolarDensityChart diff --git a/src/index.css b/src/index.css new file mode 100644 index 0000000..572a291 --- /dev/null +++ b/src/index.css @@ -0,0 +1,73 @@ +:root { + font-family: + Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', + sans-serif; + line-height: 1.5; + font-weight: 400; + color: #e2e8f0; + background: + radial-gradient(circle at top, rgba(37, 99, 235, 0.16), transparent 30%), + linear-gradient(180deg, #020617, #0f172a 35%, #020617 100%); + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +* { + box-sizing: border-box; +} + +html { + scroll-behavior: smooth; +} + +body { + margin: 0; + min-width: 320px; + min-height: 100vh; +} + +button, +input, +select { + font: inherit; +} + +button:focus-visible, +input:focus-visible, +select:focus-visible { + outline: 2px solid #38bdf8; + outline-offset: 2px; +} + +#root { + min-height: 100vh; +} + +h1, + h2, + p { + margin-top: 0; +} + +h1, + h2 { + color: #f8fafc; + line-height: 1.1; +} + +h1 { + max-width: 12ch; + font-size: clamp(2.3rem, 4vw, 4.8rem); + margin-bottom: 16px; +} + +h2 { + font-size: clamp(1.2rem, 1.4vw, 1.6rem); + margin-bottom: 10px; +} + +a { + color: inherit; +} diff --git a/src/lib/analysis.ts b/src/lib/analysis.ts new file mode 100644 index 0000000..1ae70bd --- /dev/null +++ b/src/lib/analysis.ts @@ -0,0 +1,101 @@ +import { CAMELOT_KEYS } from './camelot' +import type { + BpmBand, + DensityCell, + SummaryStats, + TrackRecord, + TransitionRecord, + TransitionSummary, +} from '../types' + +export const BPM_BANDS: BpmBand[] = [ + { label: '<90', min: 0, max: 90 }, + { label: '90-109', min: 90, max: 110 }, + { label: '110-123', min: 110, max: 124 }, + { label: '124-127', min: 124, max: 128 }, + { label: '128-134', min: 128, max: 135 }, + { label: '135+', min: 135, max: null }, +] + +export function getBpmBandIndex(bpm: number | null): number { + if (bpm === null) { + return -1 + } + + return BPM_BANDS.findIndex( + (band) => bpm >= band.min && (band.max === null || bpm < band.max), + ) +} + +export function buildDensityCells(tracks: TrackRecord[]): DensityCell[] { + return BPM_BANDS.flatMap((band, bandIndex) => + CAMELOT_KEYS.map((camelotKey) => { + const cellTracks = tracks.filter( + (track) => + track.camelotKey === camelotKey && getBpmBandIndex(track.bpm) === bandIndex, + ) + + return { + id: `${camelotKey}:${band.label}`, + camelotKey, + bandLabel: band.label, + bandIndex, + count: cellTracks.length, + tracks: cellTracks, + } + }), + ) +} + +export function summarizeTracks(tracks: TrackRecord[]): SummaryStats { + const bpmTracks = tracks.filter((track) => track.bpm !== null) + const ratingTracks = tracks.filter((track) => track.rating !== null) + const keyedTracks = new Set( + tracks.filter((track) => track.camelotKey !== '?').map((track) => track.camelotKey), + ) + + return { + totalTracks: tracks.length, + playableTracks: bpmTracks.length, + averageBpm: + bpmTracks.length > 0 + ? bpmTracks.reduce((total, track) => total + (track.bpm ?? 0), 0) / bpmTracks.length + : null, + averageRating: + ratingTracks.length > 0 + ? ratingTracks.reduce((total, track) => total + (track.rating ?? 0), 0) / + ratingTracks.length + : null, + keyCoverage: keyedTracks.size, + } +} + +export function summarizeTransitions( + transitions: TransitionRecord[], + limit = 8, +): TransitionSummary[] { + const groups = new Map() + + for (const transition of transitions) { + const label = `${transition.fromKey} → ${transition.toKey}` + const entry = groups.get(label) ?? { + id: label, + label, + count: 0, + transitions: [], + } + + entry.count += 1 + entry.transitions.push(transition) + groups.set(label, entry) + } + + return [...groups.values()].sort((left, right) => right.count - left.count).slice(0, limit) +} + +export function findSparseCells(cells: DensityCell[], limit = 8): DensityCell[] { + return cells + .filter((cell) => cell.count <= 1) + .sort((left, right) => left.count - right.count || left.id.localeCompare(right.id)) + .slice(0, limit) +} diff --git a/src/lib/camelot.ts b/src/lib/camelot.ts new file mode 100644 index 0000000..553471c --- /dev/null +++ b/src/lib/camelot.ts @@ -0,0 +1,57 @@ +const ENGINE_KEY_MAP = [ + '8B', + '8A', + '9B', + '9A', + '10B', + '10A', + '11B', + '11A', + '12B', + '12A', + '1B', + '1A', + '2B', + '2A', + '3B', + '3A', + '4B', + '4A', + '5B', + '5A', + '6B', + '6A', + '7B', + '7A', +] as const + +export const CAMELOT_KEYS = Array.from({ length: 12 }, (_, index) => { + const number = index + 1 + return [`${number}A`, `${number}B`] +}).flat() + +const CAMELOT_PATTERN = /^(1[0-2]|[1-9])(A|B)$/i + +export function engineNumericKeyToCamelot(value: number): string { + return ENGINE_KEY_MAP[value] ?? '?' +} + +export function normalizeCamelotKey(value: unknown): string { + if (typeof value === 'number' && Number.isInteger(value)) { + return engineNumericKeyToCamelot(value) + } + + if (typeof value === 'string') { + const trimmed = value.trim().toUpperCase() + if (CAMELOT_PATTERN.test(trimmed)) { + return trimmed + } + + const parsed = Number(trimmed) + if (Number.isInteger(parsed)) { + return engineNumericKeyToCamelot(parsed) + } + } + + return '?' +} diff --git a/src/lib/engineDj.ts b/src/lib/engineDj.ts new file mode 100644 index 0000000..804bb82 --- /dev/null +++ b/src/lib/engineDj.ts @@ -0,0 +1,275 @@ +import initSqlJs from 'sql.js' +import sqlWasmUrl from 'sql.js/dist/sql-wasm.wasm?url' +import { normalizeCamelotKey } from './camelot' +import type { LibraryData, PlaylistInfo, TrackRecord, TransitionRecord } from '../types' + +let sqlPromise: ReturnType | null = null + +type SqlRow = Record +type SqlDatabase = InstanceType>['Database']> + +interface PlaylistEntity { + id: string + playlistId: string + trackId: string + nextEntityId: string | null + sortIndex: number +} + +function getSql() { + sqlPromise ??= initSqlJs({ + locateFile: () => sqlWasmUrl, + }) + + return sqlPromise +} + +function readRows(database: SqlDatabase, tableName: string): SqlRow[] { + const statement = database.prepare(`SELECT * FROM "${tableName.replace(/"/g, '""')}"`) + const rows: SqlRow[] = [] + + while (statement.step()) { + rows.push(statement.getAsObject()) + } + + statement.free() + return rows +} + +function findTableName(tableNames: string[], target: string): string | null { + return tableNames.find((name) => name.toLowerCase() === target.toLowerCase()) ?? null +} + +function getFirstValue(row: SqlRow, names: string[]): T | null { + for (const [key, value] of Object.entries(row)) { + if (names.some((name) => name.toLowerCase() === key.toLowerCase())) { + return value as T + } + } + + return null +} + +function asId(value: unknown): string | null { + if (typeof value === 'string') { + return value.trim() || null + } + + if (typeof value === 'number' && Number.isFinite(value)) { + return String(value) + } + + return null +} + +function asNumber(value: unknown): number | null { + if (typeof value === 'number' && Number.isFinite(value)) { + return value + } + + if (typeof value === 'string' && value.trim() !== '') { + const parsed = Number(value) + return Number.isFinite(parsed) ? parsed : null + } + + return null +} + +function normalizeRating(value: unknown): number | null { + const rating = asNumber(value) + if (rating === null) { + return null + } + + if (rating > 5) { + return Math.max(0, Math.min(5, rating / 20)) + } + + return Math.max(0, Math.min(5, rating)) +} + +function orderPlaylistTrackIds(entities: PlaylistEntity[]): string[] { + if (entities.length === 0) { + return [] + } + + const byId = new Map(entities.map((entity) => [entity.id, entity])) + const nextIds = new Set( + entities + .map((entity) => entity.nextEntityId) + .filter((value): value is string => value !== null && byId.has(value)), + ) + const visited = new Set() + const ordered: string[] = [] + const heads = entities + .filter((entity) => !nextIds.has(entity.id)) + .sort((left, right) => left.sortIndex - right.sortIndex) + + const walk = (entity: PlaylistEntity) => { + let current: PlaylistEntity | undefined = entity + + while (current && !visited.has(current.id)) { + visited.add(current.id) + ordered.push(current.trackId) + current = current.nextEntityId ? byId.get(current.nextEntityId) : undefined + } + } + + heads.forEach(walk) + entities + .sort((left, right) => left.sortIndex - right.sortIndex) + .filter((entity) => !visited.has(entity.id)) + .forEach(walk) + + return [...new Set(ordered)] +} + +export async function loadEngineDjLibrary(file: File): Promise { + const SQL = await getSql() + const bytes = new Uint8Array(await file.arrayBuffer()) + const database = new SQL.Database(bytes) + + try { + const tableRows = database.exec( + "SELECT name FROM sqlite_master WHERE type = 'table' ORDER BY name", + ) + const tableNames = (tableRows[0]?.values ?? []).map((row) => String(row[0])) + + const trackTable = findTableName(tableNames, 'Track') + if (!trackTable) { + throw new Error('No Track table was found in the selected SQLite database.') + } + + const playlistTable = findTableName(tableNames, 'Playlist') + const playlistEntityTable = findTableName(tableNames, 'PlaylistEntity') + + const trackRows = readRows(database, trackTable) + const playlistRows = playlistTable ? readRows(database, playlistTable) : [] + const playlistEntityRows = playlistEntityTable ? readRows(database, playlistEntityTable) : [] + + const tracks = trackRows + .map((row) => { + const id = asId(getFirstValue(row, ['Id', 'id', 'trackId'])) + if (!id) { + return null + } + + const bpm = asNumber(getFirstValue(row, ['bpmAnalyzed', 'bpm', 'BPM'])) + const rawKey = asNumber(getFirstValue(row, ['key', 'keyAnalyzed', 'musicalKey'])) + + return { + id, + title: asId(getFirstValue(row, ['title', 'name', 'Name'])) ?? 'Untitled track', + artist: + asId(getFirstValue(row, ['artist', 'albumArtist', 'Artist', 'AlbumArtist'])) ?? + 'Unknown artist', + bpm, + rating: normalizeRating(getFirstValue(row, ['rating', 'Rating'])), + camelotKey: normalizeCamelotKey(getFirstValue(row, ['key', 'keyAnalyzed', 'musicalKey'])), + rawKey, + path: asId(getFirstValue(row, ['path', 'location', 'filePath'])) ?? '', + playlists: [], + } + }) + .filter((track): track is TrackRecord => track !== null) + + const trackLookup = new Map(tracks.map((track) => [track.id, track])) + + const playlistEntities = playlistEntityRows + .map((row, index) => { + const id = asId(getFirstValue(row, ['Id', 'id', 'entityId'])) + const playlistId = asId(getFirstValue(row, ['listId', 'playlistId', 'PlaylistId'])) + const trackId = asId(getFirstValue(row, ['trackId', 'TrackId'])) + if (!id || !playlistId || !trackId || !trackLookup.has(trackId)) { + return null + } + + return { + id, + playlistId, + trackId, + nextEntityId: asId(getFirstValue(row, ['nextEntityId', 'NextEntityId'])), + sortIndex: asNumber(getFirstValue(row, ['sortOrder', 'SortOrder', 'position'])) ?? index, + } + }) + .filter((entity): entity is PlaylistEntity => entity !== null) + + const playlistMap = new Map() + + for (const row of playlistRows) { + const id = asId(getFirstValue(row, ['Id', 'id', 'listId'])) + if (!id) { + continue + } + + playlistMap.set(id, { + id, + name: asId(getFirstValue(row, ['title', 'name', 'Title', 'Name'])) ?? `Playlist ${id}`, + trackIds: [], + }) + } + + const entitiesByPlaylist = new Map() + for (const entity of playlistEntities) { + const group = entitiesByPlaylist.get(entity.playlistId) ?? [] + group.push(entity) + entitiesByPlaylist.set(entity.playlistId, group) + } + + for (const [playlistId, entities] of entitiesByPlaylist.entries()) { + const playlist = + playlistMap.get(playlistId) ?? + ({ + id: playlistId, + name: `Playlist ${playlistId}`, + trackIds: [], + } satisfies PlaylistInfo) + + const orderedTrackIds = orderPlaylistTrackIds(entities) + playlist.trackIds = orderedTrackIds + playlistMap.set(playlistId, playlist) + + for (const trackId of orderedTrackIds) { + const track = trackLookup.get(trackId) + if (track && !track.playlists.includes(playlistId)) { + track.playlists.push(playlistId) + } + } + } + + const playlists = [...playlistMap.values()] + .filter((playlist) => playlist.trackIds.length > 0) + .sort((left, right) => left.name.localeCompare(right.name)) + + const transitions: TransitionRecord[] = playlists.flatMap((playlist) => { + return playlist.trackIds.slice(0, -1).flatMap((trackId, index) => { + const fromTrack = trackLookup.get(trackId) + const toTrack = trackLookup.get(playlist.trackIds[index + 1]) + if (!fromTrack || !toTrack) { + return [] + } + + return { + playlistId: playlist.id, + playlistName: playlist.name, + fromTrackId: fromTrack.id, + toTrackId: toTrack.id, + fromKey: fromTrack.camelotKey, + toKey: toTrack.camelotKey, + fromBpm: fromTrack.bpm, + toBpm: toTrack.bpm, + } + }) + }) + + return { + source: 'database', + sourceName: file.name, + tracks, + playlists, + transitions, + } + } finally { + database.close() + } +} diff --git a/src/lib/exportSvg.ts b/src/lib/exportSvg.ts new file mode 100644 index 0000000..db94bd8 --- /dev/null +++ b/src/lib/exportSvg.ts @@ -0,0 +1,45 @@ +export async function downloadSvgAsPng( + svgElement: SVGSVGElement, + fileName: string, +): Promise { + const serializer = new XMLSerializer() + const source = serializer.serializeToString(svgElement) + const blob = new Blob([source], { type: 'image/svg+xml;charset=utf-8' }) + const url = URL.createObjectURL(blob) + + try { + const image = await loadImage(url) + const viewBox = svgElement.viewBox.baseVal + const width = viewBox.width || svgElement.clientWidth || 1200 + const height = viewBox.height || svgElement.clientHeight || 800 + const canvas = document.createElement('canvas') + canvas.width = width + canvas.height = height + const context = canvas.getContext('2d') + + if (!context) { + throw new Error('Could not create a canvas rendering context.') + } + + context.fillStyle = '#080b14' + context.fillRect(0, 0, width, height) + context.drawImage(image, 0, 0, width, height) + + const downloadUrl = canvas.toDataURL('image/png') + const anchor = document.createElement('a') + anchor.href = downloadUrl + anchor.download = fileName + anchor.click() + } finally { + URL.revokeObjectURL(url) + } +} + +function loadImage(src: string): Promise { + return new Promise((resolve, reject) => { + const image = new Image() + image.onload = () => resolve(image) + image.onerror = () => reject(new Error('Unable to render the SVG export.')) + image.src = src + }) +} diff --git a/src/lib/mockData.ts b/src/lib/mockData.ts new file mode 100644 index 0000000..445a995 --- /dev/null +++ b/src/lib/mockData.ts @@ -0,0 +1,164 @@ +import type { LibraryData, PlaylistInfo, TrackRecord, TransitionRecord } from '../types' + +const tracks: TrackRecord[] = [ + { + id: 't-001', + title: 'Blue Twilight', + artist: 'Nori Lane', + bpm: 122, + rating: 4, + camelotKey: '8A', + rawKey: null, + path: '/mock/blue-twilight.wav', + playlists: ['p-1', 'p-2'], + }, + { + id: 't-002', + title: 'Lift Off', + artist: 'Signal Motel', + bpm: 124, + rating: 5, + camelotKey: '8B', + rawKey: null, + path: '/mock/lift-off.wav', + playlists: ['p-1'], + }, + { + id: 't-003', + title: 'Warehouse Bloom', + artist: 'Tess Vector', + bpm: 127, + rating: 4, + camelotKey: '9A', + rawKey: null, + path: '/mock/warehouse-bloom.wav', + playlists: ['p-1', 'p-3'], + }, + { + id: 't-004', + title: 'Glass Steps', + artist: 'Ion Harbour', + bpm: 128, + rating: 3, + camelotKey: '9B', + rawKey: null, + path: '/mock/glass-steps.wav', + playlists: ['p-1', 'p-3'], + }, + { + id: 't-005', + title: 'Afterlight', + artist: 'Mika Current', + bpm: 130, + rating: 5, + camelotKey: '10A', + rawKey: null, + path: '/mock/afterlight.wav', + playlists: ['p-1'], + }, + { + id: 't-006', + title: 'Velvet Relay', + artist: 'Ossia Drive', + bpm: 135, + rating: 4, + camelotKey: '10B', + rawKey: null, + path: '/mock/velvet-relay.wav', + playlists: ['p-2'], + }, + { + id: 't-007', + title: 'Neon Tides', + artist: 'Helix Bloom', + bpm: 138, + rating: 2, + camelotKey: '11A', + rawKey: null, + path: '/mock/neon-tides.wav', + playlists: ['p-2'], + }, + { + id: 't-008', + title: 'Shadowline', + artist: 'Rae Pacific', + bpm: 140, + rating: 4, + camelotKey: '11B', + rawKey: null, + path: '/mock/shadowline.wav', + playlists: ['p-2'], + }, + { + id: 't-009', + title: 'Circuit Prayer', + artist: 'Lumen Phase', + bpm: 110, + rating: 5, + camelotKey: '6A', + rawKey: null, + path: '/mock/circuit-prayer.wav', + playlists: ['p-3'], + }, + { + id: 't-010', + title: 'Sunrise Draft', + artist: 'Adi Quartz', + bpm: 116, + rating: 3, + camelotKey: '7A', + rawKey: null, + path: '/mock/sunrise-draft.wav', + playlists: ['p-3'], + }, +] + +const playlists: PlaylistInfo[] = [ + { + id: 'p-1', + name: 'Peak-time ladders', + trackIds: ['t-001', 't-002', 't-003', 't-004', 't-005'], + }, + { + id: 'p-2', + name: 'Late-night pressure', + trackIds: ['t-001', 't-006', 't-007', 't-008'], + }, + { + id: 'p-3', + name: 'Warm-up bridge', + trackIds: ['t-009', 't-010', 't-003', 't-004'], + }, +] + +const transitions: TransitionRecord[] = playlists.flatMap((playlist) => { + return playlist.trackIds.slice(0, -1).map((trackId, index) => { + const fromTrack = tracks.find((track) => track.id === trackId) + const toTrack = tracks.find((track) => track.id === playlist.trackIds[index + 1]) + + if (!fromTrack || !toTrack) { + throw new Error('Mock playlist references an unknown track.') + } + + return { + playlistId: playlist.id, + playlistName: playlist.name, + fromTrackId: fromTrack.id, + toTrackId: toTrack.id, + fromKey: fromTrack.camelotKey, + toKey: toTrack.camelotKey, + fromBpm: fromTrack.bpm, + toBpm: toTrack.bpm, + } + }) +}) + +export function createMockLibrary(): LibraryData { + return { + source: 'mock', + sourceName: 'Mock DJ crate', + tracks, + playlists, + transitions, + } +} diff --git a/src/main.tsx b/src/main.tsx new file mode 100644 index 0000000..bef5202 --- /dev/null +++ b/src/main.tsx @@ -0,0 +1,10 @@ +import { StrictMode } from 'react' +import { createRoot } from 'react-dom/client' +import './index.css' +import App from './App.tsx' + +createRoot(document.getElementById('root')!).render( + + + , +) diff --git a/src/types.ts b/src/types.ts new file mode 100644 index 0000000..c59a423 --- /dev/null +++ b/src/types.ts @@ -0,0 +1,68 @@ +export type DataSource = 'mock' | 'database' + +export interface TrackRecord { + id: string + title: string + artist: string + bpm: number | null + rating: number | null + camelotKey: string + rawKey: number | null + path: string + playlists: string[] +} + +export interface PlaylistInfo { + id: string + name: string + trackIds: string[] +} + +export interface TransitionRecord { + playlistId: string + playlistName: string + fromTrackId: string + toTrackId: string + fromKey: string + toKey: string + fromBpm: number | null + toBpm: number | null +} + +export interface LibraryData { + source: DataSource + sourceName: string + tracks: TrackRecord[] + playlists: PlaylistInfo[] + transitions: TransitionRecord[] +} + +export interface BpmBand { + label: string + min: number + max: number | null +} + +export interface DensityCell { + id: string + camelotKey: string + bandLabel: string + bandIndex: number + count: number + tracks: TrackRecord[] +} + +export interface SummaryStats { + totalTracks: number + playableTracks: number + averageBpm: number | null + averageRating: number | null + keyCoverage: number +} + +export interface TransitionSummary { + id: string + label: string + count: number + transitions: TransitionRecord[] +} diff --git a/tsconfig.app.json b/tsconfig.app.json new file mode 100644 index 0000000..7f42e5f --- /dev/null +++ b/tsconfig.app.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", + "target": "es2023", + "lib": ["ES2023", "DOM"], + "module": "esnext", + "types": ["vite/client"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "noUnusedLocals": true, + "noUnusedParameters": true, + "erasableSyntaxOnly": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src"] +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..1ffef60 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ] +} diff --git a/tsconfig.node.json b/tsconfig.node.json new file mode 100644 index 0000000..d3c52ea --- /dev/null +++ b/tsconfig.node.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + "target": "es2023", + "lib": ["ES2023"], + "module": "esnext", + "types": ["node"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "noUnusedLocals": true, + "noUnusedParameters": true, + "erasableSyntaxOnly": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["vite.config.ts"] +} diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..8941466 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' + +export default defineConfig({ + base: '/KeyBpmMap/', + plugins: [react()], +}) From e5beaf66f9e13ced28079dc1e3f74b2becc38685 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 20 May 2026 08:05:11 +0000 Subject: [PATCH 03/42] Deploy Pages for pull requests Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/f857f5bc-e007-47b0-9497-70c01e47ca6d Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- .github/workflows/deploy.yml | 26 +++++++++++++++++--------- README.md | 3 ++- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7bf8b1c..a7cce08 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,23 +4,20 @@ on: push: branches: - main + pull_request: + branches: + - main workflow_dispatch: -permissions: - contents: read - pages: write - id-token: write - concurrency: - group: pages + group: pages-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: build: runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + permissions: + contents: read steps: - name: Checkout repository uses: actions/checkout@v4 @@ -45,6 +42,17 @@ jobs: with: path: ./dist + deploy: + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository + needs: build + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 diff --git a/README.md b/README.md index 4df9990..d3f295e 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,8 @@ npm run lint ## Deployment The repository includes a GitHub Pages workflow in `.github/workflows/deploy.yml`. -When the default branch is updated, the workflow builds the Vite app and deploys the generated static site to Pages. +When `main` is updated, the workflow builds the Vite app and deploys the generated static site to Pages. +Pull requests targeting `main` also run the same build and deploy flow so the branch can be reviewed against a live Pages deployment before merge. ## Notes From e4f5ad2b28eeecb02eb1296583ab547db363168f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 20 May 2026 08:06:34 +0000 Subject: [PATCH 04/42] Gate PR Pages previews behind label Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/f857f5bc-e007-47b0-9497-70c01e47ca6d Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- .github/workflows/deploy.yml | 10 ++++++++-- README.md | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a7cce08..ab2f550 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,6 +5,12 @@ on: branches: - main pull_request: + types: + - opened + - synchronize + - reopened + - labeled + - unlabeled branches: - main workflow_dispatch: @@ -43,14 +49,14 @@ jobs: path: ./dist deploy: - if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository + if: github.event_name == 'push' || (github.event.pull_request.head.repo.full_name == github.repository && contains(github.event.pull_request.labels.*.name, 'deploy-preview')) needs: build runs-on: ubuntu-latest permissions: pages: write id-token: write environment: - name: github-pages + name: ${{ github.event_name == 'pull_request' && 'github-pages-preview' || 'github-pages' }} url: ${{ steps.deployment.outputs.page_url }} steps: - name: Deploy to GitHub Pages diff --git a/README.md b/README.md index d3f295e..4223d9f 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,8 @@ npm run lint The repository includes a GitHub Pages workflow in `.github/workflows/deploy.yml`. When `main` is updated, the workflow builds the Vite app and deploys the generated static site to Pages. -Pull requests targeting `main` also run the same build and deploy flow so the branch can be reviewed against a live Pages deployment before merge. +Pull requests targeting `main` always run the build, and same-repository PRs deploy to Pages when they carry the `deploy-preview` label. +Those PR deployments are tracked under a separate `github-pages-preview` environment entry, but GitHub Pages still serves a single live site URL, so the latest main/preview deployment is the one reviewers will see. ## Notes From 588a8dc4d1b0d3727e9cbb0e735d76de5f799ee7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 20 May 2026 08:21:32 +0000 Subject: [PATCH 05/42] Clarify Pages PR deployment limits Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/e78b03c4-9939-4bef-9718-fb83f07af170 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- .github/workflows/deploy.yml | 10 ++-------- README.md | 4 ++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ab2f550..c33e597 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,12 +5,6 @@ on: branches: - main pull_request: - types: - - opened - - synchronize - - reopened - - labeled - - unlabeled branches: - main workflow_dispatch: @@ -49,14 +43,14 @@ jobs: path: ./dist deploy: - if: github.event_name == 'push' || (github.event.pull_request.head.repo.full_name == github.repository && contains(github.event.pull_request.labels.*.name, 'deploy-preview')) + if: github.event_name == 'push' needs: build runs-on: ubuntu-latest permissions: pages: write id-token: write environment: - name: ${{ github.event_name == 'pull_request' && 'github-pages-preview' || 'github-pages' }} + name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - name: Deploy to GitHub Pages diff --git a/README.md b/README.md index 4223d9f..3e417f9 100644 --- a/README.md +++ b/README.md @@ -39,8 +39,8 @@ npm run lint The repository includes a GitHub Pages workflow in `.github/workflows/deploy.yml`. When `main` is updated, the workflow builds the Vite app and deploys the generated static site to Pages. -Pull requests targeting `main` always run the build, and same-repository PRs deploy to Pages when they carry the `deploy-preview` label. -Those PR deployments are tracked under a separate `github-pages-preview` environment entry, but GitHub Pages still serves a single live site URL, so the latest main/preview deployment is the one reviewers will see. +Pull requests targeting `main` run the same build so changes are validated before merge, but they do not publish a separate preview site. +With this single-site GitHub Pages setup, the custom Actions workflow still publishes one live Pages URL for the repository, so isolated PR previews would require separate hosting or a second Pages site/repository. ## Notes From f61da8a0e5e4a21a53cff1a669dedbfe5f8bb13d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 20 May 2026 08:40:07 +0000 Subject: [PATCH 06/42] Document local verification steps Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/5055bc76-62a3-4474-b15c-49dde22ef7b2 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3e417f9..5fead24 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ It reads a local SQLite database in the browser with `sql.js`, converts Engine n ## Local development ```bash -npm install +npm ci npm run dev ``` @@ -28,6 +28,29 @@ Open the Vite dev server URL in your browser, then either: 1. Load a local Engine DJ SQLite database file (`.db`, `.sqlite`, `.sqlite3`, `.backup`), or 2. Use the built-in mock crate to explore the interface without a real library. +## Verifying a local checkout + +Because browsers restrict some file loading behavior on plain `file://` pages, verify the app through a local web server instead of opening `dist/index.html` directly. + +For an interactive local checkout: + +```bash +npm ci +npm run dev +``` + +Then open the local URL printed by Vite (usually `http://localhost:5173/`). + +For a production-like local check: + +```bash +npm ci +npm run build +npm run preview +``` + +Then open the preview URL printed by Vite (usually `http://localhost:4173/`). + ## Build and lint ```bash From 3d288980e81c5b846d915176921b3ccdbc6691d1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 20 May 2026 09:02:05 +0000 Subject: [PATCH 07/42] Make BPM band size configurable Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/13080008-9539-4a35-8bfa-43ff933bc646 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/App.tsx | 47 ++++++++++++++++++-- src/components/HeatmapChart.tsx | 14 +++--- src/components/PolarDensityChart.tsx | 12 ++--- src/lib/analysis.ts | 66 ++++++++++++++++++++++------ 4 files changed, 108 insertions(+), 31 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 7e774eb..8b935bb 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,9 +3,13 @@ import './App.css' import HeatmapChart from './components/HeatmapChart' import PolarDensityChart from './components/PolarDensityChart' import { - BPM_BANDS, buildDensityCells, + clampBpmBandSize, + createBpmBands, + DEFAULT_BPM_BAND_SIZE, findSparseCells, + MAX_BPM_BAND_SIZE, + MIN_BPM_BAND_SIZE, summarizeTracks, summarizeTransitions, } from './lib/analysis' @@ -28,6 +32,7 @@ function App() { const [selectedCellId, setSelectedCellId] = useState(null) const [error, setError] = useState(null) const [loading, setLoading] = useState(false) + const [bpmBandSize, setBpmBandSize] = useState(DEFAULT_BPM_BAND_SIZE) const fileInputRef = useRef(null) const polarRef = useRef(null) const heatmapRef = useRef(null) @@ -96,7 +101,14 @@ function App() { }) }, [filteredTrackIds, filters.playlistId, library.transitions]) - const densityCells = useMemo(() => buildDensityCells(filteredTracks), [filteredTracks]) + const bpmBands = useMemo( + () => createBpmBands(filteredTracks, bpmBandSize), + [bpmBandSize, filteredTracks], + ) + const densityCells = useMemo( + () => buildDensityCells(filteredTracks, bpmBands), + [bpmBands, filteredTracks], + ) const selectedCell = useMemo( () => densityCells.find((cell) => cell.id === selectedCellId) ?? null, [densityCells, selectedCellId], @@ -290,6 +302,29 @@ function App() { } /> + + @@ -302,7 +337,9 @@ function App() {
Average BPM {summary.averageBpm ? summary.averageBpm.toFixed(1) : '—'} -

{BPM_BANDS.length} concentric BPM bands

+

+ {bpmBands.length} bands at {bpmBandSize} BPM granularity +

Average rating @@ -321,7 +358,7 @@ function App() {

Polar harmonic density map

-

Camelot wedges outside-in by BPM ring.

+

Camelot wedges outside-in by {bpmBandSize} BPM ring.

@@ -186,7 +243,7 @@ function App() { + ))} + + - diff --git a/src/components/PolarDensityChart.tsx b/src/components/PolarDensityChart.tsx index d0b7b84..495c241 100644 --- a/src/components/PolarDensityChart.tsx +++ b/src/components/PolarDensityChart.tsx @@ -1,12 +1,12 @@ import { arc, scaleSequential } from 'd3' import { interpolatePlasma } from 'd3-scale-chromatic' import { forwardRef, useMemo } from 'react' -import { CAMELOT_KEYS } from '../lib/camelot' import type { BpmBand, DensityCell } from '../types' interface PolarDensityChartProps { bands: BpmBand[] cells: DensityCell[] + keys: string[] selectedCellId: string | null onSelect: (cellId: string) => void } @@ -17,7 +17,7 @@ const outerRadius = 240 const innerRadius = 64 const PolarDensityChart = forwardRef( - ({ bands, cells, selectedCellId, onSelect }, ref) => { + ({ bands, cells, keys, selectedCellId, onSelect }, ref) => { const maximum = Math.max(1, ...cells.map((cell) => cell.count)) const colorScale = useMemo( () => scaleSequential(interpolatePlasma).domain([0, maximum]), @@ -48,10 +48,9 @@ const PolarDensityChart = forwardRef( })} {cells.map((cell) => { - const keyIndex = CAMELOT_KEYS.indexOf(cell.camelotKey) - const startAngle = (keyIndex / CAMELOT_KEYS.length) * Math.PI * 2 - Math.PI / 2 - const endAngle = - ((keyIndex + 1) / CAMELOT_KEYS.length) * Math.PI * 2 - Math.PI / 2 + const keyIndex = keys.indexOf(cell.camelotKey) + const startAngle = (keyIndex / keys.length) * Math.PI * 2 - Math.PI / 2 + const endAngle = ((keyIndex + 1) / keys.length) * Math.PI * 2 - Math.PI / 2 const ringSize = (outerRadius - innerRadius) / bands.length const path = arc()({ innerRadius: innerRadius + ringSize * cell.bandIndex, @@ -79,8 +78,8 @@ const PolarDensityChart = forwardRef( ) })} - {CAMELOT_KEYS.map((camelotKey, index) => { - const angle = ((index + 0.5) / CAMELOT_KEYS.length) * Math.PI * 2 - Math.PI / 2 + {keys.map((camelotKey, index) => { + const angle = ((index + 0.5) / keys.length) * Math.PI * 2 - Math.PI / 2 const labelRadius = outerRadius + 24 const x = Math.cos(angle) * labelRadius const y = Math.sin(angle) * labelRadius From adcb8dacc63cf42b82957aa0eeb30defb2e6130e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 20 May 2026 09:27:03 +0000 Subject: [PATCH 17/42] Polish chart controls Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/3914a9c1-fc83-4c93-b56d-a4e27a2b470f Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/App.css | 2 +- src/App.tsx | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/App.css b/src/App.css index 3398327..3e6c5d9 100644 --- a/src/App.css +++ b/src/App.css @@ -183,7 +183,7 @@ select { .segment-button { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 999px; - padding: 0.78rem 1rem; + padding: 0.8rem 1rem; font: inherit; color: #e2e8f0; background: rgba(148, 163, 184, 0.08); diff --git a/src/App.tsx b/src/App.tsx index a92c1a7..a4c07ba 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -442,9 +442,8 @@ function App() {

Polar harmonic density map

- Camelot {polarKeyMode === 'both' ? 'A/B' : polarKeyMode}-side wedges outside-in - {' '} - by {bpmBandSize} BPM ring. + Camelot {polarKeyMode === 'both' ? 'A/B' : polarKeyMode}-side wedges outside-in by{' '} + {bpmBandSize} BPM ring.

From 6601d11114179aec420d16120a5efe3bb1f7d57f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 20 May 2026 09:28:42 +0000 Subject: [PATCH 18/42] Tidy polar key mode state Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/3914a9c1-fc83-4c93-b56d-a4e27a2b470f Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/App.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index a4c07ba..8b384f1 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -42,6 +42,7 @@ interface OpenFilePickerConfig { } type PolarKeyMode = 'both' | 'A' | 'B' +const POLAR_KEY_MODES = ['both', 'A', 'B'] as const function App() { const [library, setLibrary] = useState(() => createMockLibrary()) @@ -134,9 +135,10 @@ function App() { : CAMELOT_KEYS.filter((camelotKey) => camelotKey.endsWith(polarKeyMode)), [polarKeyMode], ) + const polarKeySet = useMemo(() => new Set(polarKeys), [polarKeys]) const polarCells = useMemo( - () => densityCells.filter((cell) => polarKeys.includes(cell.camelotKey)), - [densityCells, polarKeys], + () => densityCells.filter((cell) => polarKeySet.has(cell.camelotKey)), + [densityCells, polarKeySet], ) const selectedCell = useMemo( () => densityCells.find((cell) => cell.id === selectedCellId) ?? null, @@ -448,7 +450,7 @@ function App() {
- {(['both', 'A', 'B'] as const).map((mode) => ( + {POLAR_KEY_MODES.map((mode) => ( - - ))} - + {sparseCells.length > 0 ? ( +
    + {sparseCells.map((cell) => { + const status = + cell.count === 0 ? 'empty' : cell.cellCount === 1 ? '1 track' : '1 track each' + const regionSummary = + cell.cellCount === 1 ? '1 cell' : `${cell.cellCount} cells` + + return ( +
  • + {cell.cellCount === 1 ? ( + + ) : ( +
    + {cell.camelotKey} + {cell.bandLabel} + {status} + {regionSummary} +
    + )} +
  • + ) + })} +
+ ) : ( +

No sparse or empty regions remain after the current filters.

+ )}
diff --git a/src/lib/analysis.ts b/src/lib/analysis.ts index ddc1c70..3d2c509 100644 --- a/src/lib/analysis.ts +++ b/src/lib/analysis.ts @@ -2,6 +2,7 @@ import { CAMELOT_KEYS } from './camelot' import type { BpmBand, DensityCell, + SparseCellSummary, SummaryStats, TrackRecord, TransitionRecord, @@ -136,9 +137,94 @@ export function summarizeTransitions( return [...groups.values()].sort((left, right) => right.count - left.count).slice(0, limit) } -export function findSparseCells(cells: DensityCell[], limit = 8): DensityCell[] { - return cells +export function findSparseCells(cells: DensityCell[], bands: BpmBand[]): SparseCellSummary[] { + const sparseCells = cells .filter((cell) => cell.count <= 1) - .sort((left, right) => left.count - right.count || left.id.localeCompare(right.id)) - .slice(0, limit) + .sort( + (left, right) => + left.count - right.count || + left.camelotKey.localeCompare(right.camelotKey) || + left.bandIndex - right.bandIndex, + ) + + const groups: SparseCellSummary[] = [] + let currentGroup: + | { + camelotKey: string + count: number + startBandIndex: number + endBandIndex: number + firstCellId: string + lastCellId: string + cellCount: number + } + | null = null + + for (const cell of sparseCells) { + if ( + currentGroup && + currentGroup.camelotKey === cell.camelotKey && + currentGroup.count === cell.count && + currentGroup.endBandIndex === cell.bandIndex - 1 + ) { + currentGroup.endBandIndex = cell.bandIndex + currentGroup.lastCellId = cell.id + currentGroup.cellCount += 1 + continue + } + + if (currentGroup) { + groups.push({ + id: currentGroup.lastCellId, + camelotKey: currentGroup.camelotKey, + bandLabel: formatSparseBandLabel( + bands, + currentGroup.startBandIndex, + currentGroup.endBandIndex, + ), + count: currentGroup.count, + cellCount: currentGroup.cellCount, + firstCellId: currentGroup.firstCellId, + }) + } + + currentGroup = { + camelotKey: cell.camelotKey, + count: cell.count, + startBandIndex: cell.bandIndex, + endBandIndex: cell.bandIndex, + firstCellId: cell.id, + lastCellId: cell.id, + cellCount: 1, + } + } + + if (currentGroup) { + groups.push({ + id: currentGroup.lastCellId, + camelotKey: currentGroup.camelotKey, + bandLabel: formatSparseBandLabel(bands, currentGroup.startBandIndex, currentGroup.endBandIndex), + count: currentGroup.count, + cellCount: currentGroup.cellCount, + firstCellId: currentGroup.firstCellId, + }) + } + + return groups +} + +function formatSparseBandLabel(bands: BpmBand[], startIndex: number, endIndex: number): string { + const startBand = bands[startIndex] + const endBand = bands[endIndex] + + if (!startBand || !endBand) { + return '' + } + + if (startIndex === endIndex) { + return startBand.label + } + + const rangeMaximum = endBand.max === null ? endBand.label : String(endBand.max - 1) + return `${startBand.min}-${rangeMaximum}` } diff --git a/src/types.ts b/src/types.ts index c59a423..31a837d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -52,6 +52,15 @@ export interface DensityCell { tracks: TrackRecord[] } +export interface SparseCellSummary { + id: string + camelotKey: string + bandLabel: string + count: number + cellCount: number + firstCellId: string +} + export interface SummaryStats { totalTracks: number playableTracks: number From aa6b62ed3d35b97744f665fa11153126e4101fc2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 20 May 2026 10:01:37 +0000 Subject: [PATCH 22/42] Polish sparse region summaries Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/16e1fdfd-27a6-4616-ab45-87eb7fdded38 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/App.tsx | 13 ++++++++++--- src/lib/analysis.ts | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 9b6cc36..cf05e88 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -17,7 +17,7 @@ import { CAMELOT_KEYS } from './lib/camelot' import { loadEngineDjLibrary } from './lib/engineDj' import { downloadSvgAsPng } from './lib/exportSvg' import { createMockLibrary } from './lib/mockData' -import type { LibraryData, TrackRecord } from './types' +import type { LibraryData, SparseCellSummary, TrackRecord } from './types' const initialFilters = { playlistId: 'all', @@ -548,8 +548,7 @@ function App() { {sparseCells.length > 0 ? (
    {sparseCells.map((cell) => { - const status = - cell.count === 0 ? 'empty' : cell.cellCount === 1 ? '1 track' : '1 track each' + const status = getSparseCellStatus(cell) const regionSummary = cell.cellCount === 1 ? '1 cell' : `${cell.cellCount} cells` @@ -609,4 +608,12 @@ function formatRating(track: TrackRecord): string { return `${track.rating.toFixed(1)}★` } +function getSparseCellStatus(cell: SparseCellSummary): string { + if (cell.count === 0) { + return 'empty' + } + + return cell.cellCount === 1 ? '1 track' : '1 track each' +} + export default App diff --git a/src/lib/analysis.ts b/src/lib/analysis.ts index 3d2c509..eded3be 100644 --- a/src/lib/analysis.ts +++ b/src/lib/analysis.ts @@ -225,6 +225,6 @@ function formatSparseBandLabel(bands: BpmBand[], startIndex: number, endIndex: n return startBand.label } - const rangeMaximum = endBand.max === null ? endBand.label : String(endBand.max - 1) + const rangeMaximum = endBand.max === null ? `${endBand.min}+` : String(endBand.max - 1) return `${startBand.min}-${rangeMaximum}` } From 34a5414d12a03ac225f019dbe084d7319f6e7677 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 04:57:14 +0000 Subject: [PATCH 23/42] Refine heatmap and polar chart controls Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/68aaa726-8b60-4fbb-87a6-f98f27d5d0f9 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/App.tsx | 43 ++++++++++++++++++++++------ src/components/HeatmapChart.tsx | 12 ++++---- src/components/PolarDensityChart.tsx | 26 ++++++++++++++--- 3 files changed, 62 insertions(+), 19 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index cf05e88..4077c60 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -140,6 +140,10 @@ function App() { () => densityCells.filter((cell) => polarKeySet.has(cell.camelotKey)), [densityCells, polarKeySet], ) + const heatmapCells = useMemo( + () => densityCells.filter((cell) => polarKeySet.has(cell.camelotKey)), + [densityCells, polarKeySet], + ) const selectedCell = useMemo( () => densityCells.find((cell) => cell.id === selectedCellId) ?? null, [densityCells, selectedCellId], @@ -487,20 +491,41 @@ function App() {

    BPM versus key heatmap

    -

    Quick comparison of dense and empty harmonic/tempo cells.

    +

    + Quick comparison of dense and empty harmonic/tempo cells for Camelot{' '} + {polarKeyMode === 'both' ? 'A/B' : `${polarKeyMode}-side`} keys. +

    +
    +
    +
    + {POLAR_KEY_MODES.map((mode) => ( + + ))} +
    +
    -
    diff --git a/src/components/HeatmapChart.tsx b/src/components/HeatmapChart.tsx index d2145b9..cb94cbe 100644 --- a/src/components/HeatmapChart.tsx +++ b/src/components/HeatmapChart.tsx @@ -1,12 +1,12 @@ import { scaleLinear, scaleSequential } from 'd3' import { interpolateTurbo } from 'd3-scale-chromatic' import { forwardRef, useMemo } from 'react' -import { CAMELOT_KEYS } from '../lib/camelot' import type { BpmBand, DensityCell } from '../types' interface HeatmapChartProps { bands: BpmBand[] cells: DensityCell[] + keys: string[] selectedCellId: string | null onSelect: (cellId: string) => void } @@ -17,7 +17,7 @@ const BAND_HEIGHT_PX = 18 const MIN_HEIGHT_PX = 420 const HeatmapChart = forwardRef( - ({ bands, cells, selectedCellId, onSelect }, ref) => { + ({ bands, cells, keys, selectedCellId, onSelect }, ref) => { const maximum = Math.max(1, ...cells.map((cell) => cell.count)) const height = Math.max( MIN_HEIGHT_PX, @@ -30,9 +30,9 @@ const HeatmapChart = forwardRef( const xScale = useMemo( () => scaleLinear() - .domain([0, CAMELOT_KEYS.length]) + .domain([0, keys.length]) .range([margin.left, width - margin.right]), - [], + [keys.length], ) const yScale = useMemo( () => @@ -53,7 +53,7 @@ const HeatmapChart = forwardRef( {cells.map((cell) => { - const keyIndex = CAMELOT_KEYS.indexOf(cell.camelotKey) + const keyIndex = keys.indexOf(cell.camelotKey) const x = xScale(keyIndex) const y = yScale(cell.bandIndex) const cellWidth = xScale(keyIndex + 1) - xScale(keyIndex) - 2 @@ -81,7 +81,7 @@ const HeatmapChart = forwardRef( ) })} - {CAMELOT_KEYS.map((camelotKey, index) => { + {keys.map((camelotKey, index) => { const x = xScale(index + 0.5) return ( ( ({ bands, cells, keys, selectedCellId, onSelect }, ref) => { const maximum = Math.max(1, ...cells.map((cell) => cell.count)) + const ringSize = (outerRadius - innerRadius) / bands.length + const unselectedStrokeWidth = clampStrokeWidth( + 12 / bands.length, + UNSELECTED_STROKE_MIN, + UNSELECTED_STROKE_MAX, + ) + const selectedStrokeWidth = clampStrokeWidth( + 30 / bands.length, + SELECTED_STROKE_MIN, + SELECTED_STROKE_MAX, + ) const bandRadii = useMemo( () => bands.map( @@ -54,13 +69,12 @@ const PolarDensityChart = forwardRef( const keyIndex = keys.indexOf(cell.camelotKey) const startAngle = (keyIndex / keys.length) * Math.PI * 2 - Math.PI / 2 const endAngle = ((keyIndex + 1) / keys.length) * Math.PI * 2 - Math.PI / 2 - const ringSize = (outerRadius - innerRadius) / bands.length const path = arc()({ innerRadius: innerRadius + ringSize * cell.bandIndex, - outerRadius: innerRadius + ringSize * (cell.bandIndex + 1) - 3, + outerRadius: innerRadius + ringSize * (cell.bandIndex + 1), startAngle, endAngle, - padAngle: 0.01, + padAngle: 0, }) return ( @@ -69,7 +83,7 @@ const PolarDensityChart = forwardRef( d={path ?? undefined} fill={cell.count === 0 ? 'rgba(255,255,255,0.05)' : colorScale(cell.count)} stroke={selectedCellId === cell.id ? '#fff' : 'rgba(255,255,255,0.08)'} - strokeWidth={selectedCellId === cell.id ? 2.5 : 1} + strokeWidth={selectedCellId === cell.id ? selectedStrokeWidth : unselectedStrokeWidth} className="chart-region" onClick={() => onSelect(cell.id)} > @@ -113,4 +127,8 @@ const PolarDensityChart = forwardRef( PolarDensityChart.displayName = 'PolarDensityChart' +function clampStrokeWidth(value: number, minimum: number, maximum: number): number { + return Math.min(maximum, Math.max(minimum, value)) +} + export default PolarDensityChart From 2a7250ca17fbbfe3dec32b2aa39c232772546874 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 04:58:06 +0000 Subject: [PATCH 24/42] Deduplicate key-filtered chart cells Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/68aaa726-8b60-4fbb-87a6-f98f27d5d0f9 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/App.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 4077c60..2debba8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -136,11 +136,7 @@ function App() { [polarKeyMode], ) const polarKeySet = useMemo(() => new Set(polarKeys), [polarKeys]) - const polarCells = useMemo( - () => densityCells.filter((cell) => polarKeySet.has(cell.camelotKey)), - [densityCells, polarKeySet], - ) - const heatmapCells = useMemo( + const visibleKeyCells = useMemo( () => densityCells.filter((cell) => polarKeySet.has(cell.camelotKey)), [densityCells, polarKeySet], ) @@ -480,7 +476,7 @@ function App() { Date: Thu, 21 May 2026 04:58:46 +0000 Subject: [PATCH 25/42] Name polar stroke scale constants Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/68aaa726-8b60-4fbb-87a6-f98f27d5d0f9 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/components/PolarDensityChart.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/PolarDensityChart.tsx b/src/components/PolarDensityChart.tsx index fbb9120..fd2a6a5 100644 --- a/src/components/PolarDensityChart.tsx +++ b/src/components/PolarDensityChart.tsx @@ -15,6 +15,8 @@ const width = 620 const height = 620 const outerRadius = 240 const innerRadius = 64 +const UNSELECTED_STROKE_BASE = 12 +const SELECTED_STROKE_BASE = 30 const UNSELECTED_STROKE_MIN = 0.1 const UNSELECTED_STROKE_MAX = 1 const SELECTED_STROKE_MIN = 0.5 @@ -25,12 +27,12 @@ const PolarDensityChart = forwardRef( const maximum = Math.max(1, ...cells.map((cell) => cell.count)) const ringSize = (outerRadius - innerRadius) / bands.length const unselectedStrokeWidth = clampStrokeWidth( - 12 / bands.length, + UNSELECTED_STROKE_BASE / bands.length, UNSELECTED_STROKE_MIN, UNSELECTED_STROKE_MAX, ) const selectedStrokeWidth = clampStrokeWidth( - 30 / bands.length, + SELECTED_STROKE_BASE / bands.length, SELECTED_STROKE_MIN, SELECTED_STROKE_MAX, ) From 514aff3b94eb4df6c70ca53bc9bd1c19d4667066 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 04:59:29 +0000 Subject: [PATCH 26/42] Share chart key mode handler Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/68aaa726-8b60-4fbb-87a6-f98f27d5d0f9 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/App.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 2debba8..28dc441 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -184,6 +184,11 @@ function App() { } } + const handleChangeKeyMode = (mode: PolarKeyMode) => { + setPolarKeyMode(mode) + setSelectedCellId(null) + } + const handleOpenDatabase = async () => { const pickerWindow = window as Window & { showOpenFilePicker?: (options?: OpenFilePickerConfig) => Promise @@ -455,10 +460,7 @@ function App() { key={mode} type="button" className={mode === polarKeyMode ? 'segment-button is-active' : 'segment-button'} - onClick={() => { - setPolarKeyMode(mode) - setSelectedCellId(null) - }} + onClick={() => handleChangeKeyMode(mode)} > {mode === 'both' ? 'A + B' : `${mode} only`} @@ -499,10 +501,7 @@ function App() { key={`heatmap-${mode}`} type="button" className={mode === polarKeyMode ? 'segment-button is-active' : 'segment-button'} - onClick={() => { - setPolarKeyMode(mode) - setSelectedCellId(null) - }} + onClick={() => handleChangeKeyMode(mode)} > {mode === 'both' ? 'A + B' : `${mode} only`} From fd788f98d4e220fe7db9b6646d8e29af696c7aa7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 05:00:26 +0000 Subject: [PATCH 27/42] Polish chart mode labels Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/68aaa726-8b60-4fbb-87a6-f98f27d5d0f9 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/App.tsx | 18 +++++++++++++----- src/components/PolarDensityChart.tsx | 3 +++ 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 28dc441..5e15fa4 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -449,8 +449,8 @@ function App() {

    Polar harmonic density map

    - Camelot {polarKeyMode === 'both' ? 'A/B' : polarKeyMode}-side wedges outside-in by{' '} - {bpmBandSize} BPM ring. + Camelot {formatKeyModeDescription(polarKeyMode)} wedges outside-in by {bpmBandSize}{' '} + BPM ring.

    @@ -462,7 +462,7 @@ function App() { className={mode === polarKeyMode ? 'segment-button is-active' : 'segment-button'} onClick={() => handleChangeKeyMode(mode)} > - {mode === 'both' ? 'A + B' : `${mode} only`} + {formatKeyModeButtonLabel(mode)} ))}
    @@ -491,7 +491,7 @@ function App() {

    BPM versus key heatmap

    Quick comparison of dense and empty harmonic/tempo cells for Camelot{' '} - {polarKeyMode === 'both' ? 'A/B' : `${polarKeyMode}-side`} keys. + {formatKeyModeDescription(polarKeyMode)} keys.

    @@ -503,7 +503,7 @@ function App() { className={mode === polarKeyMode ? 'segment-button is-active' : 'segment-button'} onClick={() => handleChangeKeyMode(mode)} > - {mode === 'both' ? 'A + B' : `${mode} only`} + {formatKeyModeButtonLabel(mode)} ))}
    @@ -636,4 +636,12 @@ function getSparseCellStatus(cell: SparseCellSummary): string { return cell.cellCount === 1 ? '1 track' : '1 track each' } +function formatKeyModeButtonLabel(mode: PolarKeyMode): string { + return mode === 'both' ? 'A + B' : `${mode} only` +} + +function formatKeyModeDescription(mode: PolarKeyMode): string { + return mode === 'both' ? 'A/B-side' : `${mode}-side` +} + export default App diff --git a/src/components/PolarDensityChart.tsx b/src/components/PolarDensityChart.tsx index fd2a6a5..e85364d 100644 --- a/src/components/PolarDensityChart.tsx +++ b/src/components/PolarDensityChart.tsx @@ -129,6 +129,9 @@ const PolarDensityChart = forwardRef( PolarDensityChart.displayName = 'PolarDensityChart' +/** + * Keeps inverse band-count stroke scaling within readable visual bounds. + */ function clampStrokeWidth(value: number, minimum: number, maximum: number): number { return Math.min(maximum, Math.max(minimum, value)) } From 162fb545fcd9513ec5a05e8e7937e813f79965fe Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 05:04:55 +0000 Subject: [PATCH 28/42] Scale polar BPM label font Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/5800cbb1-2129-4949-8b59-0124cb8cccab Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/components/PolarDensityChart.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/PolarDensityChart.tsx b/src/components/PolarDensityChart.tsx index e85364d..0b6cf66 100644 --- a/src/components/PolarDensityChart.tsx +++ b/src/components/PolarDensityChart.tsx @@ -21,11 +21,14 @@ const UNSELECTED_STROKE_MIN = 0.1 const UNSELECTED_STROKE_MAX = 1 const SELECTED_STROKE_MIN = 0.5 const SELECTED_STROKE_MAX = 2.5 +const BAND_LABEL_FONT_MIN = 4 +const BAND_LABEL_FONT_MAX = 12.48 const PolarDensityChart = forwardRef( ({ bands, cells, keys, selectedCellId, onSelect }, ref) => { const maximum = Math.max(1, ...cells.map((cell) => cell.count)) const ringSize = (outerRadius - innerRadius) / bands.length + const bandLabelFontSize = clampValue(BAND_LABEL_FONT_MAX * (ringSize / 18), BAND_LABEL_FONT_MIN, BAND_LABEL_FONT_MAX) const unselectedStrokeWidth = clampStrokeWidth( UNSELECTED_STROKE_BASE / bands.length, UNSELECTED_STROKE_MIN, @@ -101,9 +104,11 @@ const PolarDensityChart = forwardRef( {band.label} @@ -133,6 +138,10 @@ PolarDensityChart.displayName = 'PolarDensityChart' * Keeps inverse band-count stroke scaling within readable visual bounds. */ function clampStrokeWidth(value: number, minimum: number, maximum: number): number { + return clampValue(value, minimum, maximum) +} + +function clampValue(value: number, minimum: number, maximum: number): number { return Math.min(maximum, Math.max(minimum, value)) } From ec8f050ab58050ae2ffede0831409976a6d864a6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 05:06:04 +0000 Subject: [PATCH 29/42] Normalize polar label font cap Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/5800cbb1-2129-4949-8b59-0124cb8cccab Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/components/PolarDensityChart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PolarDensityChart.tsx b/src/components/PolarDensityChart.tsx index 0b6cf66..03b9773 100644 --- a/src/components/PolarDensityChart.tsx +++ b/src/components/PolarDensityChart.tsx @@ -22,7 +22,7 @@ const UNSELECTED_STROKE_MAX = 1 const SELECTED_STROKE_MIN = 0.5 const SELECTED_STROKE_MAX = 2.5 const BAND_LABEL_FONT_MIN = 4 -const BAND_LABEL_FONT_MAX = 12.48 +const BAND_LABEL_FONT_MAX = 12.5 const PolarDensityChart = forwardRef( ({ bands, cells, keys, selectedCellId, onSelect }, ref) => { From fc6a45d83d2358be28a691388e14af4db8e7ab55 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 05:07:00 +0000 Subject: [PATCH 30/42] Name polar label scale factor Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/5800cbb1-2129-4949-8b59-0124cb8cccab Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/components/PolarDensityChart.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/PolarDensityChart.tsx b/src/components/PolarDensityChart.tsx index 03b9773..a4d679d 100644 --- a/src/components/PolarDensityChart.tsx +++ b/src/components/PolarDensityChart.tsx @@ -23,12 +23,17 @@ const SELECTED_STROKE_MIN = 0.5 const SELECTED_STROKE_MAX = 2.5 const BAND_LABEL_FONT_MIN = 4 const BAND_LABEL_FONT_MAX = 12.5 +const BAND_LABEL_REFERENCE_RING_SIZE = 18 const PolarDensityChart = forwardRef( ({ bands, cells, keys, selectedCellId, onSelect }, ref) => { const maximum = Math.max(1, ...cells.map((cell) => cell.count)) const ringSize = (outerRadius - innerRadius) / bands.length - const bandLabelFontSize = clampValue(BAND_LABEL_FONT_MAX * (ringSize / 18), BAND_LABEL_FONT_MIN, BAND_LABEL_FONT_MAX) + const bandLabelFontSize = clampValue( + BAND_LABEL_FONT_MAX * (ringSize / BAND_LABEL_REFERENCE_RING_SIZE), + BAND_LABEL_FONT_MIN, + BAND_LABEL_FONT_MAX, + ) const unselectedStrokeWidth = clampStrokeWidth( UNSELECTED_STROKE_BASE / bands.length, UNSELECTED_STROKE_MIN, From 6015dd0b475c91126a0e4612b5ff0ae1c4289b43 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 05:07:59 +0000 Subject: [PATCH 31/42] Simplify polar label positioning Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/5800cbb1-2129-4949-8b59-0124cb8cccab Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/components/PolarDensityChart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PolarDensityChart.tsx b/src/components/PolarDensityChart.tsx index a4d679d..4ea3244 100644 --- a/src/components/PolarDensityChart.tsx +++ b/src/components/PolarDensityChart.tsx @@ -109,7 +109,7 @@ const PolarDensityChart = forwardRef( Date: Thu, 21 May 2026 05:08:58 +0000 Subject: [PATCH 32/42] Clarify polar label scale constant Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/5800cbb1-2129-4949-8b59-0124cb8cccab Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/components/PolarDensityChart.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PolarDensityChart.tsx b/src/components/PolarDensityChart.tsx index 4ea3244..a25df8e 100644 --- a/src/components/PolarDensityChart.tsx +++ b/src/components/PolarDensityChart.tsx @@ -23,14 +23,14 @@ const SELECTED_STROKE_MIN = 0.5 const SELECTED_STROKE_MAX = 2.5 const BAND_LABEL_FONT_MIN = 4 const BAND_LABEL_FONT_MAX = 12.5 -const BAND_LABEL_REFERENCE_RING_SIZE = 18 +const BAND_LABEL_REFERENCE_RING_HEIGHT = 18 const PolarDensityChart = forwardRef( ({ bands, cells, keys, selectedCellId, onSelect }, ref) => { const maximum = Math.max(1, ...cells.map((cell) => cell.count)) const ringSize = (outerRadius - innerRadius) / bands.length const bandLabelFontSize = clampValue( - BAND_LABEL_FONT_MAX * (ringSize / BAND_LABEL_REFERENCE_RING_SIZE), + BAND_LABEL_FONT_MAX * (ringSize / BAND_LABEL_REFERENCE_RING_HEIGHT), BAND_LABEL_FONT_MIN, BAND_LABEL_FONT_MAX, ) From 878b31f19e100352a1615b33a488ae31408b253f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 05:10:01 +0000 Subject: [PATCH 33/42] Polish polar label y position Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/5800cbb1-2129-4949-8b59-0124cb8cccab Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/components/PolarDensityChart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PolarDensityChart.tsx b/src/components/PolarDensityChart.tsx index a25df8e..cc1583c 100644 --- a/src/components/PolarDensityChart.tsx +++ b/src/components/PolarDensityChart.tsx @@ -109,7 +109,7 @@ const PolarDensityChart = forwardRef( Date: Thu, 21 May 2026 05:13:17 +0000 Subject: [PATCH 34/42] Remove playlist transitions panel Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/b935ceee-0146-452b-8d98-995d4a464519 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/App.tsx | 45 +-------------------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 5e15fa4..8f38c9b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -11,7 +11,6 @@ import { MAX_BPM_BAND_SIZE, MIN_BPM_BAND_SIZE, summarizeTracks, - summarizeTransitions, } from './lib/analysis' import { CAMELOT_KEYS } from './lib/camelot' import { loadEngineDjLibrary } from './lib/engineDj' @@ -99,27 +98,6 @@ function App() { }) }, [filters, library.tracks, playlistLookup]) - const filteredTrackIds = useMemo( - () => new Set(filteredTracks.map((track) => track.id)), - [filteredTracks], - ) - - const filteredTransitions = useMemo(() => { - return library.transitions.filter((transition) => { - if ( - filters.playlistId !== 'all' && - transition.playlistId !== filters.playlistId - ) { - return false - } - - return ( - filteredTrackIds.has(transition.fromTrackId) && - filteredTrackIds.has(transition.toTrackId) - ) - }) - }, [filteredTrackIds, filters.playlistId, library.transitions]) - const bpmBands = useMemo( () => createBpmBands(filteredTracks, bpmBandSize), [bpmBandSize, filteredTracks], @@ -146,10 +124,6 @@ function App() { ) const summary = useMemo(() => summarizeTracks(filteredTracks), [filteredTracks]) const sparseCells = useMemo(() => findSparseCells(densityCells, bpmBands), [bpmBands, densityCells]) - const topTransitions = useMemo( - () => summarizeTransitions(filteredTransitions), - [filteredTransitions], - ) const handleLoadMockData = () => { setLibrary(createMockLibrary()) @@ -254,7 +228,7 @@ function App() {

    See where your key and BPM density actually lives.

    Load a local Engine DJ SQLite database in the browser, inspect harmonic and - tempo hotspots, and drill into sparse areas or playlist transitions without + tempo hotspots, and drill into sparse areas without uploading your library anywhere. Engine DJ usually stores it at {' '} @@ -598,23 +572,6 @@ function App() { )}

-
-

Top playlist transitions

-
    - {topTransitions.length > 0 ? ( - topTransitions.map((transition) => ( -
  • -
    - {transition.label} - {transition.count} chained mix points -
    -
  • - )) - ) : ( -
  • No playlist transitions remain after the current filters.
  • - )} -
-
) From fe33036cd1677293c408ebbf8436c8786a180038 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 05:35:59 +0000 Subject: [PATCH 35/42] Add track title spacing Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/3bbe7cd3-239e-4cc7-86f3-c9ce760a9282 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- src/App.css | 6 ++++++ src/App.tsx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/App.css b/src/App.css index f1a5ee0..57e6fa2 100644 --- a/src/App.css +++ b/src/App.css @@ -262,6 +262,12 @@ select { gap: 8px; } +.track-title { + display: flex; + flex-wrap: wrap; + gap: 0.35em; +} + .track-list strong, .simple-list strong, .source-panel strong { diff --git a/src/App.tsx b/src/App.tsx index 8f38c9b..a7e8791 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -514,7 +514,7 @@ function App() { {selectedCell.tracks.length > 0 ? ( selectedCell.tracks.map((track) => (
  • -
    +
    {track.artist} {track.title}
    From 2fad768aa68d8a4cac91e2e07f811a658c300baa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 05:42:50 +0000 Subject: [PATCH 36/42] Add visible app version Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/c8e26471-412f-4aac-ba26-e4f809f916b7 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- package.json | 2 +- src/App.tsx | 6 ++++++ src/globals.d.ts | 1 + vite.config.ts | 3 +++ 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/globals.d.ts diff --git a/package.json b/package.json index 2e447ee..e44f68c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "keybpmmap", "private": true, - "version": "0.0.0", + "version": "0.1.0", "type": "module", "scripts": { "dev": "vite", diff --git a/src/App.tsx b/src/App.tsx index a7e8791..a136152 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -42,6 +42,7 @@ interface OpenFilePickerConfig { type PolarKeyMode = 'both' | 'A' | 'B' const POLAR_KEY_MODES = ['both', 'A', 'B'] as const +const APP_VERSION = __APP_VERSION__ function App() { const [library, setLibrary] = useState(() => createMockLibrary()) @@ -290,6 +291,11 @@ function App() { Browser only

    No upload path, no remote API, no backend.

    +
    +

    Version

    + v{APP_VERSION} +

    Manually bumped in package.json for each PR.

    +
    {error ?
    {error}
    : null} diff --git a/src/globals.d.ts b/src/globals.d.ts new file mode 100644 index 0000000..e042dcc --- /dev/null +++ b/src/globals.d.ts @@ -0,0 +1 @@ +declare const __APP_VERSION__: string diff --git a/vite.config.ts b/vite.config.ts index 8941466..49c6a7d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,5 +3,8 @@ import react from '@vitejs/plugin-react' export default defineConfig({ base: '/KeyBpmMap/', + define: { + __APP_VERSION__: JSON.stringify(process.env.npm_package_version ?? '0.1.0'), + }, plugins: [react()], }) From 62b1ea92415faee1b61d3616affaafe82054869a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 05:44:04 +0000 Subject: [PATCH 37/42] Read app version from package metadata Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/c8e26471-412f-4aac-ba26-e4f809f916b7 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- vite.config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 49c6a7d..b63143f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,10 +1,15 @@ +import { readFileSync } from 'node:fs' import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' +const { version } = JSON.parse( + readFileSync(new URL('./package.json', import.meta.url), 'utf8'), +) as { version: string } + export default defineConfig({ base: '/KeyBpmMap/', define: { - __APP_VERSION__: JSON.stringify(process.env.npm_package_version ?? '0.1.0'), + __APP_VERSION__: JSON.stringify(version), }, plugins: [react()], }) From 3daf4a4da010e2340e398f698ab0a47130ed0ec4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 05:45:05 +0000 Subject: [PATCH 38/42] Validate package version metadata Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/c8e26471-412f-4aac-ba26-e4f809f916b7 Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- vite.config.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index b63143f..1bf6c15 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,9 +2,15 @@ import { readFileSync } from 'node:fs' import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' -const { version } = JSON.parse( +const packageMetadata = JSON.parse( readFileSync(new URL('./package.json', import.meta.url), 'utf8'), -) as { version: string } +) as { version?: unknown } + +if (typeof packageMetadata.version !== 'string' || packageMetadata.version.length === 0) { + throw new Error('package.json must define a non-empty string version') +} + +const version = packageMetadata.version export default defineConfig({ base: '/KeyBpmMap/', From 3baad9f273107e1e7847944bed79993ae219e7ea Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 05:50:19 +0000 Subject: [PATCH 39/42] Add Copilot version review guidance Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/f0d861be-38c4-4937-a76e-76759a62930e Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- .github/copilot-instructions.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/copilot-instructions.md diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 0000000..6ff4128 --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,7 @@ +# Copilot review instructions + +- The app version shown in the UI comes from `package.json`. +- Every pull request should bump `package.json` to a newer version before review. +- Treat the project version as monotonically increasing: never reuse, lower, or skip back to an older version than the base branch. +- Follow the current project convention of incrementing the minor version for each PR (for example `0.1.0` → `0.2.0`). +- Copilot reviews should flag any PR that does not update the version, or that updates it to a value that is not strictly greater than the version on the base branch. From 3d38569ffa52d4203841ad992e965ee69616fc75 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 05:50:51 +0000 Subject: [PATCH 40/42] Clarify version bump example Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/f0d861be-38c4-4937-a76e-76759a62930e Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- .github/copilot-instructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 6ff4128..42e6f84 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -3,5 +3,5 @@ - The app version shown in the UI comes from `package.json`. - Every pull request should bump `package.json` to a newer version before review. - Treat the project version as monotonically increasing: never reuse, lower, or skip back to an older version than the base branch. -- Follow the current project convention of incrementing the minor version for each PR (for example `0.1.0` → `0.2.0`). +- Follow the current project convention of incrementing the minor version for each PR (for example `0.1.0` → `0.2.0` → `0.3.0` across consecutive PRs). - Copilot reviews should flag any PR that does not update the version, or that updates it to a value that is not strictly greater than the version on the base branch. From c30078e58fe0d0106ffa8bb44151cadeab17571f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 05:51:23 +0000 Subject: [PATCH 41/42] Polish Copilot version review guidance Agent-Logs-Url: https://github.com/samsta/KeyBpmMap/sessions/f0d861be-38c4-4937-a76e-76759a62930e Co-authored-by: samsta <3915450+samsta@users.noreply.github.com> --- .github/copilot-instructions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 42e6f84..e4e36bf 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -1,7 +1,7 @@ # Copilot review instructions - The app version shown in the UI comes from `package.json`. -- Every pull request should bump `package.json` to a newer version before review. +- Every pull request should bump `package.json` to a newer version before merge. - Treat the project version as monotonically increasing: never reuse, lower, or skip back to an older version than the base branch. -- Follow the current project convention of incrementing the minor version for each PR (for example `0.1.0` → `0.2.0` → `0.3.0` across consecutive PRs). +- The project convention is to increment the minor version for each PR (for example `0.1.0` → `0.2.0` → `0.3.0` across consecutive PRs). - Copilot reviews should flag any PR that does not update the version, or that updates it to a value that is not strictly greater than the version on the base branch. From bbbf1cddae873a11098ca59981184af86e6742b7 Mon Sep 17 00:00:00 2001 From: Sam Nobs Date: Thu, 21 May 2026 17:52:14 +1200 Subject: [PATCH 42/42] Apply suggestion from @samsta --- src/App.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index a136152..b1ae83a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -294,7 +294,6 @@ function App() {

    Version

    v{APP_VERSION} -

    Manually bumped in package.json for each PR.