diff --git a/.env.example b/.env.example
index bf084c4..f963ff1 100644
--- a/.env.example
+++ b/.env.example
@@ -2,6 +2,8 @@
SECRET_KEY=changer-moi
DEBUG=true
ALLOWED_HOSTS=localhost,127.0.0.1
+# Origine du serveur Vite (front en développement)
+CSRF_TRUSTED_ORIGINS=http://localhost:5173
DATABASE_URL=postgres://prism:prism@db:5432/prism
EMAIL_URL=smtp://mailpit:1025
DEFAULT_FROM_EMAIL=no-reply@prism.localhost
@@ -11,3 +13,11 @@ DEFAULT_FROM_EMAIL=no-reply@prism.localhost
# NOMINATIM_URL=https://nominatim.openstreetmap.org/search
# IRCELINE_WMS_URL=https://geo.irceline.be/rio/wms
# PRISM_HTTP_TIMEOUT=5
+
+# Comptes
+FRONTEND_URL=http://localhost:5173
+BACKEND_URL=http://localhost:8000
+# Adresses de la cellule SSMG prévenues des nouvelles demandes (séparées par des virgules)
+SSMG_NOTIFY_EMAILS=cellule-environnement@prism.localhost
+# L'admin Django exige la 2FA (vrai par défaut hors DEBUG)
+# ADMIN_REQUIRE_OTP=false
diff --git a/.gitea/workflows/build-and-release.yaml b/.gitea/workflows/build-and-release.yaml
new file mode 100644
index 0000000..6e59c2b
--- /dev/null
+++ b/.gitea/workflows/build-and-release.yaml
@@ -0,0 +1,36 @@
+name: Build and release
+run-name: Build and release ${{ github.ref_name }} (by ${{ gitea.actor }})
+on:
+ push:
+ tags:
+ - "*"
+
+jobs:
+ docker:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: https://gitea.com/actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
+ - name: Log in to Docker Registry
+ uses: https://gitea.com/docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
+ with:
+ registry: h3m6q87t.gra7.container-registry.ovh.net
+ username: ${{ vars.OVH_REGISTRY_USERNAME }}
+ password: ${{ secrets.OVH_REGISTRY_PASSWORD }}
+ - name: Set up Docker Buildx
+ uses: https://gitea.com/docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
+ - name: Build and push backend
+ uses: https://gitea.com/docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7
+ with:
+ context: backend
+ pull: true
+ push: true
+ tags: h3m6q87t.gra7.container-registry.ovh.net/prism/backend:${{ github.ref_name }}
+
+ - name: Build and push frontend
+ uses: https://gitea.com/docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7
+ with:
+ context: frontend
+ pull: true
+ push: true
+ tags: h3m6q87t.gra7.container-registry.ovh.net/prism/frontend:${{ github.ref_name }}
diff --git a/.gitea/workflows/test-build.yaml b/.gitea/workflows/test-build.yaml
new file mode 100644
index 0000000..fa57646
--- /dev/null
+++ b/.gitea/workflows/test-build.yaml
@@ -0,0 +1,111 @@
+name: Test build
+run-name: Build ${{ github.ref_name }} (by ${{ gitea.actor }})
+on:
+ pull_request:
+ types:
+ - auto_merge_enabled
+ - opened
+ - synchronize
+
+jobs:
+ docker:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: https://gitea.com/actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
+ - name: Log in to Docker Registry
+ uses: https://gitea.com/docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
+ with:
+ registry: h3m6q87t.gra7.container-registry.ovh.net
+ username: ${{ vars.OVH_REGISTRY_USERNAME }}
+ password: ${{ secrets.OVH_REGISTRY_PASSWORD }}
+ - name: Set up Docker Buildx
+ uses: https://gitea.com/docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
+ - name: Build backend
+ uses: https://gitea.com/docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7
+ with:
+ context: backend
+ pull: true
+ push: false
+
+ - name: Build frontend
+ uses: https://gitea.com/docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7
+ with:
+ context: frontend
+ pull: true
+ push: false
+
+ backend-tests:
+ name: Back-end (qualité et tests)
+ runs-on: ubuntu-latest
+ services:
+ # Base des tests, joignable sous le nom « db ».
+ db:
+ image: postgres:17
+ env:
+ POSTGRES_DB: prism
+ POSTGRES_USER: prism
+ POSTGRES_PASSWORD: prism
+ options: >-
+ --health-cmd "pg_isready -U prism -d prism"
+ --health-interval 5s
+ --health-timeout 5s
+ --health-retries 10
+ env:
+ SECRET_KEY: ci-uniquement-pas-un-secret
+ DEBUG: "true"
+ ALLOWED_HOSTS: localhost
+ CSRF_TRUSTED_ORIGINS: http://localhost
+ DATABASE_URL: postgres://prism:prism@db:5432/prism
+ defaults:
+ run:
+ working-directory: backend
+ steps:
+ - name: Checkout
+ uses: https://gitea.com/actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
+ - name: Set up Python
+ uses: https://gitea.com/actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
+ with:
+ python-version: "3.12"
+ - name: Install uv
+ run: python -m pip install "uv~=0.9"
+ - name: Install dependencies
+ run: uv sync --locked
+ - name: Wait for PostgreSQL
+ run: >-
+ uv run python -c "import socket,time,sys;
+ [(sys.exit(0) if socket.socket().connect_ex(('db',5432))==0 else time.sleep(1)) for _ in range(30)]"
+ - name: Ruff (lint)
+ run: uv run ruff check .
+ - name: Ruff (format)
+ run: uv run ruff format --check .
+ - name: Check migrations are up to date
+ run: uv run python manage.py makemigrations --check --dry-run
+ - name: Tests
+ run: uv run pytest
+
+ frontend-tests:
+ name: Front-end (qualité, tests et build)
+ runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: frontend
+ steps:
+ - name: Checkout
+ uses: https://gitea.com/actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
+ - name: Set up Node
+ uses: https://gitea.com/actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
+ with:
+ node-version: 24
+ - name: Install dependencies
+ run: npm ci
+ - name: Lint
+ run: |
+ npx oxlint .
+ npx eslint .
+ - name: Type check
+ run: npm run type-check
+ - name: Tests
+ run: npm run test:unit -- --run
+ - name: Build
+ run: npm run build-only
diff --git a/CLAUDE.md b/CLAUDE.md
index ba85e4d..b2c5719 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -14,22 +14,41 @@ docker compose exec web python manage.py createsuperuser
docker compose exec web pytest # tests (HTTP mocké avec respx)
docker compose exec web sh -c 'ruff check . && ruff format --check .'
docker compose exec web python manage.py makemigrations --check --dry-run
+docker compose exec web python manage.py purge_pending_accounts # tâche périodique (cron)
```
+E-mails en développement : capturés par Mailpit (`http://localhost:8025`).
+
Dépendances : `backend/pyproject.toml` + `uv.lock` (uv). Après modification : `uv lock` (dans un conteneur Python 3.12), puis `docker compose build web`.
-URL en dev : API `http://localhost:8000/api/v1/`, doc OpenAPI `/api/docs/`, admin `/admin/`, Mailpit `http://localhost:8025`.
+Front (`frontend/`, Node 24, hors Docker) :
+
+```bash
+npm --prefix frontend install
+npm --prefix frontend run dev # http://localhost:5173, /api relayé vers Django
+npm --prefix frontend run test:unit -- --run
+npm --prefix frontend run type-check && npm --prefix frontend run lint
+```
+
+URL en dev : front `http://localhost:5173`, API `http://localhost:8000/api/v1/`, doc OpenAPI `/api/docs/`, admin `/admin/`, Mailpit `http://localhost:8025`.
## Architecture (`backend/`)
- `config/` : settings (tout par variables d'environnement via django-environ). URL et couches des sources externes dans `PRISM_SOURCES`.
-- `accounts/` : `User` (e-mail = identifiant, `status` ; seul `active` peut se connecter), `MailEvent`. Rôles = Groups « Médecin », « Cellule SSMG », « Admin » (migration `0002_roles`). django-otp installé, endpoints d'auth pas encore écrits.
+- `accounts/` : `User` (e-mail = identifiant, `status` ; seul `active` peut se connecter), `MailEvent`, `RecoveryCode` (codes de secours hachés). Rôles = Groups « Médecin », « Cellule SSMG », « Admin » (migration `0002_roles`).
+ - Routes `/api/v1/auth/` : `login` (étape 1, renvoie `mfa_required`), `2fa/verify` (étape 2 : TOTP ou code de secours), `logout`, `me` (dépose le cookie CSRF), `register`, `verify-email`, `verify-email/resend`, `password/change`, `password-reset` (+ `validate`, `confirm`), `2fa/setup|enable|disable|recovery-codes`.
+ - `services.py` : inscription, validation/refus (actions de l'admin), 2FA (django-otp `TOTPDevice`). `tokens.py` : jetons des liens e-mail (confirmation : signés, usage unique déduit du statut ; réinitialisation : jeton de Django `uid.jeton`, 1 h, invalidé par le changement de mot de passe). `emails.py` + `templates/accounts/emails/` : les 8 e-mails, envoyés après commit et tracés dans `MailEvent`.
+ - L'admin Django exige la 2FA si `ADMIN_REQUIRE_OTP` (vrai hors DEBUG). Commande `purge_pending_accounts` : supprime les demandes non confirmées après 7 jours.
- `factors/` : `Factor`, `DataSource`, `ThresholdClass` (valeur source → niveau 1–4 + couleur, par région ; `BE` = repli national), `ContentBlock` (textes, statut brouillon/validé, historique), `Reference` + `ContentReference` (notes numérotées).
- `assessments/` :
- `geocoding/` : chaîne Best Address (désactivée tant que `BEST_ADDRESS_URL` est vide, format à confirmer) → Nominatim. Région déduite du code postal.
- `providers/` : un module par facteur (`FactorProvider.fetch(client, location) -> RawResult`), inscrit dans `registry.py`. Un module lève une exception si sa source ne répond pas ; le service la convertit en `status: unavailable`.
- `services.py` : géocode, appelle les modules en parallèle (httpx async), mappe `RawResult.source_value` sur `ThresholdClass.source_value`, joint le `ContentBlock` validé.
+## Front (`frontend/`)
+
+Vue 3 + TS (favicon de la SSMG dans `public/`), sans bibliothèque de composants : composants maison stylés avec Bootstrap (CSS seul) et les variables de `src/styles/main.css`, reprises des maquettes Penpot (fichier « PRISM », page « PRISM – Mockups »). Textes dans `src/locales/fr.json`. Pages : `/login` (avec étape 2FA), `/inscription`, `/inscription/statut`, `/mot-de-passe-oublie`, `/reinitialisation/:jeton` (liens des e-mails : le jeton est retiré de l'URL à l'arrivée), `/compte` (mot de passe, 2FA), `/`, `/403`, `/404`. MapLibre : l'URL du worker est fixée explicitement (`ResultMap.vue`), sinon les couches raster ne se chargent pas avec Vite. Le front appelle l'API en même origine via le proxy Vite ; tests Vitest dans `src/__tests__/` (MapLibre mocké, pas de WebGL dans jsdom).
+
État des sources : bruit et inondation Wallonie via WalOnMap (ArcGIS REST `query`), air via irCELine (WMS `GetFeatureInfo`, moyennes annuelles). Bruxelles (bruit, inondation) et radon (AFCN) ne sont pas raccordés : ils renvoient `unavailable`. Pas de PostGIS pour l'instant (aucune donnée géographique stockée).
## Règles
@@ -37,4 +56,5 @@ URL en dev : API `http://localhost:8000/api/v1/`, doc OpenAPI `/api/docs/`, admi
- **Aucune adresse ni coordonnée de patient** stockée ou journalisée. Ne jamais journaliser une URL de requête sortante ni le message d'une exception httpx (ils contiennent les coordonnées) : seulement le code du facteur et le type d'erreur. Les loggers `httpx`/`httpcore` restent en WARNING. Un test (`test_address_is_not_logged`) le vérifie.
- Seuils, couleurs et textes médicaux sont en base (Django admin), jamais dans le code. Exception : les valeurs guides OMS servant à compter les dépassements (`providers/air.py`).
- Ajouter un facteur = un module dans `providers/` + inscription dans `registry.py` + classes et contenus dans l'admin.
+- Côté front, l'adresse du patient reste en mémoire du composant : jamais dans l'URL, le stockage du navigateur ni les journaux.
- Code, commentaires, libellés et messages en français. Licence GPL v3.
diff --git a/README.md b/README.md
index 45025ae..1613f7a 100644
--- a/README.md
+++ b/README.md
@@ -49,9 +49,16 @@ docker compose exec web python manage.py seed_factors
docker compose exec web python manage.py createsuperuser
```
+Front (Node 24) :
+
+```bash
+npm --prefix frontend install
+npm --prefix frontend run dev # http://localhost:5173
+```
+
API : · documentation OpenAPI : · admin : · e-mails de test (Mailpit) : .
-Tests et qualité : `docker compose exec web pytest` et `docker compose exec web ruff check .`
+Tests et qualité : `docker compose exec web pytest`, `docker compose exec web ruff check .` et `npm --prefix frontend run test:unit`.
## Documentation
@@ -63,7 +70,7 @@ Tests et qualité : `docker compose exec web pytest` et `docker compose exec web
## État du projet
- Spécifications et maquettes : en cours de validation.
-- Code : back-end initialisé (modèles, raccordement des API WalOnMap et irCELine, API REST). Restent : Bruxelles, radon, Best Address, endpoints d'authentification, front Vue.
+- Code : back-end (modèles, raccordement des API WalOnMap et irCELine, API REST, comptes : inscription avec validation par la cellule SSMG, double authentification TOTP, mot de passe oublié, e-mails) et front Vue (connexion, inscription, mot de passe oublié, évaluation avec carte MapLibre, « Mon compte », pages d'erreur). Restent : Bruxelles, radon, Best Address.
- Échéance de la Phase 1 : livraison avant le 31 décembre 2026.
## Licence
diff --git a/backend/accounts/admin.py b/backend/accounts/admin.py
index 1dfb355..c7c57ac 100644
--- a/backend/accounts/admin.py
+++ b/backend/accounts/admin.py
@@ -1,16 +1,33 @@
-from django.contrib import admin
+from django.contrib import admin, messages
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
+from django_otp.plugins.otp_totp.models import TOTPDevice
-from .models import MailEvent, User
+from . import services
+from .models import MailEvent, RecoveryCode, User
@admin.register(User)
class UserAdmin(BaseUserAdmin):
ordering = ["last_name", "first_name"]
- list_display = ["email", "last_name", "first_name", "inami_number", "status", "date_joined"]
+ list_display = [
+ "email",
+ "last_name",
+ "first_name",
+ "inami_number",
+ "status",
+ "mfa",
+ "date_joined",
+ ]
list_filter = ["status", "is_staff", "groups"]
search_fields = ["email", "last_name", "first_name", "inami_number"]
- readonly_fields = ["date_joined", "last_login", "email_verified_at", "approved_at"]
+ readonly_fields = [
+ "date_joined",
+ "last_login",
+ "email_verified_at",
+ "approved_at",
+ "approved_by",
+ ]
+ actions = ["approve", "refuse", "reset_mfa"]
fieldsets = [
(None, {"fields": ["email", "password"]}),
("Identité", {"fields": ["first_name", "last_name", "inami_number"]}),
@@ -23,7 +40,10 @@ class UserAdmin(BaseUserAdmin):
"approved_at",
"approved_by",
"refusal_reason",
- ]
+ ],
+ "description": "Pour valider ou refuser une demande (avec envoi de l'e-mail), "
+ "utilisez les actions de la liste des utilisateurs. Le motif du refus "
+ "saisi ici est repris dans l'e-mail.",
},
),
("Droits", {"fields": ["is_staff", "is_superuser", "groups", "user_permissions"]}),
@@ -39,6 +59,45 @@ class UserAdmin(BaseUserAdmin):
),
]
+ @admin.display(boolean=True, description="2FA")
+ def mfa(self, user):
+ return services.mfa_enabled(user)
+
+ @admin.action(description="Valider les demandes sélectionnées (envoie l'e-mail)")
+ def approve(self, request, queryset):
+ pending = queryset.filter(status=User.Status.APPROVAL_PENDING)
+ for user in pending:
+ services.approve(user, by=request.user)
+ self._report(request, queryset, pending.count(), "validée(s)")
+
+ @admin.action(description="Refuser les demandes sélectionnées (envoie l'e-mail)")
+ def refuse(self, request, queryset):
+ pending = list(queryset.filter(status=User.Status.APPROVAL_PENDING))
+ for user in pending:
+ services.refuse(user, by=request.user, reason=user.refusal_reason)
+ self._report(request, queryset, len(pending), "refusée(s)")
+
+ @admin.action(description="Réinitialiser la double authentification")
+ def reset_mfa(self, request, queryset):
+ TOTPDevice.objects.filter(user__in=queryset).delete()
+ RecoveryCode.objects.filter(user__in=queryset).delete()
+ self.message_user(
+ request,
+ f"Double authentification réinitialisée pour {queryset.count()} compte(s).",
+ messages.SUCCESS,
+ )
+
+ def _report(self, request, queryset, done, verb):
+ skipped = queryset.count() - done
+ self.message_user(request, f"{done} demande(s) {verb}.", messages.SUCCESS)
+ if skipped:
+ self.message_user(
+ request,
+ f"{skipped} compte(s) ignoré(s) : seules les demandes « Validation en attente » "
+ "sont traitées.",
+ messages.WARNING,
+ )
+
@admin.register(MailEvent)
class MailEventAdmin(admin.ModelAdmin):
diff --git a/backend/accounts/emails.py b/backend/accounts/emails.py
new file mode 100644
index 0000000..1a56ad6
--- /dev/null
+++ b/backend/accounts/emails.py
@@ -0,0 +1,64 @@
+"""E-mails transactionnels (specs §8 bis).
+
+Chaque envoi est tracé dans `MailEvent` (type et statut, sans corps ni lien). Les messages
+ne contiennent aucune donnée patient. L'envoi a lieu après validation de la transaction.
+"""
+
+import logging
+
+from django.conf import settings
+from django.core.mail import EmailMultiAlternatives
+from django.db import transaction
+from django.template.loader import render_to_string
+
+from .models import MailEvent, User
+
+logger = logging.getLogger(__name__)
+
+SUBJECTS = {
+ MailEvent.Type.CONFIRM_EMAIL: "Confirmez votre adresse e-mail",
+ MailEvent.Type.NEW_REQUEST: "Nouvelle demande de compte à valider",
+ MailEvent.Type.ACCOUNT_APPROVED: "Votre compte PRISM est activé",
+ MailEvent.Type.ACCOUNT_REFUSED: "Votre demande de compte PRISM",
+ MailEvent.Type.PASSWORD_RESET: "Réinitialisez votre mot de passe",
+ MailEvent.Type.PASSWORD_CHANGED: "Votre mot de passe a été modifié",
+ MailEvent.Type.MFA_CHANGED: "Double authentification modifiée",
+ MailEvent.Type.DUPLICATE_SIGNUP: "Tentative d'inscription avec votre adresse",
+}
+
+
+def frontend_url(path: str) -> str:
+ return f"{settings.FRONTEND_URL.rstrip('/')}{path}"
+
+
+def send(
+ kind: MailEvent.Type,
+ user: User,
+ context: dict | None = None,
+ to: list[str] | None = None,
+) -> None:
+ """Programme l'envoi après la transaction en cours."""
+ recipients = to or [user.email]
+ context = {"user": user, "login_url": frontend_url("/login"), **(context or {})}
+ transaction.on_commit(lambda: _deliver(kind, user, recipients, context))
+
+
+def _deliver(kind: MailEvent.Type, user: User, recipients: list[str], context: dict) -> None:
+ subject = f"[PRISM] {SUBJECTS[kind]}"
+ text = render_to_string(f"accounts/emails/{kind}.txt", context)
+ html = render_to_string(
+ "accounts/emails/base.html",
+ {"subject": SUBJECTS[kind], "body": text, **context},
+ )
+ message = EmailMultiAlternatives(subject, text, settings.DEFAULT_FROM_EMAIL, recipients)
+ message.attach_alternative(html, "text/html")
+ try:
+ message.send()
+ except Exception as exc:
+ # Ni le message ni les liens ne sont journalisés (ils contiennent des jetons).
+ logger.error("Échec d'envoi de l'e-mail %s (%s)", kind, type(exc).__name__)
+ MailEvent.objects.create(
+ user=user, type=kind, status=MailEvent.Status.FAILED, error=type(exc).__name__
+ )
+ else:
+ MailEvent.objects.create(user=user, type=kind, status=MailEvent.Status.SENT)
diff --git a/backend/accounts/management/__init__.py b/backend/accounts/management/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/backend/accounts/management/commands/__init__.py b/backend/accounts/management/commands/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/backend/accounts/management/commands/purge_pending_accounts.py b/backend/accounts/management/commands/purge_pending_accounts.py
new file mode 100644
index 0000000..f028e7b
--- /dev/null
+++ b/backend/accounts/management/commands/purge_pending_accounts.py
@@ -0,0 +1,14 @@
+from django.core.management.base import BaseCommand
+
+from accounts.services import purge_unconfirmed
+
+
+class Command(BaseCommand):
+ help = "Supprime les demandes de compte dont l'adresse n'est pas confirmée après N jours."
+
+ def add_arguments(self, parser):
+ parser.add_argument("--days", type=int, default=7)
+
+ def handle(self, *args, days, **options):
+ deleted = purge_unconfirmed(days)
+ self.stdout.write(f"{deleted} demande(s) supprimée(s).")
diff --git a/backend/accounts/migrations/0003_recovery_code.py b/backend/accounts/migrations/0003_recovery_code.py
new file mode 100644
index 0000000..dbd7078
--- /dev/null
+++ b/backend/accounts/migrations/0003_recovery_code.py
@@ -0,0 +1,28 @@
+# Generated by Django 5.2.19 on 2026-11-24 11:02
+
+import django.db.models.deletion
+from django.conf import settings
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('accounts', '0002_roles'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='RecoveryCode',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('code_hash', models.CharField(max_length=64, unique=True, verbose_name='empreinte')),
+ ('used_at', models.DateTimeField(blank=True, null=True, verbose_name='utilisé le')),
+ ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='recovery_codes', to=settings.AUTH_USER_MODEL, verbose_name='utilisateur')),
+ ],
+ options={
+ 'verbose_name': 'code de secours',
+ 'verbose_name_plural': 'codes de secours',
+ },
+ ),
+ ]
diff --git a/backend/accounts/models.py b/backend/accounts/models.py
index 1da6414..0e2772f 100644
--- a/backend/accounts/models.py
+++ b/backend/accounts/models.py
@@ -123,3 +123,20 @@ class MailEvent(models.Model):
def __str__(self):
return f"{self.get_type_display()} ({self.get_status_display()})"
+
+
+class RecoveryCode(models.Model):
+ """Code de secours de la 2FA, à usage unique, stocké haché (specs §4)."""
+
+ user = models.ForeignKey(
+ User, verbose_name="utilisateur", on_delete=models.CASCADE, related_name="recovery_codes"
+ )
+ code_hash = models.CharField("empreinte", max_length=64, unique=True)
+ used_at = models.DateTimeField("utilisé le", null=True, blank=True)
+
+ class Meta:
+ verbose_name = "code de secours"
+ verbose_name_plural = "codes de secours"
+
+ def __str__(self):
+ return f"Code de secours de {self.user.email}"
diff --git a/backend/accounts/serializers.py b/backend/accounts/serializers.py
new file mode 100644
index 0000000..af46cff
--- /dev/null
+++ b/backend/accounts/serializers.py
@@ -0,0 +1,125 @@
+from django.contrib.auth.password_validation import validate_password
+from rest_framework import serializers
+
+from . import services
+from .models import User
+
+
+class LoginSerializer(serializers.Serializer):
+ email = serializers.EmailField()
+ password = serializers.CharField(trim_whitespace=False, style={"input_type": "password"})
+
+
+class UserSerializer(serializers.ModelSerializer):
+ roles = serializers.SlugRelatedField(
+ source="groups", many=True, read_only=True, slug_field="name"
+ )
+ mfa_enabled = serializers.SerializerMethodField()
+
+ class Meta:
+ model = User
+ fields = ["email", "first_name", "last_name", "roles", "is_staff", "mfa_enabled"]
+ read_only_fields = fields
+
+ def get_mfa_enabled(self, user) -> bool:
+ return services.mfa_enabled(user)
+
+
+class LoginResponseSerializer(serializers.Serializer):
+ mfa_required = serializers.BooleanField()
+ user = UserSerializer(allow_null=True)
+
+
+class DetailSerializer(serializers.Serializer):
+ detail = serializers.CharField()
+ code = serializers.CharField(required=False)
+
+
+class RegisterSerializer(serializers.Serializer):
+ first_name = serializers.CharField(max_length=150)
+ last_name = serializers.CharField(max_length=150)
+ email = serializers.EmailField()
+ inami_number = serializers.CharField(max_length=20, required=False, allow_blank=True)
+ password = serializers.CharField(trim_whitespace=False, style={"input_type": "password"})
+ accept_terms = serializers.BooleanField()
+
+ def validate_accept_terms(self, value):
+ if not value:
+ raise serializers.ValidationError(
+ "Vous devez accepter les conditions d'utilisation et la politique de "
+ "confidentialité."
+ )
+ return value
+
+ def validate(self, attrs):
+ candidate = User(
+ email=attrs["email"], first_name=attrs["first_name"], last_name=attrs["last_name"]
+ )
+ try:
+ validate_password(attrs["password"], candidate)
+ except Exception as exc:
+ raise serializers.ValidationError({"password": list(exc.messages)}) from exc
+ return attrs
+
+
+class TokenSerializer(serializers.Serializer):
+ token = serializers.CharField()
+
+
+class ResendSerializer(serializers.Serializer):
+ email = serializers.EmailField(required=False)
+ token = serializers.CharField(required=False)
+
+ def validate(self, attrs):
+ if not attrs.get("email") and not attrs.get("token"):
+ raise serializers.ValidationError("Indiquez l'adresse e-mail.")
+ return attrs
+
+
+class AccountStatusSerializer(serializers.Serializer):
+ status = serializers.ChoiceField(choices=User.Status.choices)
+
+
+class CodeSerializer(serializers.Serializer):
+ code = serializers.CharField(max_length=20)
+
+
+class DisableMfaSerializer(serializers.Serializer):
+ password = serializers.CharField(trim_whitespace=False)
+ code = serializers.CharField(max_length=20)
+
+
+class TotpSetupSerializer(serializers.Serializer):
+ secret = serializers.CharField()
+ otpauth_url = serializers.CharField()
+ qr_code = serializers.CharField(help_text="Image SVG en data URI")
+
+
+class RecoveryCodesSerializer(serializers.Serializer):
+ recovery_codes = serializers.ListField(child=serializers.CharField())
+
+
+class PasswordChangeSerializer(serializers.Serializer):
+ current_password = serializers.CharField(trim_whitespace=False)
+ new_password = serializers.CharField(trim_whitespace=False)
+
+ def validate(self, attrs):
+ user = self.context["request"].user
+ if not user.check_password(attrs["current_password"]):
+ raise serializers.ValidationError(
+ {"current_password": ["Mot de passe actuel incorrect."]}
+ )
+ try:
+ validate_password(attrs["new_password"], user)
+ except Exception as exc:
+ raise serializers.ValidationError({"new_password": list(exc.messages)}) from exc
+ return attrs
+
+
+class PasswordResetRequestSerializer(serializers.Serializer):
+ email = serializers.EmailField()
+
+
+class PasswordResetConfirmSerializer(serializers.Serializer):
+ token = serializers.CharField()
+ new_password = serializers.CharField(trim_whitespace=False)
diff --git a/backend/accounts/services.py b/backend/accounts/services.py
new file mode 100644
index 0000000..b1acc53
--- /dev/null
+++ b/backend/accounts/services.py
@@ -0,0 +1,209 @@
+"""Cycle de vie des comptes et double authentification (specs §8, §8 bis)."""
+
+import base64
+import hashlib
+import secrets
+from io import BytesIO
+
+import qrcode
+import qrcode.image.svg
+from django.conf import settings
+from django.db import transaction
+from django.urls import reverse
+from django.utils import timezone
+from django_otp.plugins.otp_totp.models import TOTPDevice
+
+from . import emails
+from .models import MailEvent, RecoveryCode, User
+from .tokens import make_email_token, make_reset_token
+
+RECOVERY_CODE_COUNT = 8
+# Alphabet sans caractères ambigus (0/O, 1/I/L).
+RECOVERY_ALPHABET = "ABCDEFGHJKMNPQRSTUVWXYZ23456789"
+
+
+# Inscription -------------------------------------------------------------------------
+
+
+@transaction.atomic
+def register(*, email: str, password: str, first_name: str, last_name: str, inami_number=""):
+ """Crée une demande de compte. Si l'adresse existe déjà, prévient son titulaire sans
+ rien révéler au demandeur (même réponse dans les deux cas)."""
+ email = email.lower()
+ existing = User.objects.filter(email=email).first()
+ if existing:
+ emails.send(MailEvent.Type.DUPLICATE_SIGNUP, existing)
+ return None
+ user = User.objects.create_user(
+ email,
+ password,
+ first_name=first_name,
+ last_name=last_name,
+ inami_number=inami_number,
+ )
+ send_confirmation(user)
+ return user
+
+
+def send_confirmation(user: User) -> None:
+ link = emails.frontend_url(f"/inscription/statut?jeton={make_email_token(user)}")
+ emails.send(MailEvent.Type.CONFIRM_EMAIL, user, {"link": link})
+
+
+@transaction.atomic
+def confirm_email(user: User) -> None:
+ user.status = User.Status.APPROVAL_PENDING
+ user.email_verified_at = timezone.now()
+ user.save(update_fields=["status", "email_verified_at"])
+ recipients = settings.SSMG_NOTIFY_EMAILS
+ if recipients:
+ admin_url = settings.BACKEND_URL.rstrip("/") + reverse(
+ "admin:accounts_user_change", args=[user.pk]
+ )
+ emails.send(MailEvent.Type.NEW_REQUEST, user, {"admin_url": admin_url}, to=recipients)
+
+
+@transaction.atomic
+def approve(user: User, by: User) -> None:
+ user.status = User.Status.ACTIVE
+ user.approved_at = timezone.now()
+ user.approved_by = by
+ user.refusal_reason = ""
+ user.save(update_fields=["status", "approved_at", "approved_by", "refusal_reason"])
+ emails.send(MailEvent.Type.ACCOUNT_APPROVED, user)
+
+
+@transaction.atomic
+def refuse(user: User, by: User, reason: str = "") -> None:
+ user.status = User.Status.REFUSED
+ user.approved_by = by
+ user.refusal_reason = reason
+ user.save(update_fields=["status", "approved_by", "refusal_reason"])
+ emails.send(MailEvent.Type.ACCOUNT_REFUSED, user)
+
+
+def purge_unconfirmed(days: int = 7) -> int:
+ """Supprime les demandes dont l'adresse n'a pas été confirmée (specs §8 bis)."""
+ limit = timezone.now() - timezone.timedelta(days=days)
+ deleted, _ = User.objects.filter(
+ status=User.Status.EMAIL_PENDING, date_joined__lt=limit
+ ).delete()
+ return deleted
+
+
+def request_password_reset(email: str) -> None:
+ """Envoie le lien de réinitialisation si un compte actif existe (rien sinon)."""
+ user = User.objects.filter(email=email.lower(), status=User.Status.ACTIVE).first()
+ if user is None:
+ return
+ link = emails.frontend_url(f"/reinitialisation/{make_reset_token(user)}")
+ emails.send(MailEvent.Type.PASSWORD_RESET, user, {"link": link})
+
+
+@transaction.atomic
+def change_password(user: User, new_password: str) -> None:
+ user.set_password(new_password)
+ user.save(update_fields=["password"])
+ emails.send(MailEvent.Type.PASSWORD_CHANGED, user)
+
+
+# Double authentification --------------------------------------------------------------
+
+
+def confirmed_device(user: User) -> TOTPDevice | None:
+ return TOTPDevice.objects.filter(user=user, confirmed=True).first()
+
+
+def mfa_enabled(user: User) -> bool:
+ return TOTPDevice.objects.filter(user=user, confirmed=True).exists()
+
+
+def start_totp_setup(user: User) -> dict:
+ """Crée un appareil TOTP non confirmé (remplace une tentative précédente)."""
+ TOTPDevice.objects.filter(user=user, confirmed=False).delete()
+ device = TOTPDevice.objects.create(user=user, name="Application", confirmed=False)
+ secret = base64.b32encode(device.bin_key).decode().rstrip("=")
+ return {
+ "secret": " ".join(secret[i : i + 4] for i in range(0, len(secret), 4)),
+ "otpauth_url": device.config_url,
+ "qr_code": qr_data_uri(device.config_url),
+ }
+
+
+def qr_data_uri(data: str) -> str:
+ image = qrcode.make(data, image_factory=qrcode.image.svg.SvgPathImage, box_size=10)
+ buffer = BytesIO()
+ image.save(buffer)
+ return "data:image/svg+xml;base64," + base64.b64encode(buffer.getvalue()).decode()
+
+
+@transaction.atomic
+def enable_totp(user: User, code: str) -> list[str] | None:
+ """Confirme l'appareil avec un premier code ; renvoie les codes de secours."""
+ device = TOTPDevice.objects.filter(user=user, confirmed=False).first()
+ if device is None or not device.verify_token(normalize_code(code)):
+ return None
+ device.confirmed = True
+ device.save(update_fields=["confirmed"])
+ codes = _new_recovery_codes(user)
+ emails.send(
+ MailEvent.Type.MFA_CHANGED,
+ user,
+ {"change": "La double authentification a été activée sur votre compte PRISM."},
+ )
+ return codes
+
+
+@transaction.atomic
+def disable_totp(user: User) -> None:
+ TOTPDevice.objects.filter(user=user).delete()
+ RecoveryCode.objects.filter(user=user).delete()
+ emails.send(
+ MailEvent.Type.MFA_CHANGED,
+ user,
+ {"change": "La double authentification a été désactivée sur votre compte PRISM."},
+ )
+
+
+@transaction.atomic
+def regenerate_recovery_codes(user: User) -> list[str]:
+ codes = _new_recovery_codes(user)
+ emails.send(
+ MailEvent.Type.MFA_CHANGED,
+ user,
+ {"change": "De nouveaux codes de secours ont été générés ; les anciens ne valent plus."},
+ )
+ return codes
+
+
+def verify_second_factor(user: User, code: str) -> TOTPDevice | None:
+ """Vérifie un code TOTP ou un code de secours (consommé). Renvoie l'appareil TOTP."""
+ device = confirmed_device(user)
+ if device is None:
+ return None
+ code = normalize_code(code)
+ if code.isdigit() and len(code) == 6:
+ return device if device.verify_token(code) else None
+ used = RecoveryCode.objects.filter(
+ user=user, code_hash=_hash(code), used_at__isnull=True
+ ).update(used_at=timezone.now())
+ return device if used else None
+
+
+def normalize_code(code: str) -> str:
+ return code.replace(" ", "").replace("-", "").upper()
+
+
+def _new_recovery_codes(user: User) -> list[str]:
+ RecoveryCode.objects.filter(user=user).delete()
+ codes = []
+ for _ in range(RECOVERY_CODE_COUNT):
+ raw = "".join(secrets.choice(RECOVERY_ALPHABET) for _ in range(8))
+ codes.append(f"{raw[:4]}-{raw[4:]}")
+ RecoveryCode.objects.create(user=user, code_hash=_hash(raw))
+ return codes
+
+
+def _hash(code: str) -> str:
+ # Codes aléatoires de 40 bits : un SHA-256 suffit (pas d'attaque par dictionnaire).
+ return hashlib.sha256(normalize_code(code).encode()).hexdigest()
diff --git a/backend/accounts/templates/accounts/emails/account_approved.txt b/backend/accounts/templates/accounts/emails/account_approved.txt
new file mode 100644
index 0000000..3dbe052
--- /dev/null
+++ b/backend/accounts/templates/accounts/emails/account_approved.txt
@@ -0,0 +1,8 @@
+{% autoescape off %}Bonjour {{ user.first_name }},
+
+Votre compte PRISM a été validé par la cellule Environnement de la SSMG. Vous pouvez vous connecter :
+
+{{ login_url }}
+
+Nous vous recommandons d'activer la double authentification depuis la page « Mon compte ».
+{% endautoescape %}
diff --git a/backend/accounts/templates/accounts/emails/account_refused.txt b/backend/accounts/templates/accounts/emails/account_refused.txt
new file mode 100644
index 0000000..4f4f2b9
--- /dev/null
+++ b/backend/accounts/templates/accounts/emails/account_refused.txt
@@ -0,0 +1,8 @@
+{% autoescape off %}Bonjour {{ user.first_name }},
+
+Votre demande de compte PRISM n'a pas pu être acceptée par la cellule Environnement de la SSMG.{% if user.refusal_reason %}
+
+Motif : {{ user.refusal_reason }}{% endif %}
+
+Pour toute question, contactez la SSMG.
+{% endautoescape %}
diff --git a/backend/accounts/templates/accounts/emails/base.html b/backend/accounts/templates/accounts/emails/base.html
new file mode 100644
index 0000000..0fa9aac
--- /dev/null
+++ b/backend/accounts/templates/accounts/emails/base.html
@@ -0,0 +1,31 @@
+
+
+
+
+ {{ subject }}
+
+
+
+
+
+
+
+ |
+ PRISM
+ Environnement et santé
+ {{ subject }}
+ {{ body|urlize|linebreaksbr }}
+ |
+
+
+
+ Outil complémentaire d'aide à la consultation : il ne remplace pas un diagnostic.
+ © SSMG – Société Scientifique de Médecine Générale
+ |
+
+
+ |
+
+
+
+
diff --git a/backend/accounts/templates/accounts/emails/confirm_email.txt b/backend/accounts/templates/accounts/emails/confirm_email.txt
new file mode 100644
index 0000000..21b64c1
--- /dev/null
+++ b/backend/accounts/templates/accounts/emails/confirm_email.txt
@@ -0,0 +1,10 @@
+{% autoescape off %}Bonjour {{ user.first_name }},
+
+Merci pour votre demande de compte PRISM. Pour confirmer votre adresse e-mail, ouvrez ce lien (valable 24 heures) :
+
+{{ link }}
+
+Votre demande sera ensuite examinée par la cellule Environnement de la SSMG.
+
+Si vous n'êtes pas à l'origine de cette demande, ignorez ce message.
+{% endautoescape %}
diff --git a/backend/accounts/templates/accounts/emails/duplicate_signup.txt b/backend/accounts/templates/accounts/emails/duplicate_signup.txt
new file mode 100644
index 0000000..d16bddd
--- /dev/null
+++ b/backend/accounts/templates/accounts/emails/duplicate_signup.txt
@@ -0,0 +1,9 @@
+{% autoescape off %}Bonjour {{ user.first_name }},
+
+Quelqu'un a tenté de créer un compte PRISM avec votre adresse e-mail, qui est déjà associée à un compte.
+
+Si c'était vous, connectez-vous ici (ou utilisez « Mot de passe oublié ») :
+{{ login_url }}
+
+Sinon, vous pouvez ignorer ce message.
+{% endautoescape %}
diff --git a/backend/accounts/templates/accounts/emails/mfa_changed.txt b/backend/accounts/templates/accounts/emails/mfa_changed.txt
new file mode 100644
index 0000000..84372bf
--- /dev/null
+++ b/backend/accounts/templates/accounts/emails/mfa_changed.txt
@@ -0,0 +1,6 @@
+{% autoescape off %}Bonjour {{ user.first_name }},
+
+{{ change }}
+
+Si vous n'êtes pas à l'origine de cette modification, contactez la SSMG sans attendre.
+{% endautoescape %}
diff --git a/backend/accounts/templates/accounts/emails/new_request.txt b/backend/accounts/templates/accounts/emails/new_request.txt
new file mode 100644
index 0000000..3307d7a
--- /dev/null
+++ b/backend/accounts/templates/accounts/emails/new_request.txt
@@ -0,0 +1,9 @@
+{% autoescape off %}Une nouvelle demande de compte PRISM attend votre validation.
+
+Nom : {{ user.first_name }} {{ user.last_name }}
+E-mail : {{ user.email }}
+N° INAMI : {{ user.inami_number|default:"non renseigné" }}
+
+Valider ou refuser la demande :
+{{ admin_url }}
+{% endautoescape %}
diff --git a/backend/accounts/templates/accounts/emails/password_changed.txt b/backend/accounts/templates/accounts/emails/password_changed.txt
new file mode 100644
index 0000000..3f74d2b
--- /dev/null
+++ b/backend/accounts/templates/accounts/emails/password_changed.txt
@@ -0,0 +1,6 @@
+{% autoescape off %}Bonjour {{ user.first_name }},
+
+Le mot de passe de votre compte PRISM vient d'être modifié.
+
+Si vous n'êtes pas à l'origine de ce changement, contactez la SSMG sans attendre.
+{% endautoescape %}
diff --git a/backend/accounts/templates/accounts/emails/password_reset.txt b/backend/accounts/templates/accounts/emails/password_reset.txt
new file mode 100644
index 0000000..5481475
--- /dev/null
+++ b/backend/accounts/templates/accounts/emails/password_reset.txt
@@ -0,0 +1,8 @@
+{% autoescape off %}Bonjour {{ user.first_name }},
+
+Pour choisir un nouveau mot de passe PRISM, ouvrez ce lien (valable 1 heure, utilisable une seule fois) :
+
+{{ link }}
+
+Si vous n'avez rien demandé, ignorez ce message : votre mot de passe reste inchangé.
+{% endautoescape %}
diff --git a/backend/accounts/tokens.py b/backend/accounts/tokens.py
new file mode 100644
index 0000000..a61df2b
--- /dev/null
+++ b/backend/accounts/tokens.py
@@ -0,0 +1,74 @@
+"""Jetons signés envoyés par e-mail (specs §8 bis).
+
+Les jetons ne sont jamais stockés ni journalisés. L'usage unique découle de l'état du compte :
+un jeton de confirmation n'est accepté que si l'adresse est encore « en attente », un jeton
+de réinitialisation que si le mot de passe n'a pas changé depuis son émission.
+"""
+
+from django.conf import settings
+from django.contrib.auth.tokens import default_token_generator
+from django.core import signing
+from django.utils.encoding import force_bytes
+from django.utils.http import urlsafe_base64_decode, urlsafe_base64_encode
+
+from .models import User
+
+EMAIL_SALT = "prism.accounts.verify-email"
+
+
+class InvalidToken(Exception):
+ pass
+
+
+class ExpiredToken(Exception):
+ def __init__(self, user: User | None):
+ super().__init__("Jeton expiré")
+ self.user = user
+
+
+def make_email_token(user: User) -> str:
+ return signing.dumps({"u": user.pk, "e": user.email}, salt=EMAIL_SALT)
+
+
+def read_email_token(token: str) -> User:
+ """Renvoie l'utilisateur du jeton ; lève `ExpiredToken` ou `InvalidToken`."""
+ try:
+ data = signing.loads(token, salt=EMAIL_SALT, max_age=settings.EMAIL_TOKEN_MAX_AGE)
+ except signing.SignatureExpired as exc:
+ # La signature est valide : on retrouve le compte pour pouvoir renvoyer l'e-mail.
+ data = signing.loads(token, salt=EMAIL_SALT)
+ raise ExpiredToken(_user(data)) from exc
+ except signing.BadSignature as exc:
+ raise InvalidToken from exc
+ user = _user(data)
+ if user is None:
+ raise InvalidToken
+ return user
+
+
+def _user(data: dict) -> User | None:
+ return User.objects.filter(pk=data.get("u"), email=data.get("e")).first()
+
+
+# Réinitialisation du mot de passe ------------------------------------------------------
+#
+# Jeton de Django (`PasswordResetTokenGenerator`) : il expire après PASSWORD_RESET_TIMEOUT et
+# devient invalide dès que le mot de passe change, ce qui le rend à usage unique.
+
+
+def make_reset_token(user: User) -> str:
+ uid = urlsafe_base64_encode(force_bytes(user.pk))
+ return f"{uid}.{default_token_generator.make_token(user)}"
+
+
+def read_reset_token(token: str) -> User:
+ """Renvoie l'utilisateur actif du jeton ; lève `InvalidToken` (expiré, utilisé ou faux)."""
+ uid, _, value = token.partition(".")
+ try:
+ pk = urlsafe_base64_decode(uid).decode()
+ user = User.objects.get(pk=pk, status=User.Status.ACTIVE)
+ except (ValueError, TypeError, OverflowError, User.DoesNotExist) as exc:
+ raise InvalidToken from exc
+ if not default_token_generator.check_token(user, value):
+ raise InvalidToken
+ return user
diff --git a/backend/accounts/urls.py b/backend/accounts/urls.py
new file mode 100644
index 0000000..ef2baf1
--- /dev/null
+++ b/backend/accounts/urls.py
@@ -0,0 +1,29 @@
+from django.urls import path
+
+from . import views
+
+urlpatterns = [
+ path("login/", views.LoginView.as_view(), name="login"),
+ path("2fa/verify/", views.MfaVerifyView.as_view(), name="mfa-verify"),
+ path("logout/", views.LogoutView.as_view(), name="logout"),
+ path("me/", views.MeView.as_view(), name="me"),
+ path("register/", views.RegisterView.as_view(), name="register"),
+ path("verify-email/", views.VerifyEmailView.as_view(), name="verify-email"),
+ path("verify-email/resend/", views.ResendVerificationView.as_view(), name="verify-resend"),
+ path("password/change/", views.PasswordChangeView.as_view(), name="password-change"),
+ path("password-reset/", views.PasswordResetView.as_view(), name="password-reset"),
+ path(
+ "password-reset/validate/",
+ views.PasswordResetValidateView.as_view(),
+ name="password-reset-validate",
+ ),
+ path(
+ "password-reset/confirm/",
+ views.PasswordResetConfirmView.as_view(),
+ name="password-reset-confirm",
+ ),
+ path("2fa/setup/", views.TotpSetupView.as_view(), name="mfa-setup"),
+ path("2fa/enable/", views.TotpEnableView.as_view(), name="mfa-enable"),
+ path("2fa/disable/", views.TotpDisableView.as_view(), name="mfa-disable"),
+ path("2fa/recovery-codes/", views.RecoveryCodesView.as_view(), name="mfa-recovery-codes"),
+]
diff --git a/backend/accounts/views.py b/backend/accounts/views.py
new file mode 100644
index 0000000..5914e47
--- /dev/null
+++ b/backend/accounts/views.py
@@ -0,0 +1,382 @@
+"""Routes d'authentification (specs §5, §8, §8 bis)."""
+
+import time
+
+from django.conf import settings
+from django.contrib.auth import authenticate, login, logout, update_session_auth_hash
+from django.contrib.auth.password_validation import validate_password
+from django.core.exceptions import ValidationError
+from django.utils.decorators import method_decorator
+from django.views.decorators.csrf import csrf_protect, ensure_csrf_cookie
+from django_otp import login as otp_login
+from drf_spectacular.utils import OpenApiResponse, extend_schema
+from rest_framework import status
+from rest_framework.permissions import AllowAny
+from rest_framework.response import Response
+from rest_framework.throttling import ScopedRateThrottle
+from rest_framework.views import APIView
+
+from . import services
+from .models import User
+from .serializers import (
+ AccountStatusSerializer,
+ CodeSerializer,
+ DetailSerializer,
+ DisableMfaSerializer,
+ LoginResponseSerializer,
+ LoginSerializer,
+ PasswordChangeSerializer,
+ PasswordResetConfirmSerializer,
+ PasswordResetRequestSerializer,
+ RecoveryCodesSerializer,
+ RegisterSerializer,
+ ResendSerializer,
+ TokenSerializer,
+ TotpSetupSerializer,
+ UserSerializer,
+)
+from .tokens import ExpiredToken, InvalidToken, read_email_token, read_reset_token
+
+# Messages identiques quel que soit le motif : pas d'indication sur l'existence d'un compte.
+INVALID_CREDENTIALS = "E-mail ou mot de passe incorrect."
+INVALID_CODE = "Code incorrect ou expiré."
+
+# Clés de session de la connexion en deux étapes.
+MFA_USER = "prism_mfa_user"
+MFA_STARTED = "prism_mfa_started"
+
+
+def error(detail: str, code: str | None = None, http_status=status.HTTP_400_BAD_REQUEST):
+ body = {"detail": detail}
+ if code:
+ body["code"] = code
+ return Response(body, status=http_status)
+
+
+class PublicView(APIView):
+ """Route publique, protégée par CSRF et limitée en débit."""
+
+ permission_classes = [AllowAny]
+ authentication_classes = []
+ throttle_classes = [ScopedRateThrottle]
+
+ @method_decorator(csrf_protect)
+ def dispatch(self, *args, **kwargs):
+ return super().dispatch(*args, **kwargs)
+
+
+# Connexion ----------------------------------------------------------------------------
+
+
+class LoginView(PublicView):
+ throttle_scope = "login"
+
+ @extend_schema(
+ request=LoginSerializer,
+ responses={
+ 200: LoginResponseSerializer,
+ 400: OpenApiResponse(DetailSerializer, description="Identifiants invalides"),
+ },
+ summary="Connexion (étape 1)",
+ description="Si la 2FA est active, renvoie `mfa_required: true` sans ouvrir de session.",
+ )
+ def post(self, request):
+ serializer = LoginSerializer(data=request.data)
+ serializer.is_valid(raise_exception=True)
+ user = authenticate(
+ request,
+ email=serializer.validated_data["email"].lower(),
+ password=serializer.validated_data["password"],
+ )
+ if user is None:
+ return error(INVALID_CREDENTIALS)
+ if services.mfa_enabled(user):
+ request.session.cycle_key()
+ request.session[MFA_USER] = user.pk
+ request.session[MFA_STARTED] = int(time.time())
+ return Response({"mfa_required": True, "user": None})
+ login(request, user)
+ return Response({"mfa_required": False, "user": UserSerializer(user).data})
+
+
+class MfaVerifyView(PublicView):
+ throttle_scope = "mfa"
+
+ @extend_schema(
+ request=CodeSerializer,
+ responses={
+ 200: LoginResponseSerializer,
+ 400: OpenApiResponse(DetailSerializer, description="Code invalide ou étape expirée"),
+ },
+ summary="Connexion (étape 2) : code TOTP ou code de secours",
+ )
+ def post(self, request):
+ serializer = CodeSerializer(data=request.data)
+ serializer.is_valid(raise_exception=True)
+ user_id = request.session.get(MFA_USER)
+ started = request.session.get(MFA_STARTED, 0)
+ if not user_id or time.time() - started > settings.MFA_STEP_MAX_AGE:
+ return error("Recommencez la connexion.", "mfa_expired")
+ user = User.objects.filter(pk=user_id, status=User.Status.ACTIVE).first()
+ device = user and services.verify_second_factor(user, serializer.validated_data["code"])
+ if not device:
+ return error(INVALID_CODE, "invalid_code")
+ for key in (MFA_USER, MFA_STARTED):
+ request.session.pop(key, None)
+ login(request, user, backend="django.contrib.auth.backends.ModelBackend")
+ otp_login(request, device)
+ return Response({"mfa_required": False, "user": UserSerializer(user).data})
+
+
+class LogoutView(APIView):
+ @extend_schema(request=None, responses={204: None}, summary="Déconnexion")
+ def post(self, request):
+ logout(request)
+ return Response(status=status.HTTP_204_NO_CONTENT)
+
+
+@method_decorator(ensure_csrf_cookie, name="dispatch")
+class MeView(APIView):
+ """Utilisateur courant. Dépose aussi le cookie CSRF dont le front a besoin."""
+
+ @extend_schema(responses=UserSerializer, summary="Utilisateur courant")
+ def get(self, request):
+ return Response(UserSerializer(request.user).data)
+
+
+# Inscription --------------------------------------------------------------------------
+
+
+class RegisterView(PublicView):
+ throttle_scope = "register"
+
+ @extend_schema(
+ request=RegisterSerializer,
+ responses={201: None},
+ summary="Demande de compte",
+ description="Réponse identique si l'adresse est déjà utilisée (son titulaire est "
+ "prévenu par e-mail).",
+ )
+ def post(self, request):
+ serializer = RegisterSerializer(data=request.data)
+ serializer.is_valid(raise_exception=True)
+ data = serializer.validated_data
+ services.register(
+ email=data["email"],
+ password=data["password"],
+ first_name=data["first_name"],
+ last_name=data["last_name"],
+ inami_number=data.get("inami_number", ""),
+ )
+ return Response(status=status.HTTP_201_CREATED)
+
+
+class VerifyEmailView(PublicView):
+ throttle_scope = "register"
+
+ @extend_schema(
+ request=TokenSerializer,
+ responses={
+ 200: AccountStatusSerializer,
+ 400: OpenApiResponse(
+ DetailSerializer, description="`invalid_token`, `expired_token` ou `used_token`"
+ ),
+ },
+ summary="Confirmer l'adresse e-mail",
+ )
+ def post(self, request):
+ serializer = TokenSerializer(data=request.data)
+ serializer.is_valid(raise_exception=True)
+ try:
+ user = read_email_token(serializer.validated_data["token"])
+ except ExpiredToken:
+ return error("Ce lien a expiré.", "expired_token")
+ except InvalidToken:
+ return error("Ce lien n'est pas valide.", "invalid_token")
+ if user.status != User.Status.EMAIL_PENDING:
+ return error("Ce lien a déjà été utilisé.", "used_token")
+ services.confirm_email(user)
+ return Response({"status": user.status})
+
+
+class ResendVerificationView(PublicView):
+ throttle_scope = "register"
+
+ @extend_schema(
+ request=ResendSerializer,
+ responses={202: None},
+ summary="Renvoyer l'e-mail de confirmation",
+ description="Par adresse e-mail ou par un lien expiré. Réponse toujours identique.",
+ )
+ def post(self, request):
+ serializer = ResendSerializer(data=request.data)
+ serializer.is_valid(raise_exception=True)
+ user = None
+ if token := serializer.validated_data.get("token"):
+ try:
+ user = read_email_token(token)
+ except ExpiredToken as exc:
+ user = exc.user
+ except InvalidToken:
+ user = None
+ else:
+ user = User.objects.filter(email=serializer.validated_data["email"].lower()).first()
+ if user and user.status == User.Status.EMAIL_PENDING:
+ services.send_confirmation(user)
+ return Response(status=status.HTTP_202_ACCEPTED)
+
+
+# Compte -------------------------------------------------------------------------------
+
+
+class PasswordChangeView(APIView):
+ @extend_schema(
+ request=PasswordChangeSerializer, responses={204: None}, summary="Changer son mot de passe"
+ )
+ def post(self, request):
+ serializer = PasswordChangeSerializer(data=request.data, context={"request": request})
+ serializer.is_valid(raise_exception=True)
+ services.change_password(request.user, serializer.validated_data["new_password"])
+ update_session_auth_hash(request, request.user)
+ return Response(status=status.HTTP_204_NO_CONTENT)
+
+
+class TotpSetupView(APIView):
+ @extend_schema(request=None, responses=TotpSetupSerializer, summary="Démarrer l'activation 2FA")
+ def post(self, request):
+ if services.mfa_enabled(request.user):
+ return error("La double authentification est déjà active.", "mfa_enabled")
+ return Response(services.start_totp_setup(request.user))
+
+
+class TotpEnableView(APIView):
+ throttle_classes = [ScopedRateThrottle]
+ throttle_scope = "mfa"
+
+ @extend_schema(
+ request=CodeSerializer,
+ responses={200: RecoveryCodesSerializer, 400: DetailSerializer},
+ summary="Confirmer l'activation 2FA ; renvoie les codes de secours (une seule fois)",
+ )
+ def post(self, request):
+ serializer = CodeSerializer(data=request.data)
+ serializer.is_valid(raise_exception=True)
+ codes = services.enable_totp(request.user, serializer.validated_data["code"])
+ if codes is None:
+ return error(INVALID_CODE, "invalid_code")
+ otp_login(request, services.confirmed_device(request.user))
+ return Response({"recovery_codes": codes})
+
+
+class TotpDisableView(APIView):
+ throttle_classes = [ScopedRateThrottle]
+ throttle_scope = "mfa"
+
+ @extend_schema(
+ request=DisableMfaSerializer,
+ responses={204: None, 400: DetailSerializer},
+ summary="Désactiver la 2FA (mot de passe et code requis)",
+ )
+ def post(self, request):
+ serializer = DisableMfaSerializer(data=request.data)
+ serializer.is_valid(raise_exception=True)
+ user = request.user
+ if user.is_staff:
+ return error(
+ "La double authentification est obligatoire pour ce compte.", "mfa_mandatory"
+ )
+ if not user.check_password(serializer.validated_data["password"]):
+ return error(INVALID_CREDENTIALS, "invalid_password")
+ if not services.verify_second_factor(user, serializer.validated_data["code"]):
+ return error(INVALID_CODE, "invalid_code")
+ services.disable_totp(user)
+ return Response(status=status.HTTP_204_NO_CONTENT)
+
+
+class RecoveryCodesView(APIView):
+ throttle_classes = [ScopedRateThrottle]
+ throttle_scope = "mfa"
+
+ @extend_schema(
+ request=CodeSerializer,
+ responses={200: RecoveryCodesSerializer, 400: DetailSerializer},
+ summary="Régénérer les codes de secours (code TOTP requis)",
+ )
+ def post(self, request):
+ serializer = CodeSerializer(data=request.data)
+ serializer.is_valid(raise_exception=True)
+ code = services.normalize_code(serializer.validated_data["code"])
+ device = services.confirmed_device(request.user)
+ if device is None or not (code.isdigit() and device.verify_token(code)):
+ return error(INVALID_CODE, "invalid_code")
+ return Response({"recovery_codes": services.regenerate_recovery_codes(request.user)})
+
+
+# Mot de passe oublié -------------------------------------------------------------------
+
+INVALID_RESET_LINK = "Ce lien de réinitialisation n'est plus valable."
+
+
+class PasswordResetView(PublicView):
+ throttle_scope = "password_reset"
+
+ @extend_schema(
+ request=PasswordResetRequestSerializer,
+ responses={202: None},
+ summary="Demander un lien de réinitialisation",
+ description="Réponse identique que l'adresse corresponde ou non à un compte actif.",
+ )
+ def post(self, request):
+ serializer = PasswordResetRequestSerializer(data=request.data)
+ serializer.is_valid(raise_exception=True)
+ services.request_password_reset(serializer.validated_data["email"])
+ return Response(status=status.HTTP_202_ACCEPTED)
+
+
+class PasswordResetValidateView(PublicView):
+ throttle_scope = "password_reset"
+
+ @extend_schema(
+ request=TokenSerializer,
+ responses={
+ 204: None,
+ 400: OpenApiResponse(DetailSerializer, description="`invalid_token`"),
+ },
+ summary="Vérifier un lien de réinitialisation avant d'afficher le formulaire",
+ )
+ def post(self, request):
+ serializer = TokenSerializer(data=request.data)
+ serializer.is_valid(raise_exception=True)
+ try:
+ read_reset_token(serializer.validated_data["token"])
+ except InvalidToken:
+ return error(INVALID_RESET_LINK, "invalid_token")
+ return Response(status=status.HTTP_204_NO_CONTENT)
+
+
+class PasswordResetConfirmView(PublicView):
+ throttle_scope = "password_reset"
+
+ @extend_schema(
+ request=PasswordResetConfirmSerializer,
+ responses={204: None, 400: DetailSerializer},
+ summary="Définir un nouveau mot de passe avec le lien reçu",
+ description="Le lien ne sert qu'une fois ; les autres sessions sont fermées.",
+ )
+ def post(self, request):
+ serializer = PasswordResetConfirmSerializer(data=request.data)
+ serializer.is_valid(raise_exception=True)
+ try:
+ user = read_reset_token(serializer.validated_data["token"])
+ except InvalidToken:
+ return error(INVALID_RESET_LINK, "invalid_token")
+ password = serializer.validated_data["new_password"]
+ try:
+ validate_password(password, user)
+ except ValidationError as exc:
+ return Response(
+ {"new_password": list(exc.messages)}, status=status.HTTP_400_BAD_REQUEST
+ )
+ # Changer le mot de passe invalide les sessions existantes (empreinte de session).
+ services.change_password(user, password)
+ return Response(status=status.HTTP_204_NO_CONTENT)
diff --git a/backend/assessments/providers/air.py b/backend/assessments/providers/air.py
index 74b73fd..75e3f77 100644
--- a/backend/assessments/providers/air.py
+++ b/backend/assessments/providers/air.py
@@ -14,8 +14,8 @@ POLLUTANTS = [
# (couche irCELine, libellé, valeur guide OMS)
("pm25_anmean_be", "PM2,5", 5.0),
("pm10_anmean_be", "PM10", 15.0),
- ("no2_anmean_be", "NO2", 10.0),
- ("o3_anmean_be", "O3", None),
+ ("no2_anmean_be", "NO₂", 10.0),
+ ("o3_anmean_be", "O₃", None),
]
# Demi-côté (en degrés) de l'emprise de la requête GetFeatureInfo autour du point.
@@ -45,13 +45,18 @@ class AirProvider:
details.append({"label": label, "value": "donnée absente"})
continue
text = f"{value:.1f} µg/m³".replace(".", ",")
+ detail = {"label": label, "value": text}
if guideline is not None:
exceeded = value > guideline
exceedances += exceeded
- text += f" (valeur guide OMS {guideline:g} : {'dépassée' if exceeded else 'ok'})"
- details.append({"label": label, "value": text})
+ detail["value"] += f" (seuil {guideline:g})"
+ detail["status"] = "exceeded" if exceeded else "ok"
+ details.append(detail)
- summary = f"{exceedances} dépassement{'s' if exceedances > 1 else ''} des valeurs OMS"
+ plural = "s" if exceedances > 1 else ""
+ summary = (
+ f"{exceedances} dépassement{plural} des valeurs guides OMS 2021 (moyennes annuelles)"
+ )
return RawResult(self.code, "ok", str(exceedances), summary, details)
diff --git a/backend/assessments/providers/base.py b/backend/assessments/providers/base.py
index 5a24520..9d26e55 100644
--- a/backend/assessments/providers/base.py
+++ b/backend/assessments/providers/base.py
@@ -21,6 +21,7 @@ class RawResult:
# Valeur comparée à `ThresholdClass.source_value` (ex. « 65-69 », « Aléa élevé »).
source_value: str | None = None
summary: str = ""
+ # Lignes { label, value } ; `status` facultatif (« ok » ou « exceeded ») pour la pastille.
details: list[dict[str, str]] = field(default_factory=list)
diff --git a/backend/assessments/serializers.py b/backend/assessments/serializers.py
index 9988c09..661f7cd 100644
--- a/backend/assessments/serializers.py
+++ b/backend/assessments/serializers.py
@@ -17,6 +17,7 @@ class LocationSerializer(serializers.Serializer):
class DetailSerializer(serializers.Serializer):
label = serializers.CharField()
value = serializers.CharField()
+ status = serializers.ChoiceField(choices=["ok", "exceeded"], required=False)
class ScaleItemSerializer(serializers.Serializer):
diff --git a/backend/config/settings.py b/backend/config/settings.py
index 1810dac..6bc38d1 100644
--- a/backend/config/settings.py
+++ b/backend/config/settings.py
@@ -32,7 +32,6 @@ INSTALLED_APPS = [
"drf_spectacular",
"django_otp",
"django_otp.plugins.otp_totp",
- "django_otp.plugins.otp_static",
"simple_history",
"accounts",
"factors",
@@ -96,9 +95,26 @@ SESSION_SAVE_EVERY_REQUEST = True
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_SAMESITE = "Lax"
CSRF_COOKIE_SAMESITE = "Lax"
+# Le front lit le cookie CSRF pour le renvoyer dans l'en-tête X-CSRFToken.
+CSRF_COOKIE_HTTPONLY = False
SESSION_COOKIE_SECURE = not DEBUG
CSRF_COOKIE_SECURE = not DEBUG
+# Comptes et double authentification (specs §8, §8 bis)
+
+FRONTEND_URL = env("FRONTEND_URL", default="http://localhost:5173")
+BACKEND_URL = env("BACKEND_URL", default="http://localhost:8000")
+# Destinataires des notifications de nouvelle demande de compte (cellule SSMG).
+SSMG_NOTIFY_EMAILS = env.list("SSMG_NOTIFY_EMAILS", default=[])
+EMAIL_TOKEN_MAX_AGE = env.int("EMAIL_TOKEN_MAX_AGE", default=24 * 3600)
+# Lien « mot de passe oublié » : 1 heure (specs §8 bis, e-mail 4).
+PASSWORD_RESET_TIMEOUT = env.int("PASSWORD_RESET_TIMEOUT", default=3600)
+# Délai pour saisir le code TOTP après le mot de passe.
+MFA_STEP_MAX_AGE = env.int("MFA_STEP_MAX_AGE", default=5 * 60)
+OTP_TOTP_ISSUER = "PRISM"
+# L'admin Django (cellule SSMG, admin) exige la 2FA ; désactivable en développement.
+ADMIN_REQUIRE_OTP = env.bool("ADMIN_REQUIRE_OTP", default=not DEBUG)
+
# Internationalisation -------------------------------------------------------
LANGUAGE_CODE = "fr-be"
@@ -127,6 +143,10 @@ REST_FRAMEWORK = {
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
"DEFAULT_THROTTLE_RATES": {
"assessments": env("THROTTLE_ASSESSMENTS", default="60/hour"),
+ "login": env("THROTTLE_LOGIN", default="10/minute"),
+ "mfa": env("THROTTLE_MFA", default="10/minute"),
+ "register": env("THROTTLE_REGISTER", default="10/hour"),
+ "password_reset": env("THROTTLE_PASSWORD_RESET", default="10/hour"),
},
}
diff --git a/backend/config/urls.py b/backend/config/urls.py
index 9d860ee..e420c66 100644
--- a/backend/config/urls.py
+++ b/backend/config/urls.py
@@ -1,9 +1,16 @@
+from django.conf import settings
from django.contrib import admin
from django.urls import include, path
+from django_otp.admin import OTPAdminSite
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView
+if settings.ADMIN_REQUIRE_OTP:
+ # Seuls les comptes connectés avec un second facteur accèdent à l'admin (specs §8).
+ admin.site.__class__ = OTPAdminSite
+
urlpatterns = [
path("admin/", admin.site.urls),
+ path("api/v1/auth/", include("accounts.urls")),
path("api/v1/", include("assessments.urls")),
path("api/schema/", SpectacularAPIView.as_view(), name="schema"),
path("api/docs/", SpectacularSwaggerView.as_view(url_name="schema"), name="api-docs"),
diff --git a/backend/tests/test_api_auth.py b/backend/tests/test_api_auth.py
new file mode 100644
index 0000000..c1c3390
--- /dev/null
+++ b/backend/tests/test_api_auth.py
@@ -0,0 +1,141 @@
+"""POST /api/v1/auth/login/, POST /api/v1/auth/logout/, GET /api/v1/auth/me/"""
+
+import pytest
+from django.contrib.auth.models import Group
+from rest_framework.test import APIClient
+from rest_framework.throttling import ScopedRateThrottle
+
+from accounts.models import User
+
+LOGIN, LOGOUT, ME = "/api/v1/auth/login/", "/api/v1/auth/logout/", "/api/v1/auth/me/"
+PASSWORD = "un-mot-de-passe-solide"
+
+pytestmark = pytest.mark.django_db
+
+
+def login(client, email="medecin@exemple.be", password=PASSWORD):
+ return client.post(LOGIN, {"email": email, "password": password}, format="json")
+
+
+# Connexion ------------------------------------------------------------------------
+
+
+def test_login_opens_a_session(user):
+ client = APIClient()
+ response = login(client)
+ assert response.status_code == 200
+ assert response.json() == {
+ "mfa_required": False,
+ "user": {
+ "email": "medecin@exemple.be",
+ "first_name": "Jean",
+ "last_name": "Dupont",
+ "roles": [],
+ "is_staff": False,
+ "mfa_enabled": False,
+ },
+ }
+ assert client.get(ME).status_code == 200
+
+
+def test_login_is_case_insensitive_on_email(user):
+ assert login(APIClient(), email="Medecin@Exemple.BE").status_code == 200
+
+
+@pytest.mark.parametrize(
+ ("email", "password"),
+ [("medecin@exemple.be", "mauvais-mot-de-passe"), ("inconnu@exemple.be", PASSWORD)],
+ ids=["mauvais-mot-de-passe", "compte-inconnu"],
+)
+def test_invalid_credentials_give_generic_message(user, email, password):
+ response = login(APIClient(), email, password)
+ assert response.status_code == 400
+ assert response.json() == {"detail": "E-mail ou mot de passe incorrect."}
+
+
+@pytest.mark.parametrize(
+ "status",
+ [
+ User.Status.EMAIL_PENDING,
+ User.Status.APPROVAL_PENDING,
+ User.Status.REFUSED,
+ User.Status.DISABLED,
+ ],
+)
+def test_inactive_account_cannot_log_in(user, status):
+ user.status = status
+ user.save()
+ response = login(APIClient())
+ assert response.status_code == 400
+ assert response.json() == {"detail": "E-mail ou mot de passe incorrect."}
+
+
+@pytest.mark.parametrize(
+ "payload",
+ [{}, {"email": "medecin@exemple.be"}, {"email": "pas-un-email", "password": PASSWORD}],
+ ids=["vide", "sans-mot-de-passe", "email-invalide"],
+)
+def test_invalid_payload(user, payload):
+ assert APIClient().post(LOGIN, payload, format="json").status_code == 400
+
+
+def test_login_requires_csrf_token(user):
+ client = APIClient(enforce_csrf_checks=True)
+ assert login(client).status_code == 403
+
+ client.get(ME) # dépose le cookie CSRF, même sans session
+ token = client.cookies["csrftoken"].value
+ response = client.post(
+ LOGIN,
+ {"email": "medecin@exemple.be", "password": PASSWORD},
+ format="json",
+ HTTP_X_CSRFTOKEN=token,
+ )
+ assert response.status_code == 200
+
+
+def test_login_throttling(user, monkeypatch):
+ monkeypatch.setattr(ScopedRateThrottle, "THROTTLE_RATES", {"login": "2/minute"})
+ client = APIClient()
+ assert login(client, password="faux").status_code == 400
+ assert login(client, password="faux").status_code == 400
+ assert login(client).status_code == 429
+
+
+def test_get_login_is_not_allowed():
+ assert APIClient().get(LOGIN).status_code == 405
+
+
+# Utilisateur courant ---------------------------------------------------------------
+
+
+def test_me_anonymous():
+ response = APIClient().get(ME)
+ assert response.status_code == 403
+ assert "csrftoken" in response.cookies
+
+
+def test_me_returns_roles(api, user):
+ user.groups.add(Group.objects.get(name="Médecin"))
+ response = api.get(ME)
+ assert response.status_code == 200
+ assert response.json()["roles"] == ["Médecin"]
+
+
+def test_me_does_not_expose_sensitive_fields(api):
+ body = api.get(ME).json()
+ assert not {"password", "inami_number", "status", "id"} & set(body)
+
+
+# Déconnexion ----------------------------------------------------------------------
+
+
+def test_logout_closes_the_session(user):
+ client = APIClient()
+ login(client)
+ assert client.post(LOGOUT).status_code == 204
+ assert client.get(ME).status_code == 403
+
+
+def test_logout_anonymous():
+ assert APIClient().post(LOGOUT).status_code == 403
diff --git a/backend/tests/test_api_mfa.py b/backend/tests/test_api_mfa.py
new file mode 100644
index 0000000..234805a
--- /dev/null
+++ b/backend/tests/test_api_mfa.py
@@ -0,0 +1,285 @@
+"""Double authentification : 2fa/setup, enable, verify, disable, recovery-codes ; mot de passe."""
+
+import pytest
+from django.core import mail
+from django_otp.oath import TOTP
+from django_otp.plugins.otp_totp.models import TOTPDevice
+from rest_framework.test import APIClient
+
+from accounts.models import RecoveryCode, User
+
+PASSWORD = "un-mot-de-passe-solide"
+AUTH = "/api/v1/auth"
+
+pytestmark = pytest.mark.django_db
+
+
+def current_code(device: TOTPDevice, offset: int = 0) -> str:
+ totp = TOTP(device.bin_key, device.step, device.t0, device.digits, device.drift)
+ totp.time = totp.time + offset * device.step
+ return f"{totp.token():06d}"
+
+
+def login(client, email="medecin@exemple.be", password=PASSWORD):
+ return client.post(f"{AUTH}/login/", {"email": email, "password": password}, format="json")
+
+
+@pytest.fixture
+def logged_in(user):
+ client = APIClient()
+ login(client)
+ return client
+
+
+@pytest.fixture
+def with_mfa(user, logged_in, django_capture_on_commit_callbacks):
+ """Active la 2FA pour `user` ; renvoie (appareil, codes de secours)."""
+ logged_in.post(f"{AUTH}/2fa/setup/")
+ device = TOTPDevice.objects.get(user=user)
+ with django_capture_on_commit_callbacks(execute=True):
+ response = logged_in.post(
+ f"{AUTH}/2fa/enable/", {"code": current_code(device)}, format="json"
+ )
+ device.refresh_from_db()
+ return device, response.json()["recovery_codes"]
+
+
+# Activation ------------------------------------------------------------------------
+
+
+def test_setup_returns_secret_and_qr_code(user, logged_in):
+ response = logged_in.post(f"{AUTH}/2fa/setup/")
+ assert response.status_code == 200
+ body = response.json()
+ assert body["otpauth_url"].startswith("otpauth://totp/")
+ assert "issuer=PRISM" in body["otpauth_url"]
+ assert body["qr_code"].startswith("data:image/svg+xml;base64,")
+ assert len(body["secret"].replace(" ", "")) == 32
+ assert not TOTPDevice.objects.get(user=user).confirmed
+
+
+def test_setup_replaces_previous_attempt(user, logged_in):
+ logged_in.post(f"{AUTH}/2fa/setup/")
+ logged_in.post(f"{AUTH}/2fa/setup/")
+ assert TOTPDevice.objects.filter(user=user).count() == 1
+
+
+def test_setup_requires_authentication():
+ assert APIClient().post(f"{AUTH}/2fa/setup/").status_code == 403
+
+
+def test_enable_with_valid_code(user, with_mfa):
+ device, codes = with_mfa
+ assert device.confirmed
+ assert len(codes) == 8
+ assert all(len(code) == 9 and code[4] == "-" for code in codes)
+ assert RecoveryCode.objects.filter(user=user).count() == 8
+ # Les codes ne sont stockés qu'en empreinte.
+ stored = set(RecoveryCode.objects.values_list("code_hash", flat=True))
+ assert not {c.replace("-", "") for c in codes} & stored
+ assert mail.outbox[-1].subject == "[PRISM] Double authentification modifiée"
+ assert "activée" in mail.outbox[-1].body
+
+
+def test_enable_with_wrong_code(user, logged_in):
+ logged_in.post(f"{AUTH}/2fa/setup/")
+ response = logged_in.post(f"{AUTH}/2fa/enable/", {"code": "000000"}, format="json")
+ assert response.status_code == 400
+ assert response.json()["code"] == "invalid_code"
+ assert not TOTPDevice.objects.get(user=user).confirmed
+
+
+def test_enable_without_setup(logged_in):
+ response = logged_in.post(f"{AUTH}/2fa/enable/", {"code": "123456"}, format="json")
+ assert response.status_code == 400
+
+
+def test_setup_refused_when_already_enabled(logged_in, with_mfa):
+ response = logged_in.post(f"{AUTH}/2fa/setup/")
+ assert response.status_code == 400
+ assert response.json()["code"] == "mfa_enabled"
+
+
+def test_me_reports_mfa(logged_in, with_mfa):
+ assert logged_in.get(f"{AUTH}/me/").json()["mfa_enabled"] is True
+
+
+# Connexion en deux étapes ------------------------------------------------------------
+
+
+def test_login_requires_second_step(with_mfa):
+ client = APIClient()
+ response = login(client)
+ assert response.status_code == 200
+ assert response.json() == {"mfa_required": True, "user": None}
+ # Pas de session ouverte avant le second facteur.
+ assert client.get(f"{AUTH}/me/").status_code == 403
+
+
+def test_login_with_totp_code(with_mfa):
+ device, _ = with_mfa
+ client = APIClient()
+ login(client)
+ response = client.post(
+ f"{AUTH}/2fa/verify/", {"code": current_code(device, offset=1)}, format="json"
+ )
+ assert response.status_code == 200
+ assert response.json()["user"]["email"] == "medecin@exemple.be"
+ assert client.get(f"{AUTH}/me/").status_code == 200
+
+
+def test_login_with_recovery_code_works_once(with_mfa):
+ _, codes = with_mfa
+ client = APIClient()
+ login(client)
+ lowercase_without_dash = codes[0].replace("-", "").lower()
+ assert (
+ client.post(
+ f"{AUTH}/2fa/verify/", {"code": lowercase_without_dash}, format="json"
+ ).status_code
+ == 200
+ )
+
+ other = APIClient()
+ login(other)
+ response = other.post(f"{AUTH}/2fa/verify/", {"code": codes[0]}, format="json")
+ assert response.status_code == 400
+ assert response.json()["code"] == "invalid_code"
+
+
+def test_wrong_code_keeps_session_closed(with_mfa):
+ client = APIClient()
+ login(client)
+ response = client.post(f"{AUTH}/2fa/verify/", {"code": "000000"}, format="json")
+ assert response.status_code == 400
+ assert response.json() == {"detail": "Code incorrect ou expiré.", "code": "invalid_code"}
+ assert client.get(f"{AUTH}/me/").status_code == 403
+
+
+def test_verify_without_first_step(with_mfa):
+ device, _ = with_mfa
+ response = APIClient().post(
+ f"{AUTH}/2fa/verify/", {"code": current_code(device)}, format="json"
+ )
+ assert response.status_code == 400
+ assert response.json()["code"] == "mfa_expired"
+
+
+def test_second_step_expires(with_mfa, settings):
+ device, _ = with_mfa
+ settings.MFA_STEP_MAX_AGE = -1
+ client = APIClient()
+ login(client)
+ response = client.post(f"{AUTH}/2fa/verify/", {"code": current_code(device)}, format="json")
+ assert response.json()["code"] == "mfa_expired"
+
+
+def test_totp_code_cannot_be_replayed(with_mfa):
+ device, _ = with_mfa
+ code = current_code(device, offset=1)
+ first = APIClient()
+ login(first)
+ assert first.post(f"{AUTH}/2fa/verify/", {"code": code}, format="json").status_code == 200
+ second = APIClient()
+ login(second)
+ assert second.post(f"{AUTH}/2fa/verify/", {"code": code}, format="json").status_code == 400
+
+
+def test_second_step_throttling(with_mfa, monkeypatch):
+ from rest_framework.throttling import ScopedRateThrottle
+
+ monkeypatch.setattr(ScopedRateThrottle, "THROTTLE_RATES", {"mfa": "2/minute", "login": None})
+ client = APIClient()
+ login(client)
+ for _ in range(2):
+ client.post(f"{AUTH}/2fa/verify/", {"code": "000000"}, format="json")
+ assert client.post(f"{AUTH}/2fa/verify/", {"code": "000000"}, format="json").status_code == 429
+
+
+# Désactivation et régénération -----------------------------------------------------------
+
+
+def test_disable_requires_password_and_code(
+ user, logged_in, with_mfa, django_capture_on_commit_callbacks
+):
+ device, codes = with_mfa
+ bad_password = logged_in.post(
+ f"{AUTH}/2fa/disable/", {"password": "faux", "code": codes[0]}, format="json"
+ )
+ assert bad_password.json()["code"] == "invalid_password"
+ bad_code = logged_in.post(
+ f"{AUTH}/2fa/disable/", {"password": PASSWORD, "code": "000000"}, format="json"
+ )
+ assert bad_code.json()["code"] == "invalid_code"
+
+ with django_capture_on_commit_callbacks(execute=True):
+ response = logged_in.post(
+ f"{AUTH}/2fa/disable/", {"password": PASSWORD, "code": codes[1]}, format="json"
+ )
+ assert response.status_code == 204
+ assert not TOTPDevice.objects.filter(user=user).exists()
+ assert not RecoveryCode.objects.filter(user=user).exists()
+ assert "désactivée" in mail.outbox[-1].body
+
+
+def test_staff_cannot_disable_mfa(user, logged_in, with_mfa):
+ _, codes = with_mfa
+ User.objects.filter(pk=user.pk).update(is_staff=True)
+ response = logged_in.post(
+ f"{AUTH}/2fa/disable/", {"password": PASSWORD, "code": codes[0]}, format="json"
+ )
+ assert response.json()["code"] == "mfa_mandatory"
+
+
+def test_regenerate_recovery_codes(user, logged_in, with_mfa):
+ device, old_codes = with_mfa
+ response = logged_in.post(
+ f"{AUTH}/2fa/recovery-codes/", {"code": current_code(device, offset=1)}, format="json"
+ )
+ assert response.status_code == 200
+ new_codes = response.json()["recovery_codes"]
+ assert len(new_codes) == 8
+ assert not set(new_codes) & set(old_codes)
+
+ client = APIClient()
+ login(client)
+ assert (
+ client.post(f"{AUTH}/2fa/verify/", {"code": old_codes[2]}, format="json").status_code == 400
+ )
+
+
+def test_regenerate_refuses_recovery_code(logged_in, with_mfa):
+ _, codes = with_mfa
+ response = logged_in.post(f"{AUTH}/2fa/recovery-codes/", {"code": codes[0]}, format="json")
+ assert response.status_code == 400
+
+
+# Mot de passe ---------------------------------------------------------------------------
+
+
+def test_change_password(user, logged_in, django_capture_on_commit_callbacks):
+ with django_capture_on_commit_callbacks(execute=True):
+ response = logged_in.post(
+ f"{AUTH}/password/change/",
+ {"current_password": PASSWORD, "new_password": "un-autre-mot-de-passe"},
+ format="json",
+ )
+ assert response.status_code == 204
+ # La session reste ouverte.
+ assert logged_in.get(f"{AUTH}/me/").status_code == 200
+ user.refresh_from_db()
+ assert user.check_password("un-autre-mot-de-passe")
+ assert mail.outbox[-1].subject == "[PRISM] Votre mot de passe a été modifié"
+
+
+@pytest.mark.parametrize(
+ ("payload", "field"),
+ [
+ ({"current_password": "faux", "new_password": "un-autre-mot-de-passe"}, "current_password"),
+ ({"current_password": PASSWORD, "new_password": "court"}, "new_password"),
+ ],
+)
+def test_change_password_validation(logged_in, payload, field):
+ response = logged_in.post(f"{AUTH}/password/change/", payload, format="json")
+ assert response.status_code == 400
+ assert field in response.json()
diff --git a/backend/tests/test_api_password_reset.py b/backend/tests/test_api_password_reset.py
new file mode 100644
index 0000000..4f56b4b
--- /dev/null
+++ b/backend/tests/test_api_password_reset.py
@@ -0,0 +1,176 @@
+"""Mot de passe oublié : password-reset/, password-reset/validate/, password-reset/confirm/."""
+
+import pytest
+from django.core import mail
+from rest_framework.test import APIClient
+from rest_framework.throttling import ScopedRateThrottle
+
+from accounts.models import User
+from accounts.tokens import make_reset_token
+
+AUTH = "/api/v1/auth"
+PASSWORD = "un-mot-de-passe-solide"
+NEW_PASSWORD = "un-tout-nouveau-mot-de-passe"
+
+pytestmark = pytest.mark.django_db
+
+
+@pytest.fixture(autouse=True)
+def frontend(settings):
+ settings.FRONTEND_URL = "https://prism.test"
+
+
+def request_reset(email):
+ return APIClient().post(f"{AUTH}/password-reset/", {"email": email}, format="json")
+
+
+def confirm(token, password=NEW_PASSWORD, client=None):
+ return (client or APIClient()).post(
+ f"{AUTH}/password-reset/confirm/",
+ {"token": token, "new_password": password},
+ format="json",
+ )
+
+
+def token_from_mail() -> str:
+ return mail.outbox[-1].body.split("/reinitialisation/")[1].split()[0]
+
+
+# Demande ------------------------------------------------------------------------------
+
+
+def test_request_sends_link_valid_one_hour(user, django_capture_on_commit_callbacks):
+ with django_capture_on_commit_callbacks(execute=True):
+ response = request_reset("Medecin@Exemple.be")
+
+ assert response.status_code == 202
+ message = mail.outbox[0]
+ assert message.to == ["medecin@exemple.be"]
+ assert message.subject == "[PRISM] Réinitialisez votre mot de passe"
+ assert "https://prism.test/reinitialisation/" in message.body
+ assert "1 heure" in message.body
+
+
+@pytest.mark.parametrize(
+ "status",
+ [
+ User.Status.EMAIL_PENDING,
+ User.Status.APPROVAL_PENDING,
+ User.Status.REFUSED,
+ User.Status.DISABLED,
+ ],
+)
+def test_no_email_for_inactive_account(user, status, django_capture_on_commit_callbacks):
+ User.objects.filter(pk=user.pk).update(status=status)
+ with django_capture_on_commit_callbacks(execute=True):
+ response = request_reset("medecin@exemple.be")
+ assert response.status_code == 202
+ assert mail.outbox == []
+
+
+def test_unknown_email_gets_same_response(django_capture_on_commit_callbacks):
+ with django_capture_on_commit_callbacks(execute=True):
+ response = request_reset("inconnu@exemple.be")
+ assert response.status_code == 202
+ assert response.content == b""
+ assert mail.outbox == []
+
+
+def test_invalid_email_payload():
+ assert request_reset("pas-un-email").status_code == 400
+
+
+def test_request_throttling(user, monkeypatch):
+ monkeypatch.setattr(ScopedRateThrottle, "THROTTLE_RATES", {"password_reset": "2/hour"})
+ request_reset("medecin@exemple.be")
+ request_reset("medecin@exemple.be")
+ assert request_reset("medecin@exemple.be").status_code == 429
+
+
+# Vérification du lien -----------------------------------------------------------------
+
+
+def test_validate_good_and_bad_links(user):
+ client = APIClient()
+ good = client.post(
+ f"{AUTH}/password-reset/validate/", {"token": make_reset_token(user)}, format="json"
+ )
+ assert good.status_code == 204
+ bad = client.post(f"{AUTH}/password-reset/validate/", {"token": "faux.jeton"}, format="json")
+ assert bad.status_code == 400
+ assert bad.json()["code"] == "invalid_token"
+
+
+# Nouveau mot de passe ---------------------------------------------------------------------
+
+
+def test_confirm_changes_password_and_notifies(user, django_capture_on_commit_callbacks):
+ with django_capture_on_commit_callbacks(execute=True):
+ request_reset("medecin@exemple.be")
+ token = token_from_mail()
+
+ with django_capture_on_commit_callbacks(execute=True):
+ response = confirm(token)
+
+ assert response.status_code == 204
+ user.refresh_from_db()
+ assert user.check_password(NEW_PASSWORD)
+ assert mail.outbox[-1].subject == "[PRISM] Votre mot de passe a été modifié"
+
+
+def test_link_works_only_once(user):
+ token = make_reset_token(user)
+ assert confirm(token).status_code == 204
+ response = confirm(token, "encore-un-autre-mot-de-passe")
+ assert response.status_code == 400
+ assert response.json()["code"] == "invalid_token"
+
+
+def test_link_expires(user, settings):
+ token = make_reset_token(user)
+ settings.PASSWORD_RESET_TIMEOUT = -1
+ assert confirm(token).json()["code"] == "invalid_token"
+
+
+@pytest.mark.parametrize(
+ "token",
+ ["", "sans-point", "Zm9v.abc-def", "MTIzNDU.abc-def", "!!!.abc"],
+ ids=["vide", "sans-point", "uid-invalide", "compte-inconnu", "base64-invalide"],
+)
+def test_malformed_tokens(user, token):
+ response = confirm(token)
+ assert response.status_code == 400
+
+
+def test_weak_password_is_refused_and_link_stays_valid(user):
+ token = make_reset_token(user)
+ response = confirm(token, "court")
+ assert response.status_code == 400
+ assert "new_password" in response.json()
+ assert confirm(token).status_code == 204
+
+
+def test_reset_closes_existing_sessions(user):
+ other_device = APIClient()
+ other_device.post(f"{AUTH}/login/", {"email": user.email, "password": PASSWORD}, format="json")
+ assert other_device.get(f"{AUTH}/me/").status_code == 200
+ # La connexion a changé `last_login`, qui entre dans le jeton.
+ user.refresh_from_db()
+
+ assert confirm(make_reset_token(user)).status_code == 204
+
+ assert other_device.get(f"{AUTH}/me/").status_code == 403
+
+
+def test_disabled_account_cannot_use_old_link(user):
+ token = make_reset_token(user)
+ User.objects.filter(pk=user.pk).update(status=User.Status.DISABLED)
+ assert confirm(token).json()["code"] == "invalid_token"
+
+
+def test_new_password_allows_login(user):
+ confirm(make_reset_token(user))
+ response = APIClient().post(
+ f"{AUTH}/login/", {"email": user.email, "password": NEW_PASSWORD}, format="json"
+ )
+ assert response.status_code == 200
diff --git a/backend/tests/test_api_registration.py b/backend/tests/test_api_registration.py
new file mode 100644
index 0000000..f790222
--- /dev/null
+++ b/backend/tests/test_api_registration.py
@@ -0,0 +1,313 @@
+"""Inscription : register/, verify-email/, verify-email/resend/ et validation dans l'admin."""
+
+import pytest
+from django.contrib.admin.sites import site
+from django.core import mail, signing
+from django.core.management import call_command
+from django.test import RequestFactory
+from django.utils import timezone
+from rest_framework.test import APIClient
+
+from accounts.admin import UserAdmin
+from accounts.models import MailEvent, User
+from accounts.tokens import EMAIL_SALT, make_email_token
+
+REGISTER = "/api/v1/auth/register/"
+VERIFY = "/api/v1/auth/verify-email/"
+RESEND = "/api/v1/auth/verify-email/resend/"
+
+PAYLOAD = {
+ "first_name": "Marie",
+ "last_name": "Curie",
+ "email": "Marie.Curie@Exemple.be",
+ "inami_number": "1-23456-78-901",
+ "password": "un-mot-de-passe-solide",
+ "accept_terms": True,
+}
+
+pytestmark = pytest.mark.django_db
+
+
+@pytest.fixture(autouse=True)
+def ssmg_recipients(settings):
+ settings.SSMG_NOTIFY_EMAILS = ["cellule@ssmg.be"]
+ settings.FRONTEND_URL = "https://prism.test"
+
+
+def register(payload=PAYLOAD, client=None):
+ return (client or APIClient()).post(REGISTER, payload, format="json")
+
+
+def link_token(message) -> str:
+ return message.body.split("jeton=")[1].split()[0]
+
+
+# Inscription --------------------------------------------------------------------------
+
+
+def test_register_creates_pending_account_and_sends_confirmation(
+ django_capture_on_commit_callbacks,
+):
+ with django_capture_on_commit_callbacks(execute=True):
+ response = register()
+
+ assert response.status_code == 201
+ assert response.content == b""
+ user = User.objects.get(email="marie.curie@exemple.be")
+ assert user.status == User.Status.EMAIL_PENDING
+ assert user.inami_number == "1-23456-78-901"
+ assert not user.is_active
+ assert user.check_password("un-mot-de-passe-solide")
+
+ assert len(mail.outbox) == 1
+ message = mail.outbox[0]
+ assert message.to == ["marie.curie@exemple.be"]
+ assert message.subject == "[PRISM] Confirmez votre adresse e-mail"
+ assert "https://prism.test/inscription/statut?jeton=" in message.body
+ assert message.alternatives[0][1] == "text/html"
+ assert MailEvent.objects.get().type == MailEvent.Type.CONFIRM_EMAIL
+
+
+def test_existing_email_gets_same_response_and_a_warning(user, django_capture_on_commit_callbacks):
+ with django_capture_on_commit_callbacks(execute=True):
+ response = register({**PAYLOAD, "email": "MEDECIN@exemple.be"})
+
+ assert response.status_code == 201
+ assert response.content == b""
+ assert User.objects.count() == 1
+ assert mail.outbox[0].to == ["medecin@exemple.be"]
+ assert mail.outbox[0].subject == "[PRISM] Tentative d'inscription avec votre adresse"
+
+
+@pytest.mark.parametrize(
+ ("change", "field"),
+ [
+ ({"accept_terms": False}, "accept_terms"),
+ ({"password": "court"}, "password"),
+ ({"password": "password1234"}, "password"),
+ ({"password": "marie.curie.exemple"}, "password"),
+ ({"email": "pas-un-email"}, "email"),
+ ({"first_name": ""}, "first_name"),
+ ],
+ ids=["conditions", "trop-court", "courant", "proche-email", "email", "prenom"],
+)
+def test_register_validation(change, field):
+ response = register({**PAYLOAD, **change})
+ assert response.status_code == 400
+ assert field in response.json()
+ assert not User.objects.exists()
+
+
+def test_inami_number_is_optional():
+ payload = {k: v for k, v in PAYLOAD.items() if k != "inami_number"}
+ assert register(payload).status_code == 201
+
+
+# Confirmation de l'adresse ------------------------------------------------------------
+
+
+def test_verify_email_then_ssmg_is_notified(django_capture_on_commit_callbacks):
+ with django_capture_on_commit_callbacks(execute=True):
+ register()
+ token = link_token(mail.outbox[0])
+
+ with django_capture_on_commit_callbacks(execute=True):
+ response = APIClient().post(VERIFY, {"token": token}, format="json")
+
+ assert response.status_code == 200
+ assert response.json() == {"status": "approval_pending"}
+ user = User.objects.get()
+ assert user.status == User.Status.APPROVAL_PENDING
+ assert user.email_verified_at is not None
+
+ notification = mail.outbox[1]
+ assert notification.to == ["cellule@ssmg.be"]
+ assert "Marie Curie" in notification.body
+ assert "1-23456-78-901" in notification.body
+ assert f"/admin/accounts/user/{user.pk}/change/" in notification.body
+
+
+def test_verify_email_token_is_single_use(django_capture_on_commit_callbacks):
+ with django_capture_on_commit_callbacks(execute=True):
+ register()
+ token = link_token(mail.outbox[0])
+ APIClient().post(VERIFY, {"token": token}, format="json")
+
+ response = APIClient().post(VERIFY, {"token": token}, format="json")
+ assert response.status_code == 400
+ assert response.json()["code"] == "used_token"
+
+
+def test_expired_token(settings):
+ user = User.objects.create_user("a@exemple.be", "x", first_name="A", last_name="B")
+ token = make_email_token(user)
+ settings.EMAIL_TOKEN_MAX_AGE = -1
+ response = APIClient().post(VERIFY, {"token": token}, format="json")
+ assert response.status_code == 400
+ assert response.json()["code"] == "expired_token"
+
+
+@pytest.mark.parametrize(
+ "token",
+ ["n-importe-quoi", signing.dumps({"u": 999, "e": "x@y.be"}, salt=EMAIL_SALT)],
+ ids=["signature-invalide", "compte-inconnu"],
+)
+def test_invalid_token(token):
+ response = APIClient().post(VERIFY, {"token": token}, format="json")
+ assert response.status_code == 400
+ assert response.json()["code"] == "invalid_token"
+
+
+def test_token_for_old_email_is_rejected():
+ user = User.objects.create_user("a@exemple.be", "x", first_name="A", last_name="B")
+ token = make_email_token(user)
+ user.email = "b@exemple.be"
+ user.save()
+ assert APIClient().post(VERIFY, {"token": token}, format="json").json()["code"] == (
+ "invalid_token"
+ )
+
+
+# Renvoi de l'e-mail ------------------------------------------------------------------
+
+
+def test_resend_by_email(django_capture_on_commit_callbacks):
+ User.objects.create_user("a@exemple.be", "x", first_name="A", last_name="B")
+ with django_capture_on_commit_callbacks(execute=True):
+ response = APIClient().post(RESEND, {"email": "A@exemple.be"}, format="json")
+ assert response.status_code == 202
+ assert mail.outbox[0].subject == "[PRISM] Confirmez votre adresse e-mail"
+
+
+def test_resend_from_expired_link(settings, django_capture_on_commit_callbacks):
+ user = User.objects.create_user("a@exemple.be", "x", first_name="A", last_name="B")
+ token = make_email_token(user)
+ settings.EMAIL_TOKEN_MAX_AGE = -1
+ with django_capture_on_commit_callbacks(execute=True):
+ response = APIClient().post(RESEND, {"token": token}, format="json")
+ assert response.status_code == 202
+ assert mail.outbox[0].to == ["a@exemple.be"]
+
+
+@pytest.mark.parametrize(
+ "payload",
+ [{"email": "inconnu@exemple.be"}, {"email": "medecin@exemple.be"}, {"token": "faux"}],
+ ids=["inconnu", "deja-actif", "jeton-invalide"],
+)
+def test_resend_reveals_nothing(user, payload, django_capture_on_commit_callbacks):
+ with django_capture_on_commit_callbacks(execute=True):
+ response = APIClient().post(RESEND, payload, format="json")
+ assert response.status_code == 202
+ assert mail.outbox == []
+
+
+def test_resend_requires_email_or_token():
+ assert APIClient().post(RESEND, {}, format="json").status_code == 400
+
+
+def test_registration_throttling(monkeypatch):
+ from rest_framework.throttling import ScopedRateThrottle
+
+ monkeypatch.setattr(ScopedRateThrottle, "THROTTLE_RATES", {"register": "1/hour"})
+ assert register().status_code == 201
+ assert register({**PAYLOAD, "email": "autre@exemple.be"}).status_code == 429
+
+
+# Validation par la cellule SSMG -------------------------------------------------------
+
+
+@pytest.fixture
+def pending(db):
+ return User.objects.create_user(
+ "demandeur@exemple.be",
+ "x",
+ first_name="Paul",
+ last_name="Martin",
+ status=User.Status.APPROVAL_PENDING,
+ )
+
+
+@pytest.fixture
+def ssmg_admin(db):
+ return User.objects.create_superuser("cellule@ssmg.be", "un-mot-de-passe-solide")
+
+
+def run_action(action, admin_user, queryset):
+ request = RequestFactory().post("/")
+ request.user = admin_user
+ request.session = {}
+ request._messages = type("M", (), {"add": lambda *a, **k: None})()
+ getattr(UserAdmin(User, site), action)(request, queryset)
+
+
+def test_admin_approve(pending, ssmg_admin, django_capture_on_commit_callbacks):
+ with django_capture_on_commit_callbacks(execute=True):
+ run_action("approve", ssmg_admin, User.objects.filter(pk=pending.pk))
+
+ pending.refresh_from_db()
+ assert pending.status == User.Status.ACTIVE
+ assert pending.approved_by == ssmg_admin
+ assert pending.approved_at is not None
+ assert mail.outbox[0].subject == "[PRISM] Votre compte PRISM est activé"
+ assert "https://prism.test/login" in mail.outbox[0].body
+ assert login_works("demandeur@exemple.be", "x")
+
+
+def test_admin_refuse_with_reason(pending, ssmg_admin, django_capture_on_commit_callbacks):
+ pending.refusal_reason = "Numéro INAMI introuvable."
+ pending.save()
+ with django_capture_on_commit_callbacks(execute=True):
+ run_action("refuse", ssmg_admin, User.objects.filter(pk=pending.pk))
+
+ pending.refresh_from_db()
+ assert pending.status == User.Status.REFUSED
+ assert "Motif : Numéro INAMI introuvable." in mail.outbox[0].body
+ assert not login_works("demandeur@exemple.be", "x")
+
+
+def test_admin_actions_ignore_other_statuses(user, ssmg_admin, django_capture_on_commit_callbacks):
+ with django_capture_on_commit_callbacks(execute=True):
+ run_action("refuse", ssmg_admin, User.objects.filter(pk=user.pk))
+ user.refresh_from_db()
+ assert user.status == User.Status.ACTIVE
+ assert mail.outbox == []
+
+
+def login_works(email, password):
+ response = APIClient().post(
+ "/api/v1/auth/login/", {"email": email, "password": password}, format="json"
+ )
+ return response.status_code == 200
+
+
+# Purge ------------------------------------------------------------------------------
+
+
+def test_purge_unconfirmed_requests(pending):
+ old = User.objects.create_user("vieux@exemple.be", "x", first_name="V", last_name="X")
+ User.objects.filter(pk=old.pk).update(date_joined=timezone.now() - timezone.timedelta(days=8))
+ recent = User.objects.create_user("recent@exemple.be", "x", first_name="R", last_name="X")
+
+ call_command("purge_pending_accounts", stdout=open("/dev/null", "w")) # noqa: SIM115
+
+ remaining = set(User.objects.values_list("email", flat=True))
+ assert old.email not in remaining
+ assert {recent.email, pending.email} <= remaining
+
+
+# Échec d'envoi ----------------------------------------------------------------------
+
+
+def test_failed_email_is_logged_without_content(monkeypatch, django_capture_on_commit_callbacks):
+ from django.core.mail import EmailMultiAlternatives
+
+ def boom(self, *args, **kwargs):
+ raise ConnectionRefusedError
+
+ monkeypatch.setattr(EmailMultiAlternatives, "send", boom)
+ with django_capture_on_commit_callbacks(execute=True):
+ assert register().status_code == 201
+
+ event = MailEvent.objects.get()
+ assert event.status == MailEvent.Status.FAILED
+ assert event.error == "ConnectionRefusedError"
diff --git a/backend/tests/test_api_schema.py b/backend/tests/test_api_schema.py
index 91a6d11..b7497d8 100644
--- a/backend/tests/test_api_schema.py
+++ b/backend/tests/test_api_schema.py
@@ -16,7 +16,25 @@ def test_schema_is_public():
def test_schema_documents_every_route():
schema = APIClient().get("/api/schema/?format=json").json()
paths = schema["paths"]
- assert set(paths) == {"/api/v1/assessments/", "/api/v1/factors/"}
+ assert set(paths) == {
+ "/api/v1/assessments/",
+ "/api/v1/factors/",
+ "/api/v1/auth/login/",
+ "/api/v1/auth/logout/",
+ "/api/v1/auth/me/",
+ "/api/v1/auth/register/",
+ "/api/v1/auth/verify-email/",
+ "/api/v1/auth/verify-email/resend/",
+ "/api/v1/auth/password/change/",
+ "/api/v1/auth/password-reset/",
+ "/api/v1/auth/password-reset/validate/",
+ "/api/v1/auth/password-reset/confirm/",
+ "/api/v1/auth/2fa/setup/",
+ "/api/v1/auth/2fa/enable/",
+ "/api/v1/auth/2fa/verify/",
+ "/api/v1/auth/2fa/disable/",
+ "/api/v1/auth/2fa/recovery-codes/",
+ }
assessments = paths["/api/v1/assessments/"]["post"]
assert set(assessments["responses"]) == {"200", "404", "422", "503"}
assert "requestBody" in assessments
diff --git a/backend/tests/test_providers.py b/backend/tests/test_providers.py
index 2fb4983..61afc7f 100644
--- a/backend/tests/test_providers.py
+++ b/backend/tests/test_providers.py
@@ -57,12 +57,14 @@ async def test_air_counts_who_exceedances(mock_irceline):
result = await fetch(AirProvider())
assert result.status == "ok"
assert result.source_value == "2"
- assert result.summary == "2 dépassements des valeurs OMS"
+ assert result.summary == "2 dépassements des valeurs guides OMS 2021 (moyennes annuelles)"
assert result.details[0] == {
"label": "PM2,5",
- "value": "7,1 µg/m³ (valeur guide OMS 5 : dépassée)",
+ "value": "7,1 µg/m³ (seuil 5)",
+ "status": "exceeded",
}
- assert result.details[3] == {"label": "O3", "value": "50,1 µg/m³"}
+ assert result.details[1] == {"label": "PM10", "value": "12,0 µg/m³ (seuil 15)", "status": "ok"}
+ assert result.details[3] == {"label": "O₃", "value": "50,1 µg/m³"}
async def test_air_wms_exception_raises(mock_http):
diff --git a/frontend/.dockerignore b/frontend/.dockerignore
new file mode 100644
index 0000000..86338e1
--- /dev/null
+++ b/frontend/.dockerignore
@@ -0,0 +1,4 @@
+node_modules
+dist
+.eslintcache
+Dockerfile
diff --git a/frontend/.editorconfig b/frontend/.editorconfig
new file mode 100644
index 0000000..3b510aa
--- /dev/null
+++ b/frontend/.editorconfig
@@ -0,0 +1,8 @@
+[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]
+charset = utf-8
+indent_size = 2
+indent_style = space
+insert_final_newline = true
+trim_trailing_whitespace = true
+end_of_line = lf
+max_line_length = 100
diff --git a/frontend/.gitattributes b/frontend/.gitattributes
new file mode 100644
index 0000000..6313b56
--- /dev/null
+++ b/frontend/.gitattributes
@@ -0,0 +1 @@
+* text=auto eol=lf
diff --git a/frontend/.gitignore b/frontend/.gitignore
new file mode 100644
index 0000000..cd68f14
--- /dev/null
+++ b/frontend/.gitignore
@@ -0,0 +1,39 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+node_modules
+.DS_Store
+dist
+dist-ssr
+coverage
+*.local
+
+# Editor directories and files
+.vscode/*
+!.vscode/extensions.json
+.idea
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
+
+*.tsbuildinfo
+
+.eslintcache
+
+# Cypress
+/cypress/videos/
+/cypress/screenshots/
+
+# Vitest
+__screenshots__/
+
+# Vite
+*.timestamp-*-*.mjs
diff --git a/frontend/.oxlintrc.json b/frontend/.oxlintrc.json
new file mode 100644
index 0000000..86b5cc2
--- /dev/null
+++ b/frontend/.oxlintrc.json
@@ -0,0 +1,10 @@
+{
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
+ "plugins": ["eslint", "typescript", "unicorn", "oxc", "vue", "vitest"],
+ "env": {
+ "browser": true
+ },
+ "categories": {
+ "correctness": "error"
+ }
+}
diff --git a/frontend/.prettierrc.json b/frontend/.prettierrc.json
new file mode 100644
index 0000000..29a2402
--- /dev/null
+++ b/frontend/.prettierrc.json
@@ -0,0 +1,6 @@
+{
+ "$schema": "https://json.schemastore.org/prettierrc",
+ "semi": false,
+ "singleQuote": true,
+ "printWidth": 100
+}
diff --git a/frontend/.vscode/extensions.json b/frontend/.vscode/extensions.json
new file mode 100644
index 0000000..b5ce799
--- /dev/null
+++ b/frontend/.vscode/extensions.json
@@ -0,0 +1,10 @@
+{
+ "recommendations": [
+ "Vue.volar",
+ "vitest.explorer",
+ "dbaeumer.vscode-eslint",
+ "EditorConfig.EditorConfig",
+ "oxc.oxc-vscode",
+ "esbenp.prettier-vscode"
+ ]
+}
diff --git a/frontend/Dockerfile b/frontend/Dockerfile
new file mode 100644
index 0000000..d1d1cf7
--- /dev/null
+++ b/frontend/Dockerfile
@@ -0,0 +1,17 @@
+FROM node:24-alpine AS build
+
+WORKDIR /app
+
+COPY package.json package-lock.json ./
+RUN npm ci
+
+COPY . .
+RUN npm run build-only
+
+# Sert le front et relaie /api, /admin et /static vers le back-end du même pod (port 8000).
+FROM nginxinc/nginx-unprivileged:1.27-alpine
+
+COPY nginx.conf /etc/nginx/conf.d/default.conf
+COPY --from=build /app/dist /usr/share/nginx/html
+
+EXPOSE 8080
diff --git a/frontend/README.md b/frontend/README.md
new file mode 100644
index 0000000..ce66b81
--- /dev/null
+++ b/frontend/README.md
@@ -0,0 +1,24 @@
+# PRISM – front-end
+
+Vue 3, Vite, TypeScript, Vue Router, vue-i18n, MapLibre GL JS, Bootstrap 5 (CSS seul) et Bootstrap Icons. Design repris des maquettes Penpot (charte ssmg.be, police Roboto).
+
+```bash
+npm install
+npm run dev # http://localhost:5173, /api relayé vers Django (localhost:8000)
+npm run test:unit # Vitest
+npm run type-check
+npm run lint
+npm run build
+```
+
+Le serveur Django doit tourner (`docker compose up -d` à la racine) et `CSRF_TRUSTED_ORIGINS` doit contenir `http://localhost:5173` (voir `.env.example`). Variable `API_PROXY_TARGET` pour relayer vers une autre adresse.
+
+## Structure
+
+- `src/api/` : client HTTP (session Django + jeton CSRF) et types des réponses.
+- `src/composables/useAuth.ts` : utilisateur courant, connexion, déconnexion (état partagé par un `ref`).
+- `src/router/` : routes et garde (`requiresAuth`, `guestOnly`).
+- `src/views/` : `LoginView`, `AssessmentView`, `ErrorView` (403, 404).
+- `src/components/` : `AddressForm`, `AlertBanner`, `ResultMap`, `FactorCard` (avec `ColorBadge`, `DetailList`, `InfoTabs`, `ReferenceList`), `AppHeader`, `AppFooter`.
+- `src/locales/fr.json` : tous les textes de l'interface.
+- `src/styles/main.css` : couleurs et surcharges Bootstrap issues des maquettes.
diff --git a/frontend/env.d.ts b/frontend/env.d.ts
new file mode 100644
index 0000000..11f02fe
--- /dev/null
+++ b/frontend/env.d.ts
@@ -0,0 +1 @@
+///
diff --git a/frontend/eslint.config.ts b/frontend/eslint.config.ts
new file mode 100644
index 0000000..4e90ef7
--- /dev/null
+++ b/frontend/eslint.config.ts
@@ -0,0 +1,32 @@
+import { globalIgnores } from 'eslint/config'
+import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
+import pluginVue from 'eslint-plugin-vue'
+import pluginVitest from '@vitest/eslint-plugin'
+import pluginOxlint from 'eslint-plugin-oxlint'
+import skipFormatting from 'eslint-config-prettier/flat'
+
+// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:
+// import { configureVueProject } from '@vue/eslint-config-typescript'
+// configureVueProject({ scriptLangs: ['ts', 'tsx'] })
+// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup
+
+export default defineConfigWithVueTs(
+ {
+ name: 'app/files-to-lint',
+ files: ['**/*.{vue,ts,mts,tsx}'],
+ },
+
+ globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),
+
+ ...pluginVue.configs['flat/essential'],
+ vueTsConfigs.recommended,
+
+ {
+ ...pluginVitest.configs.recommended,
+ files: ['src/**/__tests__/*'],
+ },
+
+ ...pluginOxlint.buildFromOxlintConfigFile('.oxlintrc.json'),
+
+ skipFormatting,
+)
diff --git a/frontend/index.html b/frontend/index.html
new file mode 100644
index 0000000..35ebe30
--- /dev/null
+++ b/frontend/index.html
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+ PRISM – Environnement et santé
+
+
+
+
+
+
diff --git a/frontend/nginx.conf b/frontend/nginx.conf
new file mode 100644
index 0000000..ac3b2b2
--- /dev/null
+++ b/frontend/nginx.conf
@@ -0,0 +1,29 @@
+server {
+ listen 8080;
+ server_name _;
+
+ root /usr/share/nginx/html;
+ index index.html;
+
+ # Le back-end tourne dans le même pod que ce conteneur.
+ location ~ ^/(api|admin|static)/ {
+ proxy_pass http://127.0.0.1:8000;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
+ proxy_read_timeout 60s;
+ }
+
+ # Fichiers versionnés par Vite : cache long.
+ location /assets/ {
+ try_files $uri =404;
+ add_header Cache-Control "public, max-age=31536000, immutable";
+ }
+
+ # Application monopage : toute autre route retombe sur index.html.
+ location / {
+ try_files $uri /index.html;
+ add_header Cache-Control "no-cache";
+ }
+}
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
new file mode 100644
index 0000000..b4f9a77
--- /dev/null
+++ b/frontend/package-lock.json
@@ -0,0 +1,6771 @@
+{
+ "name": "prism-frontend",
+ "version": "0.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "prism-frontend",
+ "version": "0.0.0",
+ "dependencies": {
+ "@fontsource/roboto": "^5.3.0",
+ "bootstrap": "^5.3.9",
+ "bootstrap-icons": "^1.13.2",
+ "maplibre-gl": "^6.19.0",
+ "vue": "^3.5.42",
+ "vue-i18n": "^11.4.23",
+ "vue-router": "^5.3.1"
+ },
+ "devDependencies": {
+ "@tsconfig/node24": "^24.0.5",
+ "@types/jsdom": "^30.0.0",
+ "@types/node": "^24.13.4",
+ "@vitejs/plugin-vue": "^6.0.8",
+ "@vitest/eslint-plugin": "^1.6.27",
+ "@vue/eslint-config-typescript": "^14.9.0",
+ "@vue/test-utils": "^2.5.0",
+ "@vue/tsconfig": "^0.9.1",
+ "eslint": "^10.10.0",
+ "eslint-config-prettier": "^10.1.8",
+ "eslint-plugin-oxlint": "~1.82.0",
+ "eslint-plugin-vue": "~10.11.0",
+ "jiti": "^2.7.0",
+ "jsdom": "^30.0.1",
+ "npm-run-all2": "^9.0.3",
+ "oxlint": "~1.82.0",
+ "prettier": "3.9.6",
+ "typescript": "~6.0.0",
+ "vite": "^8.2.2",
+ "vite-plugin-vue-devtools": "^8.2.1",
+ "vitest": "^4.1.11",
+ "vue-eslint-parser": "^10.4.1",
+ "vue-tsc": "^3.3.11"
+ },
+ "engines": {
+ "node": "^22.18.0 || >=24.12.0"
+ }
+ },
+ "node_modules/@asamuzakjp/css-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-7.2.0.tgz",
+ "integrity": "sha512-+JNLVlzePs1XiBT5s9aVkEjOePRoB//tk3bc69BGdzQCz7EICVSQuVPZu6tjc7vAJxBx5fama67LbOltwnXzPQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@csstools/css-calc": "^3.4.3",
+ "@csstools/css-color-parser": "^4.2.7",
+ "@csstools/css-parser-algorithms": "^4.0.2",
+ "@csstools/css-tokenizer": "^4.0.2",
+ "lru-cache": "^11.5.3"
+ },
+ "engines": {
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
+ }
+ },
+ "node_modules/@asamuzakjp/dom-selector": {
+ "version": "10.0.7",
+ "resolved": "https://registry.npmjs.org/@asamuzakjp/dom-selector/-/dom-selector-10.0.7.tgz",
+ "integrity": "sha512-fWUO6pa4z2WBAWbcHsfWIT7SVqjzxi/kqd0M92naZNEcgKO7RQ57IuMTesH5+3bnhO+b41nT6qGYTB8Di4JRUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bidi-js": "^1.1.0",
+ "css-tree": "^3.2.1",
+ "is-potential-custom-element-name": "^1.0.1",
+ "lru-cache": "^11.5.3"
+ },
+ "engines": {
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "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.29.7",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/compat-data": {
+ "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": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core": {
+ "version": "7.29.13",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.13.tgz",
+ "integrity": "sha512-j1nvOQCZYSgp7HLmisnCXFTpVvFODiijQ9QHkORfGKWH6YDtskTEeCJS7eV545GZ9UBzrq0e2xsOd5QQ5PjIqw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.13",
+ "@babel/helper-compilation-targets": "^7.29.13",
+ "@babel/helper-module-transforms": "^7.29.13",
+ "@babel/helpers": "^7.29.13",
+ "@babel/parser": "^7.29.13",
+ "@babel/template": "^7.29.7",
+ "@babel/traverse": "^7.29.13",
+ "@babel/types": "^7.29.11",
+ "@jridgewell/remapping": "^2.3.5",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "node_modules/@babel/core/node_modules/semver": {
+ "version": "6.3.2",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.2.tgz",
+ "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.29.15",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.15.tgz",
+ "integrity": "sha512-gNWJUX0FlevflramOkaInywOMhU1lkln38gAC7TFZv2tsWbLYbN/2WZFGcq8zbX0Z55e4vGa27IB/NaeZoauWQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.15",
+ "@babel/types": "^7.29.15",
+ "@jridgewell/gen-mapping": "^0.3.12",
+ "@jridgewell/trace-mapping": "^0.3.28",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-annotate-as-pure": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.29.7.tgz",
+ "integrity": "sha512-OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.29.13",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.13.tgz",
+ "integrity": "sha512-8WxJ4/Vmes3ghacj8VOJy3NW8eyHiFY/4thU/LSBuBE470+igjR/j1ZTNn8fV5VdNrLx6iXUwig526UdOvfP0w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@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"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets/node_modules/semver": {
+ "version": "6.3.2",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.2.tgz",
+ "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/helper-create-class-features-plugin": {
+ "version": "7.29.13",
+ "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.29.13.tgz",
+ "integrity": "sha512-fo8/Fr44/DMV71FQjk/HA0Npmu3bo5DFoWTCW1dhUR8Vx3NFfAVeEy0TbcBpt4e+hd2QhdmWgmspHo/9iWj8RA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-annotate-as-pure": "^7.29.7",
+ "@babel/helper-member-expression-to-functions": "^7.29.7",
+ "@babel/helper-optimise-call-expression": "^7.29.7",
+ "@babel/helper-replace-supers": "^7.29.7",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.29.13",
+ "@babel/traverse": "^7.29.13",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": {
+ "version": "6.3.2",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.2.tgz",
+ "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/helper-globals": {
+ "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": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-member-expression-to-functions": {
+ "version": "7.29.14",
+ "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.29.14.tgz",
+ "integrity": "sha512-FuTSn8mXKAP+aHXnbkCYQsQAdlEIJptEutwc2NaPd28hyVqsjRDmBnI2EPJX6HCodKIqOHfayQHqtxQCkqwthA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.29.13",
+ "@babel/traverse": "^7.29.14",
+ "@babel/types": "^7.29.14"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "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.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-transforms": {
+ "version": "7.29.14",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.14.tgz",
+ "integrity": "sha512-2XDvQVd9JESaOgGc4jT2/jquTAO7ppA5noTZQqH+MmZ89yjCzScLwtCPbWtkPZylL+TLWR49IwWmk+QkRR4GsA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "@babel/traverse": "^7.29.14"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-optimise-call-expression": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.29.7.tgz",
+ "integrity": "sha512-+kmGVjcT9RGYzoDwdwEqEvGgKe3BYq+O1iGzjFubaNgZHwYHP6lsF2Yghf4kEuv9BV7tYDZ913aBW9am6YKong==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-plugin-utils": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz",
+ "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-replace-supers": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.29.7.tgz",
+ "integrity": "sha512-atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-member-expression-to-functions": "^7.29.7",
+ "@babel/helper-optimise-call-expression": "^7.29.7",
+ "@babel/traverse": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-skip-transparent-expression-wrappers": {
+ "version": "7.29.13",
+ "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.29.13.tgz",
+ "integrity": "sha512-Abm4rKIH0tmCayJLwcoeOkdzpYUphTbO52fHhyEBHn7S0R+ni4epNLI/8nq1L0DN2Bl0u5qmgWm2Og/z4fBb+Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.29.13",
+ "@babel/types": "^7.29.11"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.29.15",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.15.tgz",
+ "integrity": "sha512-C2FuapQ2Kh1OnVHAoLi5rD3GBJ8COb9Q609T6HEpLqaBAo560PDP5OxBE5dCI/h951MBO/+bCUYU5SZ+8ZlV+w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "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==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-option": {
+ "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": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helpers": {
+ "version": "7.29.15",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.15.tgz",
+ "integrity": "sha512-l+ezV2czw3t2d2ELq+3CwPL4WLKK5O8IywBXb9/gpmbCOVZFmRYJPmHVqSCv2k+8iKbE30Zf54siOoIZ52XOxA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.15"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.29.15",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.15.tgz",
+ "integrity": "sha512-RpKWyisHoP81twtSCgmE02iU0RnPcq1DN5bBEbpUePrjA9Q3wXhufnCJrrayPpoZieqFh3zyZQqwtSK0gGccRA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.15"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-decorators": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.29.7.tgz",
+ "integrity": "sha512-EtU0Hi3GvrTqD56xKmZvV/uCXK2ZbwVNPNLAquVItcAZpUhkXwWlo3Fmj0c2LxgSf2I8IDULeAepwNP1OefLXg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-create-class-features-plugin": "^7.29.7",
+ "@babel/helper-plugin-utils": "^7.29.7",
+ "@babel/plugin-syntax-decorators": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-decorators": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.29.7.tgz",
+ "integrity": "sha512-9MTTLbF39X6sqM92JPEsoI7++26hjZvzkxKZy64aMhWLH2mPkJ/Q3AV4QLmls3R14FpSpkOwQQfUh962JGQxxg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-import-attributes": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.29.7.tgz",
+ "integrity": "sha512-zGYcYfq/WmZ4V+kBIXQon9dSSc8ircGZqw9ZaNhhGj9nZkeBu1jHLBDQqYYi5WA9uawvA2sIMbry2nCFhf5Djg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-import-meta": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz",
+ "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-jsx": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.29.7.tgz",
+ "integrity": "sha512-TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-typescript": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.29.7.tgz",
+ "integrity": "sha512-ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-typescript": {
+ "version": "7.29.15",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.29.15.tgz",
+ "integrity": "sha512-FFuMssbHj8DFMDsTH8xrgKBiE1eXuDvO9jLqav7/vsIe6YdoyPQbWCgLNzQxkcIkOv5itBD17TvZkHGIjUMzLg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-annotate-as-pure": "^7.29.7",
+ "@babel/helper-create-class-features-plugin": "^7.29.13",
+ "@babel/helper-plugin-utils": "^7.29.7",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.29.13",
+ "@babel/plugin-syntax-typescript": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/template": {
+ "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.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse": {
+ "version": "7.29.15",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.15.tgz",
+ "integrity": "sha512-ZfawBo2i8vvt+BTt37dWDKBPjUfm/H+bw+ltwsCRhW7gPtyNVwUXuNo54eO2Xo+P4VXpalPFfFISbBTRKC8SOQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.15",
+ "@babel/helper-globals": "^7.29.7",
+ "@babel/parser": "^7.29.15",
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.15",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.29.15",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.15.tgz",
+ "integrity": "sha512-/XKpKDakL//LZ66bq1XsZOswuqeI5MZqPLDu18o3XdkU1fNJ7bdPtzgnc4ZNS+bBGHV0FJG8jjb8SwcC3nNVQQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.15",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@bramus/specificity": {
+ "version": "2.4.4",
+ "resolved": "https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.4.tgz",
+ "integrity": "sha512-TRvTbeibL1ORTXe5NbH+9XUZdbjns55AmFfg8BroI1Ge13CqNF58Txg3Zd/+gjUCSh0ROHqJ1qJfnoX2MAxUZg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "css-tree": "^3.2.1"
+ },
+ "bin": {
+ "specificity": "bin/cli.js"
+ }
+ },
+ "node_modules/@cacheable/memory": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz",
+ "integrity": "sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@cacheable/utils": "^2.5.0",
+ "@keyv/bigmap": "^1.3.1",
+ "hookified": "^1.15.1",
+ "keyv": "^5.6.0"
+ }
+ },
+ "node_modules/@cacheable/utils": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/@cacheable/utils/-/utils-2.5.0.tgz",
+ "integrity": "sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hashery": "^1.5.1",
+ "keyv": "^5.6.0"
+ }
+ },
+ "node_modules/@csstools/color-helpers": {
+ "version": "6.1.3",
+ "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.1.3.tgz",
+ "integrity": "sha512-c6CpX5G1pvuOKTXiRFJ54Lzc8zQrZ3qUjp44QC5DJNt1OmA1vmfUxOMCcKdDqsvffVDG0/MHnY63J+Mn0nmdUg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT-0",
+ "engines": {
+ "node": ">=20.19.0"
+ }
+ },
+ "node_modules/@csstools/css-calc": {
+ "version": "3.4.4",
+ "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.4.4.tgz",
+ "integrity": "sha512-Jwo1Z8DUsZ8xVOLBdLMfhjJFvWD6pqaUTlBNQZ+qIB2i9g7yG8kd/UBJj2c9J9Twr+u87cjy9BjkmfvMbyOk3Q==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "peerDependencies": {
+ "@csstools/css-parser-algorithms": "^4.0.3",
+ "@csstools/css-tokenizer": "^4.0.3"
+ }
+ },
+ "node_modules/@csstools/css-color-parser": {
+ "version": "4.2.8",
+ "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-4.2.8.tgz",
+ "integrity": "sha512-JLsKBee9dmnA3L+H+vYK4lQ6n5CoY3yEnh33zdlMutRfrTxtqt+hFeoZ1maHRt5vLw67huDLpOkDb3rl9A51MQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@csstools/color-helpers": "^6.1.3",
+ "@csstools/css-calc": "^3.4.4"
+ },
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "peerDependencies": {
+ "@csstools/css-parser-algorithms": "^4.0.3",
+ "@csstools/css-tokenizer": "^4.0.3"
+ }
+ },
+ "node_modules/@csstools/css-parser-algorithms": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.3.tgz",
+ "integrity": "sha512-EpCfUDaJtwohPHC7egoXxPGT/R1/WyyAhw87MKB/7BPPZvZU+IcEqo4er5FpLnby2Gvwt9Lpxy+WNEDyFjoXtA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "peerDependencies": {
+ "@csstools/css-tokenizer": "^4.0.3"
+ }
+ },
+ "node_modules/@csstools/css-syntax-patches-for-csstree": {
+ "version": "1.1.17",
+ "resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.17.tgz",
+ "integrity": "sha512-IPx9W33+t0Yt5TVb+Y7oICrThOIry0TY6GuXfSHOatxA0uiHqbzi98Gai905lpBAX1m/LH7iI96e9jcI7Dkvxw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT-0",
+ "peerDependencies": {
+ "css-tree": "^3.2.1"
+ },
+ "peerDependenciesMeta": {
+ "css-tree": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@csstools/css-tokenizer": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.3.tgz",
+ "integrity": "sha512-gdkFe/Z4KU1q8Y5S3GYScXGcOnO56dgWwIs5+97Ij1VIKISItOIUlCXUq4VLbdnRclF+SSQ49sLsn3KeV111AA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.19.0"
+ }
+ },
+ "node_modules/@emnapi/core": {
+ "version": "2.0.0-beta.2",
+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-beta.2.tgz",
+ "integrity": "sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/wasi-threads": "2.2.0",
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@emnapi/runtime": {
+ "version": "2.0.0-beta.2",
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-2.0.0-beta.2.tgz",
+ "integrity": "sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@emnapi/wasi-threads": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-2.2.0.tgz",
+ "integrity": "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils": {
+ "version": "4.10.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz",
+ "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^3.4.3"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@eslint-community/regexpp": {
+ "version": "4.12.3",
+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.3.tgz",
+ "integrity": "sha512-R76UKbvsqI68DJJVTVyqFKqU98CN4+B+acxNfEA2IFarSzP0SjtKf/3+fFiXzTyv5Fj3PxLkGHe2wnVWWMxobQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@eslint/config-array": {
+ "version": "0.23.6",
+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.6.tgz",
+ "integrity": "sha512-WrTH7nioI9QPY4NZGnsywmecswJdgeq4BCM76qok9VgjTO29ZgUzUvcuJLVPYVQM4uDbaPBU0M33R9DIxI8X3w==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/object-schema": "^3.0.5",
+ "debug": "^4.3.1",
+ "minimatch": "^11.0.5"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/config-helpers": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz",
+ "integrity": "sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^1.2.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/core": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz",
+ "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@types/json-schema": "^7.0.15"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/object-schema": {
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz",
+ "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/plugin-kit": {
+ "version": "0.7.3",
+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.3.tgz",
+ "integrity": "sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^1.2.1",
+ "levn": "^0.4.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@exodus/bytes": {
+ "version": "1.16.0",
+ "resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.16.0.tgz",
+ "integrity": "sha512-IcpW84uEn3N7ETtNZMlxKhfl6Pec8rUNGOTBtWbK1FKhJxIFAptZyVrvVRVBimAJxJCgc3PxepxkdWWG4DVzfA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
+ },
+ "peerDependencies": {
+ "@noble/hashes": "^1.8.0 || ^2.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@noble/hashes": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@fontsource/roboto": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/@fontsource/roboto/-/roboto-5.3.0.tgz",
+ "integrity": "sha512-BapRJOWYP+LZ21zp+wBQjfpPYKRoxc4LspJ/RLuI+HSMBD5u/X4O+ESDrSvEqDSy0rAl7GwBJ+09mdc16cVQ1Q==",
+ "license": "OFL-1.1",
+ "funding": {
+ "url": "https://github.com/sponsors/ayuhito"
+ }
+ },
+ "node_modules/@humanfs/core": {
+ "version": "0.19.2",
+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",
+ "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/types": "^0.15.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node": {
+ "version": "0.16.8",
+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz",
+ "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/core": "^0.19.2",
+ "@humanfs/types": "^0.15.0",
+ "@humanwhocodes/retry": "^0.4.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/types": {
+ "version": "0.15.0",
+ "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz",
+ "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanwhocodes/module-importer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.22"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/retry": {
+ "version": "0.4.3",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@intlify/core-base": {
+ "version": "11.4.23",
+ "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-11.4.23.tgz",
+ "integrity": "sha512-V8a3BQ7iTVPDetJ/LJfGn3lDx4Ir35OjjO4BLgVrFuL+0egWzwUyfdLIPAEYWlMGdo14eC5p6uk3tSlTYY0YmQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@intlify/devtools-types": "11.4.23",
+ "@intlify/message-compiler": "11.4.23",
+ "@intlify/shared": "11.4.23"
+ },
+ "engines": {
+ "node": ">= 22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/kazupon"
+ }
+ },
+ "node_modules/@intlify/devtools-types": {
+ "version": "11.4.23",
+ "resolved": "https://registry.npmjs.org/@intlify/devtools-types/-/devtools-types-11.4.23.tgz",
+ "integrity": "sha512-zuWkolaeK8ej5z7L9Ss7FLIBHgE8ZF+XcwV1o/vQ7IKagiDg/IosA7fOa2HUFVMW5yT2ugph9rshevHGzcowBQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@intlify/core-base": "11.4.23",
+ "@intlify/shared": "11.4.23"
+ },
+ "engines": {
+ "node": ">= 22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/kazupon"
+ }
+ },
+ "node_modules/@intlify/message-compiler": {
+ "version": "11.4.23",
+ "resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-11.4.23.tgz",
+ "integrity": "sha512-HgmnQV/lBBX8KgxoNwngzzq8DLw/jECJgz9eBfQGdkEYte7Bw1RSqhIskcWp0DEWrSg2wijUi6dJjpq1WUD+zg==",
+ "license": "MIT",
+ "dependencies": {
+ "@intlify/shared": "11.4.23",
+ "source-map-js": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/kazupon"
+ }
+ },
+ "node_modules/@intlify/shared": {
+ "version": "11.4.23",
+ "resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-11.4.23.tgz",
+ "integrity": "sha512-1iqGalDCOlHZ8y7LOC3yisSm52K5AmkTmaNO23XGFYWU6Z1oIX8VeAGRq9rn2KrDFb8nMtQaxNyMa1n8EeDm5g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/kazupon"
+ }
+ },
+ "node_modules/@isaacs/nonrecursive-glob-match": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz",
+ "integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==",
+ "dev": true,
+ "license": "BlueOak-1.0.0"
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/remapping": {
+ "version": "2.3.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.3.tgz",
+ "integrity": "sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",
+ "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@keyv/bigmap": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz",
+ "integrity": "sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hashery": "^1.4.0",
+ "hookified": "^1.15.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "peerDependencies": {
+ "keyv": "^5.6.0"
+ }
+ },
+ "node_modules/@keyv/serialize": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.1.1.tgz",
+ "integrity": "sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@mapbox/jsonlint-lines-primitives": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.3.tgz",
+ "integrity": "sha512-0SElaV0uMxEnxzBhhX9WTuPyUeMsAN/SS0i16tjuba4/mio63MG9khjC1a0JAiPGXAwvwm4UfHJURCN7nyudQg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 22"
+ }
+ },
+ "node_modules/@mapbox/point-geometry": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@mapbox/point-geometry/-/point-geometry-1.1.0.tgz",
+ "integrity": "sha512-YGcBz1cg4ATXDCM/71L9xveh4dynfGmcLDqufR+nQQy3fKwsAZsWd/x4621/6uJaeB9mwOHE6hPeDgXz9uViUQ==",
+ "license": "ISC"
+ },
+ "node_modules/@mapbox/tiny-sdf": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@mapbox/tiny-sdf/-/tiny-sdf-2.3.0.tgz",
+ "integrity": "sha512-gBvcNDBBB66bgQYvnaJ6Jk+VCaMmVq5+IZR2kWPisT88Z8s0kBQt6hfVi8QgRW8Vpg0UWZzBA4ZSyzHHC+VeRA==",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/@mapbox/unitbezier": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/@mapbox/unitbezier/-/unitbezier-1.0.0.tgz",
+ "integrity": "sha512-fqd515fjBmANKGGsQ286E2Wvj/XvDFpGzwJxq4CI6jMQue6Oy04uCKp+JWKF00xRTmk6cEu1jPJ9p3xqH8YWqQ==",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/@mapbox/vector-tile": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@mapbox/vector-tile/-/vector-tile-3.0.0.tgz",
+ "integrity": "sha512-Qf10S1uIHMk20ri/IVBnpS+esUEkVaR5Hftmz88jTInrpmWgPGJfPe3LVjjlE77trLx8tH6qjTG7uWH9hIq/0Q==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@mapbox/point-geometry": "~1.1.0",
+ "@types/geojson": "^7946.0.16",
+ "pbf": "^5.0.0"
+ }
+ },
+ "node_modules/@maplibre/geojson-vt": {
+ "version": "6.3.3",
+ "resolved": "https://registry.npmjs.org/@maplibre/geojson-vt/-/geojson-vt-6.3.3.tgz",
+ "integrity": "sha512-sfftN4326foT7uex0aN0jqr+vq/lfgeTfASOd+kvdUd0uMMIgXZDPdntCazKFKKcxPH002NPCy4j396peanWCg==",
+ "license": "ISC",
+ "dependencies": {
+ "kdbush": "^4.1.0"
+ }
+ },
+ "node_modules/@maplibre/maplibre-gl-style-spec": {
+ "version": "26.9.0",
+ "resolved": "https://registry.npmjs.org/@maplibre/maplibre-gl-style-spec/-/maplibre-gl-style-spec-26.9.0.tgz",
+ "integrity": "sha512-cQZK2lG3d6I5FjriPZCgJx/LiVMpWqoVibF+cgp2mkQ/P4BIGOsrA3WsvLw1wB28Q9JU9v2fapsQUJUbjjwa6g==",
+ "license": "ISC",
+ "dependencies": {
+ "@mapbox/jsonlint-lines-primitives": "^2.0.3",
+ "@mapbox/unitbezier": "^1.0.0",
+ "json-stringify-pretty-compact": "^4.0.0",
+ "minimist": "^1.2.8",
+ "quickselect": "^3.0.0",
+ "tinyqueue": "^3.0.0"
+ },
+ "bin": {
+ "gl-style-format": "dist/gl-style-format.mjs",
+ "gl-style-migrate": "dist/gl-style-migrate.mjs",
+ "gl-style-validate": "dist/gl-style-validate.mjs"
+ }
+ },
+ "node_modules/@maplibre/mlt": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/@maplibre/mlt/-/mlt-1.3.0.tgz",
+ "integrity": "sha512-7M2O7ABM80Oi8XPkfkrjKB8mOBIxGoVgkA52Mu4RMWoBvvMdagQ522+WxVYujZsMpqIr3BpzrTbXrm4k8lCzCQ==",
+ "license": "(MIT OR Apache-2.0)",
+ "dependencies": {
+ "@mapbox/point-geometry": "^1.1.0"
+ }
+ },
+ "node_modules/@maplibre/vt-pbf": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/@maplibre/vt-pbf/-/vt-pbf-4.3.3.tgz",
+ "integrity": "sha512-dEe5XUd64RQbxNxy2OzIkJnwNDWjVmSXjCd0A7zLirm7QJ/WWbmtDFIkfsiM4yt1cplqzG6oSivRYeWx1SM1yg==",
+ "license": "MIT",
+ "dependencies": {
+ "@mapbox/point-geometry": "^1.1.0",
+ "@types/geojson": "^7946.0.16",
+ "pbf": "^5.1.2"
+ }
+ },
+ "node_modules/@napi-rs/wasm-runtime": {
+ "version": "1.2.6",
+ "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.6.tgz",
+ "integrity": "sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@tybys/wasm-util": "^0.10.3"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=23.5.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ },
+ "peerDependencies": {
+ "@emnapi/core": "^1.7.1 || 2.0.0-beta.2",
+ "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2"
+ }
+ },
+ "node_modules/@nodelib/fs.scandir": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "2.0.5",
+ "run-parallel": "^1.1.9"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.stat": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.walk": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.scandir": "2.1.5",
+ "fastq": "^1.6.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@one-ini/wasm": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/@one-ini/wasm/-/wasm-0.2.1.tgz",
+ "integrity": "sha512-TUqERXGNTifZ9y2g3wPxQrw3HpHv/02DsW3D90T9x0hhonrL1ZqpSmNrU2XkoIq0fP1N6gZfVQzy2Fw1ZvGBNg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@oxc-project/types": {
+ "version": "0.156.0",
+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.156.0.tgz",
+ "integrity": "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==",
+ "devOptional": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/oxc-project"
+ }
+ },
+ "node_modules/@oxlint/binding-android-arm-eabi": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-android-arm-eabi/-/binding-android-arm-eabi-1.82.0.tgz",
+ "integrity": "sha512-a3LB+C5Dsj5b/qtmG/mv5WrzuiXEpg1KF5nXWcEvaoN5TYAqkIvxPOwTPp3Jy/FoGpRo8zsTFhMElMXfeoOEzA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-android-arm64": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-android-arm64/-/binding-android-arm64-1.82.0.tgz",
+ "integrity": "sha512-OBlhRgNqFblGpGenno/aqOfJLOkQ2B8Ig3iDAalfn0H8hJGZKXPeexCRTDm6uwv6YUjSA9Xnwt1y/Bgj5ZH8uw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-darwin-arm64": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-darwin-arm64/-/binding-darwin-arm64-1.82.0.tgz",
+ "integrity": "sha512-dsopxqtY5ZdyT9uLHyGt1SyiLop6hi7hWI3PKpePodkRQOkLaCm+OE4fR9CAz9qdfjiFO8531tX/QDyP/psjFg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-darwin-x64": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-darwin-x64/-/binding-darwin-x64-1.82.0.tgz",
+ "integrity": "sha512-94Lu0SgTClKColU66g1VDuigV3HkcbkJBnTtZjGYfE8UPugaWDgKrm2icjC6HJVUYler2OXaHP/X0TBy8+CowQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-freebsd-x64": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-freebsd-x64/-/binding-freebsd-x64-1.82.0.tgz",
+ "integrity": "sha512-hne/V06ewhh1i0w8+l7GDNROAGCGPmyFuOwiP7YTRu0JycyStJ4785dmF8xU5p0uUwt2emvIF9vc7Xjis+cJ0g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-arm-gnueabihf": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.82.0.tgz",
+ "integrity": "sha512-aWY2xtbZf1LneW9Qsv/n2Sp8gOu74JrlQzEtj4coHX2SHFrCfhmAumaU+sI/A5nr+yoTRTSmI/pL2s6ADlNSkw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-arm-musleabihf": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-1.82.0.tgz",
+ "integrity": "sha512-Fe+TtXCXMh/5f7kWlZ2VAwsMumZWtraFlKVk1NJlL52/beGwfDE7ov+/8gVirHzWokzGu7X65hSPq0ucPDskWQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-arm64-gnu": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.82.0.tgz",
+ "integrity": "sha512-6azCZ6OJudlvipNttXCCQcyeFfcJ/NvUZdSN1z8elo73kCHtyQC7WTiUcSjWYvJ1jaq9KDUyMAoAS/vNzhBomA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-arm64-musl": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.82.0.tgz",
+ "integrity": "sha512-PLEaSD8IAIIlwW4dwOd9YaxuxeOpwiXL4J24rcnE4iNtyM5j9Q9/3+gti08oXpx0u2ygNjRDx9xjWWpQonuJEw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-ppc64-gnu": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.82.0.tgz",
+ "integrity": "sha512-D94em/BwknNTn4vqxjHh5wb2oL566eFhArabqKIr0cNZMHOJuiraFp1A8tXpH05bbE5tqwEfLXTI0MWEGtn3Dw==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-riscv64-gnu": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-1.82.0.tgz",
+ "integrity": "sha512-MOprxBaoYU2D4VgxXCl3ghydThWtx7Um1lL51kGYNeQ5Al7WzsH7/tqGdNtbLrIWnjq3bsm13+nz/gRIxjrOXw==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-riscv64-musl": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-1.82.0.tgz",
+ "integrity": "sha512-5h55QsfJ/luDXZzC20k6SNOY1Az+dCP9WvntKtcUWh2JhckAdwApY2ZusaBTwLENnReXU+A2fJtSrYvZJNKNPg==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-s390x-gnu": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.82.0.tgz",
+ "integrity": "sha512-IE8NJNLlHr0CaXyGJPGVn0eTkUyoj1I2UfA8x7I4PSOYKsQ/6btVC7Pywrj5onk0cMH25r6Z38SoN3AvE5Zuog==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-x64-gnu": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.82.0.tgz",
+ "integrity": "sha512-XUUUxaBo9XKl+J1B9EmP1cTGQPddzeURvoGkfwh/94PGnbW+hBprDljneoI2M1jzC1bzrIV3ihc7iM9UXl8+tg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-x64-musl": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-x64-musl/-/binding-linux-x64-musl-1.82.0.tgz",
+ "integrity": "sha512-SWLSFulX9TDuH6yvbPYp4+VNn6jkkIvvI+KiujDM5rWBRHEfkesCC/pCneIIUr6ovkxZ5fRtpi2v5Cz5FrMJZg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-openharmony-arm64": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-openharmony-arm64/-/binding-openharmony-arm64-1.82.0.tgz",
+ "integrity": "sha512-BQy35f6ZUdNr9a6c7B7orxQTcLjByGT2z3WAgmRovpRwmPYAaJ+NTplmMzhdjdJ4qSchfMNZy/Ukg+qRg6zseQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-win32-arm64-msvc": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.82.0.tgz",
+ "integrity": "sha512-V4QhSTg5gctZue8RJjsGi7NpQPThr/p1/HfmiMC5kfe1KFEup9SQRVub4A6kijQjdHfxj7bLL1KO3QO7/5bwMQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-win32-ia32-msvc": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.82.0.tgz",
+ "integrity": "sha512-TUSCLaKB2yktpFAJ/r3HAUYsaV/3DT7JS4iNKyoh3a9YNwD0UG7Ezh4D8m23654vQcU6P/RQrCAjRPKe4peP/A==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-win32-x64-msvc": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.82.0.tgz",
+ "integrity": "sha512-VTVoRIWJTb+wvUX8EYoPArfFH02whuR10goFXE/LHRRX33ajRrFgqbcONXZMiF4C5rnattfkm87HqYn8jb8hmQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@polka/url": {
+ "version": "1.0.0-next.29",
+ "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.29.tgz",
+ "integrity": "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@popperjs/core": {
+ "version": "2.11.8",
+ "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
+ "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
+ "license": "MIT",
+ "peer": true,
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/popperjs"
+ }
+ },
+ "node_modules/@rolldown/binding-android-arm-eabi": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.19.tgz",
+ "integrity": "sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-android-arm64": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.19.tgz",
+ "integrity": "sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-darwin-arm64": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.19.tgz",
+ "integrity": "sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-darwin-x64": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.19.tgz",
+ "integrity": "sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-freebsd-x64": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.19.tgz",
+ "integrity": "sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-arm-gnueabihf": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.19.tgz",
+ "integrity": "sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-arm64-gnu": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.19.tgz",
+ "integrity": "sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-arm64-musl": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.19.tgz",
+ "integrity": "sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-ppc64-gnu": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.19.tgz",
+ "integrity": "sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q==",
+ "cpu": [
+ "ppc64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-s390x-gnu": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.19.tgz",
+ "integrity": "sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw==",
+ "cpu": [
+ "s390x"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-x64-gnu": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.19.tgz",
+ "integrity": "sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-linux-x64-musl": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.19.tgz",
+ "integrity": "sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-openharmony-arm64": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.19.tgz",
+ "integrity": "sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-wasm32-wasi": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.2.19.tgz",
+ "integrity": "sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg==",
+ "cpu": [
+ "wasm32"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/core": "2.0.0-beta.2",
+ "@emnapi/runtime": "2.0.0-beta.2",
+ "@napi-rs/wasm-runtime": "1.2.6"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=23.5.0"
+ }
+ },
+ "node_modules/@rolldown/binding-win32-arm64-msvc": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.19.tgz",
+ "integrity": "sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/binding-win32-x64-msvc": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.19.tgz",
+ "integrity": "sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@rolldown/pluginutils": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.1.1.tgz",
+ "integrity": "sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA==",
+ "license": "MIT"
+ },
+ "node_modules/@standard-schema/spec": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz",
+ "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@tsconfig/node24": {
+ "version": "24.0.6",
+ "resolved": "https://registry.npmjs.org/@tsconfig/node24/-/node24-24.0.6.tgz",
+ "integrity": "sha512-/SK4JuydRQLGSCq7+hbiQ8fdAVR4Suv5EcBvkIAG3zo3GbXQvGoSclz4olL12Ar4OpH8gwGYJ67P4wwQqBRxKw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@tybys/wasm-util": {
+ "version": "0.10.5",
+ "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.5.tgz",
+ "integrity": "sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@types/chai": {
+ "version": "5.2.3",
+ "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",
+ "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/deep-eql": "*",
+ "assertion-error": "^2.0.1"
+ }
+ },
+ "node_modules/@types/deep-eql": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",
+ "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/esrecurse": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz",
+ "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz",
+ "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==",
+ "license": "MIT"
+ },
+ "node_modules/@types/geojson": {
+ "version": "7946.0.16",
+ "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz",
+ "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/jsdom": {
+ "version": "30.0.0",
+ "resolved": "https://registry.npmjs.org/@types/jsdom/-/jsdom-30.0.0.tgz",
+ "integrity": "sha512-uAHGxujGE0cDaKGdK28zgDotFtNA7MKq5DXl8LrfdxdCI8VHcg15oJz+amHTChPNI5JpgEPQWc2xFdrw3em/nQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*",
+ "@types/tough-cookie": "*",
+ "parse5": "^8.0.0",
+ "undici-types": "^8.9.0"
+ }
+ },
+ "node_modules/@types/json-schema": {
+ "version": "7.0.15",
+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/node": {
+ "version": "24.19.2",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.2.tgz",
+ "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": ">=7.24.0 <7.24.7"
+ }
+ },
+ "node_modules/@types/node/node_modules/undici-types": {
+ "version": "7.24.6",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz",
+ "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==",
+ "devOptional": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/tough-cookie": {
+ "version": "4.0.5",
+ "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz",
+ "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@typescript-eslint/eslint-plugin": {
+ "version": "8.74.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.74.0.tgz",
+ "integrity": "sha512-z3KXk1+Vm+d82ZRplOoC89ho4Rf1da5ju6sx8//92GnN532U62DGPjECXkkVqtYzIv0zoJlpO39SX2Z9tk6LVw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/regexpp": "^4.12.2",
+ "@typescript-eslint/scope-manager": "8.74.0",
+ "@typescript-eslint/type-utils": "8.74.0",
+ "@typescript-eslint/utils": "8.74.0",
+ "@typescript-eslint/visitor-keys": "8.74.0",
+ "ignore": "^7.0.5",
+ "natural-compare": "^1.4.0",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "@typescript-eslint/parser": "^8.74.0",
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {
+ "version": "7.0.16",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.16.tgz",
+ "integrity": "sha512-52N+Y4HRMOJmbLmr+DqO4iSRyyB7N52gm7PWCT6h0p978+oKbqHCB7gIJIwZvBUsjlSdWbrBFqUSmIFNZMpn0A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/@typescript-eslint/parser": {
+ "version": "8.74.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.74.0.tgz",
+ "integrity": "sha512-ecr8AYdig7avVkxaHdQvxHnIJ/mOyliO4Gv/uWF8q69vBew/z3sexqBwHUZX5Vql+Ns0w4sH6gBLkICGbOvJkA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/scope-manager": "8.74.0",
+ "@typescript-eslint/types": "8.74.0",
+ "@typescript-eslint/typescript-estree": "8.74.0",
+ "@typescript-eslint/visitor-keys": "8.74.0",
+ "debug": "^4.4.3"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/project-service": {
+ "version": "8.74.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.74.0.tgz",
+ "integrity": "sha512-z/mymuE+JlEeSFIv3Mo70EvgG1Zz74Hl0IDfExfXutARAP834bt+MppTD7mVAwmZO0GdxdOAi0jbTam749eH6g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/tsconfig-utils": "^8.74.0",
+ "@typescript-eslint/types": "^8.74.0",
+ "debug": "^4.4.3"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/scope-manager": {
+ "version": "8.74.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.74.0.tgz",
+ "integrity": "sha512-kpOdpu4CpWN5U38ox3f727DwWRBtUAVhyUJtqTBYe5gf2wYoxac7PgKP14txrxN7ICVtcjlLdzjqfRgpSnDKvQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.74.0",
+ "@typescript-eslint/visitor-keys": "8.74.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/tsconfig-utils": {
+ "version": "8.74.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.74.0.tgz",
+ "integrity": "sha512-p07wAuaS6BjCYgOSXKJi4YhvTnAf7fiG37e9THcpnYaQEt2QiTTYZWKwUFNgeRiywiMudazhzgddAirZ0GgHtQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/type-utils": {
+ "version": "8.74.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.74.0.tgz",
+ "integrity": "sha512-CV3Y3la8l3F9ANfxcfpgSSiQgJTe4IeLEoZV4O/gcW86Ugp8X6SKiQ0vm+QegXaRIbbDMokZZSF3A1CgiU/kPw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.74.0",
+ "@typescript-eslint/typescript-estree": "8.74.0",
+ "@typescript-eslint/utils": "8.74.0",
+ "debug": "^4.4.3",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/types": {
+ "version": "8.74.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.74.0.tgz",
+ "integrity": "sha512-MpnMrJCVNpP1iVL8NiHkQZgQqIMBH5ewDGUPBh1pqQXwFtMFjsl1M03QcYPXmv6stCKEiF0PN7CGbU1ZbXFzEA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree": {
+ "version": "8.74.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.74.0.tgz",
+ "integrity": "sha512-wL348k6l92DNG+kPP5rVpKwNBoz7a3xRZy3TPKc1uymQttd7u7gcMv3eENmcuh4CjC4mO3FTM0DYstFXMyDLuw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/project-service": "8.74.0",
+ "@typescript-eslint/tsconfig-utils": "8.74.0",
+ "@typescript-eslint/types": "8.74.0",
+ "@typescript-eslint/visitor-keys": "8.74.0",
+ "debug": "^4.4.3",
+ "minimatch": "^11.0.1",
+ "semver": "^7.7.3",
+ "tinyglobby": "^0.2.15",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "@typescript/native": "npm:typescript@>=7.1.0-dev.20261009.1 || >=7.1.0-beta <7.1.0-dev",
+ "typescript": ">=4.8.4 <6.1.0"
+ },
+ "peerDependenciesMeta": {
+ "@typescript/native": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@typescript-eslint/utils": {
+ "version": "8.74.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.74.0.tgz",
+ "integrity": "sha512-IpWXPxXXomzxyTcvjhZJexgdvtTR1TooLAPpuxzaGqQ8BHll1lf4Ysp/BTE/l0U5TJ+x1j7B4bEM8pLRrvY+XA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.9.1",
+ "@typescript-eslint/scope-manager": "8.74.0",
+ "@typescript-eslint/types": "8.74.0",
+ "@typescript-eslint/typescript-estree": "8.74.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys": {
+ "version": "8.74.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.74.0.tgz",
+ "integrity": "sha512-XSZmOtMUbWCBIM+2BK134FyMFxmll1mW2mPLk/PSwYQYzGIPMgJAqL929U4qXVizLv7Xq5b7r41/o7Ombuwk0g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.74.0",
+ "eslint-visitor-keys": "^5.0.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
+ "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@vitejs/plugin-vue": {
+ "version": "6.0.11",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.11.tgz",
+ "integrity": "sha512-m48lskIUJGlB6qUiYhDMI8nd2ngeidz2U4nKTjqI13cFMu5rH8JeEILPkDtK9Fk/TjBA2pkj8AlbenqDaKu+ww==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@rolldown/pluginutils": "^1.0.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "peerDependencies": {
+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",
+ "vue": "^3.2.25 || ^3.6.0-rc.15"
+ }
+ },
+ "node_modules/@vitest/eslint-plugin": {
+ "version": "1.6.28",
+ "resolved": "https://registry.npmjs.org/@vitest/eslint-plugin/-/eslint-plugin-1.6.28.tgz",
+ "integrity": "sha512-2QorUqhTIR7gaDkANEBTjuG2SE5MJgFaWElINyq9bIaOEJXycZUliu5xYSzG6QRLunWopYshgcRs2vW2CTRqGA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/scope-manager": "^8.71.2",
+ "@typescript-eslint/utils": "^8.71.2"
+ },
+ "engines": {
+ "node": ">=22"
+ },
+ "peerDependencies": {
+ "@typescript-eslint/eslint-plugin": "*",
+ "eslint": ">=8.57.0",
+ "typescript": ">=6.0.0",
+ "vitest": "*"
+ },
+ "peerDependenciesMeta": {
+ "@typescript-eslint/eslint-plugin": {
+ "optional": true
+ },
+ "typescript": {
+ "optional": true
+ },
+ "vitest": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vitest/expect": {
+ "version": "4.1.12",
+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.12.tgz",
+ "integrity": "sha512-vFlTt+YEu9WBpNjdGayNmlMVzrWPi1+sv853/7t2FU7hpO5gAFBKHzQmkCq5Xjpr+evegF2994LQT3hF3mRlqQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@standard-schema/spec": "^1.1.0",
+ "@types/chai": "^5.2.2",
+ "@vitest/spy": "4.1.12",
+ "@vitest/utils": "4.1.12",
+ "chai": "^6.2.2",
+ "tinyrainbow": "^3.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/mocker": {
+ "version": "4.1.12",
+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.12.tgz",
+ "integrity": "sha512-fKShNpKZzupWZuY0z7egydvL0sqW4INEZBEExMBMAa6izlENEVHwoXgdaTCaBZ5fwlr4xf2o1wXC83n9RpO+NA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/spy": "4.1.12",
+ "estree-walker": "^3.0.3",
+ "magic-string": "^0.30.21"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "msw": "^2.4.9",
+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "msw": {
+ "optional": true
+ },
+ "vite": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vitest/mocker/node_modules/estree-walker": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.0"
+ }
+ },
+ "node_modules/@vitest/pretty-format": {
+ "version": "4.1.12",
+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.12.tgz",
+ "integrity": "sha512-XW9O8+Mxx4VpCtkYdMJLZQQwsVryP9wk7cPKDxtXFfwSak6yRh5+2fep/Y0XF/ElBvJHq8bcYdi6aeuai0opZA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tinyrainbow": "^3.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/runner": {
+ "version": "4.1.12",
+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.12.tgz",
+ "integrity": "sha512-NKlVKCr5QnCe8jijdMnmkpHHU+WTqiLFR6G0pHji9uRjXK9xJl1k1nTw6F3pOOj2PDcsDt2GKQMI7wIsaT491w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/utils": "4.1.12",
+ "pathe": "^2.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/snapshot": {
+ "version": "4.1.12",
+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.12.tgz",
+ "integrity": "sha512-ko1y1Qgb/slzQ9mr+b89Cuqud8WG1TKtsPD8r7ZUBdvVOGt85Af2HwCqHujrhwJq95hs/9RM7fcAPg57o1vlzw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/pretty-format": "4.1.12",
+ "@vitest/utils": "4.1.12",
+ "magic-string": "^0.30.21",
+ "pathe": "^2.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/spy": {
+ "version": "4.1.12",
+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.12.tgz",
+ "integrity": "sha512-RGq9x4JNGNTZHEJxvN0oSiJjeSCExm0n2gZKKJZHY9cX5AVA6M7VJILBT3ZJ/tJ/0J9uWT7fETV9/btoi//vSg==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/utils": {
+ "version": "4.1.12",
+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.12.tgz",
+ "integrity": "sha512-Q3awXrwOfEV+qc3WmO5ONyE0yO7Q1gQ9/oyHxGLZ/pl7N3NO/ZztqQwKLuwMkV+CA1JYSIeO3gkHnRDIo4AVaA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/pretty-format": "4.1.12",
+ "convert-source-map": "^2.0.0",
+ "tinyrainbow": "^3.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@volar/language-core": {
+ "version": "2.4.30",
+ "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.30.tgz",
+ "integrity": "sha512-73fjwEV8wat6aOZ6U/y/hqtE30ocrIWECg67b0txGczOMNw+MffLmvJ5fnFfN9drVUEYZzLdaNo6VAy6G6avMw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@volar/source-map": "2.4.30"
+ }
+ },
+ "node_modules/@volar/language-service": {
+ "version": "2.4.30",
+ "resolved": "https://registry.npmjs.org/@volar/language-service/-/language-service-2.4.30.tgz",
+ "integrity": "sha512-w/xDsASiqC71ggCOm7sTDXDNk/l72XEptodeRC68tgZ0e5QM4hM3zAqBGC7mBctvhrpYwKfMG+t9xcUo2hEFtA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@volar/language-core": "2.4.30",
+ "vscode-languageserver-protocol": "^3.17.5",
+ "vscode-languageserver-textdocument": "^1.0.11",
+ "vscode-uri": "^3.0.8"
+ },
+ "peerDependencies": {
+ "typescript": "<7"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@volar/source-map": {
+ "version": "2.4.30",
+ "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.30.tgz",
+ "integrity": "sha512-zym1ob/KwDDyN+0jGVtxwbxJSRRnUvv5HspCtz3yEfVVdCG4/dzxJktMGPAgemqRuVs81O0o/y0q3qOUErR8kg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@volar/typescript": {
+ "version": "2.4.30",
+ "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.30.tgz",
+ "integrity": "sha512-/DgA5tgYFPfrLFuSjIMXMGHk1LQv2+P8eny6+BhGNzFJELWIW7UZlc56ZLIRFhLsPpMfIFxM8/HvOPBggrjTZg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@volar/language-core": "2.4.30",
+ "@volar/language-service": "2.4.30",
+ "path-browserify": "^1.0.1",
+ "vscode-uri": "^3.0.8"
+ },
+ "peerDependencies": {
+ "typescript": "<7"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vue-macros/common": {
+ "version": "3.1.4",
+ "resolved": "https://registry.npmjs.org/@vue-macros/common/-/common-3.1.4.tgz",
+ "integrity": "sha512-/5Fv+6DgIcM9ajY05ZmKBv+LMX1M9A0X+IUwDRVdt67ciw8OV9bvG2r34p3RiEadlsQybjhKPRKNXDC8Bp23cw==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-sfc": "^3.5.22",
+ "ast-kit": "^2.1.2",
+ "local-pkg": "^1.1.2",
+ "magic-string-ast": "^1.0.2",
+ "unplugin-utils": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/vue-macros"
+ },
+ "peerDependencies": {
+ "vue": "^2.7.0 || ^3.2.25"
+ },
+ "peerDependenciesMeta": {
+ "vue": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vue-macros/common/node_modules/local-pkg": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.2.1.tgz",
+ "integrity": "sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==",
+ "license": "MIT",
+ "dependencies": {
+ "mlly": "^1.7.4",
+ "pkg-types": "^2.3.0",
+ "quansync": "^0.2.11"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ }
+ },
+ "node_modules/@vue-macros/common/node_modules/quansync": {
+ "version": "0.2.11",
+ "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz",
+ "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==",
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://github.com/sponsors/antfu"
+ },
+ {
+ "type": "individual",
+ "url": "https://github.com/sponsors/sxzz"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/@vue/babel-helper-vue-transform-on": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/@vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.5.0.tgz",
+ "integrity": "sha512-0dAYkerNhhHutHZ34JtTl2czVQHUNWv6xEbkdF5W+Yrv5pCWsqjeORdOgbtW2I9gWlt+wBmVn+ttqN9ZxR5tzA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@vue/babel-plugin-jsx": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/@vue/babel-plugin-jsx/-/babel-plugin-jsx-1.5.0.tgz",
+ "integrity": "sha512-mneBhw1oOqCd2247O0Yw/mRwC9jIGACAJUlawkmMBiNmL4dGA2eMzuNZVNqOUfYTa6vqmND4CtOPzmEEEqLKFw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.27.1",
+ "@babel/helper-plugin-utils": "^7.27.1",
+ "@babel/plugin-syntax-jsx": "^7.27.1",
+ "@babel/template": "^7.27.2",
+ "@babel/traverse": "^7.28.0",
+ "@babel/types": "^7.28.2",
+ "@vue/babel-helper-vue-transform-on": "1.5.0",
+ "@vue/babel-plugin-resolve-type": "1.5.0",
+ "@vue/shared": "^3.5.18"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ },
+ "peerDependenciesMeta": {
+ "@babel/core": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vue/babel-plugin-resolve-type": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/@vue/babel-plugin-resolve-type/-/babel-plugin-resolve-type-1.5.0.tgz",
+ "integrity": "sha512-Wm/60o+53JwJODm4Knz47dxJnLDJ9FnKnGZJbUUf8nQRAtt6P+undLUAVU3Ha33LxOJe6IPoifRQ6F/0RrU31w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.27.1",
+ "@babel/helper-module-imports": "^7.27.1",
+ "@babel/helper-plugin-utils": "^7.27.1",
+ "@babel/parser": "^7.28.0",
+ "@vue/compiler-sfc": "^3.5.18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sxzz"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@vue/compiler-core": {
+ "version": "3.5.46",
+ "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.46.tgz",
+ "integrity": "sha512-yb+N8/mgBcoeqCJPVyJI/D3OphLrSMXnB3ZQUNmRLU/1fsMW4bFfdJWNi9oIj7+EA3ULKKkP7b/VCpcYQYeiuQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.12",
+ "@vue/shared": "3.5.46",
+ "entities": "^7.0.1",
+ "estree-walker": "^2.0.2",
+ "source-map-js": "^1.2.3"
+ }
+ },
+ "node_modules/@vue/compiler-dom": {
+ "version": "3.5.46",
+ "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.46.tgz",
+ "integrity": "sha512-Bj3lCSw3DQnDRDxw115XqdLDd0+18Nftlgd8OXSGG+ud74hxJIE17eYrM+VWgQrTMsvJbLh9Hzf2MkwAzru36Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-core": "3.5.46",
+ "@vue/shared": "3.5.46"
+ }
+ },
+ "node_modules/@vue/compiler-sfc": {
+ "version": "3.5.46",
+ "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.46.tgz",
+ "integrity": "sha512-hjUvMxGh+QIgegwksfp6BRBYleE/a8veZHvTR6sa+o+bM4HU+WnrUZlhN0X+pDcsl8Lhwmbu72xPvLMk3XUwog==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.12",
+ "@vue/compiler-core": "3.5.46",
+ "@vue/compiler-dom": "3.5.46",
+ "@vue/compiler-ssr": "3.5.46",
+ "@vue/shared": "3.5.46",
+ "estree-walker": "^2.0.2",
+ "magic-string": "^0.30.21",
+ "postcss": "^8.5.32",
+ "source-map-js": "^1.2.3"
+ }
+ },
+ "node_modules/@vue/compiler-ssr": {
+ "version": "3.5.46",
+ "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.46.tgz",
+ "integrity": "sha512-qebChL3aP0m1k+TlSf+fZWvOwAf3flBCi5o+n01ykR3DX4mTIWheFltmoiQ12+z66/4cGeXqbB2P7sPWkGhQNQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-dom": "3.5.46",
+ "@vue/shared": "3.5.46"
+ }
+ },
+ "node_modules/@vue/devtools-api": {
+ "version": "8.2.1",
+ "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-8.2.1.tgz",
+ "integrity": "sha512-6u4vXBlIBAC1wMplIZgpyPn7uh/s4Bf6F5bMzvLv+EdJ0aHs/+4B7Ygv864EStQSjRbsRzTko/kUG1A1IejQ3A==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/devtools-kit": "^8.2.1"
+ }
+ },
+ "node_modules/@vue/devtools-core": {
+ "version": "8.2.1",
+ "resolved": "https://registry.npmjs.org/@vue/devtools-core/-/devtools-core-8.2.1.tgz",
+ "integrity": "sha512-s/VfAY9oDTb/kFEWmy461jaFde2MIV1RO/gi1vwM+PAZBZ/Pc2Ndu3BNBdZUze8QDUuyYvElbEEGA83syjJfzA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vue/devtools-kit": "^8.2.1",
+ "@vue/devtools-shared": "^8.2.1"
+ },
+ "peerDependencies": {
+ "vue": "^3.0.0"
+ }
+ },
+ "node_modules/@vue/devtools-kit": {
+ "version": "8.2.1",
+ "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-8.2.1.tgz",
+ "integrity": "sha512-FIGIuq3AWReEpbAHY/cRGeHDfI0qOb8OCQ3YjbEAX04uaxIDbGc9rhkbVcG7rnfHPXE3RsU5KrWOu9V/okd8AQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/devtools-shared": "^8.2.1",
+ "birpc": "^2.6.1",
+ "hookable": "^5.5.3",
+ "perfect-debounce": "^2.0.0"
+ }
+ },
+ "node_modules/@vue/devtools-shared": {
+ "version": "8.2.1",
+ "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-8.2.1.tgz",
+ "integrity": "sha512-Fkac7lUdGReh6pVOi3AYPRGe82LQqRmAfThW7RRligOAP0ZA/Z1z9XLHDM9dv34pV2HRc79DK8uKPeG2fLnA/g==",
+ "license": "MIT"
+ },
+ "node_modules/@vue/eslint-config-typescript": {
+ "version": "14.9.0",
+ "resolved": "https://registry.npmjs.org/@vue/eslint-config-typescript/-/eslint-config-typescript-14.9.0.tgz",
+ "integrity": "sha512-E3j9hDlfVf10F30MRcLTPY2IIhWIx1nsvkVukk14kTcuA+oBVot9zsP1hzsO+PAMDxV3Fd9FimBJtUBNBL5KFA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/utils": "^8.60.0",
+ "fast-glob": "^3.3.3",
+ "typescript-eslint": "^8.60.0",
+ "vue-eslint-parser": "^10.4.0"
+ },
+ "bin": {
+ "vue-eslint-config-typescript": "dist/bin.js"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "peerDependencies": {
+ "eslint": "^9.10.0 || ^10.0.0",
+ "eslint-plugin-vue": "^9.28.0 || ^10.0.0",
+ "typescript": ">=4.8.4"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vue/language-core": {
+ "version": "3.3.14",
+ "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-3.3.14.tgz",
+ "integrity": "sha512-kRB+3hHg0c+BdD1XLAvwjVMQd5pC05zijSlPDRI3ERvC/s04JlRs5upy2KjeMg/9m9oD5zuMVh9yVvkKfZqoJg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@volar/language-core": "2.4.30",
+ "@vue/compiler-dom": "^3.5.0",
+ "@vue/shared": "^3.5.0",
+ "alien-signals": "^3.2.1",
+ "muggle-string": "^0.4.1",
+ "path-browserify": "^1.0.1",
+ "picomatch": "^4.0.4"
+ }
+ },
+ "node_modules/@vue/language-core/node_modules/picomatch": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/@vue/reactivity": {
+ "version": "3.5.46",
+ "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.46.tgz",
+ "integrity": "sha512-+FHtYTvGxgFoX3oRs7soz6JHizGv50Q26WJN6PWtXuTLXRfkfUpDUTRuoTA/kiZVVt8NMeMpsPQLh9h++ReUjQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/shared": "3.5.46"
+ }
+ },
+ "node_modules/@vue/runtime-core": {
+ "version": "3.5.46",
+ "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.46.tgz",
+ "integrity": "sha512-eJUzKAUaHAmtnys/l9qduPzUnBrYMkmsCU7TN+vbSOSpm8kcETT7nacKxIO4MBej/XiOraVzq+lSeZv7o1//jQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/reactivity": "3.5.46",
+ "@vue/shared": "3.5.46"
+ }
+ },
+ "node_modules/@vue/runtime-dom": {
+ "version": "3.5.46",
+ "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.46.tgz",
+ "integrity": "sha512-6L7lbBvXTYBFFjIt25a0pgdpmn3Ns8RqUnNVibRzF4bgyiWJvqOhKEV5MXYWKlCttZE3aGeJN8mveo+6IrIKXA==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/reactivity": "3.5.46",
+ "@vue/runtime-core": "3.5.46",
+ "@vue/shared": "3.5.46",
+ "csstype": "^3.2.4"
+ }
+ },
+ "node_modules/@vue/server-renderer": {
+ "version": "3.5.46",
+ "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.46.tgz",
+ "integrity": "sha512-4mc0YWREc6OZ5pDCigvKPDzIUV+aciiH92yvyTS6xaHHxW/80rMceQQn11pYe7OEEBt2YQgYWR9zF8QF30GJUQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-ssr": "3.5.46",
+ "@vue/runtime-dom": "3.5.46",
+ "@vue/shared": "3.5.46"
+ }
+ },
+ "node_modules/@vue/shared": {
+ "version": "3.5.46",
+ "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.46.tgz",
+ "integrity": "sha512-P1WePbdzHrcIciWtmY2Im9EFhdakd3rZxYqvalOa3SfoxtF35Q8Uhmj1tKn6bWP4utcOpN8ao6BoJUItq0Uf+g==",
+ "license": "MIT"
+ },
+ "node_modules/@vue/test-utils": {
+ "version": "2.6.0",
+ "resolved": "https://registry.npmjs.org/@vue/test-utils/-/test-utils-2.6.0.tgz",
+ "integrity": "sha512-kTB6s2p34cA/xXSpt17G0enU9A3F3pdm+o5GZgE3WGXXXpXJ5SVBsRhgCJNCc+ekGAzY0T7Hjyo5yEfwencBlg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "js-beautify": "^2.0.0",
+ "vue-component-type-helpers": "^3.0.0"
+ },
+ "peerDependencies": {
+ "@vue/compiler-dom": "3.x",
+ "@vue/server-renderer": "3.x",
+ "vue": "3.x"
+ },
+ "peerDependenciesMeta": {
+ "@vue/server-renderer": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vue/tsconfig": {
+ "version": "0.9.1",
+ "resolved": "https://registry.npmjs.org/@vue/tsconfig/-/tsconfig-0.9.1.tgz",
+ "integrity": "sha512-buvjm+9NzLCJL29KY1j1991YYJ5e6275OiK+G4jtmfIb+z4POywbdm0wXusT9adVWqe0xqg70TbI7+mRx4uU9w==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "typescript": ">= 5.8",
+ "vue": "^3.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ },
+ "vue": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/abbrev": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-5.0.0.tgz",
+ "integrity": "sha512-/XrFJgzQQQHpti1raDJC6m4ws6aNktmjBlhk8Fdlk7LwCEuDoieEJJY9OFHjfiFJFFRM2tK+Ky/IsfbbmlMu1w==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
+ }
+ },
+ "node_modules/acorn": {
+ "version": "8.19.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz",
+ "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==",
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "6.15.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",
+ "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/alien-signals": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-3.2.1.tgz",
+ "integrity": "sha512-I8FjmltrfnDFoZedi5CG8DghVYNhzb/Ijluz7tCSJH0xpd0484Kowhbb1XDYOxfJpU1p5wnM2X54dA+IfGyD1g==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/ansis": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/ansis/-/ansis-4.5.0.tgz",
+ "integrity": "sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=14"
+ }
+ },
+ "node_modules/argsclopts": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/argsclopts/-/argsclopts-1.1.1.tgz",
+ "integrity": "sha512-6WxZv61e68WtkWfKkZSMJ85ErP5DKMr2O8J9cJ9AF/55fAJKq4PzPyVCmP26LGqtqyYhbLcZCAwlUiACYl0sZQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^22.13.0 || >=24",
+ "npm": ">=10"
+ },
+ "funding": {
+ "type": "individual",
+ "url": "https://github.com/sponsors/bcomnes"
+ }
+ },
+ "node_modules/assertion-error": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",
+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/ast-kit": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/ast-kit/-/ast-kit-2.2.0.tgz",
+ "integrity": "sha512-m1Q/RaVOnTp9JxPX+F+Zn7IcLYMzM8kZofDImfsKZd8MbR+ikdOzTeztStWqfrqIxZnYWryyI9ePm3NGjnZgGw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.28.5",
+ "pathe": "^2.0.3"
+ },
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sxzz"
+ }
+ },
+ "node_modules/ast-walker-scope": {
+ "version": "0.10.0",
+ "resolved": "https://registry.npmjs.org/ast-walker-scope/-/ast-walker-scope-0.10.0.tgz",
+ "integrity": "sha512-KzvoxDfXNz2Gm8KYLh47K3qcY3Zza3WKOuh2xoqa7LBu6MDKWAZLovJtU9DuAd/Er+rhQHCRn619lHS5U+qmhw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^8.0.0",
+ "@babel/types": "^8.0.0",
+ "ast-kit": "^3.0.0"
+ },
+ "engines": {
+ "node": "^22.18.0 || >=24.11.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sxzz"
+ }
+ },
+ "node_modules/ast-walker-scope/node_modules/@babel/helper-string-parser": {
+ "version": "8.1.3",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-8.1.3.tgz",
+ "integrity": "sha512-5HTuREtgj0xIc345zU4gtD2+3vIPkZpJw7wUYytt/mzBTQN2mWpGr1nxYiocYa2E8sWggRkrSg/k7BK51pAxIg==",
+ "license": "MIT",
+ "engines": {
+ "node": "^22.18.0 || >=24.11.0"
+ }
+ },
+ "node_modules/ast-walker-scope/node_modules/@babel/helper-validator-identifier": {
+ "version": "8.0.6",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-8.0.6.tgz",
+ "integrity": "sha512-HYx0YmuchRxRSpnjvcNffnPS8DCauKNmnumIuHG3jnQAVewRA7kfJGwF13ayEpSZs7s4R/oBH4eppuXcAQd5JQ==",
+ "license": "MIT",
+ "engines": {
+ "node": "^22.18.0 || >=24.11.0"
+ }
+ },
+ "node_modules/ast-walker-scope/node_modules/@babel/parser": {
+ "version": "8.1.3",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-8.1.3.tgz",
+ "integrity": "sha512-v3ck2WN7jn8gEJlEfIDEwTM8dCBjOac1CZjolvB6/r0O1ome6E7xS2cDQEOQqESRQZWWrLrhnjxD0qjmZ8QBgg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^8.1.3"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": "^22.18.0 || >=24.11.0"
+ }
+ },
+ "node_modules/ast-walker-scope/node_modules/@babel/types": {
+ "version": "8.1.3",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-8.1.3.tgz",
+ "integrity": "sha512-eBREGwDHRPHtdsg44t071GE2KRDEuJrf0J2uT5/qvJPB2+pfPZOKlx93dMZOFkE7QW5G0JWoczySD7a01Jf0iw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^8.1.3",
+ "@babel/helper-validator-identifier": "^8.0.6"
+ },
+ "engines": {
+ "node": "^22.18.0 || >=24.11.0"
+ }
+ },
+ "node_modules/ast-walker-scope/node_modules/ast-kit": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/ast-kit/-/ast-kit-3.0.1.tgz",
+ "integrity": "sha512-fCGiQvmHghhf858e/SVGh2aUo/FsbtB5qB8bifo6ygHK5OMcGna56FUvS0IrYvo+unYwIi1nCklEh/KUaOKVmg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^8.1.0",
+ "estree-walker": "^3.0.3",
+ "pathe": "^2.0.3"
+ },
+ "engines": {
+ "node": "^22.18.0 || >=24.11.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sxzz"
+ }
+ },
+ "node_modules/ast-walker-scope/node_modules/estree-walker": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.0"
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.11.39",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.39.tgz",
+ "integrity": "sha512-Q9buOYhr2ggrEZpImICecZTJHCCd8yXkRUokFlUEQ8uiD6oP82F4W4jWnhOHZYV+wlvrC51V7Wy0ULyWjil5Wg==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/bidi-js": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.1.0.tgz",
+ "integrity": "sha512-fX1Onk0tdVPC7obPWB5EbJ1z7NVhLq4m2xZLq2YXBkxzMXIGRpNMU88n0EPgWseKl12J7zXs7qrDxPK4sRs2fg==",
+ "license": "MIT",
+ "dependencies": {
+ "require-from-string": "^2.0.2"
+ }
+ },
+ "node_modules/birpc": {
+ "version": "2.9.0",
+ "resolved": "https://registry.npmjs.org/birpc/-/birpc-2.9.0.tgz",
+ "integrity": "sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ }
+ },
+ "node_modules/boolbase": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
+ "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/bootstrap": {
+ "version": "5.3.9",
+ "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.9.tgz",
+ "integrity": "sha512-20cU0rcfw8WdxtVbmfU+xT2EjvVTw9Ror/h1Qvd7DXCujRg8OO9mdBCsmTHdJFf3BuadmBNJtgIuUXsBqSkk/w==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/twbs"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/bootstrap"
+ }
+ ],
+ "license": "MIT",
+ "peerDependencies": {
+ "@popperjs/core": "^2.11.8"
+ }
+ },
+ "node_modules/bootstrap-icons": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.13.2.tgz",
+ "integrity": "sha512-fAU1Ly3dH7hwRg+CB8EZ0Vl0fF80zgXHeUVJyfUOKzoURr+TbwISbCW5tKUoQLERaWYG2emTCybcPbD96hdD1A==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/twbs"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/bootstrap"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/brace-expansion": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.1.0.tgz",
+ "integrity": "sha512-aa11Dv491GKnYqxaul3aRJ0szew7yMJMfZPnqD44NjGrZXoj62l41OEDDpdpC4eE2P88vBFfLuSyRhpG91NUvg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^4.0.2"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fill-range": "^7.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.29.6",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.6.tgz",
+ "integrity": "sha512-CmVVIQ3RVc5HxYEc9X84GvxK/C8C1wH8TlKAiO7uTxF8PDwt7r8t9Qk3J9NkMOVzX5O/HbLv3yzxZg9HPrnI9w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "baseline-browser-mapping": "^2.11.37",
+ "caniuse-lite": "^1.0.30001826",
+ "electron-to-chromium": "^1.5.486",
+ "node-releases": "^2.0.64",
+ "update-browserslist-db": "^1.4.0"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/bundle-name": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.1.tgz",
+ "integrity": "sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "run-applescript": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cacheable": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.5.0.tgz",
+ "integrity": "sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@cacheable/memory": "^2.2.0",
+ "@cacheable/utils": "^2.5.0",
+ "hookified": "^1.15.0",
+ "keyv": "^5.6.0",
+ "qified": "^0.10.1"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001827",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001827.tgz",
+ "integrity": "sha512-YWEDr46gSO81M8w6uPbaIy4++IXsirx2asUqvllNiD4BPf75ibxclUjWEqp8ObCenRv+UM2n5Y8xuRPT8V8FrQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/chai": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/chai/-/chai-6.3.0.tgz",
+ "integrity": "sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/chokidar": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-6.0.0.tgz",
+ "integrity": "sha512-Ec2Z7wpcKBiMpR7DxteoqS/sq5G5d2A4fpxzPv6+fD7xNNdrTghn7L11YwV5EN1B3i72Erc3XVT5FkWIDx90+A==",
+ "license": "MIT",
+ "dependencies": {
+ "readdirp": "^5.1.1"
+ },
+ "engines": {
+ "node": ">= 22.22"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/commander": {
+ "version": "14.0.3",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.3.tgz",
+ "integrity": "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/confbox": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.3.2.tgz",
+ "integrity": "sha512-ZUAKhKlkCOrIGKc8cj7zek9s9z1mveHif/25nUshI2BzCRzF7KH7KHa+Lnh2ubq+e1tIlaFuP763mzW4qVoehg==",
+ "license": "MIT"
+ },
+ "node_modules/config-chain": {
+ "version": "1.1.13",
+ "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz",
+ "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ini": "^1.3.4",
+ "proto-list": "~1.2.1"
+ }
+ },
+ "node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/css-tree": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz",
+ "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mdn-data": "2.27.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.4.tgz",
+ "integrity": "sha512-PoKaoPzQapnEoqUSnHx1u6W6ku8CVEgKsnpmmzU3m1nwkidpPBQ8V/Zq2+bWNrsOKoKLwTGdbx6xF7BXP1zLVQ==",
+ "license": "MIT"
+ },
+ "node_modules/data-urls": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-8.0.0.tgz",
+ "integrity": "sha512-JQUCCK+/CAGbGGx618PlFZMXH81Jtj7t73CHv9dd/zVWvxgGT2zLFRjnKb+Ng46GIwcy+f7f88qd4duqllK+WQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "whatwg-mimetype": "^5.0.0",
+ "whatwg-url": "^17.1.2"
+ },
+ "engines": {
+ "node": "^22.14.0 || >=24.0.0"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/decimal.js": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz",
+ "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/default-browser": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.5.1.tgz",
+ "integrity": "sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bundle-name": "^4.1.0",
+ "default-browser-id": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/default-browser-id": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz",
+ "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/define-lazy-prop": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz",
+ "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/detect-libc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "devOptional": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/earcut": {
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/earcut/-/earcut-3.2.4.tgz",
+ "integrity": "sha512-FHc6yNpnTORB0tM5kmZ03iD2mDuNakDE2lvf4Hw1XkfxtEHIGVi01B/GqUSwx+NcC1WGjidAfpTXzeALtPtfpg==",
+ "license": "ISC"
+ },
+ "node_modules/editorconfig": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-3.0.2.tgz",
+ "integrity": "sha512-T0ix8GhtxyKVfUFEcvdNDt3YGqlwkFHbD4/5bgFUDgFmxhI/cSRAeJ87/Sz//Cq8Eam6JX/e23RkoFO71P7aAA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@one-ini/wasm": "0.2.1",
+ "commander": "^14.0.3",
+ "minimatch": "~10.2.4",
+ "semver": "^7.7.4"
+ },
+ "bin": {
+ "editorconfig": "bin/editorconfig"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/editorconfig/node_modules/minimatch": {
+ "version": "10.2.6",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
+ "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "brace-expansion": "^5.0.8"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.493",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.493.tgz",
+ "integrity": "sha512-/Wto2sKd0EpepzMqwSP2il2TNc+rnBDF6k1poCvhRKpaSSD4sLGRBE+FydqHs2QwcW9cXKLVDqnauzJy1oByYw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/entities": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz",
+ "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.12"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/error-stack-parser-es": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/error-stack-parser-es/-/error-stack-parser-es-1.0.5.tgz",
+ "integrity": "sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ }
+ },
+ "node_modules/es-module-lexer": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz",
+ "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint": {
+ "version": "10.15.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.15.0.tgz",
+ "integrity": "sha512-+5Wg4p+ze3sG1WErYgUO/3H1IQIfFBymVUA0Fo/XTeBOLS6UQIUekpSJ8sdRkn7O7wjh84b55w/roqavH2aScg==",
+ "dev": true,
+ "license": "MIT",
+ "workspaces": [
+ "packages/*"
+ ],
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.8.0",
+ "@eslint-community/regexpp": "^4.12.2",
+ "@eslint/config-array": "^0.23.6",
+ "@eslint/config-helpers": "^0.7.0",
+ "@eslint/core": "^1.2.1",
+ "@eslint/plugin-kit": "^0.7.3",
+ "@humanfs/node": "^0.16.8",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@humanwhocodes/retry": "^0.4.2",
+ "@types/estree": "^1.0.6",
+ "ajv": "^6.14.0",
+ "cross-spawn": "^7.0.6",
+ "debug": "^4.3.2",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^9.1.2",
+ "eslint-visitor-keys": "^5.0.1",
+ "espree": "^11.2.0",
+ "esquery": "^1.7.0",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "11.1.5 || >11.1.6 <12",
+ "find-up": "^5.0.0",
+ "glob-parent": "^6.0.2",
+ "ignore": "^5.2.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "minimatch": "^11.0.5",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.3"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "jiti": "*"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-config-prettier": {
+ "version": "10.1.8",
+ "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.8.tgz",
+ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "eslint-config-prettier": "bin/cli.js"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint-config-prettier"
+ },
+ "peerDependencies": {
+ "eslint": ">=7.0.0"
+ }
+ },
+ "node_modules/eslint-plugin-oxlint": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-oxlint/-/eslint-plugin-oxlint-1.82.0.tgz",
+ "integrity": "sha512-El97zhbwvf2wAzx0zBHxxlo2CurWeUZiUKEmKX6JOgSKqA362v+iqZ5xP5BLRjAqJichh6ZMMKrsPFvOdipOpA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "jsonc-parser": "^3.3.1"
+ },
+ "peerDependencies": {
+ "oxlint": "~1.82.0"
+ }
+ },
+ "node_modules/eslint-plugin-vue": {
+ "version": "10.11.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-10.11.1.tgz",
+ "integrity": "sha512-pasVXhl7wUmIvhujoqs/m0mJ9r59QW1IR9XXYKGR0FETzSM+Hhlf4qKIYgWiDDP+9YKv4YfbwskD7LqIdVcgQw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.9.1",
+ "natural-compare": "^1.4.0",
+ "nth-check": "^2.1.1",
+ "postcss-selector-parser": "^7.1.4",
+ "semver": "^7.8.5",
+ "xml-name-validator": "^5.0.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "peerDependencies": {
+ "@stylistic/eslint-plugin": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0",
+ "@typescript-eslint/parser": "^7.0.0 || ^8.0.0",
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "vue-eslint-parser": "^10.3.0"
+ },
+ "peerDependenciesMeta": {
+ "@stylistic/eslint-plugin": {
+ "optional": true
+ },
+ "@typescript-eslint/parser": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-scope": {
+ "version": "9.1.2",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz",
+ "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "@types/esrecurse": "^4.3.1",
+ "@types/estree": "^1.0.8",
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint/node_modules/eslint-visitor-keys": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
+ "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/espree": {
+ "version": "11.2.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz",
+ "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "acorn": "^8.16.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^5.0.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/espree/node_modules/eslint-visitor-keys": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
+ "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/esquery": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",
+ "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estree-walker": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
+ "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
+ "license": "MIT"
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/expect-type": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz",
+ "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/exsolve": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.2.0.tgz",
+ "integrity": "sha512-h1pQPR9XoeSMdntRNCjyTznaume4UpfXrULBnlkZ2CUM/G5eSa+pBByGldO5uR8dxbPC+OuJXsPPNf+JZ81ADg==",
+ "license": "MIT"
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-glob": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",
+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.2",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.8"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ }
+ },
+ "node_modules/fast-glob/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fastq": {
+ "version": "1.20.3",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz",
+ "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "node_modules/file-entry-cache": {
+ "version": "11.1.5",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-11.1.5.tgz",
+ "integrity": "sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flat-cache": "^6.1.23"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/flat-cache": {
+ "version": "6.1.23",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.23.tgz",
+ "integrity": "sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cacheable": "^2.5.0",
+ "flatted": "^3.4.2",
+ "hookified": "^1.15.0"
+ }
+ },
+ "node_modules/flatted": {
+ "version": "3.4.4",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz",
+ "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/gensync": {
+ "version": "1.0.0-beta.2",
+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/gl-matrix": {
+ "version": "3.4.4",
+ "resolved": "https://registry.npmjs.org/gl-matrix/-/gl-matrix-3.4.4.tgz",
+ "integrity": "sha512-latSnyDNt/8zYUB6VIJ6PCh2jBjJX6gnDsoCZ7LyW7GkqrD51EWwa9qCoGixj8YqBtETQK/xY7OmpTF8xz1DdQ==",
+ "license": "MIT"
+ },
+ "node_modules/glob": {
+ "version": "13.0.7",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.7.tgz",
+ "integrity": "sha512-wfsFgXQ8A3SEI9XGf7Nl3Y9l7ffSrGh7SUCT7vU/2CzYPep9kjxAn1S40F9OPKxAMGCVl7HtNlJhrCJUeUq83g==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "minimatch": "^10.2.2",
+ "minipass": "^7.1.3",
+ "path-scurry": "^2.0.2"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/glob/node_modules/minimatch": {
+ "version": "10.2.6",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
+ "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "brace-expansion": "^5.0.8"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/hashery": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz",
+ "integrity": "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hookified": "^1.15.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/hookable": {
+ "version": "5.5.3",
+ "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz",
+ "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==",
+ "license": "MIT"
+ },
+ "node_modules/hookified": {
+ "version": "1.15.1",
+ "resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz",
+ "integrity": "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/html-encoding-sniffer": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-7.0.0.tgz",
+ "integrity": "sha512-UikN5yr7xsCDAq87Or5or0PAlD3HJJOKVzM05az588WnpDJ4Ux7a2A53Qi6gofGg2/EtvF/H4hCi/TXfCW4Y6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@exodus/bytes": "^1.15.1"
+ },
+ "engines": {
+ "node": "^22.13.0 || >=24.0.0"
+ }
+ },
+ "node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
+ "node_modules/ini": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/is-docker": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",
+ "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "is-docker": "cli.js"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-in-ssh": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-in-ssh/-/is-in-ssh-1.0.0.tgz",
+ "integrity": "sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-inside-container": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz",
+ "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-docker": "^3.0.0"
+ },
+ "bin": {
+ "is-inside-container": "cli.js"
+ },
+ "engines": {
+ "node": ">=14.16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/is-potential-custom-element-name": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",
+ "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/is-wsl": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz",
+ "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-inside-container": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/jiti": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",
+ "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",
+ "devOptional": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "lib/jiti-cli.mjs"
+ }
+ },
+ "node_modules/js-beautify": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-2.0.3.tgz",
+ "integrity": "sha512-cyFbh3tkPhknnTD/0bLf0T0yy2ZIbqL05mttzbt4y1Zfr7NxqXQZ62dkBLKs3oHH/lpjmDRAnciJiSUyOy8XwQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "config-chain": "^1.1.13",
+ "editorconfig": "^3.0.2",
+ "glob": "^13.0.6",
+ "js-cookie": "^3.0.8",
+ "nopt": "^10.0.1"
+ },
+ "bin": {
+ "css-beautify": "js/bin/css-beautify.js",
+ "html-beautify": "js/bin/html-beautify.js",
+ "js-beautify": "js/bin/js-beautify.js"
+ },
+ "engines": {
+ "node": ">=14"
+ }
+ },
+ "node_modules/js-cookie": {
+ "version": "3.0.8",
+ "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.8.tgz",
+ "integrity": "sha512-yeJd4aNAdYZQjaon2bpD/Gb0B/omw7HQOsynXXcOiWVCacbBcPlgn8S/d1X6blFSaHao7ozqtW7NZW19xpCtIw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/jsdom": {
+ "version": "30.1.3",
+ "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-30.1.3.tgz",
+ "integrity": "sha512-hQMUPvRgN7KxsfIytDQji7bimuJeRQa6Qo5+iuiZQk5CafeRxLIA10/cG5YCBFNpD9RO3oqIiN4CO1Y44kxqXg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@asamuzakjp/css-color": "^7.1.3",
+ "@asamuzakjp/dom-selector": "^10.0.3",
+ "@bramus/specificity": "^2.4.2",
+ "@csstools/css-syntax-patches-for-csstree": "^1.1.15",
+ "@exodus/bytes": "^1.16.0",
+ "css-tree": "^3.2.1",
+ "data-urls": "^8.0.0",
+ "decimal.js": "^10.6.0",
+ "html-encoding-sniffer": "^7.0.0",
+ "is-potential-custom-element-name": "^1.0.1",
+ "lru-cache": "^11.5.3",
+ "parse5": "^8.0.1",
+ "saxes": "^6.0.0",
+ "tough-cookie": "^6.0.2",
+ "undici": "^8.12.1",
+ "w3c-xmlserializer": "^6.0.0",
+ "webidl-conversions": "^8.0.1",
+ "whatwg-mimetype": "^5.0.0",
+ "whatwg-url": "^17.2.0",
+ "xml-name-validator": "^5.0.0"
+ },
+ "engines": {
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
+ },
+ "peerDependencies": {
+ "canvas": "^3.2.3"
+ },
+ "peerDependenciesMeta": {
+ "canvas": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/jsesc": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/json-parse-even-better-errors": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-6.0.0.tgz",
+ "integrity": "sha512-2/8adwnK1/+Fdjyts4r6wSpfANWw8zdNhU9U/Llk59c6O+DjSisPWPykwoL8gZmocP9Dy64S7oie2g+Mia123A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
+ }
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-stringify-pretty-compact": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/json-stringify-pretty-compact/-/json-stringify-pretty-compact-4.0.0.tgz",
+ "integrity": "sha512-3CNZ2DnrpByG9Nqj6Xo8vqbjT4F6N+tb4Gb28ESAZjYZ5yqvmc56J+/kuIwkaAMOyblTQhUW7PxMkUb8Q36N3Q==",
+ "license": "MIT"
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/jsonc-parser": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz",
+ "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/kdbush": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/kdbush/-/kdbush-4.1.0.tgz",
+ "integrity": "sha512-e9vurzrXJQrFX6ckpHP3bvj5l+9CnYzkxDNnNQ1h2QTqdWsUAJgXiKdGNcOa1EY85dU8KbQ+z/FdQdB7P+9yfQ==",
+ "license": "ISC"
+ },
+ "node_modules/keyv": {
+ "version": "5.6.0",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz",
+ "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@keyv/serialize": "^1.1.1"
+ }
+ },
+ "node_modules/kolorist": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/kolorist/-/kolorist-1.8.0.tgz",
+ "integrity": "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/lightningcss": {
+ "version": "1.33.0",
+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz",
+ "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==",
+ "devOptional": true,
+ "license": "MPL-2.0",
+ "dependencies": {
+ "detect-libc": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ },
+ "optionalDependencies": {
+ "lightningcss-android-arm64": "1.33.0",
+ "lightningcss-darwin-arm64": "1.33.0",
+ "lightningcss-darwin-x64": "1.33.0",
+ "lightningcss-freebsd-x64": "1.33.0",
+ "lightningcss-linux-arm-gnueabihf": "1.33.0",
+ "lightningcss-linux-arm64-gnu": "1.33.0",
+ "lightningcss-linux-arm64-musl": "1.33.0",
+ "lightningcss-linux-x64-gnu": "1.33.0",
+ "lightningcss-linux-x64-musl": "1.33.0",
+ "lightningcss-win32-arm64-msvc": "1.33.0",
+ "lightningcss-win32-x64-msvc": "1.33.0"
+ }
+ },
+ "node_modules/lightningcss-android-arm64": {
+ "version": "1.33.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz",
+ "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-arm64": {
+ "version": "1.33.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz",
+ "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-x64": {
+ "version": "1.33.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz",
+ "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-freebsd-x64": {
+ "version": "1.33.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz",
+ "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm-gnueabihf": {
+ "version": "1.33.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz",
+ "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-gnu": {
+ "version": "1.33.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz",
+ "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-musl": {
+ "version": "1.33.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz",
+ "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-gnu": {
+ "version": "1.33.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz",
+ "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-musl": {
+ "version": "1.33.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz",
+ "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-arm64-msvc": {
+ "version": "1.33.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz",
+ "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-x64-msvc": {
+ "version": "1.33.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz",
+ "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/local-pkg": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-2.0.0.tgz",
+ "integrity": "sha512-xvTNwM27EpU+fkLSpo33Pq/nm8m5zNf0aU/hF4W4ZM9RHQjVZa5KTmmXIzEzVsdI09NOUqj0djHhTv96sUowSQ==",
+ "license": "MIT",
+ "dependencies": {
+ "mlly": "^1.8.2",
+ "pkg-types": "^2.3.1",
+ "quansync": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ }
+ },
+ "node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "11.5.3",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz",
+ "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/magic-string": {
+ "version": "0.30.21",
+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.5"
+ }
+ },
+ "node_modules/magic-string-ast": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/magic-string-ast/-/magic-string-ast-1.0.3.tgz",
+ "integrity": "sha512-CvkkH1i81zl7mmb94DsRiFeG9V2fR2JeuK8yDgS8oiZSFa++wWLEgZ5ufEOyLHbvSbD1gTRKv9NdX69Rnvr9JA==",
+ "license": "MIT",
+ "dependencies": {
+ "magic-string": "^0.30.19"
+ },
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sxzz"
+ }
+ },
+ "node_modules/maplibre-gl": {
+ "version": "6.19.0",
+ "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-6.19.0.tgz",
+ "integrity": "sha512-3bOrnfddggUYudLGJFsYFvqulUyvSxy4iQzd/uURI7ZhgYEZifdSrECujRSghaCpc+v/ZsFI0Y6ZsGSilEtE+w==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@mapbox/point-geometry": "^1.1.0",
+ "@mapbox/tiny-sdf": "^2.3.0",
+ "@mapbox/unitbezier": "^1.0.0",
+ "@mapbox/vector-tile": "^3.0.0",
+ "@maplibre/geojson-vt": "^6.3.1",
+ "@maplibre/maplibre-gl-style-spec": "^26.8.0",
+ "@maplibre/mlt": "^1.3.0",
+ "@maplibre/vt-pbf": "^4.3.3",
+ "@types/geojson": "^7946.0.16",
+ "bidi-js": "^1.1.0",
+ "earcut": "^3.2.4",
+ "gl-matrix": "^3.4.4",
+ "kdbush": "^4.1.0",
+ "murmurhash-js": "^1.0.0",
+ "pbf": "^5.1.2",
+ "potpack": "^2.1.0",
+ "quickselect": "^3.0.0",
+ "tinyqueue": "^3.0.0",
+ "zustand": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=16.14.0",
+ "npm": ">=8.1.0"
+ },
+ "funding": {
+ "url": "https://github.com/maplibre/maplibre-gl-js?sponsor=1"
+ }
+ },
+ "node_modules/mdn-data": {
+ "version": "2.27.1",
+ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz",
+ "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==",
+ "dev": true,
+ "license": "CC0-1.0"
+ },
+ "node_modules/merge2": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/micromatch": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "braces": "^3.0.3",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "11.0.9",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz",
+ "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "@isaacs/nonrecursive-glob-match": "^1.1.0",
+ "brace-expansion": "^5.0.12"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/minimist": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/minipass": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",
+ "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/mlly": {
+ "version": "1.8.2",
+ "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.2.tgz",
+ "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==",
+ "license": "MIT",
+ "dependencies": {
+ "acorn": "^8.16.0",
+ "pathe": "^2.0.3",
+ "pkg-types": "^1.3.1",
+ "ufo": "^1.6.3"
+ }
+ },
+ "node_modules/mlly/node_modules/confbox": {
+ "version": "0.1.8",
+ "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz",
+ "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==",
+ "license": "MIT"
+ },
+ "node_modules/mlly/node_modules/pkg-types": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz",
+ "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==",
+ "license": "MIT",
+ "dependencies": {
+ "confbox": "^0.1.8",
+ "mlly": "^1.7.4",
+ "pathe": "^2.0.1"
+ }
+ },
+ "node_modules/mrmime": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz",
+ "integrity": "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/muggle-string": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz",
+ "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==",
+ "license": "MIT"
+ },
+ "node_modules/murmurhash-js": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/murmurhash-js/-/murmurhash-js-1.0.0.tgz",
+ "integrity": "sha512-TvmkNhkv8yct0SVBSy+o8wYzXjE4Zz3PCesbfs8HiCXXdcTuocApFv11UWlNFWKYsP2okqrhb7JNlSm9InBhIw==",
+ "license": "MIT"
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.20",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz",
+ "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.65",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.65.tgz",
+ "integrity": "sha512-PfvofsGQ+MiOQIPkX9fU8ELUWmy5zL74CdQaph/ismKszfFkfwXaw0cGiwbwym2hT9k5+mdyl8O5WQ1MD8EHmA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/nopt": {
+ "version": "10.0.1",
+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-10.0.1.tgz",
+ "integrity": "sha512-df3sBr/6ax9hSGuC3CspvLlbnX8cP5L5nZwXF8cGN8l0zSWR6BvzmQ6jPUKjvo6+/xdpkNvEcucBNUdBeeV13g==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "abbrev": "^5.0.0"
+ },
+ "bin": {
+ "nopt": "bin/nopt.js"
+ },
+ "engines": {
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
+ }
+ },
+ "node_modules/nostics": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/nostics/-/nostics-1.4.0.tgz",
+ "integrity": "sha512-WjXHOuNuzY3MPKOoCT2zL1Sa3cS2mOUe4o8F94JvBOH2cGfyNItbQmCb2pNHIxoodd5O+vtmmHq7PoSZVGgCHA==",
+ "license": "MIT"
+ },
+ "node_modules/npm-normalize-package-bin": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-6.0.0.tgz",
+ "integrity": "sha512-tdt4aFn9QamlhdN3HV2D2ccpBwO5/fyjjbXUxYA6uBjyekMZcZvDq0aSj9t5Jo+tih6AYFnt/cuIRn9013e0Uw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
+ }
+ },
+ "node_modules/npm-run-all2": {
+ "version": "9.1.0",
+ "resolved": "https://registry.npmjs.org/npm-run-all2/-/npm-run-all2-9.1.0.tgz",
+ "integrity": "sha512-zYpHPU7vMd/GeR1rRa4ZCd+Xt8/OdTSQELWeje6SE+amea/nWfyiYLj33h14G7w2odDzDH0sdXqBCrHgKSwjXA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argsclopts": "^1.1.1",
+ "cross-spawn": "^7.0.6",
+ "picomatch": "^4.0.2",
+ "pidtree": "^1.0.0",
+ "read-package-json-fast": "^6.0.0",
+ "shell-quote": "^1.12.0",
+ "which": "^7.0.0"
+ },
+ "bin": {
+ "npm-run-all": "bin/npm-run-all/index.js",
+ "npm-run-all2": "bin/npm-run-all/index.js",
+ "run-p": "bin/run-p/index.js",
+ "run-s": "bin/run-s/index.js"
+ },
+ "engines": {
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0",
+ "npm": ">= 10"
+ }
+ },
+ "node_modules/npm-run-all2/node_modules/isexe": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-4.0.0.tgz",
+ "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/npm-run-all2/node_modules/picomatch": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/npm-run-all2/node_modules/which": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/which/-/which-7.0.0.tgz",
+ "integrity": "sha512-RancgH2dmbLdHl6LRhEqvklWMgl/Hdnun0Y90KhBOLkMefg8Qa7/Zel8Sm+8HEcP6DEjzsWzpkuBQEZok58isA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^4.0.0"
+ },
+ "bin": {
+ "node-which": "bin/which.js"
+ },
+ "engines": {
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
+ }
+ },
+ "node_modules/nth-check": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
+ "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "boolbase": "^1.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/nth-check?sponsor=1"
+ }
+ },
+ "node_modules/obug": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/obug/-/obug-2.2.1.tgz",
+ "integrity": "sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==",
+ "dev": true,
+ "funding": [
+ "https://github.com/sponsors/sxzz",
+ "https://opencollective.com/debug"
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.20.0"
+ }
+ },
+ "node_modules/ohash": {
+ "version": "2.0.12",
+ "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.12.tgz",
+ "integrity": "sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/open": {
+ "version": "11.0.4",
+ "resolved": "https://registry.npmjs.org/open/-/open-11.0.4.tgz",
+ "integrity": "sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "default-browser": "^5.5.1",
+ "define-lazy-prop": "^3.0.0",
+ "is-in-ssh": "^1.0.0",
+ "is-inside-container": "^1.0.0",
+ "powershell-utils": "^0.2.1",
+ "wsl-utils": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/optionator": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0",
+ "word-wrap": "^1.2.5"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/oxlint": {
+ "version": "1.82.0",
+ "resolved": "https://registry.npmjs.org/oxlint/-/oxlint-1.82.0.tgz",
+ "integrity": "sha512-+iFM1BGw1ntYJt3QngbJmjbrGxPaKMUADOXOijpWGnYcBPq8YZnQftSS1C+pVcDYy9YxqDVJKQqQkTazTQMboQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "oxlint": "bin/oxlint"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/oxc-project"
+ },
+ "optionalDependencies": {
+ "@oxlint/binding-android-arm-eabi": "1.82.0",
+ "@oxlint/binding-android-arm64": "1.82.0",
+ "@oxlint/binding-darwin-arm64": "1.82.0",
+ "@oxlint/binding-darwin-x64": "1.82.0",
+ "@oxlint/binding-freebsd-x64": "1.82.0",
+ "@oxlint/binding-linux-arm-gnueabihf": "1.82.0",
+ "@oxlint/binding-linux-arm-musleabihf": "1.82.0",
+ "@oxlint/binding-linux-arm64-gnu": "1.82.0",
+ "@oxlint/binding-linux-arm64-musl": "1.82.0",
+ "@oxlint/binding-linux-ppc64-gnu": "1.82.0",
+ "@oxlint/binding-linux-riscv64-gnu": "1.82.0",
+ "@oxlint/binding-linux-riscv64-musl": "1.82.0",
+ "@oxlint/binding-linux-s390x-gnu": "1.82.0",
+ "@oxlint/binding-linux-x64-gnu": "1.82.0",
+ "@oxlint/binding-linux-x64-musl": "1.82.0",
+ "@oxlint/binding-openharmony-arm64": "1.82.0",
+ "@oxlint/binding-win32-arm64-msvc": "1.82.0",
+ "@oxlint/binding-win32-ia32-msvc": "1.82.0",
+ "@oxlint/binding-win32-x64-msvc": "1.82.0"
+ },
+ "peerDependencies": {
+ "oxlint-tsgolint": ">=7.0.2001",
+ "vite-plus": "*"
+ },
+ "peerDependenciesMeta": {
+ "oxlint-tsgolint": {
+ "optional": true
+ },
+ "vite-plus": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/parse5": {
+ "version": "8.1.1",
+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.1.1.tgz",
+ "integrity": "sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "entities": "^9.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/inikulin/parse5?sponsor=1"
+ }
+ },
+ "node_modules/parse5/node_modules/entities": {
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-9.0.0.tgz",
+ "integrity": "sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/path-browserify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz",
+ "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-scurry": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz",
+ "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "lru-cache": "^11.0.0",
+ "minipass": "^7.1.2"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/pathe": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
+ "license": "MIT"
+ },
+ "node_modules/pbf": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/pbf/-/pbf-5.2.0.tgz",
+ "integrity": "sha512-R6YptaRZl0t9SVO6MllszYq1IkaOQawzprndmvQxEoFrtvX7fT+oNIPoVD152NOllmLWEC3ThxzUTqBX12q5FQ==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "protocol-buffers-schema": "^3.6.1"
+ },
+ "bin": {
+ "pbf": "bin/pbf"
+ }
+ },
+ "node_modules/perfect-debounce": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.1.0.tgz",
+ "integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==",
+ "license": "MIT"
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/pidtree": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-1.0.0.tgz",
+ "integrity": "sha512-avfAvjB9Dd0wdj3rjJX//yS+G79OO0KrS5pJHFJENjYGX6N4SMgEDBBI/yFy0lloOYSaC6XQxzpOAMPfSYFV/Q==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "pidtree": "bin/pidtree.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/pkg-types": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.4.0.tgz",
+ "integrity": "sha512-07Fys7iVx0X6TcviMOgogM1Lk33ZyqOezMnU79S+kffWqwolG/5W9V8EgQSeYCIfFTYVgssRbnH630Oa2+soBA==",
+ "license": "MIT",
+ "dependencies": {
+ "confbox": "^0.3.1",
+ "exsolve": "^1.1.3",
+ "pathe": "^2.0.3"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.33",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.33.tgz",
+ "integrity": "sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.20",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.2"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/postcss-selector-parser": {
+ "version": "7.2.1",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.2.1.tgz",
+ "integrity": "sha512-GwxlMgTTXwIom+ebC7an3k6RaJDwklRQQnfiXsLPGicu8FYV/k/+1/9YY2OU2+r938H2t4X0TDxoif+HP2rjzQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "util-deprecate": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/potpack": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/potpack/-/potpack-2.1.0.tgz",
+ "integrity": "sha512-pcaShQc1Shq0y+E7GqJqvZj8DTthWV1KeHGdi0Z6IAin2Oi3JnLCOfwnCo84qc+HAp52wT9nK9H7FAJp5a44GQ==",
+ "license": "ISC"
+ },
+ "node_modules/powershell-utils": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/powershell-utils/-/powershell-utils-0.2.1.tgz",
+ "integrity": "sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/prettier": {
+ "version": "3.9.6",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.6.tgz",
+ "integrity": "sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "prettier": "bin/prettier.cjs"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/prettier/prettier?sponsor=1"
+ }
+ },
+ "node_modules/proto-list": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz",
+ "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/protocol-buffers-schema": {
+ "version": "3.6.1",
+ "resolved": "https://registry.npmjs.org/protocol-buffers-schema/-/protocol-buffers-schema-3.6.1.tgz",
+ "integrity": "sha512-VG2K63Igkiv9p76tk1lilczEK1cT+kCjKtkdhw1dQZV3k3IXJbd3o6Ho8b9zJZaHSnT2hKe4I+ObmX9w6m5SmQ==",
+ "license": "MIT"
+ },
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/qified": {
+ "version": "0.10.1",
+ "resolved": "https://registry.npmjs.org/qified/-/qified-0.10.1.tgz",
+ "integrity": "sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hookified": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/qified/node_modules/hookified": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/hookified/-/hookified-2.2.0.tgz",
+ "integrity": "sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/quansync": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/quansync/-/quansync-1.0.0.tgz",
+ "integrity": "sha512-5xZacEEufv3HSTPQuchrvV6soaiACMFnq1H8wkVioctoH3TRha9Sz66lOxRwPK/qZj7HPiSveih9yAyh98gvqA==",
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://github.com/sponsors/antfu"
+ },
+ {
+ "type": "individual",
+ "url": "https://github.com/sponsors/sxzz"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/queue-microtask": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/quickselect": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/quickselect/-/quickselect-3.0.0.tgz",
+ "integrity": "sha512-XdjUArbK4Bm5fLLvlm5KpTFOiOThgfWWI4axAZDWg4E/0mKdZyI9tNEfds27qCi1ze/vwTR16kvmmGhRra3c2g==",
+ "license": "ISC"
+ },
+ "node_modules/read-package-json-fast": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-6.0.0.tgz",
+ "integrity": "sha512-PNaGjoCnw9DBA2Kl8D+8po957z778q/HOPuY2u3Bkw/JO3eC8MDx7jn/PgMtSgpcBbs+6UOjDbwReGpXmRvs0g==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "json-parse-even-better-errors": "^6.0.0",
+ "npm-normalize-package-bin": "^6.0.0"
+ },
+ "engines": {
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
+ }
+ },
+ "node_modules/readdirp": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.1.1.tgz",
+ "integrity": "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 20.19.0"
+ },
+ "funding": {
+ "type": "individual",
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/reusify": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "iojs": ">=1.0.0",
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rolldown": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.19.tgz",
+ "integrity": "sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "@oxc-project/types": "=0.156.0",
+ "@rolldown/pluginutils": "^1.0.0"
+ },
+ "bin": {
+ "rolldown": "bin/cli.mjs"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "optionalDependencies": {
+ "@rolldown/binding-android-arm-eabi": "1.2.19",
+ "@rolldown/binding-android-arm64": "1.2.19",
+ "@rolldown/binding-darwin-arm64": "1.2.19",
+ "@rolldown/binding-darwin-x64": "1.2.19",
+ "@rolldown/binding-freebsd-x64": "1.2.19",
+ "@rolldown/binding-linux-arm-gnueabihf": "1.2.19",
+ "@rolldown/binding-linux-arm64-gnu": "1.2.19",
+ "@rolldown/binding-linux-arm64-musl": "1.2.19",
+ "@rolldown/binding-linux-ppc64-gnu": "1.2.19",
+ "@rolldown/binding-linux-s390x-gnu": "1.2.19",
+ "@rolldown/binding-linux-x64-gnu": "1.2.19",
+ "@rolldown/binding-linux-x64-musl": "1.2.19",
+ "@rolldown/binding-openharmony-arm64": "1.2.19",
+ "@rolldown/binding-wasm32-wasi": "1.2.19",
+ "@rolldown/binding-win32-arm64-msvc": "1.2.19",
+ "@rolldown/binding-win32-x64-msvc": "1.2.19"
+ }
+ },
+ "node_modules/run-applescript": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz",
+ "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/run-parallel": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "queue-microtask": "^1.2.2"
+ }
+ },
+ "node_modules/saxes": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",
+ "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "xmlchars": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=v12.22.7"
+ }
+ },
+ "node_modules/scule": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/scule/-/scule-1.3.0.tgz",
+ "integrity": "sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==",
+ "license": "MIT"
+ },
+ "node_modules/semver": {
+ "version": "7.8.6",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz",
+ "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shell-quote": {
+ "version": "1.12.0",
+ "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.12.0.tgz",
+ "integrity": "sha512-PcByqNyT/38F2kDNi006HAMRJaULuBzq/FOsw3qdZvX/GA9W/jamDaRskgHjubHiftXK5sIFxLNkvrXUwcof6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/siginfo": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",
+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/sirv": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/sirv/-/sirv-3.0.2.tgz",
+ "integrity": "sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@polka/url": "^1.0.0-next.24",
+ "mrmime": "^2.0.0",
+ "totalist": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.4.tgz",
+ "integrity": "sha512-J7ZjMvHd9O1fcT/5V09QWaaSl2BbWx3F6O08spde82Namf9UB0GxRVIPiNbVsdKkoizHiSpTodo3vp2bAy91MA==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/stackback": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",
+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/std-env": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.3.0.tgz",
+ "integrity": "sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tinybench": {
+ "version": "2.9.0",
+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",
+ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tinyexec": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz",
+ "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.17",
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",
+ "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",
+ "license": "MIT",
+ "dependencies": {
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.4"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/tinyglobby/node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/tinyglobby/node_modules/picomatch": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/tinyqueue": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-3.0.0.tgz",
+ "integrity": "sha512-gRa9gwYU3ECmQYv3lslts5hxuIa90veaEcxDYuu3QGOIAEM2mOZkVHp48ANJuu1CURtRdHKUBY5Lm1tHV+sD4g==",
+ "license": "ISC"
+ },
+ "node_modules/tinyrainbow": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.2.0.tgz",
+ "integrity": "sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/tldts": {
+ "version": "7.5.5",
+ "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.5.5.tgz",
+ "integrity": "sha512-Hy6IImaWALzJOgCIss4gIFi4G0M9lqk95pFKCUVxQPZw+biZ1Pv6f28JpYgahpJB+BufA0HYsIU/aP/WIx3KRg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tldts-core": "^7.5.5"
+ },
+ "bin": {
+ "tldts": "bin/cli.js"
+ }
+ },
+ "node_modules/tldts-core": {
+ "version": "7.5.5",
+ "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.5.5.tgz",
+ "integrity": "sha512-rEJz/8cJFY/bdF354gl14yxavbrIbvM+FcbkYVQ6CSCMQTJdUFUIm39TTWSiGPvcpQh7/F6qHrD3SkwwdgtDCw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/totalist": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/totalist/-/totalist-3.0.1.tgz",
+ "integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/tough-cookie": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.1.0.tgz",
+ "integrity": "sha512-FTxc8u8Kl2tz0Lat1u8ksvcy8bwHRyEMawwTWybo51JqaC6O7SvfuhAKg+Ld6VqyIe2QRJBzY9HA7y2WyFRT2w==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "tldts": "^7.0.5"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/tr46": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-7.0.0.tgz",
+ "integrity": "sha512-BcDSDW+SIGWVOns1Zm6Yg91q9AEj7eaID0QDY9oIqJD1A8dscNwMcl9Sms2DeuWCNov1X0/oXanHGYQBSLwZsg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "punycode": "^2.3.1"
+ },
+ "engines": {
+ "node": "^22.14.0 || >=24.0.0"
+ }
+ },
+ "node_modules/ts-api-utils": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz",
+ "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.12"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4"
+ }
+ },
+ "node_modules/tslib": {
+ "version": "2.9.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz",
+ "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==",
+ "license": "0BSD",
+ "optional": true
+ },
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",
+ "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==",
+ "devOptional": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/typescript-eslint": {
+ "version": "8.74.0",
+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.74.0.tgz",
+ "integrity": "sha512-OsWQlsedt1ZpZXfZZMNK3m4SoQONFFcy4h/uRznsCeRfVuEic3gh4KGUs2pJJ5o0Jj0Jr7keUHQGN1Ns9aDw7Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/eslint-plugin": "8.74.0",
+ "@typescript-eslint/parser": "8.74.0",
+ "@typescript-eslint/typescript-estree": "8.74.0",
+ "@typescript-eslint/utils": "8.74.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/ufo": {
+ "version": "1.6.4",
+ "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.4.tgz",
+ "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==",
+ "license": "MIT"
+ },
+ "node_modules/undici": {
+ "version": "8.13.1",
+ "resolved": "https://registry.npmjs.org/undici/-/undici-8.13.1.tgz",
+ "integrity": "sha512-Kt7EaPjh0s93lJH/PmW3d5rhkcpUa6fS3jqZ7+YGxNd9L7Xy/i827xe4C2uhhq+pJebM4tQOl5AgHmW11G5Skg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=22.19.0"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "8.13.1",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.13.1.tgz",
+ "integrity": "sha512-wEtfquPVc1e9umZh73XVwnPauVuGQp20M/u/4ENuWMRkZ8NZx0ut6q3HLLdMUb9awNlxxHcsaGVhaerZu/2SSw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/unplugin": {
+ "version": "3.7.0",
+ "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-3.7.0.tgz",
+ "integrity": "sha512-GrM2uq3DQo3hvLU2FjeYhooJ8BY9N6j1Fbzgx7Pta3VVJevsD3VP4dPjZkZOS0mLvN8w9zzr9OlP+31bSMyuLw==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/remapping": "^2.3.5",
+ "@rolldown/pluginutils": "^1.0.1",
+ "picomatch": "^4.0.7",
+ "webpack-virtual-modules": "^0.6.2"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "peerDependencies": {
+ "@farmfe/core": "*",
+ "@rsbuild/core": "*",
+ "@rspack/core": "*",
+ "bun-types-no-globals": "*",
+ "esbuild": "*",
+ "rolldown": "*",
+ "rollup": "*",
+ "unloader": "*",
+ "vite": "*",
+ "webpack": "*"
+ },
+ "peerDependenciesMeta": {
+ "@farmfe/core": {
+ "optional": true
+ },
+ "@rsbuild/core": {
+ "optional": true
+ },
+ "@rspack/core": {
+ "optional": true
+ },
+ "bun-types-no-globals": {
+ "optional": true
+ },
+ "esbuild": {
+ "optional": true
+ },
+ "rolldown": {
+ "optional": true
+ },
+ "rollup": {
+ "optional": true
+ },
+ "unloader": {
+ "optional": true
+ },
+ "vite": {
+ "optional": true
+ },
+ "webpack": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/unplugin-utils": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/unplugin-utils/-/unplugin-utils-0.3.2.tgz",
+ "integrity": "sha512-xVToRh2CTmLk2HnEG7ac4rl1MJTT3RFkpS8B++/SnB0kXvuaavD+n3m/vrzyWQOdJNSZQACnbz01pnppbwV5BA==",
+ "license": "MIT",
+ "dependencies": {
+ "pathe": "^2.0.3",
+ "picomatch": "^4.0.4"
+ },
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sxzz"
+ }
+ },
+ "node_modules/unplugin-utils/node_modules/picomatch": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/unplugin/node_modules/picomatch": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.4.0.tgz",
+ "integrity": "sha512-WPJuOnjI9FWDct4fB+ej4Mz8opLaw5CDcZ2t44tFZ0vIQVYWzBhWR3mkixuUj/A7+vY4V9+ApOZ2YYLwdgq46w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/vite": {
+ "version": "8.3.8",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.8.tgz",
+ "integrity": "sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "lightningcss": "^1.33.0",
+ "picomatch": "^4.0.7",
+ "postcss": "^8.5.32",
+ "rolldown": "~1.2.18",
+ "tinyglobby": "^0.2.17"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^20.19.0 || >=22.12.0",
+ "@vitejs/devtools": "^0.7.1 || ^0.8.0",
+ "esbuild": "^0.27.0 || ^0.28.0",
+ "jiti": ">=1.21.0",
+ "less": "^4.0.0",
+ "sass": "^1.70.0",
+ "sass-embedded": "^1.70.0",
+ "stylus": ">=0.54.8",
+ "sugarss": "^5.0.0",
+ "terser": "^5.16.0",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "@vitejs/devtools": {
+ "optional": true
+ },
+ "esbuild": {
+ "optional": true
+ },
+ "jiti": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "sass-embedded": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ },
+ "yaml": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vite-dev-rpc": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/vite-dev-rpc/-/vite-dev-rpc-2.0.0.tgz",
+ "integrity": "sha512-yKwbTwdHKSD2k/aGqyWpPHepo45OQc8lH3/6IfT4ZqeKE26ooKvi4WIEKzqWav8v+9Is8u1k8q54hvOmqASazA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "birpc": "^4.0.0",
+ "vite-hot-client": "^2.2.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ },
+ "peerDependencies": {
+ "vite": "^2.9.0 || ^3.0.0-0 || ^4.0.0-0 || ^5.0.0-0 || ^6.0.1 || ^7.0.0-0 || ^8.0.0"
+ }
+ },
+ "node_modules/vite-dev-rpc/node_modules/birpc": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/birpc/-/birpc-4.2.0.tgz",
+ "integrity": "sha512-KxgKcZPfrtzJDDALHPguGpGJUrzdgpymyiQQgzFjWreHMOpWrnFNVREr5J48x2DBh8ZVioscrV1SBkDipGiX+Q==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ }
+ },
+ "node_modules/vite-hot-client": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/vite-hot-client/-/vite-hot-client-2.2.0.tgz",
+ "integrity": "sha512-76Zs9zrHbH7M7wqeyooGQKdX+yg0pQ0xuQ1PbFp4z5a0Lzn2e5IPFoCswnmqZ4GiwqB4Jo3WcDAMO9jARTJl8w==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ },
+ "peerDependencies": {
+ "vite": "^2.6.0 || ^3.0.0 || ^4.0.0 || ^5.0.0-0 || ^6.0.0-0 || ^7.0.0-0 || ^8.0.0"
+ }
+ },
+ "node_modules/vite-plugin-inspect": {
+ "version": "11.4.1",
+ "resolved": "https://registry.npmjs.org/vite-plugin-inspect/-/vite-plugin-inspect-11.4.1.tgz",
+ "integrity": "sha512-ShOFe2PURXGvRS5OrgmOLZOCwDTD7dEBVt0tMpFPKb9AsvqXKCRGM8QgKrUbRbJYFXScHvDPpGRd28rYidC0tA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansis": "^4.3.0",
+ "error-stack-parser-es": "^1.0.5",
+ "obug": "^2.1.1",
+ "ohash": "^2.0.11",
+ "open": "^11.0.0",
+ "perfect-debounce": "^2.1.0",
+ "sirv": "^3.0.2",
+ "unplugin-utils": "^0.3.1",
+ "vite-dev-rpc": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ },
+ "peerDependencies": {
+ "vite": "^6.0.0 || ^7.0.0-0 || ^8.0.0-0"
+ },
+ "peerDependenciesMeta": {
+ "@nuxt/kit": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vite-plugin-vue-devtools": {
+ "version": "8.2.1",
+ "resolved": "https://registry.npmjs.org/vite-plugin-vue-devtools/-/vite-plugin-vue-devtools-8.2.1.tgz",
+ "integrity": "sha512-5JLxXWWCo5lJMw16/xVeNvJ8k2zLwZPf1vITLzya/2IePrCBeGe/p/iAokgXHZpEi39fcYtPXmO8SaKeXmqCAA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vue/devtools-core": "^8.2.1",
+ "@vue/devtools-kit": "^8.2.1",
+ "@vue/devtools-shared": "^8.2.1",
+ "sirv": "^3.0.2",
+ "vite-plugin-inspect": "^11.3.3",
+ "vite-plugin-vue-inspector": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=v14.21.3"
+ },
+ "peerDependencies": {
+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/vite-plugin-vue-inspector": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/vite-plugin-vue-inspector/-/vite-plugin-vue-inspector-6.0.0.tgz",
+ "integrity": "sha512-OpyITJLgZNibxlrik1EmRtvXHDjLRxNPsWkGFTERZs2LgMEdG4W0WoFt5GIgp3a3jRou+eJR8U1zOBk/XQgEbw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.23.0",
+ "@babel/plugin-proposal-decorators": "^7.23.0",
+ "@babel/plugin-syntax-import-attributes": "^7.22.5",
+ "@babel/plugin-syntax-import-meta": "^7.10.4",
+ "@babel/plugin-transform-typescript": "^7.22.15",
+ "@vue/babel-plugin-jsx": "^1.1.5",
+ "@vue/compiler-dom": "^3.3.4",
+ "kolorist": "^1.8.0",
+ "magic-string": "^0.30.4"
+ },
+ "peerDependencies": {
+ "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/vite/node_modules/picomatch": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
+ "devOptional": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/vitest": {
+ "version": "4.1.12",
+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.12.tgz",
+ "integrity": "sha512-5eWdz2yb3ajxWF3C8C4TjkXl7FGm3n2E/VlazALrQHzK7nYMSGFnCZto0bbPNl77AwkOZVLk0YnBAejUu0NiWA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/expect": "4.1.12",
+ "@vitest/mocker": "4.1.12",
+ "@vitest/pretty-format": "4.1.12",
+ "@vitest/runner": "4.1.12",
+ "@vitest/snapshot": "4.1.12",
+ "@vitest/spy": "4.1.12",
+ "@vitest/utils": "4.1.12",
+ "es-module-lexer": "^2.0.0",
+ "expect-type": "^1.3.0",
+ "magic-string": "^0.30.21",
+ "obug": "^2.1.1",
+ "pathe": "^2.0.3",
+ "picomatch": "^4.0.3",
+ "std-env": "^4.0.0-rc.1",
+ "tinybench": "^2.9.0",
+ "tinyexec": "^1.0.2",
+ "tinyglobby": "^0.2.15",
+ "tinyrainbow": "^3.1.0",
+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
+ "why-is-node-running": "^2.3.0"
+ },
+ "bin": {
+ "vitest": "vitest.mjs"
+ },
+ "engines": {
+ "node": "^20.0.0 || ^22.0.0 || >=24.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "@edge-runtime/vm": "*",
+ "@opentelemetry/api": "^1.9.0",
+ "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",
+ "@vitest/browser-playwright": "4.1.12",
+ "@vitest/browser-preview": "4.1.12",
+ "@vitest/browser-webdriverio": "^4.1.11",
+ "@vitest/coverage-istanbul": "4.1.12",
+ "@vitest/coverage-v8": "4.1.12",
+ "@vitest/ui": "4.1.12",
+ "happy-dom": "*",
+ "jsdom": "*",
+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@edge-runtime/vm": {
+ "optional": true
+ },
+ "@opentelemetry/api": {
+ "optional": true
+ },
+ "@types/node": {
+ "optional": true
+ },
+ "@vitest/browser-playwright": {
+ "optional": true
+ },
+ "@vitest/browser-preview": {
+ "optional": true
+ },
+ "@vitest/browser-webdriverio": {
+ "optional": true
+ },
+ "@vitest/coverage-istanbul": {
+ "optional": true
+ },
+ "@vitest/coverage-v8": {
+ "optional": true
+ },
+ "@vitest/ui": {
+ "optional": true
+ },
+ "happy-dom": {
+ "optional": true
+ },
+ "jsdom": {
+ "optional": true
+ },
+ "vite": {
+ "optional": false
+ }
+ }
+ },
+ "node_modules/vitest/node_modules/picomatch": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/vscode-jsonrpc": {
+ "version": "10.0.1",
+ "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-10.0.1.tgz",
+ "integrity": "sha512-fGdu32Sp4GeSQ2twML46WPMB6cFfIJ4Vdx1K5s/WPzUYdShVPCGKscYltn5hiNz748xKNJdBHgocAvuN48tLGw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.17.0"
+ }
+ },
+ "node_modules/vscode-languageserver-protocol": {
+ "version": "3.18.6",
+ "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.18.6.tgz",
+ "integrity": "sha512-Ocoa4g/vyB66ZFkIKApV8/FTjQ+EYeOVDkq/nzw9SmfX+L6Ikl5KtL5AjmSAQ7nhqfud1ojiVuy+drHdvAlgUg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "vscode-jsonrpc": "10.0.1",
+ "vscode-languageserver-types": "3.18.6"
+ }
+ },
+ "node_modules/vscode-languageserver-textdocument": {
+ "version": "1.0.16",
+ "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.16.tgz",
+ "integrity": "sha512-qeNEuOi9a3qkqRf7Gfez2WL2VwlBTLCNekHBGO9kxPVUp9XuY15yfTJ9jwvOwKI0I2MhUUfZq95NSp+LK1CLQg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/vscode-languageserver-types": {
+ "version": "3.18.6",
+ "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.18.6.tgz",
+ "integrity": "sha512-DEDtik4YupS+nOg4JxqJ2H5ec/m4tTD9a5mGcBVGYkQKZQo1AIF3ZToiP8+A0kUzyhyqX5dMnPDEnhtmzts7GA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/vscode-uri": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.2.0.tgz",
+ "integrity": "sha512-m2gXo3bn0G1kT9InzMf07fTbqMbGtyckj3bH5ktLO+1Ssv+yiATZ4dhwaQv9UZWxJh6E9IFGnQyjgWVDWVBDrg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/vue": {
+ "version": "3.5.46",
+ "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.46.tgz",
+ "integrity": "sha512-0kW5CgfjMPBqmH158049SaE1muufp+K/ZyrwvSEwrwYky6QB7zL2y8kXfruneKb9O12eh0xAJL6CVSpzb9o0Kg==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-dom": "3.5.46",
+ "@vue/compiler-sfc": "3.5.46",
+ "@vue/runtime-dom": "3.5.46",
+ "@vue/server-renderer": "3.5.46",
+ "@vue/shared": "3.5.46"
+ },
+ "peerDependencies": {
+ "typescript": "*"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vue-component-type-helpers": {
+ "version": "3.3.14",
+ "resolved": "https://registry.npmjs.org/vue-component-type-helpers/-/vue-component-type-helpers-3.3.14.tgz",
+ "integrity": "sha512-Pq3+OnbCiPCHk0R7KSZrx+j/XXaUn2kSQ1epxq60w8CPbByLjC1EJgV51n4WY851sTXUVzsNMuitywdkdVyKjA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/vue-eslint-parser": {
+ "version": "10.4.2",
+ "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-10.4.2.tgz",
+ "integrity": "sha512-WMpzulb50kb6snghzoGzS++62wcOszAk/piYcnvzdStM8Wni/BmogYltpoOFv2eK9hDbXxvwFQgnwZGpAoUfpA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.4.0",
+ "eslint-scope": "^8.2.0 || ^9.0.0",
+ "eslint-visitor-keys": "^4.2.0 || ^5.0.0",
+ "espree": "^10.3.0 || ^11.0.0",
+ "esquery": "^1.6.0",
+ "semver": "^7.6.3"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/mysticatea"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0"
+ }
+ },
+ "node_modules/vue-eslint-parser/node_modules/eslint-visitor-keys": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
+ "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/vue-i18n": {
+ "version": "11.4.23",
+ "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-11.4.23.tgz",
+ "integrity": "sha512-O+H2L/LF9xzklv2PZEqYAaG0rrbQokm6aX6/gPDxdtokBSDhKm+lvEPVbC3hXdvKpN5ICSBWigIkJ06AzCs3Lw==",
+ "license": "MIT",
+ "dependencies": {
+ "@intlify/core-base": "11.4.23",
+ "@intlify/devtools-types": "11.4.23",
+ "@intlify/shared": "11.4.23",
+ "@vue/devtools-api": "^6.5.0"
+ },
+ "engines": {
+ "node": ">= 22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/kazupon"
+ },
+ "peerDependencies": {
+ "vue": "^3.0.0"
+ }
+ },
+ "node_modules/vue-i18n/node_modules/@vue/devtools-api": {
+ "version": "6.6.4",
+ "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.6.4.tgz",
+ "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==",
+ "license": "MIT"
+ },
+ "node_modules/vue-router": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-5.5.1.tgz",
+ "integrity": "sha512-lUENd/QIhKd2HWACnXID3us0GWBnuOi3BwkTUzce2+4nfM/b3seV5saNURM9+wt48/qUxviotpcm7yFxC0U4qA==",
+ "license": "MIT",
+ "dependencies": {
+ "@vue-macros/common": "^3.1.4",
+ "@vue/devtools-api": "^8.2.1",
+ "ast-walker-scope": "^0.10.0",
+ "chokidar": "^6.0.0",
+ "confbox": "^0.3.2",
+ "local-pkg": "^2.0.0",
+ "magic-string": "^1.4.5",
+ "mlly": "^1.8.2",
+ "muggle-string": "^0.4.1",
+ "nostics": "^1.3.0",
+ "pathe": "^2.0.3",
+ "picomatch": "^4.0.7",
+ "scule": "^1.3.0",
+ "tinyglobby": "^0.2.17",
+ "unplugin": "^3.7.0",
+ "unplugin-utils": "^0.3.2"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/posva"
+ },
+ "peerDependencies": {
+ "@pinia/colada": ">=0.21.2",
+ "@vue/compiler-sfc": "^3.5.34 || ^4.0.0",
+ "pinia": "^3.0.4 || ^4.0.2",
+ "vite": "^7.3.0 || ^8.0.0",
+ "vue": "^3.5.34 || ^4.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@pinia/colada": {
+ "optional": true
+ },
+ "@vue/compiler-sfc": {
+ "optional": true
+ },
+ "pinia": {
+ "optional": true
+ },
+ "vite": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vue-router/node_modules/magic-string": {
+ "version": "1.4.5",
+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.5.tgz",
+ "integrity": "sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.6.0"
+ }
+ },
+ "node_modules/vue-router/node_modules/picomatch": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/vue-tsc": {
+ "version": "3.3.14",
+ "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-3.3.14.tgz",
+ "integrity": "sha512-URAu2H9AuMZMg9GCgnqbaHHHd8pBZRAwNV2e2yYS8VDsoTVXHiOSo663OS6DkEvauQ2yixn5TPFJ9WV9QIspkA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@volar/typescript": "2.4.30",
+ "@vue/language-core": "3.3.14"
+ },
+ "bin": {
+ "vue-tsc": "bin/vue-tsc.js"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.0.0"
+ }
+ },
+ "node_modules/w3c-xmlserializer": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-6.0.0.tgz",
+ "integrity": "sha512-4Nsy8K5Tr6SPDH9jhKJOHf7ChDrc1zufZTVSF7x72hwuEXBqxqk9G6cK+K2NRUtB3iELRJqjXb4JPDMBjMTl2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "xml-name-validator": "^5.0.0"
+ },
+ "engines": {
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
+ }
+ },
+ "node_modules/webidl-conversions": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz",
+ "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/webpack-virtual-modules": {
+ "version": "0.6.2",
+ "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz",
+ "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==",
+ "license": "MIT"
+ },
+ "node_modules/whatwg-mimetype": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz",
+ "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/whatwg-url": {
+ "version": "17.3.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-17.3.0.tgz",
+ "integrity": "sha512-KwOAJrpf+GTgBvcBQJcP38sMF0DsQKdwtG+TxM2pW44P6E5k0hDbWrDmyuJDIF0Uef0aQq0ZoJs+5oI+k8ddhg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@exodus/bytes": "^1.16.0",
+ "tr46": "^7.0.0",
+ "webidl-conversions": "^8.0.1"
+ },
+ "engines": {
+ "node": "^22.14.0 || >=24.0.0"
+ }
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/why-is-node-running": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",
+ "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "siginfo": "^2.0.0",
+ "stackback": "0.0.2"
+ },
+ "bin": {
+ "why-is-node-running": "cli.js"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/word-wrap": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/wsl-utils": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-1.0.1.tgz",
+ "integrity": "sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-wsl": "^3.1.0",
+ "powershell-utils": "^0.2.0"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/xml-name-validator": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",
+ "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/xmlchars": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",
+ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/zustand": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.1.0.tgz",
+ "integrity": "sha512-ciJZlP48M1PTQbVQq81CGVFxHTLpZNrFjKqwjtCU34AWuXTZT/jrF3p9+fI84Cf1eSCMLapxqBy/SNTfwOBuqA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.20.0"
+ },
+ "peerDependencies": {
+ "@types/react": ">=18.0.0",
+ "immer": ">=9.0.6",
+ "react": ">=18.0.0",
+ "use-sync-external-store": ">=1.2.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "immer": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ },
+ "use-sync-external-store": {
+ "optional": true
+ }
+ }
+ }
+ }
+}
diff --git a/frontend/package.json b/frontend/package.json
new file mode 100644
index 0000000..3f30110
--- /dev/null
+++ b/frontend/package.json
@@ -0,0 +1,55 @@
+{
+ "name": "prism-frontend",
+ "version": "0.0.0",
+ "private": true,
+ "type": "module",
+ "scripts": {
+ "dev": "vite",
+ "build": "run-p type-check \"build-only {@}\" --",
+ "preview": "vite preview",
+ "test:unit": "vitest",
+ "build-only": "vite build",
+ "type-check": "vue-tsc --build",
+ "lint": "run-s \"lint:*\"",
+ "lint:oxlint": "oxlint . --fix",
+ "lint:eslint": "eslint . --fix --cache",
+ "format": "prettier --write --experimental-cli src/"
+ },
+ "dependencies": {
+ "@fontsource/roboto": "^5.3.0",
+ "bootstrap": "^5.3.9",
+ "bootstrap-icons": "^1.13.2",
+ "maplibre-gl": "^6.19.0",
+ "vue": "^3.5.42",
+ "vue-i18n": "^11.4.23",
+ "vue-router": "^5.3.1"
+ },
+ "devDependencies": {
+ "@tsconfig/node24": "^24.0.5",
+ "@types/jsdom": "^30.0.0",
+ "@types/node": "^24.13.4",
+ "@vitejs/plugin-vue": "^6.0.8",
+ "@vitest/eslint-plugin": "^1.6.27",
+ "@vue/eslint-config-typescript": "^14.9.0",
+ "@vue/test-utils": "^2.5.0",
+ "@vue/tsconfig": "^0.9.1",
+ "eslint": "^10.10.0",
+ "eslint-config-prettier": "^10.1.8",
+ "eslint-plugin-oxlint": "~1.82.0",
+ "eslint-plugin-vue": "~10.11.0",
+ "jiti": "^2.7.0",
+ "jsdom": "^30.0.1",
+ "npm-run-all2": "^9.0.3",
+ "oxlint": "~1.82.0",
+ "prettier": "3.9.6",
+ "typescript": "~6.0.0",
+ "vite": "^8.2.2",
+ "vite-plugin-vue-devtools": "^8.2.1",
+ "vitest": "^4.1.11",
+ "vue-eslint-parser": "^10.4.1",
+ "vue-tsc": "^3.3.11"
+ },
+ "engines": {
+ "node": "^22.18.0 || >=24.12.0"
+ }
+}
diff --git a/frontend/public/apple-touch-icon.png b/frontend/public/apple-touch-icon.png
new file mode 100644
index 0000000..7fbc9c2
Binary files /dev/null and b/frontend/public/apple-touch-icon.png differ
diff --git a/frontend/public/favicon-32.png b/frontend/public/favicon-32.png
new file mode 100644
index 0000000..a9a1e89
Binary files /dev/null and b/frontend/public/favicon-32.png differ
diff --git a/frontend/public/favicon-57.png b/frontend/public/favicon-57.png
new file mode 100644
index 0000000..0e93f0e
Binary files /dev/null and b/frontend/public/favicon-57.png differ
diff --git a/frontend/src/App.vue b/frontend/src/App.vue
new file mode 100644
index 0000000..f370d8c
--- /dev/null
+++ b/frontend/src/App.vue
@@ -0,0 +1,14 @@
+
+
+
+
+
diff --git a/frontend/src/__tests__/CodeInput.spec.ts b/frontend/src/__tests__/CodeInput.spec.ts
new file mode 100644
index 0000000..f69d5aa
--- /dev/null
+++ b/frontend/src/__tests__/CodeInput.spec.ts
@@ -0,0 +1,68 @@
+import { mount } from '@vue/test-utils'
+import { describe, expect, it } from 'vitest'
+import { defineComponent, ref } from 'vue'
+
+import CodeInput from '@/components/CodeInput.vue'
+
+// Parent avec v-model : reproduit l'usage réel (la valeur ne remonte qu'au rendu du parent).
+function mountWithModel() {
+ const completed: string[] = []
+ const Parent = defineComponent({
+ components: { CodeInput },
+ setup: () => ({ code: ref(''), completed }),
+ template: '',
+ })
+ const wrapper = mount(Parent, { attachTo: document.body })
+ return { wrapper, completed }
+}
+
+function paste(input: Element, text: string) {
+ const event = new Event('paste', { bubbles: true, cancelable: true }) as ClipboardEvent
+ Object.defineProperty(event, 'clipboardData', { value: { getData: () => text } })
+ input.dispatchEvent(event)
+}
+
+describe('CodeInput', () => {
+ it('affiche six cases étiquetées', () => {
+ const { wrapper } = mountWithModel()
+ const digits = wrapper.findAll('input')
+ expect(digits).toHaveLength(6)
+ expect(digits[0]!.attributes('autocomplete')).toBe('one-time-code')
+ expect(digits[5]!.attributes('aria-label')).toBe('Code – chiffre 6')
+ wrapper.unmount()
+ })
+
+ it('répartit un code collé et émet complete', async () => {
+ const { wrapper, completed } = mountWithModel()
+ paste(wrapper.find('input').element, '123 456')
+ await wrapper.vm.$nextTick()
+ expect(wrapper.findAll('input').map((i) => (i.element as HTMLInputElement).value)).toEqual([
+ '1',
+ '2',
+ '3',
+ '4',
+ '5',
+ '6',
+ ])
+ expect(completed).toEqual(['123456'])
+ wrapper.unmount()
+ })
+
+ it('émet complete à la saisie du dernier chiffre', async () => {
+ const { wrapper, completed } = mountWithModel()
+ const inputs = wrapper.findAll('input')
+ for (const [index, digit] of [...'987654'].entries()) {
+ await inputs[index]!.setValue(digit)
+ }
+ expect(completed).toEqual(['987654'])
+ wrapper.unmount()
+ })
+
+ it('ignore les caractères non numériques', async () => {
+ const { wrapper, completed } = mountWithModel()
+ await wrapper.find('input').setValue('a')
+ expect((wrapper.find('input').element as HTMLInputElement).value).toBe('')
+ expect(completed).toEqual([])
+ wrapper.unmount()
+ })
+})
diff --git a/frontend/src/__tests__/FactorCard.spec.ts b/frontend/src/__tests__/FactorCard.spec.ts
new file mode 100644
index 0000000..d8aacab
--- /dev/null
+++ b/frontend/src/__tests__/FactorCard.spec.ts
@@ -0,0 +1,57 @@
+import { describe, expect, it } from 'vitest'
+
+import FactorCard from '@/components/FactorCard.vue'
+
+import { factor, mountWithPlugins } from './helpers'
+
+describe('FactorCard', () => {
+ it('affiche le niveau, le résumé, le détail et les références', () => {
+ const wrapper = mountWithPlugins(FactorCard, { props: { factor: factor() } })
+ expect(wrapper.find('h2').text()).toBe('Pollution sonore')
+ expect(wrapper.find('.color-badge').text()).toBe('Impact faible')
+ expect(wrapper.find('.color-badge').classes()).toContain('level-1')
+ expect(wrapper.find('.summary').text()).toBe('moins de 55 dB (Lden)')
+ expect(wrapper.find('dl').text()).toContain('Route')
+ expect(wrapper.find('.references a').attributes('href')).toBe('https://eea.europa.eu')
+ })
+
+ it.each([
+ [2, 'Impact modéré'],
+ [3, 'Impact élevé'],
+ [4, 'Impact très élevé'],
+ ])('niveau %i → « %s »', (level, text) => {
+ const wrapper = mountWithPlugins(FactorCard, { props: { factor: factor({ level }) } })
+ expect(wrapper.find('.color-badge').text()).toBe(text)
+ expect(wrapper.find('.factor-dot').classes()).toContain(`level-${level}`)
+ })
+
+ it('affiche « Niveau non défini » sans classe de seuil', () => {
+ const wrapper = mountWithPlugins(FactorCard, {
+ props: { factor: factor({ level: null, color: null }) },
+ })
+ expect(wrapper.find('.color-badge').text()).toBe('Niveau non défini')
+ expect(wrapper.find('.factor-dot').classes()).toContain('level-none')
+ })
+
+ it('source indisponible : message, contour pointillé et bouton Réessayer', async () => {
+ const wrapper = mountWithPlugins(FactorCard, {
+ props: { factor: factor({ code: 'radon', label: 'Radon', status: 'unavailable' }) },
+ })
+ expect(wrapper.classes()).toContain('unavailable')
+ expect(wrapper.find('.color-badge').text()).toBe('Donnée indisponible')
+ expect(wrapper.text()).toContain('Le service de données « radon » ne répond pas')
+ expect(wrapper.find('dl').exists()).toBe(false)
+
+ await wrapper.find('button').trigger('click')
+ expect(wrapper.emitted('retry')).toHaveLength(1)
+ })
+
+ it('donnée absente : message sans bouton Réessayer', () => {
+ const wrapper = mountWithPlugins(FactorCard, {
+ props: { factor: factor({ status: 'no_data' }) },
+ })
+ expect(wrapper.find('.color-badge').text()).toBe('Donnée absente')
+ expect(wrapper.text()).toContain('Aucune donnée')
+ expect(wrapper.find('button').exists()).toBe(false)
+ })
+})
diff --git a/frontend/src/__tests__/ResultMap.spec.ts b/frontend/src/__tests__/ResultMap.spec.ts
new file mode 100644
index 0000000..fbd2812
--- /dev/null
+++ b/frontend/src/__tests__/ResultMap.spec.ts
@@ -0,0 +1,87 @@
+import { beforeEach, describe, expect, it, vi } from 'vitest'
+
+import ResultMap from '@/components/ResultMap.vue'
+
+import { mountWithPlugins } from './helpers'
+
+// MapLibre a besoin de WebGL, absent de jsdom : on vérifie les appels.
+type Fn = (...args: unknown[]) => unknown
+
+const mapInstance = {
+ addControl: vi.fn(),
+ resize: vi.fn(),
+ jumpTo: vi.fn(),
+ setLayoutProperty: vi.fn(),
+ remove: vi.fn(),
+}
+const marker = {
+ setLngLat: vi.fn().mockReturnThis(),
+ addTo: vi.fn().mockReturnThis(),
+ remove: vi.fn(),
+}
+
+vi.mock('maplibre-gl', () => ({
+ Map: vi.fn<() => typeof mapInstance>(function () {
+ return mapInstance
+ }),
+ Marker: vi.fn<() => typeof marker>(function () {
+ return marker
+ }),
+ NavigationControl: vi.fn(),
+ ScaleControl: vi.fn(),
+ setWorkerUrl: vi.fn(),
+}))
+
+describe('ResultMap', () => {
+ // On ne vide que les mocks de la carte : l'appel à setWorkerUrl a lieu à l'import.
+ beforeEach(() => {
+ for (const fn of [...Object.values(mapInstance), ...Object.values(marker)]) fn.mockClear()
+ })
+
+ it('indique à MapLibre où trouver son worker', async () => {
+ const { setWorkerUrl } = await import('maplibre-gl')
+ expect(setWorkerUrl).toHaveBeenCalledWith(expect.stringContaining('maplibre-gl-worker'))
+ })
+
+ it('occupe toute la place tant qu’aucune adresse n’est analysée', async () => {
+ const wrapper = mountWithPlugins(ResultMap, { props: { location: null } })
+ expect(wrapper.classes()).toContain('expanded')
+ await wrapper.setProps({ location: { lat: 50.668, lon: 4.617, region: 'WAL' } })
+ expect(wrapper.classes()).not.toContain('expanded')
+ })
+
+ it('interroge les trois plages d’échelle de l’aléa d’inondation', async () => {
+ const { Map } = await import('maplibre-gl')
+ mountWithPlugins(ResultMap, { props: { location: null } })
+ const style = vi.mocked(Map).mock.lastCall![0].style as {
+ sources: Record
+ }
+ expect(style.sources.flood!.tiles![0]).toContain('layers=1%2C2%2C3')
+ expect(style.sources.flood!.tiles![0]).toContain('bbox={bbox-epsg-3857}')
+ })
+
+ it("centre la carte et place le marqueur sur l'adresse", async () => {
+ const wrapper = mountWithPlugins(ResultMap, { props: { location: null } })
+ expect(marker.setLngLat).not.toHaveBeenCalled()
+
+ await wrapper.setProps({ location: { lat: 50.668, lon: 4.617, region: 'WAL' } })
+
+ expect(marker.setLngLat).toHaveBeenCalledWith([4.617, 50.668])
+ expect(mapInstance.jumpTo).toHaveBeenCalledWith(
+ expect.objectContaining({ center: [4.617, 50.668], zoom: 15 }),
+ )
+ })
+
+ it('affiche ou masque une couche WMS', async () => {
+ const wrapper = mountWithPlugins(ResultMap, { props: { location: null } })
+ await wrapper.find('#layer-noise').setValue(true)
+ expect(mapInstance.setLayoutProperty).toHaveBeenCalledWith('noise', 'visibility', 'visible')
+ await wrapper.find('#layer-flood').trigger('change')
+ expect(mapInstance.setLayoutProperty).toHaveBeenCalledWith('flood', 'visibility', 'none')
+ })
+
+ it('libère la carte au démontage', () => {
+ mountWithPlugins(ResultMap, { props: { location: null } }).unmount()
+ expect(mapInstance.remove).toHaveBeenCalled()
+ })
+})
diff --git a/frontend/src/__tests__/client.spec.ts b/frontend/src/__tests__/client.spec.ts
new file mode 100644
index 0000000..4b2de52
--- /dev/null
+++ b/frontend/src/__tests__/client.spec.ts
@@ -0,0 +1,70 @@
+import { afterEach, describe, expect, it, vi } from 'vitest'
+
+import { api, ApiError, csrfToken } from '@/api/client'
+
+import { ASSESSMENT, jsonResponse, mockFetch } from './helpers'
+
+afterEach(() => {
+ vi.unstubAllGlobals()
+ document.cookie = 'csrftoken=; expires=Thu, 01 Jan 1970 00:00:00 GMT'
+})
+
+describe('csrfToken', () => {
+ it('lit le cookie csrftoken', () => {
+ document.cookie = 'autre=1'
+ document.cookie = 'csrftoken=abc123'
+ expect(csrfToken()).toBe('abc123')
+ })
+
+ it('renvoie une chaîne vide sans cookie', () => {
+ expect(csrfToken()).toBe('')
+ })
+})
+
+describe('api', () => {
+ it('envoie le jeton CSRF et le corps JSON sur un POST', async () => {
+ document.cookie = 'csrftoken=jeton'
+ const fetch = mockFetch(jsonResponse(200, ASSESSMENT))
+
+ const result = await api.assess('Place de l’Université 1')
+
+ expect(result).toEqual(ASSESSMENT)
+ const [url, init] = fetch.mock.calls[0]!
+ expect(url).toBe('/api/v1/assessments/')
+ expect(init?.method).toBe('POST')
+ expect(init?.credentials).toBe('same-origin')
+ expect(init?.headers).toMatchObject({
+ 'X-CSRFToken': 'jeton',
+ 'Content-Type': 'application/json',
+ })
+ expect(JSON.parse(init?.body as string)).toEqual({ address: 'Place de l’Université 1' })
+ })
+
+ it("n'envoie pas de jeton CSRF sur un GET", async () => {
+ const fetch = mockFetch(jsonResponse(200, {}))
+ await api.me()
+ expect(fetch.mock.calls[0]![1]?.headers).not.toHaveProperty('X-CSRFToken')
+ })
+
+ it('accepte une réponse 204 sans corps', async () => {
+ mockFetch(new Response(null, { status: 204 }))
+ await expect(api.logout()).resolves.toBeUndefined()
+ })
+
+ it('lève une ApiError avec le statut, le message et le code', async () => {
+ mockFetch(jsonResponse(404, { code: 'address_not_found', detail: 'Adresse introuvable.' }))
+ const error = await api.assess('nulle part').catch((e) => e)
+ expect(error).toBeInstanceOf(ApiError)
+ expect(error.status).toBe(404)
+ expect(error.code).toBe('address_not_found')
+ expect(error.message).toBe('Adresse introuvable.')
+ })
+
+ it('gère une erreur sans corps JSON', async () => {
+ mockFetch(new Response('403', { status: 403 }))
+ const error = await api.me().catch((e) => e)
+ expect(error).toBeInstanceOf(ApiError)
+ expect(error.message).toBe('HTTP 403')
+ expect(error.code).toBeUndefined()
+ })
+})
diff --git a/frontend/src/__tests__/components.spec.ts b/frontend/src/__tests__/components.spec.ts
new file mode 100644
index 0000000..691dfa3
--- /dev/null
+++ b/frontend/src/__tests__/components.spec.ts
@@ -0,0 +1,108 @@
+import { describe, expect, it } from 'vitest'
+
+import AddressForm from '@/components/AddressForm.vue'
+import DetailList from '@/components/DetailList.vue'
+import InfoTabs from '@/components/InfoTabs.vue'
+import ReferenceList from '@/components/ReferenceList.vue'
+
+import { factor, mountWithPlugins } from './helpers'
+
+describe('DetailList', () => {
+ it('affiche une pastille rouge pour un dépassement et verte sinon', () => {
+ const wrapper = mountWithPlugins(DetailList, {
+ props: {
+ details: [
+ { label: 'PM2,5', value: '7,1 µg/m³ (seuil 5)', status: 'exceeded' },
+ { label: 'PM10', value: '12,0 µg/m³ (seuil 15)', status: 'ok' },
+ { label: 'O₃', value: '50,1 µg/m³' },
+ ],
+ },
+ })
+ const rows = wrapper.findAll('.detail-row')
+ expect(rows).toHaveLength(3)
+ expect(rows[0]!.find('.dot').classes()).toContain('level-4')
+ expect(rows[0]!.text()).toContain('(dépassé)')
+ expect(rows[1]!.find('.dot').classes()).toContain('level-1')
+ expect(rows[2]!.find('.dot').exists()).toBe(false)
+ })
+
+ it("n'affiche rien sans détail", () => {
+ expect(
+ mountWithPlugins(DetailList, { props: { details: [] } })
+ .find('dl')
+ .exists(),
+ ).toBe(false)
+ })
+})
+
+describe('InfoTabs', () => {
+ it('affiche les effets sur la santé par défaut, une ligne par puce', () => {
+ const wrapper = mountWithPlugins(InfoTabs, { props: { tabs: factor().tabs } })
+ expect(wrapper.find('[aria-selected="true"]').text()).toBe('Effets sur la santé')
+ expect(wrapper.findAll('.bullets li').map((li) => li.text())).toEqual([
+ 'Gêne, perturbation du sommeil',
+ 'Effets cardiovasculaires',
+ ])
+ })
+
+ it('change d’onglet', async () => {
+ const wrapper = mountWithPlugins(InfoTabs, { props: { tabs: factor().tabs } })
+ const [, actions, legend] = wrapper.findAll('[role="tab"]')
+
+ await actions!.trigger('click')
+ expect(actions!.attributes('aria-selected')).toBe('true')
+ expect(wrapper.find('.bullets').text()).toBe('Isolation acoustique')
+
+ await legend!.trigger('click')
+ expect(wrapper.find('.scale').text()).toBe('< 55 dB')
+ expect(wrapper.find('.source').text()).toBe('Source : WalOnMap')
+ })
+
+ it('indique un contenu en attente de validation', () => {
+ const tabs = { ...factor().tabs, health_effects: '' }
+ const wrapper = mountWithPlugins(InfoTabs, { props: { tabs } })
+ expect(wrapper.find('.empty').text()).toContain('en cours de validation')
+ })
+})
+
+describe('ReferenceList', () => {
+ it('numérote les références et ouvre les liens dans un nouvel onglet', () => {
+ const wrapper = mountWithPlugins(ReferenceList, {
+ props: {
+ references: [
+ { n: 1, title: 'EEA 2020', url: 'https://eea.europa.eu' },
+ { n: 2, title: 'Canopea 2021', url: '' },
+ ],
+ },
+ })
+ expect(wrapper.text()).toContain('1. EEA 2020')
+ expect(wrapper.text()).toContain('2. Canopea 2021')
+ const link = wrapper.find('a')
+ expect(link.attributes('target')).toBe('_blank')
+ expect(link.attributes('rel')).toContain('noopener')
+ })
+
+ it("n'affiche rien sans référence", () => {
+ const wrapper = mountWithPlugins(ReferenceList, { props: { references: [] } })
+ expect(wrapper.find('.references').exists()).toBe(false)
+ })
+})
+
+describe('AddressForm', () => {
+ it("émet l'adresse sans espaces superflus", async () => {
+ const wrapper = mountWithPlugins(AddressForm, { props: { loading: false } })
+ await wrapper.find('input').setValue(' Rue de la Loi 16, 1000 Bruxelles ')
+ await wrapper.find('form').trigger('submit')
+ expect(wrapper.emitted('submit')).toEqual([['Rue de la Loi 16, 1000 Bruxelles']])
+ })
+
+ it('désactive le bouton sans adresse ou pendant le chargement', async () => {
+ const wrapper = mountWithPlugins(AddressForm, { props: { loading: false } })
+ expect(wrapper.find('button').attributes('disabled')).toBeDefined()
+ await wrapper.find('input').setValue('Rue')
+ expect(wrapper.find('button').attributes('disabled')).toBeUndefined()
+ await wrapper.setProps({ loading: true })
+ expect(wrapper.find('button').text()).toBe('Analyse…')
+ expect(wrapper.find('button').attributes('disabled')).toBeDefined()
+ })
+})
diff --git a/frontend/src/__tests__/helpers.ts b/frontend/src/__tests__/helpers.ts
new file mode 100644
index 0000000..d21e88f
--- /dev/null
+++ b/frontend/src/__tests__/helpers.ts
@@ -0,0 +1,78 @@
+import { mount, type ComponentMountingOptions } from '@vue/test-utils'
+import { vi } from 'vitest'
+import type { Component } from 'vue'
+import { createMemoryHistory, createRouter } from 'vue-router'
+
+import type { Assessment, FactorResult, User } from '@/api/types'
+import i18n from '@/i18n'
+import { routes } from '@/router'
+
+export const USER: User = {
+ email: 'medecin@exemple.be',
+ first_name: 'Jean',
+ last_name: 'Dupont',
+ roles: ['Médecin'],
+ is_staff: false,
+ mfa_enabled: false,
+}
+
+export function factor(overrides: Partial = {}): FactorResult {
+ return {
+ code: 'noise',
+ label: 'Pollution sonore',
+ status: 'ok',
+ level: 1,
+ color: 'green',
+ summary: 'moins de 55 dB (Lden)',
+ details: [{ label: 'Route', value: 'moins de 55 dB' }],
+ tabs: {
+ health_effects: 'Gêne, perturbation du sommeil\nEffets cardiovasculaires',
+ actions: 'Isolation acoustique',
+ legend: {
+ source: 'WalOnMap',
+ text: '',
+ scale: [{ level: 1, color: 'green', label: '< 55 dB' }],
+ },
+ },
+ references: [{ n: 1, title: 'EEA 2020', url: 'https://eea.europa.eu' }],
+ ...overrides,
+ }
+}
+
+export const ASSESSMENT: Assessment = {
+ location: { lat: 50.668, lon: 4.617, region: 'WAL' },
+ factors: [
+ factor(),
+ factor({ code: 'radon', label: 'Radon', status: 'unavailable', level: null, color: null }),
+ ],
+}
+
+/** Réponse JSON simulée pour `fetch`. */
+export function jsonResponse(status: number, body?: unknown): Response {
+ return new Response(body === undefined ? null : JSON.stringify(body), {
+ status,
+ headers: { 'Content-Type': 'application/json' },
+ })
+}
+
+export function mockFetch(...responses: Response[]) {
+ const fn = vi.fn()
+ for (const response of responses) fn.mockResolvedValueOnce(response)
+ vi.stubGlobal('fetch', fn)
+ return fn
+}
+
+export function makeRouter() {
+ return createRouter({ history: createMemoryHistory(), routes })
+}
+
+export function mountWithPlugins(
+ component: C,
+ options: ComponentMountingOptions & { router?: ReturnType } = {},
+) {
+ const { router = makeRouter(), ...rest } = options
+ return mount(component, {
+ ...rest,
+ global: { plugins: [i18n, router], ...rest.global },
+ } as ComponentMountingOptions)
+}
diff --git a/frontend/src/__tests__/mfa.spec.ts b/frontend/src/__tests__/mfa.spec.ts
new file mode 100644
index 0000000..4cbe488
--- /dev/null
+++ b/frontend/src/__tests__/mfa.spec.ts
@@ -0,0 +1,245 @@
+import { flushPromises } from '@vue/test-utils'
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+
+import { resetAuth, useAuth } from '@/composables/useAuth'
+import MfaPanel from '@/components/MfaPanel.vue'
+import AccountView from '@/views/AccountView.vue'
+import LoginView from '@/views/LoginView.vue'
+
+import { jsonResponse, makeRouter, mockFetch, mountWithPlugins, USER } from './helpers'
+
+beforeEach(resetAuth)
+afterEach(() => vi.unstubAllGlobals())
+
+const SETUP = {
+ secret: 'ABCD EFGH IJKL MNOP',
+ otpauth_url: 'otpauth://totp/PRISM:x?secret=ABCD',
+ qr_code: 'data:image/svg+xml;base64,PHN2Zy8+',
+}
+const CODES = Array.from({ length: 8 }, (_, i) => `AAAA-000${i}`)
+
+async function pasteCode(wrapper: ReturnType, code: string) {
+ const event = new Event('paste', { bubbles: true, cancelable: true })
+ Object.defineProperty(event, 'clipboardData', { value: { getData: () => code } })
+ wrapper.find('.digit').element.dispatchEvent(event)
+ await flushPromises()
+}
+
+async function signIn(user = USER) {
+ mockFetch(jsonResponse(200, user))
+ await useAuth().load()
+ vi.unstubAllGlobals()
+}
+
+describe('LoginView – seconde étape', () => {
+ async function toSecondStep() {
+ const router = makeRouter()
+ const push = vi.spyOn(router, 'push').mockResolvedValue(undefined)
+ const wrapper = mountWithPlugins(LoginView, { router, attachTo: document.body })
+ await wrapper.find('#email').setValue('medecin@exemple.be')
+ await wrapper.find('#password').setValue('secret')
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+ return { wrapper, push }
+ }
+
+ it('demande le code quand la 2FA est active, sans ouvrir de session', async () => {
+ const fetch = mockFetch(jsonResponse(200, { mfa_required: true, user: null }))
+ const { wrapper, push } = await toSecondStep()
+
+ expect(wrapper.find('h1').text()).toBe('Vérification en deux étapes')
+ expect(wrapper.findAll('.digit')).toHaveLength(6)
+ expect(fetch).toHaveBeenCalledTimes(1)
+ expect(push).not.toHaveBeenCalled()
+ expect(useAuth().user.value).toBeNull()
+ wrapper.unmount()
+ })
+
+ it('valide automatiquement un code complet puis redirige', async () => {
+ const fetch = mockFetch(
+ jsonResponse(200, { mfa_required: true, user: null }),
+ jsonResponse(200, { mfa_required: false, user: USER }),
+ jsonResponse(200, USER),
+ )
+ const { wrapper, push } = await toSecondStep()
+
+ await pasteCode(wrapper, '123456')
+
+ expect(fetch.mock.calls[1]![0]).toBe('/api/v1/auth/2fa/verify/')
+ expect(JSON.parse(fetch.mock.calls[1]![1]!.body as string)).toEqual({ code: '123456' })
+ expect(useAuth().user.value).toEqual(USER)
+ expect(push).toHaveBeenCalledWith({ name: 'assessment' })
+ wrapper.unmount()
+ })
+
+ it('code faux : message et cases vidées', async () => {
+ mockFetch(
+ jsonResponse(200, { mfa_required: true, user: null }),
+ jsonResponse(400, { code: 'invalid_code', detail: 'Code incorrect ou expiré.' }),
+ )
+ const { wrapper } = await toSecondStep()
+
+ await pasteCode(wrapper, '000000')
+
+ expect(wrapper.find('[role="alert"]').text()).toBe('Code incorrect ou expiré.')
+ expect(wrapper.findAll('.digit').map((d) => (d.element as HTMLInputElement).value)).toEqual(
+ Array(6).fill(''),
+ )
+ wrapper.unmount()
+ })
+
+ it('code de secours', async () => {
+ const fetch = mockFetch(
+ jsonResponse(200, { mfa_required: true, user: null }),
+ jsonResponse(200, { mfa_required: false, user: USER }),
+ jsonResponse(200, USER),
+ )
+ const { wrapper, push } = await toSecondStep()
+
+ await wrapper
+ .findAll('button')
+ .find((b) => b.text() === 'Utiliser un code de secours')!
+ .trigger('click')
+ await wrapper.find('#recovery').setValue('ABCD-EFGH')
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+
+ expect(JSON.parse(fetch.mock.calls[1]![1]!.body as string)).toEqual({ code: 'ABCD-EFGH' })
+ expect(push).toHaveBeenCalled()
+ wrapper.unmount()
+ })
+
+ it('étape expirée : retour au mot de passe', async () => {
+ mockFetch(
+ jsonResponse(200, { mfa_required: true, user: null }),
+ jsonResponse(400, { code: 'mfa_expired', detail: 'Recommencez la connexion.' }),
+ )
+ const { wrapper } = await toSecondStep()
+ await pasteCode(wrapper, '123456')
+
+ expect(wrapper.find('h1').text()).toBe('Connexion')
+ expect(wrapper.find('[role="alert"]').text()).toBe('Recommencez la connexion.')
+ wrapper.unmount()
+ })
+})
+
+describe('MfaPanel', () => {
+ it('active la 2FA : QR code, code, puis codes de secours', async () => {
+ await signIn()
+ const fetch = mockFetch(
+ jsonResponse(200, SETUP),
+ jsonResponse(200, { recovery_codes: CODES }),
+ jsonResponse(200, { ...USER, mfa_enabled: true }),
+ )
+ const wrapper = mountWithPlugins(MfaPanel, { attachTo: document.body })
+ expect(wrapper.find('.status').text()).toBe('Désactivée')
+
+ await wrapper.find('button').trigger('click')
+ await flushPromises()
+ expect(wrapper.find('img.qr').attributes('src')).toBe(SETUP.qr_code)
+ expect(wrapper.text()).toContain('ABCD EFGH IJKL MNOP')
+
+ await pasteCode(wrapper, '123456')
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+ expect(JSON.parse(fetch.mock.calls[1]![1]!.body as string)).toEqual({ code: '123456' })
+ expect(wrapper.findAll('.codes li').map((li) => li.text())).toEqual(CODES)
+
+ const finish = wrapper.findAll('button').find((b) => b.text() === 'Terminer')!
+ expect(finish.attributes('disabled')).toBeDefined()
+ await wrapper.find('#codes-saved').setValue(true)
+ await finish.trigger('click')
+ await flushPromises()
+
+ expect(wrapper.find('.status').text()).toBe('Activée')
+ expect(wrapper.text()).toContain('La double authentification est activée.')
+ wrapper.unmount()
+ })
+
+ it('désactive avec mot de passe et code', async () => {
+ await signIn({ ...USER, mfa_enabled: true })
+ const fetch = mockFetch(jsonResponse(204), jsonResponse(200, { ...USER, mfa_enabled: false }))
+ const wrapper = mountWithPlugins(MfaPanel)
+
+ await wrapper
+ .findAll('button')
+ .find((b) => b.text() === 'Désactiver')!
+ .trigger('click')
+ await wrapper.find('#mfa-password').setValue('secret')
+ await wrapper.find('#mfa-code').setValue('AAAA-0001')
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+
+ expect(JSON.parse(fetch.mock.calls[0]![1]!.body as string)).toEqual({
+ password: 'secret',
+ code: 'AAAA-0001',
+ })
+ expect(wrapper.find('.status').text()).toBe('Désactivée')
+ })
+
+ it('compte du personnel : 2FA obligatoire, pas de bouton Désactiver', async () => {
+ await signIn({ ...USER, is_staff: true, mfa_enabled: true })
+ const wrapper = mountWithPlugins(MfaPanel)
+ expect(wrapper.findAll('button').map((b) => b.text())).not.toContain('Désactiver')
+ })
+
+ it('signale la 2FA obligatoire à un compte du personnel qui ne l’a pas', async () => {
+ await signIn({ ...USER, is_staff: true })
+ const wrapper = mountWithPlugins(MfaPanel)
+ expect(wrapper.find('[role="alert"]').text()).toContain('obligatoire')
+ })
+
+ it('régénère les codes de secours', async () => {
+ await signIn({ ...USER, mfa_enabled: true })
+ mockFetch(jsonResponse(200, { recovery_codes: CODES }))
+ const wrapper = mountWithPlugins(MfaPanel)
+
+ await wrapper
+ .findAll('button')
+ .find((b) => b.text() === 'Régénérer les codes de secours')!
+ .trigger('click')
+ await wrapper.find('#mfa-code').setValue('123456')
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+
+ expect(wrapper.findAll('.codes li')).toHaveLength(8)
+ })
+})
+
+describe('AccountView', () => {
+ it('affiche le profil et change le mot de passe', async () => {
+ await signIn()
+ const fetch = mockFetch(jsonResponse(204))
+ const wrapper = mountWithPlugins(AccountView)
+
+ expect(wrapper.find('.avatar').text()).toBe('JD')
+ expect(wrapper.find('.name').text()).toBe('Dr Jean Dupont')
+
+ await wrapper.find('#current').setValue('ancien-mot-de-passe')
+ await wrapper.find('#next').setValue('un-nouveau-mot-de-passe')
+ await wrapper.find('#confirm').setValue('un-nouveau-mot-de-passe')
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+
+ expect(JSON.parse(fetch.mock.calls[0]![1]!.body as string)).toEqual({
+ current_password: 'ancien-mot-de-passe',
+ new_password: 'un-nouveau-mot-de-passe',
+ })
+ expect(wrapper.text()).toContain('Mot de passe modifié')
+ expect((wrapper.find('#current').element as HTMLInputElement).value).toBe('')
+ })
+
+ it('affiche l’erreur sur le mot de passe actuel', async () => {
+ await signIn()
+ mockFetch(jsonResponse(400, { current_password: ['Mot de passe actuel incorrect.'] }))
+ const wrapper = mountWithPlugins(AccountView)
+ await wrapper.find('#current').setValue('faux')
+ await wrapper.find('#next').setValue('un-nouveau-mot-de-passe')
+ await wrapper.find('#confirm').setValue('un-nouveau-mot-de-passe')
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+
+ expect(wrapper.find('#current').classes()).toContain('is-invalid')
+ expect(wrapper.text()).toContain('Mot de passe actuel incorrect.')
+ })
+})
diff --git a/frontend/src/__tests__/passwordReset.spec.ts b/frontend/src/__tests__/passwordReset.spec.ts
new file mode 100644
index 0000000..9b04bbd
--- /dev/null
+++ b/frontend/src/__tests__/passwordReset.spec.ts
@@ -0,0 +1,156 @@
+import { flushPromises } from '@vue/test-utils'
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+
+import { resetAuth } from '@/composables/useAuth'
+import ForgotPasswordView from '@/views/ForgotPasswordView.vue'
+import LoginView from '@/views/LoginView.vue'
+import ResetPasswordView from '@/views/ResetPasswordView.vue'
+
+import { jsonResponse, makeRouter, mockFetch, mountWithPlugins } from './helpers'
+
+beforeEach(resetAuth)
+afterEach(() => {
+ vi.unstubAllGlobals()
+ history.replaceState(null, '')
+})
+
+const NEW_PASSWORD = 'un-tout-nouveau-mot-de-passe'
+
+describe('ForgotPasswordView', () => {
+ it('envoie la demande puis affiche « Vérifiez votre boîte mail »', async () => {
+ const fetch = mockFetch(jsonResponse(202), jsonResponse(202))
+ const wrapper = mountWithPlugins(ForgotPasswordView)
+
+ await wrapper.find('#email').setValue('medecin@exemple.be')
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+
+ expect(fetch.mock.calls[0]![0]).toBe('/api/v1/auth/password-reset/')
+ expect(JSON.parse(fetch.mock.calls[0]![1]!.body as string)).toEqual({
+ email: 'medecin@exemple.be',
+ })
+ expect(wrapper.find('h1').text()).toBe('Vérifiez votre boîte mail')
+ expect(wrapper.text()).toContain('Si un compte existe pour medecin@exemple.be')
+
+ await wrapper.find('button').trigger('click')
+ await flushPromises()
+ expect(fetch).toHaveBeenCalledTimes(2)
+ expect(wrapper.find('button').attributes('disabled')).toBeDefined()
+ })
+
+ it('signale la limitation de débit', async () => {
+ mockFetch(jsonResponse(429, { detail: 'Throttled' }))
+ const wrapper = mountWithPlugins(ForgotPasswordView)
+ await wrapper.find('#email').setValue('medecin@exemple.be')
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+ expect(wrapper.find('[role="alert"]').text()).toContain('Trop de demandes')
+ })
+})
+
+describe('ResetPasswordView', () => {
+ async function mountWithToken(token: string | null, ...responses: Response[]) {
+ const fetch = mockFetch(...responses)
+ const router = makeRouter()
+ await router.push(token ? `/reinitialisation/${token}` : '/reinitialisation')
+ const push = vi.spyOn(router, 'push')
+ const wrapper = mountWithPlugins(ResetPasswordView, { router })
+ await flushPromises()
+ return { wrapper, router, fetch, push }
+ }
+
+ it('vérifie le lien, retire le jeton de l’URL et affiche le formulaire', async () => {
+ const { wrapper, router, fetch } = await mountWithToken('Mw.abc-123', jsonResponse(204))
+ expect(JSON.parse(fetch.mock.calls[0]![1]!.body as string)).toEqual({ token: 'Mw.abc-123' })
+ expect(router.currentRoute.value.fullPath).toBe('/reinitialisation')
+ expect(wrapper.find('h1').text()).toBe('Nouveau mot de passe')
+ })
+
+ it('lien invalide ou expiré : propose un nouveau lien', async () => {
+ const { wrapper } = await mountWithToken(
+ 'vieux',
+ jsonResponse(400, { code: 'invalid_token', detail: '' }),
+ )
+ expect(wrapper.find('h1').text()).toBe('Lien invalide ou expiré')
+ expect(wrapper.find('a.btn').attributes('href')).toBe('/mot-de-passe-oublie')
+ })
+
+ it('sans jeton : lien invalide, sans appel à l’API', async () => {
+ const { wrapper, fetch } = await mountWithToken(null)
+ expect(wrapper.find('h1').text()).toBe('Lien invalide ou expiré')
+ expect(fetch).not.toHaveBeenCalled()
+ })
+
+ it('enregistre le mot de passe puis renvoie à la connexion avec un message', async () => {
+ const { wrapper, fetch, push } = await mountWithToken(
+ 'Mw.abc-123',
+ jsonResponse(204),
+ jsonResponse(204),
+ )
+ push.mockResolvedValue(undefined)
+ await wrapper.find('#password').setValue(NEW_PASSWORD)
+ await wrapper.find('#confirm').setValue(NEW_PASSWORD)
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+
+ expect(fetch.mock.calls[1]![0]).toBe('/api/v1/auth/password-reset/confirm/')
+ expect(JSON.parse(fetch.mock.calls[1]![1]!.body as string)).toEqual({
+ token: 'Mw.abc-123',
+ new_password: NEW_PASSWORD,
+ })
+ expect(push).toHaveBeenCalledWith({ name: 'login', state: { notice: 'password-reset' } })
+ })
+
+ it('bloque l’envoi si les mots de passe diffèrent ou sont trop courts', async () => {
+ const { wrapper } = await mountWithToken('Mw.abc-123', jsonResponse(204))
+ const button = () => wrapper.find('button[type="submit"]')
+ await wrapper.find('#password').setValue(NEW_PASSWORD)
+ await wrapper.find('#confirm').setValue('autre-mot-de-passe-long')
+ expect(button().attributes('disabled')).toBeDefined()
+ expect(wrapper.find('#confirm').classes()).toContain('is-invalid')
+ await wrapper.find('#password').setValue('court')
+ await wrapper.find('#confirm').setValue('court')
+ expect(button().attributes('disabled')).toBeDefined()
+ })
+
+ it('affiche le refus du mot de passe par le serveur', async () => {
+ const { wrapper } = await mountWithToken(
+ 'Mw.abc-123',
+ jsonResponse(204),
+ jsonResponse(400, { new_password: ['Ce mot de passe est trop courant.'] }),
+ )
+ await wrapper.find('#password').setValue(NEW_PASSWORD)
+ await wrapper.find('#confirm').setValue(NEW_PASSWORD)
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+ expect(wrapper.find('#password').classes()).toContain('is-invalid')
+ expect(wrapper.text()).toContain('Ce mot de passe est trop courant.')
+ })
+
+ it('lien devenu invalide entre-temps : écran « Lien invalide »', async () => {
+ const { wrapper } = await mountWithToken(
+ 'Mw.abc-123',
+ jsonResponse(204),
+ jsonResponse(400, { code: 'invalid_token', detail: '' }),
+ )
+ await wrapper.find('#password').setValue(NEW_PASSWORD)
+ await wrapper.find('#confirm').setValue(NEW_PASSWORD)
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+ expect(wrapper.find('h1').text()).toBe('Lien invalide ou expiré')
+ })
+})
+
+describe('LoginView', () => {
+ it('propose le lien « Mot de passe oublié ? »', () => {
+ const wrapper = mountWithPlugins(LoginView)
+ const link = wrapper.findAll('a').find((a) => a.text() === 'Mot de passe oublié ?')
+ expect(link?.attributes('href')).toBe('/mot-de-passe-oublie')
+ })
+
+ it('affiche la confirmation après réinitialisation', () => {
+ history.replaceState({ notice: 'password-reset' }, '')
+ const wrapper = mountWithPlugins(LoginView)
+ expect(wrapper.find('[role="status"]').text()).toContain('Votre mot de passe a été modifié')
+ })
+})
diff --git a/frontend/src/__tests__/registration.spec.ts b/frontend/src/__tests__/registration.spec.ts
new file mode 100644
index 0000000..0d88013
--- /dev/null
+++ b/frontend/src/__tests__/registration.spec.ts
@@ -0,0 +1,151 @@
+import { flushPromises } from '@vue/test-utils'
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+
+import { resetAuth } from '@/composables/useAuth'
+import RegisterStatusView from '@/views/RegisterStatusView.vue'
+import RegisterView from '@/views/RegisterView.vue'
+
+import { jsonResponse, makeRouter, mockFetch, mountWithPlugins } from './helpers'
+
+beforeEach(resetAuth)
+afterEach(() => {
+ vi.unstubAllGlobals()
+ history.replaceState(null, '')
+})
+
+const PASSWORD = 'un-mot-de-passe-solide'
+
+async function fill(wrapper: ReturnType, overrides = {}) {
+ const values = {
+ '#first_name': 'Marie',
+ '#last_name': 'Curie',
+ '#email': 'marie@exemple.be',
+ '#inami': '',
+ '#password': PASSWORD,
+ '#confirm': PASSWORD,
+ ...overrides,
+ }
+ for (const [selector, value] of Object.entries(values)) {
+ await wrapper.find(selector).setValue(value)
+ }
+ await wrapper.find('#terms').setValue(true)
+}
+
+describe('RegisterView', () => {
+ it('envoie la demande puis affiche « Vérifiez votre boîte mail » sans e-mail dans l’URL', async () => {
+ const fetch = mockFetch(jsonResponse(201))
+ const router = makeRouter()
+ const push = vi.spyOn(router, 'push').mockResolvedValue(undefined)
+ const wrapper = mountWithPlugins(RegisterView, { router })
+
+ await fill(wrapper)
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+
+ expect(JSON.parse(fetch.mock.calls[0]![1]!.body as string)).toEqual({
+ first_name: 'Marie',
+ last_name: 'Curie',
+ email: 'marie@exemple.be',
+ inami_number: '',
+ password: PASSWORD,
+ accept_terms: true,
+ })
+ expect(push).toHaveBeenCalledWith({
+ name: 'register-status',
+ state: { email: 'marie@exemple.be' },
+ })
+ })
+
+ it('bloque l’envoi si les mots de passe diffèrent, sont trop courts ou sans conditions', async () => {
+ const wrapper = mountWithPlugins(RegisterView)
+ const button = () => wrapper.find('button[type="submit"]')
+
+ await fill(wrapper, { '#confirm': 'autre-mot-de-passe' })
+ expect(button().attributes('disabled')).toBeDefined()
+ expect(wrapper.find('#confirm').classes()).toContain('is-invalid')
+
+ await fill(wrapper, { '#password': 'court', '#confirm': 'court' })
+ expect(button().attributes('disabled')).toBeDefined()
+
+ await fill(wrapper)
+ expect(button().attributes('disabled')).toBeUndefined()
+ await wrapper.find('#terms').setValue(false)
+ expect(button().attributes('disabled')).toBeDefined()
+ })
+
+ it('affiche les erreurs de validation du serveur sous chaque champ', async () => {
+ mockFetch(
+ jsonResponse(400, {
+ password: ['Ce mot de passe est trop courant.'],
+ email: ['Saisissez une adresse e-mail valide.'],
+ }),
+ )
+ const wrapper = mountWithPlugins(RegisterView)
+ await fill(wrapper)
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+
+ expect(wrapper.find('[role="alert"]').text()).toBe('Corrigez les champs signalés.')
+ expect(wrapper.find('#password').classes()).toContain('is-invalid')
+ expect(wrapper.text()).toContain('Ce mot de passe est trop courant.')
+ expect(wrapper.text()).toContain('Saisissez une adresse e-mail valide.')
+ })
+})
+
+describe('RegisterStatusView', () => {
+ async function mountAt(path: string, state?: Record) {
+ const router = makeRouter()
+ await router.push(router.resolve(path)).catch(() => {})
+ if (state) history.replaceState(state, '')
+ const wrapper = mountWithPlugins(RegisterStatusView, { router })
+ await flushPromises()
+ return { wrapper, router }
+ }
+
+ it('après inscription : « Vérifiez votre boîte mail » et renvoi par e-mail', async () => {
+ const fetch = mockFetch(jsonResponse(202))
+ const { wrapper } = await mountAt('/inscription/statut', { email: 'marie@exemple.be' })
+
+ expect(wrapper.find('h1').text()).toBe('Vérifiez votre boîte mail')
+ expect(wrapper.text()).toContain('marie@exemple.be')
+
+ await wrapper.find('button').trigger('click')
+ await flushPromises()
+ expect(JSON.parse(fetch.mock.calls[0]![1]!.body as string)).toEqual({
+ email: 'marie@exemple.be',
+ })
+ expect(wrapper.find('button').attributes('disabled')).toBeDefined()
+ expect(wrapper.text()).toContain('un nouvel e-mail vient d’être envoyé'.replace('’', "'"))
+ })
+
+ it('lien valide : adresse confirmée et jeton retiré de l’URL', async () => {
+ const fetch = mockFetch(jsonResponse(200, { status: 'approval_pending' }))
+ const { wrapper, router } = await mountAt('/inscription/statut?jeton=abc')
+
+ expect(JSON.parse(fetch.mock.calls[0]![1]!.body as string)).toEqual({ token: 'abc' })
+ expect(wrapper.find('h1').text()).toBe('Adresse confirmée')
+ expect(router.currentRoute.value.fullPath).toBe('/inscription/statut')
+ })
+
+ it('lien expiré : renvoi à partir du jeton', async () => {
+ const fetch = mockFetch(
+ jsonResponse(400, { code: 'expired_token', detail: 'Ce lien a expiré.' }),
+ jsonResponse(202),
+ )
+ const { wrapper } = await mountAt('/inscription/statut?jeton=vieux')
+
+ expect(wrapper.find('h1').text()).toBe('Lien expiré')
+ await wrapper.find('button').trigger('click')
+ await flushPromises()
+ expect(JSON.parse(fetch.mock.calls[1]![1]!.body as string)).toEqual({ token: 'vieux' })
+ })
+
+ it.each([
+ ['invalid_token', 'Lien invalide'],
+ ['used_token', 'Adresse confirmée'],
+ ])('%s → « %s »', async (code, title) => {
+ mockFetch(jsonResponse(400, { code, detail: '' }))
+ const { wrapper } = await mountAt('/inscription/statut?jeton=x')
+ expect(wrapper.find('h1').text()).toBe(title)
+ })
+})
diff --git a/frontend/src/__tests__/router.spec.ts b/frontend/src/__tests__/router.spec.ts
new file mode 100644
index 0000000..2b37618
--- /dev/null
+++ b/frontend/src/__tests__/router.spec.ts
@@ -0,0 +1,69 @@
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+
+import { resetAuth } from '@/composables/useAuth'
+import { createAppRouter } from '@/router'
+
+import { jsonResponse, mockFetch, USER } from './helpers'
+
+beforeEach(resetAuth)
+afterEach(() => vi.unstubAllGlobals())
+
+async function navigate(path: string) {
+ const router = createAppRouter()
+ await router.push(path)
+ return router.currentRoute.value
+}
+
+describe('garde de navigation', () => {
+ it("redirige un visiteur vers /login depuis l'évaluation", async () => {
+ mockFetch(jsonResponse(403, {}))
+ expect((await navigate('/')).name).toBe('login')
+ })
+
+ it('laisse un utilisateur connecté accéder à l’évaluation', async () => {
+ mockFetch(jsonResponse(200, USER))
+ expect((await navigate('/')).name).toBe('assessment')
+ })
+
+ it('renvoie un utilisateur connecté de /login vers l’évaluation', async () => {
+ mockFetch(jsonResponse(200, USER))
+ expect((await navigate('/login')).name).toBe('assessment')
+ })
+
+ it('affiche la page 404 pour une route inconnue', async () => {
+ mockFetch(jsonResponse(403, {}))
+ const route = await navigate('/nimporte/quoi')
+ expect(route.name).toBe('not-found')
+ })
+
+ it('protège /compte et laisse /inscription aux visiteurs', async () => {
+ mockFetch(jsonResponse(403, {}))
+ expect((await navigate('/compte')).name).toBe('login')
+ resetAuth()
+ mockFetch(jsonResponse(403, {}))
+ expect((await navigate('/inscription')).name).toBe('register')
+ })
+
+ it('renvoie un utilisateur connecté de /inscription vers l’évaluation', async () => {
+ mockFetch(jsonResponse(200, USER))
+ expect((await navigate('/inscription')).name).toBe('assessment')
+ })
+
+ it('laisse /inscription/statut ouverte à tous (lien reçu par e-mail)', async () => {
+ mockFetch(jsonResponse(200, USER))
+ expect((await navigate('/inscription/statut')).name).toBe('register-status')
+ })
+
+ it('mot de passe oublié réservé aux visiteurs, lien de réinitialisation ouvert à tous', async () => {
+ mockFetch(jsonResponse(200, USER))
+ expect((await navigate('/mot-de-passe-oublie')).name).toBe('assessment')
+ resetAuth()
+ mockFetch(jsonResponse(200, USER))
+ expect((await navigate('/reinitialisation/abc')).name).toBe('reset-password')
+ })
+
+ it('laisse la page 403 publique', async () => {
+ mockFetch(jsonResponse(403, {}))
+ expect((await navigate('/403')).name).toBe('forbidden')
+ })
+})
diff --git a/frontend/src/__tests__/useAuth.spec.ts b/frontend/src/__tests__/useAuth.spec.ts
new file mode 100644
index 0000000..1827067
--- /dev/null
+++ b/frontend/src/__tests__/useAuth.spec.ts
@@ -0,0 +1,61 @@
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+
+import { ApiError } from '@/api/client'
+import { resetAuth, useAuth } from '@/composables/useAuth'
+
+import { jsonResponse, mockFetch, USER } from './helpers'
+
+beforeEach(resetAuth)
+afterEach(() => vi.unstubAllGlobals())
+
+describe('useAuth', () => {
+ it("charge l'utilisateur connecté", async () => {
+ mockFetch(jsonResponse(200, USER))
+ const { load, user, isAuthenticated } = useAuth()
+ await load()
+ expect(user.value).toEqual(USER)
+ expect(isAuthenticated.value).toBe(true)
+ })
+
+ it('considère un 403 comme « non connecté »', async () => {
+ mockFetch(jsonResponse(403, { detail: 'Non authentifié.' }))
+ const { load, isAuthenticated } = useAuth()
+ await expect(load()).resolves.toBeNull()
+ expect(isAuthenticated.value).toBe(false)
+ })
+
+ it('propage les autres erreurs', async () => {
+ mockFetch(jsonResponse(500, {}))
+ await expect(useAuth().load()).rejects.toBeInstanceOf(ApiError)
+ })
+
+ it("n'interroge l'API qu'une fois", async () => {
+ const fetch = mockFetch(jsonResponse(200, USER))
+ const { load } = useAuth()
+ await load()
+ await load()
+ expect(fetch).toHaveBeenCalledTimes(1)
+ })
+
+ it("connecte puis recharge l'utilisateur (nouveau jeton CSRF)", async () => {
+ const fetch = mockFetch(
+ jsonResponse(200, { mfa_required: false, user: USER }),
+ jsonResponse(200, USER),
+ )
+ const { login, user } = useAuth()
+ await login('medecin@exemple.be', 'secret')
+ expect(user.value).toEqual(USER)
+ expect(fetch.mock.calls.map(([url]) => url)).toEqual([
+ '/api/v1/auth/login/',
+ '/api/v1/auth/me/',
+ ])
+ })
+
+ it('déconnecte même si la requête échoue', async () => {
+ mockFetch(jsonResponse(200, USER), jsonResponse(500, {}), jsonResponse(403, {}))
+ const { load, logout, user } = useAuth()
+ await load()
+ await logout().catch(() => {})
+ expect(user.value).toBeNull()
+ })
+})
diff --git a/frontend/src/__tests__/views.spec.ts b/frontend/src/__tests__/views.spec.ts
new file mode 100644
index 0000000..e64b9be
--- /dev/null
+++ b/frontend/src/__tests__/views.spec.ts
@@ -0,0 +1,151 @@
+import { flushPromises } from '@vue/test-utils'
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+
+import { resetAuth, useAuth } from '@/composables/useAuth'
+import AssessmentView from '@/views/AssessmentView.vue'
+import ErrorView from '@/views/ErrorView.vue'
+import LoginView from '@/views/LoginView.vue'
+
+import { ASSESSMENT, jsonResponse, makeRouter, mockFetch, mountWithPlugins, USER } from './helpers'
+
+const stubs = { ResultMap: { template: '', props: ['location'] } }
+
+beforeEach(resetAuth)
+afterEach(() => vi.unstubAllGlobals())
+
+async function analyse(
+ wrapper: ReturnType,
+ address = 'Place de l’Université 1',
+) {
+ await wrapper.find('#address').setValue(address)
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+}
+
+describe('AssessmentView', () => {
+ it('affiche l’adresse reconnue et une carte par facteur', async () => {
+ mockFetch(jsonResponse(200, ASSESSMENT))
+ const wrapper = mountWithPlugins(AssessmentView, { global: { stubs } })
+
+ await analyse(wrapper)
+
+ expect(wrapper.find('[role="status"]').text()).toBe(
+ 'Adresse reconnue : Place de l’Université 1 — Région wallonne',
+ )
+ expect(wrapper.findAll('.factor-card')).toHaveLength(2)
+ })
+
+ it.each([
+ [404, { code: 'address_not_found' }, 'Adresse introuvable'],
+ [422, { code: 'out_of_coverage' }, 'hors couverture'],
+ [503, { code: 'geocoding_unavailable' }, 'géocodage est indisponible'],
+ [429, { detail: 'Throttled' }, "Trop d'analyses"],
+ [500, {}, "L'analyse a échoué"],
+ ])('erreur %i → message adapté', async (status, body, message) => {
+ mockFetch(jsonResponse(status, body))
+ const wrapper = mountWithPlugins(AssessmentView, { global: { stubs } })
+
+ await analyse(wrapper)
+
+ expect(wrapper.find('[role="alert"]').text()).toContain(message)
+ expect(wrapper.findAll('.factor-card')).toHaveLength(0)
+ })
+
+ it('« Réessayer » relance l’analyse de la même adresse', async () => {
+ const fetch = mockFetch(jsonResponse(200, ASSESSMENT), jsonResponse(200, ASSESSMENT))
+ const wrapper = mountWithPlugins(AssessmentView, { global: { stubs } })
+ await analyse(wrapper, 'Rue de la Loi 16, 1000 Bruxelles')
+
+ await wrapper.find('.factor-card.unavailable button').trigger('click')
+ await flushPromises()
+
+ expect(fetch).toHaveBeenCalledTimes(2)
+ expect(JSON.parse(fetch.mock.calls[1]![1]!.body as string)).toEqual({
+ address: 'Rue de la Loi 16, 1000 Bruxelles',
+ })
+ })
+
+ it('session expirée : retour à la connexion', async () => {
+ mockFetch(jsonResponse(403, {}), jsonResponse(204), jsonResponse(403, {}))
+ const router = makeRouter()
+ const push = vi.spyOn(router, 'push')
+ const wrapper = mountWithPlugins(AssessmentView, { router, global: { stubs } })
+
+ await analyse(wrapper)
+
+ expect(push).toHaveBeenCalledWith({ name: 'login' })
+ })
+
+ it("ne place pas l'adresse dans l'URL ni dans le stockage du navigateur", async () => {
+ mockFetch(jsonResponse(200, ASSESSMENT))
+ const router = makeRouter()
+ const wrapper = mountWithPlugins(AssessmentView, { router, global: { stubs } })
+
+ await analyse(wrapper, 'Rue Secrète 1, 1348 Louvain-la-Neuve')
+
+ expect(router.currentRoute.value.fullPath).not.toContain('Secr')
+ expect(JSON.stringify({ ...localStorage, ...sessionStorage })).not.toContain('Secr')
+ })
+})
+
+describe('LoginView', () => {
+ it("affiche le message d'erreur du serveur", async () => {
+ mockFetch(jsonResponse(400, { detail: 'E-mail ou mot de passe incorrect.' }))
+ const wrapper = mountWithPlugins(LoginView)
+
+ await wrapper.find('#email').setValue('medecin@exemple.be')
+ await wrapper.find('#password').setValue('mauvais')
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+
+ expect(wrapper.find('[role="alert"]').text()).toBe('E-mail ou mot de passe incorrect.')
+ })
+
+ it('redirige vers l’évaluation après connexion', async () => {
+ mockFetch(jsonResponse(200, { mfa_required: false, user: USER }), jsonResponse(200, USER))
+ const router = makeRouter()
+ const push = vi.spyOn(router, 'push').mockResolvedValue(undefined)
+ const wrapper = mountWithPlugins(LoginView, { router })
+
+ await wrapper.find('#email').setValue('medecin@exemple.be')
+ await wrapper.find('#password').setValue('un-mot-de-passe-solide')
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+
+ expect(useAuth().user.value).toEqual(USER)
+ expect(push).toHaveBeenCalledWith({ name: 'assessment' })
+ })
+
+ it('suit le paramètre next interne et ignore une URL externe', async () => {
+ for (const [next, expected] of [
+ ['/403', '/403'],
+ ['https://evil.example', { name: 'assessment' }],
+ ] as const) {
+ resetAuth()
+ mockFetch(jsonResponse(200, { mfa_required: false, user: USER }), jsonResponse(200, USER))
+ const router = makeRouter()
+ await router.push({ name: 'login', query: { next } }).catch(() => {})
+ const push = vi.spyOn(router, 'push').mockResolvedValue(undefined)
+ const wrapper = mountWithPlugins(LoginView, { router })
+
+ await wrapper.find('#email').setValue('medecin@exemple.be')
+ await wrapper.find('#password').setValue('x')
+ await wrapper.find('form').trigger('submit')
+ await flushPromises()
+
+ expect(push).toHaveBeenCalledWith(expected)
+ }
+ })
+})
+
+describe('ErrorView', () => {
+ it.each([
+ [404, 'Page introuvable'],
+ [403, 'Accès refusé'],
+ ] as const)('%i', (code, title) => {
+ const wrapper = mountWithPlugins(ErrorView, { props: { code } })
+ expect(wrapper.find('.error-code').text()).toBe(String(code))
+ expect(wrapper.find('h1').text()).toBe(title)
+ expect(wrapper.find('a').attributes('href')).toBe('/')
+ })
+})
diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts
new file mode 100644
index 0000000..84d19e1
--- /dev/null
+++ b/frontend/src/api/client.ts
@@ -0,0 +1,92 @@
+/**
+ * Client HTTP de l'API Django (sessions + CSRF).
+ *
+ * Le cookie CSRF est déposé par GET /auth/me/ ; il est renvoyé dans l'en-tête X-CSRFToken
+ * pour toutes les requêtes qui modifient l'état.
+ */
+
+import type { Assessment, LoginResult, RegisterPayload, TotpSetup, User } from './types'
+
+const BASE = '/api/v1'
+
+export class ApiError extends Error {
+ readonly status: number
+ readonly body: Record
+
+ constructor(status: number, body: Record) {
+ super(typeof body.detail === 'string' ? body.detail : `HTTP ${status}`)
+ this.status = status
+ this.body = body
+ }
+
+ get code(): string | undefined {
+ return typeof this.body.code === 'string' ? this.body.code : undefined
+ }
+
+ /** Messages de validation par champ (réponse 400 de DRF). */
+ fieldErrors(): Record {
+ const errors: Record = {}
+ for (const [field, value] of Object.entries(this.body)) {
+ if (Array.isArray(value) && typeof value[0] === 'string') errors[field] = value.join(' ')
+ }
+ return errors
+ }
+}
+
+export function csrfToken(): string {
+ const match = document.cookie.match(/(?:^|;\s*)csrftoken=([^;]+)/)
+ return match?.[1] ? decodeURIComponent(match[1]) : ''
+}
+
+async function request(method: string, path: string, body?: unknown): Promise {
+ const headers: Record = { Accept: 'application/json' }
+ if (method !== 'GET') {
+ headers['X-CSRFToken'] = csrfToken()
+ }
+ if (body !== undefined) {
+ headers['Content-Type'] = 'application/json'
+ }
+ const response = await fetch(`${BASE}${path}`, {
+ method,
+ headers,
+ credentials: 'same-origin',
+ body: body === undefined ? undefined : JSON.stringify(body),
+ })
+ if (response.status === 204) {
+ return undefined as T
+ }
+ const data = await response.json().catch(() => ({}))
+ if (!response.ok) {
+ throw new ApiError(response.status, data)
+ }
+ return data as T
+}
+
+export const api = {
+ me: () => request('GET', '/auth/me/'),
+ login: (email: string, password: string) =>
+ request('POST', '/auth/login/', { email, password }),
+ verifyMfa: (code: string) => request('POST', '/auth/2fa/verify/', { code }),
+ logout: () => request('POST', '/auth/logout/'),
+ register: (payload: RegisterPayload) => request('POST', '/auth/register/', payload),
+ verifyEmail: (token: string) =>
+ request<{ status: string }>('POST', '/auth/verify-email/', { token }),
+ resendVerification: (target: { email?: string; token?: string }) =>
+ request('POST', '/auth/verify-email/resend/', target),
+ changePassword: (current_password: string, new_password: string) =>
+ request('POST', '/auth/password/change/', { current_password, new_password }),
+ requestPasswordReset: (email: string) =>
+ request('POST', '/auth/password-reset/', { email }),
+ validateResetToken: (token: string) =>
+ request('POST', '/auth/password-reset/validate/', { token }),
+ resetPassword: (token: string, new_password: string) =>
+ request('POST', '/auth/password-reset/confirm/', { token, new_password }),
+ setupTotp: () => request('POST', '/auth/2fa/setup/'),
+ enableTotp: (code: string) =>
+ request<{ recovery_codes: string[] }>('POST', '/auth/2fa/enable/', { code }),
+ disableTotp: (password: string, code: string) =>
+ request('POST', '/auth/2fa/disable/', { password, code }),
+ regenerateRecoveryCodes: (code: string) =>
+ request<{ recovery_codes: string[] }>('POST', '/auth/2fa/recovery-codes/', { code }),
+ assess: (address: string) => request('POST', '/assessments/', { address }),
+}
diff --git a/frontend/src/api/types.ts b/frontend/src/api/types.ts
new file mode 100644
index 0000000..cdcbe1d
--- /dev/null
+++ b/frontend/src/api/types.ts
@@ -0,0 +1,79 @@
+export type FactorStatus = 'ok' | 'no_data' | 'unavailable'
+export type LevelColor = 'green' | 'yellow' | 'orange' | 'red'
+export type Region = 'WAL' | 'BXL'
+
+export interface User {
+ email: string
+ first_name: string
+ last_name: string
+ roles: string[]
+ is_staff: boolean
+ mfa_enabled: boolean
+}
+
+export interface LoginResult {
+ mfa_required: boolean
+ user: User | null
+}
+
+export interface RegisterPayload {
+ first_name: string
+ last_name: string
+ email: string
+ inami_number: string
+ password: string
+ accept_terms: boolean
+}
+
+export interface TotpSetup {
+ secret: string
+ otpauth_url: string
+ qr_code: string
+}
+
+export interface Detail {
+ label: string
+ value: string
+ status?: 'ok' | 'exceeded'
+}
+
+export interface ScaleItem {
+ level: number
+ color: LevelColor
+ label: string
+}
+
+export interface Legend {
+ source: string
+ text: string
+ scale: ScaleItem[]
+}
+
+export interface Reference {
+ n: number
+ title: string
+ url: string
+}
+
+export interface FactorResult {
+ code: string
+ label: string
+ status: FactorStatus
+ level: number | null
+ color: LevelColor | null
+ summary: string
+ details: Detail[]
+ tabs: {
+ health_effects: string
+ actions: string
+ legend: Legend
+ }
+ references: Reference[]
+}
+
+export interface Assessment {
+ location: { lat: number; lon: number; region: Region }
+ factors: FactorResult[]
+}
+
+export type AssessmentErrorCode = 'address_not_found' | 'out_of_coverage' | 'geocoding_unavailable'
diff --git a/frontend/src/assets/logo-ssmg.png b/frontend/src/assets/logo-ssmg.png
new file mode 100644
index 0000000..c9e65c0
Binary files /dev/null and b/frontend/src/assets/logo-ssmg.png differ
diff --git a/frontend/src/components/AddressForm.vue b/frontend/src/components/AddressForm.vue
new file mode 100644
index 0000000..bbf0313
--- /dev/null
+++ b/frontend/src/components/AddressForm.vue
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
diff --git a/frontend/src/components/AlertBanner.vue b/frontend/src/components/AlertBanner.vue
new file mode 100644
index 0000000..c97782d
--- /dev/null
+++ b/frontend/src/components/AlertBanner.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
diff --git a/frontend/src/components/AppFooter.vue b/frontend/src/components/AppFooter.vue
new file mode 100644
index 0000000..ca892bb
--- /dev/null
+++ b/frontend/src/components/AppFooter.vue
@@ -0,0 +1,31 @@
+
+
+
+
+
diff --git a/frontend/src/components/AppHeader.vue b/frontend/src/components/AppHeader.vue
new file mode 100644
index 0000000..5ec279b
--- /dev/null
+++ b/frontend/src/components/AppHeader.vue
@@ -0,0 +1,164 @@
+
+
+
+
+
+
+
diff --git a/frontend/src/components/CodeInput.vue b/frontend/src/components/CodeInput.vue
new file mode 100644
index 0000000..b96a18c
--- /dev/null
+++ b/frontend/src/components/CodeInput.vue
@@ -0,0 +1,109 @@
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/components/ColorBadge.vue b/frontend/src/components/ColorBadge.vue
new file mode 100644
index 0000000..4cadb40
--- /dev/null
+++ b/frontend/src/components/ColorBadge.vue
@@ -0,0 +1,46 @@
+
+
+
+
+ {{ text }}
+
+
+
+
diff --git a/frontend/src/components/DetailList.vue b/frontend/src/components/DetailList.vue
new file mode 100644
index 0000000..c086137
--- /dev/null
+++ b/frontend/src/components/DetailList.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
- {{ detail.label }}
+ -
+
+ {{ detail.value }}
+ (dépassé)
+
+
+
+
+
+
diff --git a/frontend/src/components/FactorCard.vue b/frontend/src/components/FactorCard.vue
new file mode 100644
index 0000000..7583407
--- /dev/null
+++ b/frontend/src/components/FactorCard.vue
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+ {{ factor.summary }}
+
+
+
+
+
+
+
+ {{
+ factor.status === 'unavailable'
+ ? $t('factor.unavailable', { label: factor.label.toLowerCase() })
+ : $t('factor.noData')
+ }}
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/components/InfoTabs.vue b/frontend/src/components/InfoTabs.vue
new file mode 100644
index 0000000..19730d8
--- /dev/null
+++ b/frontend/src/components/InfoTabs.vue
@@ -0,0 +1,135 @@
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+ {{ item.label }}
+
+
+
+ {{ $t('factor.source', { source: tabs.legend.source }) }}
+
+
+
+
+ {{ $t('factor.emptyTab') }}
+
+
+
+
+
+
diff --git a/frontend/src/components/MfaPanel.vue b/frontend/src/components/MfaPanel.vue
new file mode 100644
index 0000000..f49bc2b
--- /dev/null
+++ b/frontend/src/components/MfaPanel.vue
@@ -0,0 +1,266 @@
+
+
+
+
+
+
+ {{ $t('account.mfa.setupTitle') }}
+ {{ error }}
+
+
+
{{ $t('account.mfa.step1') }}
+
{{ $t('account.mfa.step1Text') }}
+
![]()
+
+ {{ $t('account.mfa.secret') }} {{ setup.secret }}
+
+
+
+
{{ $t('account.mfa.step2') }}
+
{{ $t('account.mfa.step2Text') }}
+
+
+
+
+
+
+
+
+
+
+
+
{{ $t('account.mfa.title') }}
+
+ {{ user?.mfa_enabled ? $t('account.mfa.on') : $t('account.mfa.off') }}
+
+
+
+ {{ done }}
+
+ {{ $t('account.mfa.mandatory') }}
+
+
+
+ {{ $t('account.mfa.explain') }}
+ {{ error }}
+
+
+
+
+ {{ $t('account.mfa.enabledText') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/components/RecoveryCodes.vue b/frontend/src/components/RecoveryCodes.vue
new file mode 100644
index 0000000..9d3bcb8
--- /dev/null
+++ b/frontend/src/components/RecoveryCodes.vue
@@ -0,0 +1,97 @@
+
+
+
+
+
{{ $t('account.mfa.codesTitle') }}
+
{{ $t('account.mfa.codesText', { count: codes.length }) }}
+
{{ $t('account.mfa.codesWarning') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/components/ReferenceList.vue b/frontend/src/components/ReferenceList.vue
new file mode 100644
index 0000000..759abc3
--- /dev/null
+++ b/frontend/src/components/ReferenceList.vue
@@ -0,0 +1,32 @@
+
+
+
+
+ {{ $t('factor.references') }}
+
+
+ {{ ref.n }}. {{ ref.title }}{{ ref.n }}. {{ ref.title }}
+
+
+
+
+
diff --git a/frontend/src/components/ResultMap.vue b/frontend/src/components/ResultMap.vue
new file mode 100644
index 0000000..6e8be32
--- /dev/null
+++ b/frontend/src/components/ResultMap.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
{{ $t('map.legend') }}
+
+ {{ $t('map.patient') }}
+
+
+
+
+ {{ $t(`map.${overlay.id}`) }}
+
+
+
+
+
+
+
diff --git a/frontend/src/composables/useAuth.ts b/frontend/src/composables/useAuth.ts
new file mode 100644
index 0000000..e9c8d65
--- /dev/null
+++ b/frontend/src/composables/useAuth.ts
@@ -0,0 +1,67 @@
+import { computed, ref } from 'vue'
+
+import { api, ApiError } from '@/api/client'
+import type { User } from '@/api/types'
+
+// État partagé : un simple ref suffit (pas de Pinia, specs §3).
+const user = ref(null)
+const loaded = ref(false)
+
+export function useAuth() {
+ /** Charge l'utilisateur courant une seule fois ; dépose aussi le cookie CSRF. */
+ async function load(force = false): Promise {
+ if (loaded.value && !force) {
+ return user.value
+ }
+ try {
+ user.value = await api.me()
+ } catch (error) {
+ if (!(error instanceof ApiError) || error.status !== 403) {
+ throw error
+ }
+ user.value = null
+ } finally {
+ loaded.value = true
+ }
+ return user.value
+ }
+
+ /** Étape 1. Renvoie `true` si un second facteur est demandé. */
+ async function login(email: string, password: string): Promise {
+ const result = await api.login(email, password)
+ if (result.mfa_required) return true
+ // Django renouvelle le jeton CSRF à la connexion : on recharge l'utilisateur (et le jeton).
+ await load(true)
+ return false
+ }
+
+ /** Étape 2 : code TOTP ou code de secours. */
+ async function verifyMfa(code: string): Promise {
+ await api.verifyMfa(code)
+ await load(true)
+ }
+
+ async function logout(): Promise {
+ try {
+ await api.logout()
+ } finally {
+ user.value = null
+ await load(true)
+ }
+ }
+
+ return {
+ user,
+ isAuthenticated: computed(() => user.value !== null),
+ load,
+ login,
+ verifyMfa,
+ logout,
+ }
+}
+
+/** Réinitialise l'état (tests). */
+export function resetAuth() {
+ user.value = null
+ loaded.value = false
+}
diff --git a/frontend/src/i18n.ts b/frontend/src/i18n.ts
new file mode 100644
index 0000000..6088c45
--- /dev/null
+++ b/frontend/src/i18n.ts
@@ -0,0 +1,10 @@
+import { createI18n } from 'vue-i18n'
+
+import fr from './locales/fr.json'
+
+export default createI18n({
+ legacy: false,
+ locale: 'fr',
+ fallbackLocale: 'fr',
+ messages: { fr },
+})
diff --git a/frontend/src/locales/fr.json b/frontend/src/locales/fr.json
new file mode 100644
index 0000000..84e1b99
--- /dev/null
+++ b/frontend/src/locales/fr.json
@@ -0,0 +1,211 @@
+{
+ "app": {
+ "name": "PRISM",
+ "tagline": "Environnement et santé",
+ "disclaimer": "Outil complémentaire d'aide à la consultation : il ne remplace pas un diagnostic.",
+ "copyright": "© SSMG – Société Scientifique de Médecine Générale",
+ "logoAlt": "SSMG – Société Scientifique de Médecine Générale"
+ },
+ "nav": {
+ "doctor": "Dr {name}",
+ "logout": "Déconnexion",
+ "menu": "Menu",
+ "account": "Mon compte"
+ },
+ "login": {
+ "title": "Connexion",
+ "intro": "Accédez à l'évaluation de l'exposome environnemental de vos patients.",
+ "email": "Adresse e-mail",
+ "emailPlaceholder": "prenom.nom{'@'}exemple.be",
+ "password": "Mot de passe",
+ "submit": "Se connecter",
+ "submitting": "Connexion…",
+ "error": "Connexion impossible. Réessayez dans un instant.",
+ "noAccount": "Pas encore de compte ?",
+ "createAccount": "Créer un compte",
+ "throttled": "Trop de tentatives. Réessayez dans une minute.",
+ "forgot": "Mot de passe oublié ?"
+ },
+ "assessment": {
+ "addressLabel": "Adresse du patient",
+ "addressPlaceholder": "Rue, numéro, code postal, commune",
+ "submit": "Analyser",
+ "submitting": "Analyse…",
+ "recognized": "Adresse reconnue : {address} — {region}",
+ "regions": {
+ "WAL": "Région wallonne",
+ "BXL": "Région de Bruxelles-Capitale"
+ },
+ "errors": {
+ "address_not_found": "Adresse introuvable. Vérifiez la rue, le numéro et le code postal.",
+ "out_of_coverage": "Cette adresse est hors couverture : PRISM couvre la Wallonie et Bruxelles.",
+ "geocoding_unavailable": "Le service de géocodage est indisponible. Réessayez dans un instant.",
+ "throttled": "Trop d'analyses en peu de temps. Réessayez plus tard.",
+ "generic": "L'analyse a échoué. Réessayez dans un instant."
+ }
+ },
+ "factor": {
+ "levels": {
+ "1": "Impact faible",
+ "2": "Impact modéré",
+ "3": "Impact élevé",
+ "4": "Impact très élevé",
+ "none": "Niveau non défini"
+ },
+ "unavailableBadge": "Donnée indisponible",
+ "noDataBadge": "Donnée absente",
+ "unavailable": "Le service de données « {label} » ne répond pas pour le moment.",
+ "noData": "Aucune donnée n'est disponible pour cette adresse.",
+ "retry": "Réessayer",
+ "loading": "Chargement…",
+ "tabs": {
+ "health_effects": "Effets sur la santé",
+ "actions": "Pistes d'action",
+ "legend": "Légende"
+ },
+ "emptyTab": "Contenu en cours de validation par la cellule Environnement de la SSMG.",
+ "source": "Source : {source}",
+ "references": "Références :"
+ },
+ "map": {
+ "layers": "Couches",
+ "basemap": "Fond de carte (OpenStreetMap)",
+ "flood": "Aléa d'inondation (WalOnMap)",
+ "noise": "Bruit routier – Lden (WalOnMap)",
+ "legend": "Légende",
+ "patient": "Adresse du patient",
+ "label": "Carte de l'adresse du patient"
+ },
+ "errors": {
+ "404": {
+ "title": "Page introuvable",
+ "text": "La page demandée n'existe pas ou a été déplacée."
+ },
+ "403": {
+ "title": "Accès refusé",
+ "text": "Vous n'avez pas les droits nécessaires pour accéder à cette page."
+ },
+ "back": "Retour à l'évaluation"
+ },
+ "mfa": {
+ "title": "Vérification en deux étapes",
+ "intro": "Saisissez le code à 6 chiffres affiché par votre application d'authentification.",
+ "recoveryIntro": "Saisissez l'un de vos codes de secours. Chaque code ne fonctionne qu'une fois.",
+ "codeLabel": "Code de vérification",
+ "recoveryLabel": "Code de secours",
+ "submit": "Valider",
+ "useRecovery": "Utiliser un code de secours",
+ "useApp": "Utiliser l'application d'authentification",
+ "back": "Retour à la connexion"
+ },
+ "register": {
+ "title": "Créer un compte",
+ "intro": "Réservé aux médecins généralistes. Votre demande sera validée par la cellule Environnement de la SSMG.",
+ "firstName": "Prénom",
+ "lastName": "Nom",
+ "inami": "Numéro INAMI (facultatif)",
+ "passwordRules": "12 caractères minimum. Évitez les mots de passe courants ou proches de votre nom.",
+ "confirm": "Confirmer le mot de passe",
+ "mismatch": "Les deux mots de passe ne correspondent pas.",
+ "terms": "J'accepte les conditions d'utilisation et la politique de confidentialité.",
+ "submit": "Créer mon compte",
+ "submitting": "Envoi…",
+ "haveAccount": "Déjà un compte ? Se connecter",
+ "fixErrors": "Corrigez les champs signalés.",
+ "throttled": "Trop de demandes depuis cette connexion. Réessayez plus tard.",
+ "error": "La demande n'a pas pu être envoyée. Réessayez dans un instant."
+ },
+ "registerStatus": {
+ "loading": "Vérification du lien…",
+ "sent": {
+ "title": "Vérifiez votre boîte mail",
+ "textTo": "Un lien de confirmation a été envoyé à {email}.",
+ "text": "Un lien de confirmation vient de vous être envoyé.",
+ "hint": "Le lien est valable 24 heures. Pensez à vérifier vos courriers indésirables."
+ },
+ "confirmed": {
+ "title": "Adresse confirmée",
+ "text": "Votre demande est en attente de validation par la cellule Environnement de la SSMG. Vous recevrez un e-mail dès qu'elle sera traitée."
+ },
+ "expired": {
+ "title": "Lien expiré",
+ "text": "Ce lien de confirmation n'est plus valable. Demandez un nouvel e-mail."
+ },
+ "invalid": {
+ "title": "Lien invalide",
+ "text": "Ce lien de confirmation n'est pas valide. Vérifiez que vous l'avez copié en entier."
+ },
+ "resend": "Renvoyer l'e-mail",
+ "resent": "Si une demande est en attente pour cette adresse, un nouvel e-mail vient d'être envoyé.",
+ "toLogin": "Aller à la connexion",
+ "restart": "Créer un compte"
+ },
+ "account": {
+ "title": "Mon compte",
+ "passwordTitle": "Changer le mot de passe",
+ "currentPassword": "Mot de passe actuel",
+ "newPassword": "Nouveau mot de passe",
+ "confirmPassword": "Confirmer le nouveau mot de passe",
+ "save": "Enregistrer",
+ "passwordSaved": "Mot de passe modifié. Un e-mail de confirmation vous a été envoyé.",
+ "cancel": "Annuler",
+ "error": "L'opération a échoué. Réessayez dans un instant.",
+ "mfa": {
+ "title": "Double authentification",
+ "on": "Activée",
+ "off": "Désactivée",
+ "explain": "Ajoutez une seconde étape de vérification à la connexion avec une application d'authentification. Elle protège l'accès aux données de vos patients.",
+ "enabledText": "Un code de votre application d'authentification est demandé à chaque connexion.",
+ "mandatory": "La double authentification est obligatoire pour votre compte : activez-la pour accéder à l'espace d'administration.",
+ "enable": "Activer la double authentification",
+ "setupTitle": "Activer la double authentification",
+ "step1": "1. Scannez le QR code",
+ "step1Text": "Avec une application d'authentification (Google Authenticator, Microsoft Authenticator, Authy, 1Password…).",
+ "qrAlt": "QR code à scanner avec l'application d'authentification",
+ "secret": "Ou saisissez la clé :",
+ "step2": "2. Saisissez le code",
+ "step2Text": "Entrez le code à 6 chiffres affiché dans l'application pour confirmer.",
+ "activate": "Activer",
+ "codesTitle": "Codes de secours",
+ "codesText": "Conservez ces {count} codes dans un endroit sûr. Chacun ne fonctionne qu'une seule fois et ne sera plus affiché.",
+ "codesWarning": "Enregistrez vos codes avant de continuer : ils permettent de vous connecter si vous perdez votre téléphone.",
+ "copy": "Copier",
+ "copied": "Copié",
+ "download": "Télécharger",
+ "saved": "J'ai enregistré mes codes de secours.",
+ "finish": "Terminer",
+ "enabledDone": "La double authentification est activée.",
+ "regenerate": "Régénérer les codes de secours",
+ "disable": "Désactiver",
+ "disabled": "La double authentification est désactivée.",
+ "codeOrRecovery": "Code de l'application ou code de secours"
+ }
+ },
+ "forgot": {
+ "title": "Mot de passe oublié",
+ "intro": "Saisissez l'adresse e-mail de votre compte. Si elle existe, nous vous enverrons un lien de réinitialisation valable 1 heure.",
+ "submit": "Envoyer le lien",
+ "submitting": "Envoi…",
+ "sentTitle": "Vérifiez votre boîte mail",
+ "sentText": "Si un compte existe pour {email}, un e-mail vient d'être envoyé. Le lien est valable 1 heure.",
+ "resend": "Renvoyer l'e-mail",
+ "resent": "Un nouvel e-mail a été demandé.",
+ "back": "Retour à la connexion",
+ "throttled": "Trop de demandes depuis cette connexion. Réessayez plus tard.",
+ "error": "La demande n'a pas pu être envoyée. Réessayez dans un instant."
+ },
+ "reset": {
+ "title": "Nouveau mot de passe",
+ "intro": "Choisissez un mot de passe d'au moins 12 caractères.",
+ "password": "Nouveau mot de passe",
+ "confirm": "Confirmer le mot de passe",
+ "submit": "Enregistrer le mot de passe",
+ "submitting": "Enregistrement…",
+ "checking": "Vérification du lien…",
+ "invalidTitle": "Lien invalide ou expiré",
+ "invalidText": "Ce lien de réinitialisation n'est plus valable. Demandez-en un nouveau.",
+ "newLink": "Demander un nouveau lien",
+ "done": "Votre mot de passe a été modifié. Connectez-vous avec le nouveau mot de passe.",
+ "error": "Le mot de passe n'a pas pu être enregistré. Réessayez dans un instant."
+ }
+}
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
new file mode 100644
index 0000000..e44f48f
--- /dev/null
+++ b/frontend/src/main.ts
@@ -0,0 +1,16 @@
+import 'bootstrap/dist/css/bootstrap.min.css'
+import 'bootstrap-icons/font/bootstrap-icons.min.css'
+import 'maplibre-gl/dist/maplibre-gl.css'
+import '@fontsource/roboto/300.css'
+import '@fontsource/roboto/400.css'
+import '@fontsource/roboto/500.css'
+import '@fontsource/roboto/700.css'
+import './styles/main.css'
+
+import { createApp } from 'vue'
+
+import App from './App.vue'
+import i18n from './i18n'
+import router from './router'
+
+createApp(App).use(i18n).use(router).mount('#app')
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
new file mode 100644
index 0000000..b131505
--- /dev/null
+++ b/frontend/src/router/index.ts
@@ -0,0 +1,92 @@
+import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router'
+
+import { useAuth } from '@/composables/useAuth'
+
+declare module 'vue-router' {
+ interface RouteMeta {
+ /** Page réservée aux utilisateurs connectés. */
+ requiresAuth?: boolean
+ /** Page d'accès : redirige vers l'évaluation si l'utilisateur est déjà connecté. */
+ guestOnly?: boolean
+ }
+}
+
+export const routes: RouteRecordRaw[] = [
+ {
+ path: '/',
+ name: 'assessment',
+ component: () => import('@/views/AssessmentView.vue'),
+ meta: { requiresAuth: true },
+ },
+ {
+ path: '/login',
+ name: 'login',
+ component: () => import('@/views/LoginView.vue'),
+ meta: { guestOnly: true },
+ },
+ {
+ path: '/inscription',
+ name: 'register',
+ component: () => import('@/views/RegisterView.vue'),
+ meta: { guestOnly: true },
+ },
+ {
+ // Ouverte depuis l'e-mail de confirmation : accessible connecté ou non.
+ path: '/inscription/statut',
+ name: 'register-status',
+ component: () => import('@/views/RegisterStatusView.vue'),
+ },
+ {
+ path: '/mot-de-passe-oublie',
+ name: 'forgot-password',
+ component: () => import('@/views/ForgotPasswordView.vue'),
+ meta: { guestOnly: true },
+ },
+ {
+ // Ouverte depuis l'e-mail ; le jeton est retiré de l'URL dès l'arrivée sur la page.
+ path: '/reinitialisation/:jeton?',
+ name: 'reset-password',
+ component: () => import('@/views/ResetPasswordView.vue'),
+ },
+ {
+ path: '/compte',
+ name: 'account',
+ component: () => import('@/views/AccountView.vue'),
+ meta: { requiresAuth: true },
+ },
+ {
+ path: '/403',
+ name: 'forbidden',
+ component: () => import('@/views/ErrorView.vue'),
+ props: { code: 403 },
+ },
+ {
+ path: '/:pathMatch(.*)*',
+ name: 'not-found',
+ component: () => import('@/views/ErrorView.vue'),
+ props: { code: 404 },
+ },
+]
+
+export function createAppRouter() {
+ const router = createRouter({
+ history: createWebHistory(import.meta.env.BASE_URL),
+ routes,
+ scrollBehavior: (_to, _from, saved) => saved ?? { top: 0 },
+ })
+
+ router.beforeEach(async (to) => {
+ const { load } = useAuth()
+ const user = await load()
+ if (to.meta.requiresAuth && !user) {
+ return { name: 'login', query: to.fullPath === '/' ? {} : { next: to.fullPath } }
+ }
+ if (to.meta.guestOnly && user) {
+ return { name: 'assessment' }
+ }
+ })
+
+ return router
+}
+
+export default createAppRouter()
diff --git a/frontend/src/styles/main.css b/frontend/src/styles/main.css
new file mode 100644
index 0000000..6143c7e
--- /dev/null
+++ b/frontend/src/styles/main.css
@@ -0,0 +1,215 @@
+/*
+ * Charte PRISM (maquettes Penpot, charte ssmg.be).
+ * Bootstrap 5 est utilisé en CSS seul ; ses variables sont surchargées ici.
+ */
+
+:root {
+ --prism-orange: #e85b25;
+ --prism-navy: #092933;
+ --prism-text: #464d5f;
+ --prism-muted: #6b7280;
+ --prism-border: #d9d4d0;
+ --prism-bg: #f6f4f2;
+ --prism-surface: #ffffff;
+ --prism-info-bg: #e6f6fd;
+ --prism-footer-link: #74c5da;
+
+ --prism-level-1: #3e9b4f;
+ --prism-level-2: #e0b400; /* jaune : absent des maquettes, à valider */
+ --prism-level-3: #f2994a;
+ --prism-level-4: #d64545;
+ --prism-level-none: #9aa0a6;
+
+ --bs-body-font-family: 'Roboto', system-ui, sans-serif;
+ --bs-body-color: var(--prism-text);
+ --bs-body-bg: var(--prism-bg);
+ --bs-heading-color: var(--prism-navy);
+ --bs-border-color: var(--prism-border);
+ --bs-link-color: var(--prism-orange);
+ --bs-link-color-rgb: 232, 91, 37;
+ --bs-link-hover-color: #c74a1b;
+ --bs-link-hover-color-rgb: 199, 74, 27;
+ --bs-primary: var(--prism-orange);
+ --bs-primary-rgb: 232, 91, 37;
+ --bs-focus-ring-color: rgba(232, 91, 37, 0.25);
+}
+
+body {
+ font-size: 0.875rem;
+}
+
+h1,
+h2,
+h3 {
+ font-weight: 700;
+}
+
+/* Boutons --------------------------------------------------------------- */
+
+.btn {
+ --bs-btn-font-weight: 500;
+ --bs-btn-border-radius: 6px;
+ --bs-btn-padding-y: 0.65rem;
+ --bs-btn-padding-x: 1.25rem;
+ --bs-btn-font-size: 0.9375rem;
+}
+
+.btn-primary {
+ --bs-btn-bg: var(--prism-orange);
+ --bs-btn-border-color: var(--prism-orange);
+ --bs-btn-hover-bg: #c74a1b;
+ --bs-btn-hover-border-color: #c74a1b;
+ --bs-btn-active-bg: #b14218;
+ --bs-btn-active-border-color: #b14218;
+ --bs-btn-disabled-bg: var(--prism-orange);
+ --bs-btn-disabled-border-color: var(--prism-orange);
+}
+
+.btn-outline-primary {
+ --bs-btn-color: var(--prism-orange);
+ --bs-btn-border-color: var(--prism-orange);
+ --bs-btn-hover-bg: var(--prism-orange);
+ --bs-btn-hover-border-color: var(--prism-orange);
+ --bs-btn-active-bg: #c74a1b;
+ --bs-btn-active-border-color: #c74a1b;
+ --bs-btn-bg: var(--prism-surface);
+}
+
+/* Champs ---------------------------------------------------------------- */
+
+.form-label {
+ font-size: 0.8125rem;
+ font-weight: 500;
+ color: var(--prism-navy);
+}
+
+.form-control {
+ border-radius: 6px;
+ padding: 0.7rem 0.875rem;
+ font-size: 0.9375rem;
+ color: var(--prism-navy);
+}
+
+.form-control:focus {
+ border-color: var(--prism-orange);
+ box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color);
+}
+
+/* Surfaces -------------------------------------------------------------- */
+
+.prism-card {
+ background: var(--prism-surface);
+ border: 1px solid var(--prism-border);
+ border-radius: 12px;
+}
+
+.prism-alert-info {
+ background: var(--prism-info-bg);
+ border-radius: 8px;
+ color: var(--prism-navy);
+ font-weight: 500;
+ padding: 0.75rem 1.25rem;
+}
+
+/* Niveaux --------------------------------------------------------------- */
+
+.level-1 {
+ --level-color: var(--prism-level-1);
+}
+.level-2 {
+ --level-color: var(--prism-level-2);
+}
+.level-3 {
+ --level-color: var(--prism-level-3);
+}
+.level-4 {
+ --level-color: var(--prism-level-4);
+}
+.level-none {
+ --level-color: var(--prism-level-none);
+}
+
+.dot {
+ display: inline-block;
+ width: 10px;
+ height: 10px;
+ border-radius: 50%;
+ background: var(--level-color);
+ flex-shrink: 0;
+}
+
+/* Pages d'accès (connexion, inscription…) ---------------------------------- */
+
+.auth-page {
+ display: flex;
+ justify-content: center;
+ padding: 100px 16px;
+}
+
+.auth-card {
+ width: 100%;
+ max-width: 460px;
+ padding: 40px 39px;
+}
+
+.auth-card.wide {
+ max-width: 560px;
+}
+
+.auth-card h1 {
+ font-size: 1.75rem;
+ margin-bottom: 1.25rem;
+}
+
+.auth-card .intro {
+ margin-bottom: 1.5rem;
+}
+
+.auth-links {
+ text-align: center;
+ margin-top: 1.25rem;
+}
+
+.link-strong {
+ color: var(--prism-orange);
+ font-weight: 500;
+ text-decoration: none;
+}
+
+.link-strong:hover {
+ text-decoration: underline;
+}
+
+.icon-circle {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 72px;
+ height: 72px;
+ margin: 0 auto 1.5rem;
+ border-radius: 50%;
+ background: var(--prism-info-bg);
+ color: var(--prism-navy);
+ font-size: 1.25rem;
+ font-weight: 700;
+}
+
+.icon-circle.warning {
+ background: #fdf0e6;
+ color: var(--prism-level-3);
+ font-size: 1.75rem;
+}
+
+.form-text {
+ color: var(--prism-muted);
+ font-size: 0.75rem;
+}
+
+@media (max-width: 575.98px) {
+ .auth-page {
+ padding: 32px 16px;
+ }
+ .auth-card {
+ padding: 28px 20px;
+ }
+}
diff --git a/frontend/src/views/AccountView.vue b/frontend/src/views/AccountView.vue
new file mode 100644
index 0000000..fd6f6fb
--- /dev/null
+++ b/frontend/src/views/AccountView.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
{{ $t('account.title') }}
+
+
+ {{ initials }}
+
+
{{ $t('nav.doctor', { name: `${user.first_name} ${user.last_name}` }) }}
+
+ {{ user.email
+ }} · {{ user.roles.join(', ') }}
+
+
+
+
+
+
+
+ {{ $t('account.passwordTitle') }}
+
+ {{ $t('account.passwordSaved') }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/views/AssessmentView.vue b/frontend/src/views/AssessmentView.vue
new file mode 100644
index 0000000..61cb287
--- /dev/null
+++ b/frontend/src/views/AssessmentView.vue
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
{{ $t(errorKey) }}
+
+ {{
+ $t('assessment.recognized', {
+ address,
+ region: $t(`assessment.regions.${result.location.region}`),
+ })
+ }}
+
+
+
+
+
+
+
diff --git a/frontend/src/views/ErrorView.vue b/frontend/src/views/ErrorView.vue
new file mode 100644
index 0000000..5c8c6cb
--- /dev/null
+++ b/frontend/src/views/ErrorView.vue
@@ -0,0 +1,50 @@
+
+
+
+
+
+ {{ code }}
+ {{ $t(`errors.${code}.title`) }}
+ {{ $t(`errors.${code}.text`) }}
+ {{ $t('errors.back') }}
+
+
+
+
+
diff --git a/frontend/src/views/ForgotPasswordView.vue b/frontend/src/views/ForgotPasswordView.vue
new file mode 100644
index 0000000..f6b175d
--- /dev/null
+++ b/frontend/src/views/ForgotPasswordView.vue
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+ {{ $t('forgot.title') }}
+ {{ $t('forgot.intro') }}
+
+ {{ error }}
+
+
+
+
+ {{ $t('forgot.back') }}
+
+
+
+
+
+ @
+ {{ $t('forgot.sentTitle') }}
+ {{ $t('forgot.sentText', { email }) }}
+ {{ error }}
+
+ {{ $t('forgot.resent') }}
+
+ {{ $t('forgot.back') }}
+
+
+
+
diff --git a/frontend/src/views/LoginView.vue b/frontend/src/views/LoginView.vue
new file mode 100644
index 0000000..89cdf51
--- /dev/null
+++ b/frontend/src/views/LoginView.vue
@@ -0,0 +1,192 @@
+
+
+
+
+
+ {{ $t('login.title') }}
+ {{ $t('login.intro') }}
+
+ {{ error }}
+ {{ notice }}
+
+
+
+
+
+ {{ $t('login.forgot') }}
+
+
+
+
+ {{ $t('login.noAccount') }}
+
+ {{ $t('login.createAccount') }}
+
+
+
+
+ 2FA
+ {{ $t('mfa.title') }}
+
+ {{ useRecovery ? $t('mfa.recoveryIntro') : $t('mfa.intro') }}
+
+
+ {{ error }}
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/views/RegisterStatusView.vue b/frontend/src/views/RegisterStatusView.vue
new file mode 100644
index 0000000..5b59b22
--- /dev/null
+++ b/frontend/src/views/RegisterStatusView.vue
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
+
+ {{ $t('registerStatus.loading') }}
+
+
+
+ {{ $t('registerStatus.sent.title') }}
+ {{ $t('registerStatus.sent.textTo', { email }) }}
+ {{ $t('registerStatus.sent.text') }}
+ {{ $t('registerStatus.sent.hint') }}
+
+
+
+
+ {{ $t('registerStatus.confirmed.title') }}
+ {{ $t('registerStatus.confirmed.text') }}
+
+ {{ $t('registerStatus.toLogin') }}
+
+
+
+
+ {{ $t('registerStatus.expired.title') }}
+ {{ $t('registerStatus.expired.text') }}
+
+
+
+
+ {{ $t('registerStatus.invalid.title') }}
+ {{ $t('registerStatus.invalid.text') }}
+
+ {{ $t('registerStatus.restart') }}
+
+
+
+
+ {{ $t('registerStatus.resent') }}
+
+
+
+
diff --git a/frontend/src/views/RegisterView.vue b/frontend/src/views/RegisterView.vue
new file mode 100644
index 0000000..ea5b3aa
--- /dev/null
+++ b/frontend/src/views/RegisterView.vue
@@ -0,0 +1,196 @@
+
+
+
+
+
+ {{ $t('register.title') }}
+ {{ $t('register.intro') }}
+
+ {{ error }}
+
+
+
+
+
+ {{ $t('register.haveAccount') }}
+
+
+
+
+
+
+
diff --git a/frontend/src/views/ResetPasswordView.vue b/frontend/src/views/ResetPasswordView.vue
new file mode 100644
index 0000000..bbd09fa
--- /dev/null
+++ b/frontend/src/views/ResetPasswordView.vue
@@ -0,0 +1,132 @@
+
+
+
+
+
+ {{ $t('reset.checking') }}
+
+
+
+
+ {{ $t('reset.title') }}
+ {{ $t('reset.intro') }}
+
+ {{ error }}
+
+
+
+
+
+
+ !
+ {{ $t('reset.invalidTitle') }}
+ {{ $t('reset.invalidText') }}
+
+ {{ $t('reset.newLink') }}
+
+
+ {{ $t('forgot.back') }}
+
+
+
+
diff --git a/frontend/tsconfig.app.json b/frontend/tsconfig.app.json
new file mode 100644
index 0000000..c0f2d86
--- /dev/null
+++ b/frontend/tsconfig.app.json
@@ -0,0 +1,18 @@
+{
+ "extends": "@vue/tsconfig/tsconfig.dom.json",
+ "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
+ "exclude": ["src/**/__tests__/*"],
+ "compilerOptions": {
+ // Extra safety for array and object lookups, but may have false positives.
+ "noUncheckedIndexedAccess": true,
+
+ // Path mapping for cleaner imports.
+ "paths": {
+ "@/*": ["./src/*"]
+ },
+
+ // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
+ // Specified here to keep it out of the root directory.
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo"
+ }
+}
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
new file mode 100644
index 0000000..100cf6a
--- /dev/null
+++ b/frontend/tsconfig.json
@@ -0,0 +1,14 @@
+{
+ "files": [],
+ "references": [
+ {
+ "path": "./tsconfig.node.json"
+ },
+ {
+ "path": "./tsconfig.app.json"
+ },
+ {
+ "path": "./tsconfig.vitest.json"
+ }
+ ]
+}
diff --git a/frontend/tsconfig.node.json b/frontend/tsconfig.node.json
new file mode 100644
index 0000000..7274bd4
--- /dev/null
+++ b/frontend/tsconfig.node.json
@@ -0,0 +1,28 @@
+// TSConfig for modules that run in Node.js environment via either transpilation or type-stripping.
+{
+ "extends": "@tsconfig/node24/tsconfig.json",
+ "include": [
+ "vite.config.*",
+ "vitest.config.*",
+ "cypress.config.*",
+ "playwright.config.*",
+ "eslint.config.*"
+ ],
+ "compilerOptions": {
+ // Most tools use transpilation instead of Node.js's native type-stripping.
+ // Bundler mode provides a smoother developer experience.
+ "module": "preserve",
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+
+ // Include Node.js types and avoid accidentally including other `@types/*` packages.
+ "types": ["node"],
+
+ // Disable emitting output during `vue-tsc --build`, which is used for type-checking only.
+ "noEmit": true,
+
+ // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
+ // Specified here to keep it out of the root directory.
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo"
+ }
+}
diff --git a/frontend/tsconfig.vitest.json b/frontend/tsconfig.vitest.json
new file mode 100644
index 0000000..ff1d8c9
--- /dev/null
+++ b/frontend/tsconfig.vitest.json
@@ -0,0 +1,19 @@
+{
+ "extends": "./tsconfig.app.json",
+
+ // Override to include only test files and clear exclusions.
+ // Application code imported in tests is automatically included via module resolution.
+ "include": ["src/**/__tests__/*", "env.d.ts"],
+ "exclude": [],
+
+ "compilerOptions": {
+ // Vitest runs in a different environment than the application code.
+ // Adjust lib and types accordingly.
+ "lib": [],
+ "types": ["node", "jsdom"],
+
+ // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
+ // Specified here to keep it out of the root directory.
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo"
+ }
+}
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
new file mode 100644
index 0000000..84676a1
--- /dev/null
+++ b/frontend/vite.config.ts
@@ -0,0 +1,23 @@
+import { fileURLToPath, URL } from 'node:url'
+
+import vue from '@vitejs/plugin-vue'
+import { defineConfig } from 'vite'
+import vueDevTools from 'vite-plugin-vue-devtools'
+
+// https://vite.dev/config/
+export default defineConfig({
+ plugins: [vue(), vueDevTools()],
+ resolve: {
+ alias: {
+ '@': fileURLToPath(new URL('./src', import.meta.url)),
+ },
+ },
+ server: {
+ // Même origine que l'API : les cookies de session et CSRF fonctionnent sans CORS.
+ proxy: {
+ '/api': process.env.API_PROXY_TARGET ?? 'http://localhost:8000',
+ '/admin': process.env.API_PROXY_TARGET ?? 'http://localhost:8000',
+ '/static': process.env.API_PROXY_TARGET ?? 'http://localhost:8000',
+ },
+ },
+})
diff --git a/frontend/vitest.config.ts b/frontend/vitest.config.ts
new file mode 100644
index 0000000..af90313
--- /dev/null
+++ b/frontend/vitest.config.ts
@@ -0,0 +1,14 @@
+import { fileURLToPath } from 'node:url'
+import { mergeConfig, defineConfig, configDefaults } from 'vitest/config'
+import viteConfig from './vite.config.ts'
+
+export default mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ environment: 'jsdom',
+ exclude: [...configDefaults.exclude, 'e2e/**'],
+ root: fileURLToPath(new URL('./', import.meta.url)),
+ },
+ }),
+)