From 3a9669b1f4b67917164f93611f27b8d25dbbaaeb Mon Sep 17 00:00:00 2001 From: Alexis Quintero Date: Sat, 3 Oct 2026 16:31:42 -0500 Subject: [PATCH] feat: professional workspace, GenBank export and standalone app (v0.3.0) - Layout centred on the circular map and its linked FASTA; construction moves to a compact side panel (collapsible sequence cards with file drop, enzyme search, fragments, warnings). - Toolbar with the resulting plasmid and actions; shortcuts / C D G Esc. - Annotated GenBank export (vector, insert with orientation, restriction sites, origin-spanning joins), validated with Biopython. - Standalone app (Vite) for vector-editor.oquinterol.com with biopunk theme, ES/EN switch and a small footer credit; deployed by GitHub Pages. - Logic split into useCloning; vitest config separate from the app. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/pages.yml | 41 ++ .gitignore | 1 + CITATION.cff | 4 +- README.md | 10 +- app/app.css | 140 ++++++ app/index.html | 25 + app/main.tsx | 78 +++ app/public/CNAME | 1 + app/public/favicon.svg | 1 + package.json | 10 +- pnpm-lock.yaml | 692 ++++++++++++++------------ src/core/genbank.ts | 59 +++ src/core/index.ts | 1 + src/ui/VectorEditor.tsx | 952 +++++++++++++++++------------------- src/ui/labels.ts | 51 +- src/ui/styles.css | 578 ++++++++++++++-------- src/ui/useCloning.ts | 276 +++++++++++ test/core.test.ts | 25 + tsconfig.json | 12 +- vite.config.ts | 10 + vitest.config.ts | 6 + 21 files changed, 1933 insertions(+), 1040 deletions(-) create mode 100644 .github/workflows/pages.yml create mode 100644 app/app.css create mode 100644 app/index.html create mode 100644 app/main.tsx create mode 100644 app/public/CNAME create mode 100644 app/public/favicon.svg create mode 100644 src/core/genbank.ts create mode 100644 src/ui/useCloning.ts create mode 100644 vite.config.ts create mode 100644 vitest.config.ts diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..41f2fda --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,41 @@ +name: Deploy app to vector-editor.oquinterol.com + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + - run: pnpm install --frozen-lockfile + - run: pnpm test + - run: pnpm app:build + - uses: actions/upload-pages-artifact@v3 + with: + path: app-dist + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index 1ab415f..3dc2c8d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ dist/ +app-dist/ *.tgz diff --git a/CITATION.cff b/CITATION.cff index 509f137..60f19a7 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -2,13 +2,13 @@ cff-version: 1.2.0 message: "Si usas este software, por favor cítalo así. / If you use this software, please cite it as below." title: "Vector editor: in-browser cloning simulator with REBASE enzymes" type: software -version: 0.2.1 +version: 0.3.0 authors: - family-names: "Quintero López" given-names: "Oscar Alexis" orcid: "https://orcid.org/0000-0001-8926-6400" repository-code: "https://github.com/oquinterol/vector-editor" -url: "https://oquinterol.com/en/tools/vector-editor/" +url: "https://vector-editor.oquinterol.com/" license: MIT keywords: - plasmid diff --git a/README.md b/README.md index e01dc20..3987ead 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Simulador de clonación en el navegador: elige enzimas de restricción comerciales o propias, digiere vector e inserto, liga, y obtén en vivo el FASTA y el mapa circular del plásmido resultante. *In-browser cloning simulator: choose commercial or custom restriction enzymes, digest vector and insert, ligate, and get a live FASTA and circular map of the resulting plasmid.* -**Usarlo / Use it:** [oquinterol.com/es/tools/vector-editor](https://oquinterol.com/es/tools/vector-editor/) · [oquinterol.com/en/tools/vector-editor](https://oquinterol.com/en/tools/vector-editor/) +**Usarlo / Use it:** [vector-editor.oquinterol.com](https://vector-editor.oquinterol.com/) · también en / also at [oquinterol.com/es/tools/vector-editor](https://oquinterol.com/es/tools/vector-editor/) > **Estado / Status: prototipo / prototype.** Verifica los resultados antes de usarlos en el laboratorio. / Check results before using them at the bench. @@ -18,6 +18,8 @@ Simulador de clonación en el navegador: elige enzimas de restricción comercial - **Archivos**: FASTA, GenBank y SnapGene (`.dna`), leídos localmente con [seqparse](https://github.com/Lattice-Automation/seqparse). - **Mapa y FASTA vinculados**: el FASTA se colorea igual que el mapa circular ([SeqViz](https://github.com/Lattice-Automation/seqviz)) — vector, inserto y sitios de corte —; seleccionar bases en el FASTA marca el arco en el mapa, hacer clic en el mapa o en la leyenda resalta y lleva a esa secuencia. Copia o descarga el FASTA completo o solo la selección. - **Búsqueda de enzimas** en un desplegable con teclado (↑ ↓ Enter Esc), filtrable por proveedor y por si cortan vector e inserto. +- **Exporta GenBank anotado** (vector, inserto con su orientación y sitios de restricción), listo para SnapGene, Benchling, ApE o Biopython, además de FASTA. +- **Atajos**: `/` buscar enzima · `C` copiar (la selección si hay una) · `D` FASTA · `G` GenBank · `Esc` quitar selección. - **Privado**: todo corre en el navegador; las secuencias no se envían a ningún servidor. ## English @@ -29,6 +31,8 @@ Simulador de clonación en el navegador: elige enzimas de restricción comercial - **Files**: FASTA, GenBank and SnapGene (`.dna`), parsed locally with [seqparse](https://github.com/Lattice-Automation/seqparse). - **Linked map and FASTA**: the FASTA is coloured like the circular map ([SeqViz](https://github.com/Lattice-Automation/seqviz)) — vector, insert and cut sites —; selecting bases in the FASTA marks the arc on the map, and clicking the map or the legend highlights and scrolls to that sequence. Copy or download the whole FASTA or just the selection. - **Enzyme search** in a keyboard-friendly dropdown (↑ ↓ Enter Esc), filterable by supplier and by whether enzymes cut vector and insert. +- **Annotated GenBank export** (vector, insert with its orientation and restriction sites), ready for SnapGene, Benchling, ApE or Biopython, plus FASTA. +- **Shortcuts**: `/` search enzyme · `C` copy (the selection if any) · `D` FASTA · `G` GenBank · `Esc` clear selection. - **Private**: everything runs in the browser; sequences are never sent to a server. ## Uso como librería / Library use @@ -37,7 +41,8 @@ Simulador de clonación en el navegador: elige enzimas de restricción comercial import { VectorEditor, labelsEs } from '@oquinterol/vector-editor' import '@oquinterol/vector-editor/styles.css' - + // dentro de una página / inside a page + // pantalla completa / full screen ``` El núcleo (sin React) está en `@oquinterol/vector-editor/core`: `findCuts`, `digest`, `ligate`, `parseEnzyme`, `toFasta`… @@ -50,6 +55,7 @@ pnpm install pnpm test # núcleo con pruebas / tested core (vitest) pnpm build # dist/ pnpm enzymes # regenerar el catálogo desde REBASE / rebuild the catalogue from REBASE +pnpm app:dev # app independiente / standalone app (vector-editor.oquinterol.com) ``` ## Se apoya en / Builds on diff --git a/app/app.css b/app/app.css new file mode 100644 index 0000000..20e7c92 --- /dev/null +++ b/app/app.css @@ -0,0 +1,140 @@ +/* Standalone app: biopunk palette (shared with oquinterol.com), no external fonts. */ +:root { + --bp-void: #030504; + --bp-ink: #070a09; + --bp-lab: #101713; + --bp-membrane: #17211b; + --bp-tissue: #26332a; + --bp-boundary: #4d6354; + --bp-sterile: #d9e4de; + --bp-bone: #b7c5bd; + --bp-muted: #87968d; + --bp-bio: #a4e66d; + --bp-pink: #ff6b9a; + --bp-toxic: #e2d36b; + color-scheme: dark; +} +html, +body, +#root { + height: 100%; + margin: 0; +} +body { + background: var(--bp-ink); + color: var(--bp-sterile); + font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; +} +::selection { + background: var(--bp-bio); + color: var(--bp-ink); +} +.app-shell { + display: grid; + grid-template-rows: minmax(0, 1fr) auto; + height: 100%; +} +.ve { + --ve-theme-bg: var(--bp-ink); + --ve-theme-surface: var(--bp-lab); + --ve-theme-raised: var(--bp-membrane); + --ve-theme-ink: var(--bp-sterile); + --ve-theme-muted: var(--bp-muted); + --ve-theme-line: var(--bp-tissue); + --ve-theme-accent: var(--bp-bio); + --ve-theme-accent-ink: var(--bp-ink); + --ve-theme-warn: var(--bp-toxic); + --ve-theme-error: #ff6577; + --ve-theme-mono: 'FiraCode Nerd Font Mono', 'Fira Code', ui-monospace, 'SFMono-Regular', monospace; + --ve-theme-map-bg: var(--bp-ink); + --ve-theme-map-ink: var(--bp-sterile); + --ve-theme-map-muted: var(--bp-boundary); + --ve-theme-map-cut: var(--bp-pink); + --ve-theme-map-selection: rgb(164 230 109 / 0.16); +} +/* The map as a specimen under the microscope: reticle grid, vignette, glowing arcs. */ +.ve-map { + background: + radial-gradient(circle at center, transparent 42%, var(--bp-void) 96%), + linear-gradient(var(--bp-tissue) 1px, transparent 1px) 0 0 / 100% 1.5rem, + linear-gradient(90deg, var(--bp-tissue) 1px, transparent 1px) 0 0 / 1.5rem 100%, + var(--bp-ink) !important; +} +.ve-map .la-vz-annotation { + filter: drop-shadow(0 0 6px currentColor); +} +.ve-map .la-vz-annotation[fill='#5ed9d1'] { + color: rgb(94 217 209 / 0.55); +} +.ve-map .la-vz-annotation[fill='#a4e66d'] { + color: rgb(164 230 109 / 0.55); +} +.ve-map .la-vz-circular-label[id$='-fwd'], +.ve-map .la-vz-circular-label[id$='-rev'] { + fill: var(--bp-pink) !important; +} +.app-brand { + display: flex; + align-items: center; + gap: 0.6rem; + padding-right: 0.6rem; + border-right: 1px solid var(--bp-tissue); +} +.app-brand strong { + font-weight: 700; + letter-spacing: -0.01em; +} +.app-tagline { + color: var(--bp-muted); + font-size: 0.8rem; +} +.app-lang { + display: inline-flex; + margin-left: 0.4rem; + border: 1px solid var(--bp-tissue); + border-radius: 6px; + overflow: hidden; +} +.app-lang button { + min-width: 2.4rem; + min-height: 2rem; + border: 0; + background: transparent; + color: var(--bp-muted); + font: inherit; + font-size: 0.72rem; + font-weight: 700; + cursor: pointer; +} +.app-lang button[aria-pressed='true'] { + background: var(--bp-membrane); + color: var(--bp-bio); +} +.app-footer { + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 0.3rem 0.7rem; + padding: 0.45rem 1rem; + border-top: 1px solid var(--bp-tissue); + background: var(--bp-void); + color: var(--bp-muted); + font-size: 0.72rem; +} +.app-footer a { + color: var(--bp-bone); + text-underline-offset: 0.2em; +} +.app-footer a:hover { + color: var(--bp-bio); +} +@media (max-width: 1100px) { + /* On smaller screens the page scrolls instead of fitting the viewport. */ + .app-shell { + height: auto; + min-height: 100%; + } + .ve--app { + height: auto; + } +} diff --git a/app/index.html b/app/index.html new file mode 100644 index 0000000..0056c2b --- /dev/null +++ b/app/index.html @@ -0,0 +1,25 @@ + + + + + + Vector Editor — simulador de clonación + + + + + + + + + + +
+ +
+ + + diff --git a/app/main.tsx b/app/main.tsx new file mode 100644 index 0000000..70d34e7 --- /dev/null +++ b/app/main.tsx @@ -0,0 +1,78 @@ +import React, { useEffect, useState } from 'react' +import { createRoot } from 'react-dom/client' +import { VectorEditor, labelsEn, labelsEs } from '../src' +import '../src/ui/styles.css' +import './app.css' + +type Lang = 'es' | 'en' + +const initialLang = (): Lang => { + try { + const stored = localStorage.getItem('vector-editor.lang') + if (stored === 'es' || stored === 'en') return stored + } catch { + /* Storage is optional. */ + } + return navigator.language.toLowerCase().startsWith('es') ? 'es' : 'en' +} + +const copy = { + es: { + tagline: 'simulador de clonación', + source: 'Código abierto (MIT)', + by: 'Hecho por', + data: 'Enzimas: REBASE' + }, + en: { + tagline: 'cloning simulator', + source: 'Open source (MIT)', + by: 'Made by', + data: 'Enzymes: REBASE' + } +} as const + +function App() { + const [lang, setLang] = useState(initialLang) + const t = copy[lang] + useEffect(() => { + document.documentElement.lang = lang + try { + localStorage.setItem('vector-editor.lang', lang) + } catch { + /* Storage is optional. */ + } + }, [lang]) + + const brand = ( +
+ + + Vector Editor {t.tagline} + +
+ {(['es', 'en'] as const).map((code) => ( + + ))} +
+
+ ) + + return ( +
+ + +
+ ) +} + +createRoot(document.getElementById('root')!).render() diff --git a/app/public/CNAME b/app/public/CNAME new file mode 100644 index 0000000..8ab802a --- /dev/null +++ b/app/public/CNAME @@ -0,0 +1 @@ +vector-editor.oquinterol.com diff --git a/app/public/favicon.svg b/app/public/favicon.svg new file mode 100644 index 0000000..a078f11 --- /dev/null +++ b/app/public/favicon.svg @@ -0,0 +1 @@ + diff --git a/package.json b/package.json index f883107..9796201 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oquinterol/vector-editor", - "version": "0.2.1", + "version": "0.3.0", "description": "In-browser cloning simulator: choose commercial or custom restriction enzymes, digest and ligate, and get a live FASTA and plasmid map.", "license": "MIT", "author": "Oscar Alexis Quintero López (https://oquinterol.com)", @@ -8,7 +8,7 @@ "type": "git", "url": "git+https://github.com/oquinterol/vector-editor.git" }, - "homepage": "https://oquinterol.com/en/tools/vector-editor/", + "homepage": "https://vector-editor.oquinterol.com/", "keywords": [ "plasmid", "cloning", @@ -43,7 +43,9 @@ "build": "tsup && cp src/ui/styles.css dist/styles.css", "test": "vitest run", "typecheck": "tsc --noEmit", - "enzymes": "node scripts/build-enzymes.mjs" + "enzymes": "node scripts/build-enzymes.mjs", + "app:dev": "vite", + "app:build": "vite build" }, "peerDependencies": { "react": "^18.0.0 || ^19.0.0", @@ -56,10 +58,12 @@ "devDependencies": { "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", + "@vitejs/plugin-react": "^5.2.0", "react": "^19.3.0", "react-dom": "^19.3.0", "tsup": "^8.5.1", "typescript": "~5.9.3", + "vite": "^7.3.6", "vitest": "^5.0.3" }, "packageManager": "pnpm@11.2.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c99be44..948c2f2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,6 +21,9 @@ importers: '@types/react-dom': specifier: ^19.3.0 version: 19.3.0(@types/react@19.3.0) + '@vitejs/plugin-react': + specifier: ^5.2.0 + version: 5.2.0(vite@7.3.6) react: specifier: ^19.3.0 version: 19.3.0 @@ -33,12 +36,98 @@ importers: typescript: specifier: ~5.9.3 version: 5.9.3 + vite: + specifier: ^7.3.6 + version: 7.3.6 vitest: specifier: ^5.0.3 - version: 5.0.3(vite@8.3.2(esbuild@0.27.7)) + version: 5.0.3(vite@7.3.6) packages: + '@babel/code-frame@7.29.7': + resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} + engines: {node: '>=6.9.0'} + + '@babel/compat-data@7.29.7': + resolution: {integrity: sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==} + engines: {node: '>=6.9.0'} + + '@babel/core@7.29.7': + resolution: {integrity: sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==} + engines: {node: '>=6.9.0'} + + '@babel/generator@7.29.8': + resolution: {integrity: sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==} + engines: {node: '>=6.9.0'} + + '@babel/helper-compilation-targets@7.29.7': + resolution: {integrity: sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==} + engines: {node: '>=6.9.0'} + + '@babel/helper-globals@7.29.7': + resolution: {integrity: sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-imports@7.29.7': + resolution: {integrity: sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-transforms@7.29.7': + resolution: {integrity: sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + + '@babel/helper-plugin-utils@7.29.7': + resolution: {integrity: sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-string-parser@7.29.7': + resolution: {integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.29.7': + resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-option@7.29.7': + resolution: {integrity: sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==} + engines: {node: '>=6.9.0'} + + '@babel/helpers@7.29.7': + resolution: {integrity: sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.29.9': + resolution: {integrity: sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/plugin-transform-react-jsx-self@7.29.7': + resolution: {integrity: sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-transform-react-jsx-source@7.29.7': + resolution: {integrity: sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/template@7.29.7': + resolution: {integrity: sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==} + engines: {node: '>=6.9.0'} + + '@babel/traverse@7.29.8': + resolution: {integrity: sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==} + engines: {node: '>=6.9.0'} + + '@babel/types@7.29.8': + resolution: {integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==} + engines: {node: '>=6.9.0'} + '@esbuild/aix-ppc64@0.27.7': resolution: {integrity: sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==} engines: {node: '>=18'} @@ -198,6 +287,9 @@ packages: '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + '@jridgewell/remapping@2.3.5': + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} + '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'} @@ -223,107 +315,8 @@ packages: '@nodable/entities@3.1.0': resolution: {integrity: sha512-LsS/DjHr+uDM647Gru/cA8+J3a3HfhttwCKLyuoyN7yXTFCxKBtSgMQBvrW9yNPa2/zDRUNuGPaH5QUFoa4arQ==} - '@oxc-project/types@0.152.0': - resolution: {integrity: sha512-oM/5rLBm2tPkg0iBgkH/FOeR3PCDpY19GTgAZjMFM8h9WI9VW7cLgzp6nwtarYKmovavIQZ+Fe/RKX/8C8O/Rw==} - - '@rolldown/binding-android-arm-eabi@1.2.12': - resolution: {integrity: sha512-dB/a1214qKfHMXCpgqR4OZT+jS4kTyEXbQGJPqzobt5EwH5rX080pxE37alt3RzvR1bf1Yz/yGqRfrYAxuPw0A==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm] - os: [android] - - '@rolldown/binding-android-arm64@1.2.12': - resolution: {integrity: sha512-7KHFgQ5VJxIHcLlrwrc3Xbds7oTNQT7Pgi9gQCJKrd2VGab/UksIOYp6VD8MzCstGxOKMgNamPwUCfxPdP1OHg==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [android] - - '@rolldown/binding-darwin-arm64@1.2.12': - resolution: {integrity: sha512-3YIhqHD96nA5SaYNRBR16HnGv4oavZvXfD/ayHM+oYZ0WD/8lBAtf6zQua4kEyAvpqrluKXl0lnOBoiNby7x9w==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [darwin] - - '@rolldown/binding-darwin-x64@1.2.12': - resolution: {integrity: sha512-UuuJ35MFw4gmFOrE9pEqIV+K3syIKveph+Qc1/ljHZVdoDW4pz/JHR/eMVom+TZGl/5OOvGJOWaOCVt3ZfqhxA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [darwin] - - '@rolldown/binding-freebsd-x64@1.2.12': - resolution: {integrity: sha512-uMvssit0a4W+/7D8CbHUvG719mH3R2jwXAlh/XcPvuHTE0g++LymF88DCGNX0HM2rBOn0xrzgXktIB6fLSJBTQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [freebsd] - - '@rolldown/binding-linux-arm-gnueabihf@1.2.12': - resolution: {integrity: sha512-XcFu0R0xWnwzSf4IQgFH1rJIckPN1pLy2R+4r9IDB7Yfu/ys9cVqfa4pBrMHj7a3gl8mIR4nRNPg0e5IvEVs6g==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm] - os: [linux] - - '@rolldown/binding-linux-arm64-gnu@1.2.12': - resolution: {integrity: sha512-260UrKgn8tz39ak+SMDOirKzr7V04M9dWPw5llW00SwBivCZoWcRBKV1d8cXnRkUmSZA3BdiUmBHWk7734Ulpw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-arm64-musl@1.2.12': - resolution: {integrity: sha512-5YK1I9SqDkbPgc1IA8BgDl34suqUS2q0KWnBrirm0E51YjOs6eo6dV6jbQfNE/argHRSvd0QUGgtpIoYx+WWpw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@rolldown/binding-linux-ppc64-gnu@1.2.12': - resolution: {integrity: sha512-Rkcrmp7eFRg74yL5fXEU91JEWbdEPLevWwGtXpmhbjlD1StScbWTmO94Bhly+Mo+ketKYkdmM1vNUKeWSlx8cQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-s390x-gnu@1.2.12': - resolution: {integrity: sha512-qvK4DuAsQc2BSjlx+Xr+IzOIvvxbGZqxFwdWfG6F518Erj0GGISyQbJ6pIappnOxlNPzNHvo/L0BwB30GZ+zVw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-x64-gnu@1.2.12': - resolution: {integrity: sha512-Q9uLBO53Xd4QIq1WOycVQyPP1O4HhraEV2qqb3uTrnVw6QZih9duY4vNXOivL1xoUS1/z+W8eF4NMfl2a8Sdjw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-x64-musl@1.2.12': - resolution: {integrity: sha512-3IBxWFMjbOZskDPKv8Lf9BCnahlKuHthWkYnyIxOH/QcJrFcS4EmcenthApkwr/5+nEqZlLzeYbxeMaX7A5u4g==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [linux] - libc: [musl] - - '@rolldown/binding-openharmony-arm64@1.2.12': - resolution: {integrity: sha512-xtX61xg4LKPkPWilZU1ynKClz5Gj4bf74LML4r3eVLWumKnGjoEr1OSHQhMdbBDoYTi+yjrujvpZe2pUnqCrrA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [openharmony] - - '@rolldown/binding-win32-arm64-msvc@1.2.12': - resolution: {integrity: sha512-At7fPB6PCaIjzgIhEZFxuT+BBFqiQibJDT4d3PhiR3f4E7bbMZF4aKblbFfEM3sETRDd1YiQx/+U/g/B/ou5Ew==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [win32] - - '@rolldown/binding-win32-x64-msvc@1.2.12': - resolution: {integrity: sha512-WIw2haVKwjuYdXkHaoC0mF8Le71TuCBxjrdKqLbJGctbBABj+ClfmNvtbOnzpq3RokNo5+V1qhtSzJyXorsklQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [win32] - - '@rolldown/pluginutils@1.0.1': - resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} + '@rolldown/pluginutils@1.0.0-rc.3': + resolution: {integrity: sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==} '@rollup/rollup-android-arm-eabi@4.64.0': resolution: {integrity: sha512-FLLpX941CD/7aBvX3GqLGBM9OvY5PGXTryPJkG5r5/OuBpZpV5k45Uo3RxAvqd35tsyc3hH1bhtz921IKzoIzg==} @@ -463,6 +456,18 @@ packages: cpu: [x64] os: [win32] + '@types/babel__core@7.20.5': + resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} + + '@types/babel__generator@7.27.0': + resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==} + + '@types/babel__template@7.4.4': + resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==} + + '@types/babel__traverse@7.28.0': + resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==} + '@types/chai@5.2.3': resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} @@ -480,6 +485,12 @@ packages: '@types/react@19.3.0': resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==} + '@vitejs/plugin-react@5.2.0': + resolution: {integrity: sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 + '@vitest/mocker@5.0.3': resolution: {integrity: sha512-T8sWAIbkSyAjkwTcaEc3Iu0o9A27X1/kdXrizhZkGuSKScRQtRzclfAMpOTcGdXCsqxeWlpGy3XjqaW8CpLORg==} peerDependencies: @@ -512,6 +523,16 @@ packages: base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} + baseline-browser-mapping@2.11.27: + resolution: {integrity: sha512-ElY12DaROGuan+lMmZ8Cvo/ZUbXPe7Enc/9VU/b1T3Kp4dwytRcNdR8DoSJN5SNJT/CuvcCA0DHDVmMOCePdRQ==} + engines: {node: '>=6.0.0'} + hasBin: true + + browserslist@4.29.3: + resolution: {integrity: sha512-1R4kiYKXGViqEN0CnoDrXc1StD9niAwu+j2dukWzrD4bJgsD4lDmEp0CRbc6E/vYJIfTHwPmwyaKtVSudICdPA==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + buffer@6.0.3: resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} @@ -525,6 +546,9 @@ packages: resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} engines: {node: '>=8'} + caniuse-lite@1.0.30001814: + resolution: {integrity: sha512-/Uaf1lAzr59XcMpW0o96WoEfr+VXK2OX4U9AgFoiSHsVJ4HppnIFUjtYzsyDH2+tgANaQb2/oxYGwCPapN1FpA==} + chai@6.3.0: resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==} engines: {node: '>=18'} @@ -544,6 +568,9 @@ packages: resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==} engines: {node: ^14.18.0 || >=16.10.0} + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + csstype@3.2.3: resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} @@ -556,9 +583,8 @@ packages: supports-color: optional: true - detect-libc@2.1.2: - resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} - engines: {node: '>=8'} + electron-to-chromium@1.5.444: + resolution: {integrity: sha512-5ss/uJfoDYDHT0lfJzT6FbcskIzROIOPf0BbbFkGcvDzoJU7i//9GDrwwIHQVmIsrAGiF3ihpADBRIsrEFt1rQ==} emitter-component@1.1.2: resolution: {integrity: sha512-QdXO3nXOzZB4pAjM0n6ZE+R9/+kPpECA/XSELIcc54NeYVnBqIk+4DFiBgK+8QbV3mdvTG6nedl7dTYgO+5wDw==} @@ -574,6 +600,10 @@ packages: engines: {node: '>=18'} hasBin: true + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} @@ -605,6 +635,10 @@ packages: engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] + gensync@1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} @@ -615,79 +649,18 @@ packages: resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} engines: {node: '>=10'} - lightningcss-android-arm64@1.33.0: - resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [android] + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - lightningcss-darwin-arm64@1.33.0: - resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [darwin] - - lightningcss-darwin-x64@1.33.0: - resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [darwin] - - lightningcss-freebsd-x64@1.33.0: - resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [freebsd] - - lightningcss-linux-arm-gnueabihf@1.33.0: - resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} - engines: {node: '>= 12.0.0'} - cpu: [arm] - os: [linux] - - lightningcss-linux-arm64-gnu@1.33.0: - resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [linux] - libc: [glibc] - - lightningcss-linux-arm64-musl@1.33.0: - resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [linux] - libc: [musl] - - lightningcss-linux-x64-gnu@1.33.0: - resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [linux] - libc: [glibc] - - lightningcss-linux-x64-musl@1.33.0: - resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [linux] - libc: [musl] - - lightningcss-win32-arm64-msvc@1.33.0: - resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [win32] - - lightningcss-win32-x64-msvc@1.33.0: - resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [win32] + jsesc@3.1.0: + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} + hasBin: true - lightningcss@1.33.0: - resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} - engines: {node: '>= 12.0.0'} + json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} + engines: {node: '>=6'} + hasBin: true lilconfig@3.1.3: resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==} @@ -700,6 +673,9 @@ packages: resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + lru-cache@5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} @@ -729,6 +705,10 @@ packages: encoding: optional: true + node-releases@2.0.57: + resolution: {integrity: sha512-kQK9LGGFiHtrWiNhZtA7Qbw17AQz+dmsEKODRIVTXA9+e5MS/2gZEBhYJt13GrAz5/IOZKddH/0Z3TP/Zgo+yw==} + engines: {node: '>=18'} + object-assign@4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} @@ -785,6 +765,10 @@ packages: peerDependencies: react: ^19.3.0 + react-refresh@0.18.0: + resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==} + engines: {node: '>=0.10.0'} + react@19.3.0: resolution: {integrity: sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==} engines: {node: '>=0.10.0'} @@ -797,11 +781,6 @@ packages: resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} engines: {node: '>=8'} - rolldown@1.2.12: - resolution: {integrity: sha512-8wafseiaG80xmXSfqidUNqZcylTlhmPZZt+za2m+js2sFZ8dTNlhIOV2WcbIPx2hgwPBJpEUGFAMZ9bgBBLTSQ==} - engines: {node: ^20.19.0 || >=22.12.0} - hasBin: true - rollup@4.64.0: resolution: {integrity: sha512-gjA/kFeDfffII8COoPsvLPvE16hWDTEc1+0QKQNKUkuV8iJjqsC4xXs8/FzuL0v9EV39kuxTbAgcFoTRyy2TGQ==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} @@ -810,6 +789,10 @@ packages: scheduler@0.28.0: resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==} + semver@6.3.1: + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} + hasBin: true + seqparse@0.2.2: resolution: {integrity: sha512-DoIHCXJsglxvwKbZIJMp4j03aJTSUA/pm9uLEah2bAANJ5Ez6NdJzbvhWCgNbOVVXzdGR1a0qVw4QL03cDxHbw==} hasBin: true @@ -904,16 +887,21 @@ packages: ufo@1.6.4: resolution: {integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==} - vite@8.3.2: - resolution: {integrity: sha512-SQr1x6W5vVSbROg7vsyXIaxK9b0G7zsT68acdWWRmnBUsgDieLCRG+Rep9WdZgcposvv/GSnr4GUUBqB3vXq6w==} + update-browserslist-db@1.3.3: + resolution: {integrity: sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + + vite@7.3.6: + resolution: {integrity: sha512-4XP60spRGjSZFf1qYH+dJIkK2znL3zQfl9KkOV9MkkRR/3Dls0dxaBsQPTloEc5BLXWPL9vsOxopxyKoMmDueg==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: '@types/node': ^20.19.0 || >=22.12.0 - '@vitejs/devtools': ^0.7.1 - esbuild: ^0.27.0 || ^0.28.0 jiti: '>=1.21.0' less: ^4.0.0 + lightningcss: ^1.21.0 sass: ^1.70.0 sass-embedded: ^1.70.0 stylus: '>=0.54.8' @@ -924,14 +912,12 @@ packages: peerDependenciesMeta: '@types/node': optional: true - '@vitejs/devtools': - optional: true - esbuild: - optional: true jiti: optional: true less: optional: true + lightningcss: + optional: true sass: optional: true sass-embedded: @@ -1006,8 +992,123 @@ packages: resolution: {integrity: sha512-ghig2TBE/H11aOVgmahA3MhimvkBr6JIYknH/Dhdk10nXwdbIqBJsbfMxpvFPG8bAw77gN29aQWvKpmVoPlvPQ==} engines: {node: '>=16.0.0'} + yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + snapshots: + '@babel/code-frame@7.29.7': + dependencies: + '@babel/helper-validator-identifier': 7.29.7 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/compat-data@7.29.7': {} + + '@babel/core@7.29.7': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/generator': 7.29.8 + '@babel/helper-compilation-targets': 7.29.7 + '@babel/helper-module-transforms': 7.29.7(@babel/core@7.29.7) + '@babel/helpers': 7.29.7 + '@babel/parser': 7.29.9 + '@babel/template': 7.29.7 + '@babel/traverse': 7.29.8 + '@babel/types': 7.29.8 + '@jridgewell/remapping': 2.3.5 + convert-source-map: 2.0.0 + debug: 4.4.3 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + '@babel/generator@7.29.8': + dependencies: + '@babel/parser': 7.29.9 + '@babel/types': 7.29.8 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + jsesc: 3.1.0 + + '@babel/helper-compilation-targets@7.29.7': + dependencies: + '@babel/compat-data': 7.29.7 + '@babel/helper-validator-option': 7.29.7 + browserslist: 4.29.3 + lru-cache: 5.1.1 + semver: 6.3.1 + + '@babel/helper-globals@7.29.7': {} + + '@babel/helper-module-imports@7.29.7': + dependencies: + '@babel/traverse': 7.29.8 + '@babel/types': 7.29.8 + transitivePeerDependencies: + - supports-color + + '@babel/helper-module-transforms@7.29.7(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-module-imports': 7.29.7 + '@babel/helper-validator-identifier': 7.29.7 + '@babel/traverse': 7.29.8 + transitivePeerDependencies: + - supports-color + + '@babel/helper-plugin-utils@7.29.7': {} + + '@babel/helper-string-parser@7.29.7': {} + + '@babel/helper-validator-identifier@7.29.7': {} + + '@babel/helper-validator-option@7.29.7': {} + + '@babel/helpers@7.29.7': + dependencies: + '@babel/template': 7.29.7 + '@babel/types': 7.29.8 + + '@babel/parser@7.29.9': + dependencies: + '@babel/types': 7.29.8 + + '@babel/plugin-transform-react-jsx-self@7.29.7(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-transform-react-jsx-source@7.29.7(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/template@7.29.7': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/parser': 7.29.9 + '@babel/types': 7.29.8 + + '@babel/traverse@7.29.8': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/generator': 7.29.8 + '@babel/helper-globals': 7.29.7 + '@babel/parser': 7.29.9 + '@babel/template': 7.29.7 + '@babel/types': 7.29.8 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + '@babel/types@7.29.8': + dependencies: + '@babel/helper-string-parser': 7.29.7 + '@babel/helper-validator-identifier': 7.29.7 + '@esbuild/aix-ppc64@0.27.7': optional: true @@ -1091,6 +1192,11 @@ snapshots: '@jridgewell/sourcemap-codec': 1.6.0 '@jridgewell/trace-mapping': 0.3.31 + '@jridgewell/remapping@2.3.5': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + '@jridgewell/resolve-uri@3.1.2': {} '@jridgewell/sourcemap-codec@1.6.0': {} @@ -1110,54 +1216,7 @@ snapshots: '@nodable/entities@3.1.0': {} - '@oxc-project/types@0.152.0': {} - - '@rolldown/binding-android-arm-eabi@1.2.12': - optional: true - - '@rolldown/binding-android-arm64@1.2.12': - optional: true - - '@rolldown/binding-darwin-arm64@1.2.12': - optional: true - - '@rolldown/binding-darwin-x64@1.2.12': - optional: true - - '@rolldown/binding-freebsd-x64@1.2.12': - optional: true - - '@rolldown/binding-linux-arm-gnueabihf@1.2.12': - optional: true - - '@rolldown/binding-linux-arm64-gnu@1.2.12': - optional: true - - '@rolldown/binding-linux-arm64-musl@1.2.12': - optional: true - - '@rolldown/binding-linux-ppc64-gnu@1.2.12': - optional: true - - '@rolldown/binding-linux-s390x-gnu@1.2.12': - optional: true - - '@rolldown/binding-linux-x64-gnu@1.2.12': - optional: true - - '@rolldown/binding-linux-x64-musl@1.2.12': - optional: true - - '@rolldown/binding-openharmony-arm64@1.2.12': - optional: true - - '@rolldown/binding-win32-arm64-msvc@1.2.12': - optional: true - - '@rolldown/binding-win32-x64-msvc@1.2.12': - optional: true - - '@rolldown/pluginutils@1.0.1': {} + '@rolldown/pluginutils@1.0.0-rc.3': {} '@rollup/rollup-android-arm-eabi@4.64.0': optional: true @@ -1234,6 +1293,27 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.64.0': optional: true + '@types/babel__core@7.20.5': + dependencies: + '@babel/parser': 7.29.9 + '@babel/types': 7.29.8 + '@types/babel__generator': 7.27.0 + '@types/babel__template': 7.4.4 + '@types/babel__traverse': 7.28.0 + + '@types/babel__generator@7.27.0': + dependencies: + '@babel/types': 7.29.8 + + '@types/babel__template@7.4.4': + dependencies: + '@babel/parser': 7.29.9 + '@babel/types': 7.29.8 + + '@types/babel__traverse@7.28.0': + dependencies: + '@babel/types': 7.29.8 + '@types/chai@5.2.3': dependencies: '@types/deep-eql': 4.0.2 @@ -1251,14 +1331,26 @@ snapshots: dependencies: csstype: 3.2.3 - '@vitest/mocker@5.0.3(vite@8.3.2(esbuild@0.27.7))': + '@vitejs/plugin-react@5.2.0(vite@7.3.6)': + dependencies: + '@babel/core': 7.29.7 + '@babel/plugin-transform-react-jsx-self': 7.29.7(@babel/core@7.29.7) + '@babel/plugin-transform-react-jsx-source': 7.29.7(@babel/core@7.29.7) + '@rolldown/pluginutils': 1.0.0-rc.3 + '@types/babel__core': 7.20.5 + react-refresh: 0.18.0 + vite: 7.3.6 + transitivePeerDependencies: + - supports-color + + '@vitest/mocker@5.0.3(vite@7.3.6)': dependencies: '@jridgewell/trace-mapping': 0.3.31 '@vitest/spy': 5.0.3 estree-walker: 3.0.3 magic-string: 1.4.2 optionalDependencies: - vite: 8.3.2(esbuild@0.27.7) + vite: 7.3.6 '@vitest/spy@5.0.3': {} @@ -1272,6 +1364,16 @@ snapshots: base64-js@1.5.1: {} + baseline-browser-mapping@2.11.27: {} + + browserslist@4.29.3: + dependencies: + baseline-browser-mapping: 2.11.27 + caniuse-lite: 1.0.30001814 + electron-to-chromium: 1.5.444 + node-releases: 2.0.57 + update-browserslist-db: 1.3.3(browserslist@4.29.3) + buffer@6.0.3: dependencies: base64-js: 1.5.1 @@ -1284,6 +1386,8 @@ snapshots: cac@6.7.14: {} + caniuse-lite@1.0.30001814: {} + chai@6.3.0: {} chokidar@4.0.3: @@ -1296,13 +1400,15 @@ snapshots: consola@3.4.2: {} + convert-source-map@2.0.0: {} + csstype@3.2.3: {} debug@4.4.3: dependencies: ms: 2.1.3 - detect-libc@2.1.2: {} + electron-to-chromium@1.5.444: {} emitter-component@1.1.2: {} @@ -1339,6 +1445,8 @@ snapshots: '@esbuild/win32-ia32': 0.27.7 '@esbuild/win32-x64': 0.27.7 + escalade@3.2.0: {} + estree-walker@3.0.3: dependencies: '@types/estree': 1.0.9 @@ -1372,60 +1480,19 @@ snapshots: fsevents@2.3.3: optional: true + gensync@1.0.0-beta.2: {} + ieee754@1.2.1: {} is-unsafe@2.0.2: {} joycon@3.1.1: {} - lightningcss-android-arm64@1.33.0: - optional: true + js-tokens@4.0.0: {} - lightningcss-darwin-arm64@1.33.0: - optional: true - - lightningcss-darwin-x64@1.33.0: - optional: true - - lightningcss-freebsd-x64@1.33.0: - optional: true + jsesc@3.1.0: {} - lightningcss-linux-arm-gnueabihf@1.33.0: - optional: true - - lightningcss-linux-arm64-gnu@1.33.0: - optional: true - - lightningcss-linux-arm64-musl@1.33.0: - optional: true - - lightningcss-linux-x64-gnu@1.33.0: - optional: true - - lightningcss-linux-x64-musl@1.33.0: - optional: true - - lightningcss-win32-arm64-msvc@1.33.0: - optional: true - - lightningcss-win32-x64-msvc@1.33.0: - optional: true - - lightningcss@1.33.0: - dependencies: - detect-libc: 2.1.2 - optionalDependencies: - lightningcss-android-arm64: 1.33.0 - lightningcss-darwin-arm64: 1.33.0 - lightningcss-darwin-x64: 1.33.0 - lightningcss-freebsd-x64: 1.33.0 - lightningcss-linux-arm-gnueabihf: 1.33.0 - lightningcss-linux-arm64-gnu: 1.33.0 - lightningcss-linux-arm64-musl: 1.33.0 - lightningcss-linux-x64-gnu: 1.33.0 - lightningcss-linux-x64-musl: 1.33.0 - lightningcss-win32-arm64-msvc: 1.33.0 - lightningcss-win32-x64-msvc: 1.33.0 + json5@2.2.3: {} lilconfig@3.1.3: {} @@ -1433,6 +1500,10 @@ snapshots: load-tsconfig@0.2.5: {} + lru-cache@5.1.1: + dependencies: + yallist: 3.1.1 + magic-string@0.30.21: dependencies: '@jridgewell/sourcemap-codec': 1.6.0 @@ -1462,6 +1533,8 @@ snapshots: dependencies: whatwg-url: 5.0.0 + node-releases@2.0.57: {} + object-assign@4.1.1: {} obug@2.2.1: {} @@ -1499,33 +1572,14 @@ snapshots: react: 19.3.0 scheduler: 0.28.0 + react-refresh@0.18.0: {} + react@19.3.0: {} readdirp@4.1.2: {} resolve-from@5.0.0: {} - rolldown@1.2.12: - dependencies: - '@oxc-project/types': 0.152.0 - '@rolldown/pluginutils': 1.0.1 - optionalDependencies: - '@rolldown/binding-android-arm-eabi': 1.2.12 - '@rolldown/binding-android-arm64': 1.2.12 - '@rolldown/binding-darwin-arm64': 1.2.12 - '@rolldown/binding-darwin-x64': 1.2.12 - '@rolldown/binding-freebsd-x64': 1.2.12 - '@rolldown/binding-linux-arm-gnueabihf': 1.2.12 - '@rolldown/binding-linux-arm64-gnu': 1.2.12 - '@rolldown/binding-linux-arm64-musl': 1.2.12 - '@rolldown/binding-linux-ppc64-gnu': 1.2.12 - '@rolldown/binding-linux-s390x-gnu': 1.2.12 - '@rolldown/binding-linux-x64-gnu': 1.2.12 - '@rolldown/binding-linux-x64-musl': 1.2.12 - '@rolldown/binding-openharmony-arm64': 1.2.12 - '@rolldown/binding-win32-arm64-msvc': 1.2.12 - '@rolldown/binding-win32-x64-msvc': 1.2.12 - rollup@4.64.0: dependencies: '@types/estree': 1.0.9 @@ -1560,6 +1614,8 @@ snapshots: scheduler@0.28.0: {} + semver@6.3.1: {} + seqparse@0.2.2: dependencies: buffer: 6.0.3 @@ -1663,21 +1719,27 @@ snapshots: ufo@1.6.4: {} - vite@8.3.2(esbuild@0.27.7): + update-browserslist-db@1.3.3(browserslist@4.29.3): dependencies: - lightningcss: 1.33.0 + browserslist: 4.29.3 + escalade: 3.2.0 + picocolors: 1.1.1 + + vite@7.3.6: + dependencies: + esbuild: 0.27.7 + fdir: 6.5.0(picomatch@4.0.7) picomatch: 4.0.7 postcss: 8.5.28 - rolldown: 1.2.12 + rollup: 4.64.0 tinyglobby: 0.2.17 optionalDependencies: - esbuild: 0.27.7 fsevents: 2.3.3 - vitest@5.0.3(vite@8.3.2(esbuild@0.27.7)): + vitest@5.0.3(vite@7.3.6): dependencies: '@types/chai': 5.2.3 - '@vitest/mocker': 5.0.3(vite@8.3.2(esbuild@0.27.7)) + '@vitest/mocker': 5.0.3(vite@7.3.6) chai: 6.3.0 es-module-lexer: 2.3.2 expect-type: 1.4.0 @@ -1688,7 +1750,7 @@ snapshots: tinybench: 6.2.0 tinyexec: 1.3.1 tinyglobby: 0.2.17 - vite: 8.3.2(esbuild@0.27.7) + vite: 7.3.6 why-is-node-running: 3.2.1 transitivePeerDependencies: - msw @@ -1705,3 +1767,5 @@ snapshots: why-is-node-running@3.2.1: {} xml-naming@0.3.0: {} + + yallist@3.1.1: {} diff --git a/src/core/genbank.ts b/src/core/genbank.ts new file mode 100644 index 0000000..ea33199 --- /dev/null +++ b/src/core/genbank.ts @@ -0,0 +1,59 @@ +export interface Feature { + type: string + /** 0-based, half-open; on a circular sequence `start >= end` means it wraps the origin. */ + start: number + end: number + strand: 1 | -1 + label: string + note?: string +} + +const MONTHS = ['JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC'] + +function location(feature: Feature, length: number): string { + const span = + feature.start < feature.end + ? `${feature.start + 1}..${feature.end}` + : `join(${feature.start + 1}..${length},1..${feature.end})` + return feature.strand === -1 ? `complement(${span})` : span +} + +const quote = (value: string) => value.replace(/"/g, "'") + +/** Annotated GenBank flat file, readable by SnapGene, Benchling, ApE and Biopython. */ +export function toGenBank( + name: string, + seq: string, + features: Feature[], + { circular = true, definition = '', date = new Date() } = {} +): string { + const locus = (name.replace(/\s+/g, '_') || 'sequence').slice(0, 16) + const day = String(date.getUTCDate()).padStart(2, '0') + const stamp = `${day}-${MONTHS[date.getUTCMonth()]}-${date.getUTCFullYear()}` + const lines = [ + `LOCUS ${locus.padEnd(16)} ${String(seq.length).padStart(11)} bp DNA ${circular ? 'circular' : 'linear '} SYN ${stamp}`, + `DEFINITION ${definition || `${name}.`}`, + 'ACCESSION .', + 'VERSION .', + 'KEYWORDS .', + 'SOURCE synthetic DNA construct', + ' ORGANISM synthetic DNA construct', + 'FEATURES Location/Qualifiers', + ` source 1..${seq.length}`, + ' /mol_type="other DNA"', + ' /organism="synthetic DNA construct"' + ] + for (const feature of features) { + lines.push(` ${feature.type.padEnd(16)}${location(feature, seq.length)}`) + lines.push(` /label="${quote(feature.label)}"`) + if (feature.note) lines.push(` /note="${quote(feature.note)}"`) + } + lines.push('ORIGIN') + const lower = seq.toLowerCase() + for (let i = 0; i < lower.length; i += 60) { + const blocks = lower.slice(i, i + 60).match(/.{1,10}/g) ?? [] + lines.push(`${String(i + 1).padStart(9)} ${blocks.join(' ')}`) + } + lines.push('//') + return lines.join('\n') + '\n' +} diff --git a/src/core/index.ts b/src/core/index.ts index 985f9f1..9321162 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -5,3 +5,4 @@ export { findSites, findCuts, findAllCuts } from './sites' export { digest, topStrand, fragmentLength, leftEnd, rightEnd, flip } from './digest' export { ligate, compatible, canSelfLigate } from './ligate' export { parseSequence, toFasta } from './fasta' +export { toGenBank, type Feature } from './genbank' diff --git a/src/ui/VectorEditor.tsx b/src/ui/VectorEditor.tsx index d2001bd..b4546ed 100644 --- a/src/ui/VectorEditor.tsx +++ b/src/ui/VectorEditor.tsx @@ -1,52 +1,32 @@ -import React, { useEffect, useMemo, useState } from 'react' +import React, { useEffect, useRef, useState, type ReactNode } from 'react' import { SeqViz } from 'seqviz' import { - canSelfLigate, - commercialEnzymes, - digest, - findAllCuts, - findCuts, - findSites, formatSite, fragmentLength, leftEnd, - ligate, parseEnzyme, - parseSequence, rebaseVersion, rightEnd, suppliers, toFasta, type End, - type Enzyme, type Fragment } from '../core' -import { exampleEnzymes, exampleInsert, exampleVector } from '../data/examples' import { EnzymeCombobox } from './EnzymeCombobox' -import { FastaView, type RangeSource, type Region, type SeqRange } from './FastaView' +import { FastaView } from './FastaView' import { labelsEn, type Labels } from './labels' +import { fastaOf, useCloning, type Filter } from './useCloning' export interface VectorEditorProps { labels?: Labels - /** Domain colours for the map: vector, insert, enzymes. */ + /** Domain colours shared by the map and the FASTA: vector, insert, enzymes. */ colors?: { vector: string; insert: string; enzyme: string } /** localStorage key for custom enzymes; null disables persistence. */ storageKey?: string | null -} - -type Filter = 'both' | 'vector' | 'all' - -const DISCARD_WARNING_BP = 30 - -const fasta = (name: string, seq: string) => toFasta(name, seq) -const loadCustom = (key: string | null): Enzyme[] => { - if (!key) return [] - try { - const stored = JSON.parse(localStorage.getItem(key) ?? '[]') as Enzyme[] - return Array.isArray(stored) ? stored : [] - } catch { - return [] - } + /** `app` fills the viewport and enables global shortcuts; `embedded` fits inside a page. */ + layout?: 'embedded' | 'app' + /** Rendered at the start of the toolbar (e.g. the app name). */ + brand?: ReactNode } function endLabel(end: End, labels: Labels): string { @@ -69,38 +49,79 @@ async function readFile(file: File): Promise { const { default: seqparse } = await import('seqparse') const source = /\.dna$/i.test(file.name) ? await file.arrayBuffer() : undefined const parsed = await seqparse(text, { fileName: file.name, source }) - return fasta(parsed.name || file.name.replace(/\.[^.]+$/, ''), parsed.seq) + return fastaOf(parsed.name || file.name.replace(/\.[^.]+$/, ''), parsed.seq) +} + +function saveFile(name: string, text: string, extension: string, type: string) { + const url = URL.createObjectURL(new Blob([text], { type })) + const link = document.createElement('a') + link.href = url + link.download = `${name.replace(/[^\w.-]+/g, '_')}.${extension}` + link.click() + URL.revokeObjectURL(url) } -function SequenceInput(props: { +const isTyping = (target: EventTarget | null) => + target instanceof HTMLElement && + (target.isContentEditable || ['INPUT', 'TEXTAREA', 'SELECT'].includes(target.tagName)) + +/** Vector or insert: a one-line summary that opens into an editor; accepts dropped files. */ +function SequenceCard(props: { id: string label: string + name: string + length: number + circular: boolean value: string onChange: (value: string) => void labels: Labels - circular: boolean - length: number }) { - const { id, label, value, onChange, labels, circular, length } = props + const { id, label, name, length, circular, value, onChange, labels } = props + const [editing, setEditing] = useState(false) + const [dragging, setDragging] = useState(false) + const open = editing || length === 0 return ( -
-
- +
{ + event.preventDefault() + setDragging(true) + }} + onDragLeave={() => setDragging(false)} + onDrop={async (event) => { + event.preventDefault() + setDragging(false) + const file = event.dataTransfer.files[0] + if (file) onChange(await readFile(file)) + }} + > +
+ {label} + + {length ? name : labels.empty} + - {length.toLocaleString()} {labels.bp} + {length.toLocaleString()} {labels.bp} · {circular ? labels.circular : labels.linear}
-