Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(ui): patch dependency security and Monaco sanitizer (#2026)
Call White9852e25f4646
diff --git a/docs/plans/ui-dependency-security.md b/docs/plans/ui-dependency-security.mdnew file mode 100644index 000000000..ca4aec9c2--- /dev/null+++ b/docs/plans/ui-dependency-security.md@@ -0,0 +1,72 @@+# UI dependency security repair++## Goal and boundary++Repair the npm advisories diagnosed against the 3.1.0 source, including the+sanitizer actually bundled through Monaco. Do not suppress audit findings,+replace the editor, change application navigation policy, or alter release,+Memory, host/runtime, or user-data behavior.++The audit names 14 packages (10 development-only and two production dependency+chains), not 14 demonstrated application exploits. Current routing and Monaco+consumers avoid several advisory prerequisites, but that is not a reason to keep+known-vulnerable versions.++## Change contract++- Use compatible patched dependency releases; preserve existing major versions+ and the pinned editor unless a demonstrated compatibility constraint requires+ otherwise.+- Promote the existing transitive DOMPurify to an explicit patched dependency.+ Reconcile Monaco's package dependency and redirect its vendored import through+ Vite to this same sanitizer. A lockfile override alone cannot replace copied+ vendor source.+- Preserve Monaco's default-export sanitizer API, existing allowlists/hooks,+ URI restrictions, Markdown output and self-hosted workers.+- CSS-only validation has no need to read previous source maps. Disable that+ behavior in the existing parsing consumers, in addition to updating PostCSS.+- Add regressions for actual stylesheet consumers, navigation and Monaco's+ resolved sanitizer. Verify the production build excludes the vendored old+ sanitizer and includes the declared patched package.++## Acceptance++1. Clean install from the committed lockfile; npm audit reports no remaining+ known vulnerabilities, including development dependencies.+2. Synthetic CSS cannot read an outside-tree source map through the actual+ validation helper; ordinary CSS/token validation still works.+3. The actual Vite/Monaco consumer uses the patched sanitizer, strips dangerous+ markup/URLs and preserves normal Markdown. Inspect the built module graph,+ not just dependency metadata.+4. Routing regressions, UI tests, theme/catalog/import validation, type checks,+ lint policy, and production build pass. Existing unrelated lint findings+ remain governed by the unchanged baseline.+5. Exact-head Codex clean review, no unresolved whole-PR threads and every+ expected CI job green before delivery. No merge without separate authority.++## Known by design++- No live host update, browser/profile interaction, real personal data or+ remote tenant operation. Hermetic tests do not claim released-host E2E.+- No CDN loader, postinstall mutation of node_modules, vendored security fork,+ major toolchain migration, audit ignore list, or automatic publication.+- Monaco's unused copied sanitizer can remain inside its npm tarball; it must+ not be part of the application dev or production module graph.++## Local validation++The clean install and audit report zero known vulnerabilities (development+included). All 4,161 UI tests pass with no skips, along with theme validation,+the unchanged lint baseline, test type checking, and the production build.+The emitted editor chunk contains DOMPurify 3.4.15, not the copied 3.2.7.+The consumer-bundle test also checks module identities and spies on the+sanitizer called by Monaco, so the evidence does not depend on version text+alone. Existing build warnings about large chunks and third-party pure+annotations remain unchanged. GitHub review and CI are separate delivery gates.++The lockfile is regenerated with CI's npm 10.9.2 to retain the root optional+peer entries required by `@napi-rs/wasm-runtime`. A clean npm 10.9.2 install and+consistency checks with npm 10.9.2 and 11.4.2 pass on local Node 22.18.0.+The complete UI suite, audit and production build also pass after that clean+install. This is not a claim that local tests covered Node 24 or Linux; the+exact-head CI remains required for its own environment.diff --git a/ui/package-lock.json b/ui/package-lock.jsonindex 179c58eda..e17c19581 100644--- a/ui/package-lock.json+++ b/ui/package-lock.json@@ -36,6 +36,7 @@"clsx": "^2.1.1","cmdk": "^1.1.1","docx-preview": "^0.3.7",+ "dompurify": "3.4.15","framer-motion": "^12.26.2","i18next": "^25.7.4","i18next-browser-languagedetector": "^8.2.0",@@ -50,7 +51,7 @@"react-dom": "^19.2.0","react-i18next": "^16.5.3","react-markdown": "^10.1.0",- "react-router-dom": "^7.17.0",+ "react-router-dom": "^7.18.4","react-zoom-pan-pinch": "^4.0.3","remark-breaks": "^4.0.0","remark-cjk-friendly": "^2.3.1",@@ -76,14 +77,14 @@"eslint-plugin-react-hooks": "^7.0.1","eslint-plugin-react-refresh": "^0.4.24","globals": "^16.5.0",- "js-yaml": "^4.1.0",+ "js-yaml": "^4.3.2","jsdom": "^29.1.1",- "postcss": "^8.5.15",+ "postcss": "^8.5.28","tailwindcss": "^4.1.18","typescript": "~5.9.3","typescript-eslint": "^8.46.4","vite": "^8.0.16",- "vitest": "^4.1.9"+ "vitest": "^4.1.11"},"engines": {"node": "^20.19.0 || >=22.12.0"@@ -154,13 +155,13 @@"license": "MIT"},"node_modules/@babel/code-frame": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.28.6.tgz",- "integrity": "sha512-JYgintcMjRiCvS8mMECzaEn+m3PfoQiyqukOMCCVQtoJGYJw8j/8LBJEiqkHLkfwCcs74E3pbAUFNg7d9VNJ+Q==",+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",+ "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==","dev": true,"license": "MIT","dependencies": {- "@babel/helper-validator-identifier": "^7.28.5",+ "@babel/helper-validator-identifier": "^7.29.7","js-tokens": "^4.0.0","picocolors": "^1.1.1"},@@ -169,9 +170,9 @@}},"node_modules/@babel/compat-data": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.6.tgz",- "integrity": "sha512-2lfu57JtzctfIrcGMz992hyLlByuzgIk58+hhGCxjKZ3rWI82NnVLjXcaTqkI2NvlcvOskZaiZ5kjUALo3Lpxg==",+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz",+ "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==","dev": true,"license": "MIT","engines": {@@ -179,21 +180,21 @@}},"node_modules/@babel/core": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.6.tgz",- "integrity": "sha512-H3mcG6ZDLTlYfaSNi0iOKkigqMFvkTKlGUYlD8GW7nNOYRrevuA46iTypPyv+06V3fEmvvazfntkBU34L0azAw==",+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz",+ "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==","dev": true,"license": "MIT","dependencies": {- "@babel/code-frame": "^7.28.6",- "@babel/generator": "^7.28.6",- "@babel/helper-compilation-targets": "^7.28.6",- "@babel/helper-module-transforms": "^7.28.6",- "@babel/helpers": "^7.28.6",- "@babel/parser": "^7.28.6",- "@babel/template": "^7.28.6",- "@babel/traverse": "^7.28.6",- "@babel/types": "^7.28.6",+ "@babel/code-frame": "^7.29.7",+ "@babel/generator": "^7.29.7",+ "@babel/helper-compilation-targets": "^7.29.7",+ "@babel/helper-module-transforms": "^7.29.7",+ "@babel/helpers": "^7.29.7",+ "@babel/parser": "^7.29.7",+ "@babel/template": "^7.29.7",+ "@babel/traverse": "^7.29.7",+ "@babel/types": "^7.29.7","@jridgewell/remapping": "^2.3.5","convert-source-map": "^2.0.0","debug": "^4.1.0",@@ -210,14 +211,14 @@}},"node_modules/@babel/generator": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.6.tgz",- "integrity": "sha512-lOoVRwADj8hjf7al89tvQ2a1lf53Z+7tiXMgpZJL3maQPDxh0DgLMN62B2MKUOFcoodBHLMbDM6WAbKgNy5Suw==",+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz",+ "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==","dev": true,"license": "MIT","dependencies": {- "@babel/parser": "^7.28.6",- "@babel/types": "^7.28.6",+ "@babel/parser": "^7.29.8",+ "@babel/types": "^7.29.8","@jridgewell/gen-mapping": "^0.3.12","@jridgewell/trace-mapping": "^0.3.28","jsesc": "^3.0.2"@@ -227,14 +228,14 @@}},"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==",+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz",+ "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==","dev": true,"license": "MIT","dependencies": {- "@babel/compat-data": "^7.28.6",- "@babel/helper-validator-option": "^7.27.1",+ "@babel/compat-data": "^7.29.7",+ "@babel/helper-validator-option": "^7.29.7","browserslist": "^4.24.0","lru-cache": "^5.1.1","semver": "^6.3.1"@@ -244,9 +245,9 @@}},"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==",+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz",+ "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==","dev": true,"license": "MIT","engines": {@@ -254,29 +255,29 @@}},"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==",+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz",+ "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==","dev": true,"license": "MIT","dependencies": {- "@babel/traverse": "^7.28.6",- "@babel/types": "^7.28.6"+ "@babel/traverse": "^7.29.7",+ "@babel/types": "^7.29.7"},"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==",+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz",+ "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==","dev": true,"license": "MIT","dependencies": {- "@babel/helper-module-imports": "^7.28.6",- "@babel/helper-validator-identifier": "^7.28.5",- "@babel/traverse": "^7.28.6"+ "@babel/helper-module-imports": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7",+ "@babel/traverse": "^7.29.7"},"engines": {"node": ">=6.9.0"@@ -286,9 +287,9 @@}},"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==",+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz",+ "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==","dev": true,"license": "MIT","engines": {@@ -296,9 +297,9 @@}},"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==",+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",+ "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==","dev": true,"license": "MIT","engines": {@@ -306,9 +307,9 @@}},"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==",+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz",+ "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==","dev": true,"license": "MIT","engines": {@@ -316,27 +317,27 @@}},"node_modules/@babel/helpers": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz",- "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==",+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz",+ "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==","dev": true,"license": "MIT","dependencies": {- "@babel/template": "^7.28.6",- "@babel/types": "^7.28.6"+ "@babel/template": "^7.29.7",+ "@babel/types": "^7.29.7"},"engines": {"node": ">=6.9.0"}},"node_modules/@babel/parser": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.6.tgz",- "integrity": "sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==",+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz",+ "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==","dev": true,"license": "MIT","dependencies": {- "@babel/types": "^7.28.6"+ "@babel/types": "^7.29.8"},"bin": {"parser": "bin/babel-parser.js"@@ -355,33 +356,33 @@}},"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==",+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",+ "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==","dev": true,"license": "MIT","dependencies": {- "@babel/code-frame": "^7.28.6",- "@babel/parser": "^7.28.6",- "@babel/types": "^7.28.6"+ "@babel/code-frame": "^7.29.7",+ "@babel/parser": "^7.29.7",+ "@babel/types": "^7.29.7"},"engines": {"node": ">=6.9.0"}},"node_modules/@babel/traverse": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.6.tgz",- "integrity": "sha512-fgWX62k02qtjqdSNTAGxmKYY/7FSL9WAS1o2Hu5+I5m9T0yxZzr4cnrfXQ/MX0rIifthCSs6FKTlzYbJcPtMNg==",+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz",+ "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==","dev": true,"license": "MIT","dependencies": {- "@babel/code-frame": "^7.28.6",- "@babel/generator": "^7.28.6",- "@babel/helper-globals": "^7.28.0",- "@babel/parser": "^7.28.6",- "@babel/template": "^7.28.6",- "@babel/types": "^7.28.6",+ "@babel/code-frame": "^7.29.7",+ "@babel/generator": "^7.29.8",+ "@babel/helper-globals": "^7.29.7",+ "@babel/parser": "^7.29.8",+ "@babel/template": "^7.29.7",+ "@babel/types": "^7.29.8","debug": "^4.3.1"},"engines": {@@ -389,14 +390,14 @@}},"node_modules/@babel/types": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.6.tgz",- "integrity": "sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==",+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==","dev": true,"license": "MIT","dependencies": {- "@babel/helper-string-parser": "^7.27.1",- "@babel/helper-validator-identifier": "^7.28.5"+ "@babel/helper-string-parser": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7"},"engines": {"node": ">=6.9.0"@@ -590,7 +591,6 @@"resolved": "https://registry.npmjs.org/@dnd-kit/core/-/core-6.3.1.tgz","integrity": "sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ==","license": "MIT",- "peer": true,"dependencies": {"@dnd-kit/accessibility": "^3.1.1","@dnd-kit/utilities": "^3.2.2",@@ -628,22 +628,22 @@}},"node_modules/@emnapi/core": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.1.tgz",- "integrity": "sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==",+ "version": "1.11.3",+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.3.tgz",+ "integrity": "sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg==","dev": true,"license": "MIT","optional": true,"peer": true,"dependencies": {- "@emnapi/wasi-threads": "1.2.2",+ "@emnapi/wasi-threads": "1.2.3","tslib": "^2.4.0"}},"node_modules/@emnapi/runtime": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.1.tgz",- "integrity": "sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==",+ "version": "1.11.3",+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",+ "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==","dev": true,"license": "MIT","optional": true,@@ -653,9 +653,9 @@}},"node_modules/@emnapi/wasi-threads": {- "version": "1.2.2",- "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.2.tgz",- "integrity": "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==",+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.3.tgz",+ "integrity": "sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g==","dev": true,"license": "MIT","optional": true,@@ -926,29 +926,43 @@}},"node_modules/@humanfs/core": {- "version": "0.19.1",- "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",- "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==",+ "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.7",- "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz",- "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==",+ "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.1",+ "@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",@@ -3226,9 +3240,9 @@}},"node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.0.tgz",- "integrity": "sha512-TN1kCZAgdgweJhWWpgKYrQaMNHcDULHkWwQIspdtjV4Y5aurRdZpjAqn6yX3FPqTA9ngHCc4hJxMAMgGfve85w==",+ "version": "2.1.7",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz",+ "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==","dev": true,"license": "MIT","dependencies": {@@ -3353,16 +3367,16 @@}},"node_modules/@vitest/expect": {- "version": "4.1.9",- "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.9.tgz",- "integrity": "sha512-vl/rYsUKcBr3SnQn166+XR5ZQcgMx3DQhFWdfli/cWpLnLUmbxZvyrJZotLFUryib+LtArYMSTJ5RbQ57ZqrlA==",+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.11.tgz",+ "integrity": "sha512-VX2x5vNJXET47KAFzwERI+KRMtTTCSWTfSMKsW7JsUsXV4psq++e3DvZpuTDOpHcxytiDs6p2nhVb2tVDiiUYw==","dev": true,"license": "MIT","dependencies": {"@standard-schema/spec": "^1.1.0","@types/chai": "^5.2.2",- "@vitest/spy": "4.1.9",- "@vitest/utils": "4.1.9",+ "@vitest/spy": "4.1.11",+ "@vitest/utils": "4.1.11","chai": "^6.2.2","tinyrainbow": "^3.1.0"},@@ -3371,13 +3385,13 @@}},"node_modules/@vitest/mocker": {- "version": "4.1.9",- "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.9.tgz",- "integrity": "sha512-EVkXzBjrPGM+cK8/ANWgBrkUCfJfb38/EfTSO8h7pWvKkyPkpWxvR7BkD2MyItMF62C97zAEoqdpUixwR/e+Rw==",+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.11.tgz",+ "integrity": "sha512-2XJVD55d1o5AZous5CCGKS74g/riOj9odEt2bQpCVZeblHyHdnMeFl4jl0XjU21stf4mbjUkew2eXQZt65g5CQ==","dev": true,"license": "MIT","dependencies": {- "@vitest/spy": "4.1.9",+ "@vitest/spy": "4.1.11","estree-walker": "^3.0.3","magic-string": "^0.30.21"},@@ -3398,9 +3412,9 @@}},"node_modules/@vitest/pretty-format": {- "version": "4.1.9",- "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.9.tgz",- "integrity": "sha512-s0iufns3iIFitdgm+YR7g1whCAaGtXz459VS9/PqyKDEEFgYIhsHOQmXgIgDuYCt7DeQmiZT0Qe2OA2p4ZPu5A==",+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.11.tgz",+ "integrity": "sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==","dev": true,"license": "MIT","dependencies": {@@ -3411,13 +3425,13 @@}},"node_modules/@vitest/runner": {- "version": "4.1.9",- "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.9.tgz",- "integrity": "sha512-KXLMDtc7oe70+3mJfGrPUWPesswH+3sTxAMAMl8DG7I8IUQT4XW718dY5ID3vPUcmlu27CcKfY4P3h3I29SLJg==",+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.11.tgz",+ "integrity": "sha512-LztvUgdwMNJMIkj3hQnnxiC2Xy1zNxq928W/xhjCLaNCzqTZOudjwbQf6v9IntZGPw132i2Lq2rgTRZHD3JHNw==","dev": true,"license": "MIT","dependencies": {- "@vitest/utils": "4.1.9",+ "@vitest/utils": "4.1.11","pathe": "^2.0.3"},"funding": {@@ -3425,14 +3439,14 @@}},"node_modules/@vitest/snapshot": {- "version": "4.1.9",- "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.9.tgz",- "integrity": "sha512-Jc7RKGNBo8Z28WYIm0Niej4xdSPByRf6mU58VpHQkd6Zh05rlnA+twjbK5HyeIGHxrzsc3mJgS43uM0CZKzaIA==",+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.11.tgz",+ "integrity": "sha512-pN7ikn1ON7h8ee4gIAp4AzyK+zBtJPzVbqOgu5LCEh4VaJVbPQcgYQYJIMGQPXVeJJq1fnfazis7a5pFNPahog==","dev": true,"license": "MIT","dependencies": {- "@vitest/pretty-format": "4.1.9",- "@vitest/utils": "4.1.9",+ "@vitest/pretty-format": "4.1.11",+ "@vitest/utils": "4.1.11","magic-string": "^0.30.21","pathe": "^2.0.3"},@@ -3441,9 +3455,9 @@}},"node_modules/@vitest/spy": {- "version": "4.1.9",- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.9.tgz",- "integrity": "sha512-fHpsS6mIi+PiEW+vcRVOMkX1oSaPKne3VOclSFICPcGOmfKgXPU5iAah+wcNcj2xPrCCmfq99IDGf+EojhhvhA==",+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.11.tgz",+ "integrity": "sha512-apNa/prQy2qCeywhnixOHPRCgGNhvg7T4Dapfl1GahLp/R+uhBm5cPyFoNVyqsNd2h1nJxL6BqqdIjiABL60YA==","dev": true,"license": "MIT","funding": {@@ -3451,13 +3465,13 @@}},"node_modules/@vitest/utils": {- "version": "4.1.9",- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.9.tgz",- "integrity": "sha512-A51o8ymO5PpqlWNnBP9ZHPXDIpuMtTLlGSjN7la4US+LJzoUMyhwjA5QXlm39JexgwHKW4Xjs8Z2d3dLCXOeuA==",+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.11.tgz",+ "integrity": "sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==","dev": true,"license": "MIT","dependencies": {- "@vitest/pretty-format": "4.1.9",+ "@vitest/pretty-format": "4.1.11","convert-source-map": "^2.0.0","tinyrainbow": "^3.1.0"},@@ -3714,13 +3728,16 @@"license": "MIT"},"node_modules/baseline-browser-mapping": {- "version": "2.9.15",- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.15.tgz",- "integrity": "sha512-kX8h7K2srmDyYnXRIppo4AH/wYgzWVCs+eKr3RusRSQ5PvRYoEFmR/I0PbdTjKFAoKqp5+kbxnNTFO9jOfSVJg==",+ "version": "2.11.24",+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.24.tgz",+ "integrity": "sha512-hYrgxie335U08WqICoGqKRzV1HFXv6zdxwJE4ekCb80CM9a0SVVsN4QPwT67RraRo+9h8IATk6uxHJw7QSkdOg==","dev": true,"license": "Apache-2.0","bin": {- "baseline-browser-mapping": "dist/cli.js"+ "baseline-browser-mapping": "dist/cli.cjs"+ },+ "engines": {+ "node": ">=6.0.0"}},"node_modules/bidi-js": {@@ -3734,9 +3751,9 @@}},"node_modules/brace-expansion": {- "version": "1.1.14",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.14.tgz",- "integrity": "sha512-MWPGfDxnyzKU7rNOW9SP/c50vi3xrmrua/+6hfPbCS2ABNWfx24vPidzvC7krjU/RTo235sV776ymlsMtGKj8g==",+ "version": "1.1.21",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz",+ "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==","dev": true,"license": "MIT","dependencies": {@@ -3745,9 +3762,9 @@}},"node_modules/browserslist": {- "version": "4.28.1",- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz",- "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==",+ "version": "4.29.0",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.0.tgz",+ "integrity": "sha512-3GSvyjvDI4Dur1Meg2BekJquu5uF+9R9a1+5M1Mde192eZoXbeXjzgOsgqPS2V8D5wrrip0gR5Hf/GhWQ9ZzaA==","dev": true,"funding": [{@@ -3765,11 +3782,11 @@],"license": "MIT","dependencies": {- "baseline-browser-mapping": "^2.9.0",- "caniuse-lite": "^1.0.30001759",- "electron-to-chromium": "^1.5.263",- "node-releases": "^2.0.27",- "update-browserslist-db": "^1.2.0"+ "baseline-browser-mapping": "^2.11.23",+ "caniuse-lite": "^1.0.30001810",+ "electron-to-chromium": "^1.5.427",+ "node-releases": "^2.0.55",+ "update-browserslist-db": "^1.3.3"},"bin": {"browserslist": "cli.js"@@ -3789,9 +3806,9 @@}},"node_modules/caniuse-lite": {- "version": "1.0.30001764",- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001764.tgz",- "integrity": "sha512-9JGuzl2M+vPL+pz70gtMF9sHdMFbY9FJaQBi186cHKH3pSzDvzoUJUPV6fqiKIMyXbud9ZLg4F3Yza1vJ1+93g==",+ "version": "1.0.30001810",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz",+ "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==","dev": true,"funding": [{@@ -4258,18 +4275,18 @@"peer": true},"node_modules/dompurify": {- "version": "3.2.7",- "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.7.tgz",- "integrity": "sha512-WhL/YuveyGXJaerVlMYGWhvQswa7myDG17P7Vu65EWC05o8vfeNbvNf4d/BOvH99+ZW+LlQsc1GDKMa1vNK6dw==",+ "version": "3.4.15",+ "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.15.tgz",+ "integrity": "sha512-EUBjM+B+lkDE41iE82DDSCfkoPGfXx8IxFxPMjNzm/Uk4xDet77rTN9wqlxlVg71kK7XGuUMv6wUxJUwwv+Xyw==","license": "(MPL-2.0 OR Apache-2.0)","optionalDependencies": {"@types/trusted-types": "^2.0.7"}},"node_modules/electron-to-chromium": {- "version": "1.5.267",- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz",- "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==",+ "version": "1.5.430",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.430.tgz",+ "integrity": "sha512-e1QEj72Y4zd8RlNZVmoTg+iCOSVwpk05IOiiQwdrkwCSVlZfPthevErhE+nckGd2YbsXfp1SkisznhGVIXP2NQ==","dev": true,"license": "ISC"},@@ -5115,10 +5132,20 @@"license": "MIT"},"node_modules/js-yaml": {- "version": "4.1.1",- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",- "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",+ "version": "4.3.2",+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz",+ "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==","dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/puzrin"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/nodeca"+ }+ ],"license": "MIT","dependencies": {"argparse": "^2.0.1"@@ -6647,9 +6674,9 @@"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==",+ "version": "3.3.19",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz",+ "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==","dev": true,"funding": [{@@ -6673,11 +6700,14 @@"license": "MIT"},"node_modules/node-releases": {- "version": "2.0.27",- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz",- "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==",+ "version": "2.0.56",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.56.tgz",+ "integrity": "sha512-x0InOIyzgdk+eyaWaRJFH5snEtiImgBgblZ2CyPrLmqqcuMQkEvcDPHbzqbD8eDsSeJbVOjn+crzyzHaM4D+/A==","dev": true,- "license": "MIT"+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }},"node_modules/obug": {"version": "2.1.3",@@ -6918,9 +6948,9 @@}},"node_modules/postcss": {- "version": "8.5.15",- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz",- "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==",+ "version": "8.5.28",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz",+ "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==","dev": true,"funding": [{@@ -6938,7 +6968,7 @@],"license": "MIT","dependencies": {- "nanoid": "^3.3.12",+ "nanoid": "^3.3.18","picocolors": "^1.1.1","source-map-js": "^1.2.1"},@@ -7189,9 +7219,9 @@}},"node_modules/react-router": {- "version": "7.17.0",- "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.17.0.tgz",- "integrity": "sha512-FDELK7rTMlCHO5+reyXsPlmfr7N1F91lPHsWYfMEGQm/KQ+F4JFM8jGoeQDmDvdTs93Fw9aSilH+uKRb4/jXvQ==",+ "version": "7.18.4",+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.18.4.tgz",+ "integrity": "sha512-PUPQcMhMGRAslLcvtlPz/kmzBEWPhLdgLFrL7pLNepBL6dX0lWj4WD2cUYVgYCuT3jxvghYFg81cDTj44DhetQ==","license": "MIT","dependencies": {"cookie": "^1.0.1",@@ -7211,12 +7241,12 @@}},"node_modules/react-router-dom": {- "version": "7.17.0",- "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.17.0.tgz",- "integrity": "sha512-fyU2yjGups/hE6Xz0I5ZYbVL8Gx29eCjgpHaRaTaVU+OOAdfRX05KsvyRm0GO8YQwOkhpU3MurW1jyMUJn+zSw==",+ "version": "7.18.4",+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.18.4.tgz",+ "integrity": "sha512-yrfmJHIpDG7taCpqKjT1G5B6q3O2K+RN8/fgNf0lTjCwiPbQ0ei6vXX9ZjQR+7ld8Tr7Z5xmyMnZ8YJrphWQUw==","license": "MIT","dependencies": {- "react-router": "7.17.0"+ "react-router": "7.18.4"},"engines": {"node": ">=20.0.0"@@ -7740,9 +7770,9 @@}},"node_modules/tinyrainbow": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.0.tgz",- "integrity": "sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==",+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.1.tgz",+ "integrity": "sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==","dev": true,"license": "MIT","engines": {@@ -7999,9 +8029,9 @@}},"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==",+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz",+ "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==","dev": true,"funding": [{@@ -8465,19 +8495,19 @@}},"node_modules/vitest": {- "version": "4.1.9",- "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.9.tgz",- "integrity": "sha512-nE3/LEyc0z87uHYLZebqCUOaJr2hdtuPp7BQ4BosVFnfltxgAvMG08NyrSGlPpOUWvR27c5flSmYFTNr78L9GQ==",+ "version": "4.1.11",+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.11.tgz",+ "integrity": "sha512-fhACrNXUidIbGSBr5FlbuBkO7VWC1ZyLl0DO4CU2DrQoAPxX84Ysxs+HeGQpii5lZWV1Q4gBZTTu49mF+A6Edw==","dev": true,"license": "MIT","dependencies": {- "@vitest/expect": "4.1.9",- "@vitest/mocker": "4.1.9",- "@vitest/pretty-format": "4.1.9",- "@vitest/runner": "4.1.9",- "@vitest/snapshot": "4.1.9",- "@vitest/spy": "4.1.9",- "@vitest/utils": "4.1.9",+ "@vitest/expect": "4.1.11",+ "@vitest/mocker": "4.1.11",+ "@vitest/pretty-format": "4.1.11",+ "@vitest/runner": "4.1.11",+ "@vitest/snapshot": "4.1.11",+ "@vitest/spy": "4.1.11",+ "@vitest/utils": "4.1.11","es-module-lexer": "^2.0.0","expect-type": "^1.3.0","magic-string": "^0.30.21",@@ -8505,12 +8535,12 @@"@edge-runtime/vm": "*","@opentelemetry/api": "^1.9.0","@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",- "@vitest/browser-playwright": "4.1.9",- "@vitest/browser-preview": "4.1.9",- "@vitest/browser-webdriverio": "4.1.9",- "@vitest/coverage-istanbul": "4.1.9",- "@vitest/coverage-v8": "4.1.9",- "@vitest/ui": "4.1.9",+ "@vitest/browser-playwright": "4.1.11",+ "@vitest/browser-preview": "4.1.11",+ "@vitest/browser-webdriverio": "4.1.11",+ "@vitest/coverage-istanbul": "4.1.11",+ "@vitest/coverage-v8": "4.1.11",+ "@vitest/ui": "4.1.11","happy-dom": "*","jsdom": "*","vite": "^6.0.0 || ^7.0.0 || ^8.0.0"diff --git a/ui/package.json b/ui/package.jsonindex efd4b41d3..d8a5cb2ca 100644--- a/ui/package.json+++ b/ui/package.json@@ -57,6 +57,7 @@"clsx": "^2.1.1","cmdk": "^1.1.1","docx-preview": "^0.3.7",+ "dompurify": "3.4.15","framer-motion": "^12.26.2","i18next": "^25.7.4","i18next-browser-languagedetector": "^8.2.0",@@ -71,7 +72,7 @@"react-dom": "^19.2.0","react-i18next": "^16.5.3","react-markdown": "^10.1.0",- "react-router-dom": "^7.17.0",+ "react-router-dom": "^7.18.4","react-zoom-pan-pinch": "^4.0.3","remark-breaks": "^4.0.0","remark-cjk-friendly": "^2.3.1",@@ -97,13 +98,18 @@"eslint-plugin-react-hooks": "^7.0.1","eslint-plugin-react-refresh": "^0.4.24","globals": "^16.5.0",- "js-yaml": "^4.1.0",+ "js-yaml": "^4.3.2","jsdom": "^29.1.1",- "postcss": "^8.5.15",+ "postcss": "^8.5.28","tailwindcss": "^4.1.18","typescript": "~5.9.3","typescript-eslint": "^8.46.4","vite": "^8.0.16",- "vitest": "^4.1.9"+ "vitest": "^4.1.11"+ },+ "overrides": {+ "monaco-editor": {+ "dompurify": "$dompurify"+ }}}diff --git a/ui/scripts/cssDeclarations.mjs b/ui/scripts/cssDeclarations.mjsindex 054191d22..d93eda885 100644--- a/ui/scripts/cssDeclarations.mjs+++ b/ui/scripts/cssDeclarations.mjs@@ -32,7 +32,7 @@ import postcss from 'postcss';function declarationSpansIn(css, offset = 0, into = []) {let root;try {- root = postcss.parse(css);+ root = postcss.parse(css, { map: false });} catch {if (css.length > 0) into.push([offset, offset + css.length]);return into;diff --git a/ui/scripts/customProperties.mjs b/ui/scripts/customProperties.mjsindex ef94f8ce9..e5b502f8b 100644--- a/ui/scripts/customProperties.mjs+++ b/ui/scripts/customProperties.mjs@@ -36,7 +36,7 @@ function customPropertiesIn(css, into = new Map()) {if (value !== undefined) into.get(name).add(value);};- const root = typeof css === 'string' ? postcss.parse(css) : css;+ const root = typeof css === 'string' ? postcss.parse(css, { map: false }) : css;root.walkDecls((decl) => record(decl.prop, decl.value));root.walkAtRules('property', (rule) => {let initial;@@ -67,7 +67,7 @@ function customPropertiesIn(css, into = new Map()) {const COLOUR_ONLY_SYNTAX = /^<color>[#+]?$/;function colourRegistrationsIn(css, into = new Set()) {- const root = typeof css === 'string' ? postcss.parse(css) : css;+ const root = typeof css === 'string' ? postcss.parse(css, { map: false }) : css;root.walkAtRules('property', (rule) => {let syntax;rule.walkDecls('syntax', (decl) => { syntax = decl.value; });diff --git a/ui/scripts/monacoSanitizer.test.mjs b/ui/scripts/monacoSanitizer.test.mjsnew file mode 100644index 000000000..576b9d4e4--- /dev/null+++ b/ui/scripts/monacoSanitizer.test.mjs@@ -0,0 +1,126 @@+/* @vitest-environment jsdom */+import fs from 'node:fs';+import path from 'node:path';+import { fileURLToPath } from 'node:url';+import { build, createServer } from 'vite';+import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest';++const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const manifest = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));+const entry = '\0avibe-sanitizer-probe';+let probe;+let modules;++beforeAll(async () => {+ vi.stubGlobal('matchMedia', () => ({+ matches: false, addEventListener() {}, removeEventListener() {},+ }));+ // Bundle the actual Monaco consumers using the app's Vite config. Importing+ // the npm sanitizer alone would pass even if Monaco still used its copy.+ const result = await build({+ root,+ configFile: path.join(root, 'vite.config.ts'),+ logLevel: 'silent',+ plugins: [{+ name: 'sanitizer-test-entry',+ resolveId: id => id === entry ? entry : undefined,+ load: id => id === entry ? `+ export { default as purify } from 'dompurify';+ export { safeSetInnerHtml } from 'monaco-editor/esm/vs/base/browser/domSanitize.js';+ export { renderMarkdown } from 'monaco-editor/esm/vs/base/browser/markdownRenderer.js';+ ` : undefined,+ }],+ build: {+ write: false, minify: false,+ rollupOptions: {+ input: entry, preserveEntrySignatures: 'strict',+ output: { format: 'iife', name: 'SanitizerProbe' },+ },+ },+ });+ const chunk = result.output.find(item => item.type === 'chunk' && item.isEntry);+ modules = Object.keys(chunk.modules).map(id => id.replaceAll('\\', '/'));+ // Only generated, trusted library code executes; event payloads below are+ // parsed inertly by JSDOM, never evaluated or inserted into a live browser.+ probe = new Function(`${chunk.code}\nreturn SanitizerProbe;`)();+}, 30_000);++afterAll(() => vi.unstubAllGlobals());++describe('Monaco consumes the patched sanitizer', () => {+ it('uses the same patched module through the development resolver', async () => {+ const server = await createServer({+ root, configFile: path.join(root, 'vite.config.ts'), logLevel: 'silent',+ server: { middlewareMode: true, watch: null, hmr: false },+ optimizeDeps: { noDiscovery: true, include: [] },+ });+ try {+ const resolved = await server.environments.client.pluginContainer.resolveId(+ './dompurify/dompurify.js',+ path.join(root, 'node_modules/monaco-editor/esm/vs/base/browser/domSanitize.js'),+ );+ expect(resolved.id.split('?')[0].replaceAll('\\', '/')).toBe(+ path.join(root, 'node_modules/dompurify/dist/purify.es.mjs').replaceAll('\\', '/'),+ );+ } finally {+ await server.close();+ }+ });++ it('bundles the declared DOMPurify and excludes the copied vendor implementation', () => {+ expect(probe.purify.version).toBe(manifest.dependencies.dompurify);+ expect(modules.some(id => id.endsWith('/dompurify/dist/purify.es.mjs'))).toBe(true);+ expect(modules.some(id => id.includes('/monaco-editor/') && id.endsWith('/dompurify.js'))).toBe(false);+ const sanitize = vi.spyOn(probe.purify, 'sanitize');+ try {+ probe.safeSetInnerHtml(document.createElement('div'), '<strong>normal</strong>');+ expect(sanitize).toHaveBeenCalledOnce();+ } finally {+ sanitize.mockRestore();+ }+ });++ it.each(['xmp', 'iframe', 'noembed', 'noframes'])('blocks the old %s recontextualization regression', wrapper => {+ const input = `<img src=x alt="</${wrapper}><img src=x onerror=unsafe()>">`;+ const sink = document.createElement('div');+ sink.innerHTML = `<${wrapper}>${probe.purify.sanitize(input)}</${wrapper}>`;+ expect(sink.querySelector('[onerror]')).toBeNull();+ });++ it.each([+ '<img src=x onerror="globalThis.__unsafe=1">',+ '<a href="javascript:globalThis.__unsafe=1">bad</a>',+ '<svg onload="globalThis.__unsafe=1"></svg>',+ '<template><img src=x onerror="globalThis.__unsafe=1"></template>',+ '<img src=x alt="</xmp><img src=x onerror=globalThis.__unsafe=1>">',+ '[bad](javascript:globalThis.__unsafe=1)',+ ])('removes executable markup through the actual consumers: %s', input => {+ const element = document.createElement('div');+ probe.safeSetInnerHtml(element, input);+ const markdown = probe.renderMarkdown({ value: input, isTrusted: false, supportHtml: false });+ try {+ for (const sink of [element, markdown.element]) {+ for (const node of sink.querySelectorAll('*')) {+ for (const attr of node.attributes) {+ expect(attr.name).not.toMatch(/^on/i);+ if (['href', 'src', 'data-href'].includes(attr.name)) {+ expect(attr.value).not.toMatch(/^\s*javascript:/i);+ }+ }+ }+ }+ } finally {+ markdown.dispose();+ }+ });++ it('preserves ordinary multilingual Markdown and HTTPS links', () => {+ const rendered = probe.renderMarkdown({ value: '**说明 café** [docs](https://example.invalid/guide)' });+ try {+ expect(rendered.element.querySelector('strong')?.textContent).toBe('说明 café');+ expect(rendered.element.querySelector('a')?.getAttribute('data-href')).toBe('https://example.invalid/guide');+ } finally {+ rendered.dispose();+ }+ });+});diff --git a/ui/scripts/nonRenderingText.mjs b/ui/scripts/nonRenderingText.mjsindex 82720b1ec..9ad504c4a 100644--- a/ui/scripts/nonRenderingText.mjs+++ b/ui/scripts/nonRenderingText.mjs@@ -111,7 +111,7 @@ function atRuleNames(source) {// channel read a FEATURE TEST -- text whose entire purpose is to ask whether// a value is supported -- as an applied glow. That is the false-positive// direction: a stylesheet spelled in valid CSS fails the gate.- postcss.parse(source).walkAtRules((rule) => names.set(rule.source.start.offset, rule.name.toLowerCase()));+ postcss.parse(source, { map: false }).walkAtRules((rule) => names.set(rule.source.start.offset, rule.name.toLowerCase()));return names;}diff --git a/ui/scripts/stylesheets.mjs b/ui/scripts/stylesheets.mjsindex 8a7bf8c97..289395dfc 100644--- a/ui/scripts/stylesheets.mjs+++ b/ui/scripts/stylesheets.mjs@@ -63,12 +63,13 @@ function* eachStylesheet(root) {// one layer along. What it cannot read it also cannot scan, so the miss is// symmetric; `src` has no such stretch today.if (file.endsWith('.css')) {- yield [origin, postcss.parse(text)];+ // Validation needs the CSS text, never files named by sourceMappingURL.+ yield [origin, postcss.parse(text, { map: false })];continue;}let sheet;try {- sheet = postcss.parse(text);+ sheet = postcss.parse(text, { map: false });} catch {continue;}diff --git a/ui/scripts/stylesheets.test.mjs b/ui/scripts/stylesheets.test.mjsnew file mode 100644index 000000000..5b7b7fe18--- /dev/null+++ b/ui/scripts/stylesheets.test.mjs@@ -0,0 +1,59 @@+import fs from 'node:fs';+import os from 'node:os';+import path from 'node:path';+import postcss from 'postcss';+import { afterEach, describe, expect, it, vi } from 'vitest';+import { eachStylesheet } from './stylesheets.mjs';+import { colourRegistrationsIn, customPropertiesIn } from './customProperties.mjs';+import { declarationSpansIn } from './cssDeclarations.mjs';+import { withoutNonRenderingText } from './nonRenderingText.mjs';++const workspaces = [];+afterEach(() => {+ vi.restoreAllMocks();+ for (const dir of workspaces.splice(0)) fs.rmSync(dir, { recursive: true });+});++describe('CSS validation does not consume source maps', () => {+ it.each(['absolute', 'relative', 'inline'])('ignores %s sourceMappingURL in CSS and embedded styles', (kind) => {+ const temp = fs.mkdtempSync(path.join(os.tmpdir(), 'avibe-css-map-'));+ workspaces.push(temp);+ const input = path.join(temp, 'styles');+ fs.mkdirSync(input);+ const previous = {+ version: 3, sources: ['synthetic.css'], names: [], mappings: 'AAAA',+ sourcesContent: ['harmless outside-tree source'],+ };+ const mapFile = path.join(temp, 'outside.map');+ fs.writeFileSync(mapFile, JSON.stringify(previous));+ const annotation = kind === 'absolute' ? mapFile.replaceAll('\\', '/')+ : kind === 'relative' ? '../outside.map'+ : `data:application/json;base64,${Buffer.from(JSON.stringify(previous)).toString('base64')}`;+ const css = `:root { --safe-token: blue; }\n/*# sourceMappingURL=${annotation} */`;+ fs.writeFileSync(path.join(input, 'plain.css'), css);+ fs.writeFileSync(path.join(input, 'embedded.tsx'), `const content = <style>{\`${css}\`}</style>;`);++ // A trusted explicit map is readable: the fixture is valid, not a missing+ // file that would make every implementation appear safe.+ const control = postcss.parse(css, { map: { prev: () => mapFile } });+ expect(control.source.input.map.consumer().sourcesContent).toEqual(previous.sourcesContent);++ const parsed = [...eachStylesheet(input)];+ expect(parsed).toHaveLength(2);+ for (const [, sheet] of parsed) {+ expect(sheet.source.input.map).toBeUndefined();+ expect(customPropertiesIn(sheet).get('--safe-token')).toEqual(new Set(['blue']));+ }+ });++ it('disables maps in every reusable text-parsing validation consumer', () => {+ const parse = vi.spyOn(postcss, 'parse');+ const css = ':root { --safe-token: blue; }';+ customPropertiesIn(css);+ colourRegistrationsIn(css);+ declarationSpansIn(css);+ withoutNonRenderingText(css, 'probe.css');+ expect(parse).toHaveBeenCalledTimes(4);+ for (const [, options] of parse.mock.calls) expect(options.map).toBe(false);+ });+});diff --git a/ui/scripts/validate-theme.mjs b/ui/scripts/validate-theme.mjsindex f57db99da..978d61299 100644--- a/ui/scripts/validate-theme.mjs+++ b/ui/scripts/validate-theme.mjs@@ -110,7 +110,7 @@ function splitSelectors(selectorText) {}function resolveThemeTokens({ prefersLight, themeAttr, source = css }) {- const root = postcss.parse(source);+ const root = postcss.parse(source, { map: false });const resolved = new Map();let order = 0;@@ -475,7 +475,7 @@ function assertAccentAliasesKeepTheirTokenName(source) {`${fill}-hover`,]));- postcss.parse(source).walkAtRules('theme', (atRule) => {+ postcss.parse(source, { map: false }).walkAtRules('theme', (atRule) => {atRule.walkDecls((decl) => {const target = /^var\(\s*(--[\w-]+)\s*\)$/.exec(normalizeCssValue(decl.value))?.[1];if (!target || !accentTokens.has(target)) {diff --git a/ui/src/lib/routerSecurity.test.tsx b/ui/src/lib/routerSecurity.test.tsxnew file mode 100644index 000000000..7b40d2dc9--- /dev/null+++ b/ui/src/lib/routerSecurity.test.tsx@@ -0,0 +1,39 @@+/* @vitest-environment jsdom */+import { renderToStaticMarkup } from 'react-dom/server';+import { Link, MemoryRouter } from 'react-router-dom';+import { describe, expect, it } from 'vitest';+import { inAppChatPath } from './applicationRoutes';+import { internalPwaLinkTarget } from './pwaNavigation';+import { normalizeRestorablePwaPath } from './pwaRouteMemory';++const origin = window.location.origin;+const malformed = ['/\\outside.invalid', '\\\\outside.invalid', '/\\outside.invalid/chat/probe'];++describe('patched routing and application URL boundaries', () => {+ // Router deliberately supports external Links. Application input admission,+ // rather than the library alone, owns this same-origin constraint.+ it.each([...malformed, '//outside.invalid', 'https://outside.invalid/chat/probe', 'javascript:void(0)'])(+ 'keeps every admitted application navigation on the current origin: %s',+ input => {+ const targets = [+ inAppChatPath(input, origin),+ normalizeRestorablePwaPath(input),+ internalPwaLinkTarget(input, origin)?.path,+ ];+ for (const target of targets) {+ if (!target) continue;+ const html = renderToStaticMarkup(<MemoryRouter><Link to={target}>probe</Link></MemoryRouter>);+ const container = document.createElement('div');+ container.innerHTML = html;+ const href = container.querySelector('a')!.getAttribute('href')!;+ expect(new URL(href, origin).origin).toBe(origin);+ }+ },+ );++ it('still admits normal internal chat navigation', () => {+ expect(inAppChatPath('/chat/probe', origin)).toBe('/chat/probe');+ expect(normalizeRestorablePwaPath('/chat/probe')).toBe('/chat/probe');+ expect(internalPwaLinkTarget('/chat/probe', origin)?.path).toBe('/chat/probe');+ });+});diff --git a/ui/vite.config.ts b/ui/vite.config.tsindex d9324e396..f54b9f2e3 100644--- a/ui/vite.config.ts+++ b/ui/vite.config.ts@@ -41,6 +41,10 @@ export default defineConfig({resolve: {alias: {'@': fileURLToPath(new URL('./src', import.meta.url)),+ // Monaco copies DOMPurify into its package; an npm override does not+ // replace that file. Route its exact ESM import to our patched dependency+ // in both dependency prebundling and production builds.+ './dompurify/dompurify.js': fileURLToPath(new URL('./node_modules/dompurify/dist/purify.es.mjs', import.meta.url)),},},server: {