commit 9c561cb5749b49f0c3528627379e08b3641f3a6f
Author: Weapie
Date: Tue Nov 3 17:04:00 2026 +0100
Add Syncova Ticket with tested Gitea image publishing and persistent Compose deployment
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..ae1847a
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,19 @@
+node_modules
+dist
+styled-system
+data
+docs
+.git
+.env*
+*.log
+.codex
+.gitea
+.runner
+.npmrc
+*.db
+*.db-*
+*.sqlite
+*.sqlite-*
+*.sqlite3
+*.sqlite3-*
+*.key
diff --git a/.env.docker.example b/.env.docker.example
new file mode 100644
index 0000000..f228e33
--- /dev/null
+++ b/.env.docker.example
@@ -0,0 +1,9 @@
+SYNCOVA_IMAGE=git.jfritzsche.de/jf/syncova-ticket:latest
+SYNCOVA_PULL_POLICY=always
+SYNCOVA_BIND=127.0.0.1
+SYNCOVA_PORT=3002
+APP_ORIGIN=http://localhost:3002
+COOKIE_SECURE=false
+ADMIN_EMAIL=admin@example.org
+# Vor dem ersten Start durch ein eigenes langes Passwort ersetzen.
+ADMIN_PASSWORD=replace-this-with-a-long-unique-password
diff --git a/.env.example b/.env.example
new file mode 100644
index 0000000..f55388e
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,29 @@
+# Copy to .env. Never commit the populated file.
+PORT=3001
+HOST=127.0.0.1
+DB_PATH=data/syncova.db
+MAIL_MODE=development
+# Queue SMTP credentials are encrypted in SQLite (AES-256-GCM).
+# Optional: fixed 32-byte key as 64 hex characters from your secret manager.
+# SMTP_ENCRYPTION_KEY=
+# Otherwise a server-local key is created here; back it up and restrict file access.
+# SMTP_KEY_FILE=data/smtp.key
+# External origin for CSRF validation and notification links (production).
+# APP_ORIGIN=https://tickets.example.org
+# NODE_ENV=production
+# COOKIE_SECURE=true
+# First production start requires a NEW database and this bootstrap credential.
+# ADMIN_EMAIL=admin@example.org
+# ADMIN_PASSWORD=replace-with-a-long-unique-password
+# MAIL_MODE=smtp
+# SMTP_HOST=smtp.example.org
+# SMTP_PORT=465
+# SMTP_TLS=true
+# SMTP_USER=tickets@example.org
+# SMTP_PASSWORD=server-side-secret
+# Legacy initial values only: prefer per-queue settings in the UI.
+# These seed a queue's IMAP settings once; later changes use the saved UI configuration.
+# IMAP_HOST=imap.example.org
+# IMAP_PORT=993
+# IMAP_USER=tickets@example.org
+# IMAP_PASSWORD=server-side-secret
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..b025878
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,5 @@
+* text=auto eol=lf
+*.png binary
+*.jpg binary
+*.jpeg binary
+*.woff2 binary
diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml
new file mode 100644
index 0000000..80a1ad0
--- /dev/null
+++ b/.gitea/workflows/ci.yaml
@@ -0,0 +1,87 @@
+name: Tests und Docker-Image
+
+on:
+ push:
+ branches: ['**']
+ tags: ['v*']
+ pull_request:
+ branches: [main]
+
+jobs:
+ test:
+ name: Tests und Frontend-Build
+ runs-on: ubuntu-latest
+ steps:
+ - name: Quellcode auschecken
+ uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ with:
+ persist-credentials: false
+ - name: Node.js 22
+ uses: https://github.com/actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
+ with:
+ node-version: '22'
+ - run: npm ci
+ - run: npm test
+ - run: npm run build
+
+ image:
+ name: Leeres Produktionsimage bauen und veröffentlichen
+ needs: test
+ runs-on: ubuntu-latest
+ env:
+ REGISTRY_IMAGE: git.jfritzsche.de/jf/syncova-ticket
+ COMMIT_SHA: ${{ gitea.sha }}
+ steps:
+ - name: Quellcode auschecken
+ uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ with:
+ persist-credentials: false
+ - name: Node.js 22 für Image-Prüfung
+ uses: https://github.com/actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
+ with:
+ node-version: '22'
+ - name: Docker Buildx einrichten
+ uses: https://github.com/docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
+ - name: Produktionsimage bauen
+ uses: https://github.com/docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
+ with:
+ context: .
+ load: true
+ push: false
+ tags: git.jfritzsche.de/jf/syncova-ticket:sha-${{ gitea.sha }}
+ labels: |
+ org.opencontainers.image.source=https://git.jfritzsche.de/jf/syncova-ticket
+ org.opencontainers.image.revision=${{ gitea.sha }}
+ - name: Leere Daten und Produktionsstart prüfen
+ run: npm run test:image
+ env:
+ SYNCOVA_IMAGE: git.jfritzsche.de/jf/syncova-ticket:sha-${{ gitea.sha }}
+ - name: An der Registry anmelden
+ if: gitea.event_name == 'push' && (gitea.ref == 'refs/heads/main' || startsWith(gitea.ref, 'refs/tags/v'))
+ uses: https://github.com/docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
+ with:
+ registry: git.jfritzsche.de
+ username: jf
+ password: ${{ secrets.REGISTRY_TOKEN }}
+ - name: Geprüftes Image veröffentlichen
+ if: gitea.event_name == 'push' && (gitea.ref == 'refs/heads/main' || startsWith(gitea.ref, 'refs/tags/v'))
+ env:
+ REF: ${{ gitea.ref }}
+ REF_NAME: ${{ gitea.ref_name }}
+ run: |
+ set -eu
+ image="$REGISTRY_IMAGE:sha-$COMMIT_SHA"
+ docker push "$image"
+ if [ "$REF" = 'refs/heads/main' ]; then
+ current_main="$(git ls-remote origin refs/heads/main | cut -f1)"
+ if [ "$current_main" = "$COMMIT_SHA" ]; then
+ docker tag "$image" "$REGISTRY_IMAGE:latest"
+ docker push "$REGISTRY_IMAGE:latest"
+ else
+ echo 'Neuerer main-Commit vorhanden; latest bleibt beim neueren Build.'
+ fi
+ else
+ printf '%s' "$REF_NAME" | grep -Eq '^[a-zA-Z0-9_][a-zA-Z0-9_.-]{0,127}$'
+ docker tag "$image" "$REGISTRY_IMAGE:$REF_NAME"
+ docker push "$REGISTRY_IMAGE:$REF_NAME"
+ fi
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..51fa547
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,21 @@
+node_modules/
+dist/
+styled-system/
+data/
+.env
+.env.*
+!.env.example
+!.env.docker.example
+*.log
+*.db
+*.db-*
+*.sqlite
+*.sqlite-*
+*.sqlite3
+*.sqlite3-*
+*.key
+.runner
+.npmrc
+docs/*.png
+docs/*.jpg
+docs/*.jpeg
diff --git a/.prettierrc.json b/.prettierrc.json
new file mode 100644
index 0000000..0dc5434
--- /dev/null
+++ b/.prettierrc.json
@@ -0,0 +1 @@
+{ "singleQuote": true, "semi": false, "printWidth": 100, "trailingComma": "all" }
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..a188d5e
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,20 @@
+FROM node:22-bookworm-slim AS build
+WORKDIR /app
+RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ ca-certificates && rm -rf /var/lib/apt/lists/*
+COPY package*.json panda.config.ts tsconfig.json ./
+COPY src/theme ./src/theme
+RUN npm ci
+COPY . .
+RUN npm test && npm run build && npm prune --omit=dev --ignore-scripts
+
+FROM node:22-bookworm-slim AS runtime
+ENV NODE_ENV=production HOST=0.0.0.0 PORT=3001 DB_PATH=/app/data/syncova.db SMTP_KEY_FILE=/app/data/smtp.key
+WORKDIR /app
+RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/* && mkdir -p /app/data && chown node:node /app/data
+COPY --from=build --chown=node:node /app/node_modules ./node_modules
+COPY --from=build --chown=node:node /app/package.json ./package.json
+COPY --from=build --chown=node:node /app/server ./server
+COPY --from=build --chown=node:node /app/dist ./dist
+USER node
+EXPOSE 3001
+CMD ["node", "server/index.js"]
diff --git a/PARK-UI-LICENSE b/PARK-UI-LICENSE
new file mode 100644
index 0000000..223edc9
--- /dev/null
+++ b/PARK-UI-LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2025 cschroeter
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..160a8b4
--- /dev/null
+++ b/README.md
@@ -0,0 +1,222 @@
+# Syncova Ticket
+
+Deutschsprachiges Ticketsystem mit React, Park UI, Ark UI, Panda CSS, Express und SQLite. Die Oberfläche und die API sind tatsächlich verbunden; Daten, E-Mail-Aufträge, Termine, Sitzungen und Benachrichtigungen bleiben nach Neustarts erhalten.
+
+## Schnellstart
+
+Voraussetzung für neue Installationen: Node.js 22.12 oder neuer und npm (Docker verwendet Node 22). Unter Windows enthält `better-sqlite3` üblicherweise eine passende vorkompilierte Binärdatei; bei anderen Node-Versionen können native Build-Werkzeuge erforderlich sein.
+
+```powershell
+npm ci
+npm run dev
+```
+
+Oberfläche: http://127.0.0.1:5173. Backend: http://127.0.0.1:3001.
+
+Entwicklungsanmeldung: `admin@syncova.local` / `Syncova-Demo-2026!`. Weitere Testbenutzer: `leon@syncova.local` (Bearbeiter, nur Support) und `mira@syncova.local` (Leser, nur Support), gleiches Entwicklungspasswort. Die Demo enthält drei Queues und acht Tickets. Diese Konten und Beispieltickets werden **nur bei der ersten Initialisierung außerhalb des Produktionsmodus** angelegt.
+
+Die Datenbank liegt in `data/syncova.db`, ist von Git ausgeschlossen und wird nicht bei jedem Start zurückgesetzt. Eine bereits angelegte Entwicklungsdatenbank nicht unverändert produktiv verwenden.
+
+## Bedienung
+
+- Übersicht: Suche nach Nummer, Betreff oder Kontakt, Queue-, Status- und Benutzerfilter sowie Sortierung; Detailansicht über den Betreff.
+- „Manuelles Ticket erstellen“ erfasst Kundenname, E-Mail-Adresse, Betreff und Beschreibung direkt im Produktivbetrieb. Erforderlich sind `view` und `reply` in der gewählten Queue. Die Anfrage wird als manuell erfasst protokolliert, ein wiederholter Speicherversuch mit demselben Schlüssel erzeugt kein zweites Ticket. Es wird keine Kunden-Eingangsbestätigung ausgelöst; Team-Benachrichtigungen folgen den persönlichen Einstellungen.
+- Antworten: erlaubten Queue-Absender und Signatur wählen. Der Signaturblock wird vor dem Versand angezeigt und separat vom Nachrichtentext verwaltet. Interne Notizen werden niemals in die Versandwarteschlange geschrieben.
+- Anhänge: „Dateien hinzufügen“ im Antworteditor; maximal 20 Dateien, 10 MiB pro Datei und 20 MiB insgesamt. Dateien werden zusammen mit der Nachricht transaktional gespeichert und beim Versand als MIME-Anhänge angefügt. Eingehende IMAP-Anhänge erscheinen direkt im Nachrichtenverlauf und sind als berechtigungsgeschützter Download verfügbar. Dateiname, Typ und Inhalt bleiben nach Neustarts erhalten. Ein wiederholter Versandauftrag erzeugt keine zusätzlichen Anhänge. Auch eine Antwort nur mit Anhang ist möglich.
+- HTML-Signaturen: unter **Einstellungen → Queue → Signaturen** Format „HTML“ wählen. HTML-Quelltext, sichere Vorschau, Formatierungen, Tabellen, Links und Logos werden unterstützt. Skripte, Ereignishandler, gefährliche URLs und aktive Inhalte werden entfernt. Die Vorschau läuft isoliert ohne externe Bildabrufe; im versendeten HTML bleiben erlaubte HTTPS-Logos erhalten. Antworten und Eingangsbestätigungen enthalten immer eine Klartextalternative. Die gesendete Signatur wird als unveränderlicher Nachrichtensnapshot gespeichert; spätere Änderungen ändern alte E-Mails nicht.
+- Queue löschen: **Einstellungen → Queue → Allgemein → Queue löschen**. Exakten Queue-Namen bestätigen. Bei vorhandenen Tickets sind eine berechtigte Zielqueue und gültige Statuszuordnung erforderlich; Zuständigkeiten werden aufgehoben. Nachrichten, Anhänge und Audit-Einträge bleiben erhalten. Die Queue verschwindet aus der aktiven Verwaltung, Adressen werden freigegeben und Mailzugänge/Abrufpläne entfernt. Ein Historien-Datensatz bleibt in der Datenbank erhalten. Aktiven IMAP-Empfang zuerst deaktivieren; laufende Abrufe und Versandvorgänge abwarten. Erforderlich sind `queue` in der Quelle sowie bei Ticketübernahme `move`/`view` in der Quelle und `move`/`view`/`status` im Ziel.
+- Status: „Warten auf Kunde“ öffnet sich bei einer zugeordneten Kundenantwort; „Warten auf Termin“ benötigt Datum, Uhrzeit und IANA-Zeitzone (z. B. `Europe/Berlin`); „Warten auf Ware“ bietet die berechtigte Bestätigungsaktion. „Erledigt“ schließt das Ticket aus der laufenden Übersicht aus.
+- Queue-Wechsel: Zielrechte und Absender werden geprüft, ein aktiver Status gleichen Verhaltens wird bevorzugt, alternativ „Offen“. Die Zuständigkeit wird aufgehoben. Eine manuelle Zielstatusauswahl ist möglich. Der Editor verwendet anschließend die Signaturen und Adressen der Zielqueue.
+- Einstellungen: „Allgemein“ verwaltet Queue-Name und Farbe. **Mail-Einstellungen** bündelt Adressen, SMTP-Versand, IMAP-Empfang, Abrufzeitplan und Eingangsbestätigung. Status und Signaturen besitzen eigene Tabs. Verwendete deaktivierte Status benötigen eine gültige Nachfolgezuordnung. Ein aktiver Offen-Status muss erhalten bleiben. Für verwendete Status ist das Verhalten unveränderlich; hierfür einen neuen Status anlegen und zuordnen.
+- Benutzer & Gruppen: Benutzer anlegen/deaktivieren, Gruppenmitgliedschaften und Berechtigungsmatrix bearbeiten. Die Administratorgruppe und der eigene Administratorzugriff sind geschützt.
+- Glocke: Benachrichtigungen lesen und Tickets öffnen; unter „Benachrichtigungen konfigurieren“ pro Ereignis E-Mail und Glocke auswählen. Aktualisierung alle fünf Sekunden ohne Seitenneuladen.
+- Darstellung: Kopfzeilen-Schalter wechselt zwischen System, Hell und Dunkel; Auswahl bleibt im Browser erhalten.
+
+## E-Mail im Entwicklungsbetrieb
+
+Ohne explizite Queue-Konfiguration legt `MAIL_MODE=development` den Versandstandard fest. **Der Entwicklungsadapter einer Queue erzeugt keine echten ausgehenden E-Mails. Sobald in dieser Queue SMTP aktiviert wird, werden Antworten, aktivierte Eingangsbestätigungen und E-Mail-Benachrichtigungen tatsächlich über ihren SMTP-Server versendet.** Der Entwicklungs-API-Endpunkt `/api/dev/incoming` bleibt für Integrationstests erhalten, besitzt jedoch keine Schaltfläche mehr in der Oberfläche. „Manuelles Ticket erstellen“ nutzt einen eigenen authentifizierten Produktiv-Endpunkt (`POST /api/tickets`). Für eine E-Mail-Antwort auf ein bestehendes Ticket muss eine passende Message-ID über References/In-Reply-To und dieselbe Kundenadresse vorhanden sein; ein geänderter Betreff beeinflusst die Zuordnung nicht.
+
+### SMTP und Eingangsbestätigung pro Queue
+
+**Einstellungen → Queue wählen → Mail-Einstellungen** benötigt die Aktion `queue`. Im oberen Bereich zuerst Eingangs- und Ausgangsadressen sowie Standardabsender verwalten. Für den Versand „SMTP“ auswählen, Server/Port/Benutzer/Passwort eintragen und TLS ab Verbindungsaufbau (typisch 465) oder zwingendes STARTTLS (typisch 587) wählen. Unverschlüsselter Versand und das Abschalten der Zertifikatsprüfung werden nicht angeboten. „Speichern & SMTP prüfen“ speichert und prüft SMTP ohne Test-E-Mail. Leere Passwortfelder behalten gespeicherte Zugangsdaten bei. Bei geändertem Server oder Benutzer müssen die Zugangsdaten erneut eingegeben werden.
+
+### Empfang und Abrufzeitplan pro Queue
+
+Im selben Tab unter **Empfangen · IMAP** Server, Port, TLS-Modus, Benutzername, Passwort und Postfachordner (meist `INBOX`) hinterlegen und den Empfang aktivieren. Standardports: 993 mit direktem TLS, 143 mit zwingendem STARTTLS. Passwörter sind wie SMTP-Zugangsdaten verschlüsselt; Schlüssel und Sicherungshinweise im nächsten Absatz gelten für beide Protokolle. „Speichern & IMAP prüfen“ testet Anmeldung und Ordnerzugriff ohne Import. „Speichern & jetzt abrufen“ führt einen echten Import aus und kann bei aktivierter Eingangsbestätigung Kundenmails auslösen.
+
+**Abrufzeitplan / Cron-Job:** je Queue Intervall (15–86.400 Sekunden) oder Cron-Ausdruck mit fünf Feldern und IANA-Zeitzone wählen. Beispiele: `*/5 * * * *` alle fünf Minuten; `0 8-18 * * 1-5` werktags stündlich von 8 bis 18 Uhr. Die Zeitzone berücksichtigt Sommer- und Winterzeit. Die Anzeige enthält letzten Versuch, letzten erfolgreichen Abruf, nächsten Termin und Fehlerstatus; sie aktualisiert sich alle fünf Sekunden.
+
+Der Job läuft im Syncova-Serverprozess, nicht in einem externen Windows-/Linux-Cron-Dienst. Ein Scheduler prüft jede Sekunde die persistenten Queue-Termine. Der Server muss laufen, der Browser darf geschlossen sein. Fällige bzw. während eines Serverabbruchs begonnene geplante Abrufe bleiben nach einem Neustart fällig und werden einmal nachgeholt. Pro Queue kann nur ein Abruf gleichzeitig laufen. Das Deaktivieren oder Ändern der Mailkonfiguration stoppt die weitere Verarbeitung einer laufenden alten Konfiguration und ersetzt ihren Termin. Standardmäßig ist der Empfang ohne vorkonfiguriertes Konto deaktiviert.
+
+„Nur ungelesene Nachrichten“ und „nach erfolgreichem Import als gelesen markieren“ sind getrennt wählbar. Es werden keine E-Mails gelöscht. Importierte IMAP-UIDs werden zusammen mit Postfach und UIDVALIDITY gespeichert; wiederholte Abrufe und Abstürze erzeugen keine doppelten Nachrichten. Ein gemeinsam genutztes Postfach ist möglich: jede Queue verarbeitet nur ihre Empfängeradressen und lässt fremde Nachrichten ungelesen. Je Durchlauf werden höchstens 100 noch nicht betrachtete UIDs untersucht; weitere folgen beim nächsten Abruf. Fehlerhafte Nachrichten bleiben im Postfach und werden im queuegeschützten Systemprotokoll vermerkt. Bcc ohne erkennbare To/Cc-Zuordnung und mehrdeutige Queue-Empfänger benötigen eine Korrektur der Zustellung.
+
+SMTP-Passwörter werden mit AES-256-GCM verschlüsselt in `queue_mail` gespeichert. Schlüssel: `SMTP_ENCRYPTION_KEY` (64 Hexzeichen aus dem Secret Manager), alternativ `SMTP_KEY_FILE` bzw. automatisch `data/smtp.key`. Unter Windows den Zugriff per NTFS-ACL auf den Dienstbenutzer begrenzen. Schlüssel separat sichern; geht er verloren, müssen die SMTP-Passwörter neu eingegeben werden. API und Protokolle enthalten lediglich `passwordSet`/Änderungsflags, niemals das Passwort oder den verschlüsselten Wert. Das Passwort wird nur für den jeweiligen Versand serverseitig entschlüsselt. Globale SMTP-Umgebungsvariablen bleiben als kompatibler Fallback für noch nicht explizit konfigurierte Queues bestehen.
+
+Eingangsbestätigung ist anfangs **deaktiviert**. Betreff/Text sind pro Queue konfigurierbar. Platzhalter: `{ticketnummer}`, `{betreff}`, `{kundenname}`, `{queue}`. Die optionale Standardsignatur wird genau einmal angehängt, eine Vorschau zeigt das Ergebnis mit Beispieldaten. Bestätigungen entstehen nur bei einer neuen Anfrage, in derselben Transaktion wie das Ticket und mit einer stabilen Message-ID. Duplikate, Kundenantworten im vorhandenen Thread, eigene Absender und automatische Nachrichten lösen keine zweite Bestätigung aus. Standardabsender, Queue-SMTP und Thread-References werden auch für diese Nachrichten verwendet. Konfiguration und Versand erscheinen in System- bzw. Ticketprotokoll. Es erfolgt kein nachträglicher Bestätigungsversand für vorhandene Tickets.
+
+Entwicklungsendpunkte erfordern eine angemeldete Administratorberechtigung und sind im Produktionsmodus deaktiviert:
+
+- `POST /api/dev/incoming`: `{messageId, from, to:[], subject, body, references:[], inReplyTo?, attachments?:[{name,mime,content:}]}`.
+- `GET /api/dev/mail`: persistent gespeicherte, simuliert zugestellte E-Mails (einschließlich aktivierter E-Mail-Benachrichtigungen).
+
+Mehrere Queue-Adressen sind vorhanden, etwa `support@syncova.local` und `support.team@syncova.local`. Eingehende Nachrichten müssen genau einer Queue zugeordnet werden. Eigene Adressen, `Auto-Submitted` außer `no` und `Precedence: bulk/list/junk` werden gegen Schleifen ignoriert. Message-IDs sind global eindeutig; erneuter Empfang erzeugt weder Nachrichten noch Benachrichtigungen doppelt.
+
+## Datenmodell und Berechtigungen
+
+`users` → `memberships` → `groups_`; jede Gruppe enthält pro Queue-ID oder `*` eine Liste erlaubter Aktionen. **Union/Allow-only:** Alle Erlaubnisse aus allen Gruppen werden addiert; es gibt keine impliziten Verweigerungsregeln. Ohne `view` werden keine Tickets der Queue ausgeliefert. Eine Aktionsberechtigung allein ersetzt `view` nicht. `users` gilt workspaceweit; Queue-, Status-, Signatur- und Logrechte können queuespezifisch vergeben werden. Neue Queues sind zunächst für die Administratorgruppe sichtbar; weitere Gruppen gezielt ergänzen.
+
+Aktionen: `view`, `reply`, `note`, `status`, `assign`, `move`, `goods`, `queue`, `statuses`, `signatures`, `users`, `logs`. Die API prüft sie unabhängig von sichtbaren UI-Schaltern. Auch Direktzugriffe, Anhänge, Notification-Anzeige und Notification-Versand werden geprüft. Berechtigte Teammitglieder sehen die Namen anderer aktiver Benutzer für Zuweisungen; eine unzulässige Zuweisung wird abgewiesen.
+
+`queues` besitzen Adressen und Signaturen; `statuses` besitzen stabile IDs und interne Verhaltenskennungen. `tickets` referenzieren Queue/Status/Zuständigkeit und besitzen UTC-Termin, IANA-Zone und eine Revisionsnummer zur Konflikterkennung. `messages` enthalten Klartext und Thread-IDs, `attachments` gesicherte Binärdaten. `audits` speichern Vorher-/Nachher-Werte, Akteur, Zeit und Entität. SQLite-Trigger verhindern Audit-Änderung und -Löschung. `notifications` besitzen eine eindeutige Kombination aus Benutzer und Ereignisschlüssel. `outbox` und `dev_mail` sichern Versandaufträge bzw. simulierte Zustellungen.
+
+Ticketänderungen, Aktivitäten und Benachrichtigungen erfolgen in SQLite-Transaktionen. Die Abfrage fälliger Tickets prüft alle fünf Sekunden den **aktuellen** Wartestatus und **aktuellen** Termin. Es gibt keine veralteten Timer-Jobs; abgeschaffte oder geänderte Termine können nicht nachträglich feuern. Beim Prozessstart werden fällige Termine nachgeholt. Sommerzeitlücken bei lokaler Termineingabe werden abgewiesen.
+
+## Produktion und echte Konten
+
+1. `Copy-Item .env.example .env`; serverseitige Variablen ausfüllen. Keine Geheimnisse im Frontend oder Git speichern. Für den Betrieb einen Secret Manager oder geschützte Umgebungsvariablen verwenden; `.env` mittels Dateisystemrechten auf den Dienstbenutzer beschränken.
+2. `NODE_ENV=production`, eine **neue** `DB_PATH`, `ADMIN_EMAIL` und ein individuelles `ADMIN_PASSWORD` vor dem ersten Start setzen. Der Produktionsstart ohne Bootstrap-Passwort wird abgewiesen. Nach der Initialisierung kann die Bootstrap-Variable entfernt werden.
+3. SMTP pro Queue in **Einstellungen → Mail-Einstellungen** einrichten. Für bestehende Installationen bleibt alternativ `MAIL_MODE=smtp` mit `SMTP_HOST`, `SMTP_PORT`, `SMTP_TLS`, `SMTP_USER`, `SMTP_PASSWORD` als globaler Versand-Fallback verfügbar. Der jeweilige SMTP-Account muss die Queue-Absender erlauben.
+4. IMAP-Konto und Zeitplan ebenfalls pro Queue in **Mail-Einstellungen** konfigurieren. Bestehende `IMAP_HOST`, `IMAP_PORT`, `IMAP_USER`, `IMAP_PASSWORD` werden bei erstmaliger Anlage der Empfangseinstellungen als Startwerte übernommen (Intervall 30 Sekunden); anschließend ist die gespeicherte Queue-Konfiguration maßgeblich. Ohne diese Umgebungsvariablen bleibt Empfang zunächst aus. Ein eigenes Postfach je Queue oder ein gemeinsames Sammelpostfach sind möglich.
+5. `npm run build` und `npm start`. Der Node-Prozess liefert dann auch das gebaute Frontend unter Port 3001 aus. Dauerbetrieb als **eine** beaufsichtigte Dienstinstanz einrichten (z. B. systemd/Windows-Dienst mit automatischem Neustart). Ein reiner statischer Webhost kann dieses Backend nicht ausführen.
+6. Hinter einem HTTPS-Reverse-Proxy betreiben, `APP_ORIGIN=https://tickets.example.org` und `COOKIE_SECURE=true` setzen. Auf demselben Ursprung ausliefern; keine offene CORS-Konfiguration. Nur den Reverse-Proxy öffentlich zugänglich machen. Health-/Prozessüberwachung und Sicherungen einrichten.
+
+SMTP-Aufträge verwenden eine stabile Message-ID. Definitiv fehlgeschlagene Verbindungen werden mit Backoff wiederholt. Bei einem unklaren Ergebnis oder Neustart während `sending` wird der Auftrag **uncertain**, damit er nicht blind doppelt versendet wird. Solche Aufträge erscheinen unter Systemprotokoll → Versandaufträge. Der Administrator muss die Zustellung am Mailserver prüfen; es gibt absichtlich keine ungesicherte „erneut senden“-Schaltfläche. Entfernte Absender nach einem Queue-Wechsel blockieren einen noch wartenden Antwortauftrag. Im Entwicklungsadapter ist die Zustellung durch die gemeinsame Datenbanktransaktion exakt einmalig.
+
+## Tests und Qualität
+
+```powershell
+npm test
+npm run build
+npm audit
+npm run test:docker
+npm run test:image
+```
+
+Integrationsprüfungen verwenden isolierte SQLite-Datenbanken und einen echten lokalen HTTP-Server. Sie decken Queue-Isolation inklusive HTTP-Direktzugriff/Anhängen, Gruppenunion und Rechteentzug, mehrere Empfangsadressen und Queues, Threadzuordnung unabhängig vom Betreff, Duplikate, Schleifen, alle Wartestatus, Prozessneustart, Statusablösung und Rollback, erlaubte Absender, interne Notizen, idempotenten Entwicklungsversand, unveränderliche Audits, Benachrichtigungs-Deduplizierung, Zuständigkeits- und Queue-Wechsel sowie veraltete Revisionen und Cross-Origin-Schreibzugriffe ab. Zusätzlich Tests für IANA-Zonen und Sommerzeitlücken.
+
+Die weiteren Tests prüfen Queue-Löschung inklusive vollständiger Ticket-/Anhangübernahme und Rollback, HTML-Bereinigung sowie echte MIME-Erzeugung und erneutes Parsen von HTML-/Klartext-Mails mit Binäranhängen. `test:docker` benötigt ein zuvor gebautes Image, erzeugt eine isolierte Compose-Testumgebung und entfernt nur deren eigene Container und Testvolumes. Es prüft Daten, Anhänge, HTML, Schlüsselentschlüsselung, Sitzungen und Protokolle nach einem vollständigen Container-Neuerstellen. `test:image` prüft zusätzlich das unveränderte Image auf ein leeres Datenverzeichnis und eingebettete Zugangsdaten; danach startet es einen flüchtigen Produktionscontainer ohne veröffentlichte Ports und prüft Bootstrap-Anmeldung, leere Tickets/Nachrichten/Anhänge und das Fehlen von Demobenutzern. Beide verwenden standardmäßig `syncova-ticket:local`, überschreibbar mit `SYNCOVA_IMAGE`.
+
+## Gitea Actions und Container Registry
+
+Repository: [jf/syncova-ticket](https://git.jfritzsche.de/jf/syncova-ticket). Der Workflow [.gitea/workflows/ci.yaml](.gitea/workflows/ci.yaml) läuft bei Branch-Pushes, Tags `v*` und Pull Requests nach `main`:
+
+1. `npm ci`, Integrationstests und Produktionsbuild mit Node.js 22.
+2. Nur nach erfolgreichen Tests: Docker-Image bauen und den leeren Produktionsstart mit `npm run test:image` prüfen.
+3. Nur für Pushes nach `main` oder Versionstags: Anmeldung mit dem Repository-Secret `REGISTRY_TOKEN` und Veröffentlichung nach `git.jfritzsche.de/jf/syncova-ticket`.
+
+Jeder veröffentlichte Build erhält `sha-`. Der aktuelle erfolgreiche `main`-Build erhält zusätzlich `latest`; ein älterer parallel laufender Build überschreibt diesen Tag nicht. Versionstags wie `v1.0.0` erzeugen denselben Image-Tag. Pull Requests und sonstige Branches veröffentlichen keine Images und erhalten keinen Registry-Token. Actions sind auf konkrete Commit-SHAs festgelegt. Der Runner muss das Label `ubuntu-latest`, Node-Action-Unterstützung, Docker CLI und Zugriff auf einen Docker-Daemon besitzen. Das Secret benötigt Schreibzugriff auf Pakete des Benutzers `jf`; es gehört weder ins Repository noch in die Compose-Datei.
+
+Das Image enthält keine lokale SQLite-Datenbank, Anhänge, Mailzugangsdaten oder Schlüssel. Produktionsstarts mit einem neuen Volume erzeugen nur das konfigurierte Administratorkonto sowie Standardqueues, Status und Gruppen; keine Demotickets oder weiteren Benutzer. Bestehende Volumes werden unverändert weiterverwendet.
+
+## Docker Compose mit persistenten Daten
+
+```powershell
+Copy-Item .env.docker.example .env.docker
+# .env.docker bearbeiten: eigenes ADMIN_PASSWORD und gewünschte URL setzen.
+docker compose --env-file .env.docker pull
+docker compose --env-file .env.docker up -d
+```
+
+Standardadresse: **http://localhost:3002**. Die vorhandene lokale Entwicklung auf Port 3001 bleibt getrennt. Der erste Docker-Start verwendet eine neue Datenbank; vorhandene lokale Daten werden nicht stillschweigend ersetzt oder übernommen. Für die Übernahme siehe unten. `APP_ORIGIN` muss exakt zur aufgerufenen Adresse einschließlich Port passen. Für HTTPS `COOKIE_SECURE=true` setzen. SMTP/IMAP werden anschließend in der Oberfläche pro Queue konfiguriert.
+
+Das benannte Volume `_syncova_data` wird unter `/app/data` eingebunden. Darin liegen SQLite samt WAL, Tickets, Benutzer, Gruppen, Sitzungen, Nachrichten, **alle Anhänge als BLOBs**, HTML-Nachrichten, Signaturen, Mailkonfigurationen, Benachrichtigungen, Audit-Historie, Versandaufträge, Abrufzeitpläne/UID-Deduplizierung und der automatisch erzeugte Verschlüsselungsschlüssel `smtp.key`. Container können aktualisiert oder neu erstellt werden; das Volume bleibt bestehen. Bei extern vorgegebenem `SMTP_ENCRYPTION_KEY` diesen zusätzlich zur Datenbanksicherung sicher verwahren.
+
+```powershell
+docker compose --env-file .env.docker ps
+docker compose --env-file .env.docker logs --tail 100 syncova
+docker compose --env-file .env.docker down
+docker compose --env-file .env.docker up -d
+```
+
+`compose.yaml` verwendet das fertige Registry-Image und baut nicht lokal. `SYNCOVA_IMAGE` kann auf einen festen `sha-...`- oder Versionstag gesetzt werden. Standardmäßig wird das aktuelle Image beim Start abgerufen (`SYNCOVA_PULL_POLICY=always`). Für private Pakete vorher mit `docker login git.jfritzsche.de --username jf` anmelden und einen Token am Passwortprompt eingeben; niemals in die Compose-Datei schreiben.
+
+`down` ohne `--volumes` behält alle Daten. **`down --volumes` löscht das Datenvolume** und gehört nicht zum normalen Updateablauf. Für Updates `pull` und anschließend `up -d` verwenden. Das Image läuft als Benutzer `node`, mit schreibgeschütztem Root-Dateisystem, Healthcheck und automatischem Neustart; Scheduler und Versandworker laufen im selben Dienst. Es wird nur eine Instanz unterstützt. `ADMIN_PASSWORD` ist das Bootstrap-Passwort der Ersteinrichtung; bei bestehender Datenbank setzt ein anderer Variablenwert das Benutzerpasswort nicht zurück. Compose benötigt die Variable weiterhin zur Konfigurationsprüfung.
+
+Für einen bewussten lokalen Build und die Docker-Tests:
+
+```powershell
+docker build -t syncova-ticket:local .
+npm run test:image
+npm run test:docker
+# Optional mit Compose lokal starten:
+$env:SYNCOVA_IMAGE = 'syncova-ticket:local'
+$env:SYNCOVA_PULL_POLICY = 'never'
+docker compose --env-file .env.docker up -d
+```
+
+### Vorhandene lokale Daten nach Docker übernehmen
+
+Den lokalen Syncova-Server zuerst beenden und bis zum Abschluss nicht erneut starten; zwei aktive Mailworker auf kopierten Datenbeständen können doppelt versenden. Nur ein **neues, noch leeres Docker-Volume** verwenden. Im Projektordner:
+
+```powershell
+$syncovaImportPath = (Resolve-Path .\data).Path
+docker compose --env-file .env.docker pull
+docker compose --env-file .env.docker run --rm --no-deps --entrypoint node --volume "${syncovaImportPath}:/import:ro" syncova server/import-data.js
+docker compose --env-file .env.docker up -d
+```
+
+Der Import überschreibt keine vorhandene Zieldatenbank. Er übernimmt `syncova.db`, gegebenenfalls WAL und `smtp.key`, prüft Integrität und Mail-Schlüssel und erhält vorhandene Benutzerkonten/Passwörter. Bei einem abweichenden `DB_PATH`/`SMTP_KEY_FILE` die Quelldateien zuvor unter diesen Namen bereitstellen. Wurde lokal ein externer `SMTP_ENCRYPTION_KEY` verwendet, denselben Wert in `.env.docker` setzen. Bei einem Importfehler bleiben bereits kopierte Daten zur Prüfung erhalten; die Quelle wird nie verändert.
+
+### Sicherung
+
+Den Dienst stoppen und das gesamte Datenverzeichnis einschließlich Schlüssel sichern:
+
+```powershell
+docker compose --env-file .env.docker stop
+docker compose --env-file .env.docker cp syncova:/app/data ./syncova-backup
+docker compose --env-file .env.docker start
+```
+
+Sicherungen enthalten vertrauliche Daten und müssen entsprechend geschützt werden. Zusätzlich `.env.docker` bzw. extern verwaltete Schlüssel sichern. Eine Wiederherstellung erfolgt bei gestopptem Dienst in ein leeres Volume; die Dateien müssen für UID/GID 1000 (`node`) schreibbar sein. Das benannte Volume allein schützt vor Container-Neuerstellung, ersetzt aber keine externe Sicherung.
+
+Park UI wurde gemäß aktueller [Installation](https://park-ui.com/docs/installation) und [Theming-Dokumentation](https://park-ui.com/docs/theming) als Quellcode aus der offiziellen Registry übernommen. Die CLI konnte hier ihre Initialisierung nicht abschließen; `scripts/install-park.ps1` und `scripts/configure-park.mjs` dokumentieren den Registry-Import und die Panda-Konfiguration. Die generierten Komponenten und Rezepte sind Bestandteil des Projekts; im normalen Build ist weder die Registry noch die CLI nötig. Farben basieren auf Neutral/Violet, im Darkmode auf Anthrazit mit violetten Akzenten. Radius-Tokens betragen 2/3/4 Pixel. Modale verwenden einen Portal-Layer, ausgerichtete Kopfzeilen, volle Formularbreite und scrollbaren Inhalt. CSS/Panda-Pakete sind durch die Sperrdatei fixiert; zwei transitive Build-Abhängigkeiten werden auf gepatchte Versionen überschrieben. Die Tests prüfen zusätzlich Queue-SMTP-Routing, Geheimnisverschlüsselung und -redaktion sowie die einmalige automatische Eingangsbestätigung.
+
+## Benutzer und Gruppen löschen
+
+Unter **Benutzer & Gruppen** befindet sich neben jedem Benutzer ein Papierkorb; Gruppen haben eine eigene Aktion **Löschen**. Vor dem Löschen zeigt der Dialog die Auswirkungen und verlangt die E-Mail-Adresse bzw. den Gruppennamen zur Bestätigung. Beide Aktionen erfordern die workspaceweite Berechtigung „Benutzer verwalten“ und werden protokolliert.
+
+Beim Löschen eines Benutzers werden Sitzungen und Mitgliedschaften entfernt, ausstehende Benachrichtigungsmails abgebrochen und alle zugewiesenen Tickets freigegeben. Das Konto verschwindet aus der Verwaltung und allen Auswahllisten und kann weder angemeldet noch über einen alten Editor reaktiviert werden. Die E-Mail-Adresse kann für ein neues Konto verwendet werden. Ein gesperrter interner Datensatz mit dem bisherigen Namen bleibt erhalten, damit Ticket- und Auditverläufe nachvollziehbar bleiben; Nachrichten, Anhänge und bereits vorgemerkte Kundenantworten bleiben erhalten.
+
+Beim Löschen einer Gruppe werden deren Mitgliedschaften und Rechte entfernt. Benutzerkonten und Rechte aus anderen Gruppen bleiben erhalten. Zugewiesene Tickets werden nur dann freigegeben, wenn der jeweilige Bearbeiter dadurch seinen Lesezugriff verliert. Der eigene Benutzer, der letzte aktive Administrator und die Administratorgruppe sind geschützt; auch die einzige eigene Gruppe mit Zugriff auf die Benutzerverwaltung lässt sich nicht löschen. Löschungen bleiben nach einem Neustart bestehen.
+
+## Platzhalter in Signaturen
+
+Unter **Einstellungen → Queue → Signaturen → Platzhalter einfügen** lassen sich Variablen an der Cursorposition einfügen. Sie funktionieren in Klartext und HTML. Die Vorschau zeigt wahlweise eine Antwort des angemeldeten Benutzers mit Beispielticket oder eine automatische Eingangsmeldung. Im Ticket erscheint die Signatur mit den tatsächlichen Ticketdaten; beim Versand wird sie serverseitig erneut aufgelöst und dauerhaft in der Nachricht gespeichert.
+
+| Bereich | Platzhalter |
+| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| Antwortender Benutzer | `{benutzer.name}`, `{benutzer.vorname}`, `{benutzer.nachname}`, `{benutzer.email}`, `{benutzer.telefon}`, `{benutzer.position}`, `{benutzer.abteilung}` |
+| Queue und Versand | `{queue.name}`, `{queue.email}` (Standardabsender), `{absender.email}` (ausgewählter Absender) |
+| Ticket | `{ticket.nummer}`, `{ticket.betreff}`, `{ticket.status}` |
+| Kundenkontakt | `{kunde.name}`, `{kunde.email}` |
+| Zugewiesener Bearbeiter | `{bearbeiter.name}`, `{bearbeiter.email}` |
+| Zeitpunkt | `{datum}`, `{uhrzeit}` in `Europe/Berlin` |
+
+Telefon, Position/Funktion und Abteilung sind optionale Felder in **Einstellungen → Benutzer → Benutzer bearbeiten**. Vorname ist das erste Wort des Anzeigenamens, Nachname der Rest. Fehlende persönliche Angaben und nicht zugewiesene oder nicht mehr zugriffsberechtigte Bearbeiter ergeben einen leeren Wert. Automatische Eingangsmeldungen verwenden für `{benutzer.name}` den Queue-Namen und für `{benutzer.email}` den Queue-Absender; Vorname, Nachname, Telefon, Position und Abteilung bleiben dabei leer. Die Eingangsbestätigung muss die Signatur weiterhin explizit einschließen.
+
+Vorhandene Vorlagen mit `{%user.firstName%}`, `{%user.lastName%}`, `{%user.phone%}` und `{%mailbox.email%}` funktionieren ebenfalls. `{%mailbox.email%}` entspricht dem ausgewählten Queue-Absender. Beide Schreibweisen (`{...}` und `{%...%}`) werden unterstützt.
+
+Beispiel für HTML:
+
+```html
+
+ Freundliche Grüße
+ {benutzer.name}
+ {benutzer.position} · {benutzer.abteilung}
+ {benutzer.email}
+ {queue.name} · Ticket {ticket.nummer}
+
+```
+
+Unbekannte Platzhalter werden mit einer Fehlermeldung abgewiesen. HTML-Werte werden maskiert, danach wird die gesamte Signatur erneut bereinigt. Daten mit geschweiften Klammern werden nicht rekursiv als weitere Platzhalter interpretiert. Englische Aliase wie `{user.name}`, `{user.email}`, `{user.phone}`, `{user.job_title}`, `{user.department}`, `{ticket.number}`, `{customer.name}` und `{assignee.name}` werden ebenfalls unterstützt. Datum und Uhrzeit beziehen sich auf das Erstellen der Antwort, nicht auf einen späteren Zustellversuch.
+
+## Bekannte Grenzen und Betriebsentscheidungen
+
+- **Echte SMTP-/IMAP-Zustellung wurde mangels Kontodaten nicht extern getestet.** Entwicklung, API, Persistenz und Hintergrundverarbeitung sind lokal geprüft. Kein öffentlicher Server oder Cloud-Deployment wurde eingerichtet.
+- Klassisches SMTP bietet keine transaktionale Exactly-once-Zustellung mit der lokalen Datenbank. Unklare Zustellungen erfordern die oben beschriebene manuelle Prüfung; dafür ist kein automatischer Doppelversand vorgesehen. Für vollautomatische Exactly-once-Annahme wäre ein Mailprovider mit serverseitigem Idempotenzschlüssel nötig.
+- SMTP und IMAP einschließlich separater Konten sind pro Queue konfigurierbar. Noch keine OAuth2-Konfiguration und kein POP3. Bcc-/Envelope-only-Zustellung ohne erkennbare To/Cc-Zuordnung und Nachrichten mit Empfängern mehrerer Queues werden zur Prüfung zurückgehalten.
+- Threads werden aus Gründen der Queue-Isolation nur bei gleicher Kundenadresse und aktueller Queue verbunden. Antworten an eine frühere Queue-Adresse nach einem Verschieben erzeugen ein neues Ticket; entsprechend die Zieladresse in weiteren Antworten verwenden. Kein automatisches Zusammenführen verschiedener Kundenkontakte.
+- Fremdes HTML wird nicht ausgeführt; IMAP nutzt die Textalternative, bei fehlender Alternative einen Hinweis. HTML-Signaturen werden bereinigt und nur isoliert angezeigt. Anhänge werden als Download mit `application/octet-stream`, `nosniff` und Sandbox ausgeliefert. Maximal 10 MiB pro Anhang, 20 MiB pro eingehender IMAP-Nachricht; ausgehende Anhänge insgesamt höchstens 20 MiB. MIME-Kodierung vergrößert die versendete Nachricht, daher gelten zusätzlich die Größenlimits des Mailproviders. Kein Virenscanner integriert.
+- Single-instance SQLite, Polling statt WebSockets, keine horizontale Skalierung und keine serverseitige Pagination. Für große Installationen wären PostgreSQL, Worker-Leases und paginierte Suche die nächsten Schritte.
+- Keine MFA, SSO, Passwort-Selbstzurücksetzung oder Zustell-Webhooks. Benutzerverwaltung erlaubt Administratoren Passwortsetzung. Sitzungen sind 12 Stunden gültig, HttpOnly und SameSite=Strict; Anmeldung ist rate-limitiert. Produktive Einrichtung mit HTTPS und sicherer Passwortverteilung erforderlich.
+- Datenbanksicherungen müssen konsistent erfolgen (SQLite-Backup API oder gestoppter Prozess; bei Live-Dateikopie auch WAL beachten). Datenträgerverschlüsselung, Aufbewahrungsfristen und Monitoring sind Betriebsaufgaben. Audit-Trigger schützen vor normalen API-Benutzern, nicht vor einem Datenbankadministrator mit Dateizugriff.
diff --git a/compose.yaml b/compose.yaml
new file mode 100644
index 0000000..1c94a89
--- /dev/null
+++ b/compose.yaml
@@ -0,0 +1,50 @@
+services:
+ syncova:
+ image: ${SYNCOVA_IMAGE:-git.jfritzsche.de/jf/syncova-ticket:latest}
+ pull_policy: ${SYNCOVA_PULL_POLICY:-always}
+ restart: unless-stopped
+ init: true
+ ports:
+ - '${SYNCOVA_BIND:-127.0.0.1}:${SYNCOVA_PORT:-3002}:3001'
+ environment:
+ NODE_ENV: production
+ HOST: 0.0.0.0
+ PORT: 3001
+ TZ: Europe/Berlin
+ DB_PATH: /app/data/syncova.db
+ SMTP_KEY_FILE: /app/data/smtp.key
+ SMTP_ENCRYPTION_KEY: ${SMTP_ENCRYPTION_KEY:-}
+ APP_ORIGIN: ${APP_ORIGIN:-http://localhost:3002}
+ COOKIE_SECURE: ${COOKIE_SECURE:-false}
+ ADMIN_EMAIL: ${ADMIN_EMAIL:-admin@example.org}
+ ADMIN_PASSWORD: ${ADMIN_PASSWORD:?Bitte ADMIN_PASSWORD in .env.docker setzen}
+ MAIL_MODE: development
+ volumes:
+ - syncova_data:/app/data
+ read_only: true
+ tmpfs:
+ - /tmp:rw,noexec,nosuid,size=64m
+ cap_drop:
+ - ALL
+ security_opt:
+ - no-new-privileges:true
+ stop_grace_period: 45s
+ healthcheck:
+ test:
+ [
+ 'CMD',
+ 'node',
+ '-e',
+ "fetch('http://127.0.0.1:3001/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
+ ]
+ interval: 15s
+ timeout: 5s
+ start_period: 20s
+ retries: 3
+ logging:
+ driver: json-file
+ options:
+ max-size: '10m'
+ max-file: '3'
+volumes:
+ syncova_data:
diff --git a/docs/attachment-demo.txt b/docs/attachment-demo.txt
new file mode 100644
index 0000000..a237f58
--- /dev/null
+++ b/docs/attachment-demo.txt
@@ -0,0 +1 @@
+Lokale Testdatei zur Prüfung der Anhang-Auswahl.
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..8cd3aeb
--- /dev/null
+++ b/index.html
@@ -0,0 +1 @@
+Syncova Ticket · Kundenservice, verbunden.
diff --git a/neutral-registry.json b/neutral-registry.json
new file mode 100644
index 0000000..917974d
--- /dev/null
+++ b/neutral-registry.json
@@ -0,0 +1,33 @@
+{
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "neutral",
+ "type": "registry:color",
+ "dependencies": ["@pandacss/dev"],
+ "files": [
+ {
+ "content": "import { defineSemanticTokens } from '@pandacss/dev'\n\nexport const neutral = defineSemanticTokens.colors({\n '1': { value: { _light: '#fcfcfc', _dark: '#111111' } },\n '2': { value: { _light: '#f9f9f9', _dark: '#191919' } },\n '3': { value: { _light: '#f0f0f0', _dark: '#222222' } },\n '4': { value: { _light: '#e8e8e8', _dark: '#2a2a2a' } },\n '5': { value: { _light: '#e0e0e0', _dark: '#313131' } },\n '6': { value: { _light: '#d9d9d9', _dark: '#3a3a3a' } },\n '7': { value: { _light: '#cecece', _dark: '#484848' } },\n '8': { value: { _light: '#bbbbbb', _dark: '#606060' } },\n '9': { value: { _light: '#8d8d8d', _dark: '#6e6e6e' } },\n '10': { value: { _light: '#838383', _dark: '#7b7b7b' } },\n '11': { value: { _light: '#646464', _dark: '#b4b4b4' } },\n '12': { value: { _light: '#202020', _dark: '#eeeeee' } },\n a1: { value: { _light: '#00000003', _dark: '#00000000' } },\n a2: { value: { _light: '#00000006', _dark: '#ffffff09' } },\n a3: { value: { _light: '#0000000f', _dark: '#ffffff12' } },\n a4: { value: { _light: '#00000017', _dark: '#ffffff1b' } },\n a5: { value: { _light: '#0000001f', _dark: '#ffffff22' } },\n a6: { value: { _light: '#00000026', _dark: '#ffffff2c' } },\n a7: { value: { _light: '#00000031', _dark: '#ffffff3b' } },\n a8: { value: { _light: '#00000044', _dark: '#ffffff55' } },\n a9: { value: { _light: '#00000072', _dark: '#ffffff64' } },\n a10: { value: { _light: '#0000007c', _dark: '#ffffff72' } },\n a11: { value: { _light: '#0000009b', _dark: '#ffffffaf' } },\n a12: { value: { _light: '#000000df', _dark: '#ffffffed' } },\n solid: {\n bg: {\n DEFAULT: { value: { _light: '{colors.black}', _dark: '{colors.white}' } },\n hover: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.white}', _dark: '{colors.black}' } } },\n },\n subtle: {\n bg: {\n DEFAULT: { value: { _light: '{colors.gray.a3}', _dark: '{colors.gray.a3}' } },\n hover: { value: { _light: '{colors.gray.a4}', _dark: '{colors.gray.a4}' } },\n active: { value: { _light: '{colors.gray.a5}', _dark: '{colors.gray.a5}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },\n },\n surface: {\n bg: {\n DEFAULT: { value: { _light: '{colors.white}', _dark: '{colors.gray.1}' } },\n hover: { value: { _light: '{colors.gray.2}', _dark: '{colors.gray.2}' } },\n active: { value: { _light: '{colors.gray.3}', _dark: '{colors.gray.3}' } },\n },\n border: {\n DEFAULT: { value: { _light: '{colors.gray.6}', _dark: '{colors.gray.6}' } },\n hover: { value: { _light: '{colors.gray.7}', _dark: '{colors.gray.7}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },\n },\n outline: {\n bg: {\n hover: { value: { _light: '{colors.gray.a2}', _dark: '{colors.gray.a2}' } },\n active: { value: { _light: '{colors.gray.a3}', _dark: '{colors.gray.a3}' } },\n },\n border: { DEFAULT: { value: { _light: '{colors.gray.6}', _dark: '{colors.gray.6}' } } },\n fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },\n },\n plain: {\n bg: {\n hover: { value: { _light: '{colors.gray.a3}', _dark: '{colors.gray.a3}' } },\n active: { value: { _light: '{colors.gray.a4}', _dark: '{colors.gray.a4}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },\n },\n})\n",
+ "type": "registry:color",
+ "path": "colors/neutral.ts"
+ }
+ ],
+ "panda": {
+ "imports": [
+ {
+ "type": "registry:color",
+ "name": "neutral",
+ "from": "colors/neutral"
+ }
+ ],
+ "extension": {
+ "theme": {
+ "extend": {
+ "semanticTokens": {
+ "colors": {
+ "gray": "$ref:neutral"
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..0f47995
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,7061 @@
+{
+ "name": "syncova-ticket",
+ "version": "1.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "syncova-ticket",
+ "version": "1.0.0",
+ "dependencies": {
+ "@ark-ui/react": "^5.0.0",
+ "better-sqlite3": "^11.10.0",
+ "cron-parser": "^5.10.3",
+ "dotenv": "^18.0.9",
+ "express": "^5.1.0",
+ "html-to-text": "^10.0.1",
+ "imapflow": "^1.0.0",
+ "lucide-react": "^0.468.0",
+ "mailparser": "^3.7.0",
+ "nodemailer": "^10.3.1",
+ "react": "^19.0.0",
+ "react-dom": "^19.0.0",
+ "sanitize-html": "^2.17.5"
+ },
+ "devDependencies": {
+ "@pandacss/dev": "^1.0.0",
+ "@types/node": "^26.6.6",
+ "@types/react": "^19.0.0",
+ "@types/react-dom": "^19.0.0",
+ "@vitejs/plugin-react": "^4.3.0",
+ "concurrently": "^9.0.0",
+ "prettier": "^3.9.10",
+ "typescript": "^5.7.0",
+ "vite": "^6.0.0"
+ }
+ },
+ "node_modules/@ark-ui/react": {
+ "version": "5.40.0",
+ "resolved": "https://registry.npmjs.org/@ark-ui/react/-/react-5.40.0.tgz",
+ "integrity": "sha512-ldJ2IoIyhtpUNDgYuRel3RNyEOW9Tl2xRqGwQjz0BwLF1oVejnTBVNBamlbjWPe6++YavDZL3+aG1NrM8MoTEA==",
+ "license": "MIT",
+ "dependencies": {
+ "@internationalized/date": "3.12.4",
+ "@zag-js/accordion": "1.47.0",
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/angle-slider": "1.47.0",
+ "@zag-js/async-list": "1.47.0",
+ "@zag-js/auto-resize": "1.47.0",
+ "@zag-js/avatar": "1.47.0",
+ "@zag-js/carousel": "1.47.0",
+ "@zag-js/cascade-select": "1.47.0",
+ "@zag-js/checkbox": "1.47.0",
+ "@zag-js/clipboard": "1.47.0",
+ "@zag-js/collapsible": "1.47.0",
+ "@zag-js/collection": "1.47.0",
+ "@zag-js/color-picker": "1.47.0",
+ "@zag-js/color-utils": "1.47.0",
+ "@zag-js/combobox": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/date-input": "1.47.0",
+ "@zag-js/date-picker": "1.47.0",
+ "@zag-js/date-utils": "1.47.0",
+ "@zag-js/dialog": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/drawer": "1.47.0",
+ "@zag-js/editable": "1.47.0",
+ "@zag-js/file-upload": "1.47.0",
+ "@zag-js/file-utils": "1.47.0",
+ "@zag-js/floating-panel": "1.47.0",
+ "@zag-js/focus-trap": "1.47.0",
+ "@zag-js/focus-visible": "1.47.0",
+ "@zag-js/highlight-word": "1.47.0",
+ "@zag-js/hotkeys": "1.47.0",
+ "@zag-js/hover-card": "1.47.0",
+ "@zag-js/i18n-utils": "1.47.0",
+ "@zag-js/image-cropper": "1.47.0",
+ "@zag-js/json-tree-utils": "1.47.0",
+ "@zag-js/listbox": "1.47.0",
+ "@zag-js/marquee": "1.47.0",
+ "@zag-js/menu": "1.47.0",
+ "@zag-js/navigation-menu": "1.47.0",
+ "@zag-js/number-input": "1.47.0",
+ "@zag-js/pagination": "1.47.0",
+ "@zag-js/password-input": "1.47.0",
+ "@zag-js/pin-input": "1.47.0",
+ "@zag-js/popover": "1.47.0",
+ "@zag-js/presence": "1.47.0",
+ "@zag-js/progress": "1.47.0",
+ "@zag-js/qr-code": "1.47.0",
+ "@zag-js/radio-group": "1.47.0",
+ "@zag-js/rating-group": "1.47.0",
+ "@zag-js/react": "1.47.0",
+ "@zag-js/scroll-area": "1.47.0",
+ "@zag-js/select": "1.47.0",
+ "@zag-js/signature-pad": "1.47.0",
+ "@zag-js/slider": "1.47.0",
+ "@zag-js/splitter": "1.47.0",
+ "@zag-js/steps": "1.47.0",
+ "@zag-js/switch": "1.47.0",
+ "@zag-js/tabs": "1.47.0",
+ "@zag-js/tags-input": "1.47.0",
+ "@zag-js/timer": "1.47.0",
+ "@zag-js/toast": "1.47.0",
+ "@zag-js/toc": "1.47.0",
+ "@zag-js/toggle": "1.47.0",
+ "@zag-js/toggle-group": "1.47.0",
+ "@zag-js/tooltip": "1.47.0",
+ "@zag-js/tour": "1.47.0",
+ "@zag-js/tree-view": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.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.7",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz",
+ "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.7",
+ "@babel/helper-compilation-targets": "^7.29.7",
+ "@babel/helper-module-transforms": "^7.29.7",
+ "@babel/helpers": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/template": "^7.29.7",
+ "@babel/traverse": "^7.29.7",
+ "@babel/types": "^7.29.7",
+ "@jridgewell/remapping": "^2.3.5",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.29.12",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.12.tgz",
+ "integrity": "sha512-2W76mhjrpQFO1lK5e8IvGYB2D0YZ7S2R1Z2BjO2ZUYuW+amcpK/z60U6ZZmzskwoa7sJ6XohP/Wg8H5KxXI/IA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.12",
+ "@babel/types": "^7.29.11",
+ "@jridgewell/gen-mapping": "^0.3.12",
+ "@jridgewell/trace-mapping": "^0.3.28",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz",
+ "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.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-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-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.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz",
+ "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "@babel/traverse": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.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-string-parser": {
+ "version": "7.29.11",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.11.tgz",
+ "integrity": "sha512-snZbO7MEDOof+hvNa97EjEY7qD7h2kwvQr5AJC3ZhQudKW5dnej6k3kP9NQV88hJwaS8vDqRLFo9rivLEhle2g==",
+ "dev": true,
+ "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==",
+ "dev": true,
+ "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.10",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.10.tgz",
+ "integrity": "sha512-EMCx3AGZ3WfAl6ht7AyQoPm2Lh+BGYEMdc4Q6Hf7uSCDOZFuLq44qNwL+iaim8VlyYhRAo4X43+weadK8ZB4Yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.8"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.29.12",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.12.tgz",
+ "integrity": "sha512-WJ7JBp/Q4+z/ImydtI7jS6NVco5++632ExBemSX+Ysb+G1lCwQ5BVo3SY+jGGOcZXI4ZccbZSUSJLNBW6eEpJg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.11"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-react-jsx-self": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz",
+ "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==",
+ "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-react-jsx-source": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz",
+ "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==",
+ "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/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.12",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.12.tgz",
+ "integrity": "sha512-MscXe/NAZcOkYEsRajHZFt3ynsb22PUi6CTrp5U7+RYycR9By84mn9mFN54YgfITiqK4hFx3Ju3tZSyzfpS5ew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.12",
+ "@babel/helper-globals": "^7.29.7",
+ "@babel/parser": "^7.29.12",
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.11",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.29.11",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz",
+ "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.11",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@clack/core": {
+ "version": "1.4.2",
+ "resolved": "https://registry.npmjs.org/@clack/core/-/core-1.4.2.tgz",
+ "integrity": "sha512-0Ty/1Gfm+Kb07sXcuESjyKfwEhSy4Ns1AgeEisHb/bDY5fWme0tTeTkU14T1Gmcs17YIjB/teiDe4uaCghbYqQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-wrap-ansi": "^0.2.0",
+ "sisteransi": "^1.0.5"
+ },
+ "engines": {
+ "node": ">= 20.12.0"
+ }
+ },
+ "node_modules/@clack/prompts": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/@clack/prompts/-/prompts-1.6.0.tgz",
+ "integrity": "sha512-EYlRokl8szrP9Z25qT5aepMdBjzBvHF9ZEhzIiUBc9guz/T31EqRgvD0QSgZcpE93xiwrr+OkB4nz0BZyF6fSA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@clack/core": "1.4.2",
+ "fast-string-width": "^3.0.2",
+ "fast-wrap-ansi": "^0.2.0",
+ "sisteransi": "^1.0.5"
+ },
+ "engines": {
+ "node": ">= 20.12.0"
+ }
+ },
+ "node_modules/@csstools/postcss-cascade-layers": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/@csstools/postcss-cascade-layers/-/postcss-cascade-layers-5.0.2.tgz",
+ "integrity": "sha512-nWBE08nhO8uWl6kSAeCx4im7QfVko3zLrtgWZY4/bP87zrSPpSyN/3W3TDqz1jJuH+kbKOHXg5rJnK+ZVYcFFg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT-0",
+ "dependencies": {
+ "@csstools/selector-specificity": "^5.0.0",
+ "postcss-selector-parser": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "postcss": "^8.4"
+ }
+ },
+ "node_modules/@csstools/selector-specificity": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-5.0.0.tgz",
+ "integrity": "sha512-PCqQV3c4CoVm3kdPhyeZ07VmBRdH2EpMFA/pd9OASpOEC3aXNGoqPDAZ80D0cLpMBxnmk0+yNhGsEx31hq7Gtw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT-0",
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "postcss-selector-parser": "^7.0.0"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",
+ "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",
+ "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",
+ "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",
+ "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",
+ "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",
+ "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",
+ "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",
+ "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",
+ "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",
+ "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",
+ "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",
+ "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",
+ "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",
+ "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",
+ "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",
+ "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",
+ "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",
+ "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",
+ "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",
+ "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",
+ "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",
+ "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",
+ "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@floating-ui/core": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.8.0.tgz",
+ "integrity": "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/utils": "^0.2.12"
+ }
+ },
+ "node_modules/@floating-ui/dom": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.8.0.tgz",
+ "integrity": "sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/core": "^1.8.0",
+ "@floating-ui/utils": "^0.2.12"
+ }
+ },
+ "node_modules/@floating-ui/utils": {
+ "version": "0.2.12",
+ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.12.tgz",
+ "integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==",
+ "license": "MIT"
+ },
+ "node_modules/@internationalized/date": {
+ "version": "3.12.4",
+ "resolved": "https://registry.npmjs.org/@internationalized/date/-/date-3.12.4.tgz",
+ "integrity": "sha512-M1dEn4c1U1HsSlaVR8upZtSqvXrTkHDfv18H01uCSJyjVLDxnBR38v/fMxecmlwXKR4i9HeZcmgQAPE6A+aGJQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@swc/helpers": "^0.5.0"
+ }
+ },
+ "node_modules/@internationalized/number": {
+ "version": "3.6.9",
+ "resolved": "https://registry.npmjs.org/@internationalized/number/-/number-3.6.9.tgz",
+ "integrity": "sha512-GgWy2caO/+hV9sT/oCTWGHvbjmJMPT9kkXzoKRLnkEq7adghhR7UprhvY9sXrKfrp3NcDfhF6QQHXR1KfQbB8g==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@swc/helpers": "^0.5.0"
+ }
+ },
+ "node_modules/@isaacs/nonrecursive-glob-match": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.0.3.tgz",
+ "integrity": "sha512-SI7kyKHq4XXDRozw+r9GlRZkia1ZkFrpLW98r2IC2Bpr8YkFGE3fvjzmxCG0x78A++69HmDNrDvSMYBZmHGpKA==",
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/remapping": {
+ "version": "2.3.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",
+ "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@napi-rs/lzma-linux-x64-gnu": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz",
+ "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^22.20 || ^24.12 || >=25"
+ }
+ },
+ "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/@pandacss/config": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/config/-/config-1.12.2.tgz",
+ "integrity": "sha512-6zitt8EyO/yKUKx8L2LoMST/fvdFi8YRhVxZfdBUdKPlQxKCs4wU0yWOjzmR8/kuJoC++vpmPbygzHqA/yNEaw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pandacss/logger": "1.12.2",
+ "@pandacss/preset-base": "1.12.2",
+ "@pandacss/preset-panda": "1.12.2",
+ "@pandacss/shared": "1.12.2",
+ "@pandacss/types": "1.12.2",
+ "esbuild": "0.25.12",
+ "escalade": "3.2.0",
+ "get-tsconfig": "^4.13.0",
+ "microdiff": "1.5.0",
+ "typescript": "6.0.2"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/config/node_modules/typescript": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.2.tgz",
+ "integrity": "sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/@pandacss/core": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/core/-/core-1.12.2.tgz",
+ "integrity": "sha512-9IvfSyLhzLhm2SsLN/fb0Mzhm+vJOiSdgcBUt7Oi+k5SCZxyA1CnMajBUMrRKB8mb9VHhFLbyXhdsz2CYMOtUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@csstools/postcss-cascade-layers": "5.0.2",
+ "@pandacss/is-valid-prop": "^1.12.2",
+ "@pandacss/logger": "1.12.2",
+ "@pandacss/shared": "1.12.2",
+ "@pandacss/token-dictionary": "1.12.2",
+ "@pandacss/types": "1.12.2",
+ "browserslist": "4.29.4",
+ "lodash.merge": "4.6.2",
+ "outdent": "0.8.0",
+ "postcss": "8.5.31",
+ "postcss-discard-duplicates": "7.0.2",
+ "postcss-discard-empty": "7.0.1",
+ "postcss-minify-selectors": "7.0.5",
+ "postcss-nested": "7.0.2",
+ "postcss-normalize-whitespace": "7.0.1",
+ "postcss-selector-parser": "7.1.1",
+ "ts-pattern": "5.9.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/dev": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/dev/-/dev-1.12.2.tgz",
+ "integrity": "sha512-grhm41IRztigDF7ZHFMSxshjW3Rzv0kokpgsdEJYrxPVGqsBAdYGvi16Lmxhpw+ZunBBn5PXLkZOcYWNhAmigA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@clack/prompts": "1.6.0",
+ "@pandacss/config": "1.12.2",
+ "@pandacss/logger": "1.12.2",
+ "@pandacss/node": "1.12.2",
+ "@pandacss/postcss": "1.12.2",
+ "@pandacss/preset-base": "1.12.2",
+ "@pandacss/preset-panda": "1.12.2",
+ "@pandacss/shared": "1.12.2",
+ "@pandacss/token-dictionary": "1.12.2",
+ "@pandacss/types": "1.12.2",
+ "cac": "6.7.14"
+ },
+ "bin": {
+ "panda": "bin.js",
+ "pandacss": "bin.js"
+ },
+ "engines": {
+ "node": ">=20.12.0"
+ }
+ },
+ "node_modules/@pandacss/extractor": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/extractor/-/extractor-1.12.2.tgz",
+ "integrity": "sha512-TmpEbexX2ALsNqHvkY++dlVNSxi3xiXFatOl6pSRdCBq0bgaYbOWPHLcdAqE4lBG64IudgW8SPOOm6KGygUjdA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pandacss/shared": "1.12.2",
+ "ts-evaluator": "1.2.0",
+ "ts-morph": "28.0.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/generator": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/generator/-/generator-1.12.2.tgz",
+ "integrity": "sha512-u3c8dHjtISKc1sdAPY0J81OJrO2O1a0Da1+qi2RSZ2saPX+wfvCBLWKI4rApB6FaOKqygdlz7aGufDMxk8jYdw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pandacss/core": "1.12.2",
+ "@pandacss/is-valid-prop": "^1.12.2",
+ "@pandacss/logger": "1.12.2",
+ "@pandacss/shared": "1.12.2",
+ "@pandacss/token-dictionary": "1.12.2",
+ "@pandacss/types": "1.12.2",
+ "javascript-stringify": "2.1.0",
+ "outdent": " ^0.8.0",
+ "pluralize": "8.0.0",
+ "postcss": "8.5.31",
+ "ts-pattern": "5.9.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/is-valid-prop": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/is-valid-prop/-/is-valid-prop-1.12.2.tgz",
+ "integrity": "sha512-+zir+Q9IP2aMMny2wiTeASqP1xSTCT2iBBP5a731BS8B0zmcc4mfXe19/d5qd/bbT9uYN7pKTGZbqNgeZcgRiw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/logger": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/logger/-/logger-1.12.2.tgz",
+ "integrity": "sha512-kfV8qFciqb6lm+GdzNJXN2fVaZfVbSPcbUxg9GQdjLthRj0vdNQBIYxo7mvuO9mvMspJ1zteWEVu0ix3wg2pVg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pandacss/types": "1.12.2",
+ "kleur": "4.1.5"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/node": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/node/-/node-1.12.2.tgz",
+ "integrity": "sha512-9OeLEcTU+loepKt4IdzC/u16OnhHaFx6eWJT/R+bwLXUXVvnbBaV0bqCGOwCVGqk3sWaCYu9h0FcL6dnvegIbw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pandacss/config": "1.12.2",
+ "@pandacss/core": "1.12.2",
+ "@pandacss/generator": "1.12.2",
+ "@pandacss/logger": "1.12.2",
+ "@pandacss/parser": "1.12.2",
+ "@pandacss/plugin-lightningcss": "1.12.2",
+ "@pandacss/plugin-svelte": "1.12.2",
+ "@pandacss/plugin-vue": "1.12.2",
+ "@pandacss/reporter": "1.12.2",
+ "@pandacss/shared": "1.12.2",
+ "@pandacss/token-dictionary": "1.12.2",
+ "@pandacss/types": "1.12.2",
+ "browserslist": "4.29.4",
+ "chokidar": "4.0.3",
+ "fast-glob": "3.3.3",
+ "fs-extra": "11.3.2",
+ "get-tsconfig": "^4.13.0",
+ "glob-parent": "6.0.2",
+ "is-glob": "4.0.3",
+ "lodash.merge": "4.6.2",
+ "look-it-up": "2.1.0",
+ "outdent": " ^0.8.0",
+ "p-limit": "5.0.0",
+ "package-manager-detector": "1.6.0",
+ "perfect-debounce": "1.0.0",
+ "picomatch": "4.0.4",
+ "pkg-types": "2.3.0",
+ "pluralize": "8.0.0",
+ "postcss": "8.5.31",
+ "prettier": "3.2.5",
+ "ts-morph": "28.0.0",
+ "ts-pattern": "5.9.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/node/node_modules/prettier": {
+ "version": "3.2.5",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz",
+ "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "prettier": "bin/prettier.cjs"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/prettier/prettier?sponsor=1"
+ }
+ },
+ "node_modules/@pandacss/parser": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/parser/-/parser-1.12.2.tgz",
+ "integrity": "sha512-3SVYhfbZ8M883cOe1qzWgVUFpHmJBpFBljkuyXgbCceajPPD1fMrQOz8Ivfvwvzu/Y1fkVOzqEzIKR5G9uoYBg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pandacss/config": "^1.12.2",
+ "@pandacss/core": "^1.12.2",
+ "@pandacss/extractor": "1.12.2",
+ "@pandacss/logger": "1.12.2",
+ "@pandacss/shared": "1.12.2",
+ "@pandacss/types": "1.12.2",
+ "ts-morph": "28.0.0",
+ "ts-pattern": "5.9.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/plugin-lightningcss": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/plugin-lightningcss/-/plugin-lightningcss-1.12.2.tgz",
+ "integrity": "sha512-WTD7Bb/E/nKo41ErY+QbNzSOCWlX1bHG9+w7ZnpwShKKMGtquYGQot0eRC5Yet3OE8HPIkB2mBFBEenOvCD4VQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pandacss/logger": "1.12.2",
+ "@pandacss/types": "1.12.2",
+ "browserslist": "4.29.4",
+ "lightningcss": "1.31.1"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/plugin-svelte": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/plugin-svelte/-/plugin-svelte-1.12.2.tgz",
+ "integrity": "sha512-XTUfrhR9+AOvMFhOgNft/CHJu9QUqlPO/e5XsJEsD1aNIwaGzqQdsLAMh2EIM/CduMpPh/yz4ZfmS/XdK8szTQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pandacss/types": "1.12.2",
+ "magic-string": "0.30.21"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/plugin-vue": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/plugin-vue/-/plugin-vue-1.12.2.tgz",
+ "integrity": "sha512-NhZi4iAKM6iLP3DqwDcF9t5TdBa07TitwDbvG1V4eZ5LMSqf4Ms+Ktkh6MNiRNzXaBhop3JnBKfmkpxVobN3MA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pandacss/types": "1.12.2",
+ "@vue/compiler-sfc": "3.5.25",
+ "magic-string": "0.30.21"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/postcss": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/postcss/-/postcss-1.12.2.tgz",
+ "integrity": "sha512-wBHEwqKNxPaiIzV1fCqmTkYr92Zle0NZZWIN/52ZgFfQfCABOmOMS1Q7d9ijtu24tJ37B4XPFg/s71E8vz7TnQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pandacss/node": "1.12.2",
+ "postcss": "8.5.31"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/preset-base": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/preset-base/-/preset-base-1.12.2.tgz",
+ "integrity": "sha512-bG7lH2He1+txE5z7LWDG17j97n5qEN8toWGgoUUSJ+BTLIPs+ayQRp41PViVIb4iFvhqBGW1uxoZFBEykEcBJw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pandacss/types": "1.12.2"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/preset-panda": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/preset-panda/-/preset-panda-1.12.2.tgz",
+ "integrity": "sha512-Bbre42LraBNxV5IqlQ1l7q5G2nusmr4zi6KXoXqa9/WQS440cqY8sry5VfADe3O1TPcpR8L1mVWMrcqh0XQykw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pandacss/types": "1.12.2"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/reporter": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/reporter/-/reporter-1.12.2.tgz",
+ "integrity": "sha512-HY2wFSqUA8WIqkTuZtZzRVrQ6VFU0bmjTlDeQvOf4YegltkWberXBCBZiZ1Qk4GStwMthrjwrQuarMJt5sYO0g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pandacss/core": "1.12.2",
+ "@pandacss/generator": "1.12.2",
+ "@pandacss/logger": "1.12.2",
+ "@pandacss/shared": "1.12.2",
+ "@pandacss/types": "1.12.2",
+ "table": "6.9.0",
+ "wordwrapjs": "5.1.1"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/shared": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/shared/-/shared-1.12.2.tgz",
+ "integrity": "sha512-QCawxcbrKW/C70g+X+txbSLTzvfax3J9XCLIcoXrO30XY4GwdGH6/Kk+cixDGkN3Owv5dwgnI2/tjEW6hbODtQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/token-dictionary": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/token-dictionary/-/token-dictionary-1.12.2.tgz",
+ "integrity": "sha512-DSaKlf5Et46V2Iwie9poGQyoDjfS8LdslO/tw3R181Na1RK9Pg5WPdojM0RoqY1utDDzC48cPa5URr4KWz1utA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pandacss/logger": "^1.12.2",
+ "@pandacss/shared": "1.12.2",
+ "@pandacss/types": "1.12.2",
+ "picomatch": "4.0.4",
+ "ts-pattern": "5.9.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pandacss/types": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@pandacss/types/-/types-1.12.2.tgz",
+ "integrity": "sha512-aIAGUj/ok+w2uUYrtbnU2pAh/4wKUJfqBLBWUvtu6xU/7TcOE6U+GOW0FX2zIqKGl8+a03lPJvN4xh4OipEjOQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@pinojs/redact": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/@pinojs/redact/-/redact-0.4.0.tgz",
+ "integrity": "sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==",
+ "license": "MIT"
+ },
+ "node_modules/@rolldown/pluginutils": {
+ "version": "1.0.0-beta.27",
+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",
+ "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@rollup/rollup-android-arm-eabi": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.67.4.tgz",
+ "integrity": "sha512-/v/pUAPOcwp+r1Hjjdg0cBV1TE89CzGKrKh2FgkIQw2QBcIMmVPOCSfuOZStCn4Xh/98HXfo/ht6ztcssctPNg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-android-arm64": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.67.4.tgz",
+ "integrity": "sha512-6tmmB/P52Vt167FXXEw5auiEUgTtZz7aqUgWHqYXToIUE0HFDY6fTdAyeekjjsNk6O/8dtpSKtClxSj1mMneKQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-android-x64": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-x64/-/rollup-android-x64-4.67.4.tgz",
+ "integrity": "sha512-8Z9Q4RmotVmuL4llOvqX814JNiOK1oqoBv+glG5KbpRfUiypqzz2/fxIzK4Pq129l4dT5a8Gszmpc0/XPYoFuQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-arm64": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.67.4.tgz",
+ "integrity": "sha512-pnq6hssxTtwuRAl6Kdi/+IDY+b1IhkUetjhUkdLAAJCssjfqtL2Oqy/FXJVJFtAWOu1oRlArIvf0Yk1O92x2HQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-x64": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.67.4.tgz",
+ "integrity": "sha512-BeIrGZvHMVdJg/N+ohZfFywG/gF41684YhDj2wBvouj7m9ziP1tZDUNwzXRiDY+3WIKngaC4hiUBqVtBPGP5og==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-arm64": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.67.4.tgz",
+ "integrity": "sha512-fRFX/oqNg/g780DKoS8RIfYcZD59Ru5O/bSeK1N7gQljBFrTxJY/q5EX4eMs5SrJf32VgVBVVYCdfPpzAwPPnQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-x64": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.67.4.tgz",
+ "integrity": "sha512-bSrBRopG1q+0RuOsW0NtYTtIODlvNA3T3ebx5WnQVdSxWIoXFmj+rZdHUHdSLgFdZ5M6VGmekYE7r4RMGQXjfg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.67.4.tgz",
+ "integrity": "sha512-L8IvdrJVtl65g1ozwDSyjGPG+FmibhCdFUwmqTItJLw0S3+Oj4QzFs7rfgTUiK7rsPjkCLdG1/GApFxoynXFJQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.67.4.tgz",
+ "integrity": "sha512-h7PcoQOzC31jshNpQ48J0akB9tsghjkSjSl5AZ6XsVGTxVsln7t7C4SQyw62tNVSaz2SeHgk4VT2ELbL17BSHQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.67.4.tgz",
+ "integrity": "sha512-KSPuOBNHoOl7AsVjeY1KZci8+0up0U4TFAHU5IzBYN8P+Z6cB9DZq28+JQycZW7f6WLLa/tSzhV7Rdy95bVi+g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.67.4.tgz",
+ "integrity": "sha512-0E/mKmVk1PlQeQYygIwQm0jlwjANTzGSiNBMPrFx+rdFGFj/2Axh4p6XwcrystQIqXZVudTaGsdbDpzYgJ4wSA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-gnu": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.67.4.tgz",
+ "integrity": "sha512-Fvw7dOSc2Sa9UOipRZVI0zOgdLCzsjVyD/6JuHXzUHTXFu7mMgmeX/0/bCVBIut1dz+nWz3pV4WpS/Qg0XVnxw==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-musl": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.67.4.tgz",
+ "integrity": "sha512-jzxbVHaE7V3F+P0wEK7UydQtvv7Twfdtx58jI5/3VRx1jJxyrn+qFwfXmqjVFxPhBl+zjaRs+ZJMFJw7vdHaQA==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.67.4.tgz",
+ "integrity": "sha512-fhtrzp9p4GjEJVaigaap9g6X9nP6xgJtKiLLXSDgpE18HXufA5aqfltGn+KAqMtVZReJZfOrXm//y5YSA9BWbA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-musl": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.67.4.tgz",
+ "integrity": "sha512-uynaF7IUHwAckV0S+yC1f5esy9gB+aqCBsPH5BOck32TYdCuAn2lVG5tvUcFnEsrviGEmRZxE1NHSOieUPYJEg==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.67.4.tgz",
+ "integrity": "sha512-uaqRFdfb8eIa2bVHN/FE3ndCvR0zV2xv0AwjCfxrqSu6l6fp/54VhjfhslKlf2RIik9L1jwlt4E56PeVX6tQtQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-musl": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.67.4.tgz",
+ "integrity": "sha512-JZRow7kmxUDEASnxHuVG5itTm+nTXi9BQUABcVUnUEngC+OPwMrpx1uJ9hIA/v+IcAEBL52ktCSPXk5OJn9Jqg==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.67.4.tgz",
+ "integrity": "sha512-rdrh4e+Lq9fCNKoDPaCqeHXbQCe7yl77Ukl45tlSClwYdZ1gpFGZz1XLJdYtY++FRlfL5aHvb6/0n3GDW/Nxsw==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.67.4.tgz",
+ "integrity": "sha512-wL7MS4r0fYcxluF3ne2plofHZiB/LsqNCnyaUlyiKpAJLb6agPSFz7DEFCfkonWAZXMrLwCmC08b2ZEnEdJkog==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-musl": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.67.4.tgz",
+ "integrity": "sha512-4H0XHfd2VufGjX7NjUyeue78sD0bRIoKSGjGqO+F5nSvL6jN48NAU7esdmtFEYxZXwObLtt3MJ/kHS0jASMW3g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-openbsd-x64": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.67.4.tgz",
+ "integrity": "sha512-osRHQbE55pZpCLetpMsFmhkapyZnAUH73qRKMh+npi3boUom6u6hdaTTPSxlInXxwJHsn9r2uDhdz0V7Yoxx2A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-openharmony-arm64": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.67.4.tgz",
+ "integrity": "sha512-95+exYEyOwrZePsE0czi4q7X5lxKPa21+lmyAZlwbYENITQ0Unk4HAQAFp/p+KhXBHBx9mUABXRYjOC5A1wY3Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.67.4.tgz",
+ "integrity": "sha512-FOXOcKhNQpO4Po+Ynan6IbtM67SrXZbgpRJWVYwz53CT5veI7sVzDwVBmWS65N5Imv+wK3SVhIPAl+C5DXXNCg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.67.4.tgz",
+ "integrity": "sha512-cklKh0gJOkAZQcWziQa3hrjxZKN+PCHZ7SPTyGJDAiBVr05ZXlEjGFCG7zFJMaVibxsmzAe1FimN4u/HBns9+Q==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-gnu": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.67.4.tgz",
+ "integrity": "sha512-AegwxJPc9bvUp8fQtlsUHkFMOMkGylWU7glyL+YD4vwG+QaYoGXYLSsQoeTD7kvoLZrVlMWNVhTg1dedY5C1VQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.67.4.tgz",
+ "integrity": "sha512-RJZnrwTWj7Iq2ooBwoGbDdC65tDwYawneGcAfFMJqVUrRZMcskka6nTkBpXR/47G7kzn3EW2qupExnaBy11vwg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@selderee/plugin-htmlparser2": {
+ "version": "0.12.0",
+ "resolved": "https://registry.npmjs.org/@selderee/plugin-htmlparser2/-/plugin-htmlparser2-0.12.0.tgz",
+ "integrity": "sha512-oELmoyA6ML9jDRMV3kgcMQFKxUfBU0yFVn6yTctVaLT5ygXnxH52I3TZEgV9EhXJC68/uFvE5Daj1/25c0Xa/A==",
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "~2.3.0",
+ "domhandler": "~5.0.3"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/KillyMXI"
+ },
+ "peerDependencies": {
+ "selderee": "~0.12.0"
+ }
+ },
+ "node_modules/@swc/helpers": {
+ "version": "0.5.23",
+ "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz",
+ "integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.8.0"
+ }
+ },
+ "node_modules/@ts-morph/common": {
+ "version": "0.29.0",
+ "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.29.0.tgz",
+ "integrity": "sha512-35oUmphHbJvQ/+UTwFNme/t2p3FoKiGJ5auTjjpNTop2dyREspirjMy82PLSC1pnDJ8ah1GU98hwpVt64YXQsg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimatch": "^10.0.1",
+ "path-browserify": "^1.0.1",
+ "tinyglobby": "^0.2.14"
+ }
+ },
+ "node_modules/@types/babel__core": {
+ "version": "7.20.5",
+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.20.7",
+ "@babel/types": "^7.20.7",
+ "@types/babel__generator": "*",
+ "@types/babel__template": "*",
+ "@types/babel__traverse": "*"
+ }
+ },
+ "node_modules/@types/babel__generator": {
+ "version": "7.27.0",
+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",
+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__template": {
+ "version": "7.4.4",
+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",
+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.1.0",
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__traverse": {
+ "version": "7.28.0",
+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",
+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.28.2"
+ }
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz",
+ "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/node": {
+ "version": "26.6.6",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz",
+ "integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~8.9.0"
+ }
+ },
+ "node_modules/@types/react": {
+ "version": "19.3.0",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz",
+ "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "csstype": "^3.2.2"
+ }
+ },
+ "node_modules/@types/react-dom": {
+ "version": "19.3.0",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz",
+ "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "^19.3.0"
+ }
+ },
+ "node_modules/@vitejs/plugin-react": {
+ "version": "4.7.0",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",
+ "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.28.0",
+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",
+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",
+ "@rolldown/pluginutils": "1.0.0-beta.27",
+ "@types/babel__core": "^7.20.5",
+ "react-refresh": "^0.17.0"
+ },
+ "engines": {
+ "node": "^14.18.0 || >=16.0.0"
+ },
+ "peerDependencies": {
+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
+ }
+ },
+ "node_modules/@vue/compiler-core": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.25.tgz",
+ "integrity": "sha512-vay5/oQJdsNHmliWoZfHPoVZZRmnSWhug0BYT34njkYTPqClh3DNWLkZNJBVSjsNMrg0CCrBfoKkjZQPM/QVUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.28.5",
+ "@vue/shared": "3.5.25",
+ "entities": "^4.5.0",
+ "estree-walker": "^2.0.2",
+ "source-map-js": "^1.2.1"
+ }
+ },
+ "node_modules/@vue/compiler-dom": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.25.tgz",
+ "integrity": "sha512-4We0OAcMZsKgYoGlMjzYvaoErltdFI2/25wqanuTu+S4gismOTRTBPi4IASOjxWdzIwrYSjnqONfKvuqkXzE2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-core": "3.5.25",
+ "@vue/shared": "3.5.25"
+ }
+ },
+ "node_modules/@vue/compiler-sfc": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.25.tgz",
+ "integrity": "sha512-PUgKp2rn8fFsI++lF2sO7gwO2d9Yj57Utr5yEsDf3GNaQcowCLKL7sf+LvVFvtJDXUp/03+dC6f2+LCv5aK1ag==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.28.5",
+ "@vue/compiler-core": "3.5.25",
+ "@vue/compiler-dom": "3.5.25",
+ "@vue/compiler-ssr": "3.5.25",
+ "@vue/shared": "3.5.25",
+ "estree-walker": "^2.0.2",
+ "magic-string": "^0.30.21",
+ "postcss": "^8.5.6",
+ "source-map-js": "^1.2.1"
+ }
+ },
+ "node_modules/@vue/compiler-ssr": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.25.tgz",
+ "integrity": "sha512-ritPSKLBcParnsKYi+GNtbdbrIE1mtuFEJ4U1sWeuOMlIziK5GtOL85t5RhsNy4uWIXPgk+OUdpnXiTdzn8o3A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-dom": "3.5.25",
+ "@vue/shared": "3.5.25"
+ }
+ },
+ "node_modules/@vue/shared": {
+ "version": "3.5.25",
+ "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.25.tgz",
+ "integrity": "sha512-AbOPdQQnAnzs58H2FrrDxYj/TJfmeS2jdfEEhgiKINy+bnOANmVizIEgq1r+C5zsbs6l1CCQxtcj71rwNQ4jWg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@zag-js/accordion": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/accordion/-/accordion-1.47.0.tgz",
+ "integrity": "sha512-rXij62gBLdmhMYsTiygavOL83xP2MfmD8HpArtZxW30icQeXn1mgWq9xKL/DWqNEnYj/J9W2RpZk/7Q16ckN+Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/anatomy": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/anatomy/-/anatomy-1.47.0.tgz",
+ "integrity": "sha512-3mQSujwBiEmF0SkYvQf5LBYSDKcV5CBu3Ncraxl6TqElimLzvHMGrrHmCLkVUB1Pi1uBqc6N08XuacGth3C2cQ==",
+ "license": "MIT"
+ },
+ "node_modules/@zag-js/angle-slider": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/angle-slider/-/angle-slider-1.47.0.tgz",
+ "integrity": "sha512-xLPvGZRzmZ1RZHq1tUEErecLSMGa3G05LmKSiLdPupLjZR5qBFzDQbKJgHy/6yR5JltVell7aAzrhOI3mZf+wQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/rect-utils": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/aria-hidden": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/aria-hidden/-/aria-hidden-1.47.0.tgz",
+ "integrity": "sha512-UVnk+Ge7YvS873dSBzLE6lihHz8jcnaAS6aRxg4O5Gj3NaazW5jWb3dCiSgSGQaG0lxJCdIZysafHy/mIeSbhw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/dom-query": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/async-list": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/async-list/-/async-list-1.47.0.tgz",
+ "integrity": "sha512-rEgkMH9lk4ijak3nD5ws7+W3gHpVQqWvT0n7PZVyoiQWEZIhoZF7vHm5NOu147ERQUIe5mg9a1slh9m/e4FTqA==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/core": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/auto-resize": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/auto-resize/-/auto-resize-1.47.0.tgz",
+ "integrity": "sha512-+9Mt1Ka7FCQ0kYB93JkzZ+cgv3yR3e4wjIHs8UIqop+wagA77rcgylsm4yyjSYfELBhTNTuUcKOKxHaZELDwTQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/dom-query": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/avatar": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/avatar/-/avatar-1.47.0.tgz",
+ "integrity": "sha512-ihJTcYpSVfyPkWzASBO5tShUyfCG4t1uOAj+JtcMIn+GNJAMB6lmjkNZEI0pO27+sxJK7E2bDVdPRwwmjID0OQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/carousel": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/carousel/-/carousel-1.47.0.tgz",
+ "integrity": "sha512-LZPTtXOKa3/+pJ3XZSJkr+jssjzj3e4GgbfFoaICJCF+xtWMJZI3WRzVwbpJNOWvK/vZX3gYMIqB3gJPDWhaAQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/scroll-snap": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/cascade-select": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/cascade-select/-/cascade-select-1.47.0.tgz",
+ "integrity": "sha512-qWshb8cEd/R55iJ8vnhSpLMuaij6BUSCkEUrLt6j5gmEOnDRCIzOLto+F4JaEGbFujZhtRj7h6ct+VFDelaqnA==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/collection": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dismissable": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/focus-visible": "1.47.0",
+ "@zag-js/popper": "1.47.0",
+ "@zag-js/rect-utils": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/checkbox": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/checkbox/-/checkbox-1.47.0.tgz",
+ "integrity": "sha512-8fHGi5bNfnKc5vFKVRppT2DEh2lgba3/eWMkzE3b158cUUuFjbOYaNQrOh41qicUT7taAsj+T2iTFte+VEQtUA==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/focus-visible": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/clipboard": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/clipboard/-/clipboard-1.47.0.tgz",
+ "integrity": "sha512-bOoZQ2Me/k3iiFIUjhMhjs5bnAAoDB1GQB+lliZHOgVQTGM9QaTD0ZFeMEduJXir7OBPdBiqFKoz/vqCiZOfRQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/collapsible": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/collapsible/-/collapsible-1.47.0.tgz",
+ "integrity": "sha512-is/xEUzKLSlKoPD95Ym6K60BkmDnTcU9Kc326aK+qJioHa2Ffj5gqaDP7PTkscpe8rWDETLmGu/RdksBO/LMxQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/collection": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/collection/-/collection-1.47.0.tgz",
+ "integrity": "sha512-GMnmLfuf/fmUQKKkRaEPn7yIBye5S++GbNZSNJd9WtBZMHf5iu9+bsWSIQOt38O7lNUAmieoBD+k6w70bam2Vw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/color-picker": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/color-picker/-/color-picker-1.47.0.tgz",
+ "integrity": "sha512-HpRTEGqc8SSQuqzWwlTJIbHZkWAyUmV3XJRz7j2Cp/pXPvTIuelItbcyH1Ee7aOQFw16PJhBfGcL8qOvK8OIrw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/color-utils": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dismissable": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/popper": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/color-utils": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/color-utils/-/color-utils-1.47.0.tgz",
+ "integrity": "sha512-0p/y0BU8hbX+Gea/FUl7T+Z1kAEjIyYodH3ZnO8zcmUAdylJmlfW0gv6Rq/IZqUri3uo56BuiBo4pr1isQkyeQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/combobox": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/combobox/-/combobox-1.47.0.tgz",
+ "integrity": "sha512-3bPm37vRNcA0KuYmN3n+s35tVaTo0WB1zQ8fWRBAPAutW0D3H4Qp4yt/Fd1rTBFgRREPSO07dFEPNc2JMdJyZw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/collection": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dismissable": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/focus-visible": "1.47.0",
+ "@zag-js/live-region": "1.47.0",
+ "@zag-js/popper": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/core": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/core/-/core-1.47.0.tgz",
+ "integrity": "sha512-VOlDoXvB43DoHsSJHrBTXBP0gQRPA8nTZY2dIG328iL+U70vu2cYNUDMTBBxHlexJPE3JDAt9kFIoEmfZCNPew==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/date-input": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/date-input/-/date-input-1.47.0.tgz",
+ "integrity": "sha512-k/ZgJ2C8wmNHYw8YS1KsDMxrPTjUKv/Vi6/YpZU8eQpibBh6XaLrNPXx1kzdOAAOtcyg2oSXRYEcRaXdUYxigQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/date-utils": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/live-region": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ },
+ "peerDependencies": {
+ "@internationalized/date": ">=3.0.0"
+ }
+ },
+ "node_modules/@zag-js/date-picker": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/date-picker/-/date-picker-1.47.0.tgz",
+ "integrity": "sha512-drFN3qobFJW/poZkNLN/gmEEz8875ZYSjb0exXvoAaQK84nzPVwreO2+lhcQSZ4Al5CA0zyW1k10t5+aN8bY2w==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/date-utils": "1.47.0",
+ "@zag-js/dismissable": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/live-region": "1.47.0",
+ "@zag-js/popper": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ },
+ "peerDependencies": {
+ "@internationalized/date": ">=3.0.0"
+ }
+ },
+ "node_modules/@zag-js/date-utils": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/date-utils/-/date-utils-1.47.0.tgz",
+ "integrity": "sha512-zZi2qDDX04vBcRFGUr9MZqcHaRYIFa7PEB7x32JGP1oryPVRJ5EbIZ1O6nm1IszAIJ95TVgnuHV340n90YAYnA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@internationalized/date": ">=3.0.0"
+ }
+ },
+ "node_modules/@zag-js/dialog": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/dialog/-/dialog-1.47.0.tgz",
+ "integrity": "sha512-7Lmm6CWaGy1nd+X8ZRRSkoiyVj38pgXWFgnIb1q+snjbD/cM/bo8A+9Qoogl9CkAoWsLkFYV3cI5RY9fQXfRsw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/aria-hidden": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dismissable": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/focus-trap": "1.47.0",
+ "@zag-js/remove-scroll": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/dismissable": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/dismissable/-/dismissable-1.47.0.tgz",
+ "integrity": "sha512-Swv9suaCNZZNw7sUs7nrDSHWhNxFmMvHaGvhblrTl+UZU3lhJmj4HgjEAMoU+Yfu5VmJvmoN5MkT2OsHStkw/w==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/interact-outside": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/dom-query": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/dom-query/-/dom-query-1.47.0.tgz",
+ "integrity": "sha512-wbwzQDYikjRa6IQ+it0Qu6ndpvWiCRoPlaDGiFiZxnzX3IDOR5Bfio+BdQ319+incovMfaYEeuW7sbal91lu4g==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/types": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/drawer": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/drawer/-/drawer-1.47.0.tgz",
+ "integrity": "sha512-/VKlo+JV2KqhrU1GFDEAY/HOcrKVHUCsvo9eB534UAmPqNjXjZ/umfG/w2SNYxCk2xrr7quHXGcSMGXDA07lLg==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/aria-hidden": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dismissable": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/focus-trap": "1.47.0",
+ "@zag-js/remove-scroll": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/editable": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/editable/-/editable-1.47.0.tgz",
+ "integrity": "sha512-2zn80XU1S5SNsBy3Hg34M86dy9Kc/7O2W8obmKMjSoYOtiZAMszgPvskydbnldiQCjVo30raxskyDyqBxlBRAA==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/interact-outside": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/file-upload": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/file-upload/-/file-upload-1.47.0.tgz",
+ "integrity": "sha512-UKL0Q8a1kONnmyic9D4draWfXbvLPSwwk58znKDyMplS5qGBkOVxMxX18TPU+utx/58MOo0bwoRkWr4Rp1jEUw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/file-utils": "1.47.0",
+ "@zag-js/i18n-utils": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/file-utils": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/file-utils/-/file-utils-1.47.0.tgz",
+ "integrity": "sha512-UoaCX6midsdF9lewKKLSEO8goaiygJfG+2S3DcQczy3agH+HzGu6Zc+uj74zxbqJ7u8zuI/SF4fdz5KKhLuFHg==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/i18n-utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/floating-panel": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/floating-panel/-/floating-panel-1.47.0.tgz",
+ "integrity": "sha512-UCCorJSdUFa/Klyck/JE6vrlwj8yZXPu71Is7qbQ2J4msjyFGWodSUbw3uj5JzJx7IwKWM8tU9KMuRWdbl7Ocw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/rect-utils": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/focus-trap": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/focus-trap/-/focus-trap-1.47.0.tgz",
+ "integrity": "sha512-A1eeCgOMCUCQf3JMWR+xX0mKzuGltj8ohPtTDvFzWMU4Tf8vsqIJfFsr/yMQqYRBjKAMCDzFWWmdN09NsmAFXQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/dom-query": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/focus-visible": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/focus-visible/-/focus-visible-1.47.0.tgz",
+ "integrity": "sha512-Cr77Mb8lzp9KeSeBJUhl6p+1W/ZixryRJC8AnLie7c51WwkWUeq2Is7VMJHyZmawSWTv473HziIJPothc1FPqA==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/dom-query": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/highlight-word": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/highlight-word/-/highlight-word-1.47.0.tgz",
+ "integrity": "sha512-v+Kk16bib9VwdtatPhwhxVvJ6tm9BvfOqd0TbvqnOPxCOdKMV8y69et4YptLdSgquX3b6/LHInG051r7z3JjWQ==",
+ "license": "MIT"
+ },
+ "node_modules/@zag-js/hotkeys": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/hotkeys/-/hotkeys-1.47.0.tgz",
+ "integrity": "sha512-WL3Z20W36tg+BF4VYGcngfDt3/Sd9UBtTWATI9fMVzOEKi5LIP2DqXVIJcSEvVLPYA4/Ti5RQRVlJCIFa0O5nw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/dom-query": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/hover-card": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/hover-card/-/hover-card-1.47.0.tgz",
+ "integrity": "sha512-EpLOAjlcwrZmWHh+sFXElUmgaTk0K9Jre9P1g7hCvAOkG2q/qLiFfqcaQAg3kQjqiUmv+I2ohQqQfLiWD/mByQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dismissable": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/popper": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/i18n-utils": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/i18n-utils/-/i18n-utils-1.47.0.tgz",
+ "integrity": "sha512-oOByITQQhBeUAcWiVzYoKpwFZRfJ2dbl8R+VLc5MU8h6K32fUGzGDmHsHkRaibHDcrdahmWvSn6ttBQoWtbB3w==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/dom-query": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/image-cropper": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/image-cropper/-/image-cropper-1.47.0.tgz",
+ "integrity": "sha512-+Di58G2MGJbMOEQgKjgU7Tu8+FN9OxyW0H8+1x5oC3NI6032H6YKa5jxs3gLB/okxBN8En0YU6T0rx4PyLMXFA==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/interact-outside": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/interact-outside/-/interact-outside-1.47.0.tgz",
+ "integrity": "sha512-Vy2JKw9o4VZ7mYy654V/611kst5p0/vHfqMvXI2tVdiqhI/TSs7iCkV9z2DjOObeSr6c+aLxU+sJ6Fc+sBJVeg==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/json-tree-utils": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/json-tree-utils/-/json-tree-utils-1.47.0.tgz",
+ "integrity": "sha512-IO4TRv3aMd27GiZQIKeod3GIiMWhnataBbITrP4+HLoXC0MmBItwgWOQ4hLGFhuHyAHnxJ2tpzPQjlQc4cJc9w==",
+ "license": "MIT"
+ },
+ "node_modules/@zag-js/listbox": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/listbox/-/listbox-1.47.0.tgz",
+ "integrity": "sha512-JaVB9k6TT8ObOjgCziq5E+hcWHJ3auUMX/XuMXzKxbZwYC0+tUMI3yG9T/yhPxlxvVSgsR2xvGrseTSCjSk5Tw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/collection": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/focus-visible": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/live-region": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/live-region/-/live-region-1.47.0.tgz",
+ "integrity": "sha512-IFmmnkiwtzAc/qtHDLK77SHPJ/d4oI8yLdIty/8KtgHncJ47LBpjJQIeu0A4gC7akkHQNYPJwlErvqErVX8hsA==",
+ "license": "MIT"
+ },
+ "node_modules/@zag-js/marquee": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/marquee/-/marquee-1.47.0.tgz",
+ "integrity": "sha512-QblbqrJdh64WLmmZcHBj+l5mRwwdEYworNmxB65SasYw8wWGjOqW7cXwAy6GSxRZ8pNRIX1d0wVqHUNFWTupxQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/menu": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/menu/-/menu-1.47.0.tgz",
+ "integrity": "sha512-eTFuBunFqUdcWnm5k+pSYuBRbomhoga0l11q0hLOBlTYY2Sfm2hm/6U0aOOJuvcZXXS31Iv8P04KhspFHKD+kA==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dismissable": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/focus-visible": "1.47.0",
+ "@zag-js/popper": "1.47.0",
+ "@zag-js/rect-utils": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/navigation-menu": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/navigation-menu/-/navigation-menu-1.47.0.tgz",
+ "integrity": "sha512-u0nYQ040WGDz7Pd1ZjUm/I+yRZWjhkd6Rb3AkyslhBWjqGAg4Ht+ja1aks3pQIv8sD3bJZStlFI7YQTV9yOGaQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dismissable": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/number-input": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/number-input/-/number-input-1.47.0.tgz",
+ "integrity": "sha512-+lNNZ4l12ZLXQN5UJPEF1yZykLsE3NPHkFmYybbdlPO5vlS2w6NptEDJW+k6vYEevUw4KqGJYYmwOw9th5Qvhg==",
+ "license": "MIT",
+ "dependencies": {
+ "@internationalized/number": "3.6.9",
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/pagination": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/pagination/-/pagination-1.47.0.tgz",
+ "integrity": "sha512-mV7sOLm/Elczas7IUYrjDfEv2xviZ+WZqwTlP6jSQhVQI2mghB6MjpYI1KjgS71PDNtEP5e1JUEQwVBoIsqDfA==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/password-input": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/password-input/-/password-input-1.47.0.tgz",
+ "integrity": "sha512-z/Z8BhSEpdjSDT4VxfSCVXr/QATm6oWGq+TpJE5y+/bmMSToOJZrsvFw9EMabmSFTktfAY0+7UA8quPWjIB21A==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/pin-input": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/pin-input/-/pin-input-1.47.0.tgz",
+ "integrity": "sha512-Je10nCIDQXdLO5qTKBTDrdtFbZ3J44oPzKH2HZiWjPng924GBdhnR+pw5d6JyFpv3Jlq0cc5NJd9cEN0dwR+PA==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/popover": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/popover/-/popover-1.47.0.tgz",
+ "integrity": "sha512-NHLuKLKf1FkDuAmyNAizFsg5Yv21bY85Mq4S+fWHygSBW3e7Perf2GeJD7ot3fltzC8TkWxgeZ1vW0e+TDMxdw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/aria-hidden": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dismissable": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/focus-trap": "1.47.0",
+ "@zag-js/popper": "1.47.0",
+ "@zag-js/remove-scroll": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/popper": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/popper/-/popper-1.47.0.tgz",
+ "integrity": "sha512-WghqqpfO/gMVMkvgxg4fWmKpvEXnZkKckQL3orW2e2FZDt/YfcOwLvxnM/mFLXNzWshLFtydZGw6Rz3iaAL40A==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/dom": "^1.7.6",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/presence": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/presence/-/presence-1.47.0.tgz",
+ "integrity": "sha512-9X7GDs+1ZeIyBBDXxaAQa+JYr/opq8Fz2d8uecZjiIlIA4bHwckPs2X67z18dBlfpENxdBIE+B681jagTQtqLg==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/progress": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/progress/-/progress-1.47.0.tgz",
+ "integrity": "sha512-SppO687UAP4nsb7KejYjIuz1BqVbNCdCwEtP0Q5sZna5VRh6iOfFD1yincAZFljE5ODIyV3AogYv5SqCTGqCcw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/qr-code": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/qr-code/-/qr-code-1.47.0.tgz",
+ "integrity": "sha512-EqVIdpWPaW+vwrL8rohNSdipyBEWBRv0sLbNJ8norKWFnTacFVKIJeAXbpHq0KZ1YHjO4x8d5SaMIHjBISpBBQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0",
+ "proxy-memoize": "3.0.1",
+ "uqr": "0.1.3"
+ }
+ },
+ "node_modules/@zag-js/radio-group": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/radio-group/-/radio-group-1.47.0.tgz",
+ "integrity": "sha512-pnXsQP9U4Y7gVSAPGP7O1en8Rvh5GCp0kuemTUCcr6q1PEUeFn0oTcu1rxbHTjAr68R9h8kmmpV3Za1lZ+EM/w==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/focus-visible": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/rating-group": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/rating-group/-/rating-group-1.47.0.tgz",
+ "integrity": "sha512-+UvIJRP5T877LI9NWVELXEwBy2OnldESth5K+jNWTPBnEHzA78sbBH403MrIiGagC9jQEosM8W5wsg0/gRFeeA==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/react": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/react/-/react-1.47.0.tgz",
+ "integrity": "sha512-LhWw25H+LYx0PAh+b8p9/hfvROU1TJEVURGWaxClp0TbRFzhitqk32llLuG6UT5QK0ApkF27Hcvj3fCMVcqvfg==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/core": "1.47.0",
+ "@zag-js/store": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@zag-js/rect-utils": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/rect-utils/-/rect-utils-1.47.0.tgz",
+ "integrity": "sha512-7F3E6bPURhDzd9Ziq9FVjzZRIuksLmGNCiN4cCwLsKefLsgRcQNsW1SSIh2XLsm86adIWe8d0d5AYLLl3SYafQ==",
+ "license": "MIT"
+ },
+ "node_modules/@zag-js/remove-scroll": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/remove-scroll/-/remove-scroll-1.47.0.tgz",
+ "integrity": "sha512-HmK8RGxNkdBx7M2+RaLor05C/5dxHB6rye2uhi7GtvhDJ1vLGYEolkkD37tKQBOWasbkfsV/PZab0rCZsxDtQg==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/dom-query": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/scroll-area": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/scroll-area/-/scroll-area-1.47.0.tgz",
+ "integrity": "sha512-uaHlnkiVQYZzr5KDCsQZ39XPUMaYwIEwDvASbcKM+5cAEa+Sh4ZHlltngcnyNLfQS/SLwWw2kN4wYc76kGsLVQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/scroll-snap": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/scroll-snap/-/scroll-snap-1.47.0.tgz",
+ "integrity": "sha512-PJ+X074X/ru63n0htmNoCa1PY1g3a8nwEJdLyB7yTlFwf9gmpo3C2PeDQ7d0MCKqPIR6jz2DQ5Gx9pTMOhMLXA==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/dom-query": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/select": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/select/-/select-1.47.0.tgz",
+ "integrity": "sha512-lH5J0o+ejtXmqGErM1t/Qe7rBcX4skINwn87/8kjwdQaCYo6cgvYyt+8TyalA9WPvmvgWipH7B+wxawyIqi8zA==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/collection": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dismissable": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/focus-visible": "1.47.0",
+ "@zag-js/popper": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/signature-pad": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/signature-pad/-/signature-pad-1.47.0.tgz",
+ "integrity": "sha512-swAVgLeKUREjh8MUzM2YX9JqRipHdkLUsAgdklrO0Evf69QGxEcYOJIQ+T1Xez3V6oqL3K0C50tbneUh0xkpDw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0",
+ "perfect-freehand": "^1.2.3"
+ }
+ },
+ "node_modules/@zag-js/slider": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/slider/-/slider-1.47.0.tgz",
+ "integrity": "sha512-rQRiQnOQeeuWe7Gy1jtRO7h+ELhspFcBt9NR2+JpxOGN3sSNQcTmRXvmC6SDnI8NGdwLywYQTEdUAic9aDSnZg==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/splitter": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/splitter/-/splitter-1.47.0.tgz",
+ "integrity": "sha512-RFIaZ3Ac+7uH0dBLqsXOoe9ARF4N+lMENAuDxoCTZajsXZW3yeNmKu77UuWrvhGFDHPoCiRryufZWyajhDcuaQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/steps": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/steps/-/steps-1.47.0.tgz",
+ "integrity": "sha512-hTwE2rWEsdaNbNfS9PXMsOME7ZzxASlnVL8LvIiyIcjoM5FrJjCCvn9Pl+HXjn7fe+Dlev3kHef8s+vM8Mww+A==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/store": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/store/-/store-1.47.0.tgz",
+ "integrity": "sha512-uHkrNEJhtRf5xbBBreTX5vXBGT6RfOfKDcRs02u9yhatk9DJRTgk5DQGLKcqH/X+SIeRU5smzUKH4OPT8wR42A==",
+ "license": "MIT",
+ "dependencies": {
+ "proxy-compare": "3.0.1"
+ }
+ },
+ "node_modules/@zag-js/switch": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/switch/-/switch-1.47.0.tgz",
+ "integrity": "sha512-61jm3G+QnwMTzpLyOC0eZU9yXRNKnEnd63iruAmOxTmaQWCCdRdxPVn0qnwm2Ve6W/9VdNvwPyt4U9KoC+Y9uw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/focus-visible": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/tabs": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/tabs/-/tabs-1.47.0.tgz",
+ "integrity": "sha512-ozwN9K5DUbO99S2M4+E18VhrGwWpTo8q97cigOByySpZp6vBJI2A1HNQEVTqwgH9ltrRPfAYUatWXrkO/Dxamw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/tags-input": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/tags-input/-/tags-input-1.47.0.tgz",
+ "integrity": "sha512-w9FSMyqyjvt9HUkj4UEIUSKrtNOozoenyKfL344hmeZScY/vpl8ZFCk+CrtAgFvu2o1a8IxlJDlcb6CC5SYrpg==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/auto-resize": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/interact-outside": "1.47.0",
+ "@zag-js/live-region": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/timer": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/timer/-/timer-1.47.0.tgz",
+ "integrity": "sha512-Mc3Jo17Ztw5phKncyguVSeo5juHFDhjhmK7c9xj8LT6u4UC+A8pIiKsLxdHe0Khop489fYBsqwk+ODDD72sywQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/toast": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/toast/-/toast-1.47.0.tgz",
+ "integrity": "sha512-p0vRTxrW5ezThP+bhSj6AkOY3X/497revba6LSHeHEbVDQKwTdePRl/6pRMjJOt3x1jWnuG6ZMGNgvrBo9g/Sw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dismissable": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/toc": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/toc/-/toc-1.47.0.tgz",
+ "integrity": "sha512-IgJZvsPD3tbt7UlCojHTSl3wWkqSRdueFAaIjNwfed0c1aXzJoe7JhWd5e6Ectlc0kHu/Tw+sZbdo7PtPfwtVw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/toggle": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/toggle/-/toggle-1.47.0.tgz",
+ "integrity": "sha512-aM1Y/vVQpYTkNmNvgRjZH/O70PCUJCOySqIJCwanfz6dB3ZkQCv7yQabM5R1hBGNEpcpDWZaBSgna4pQmFoSlQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/toggle-group": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/toggle-group/-/toggle-group-1.47.0.tgz",
+ "integrity": "sha512-OcvDrvOGX3cvPFqLAfnQ5936WN5kyCrXH8oimnry8xdkc8Q4i0IR4yqNWZ2ybBgfI1bKmm6xNhEXRUrIv3pYNA==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/tooltip": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/tooltip/-/tooltip-1.47.0.tgz",
+ "integrity": "sha512-5KE8VDS5C175AvYmypk43KXK7NfW3EMSx+V2PbM10zJFHqC0BKeRpWtvWY7Q9fTY2iEoJ9FPuN5H2CXahcmL7A==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/focus-visible": "1.47.0",
+ "@zag-js/popper": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/tour": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/tour/-/tour-1.47.0.tgz",
+ "integrity": "sha512-AQdldEwlSWTBPOUTuLXN/bVwLf6lqww0WUMiYcfEjd+DnhZuwfESGWCNadI5hSYjUo9fjbEyt9k7eWl/gRyvhw==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dismissable": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/focus-trap": "1.47.0",
+ "@zag-js/interact-outside": "1.47.0",
+ "@zag-js/popper": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/tree-view": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/tree-view/-/tree-view-1.47.0.tgz",
+ "integrity": "sha512-jx3ckPnIBQNC3vwC1q7b+0LaBr0iv8bsSHxiOGHUdSq41c5iqhDVtVMFpjpZSDV+IMv0Hn245tB46HOo4rlNww==",
+ "license": "MIT",
+ "dependencies": {
+ "@zag-js/anatomy": "1.47.0",
+ "@zag-js/collection": "1.47.0",
+ "@zag-js/core": "1.47.0",
+ "@zag-js/dom-query": "1.47.0",
+ "@zag-js/types": "1.47.0",
+ "@zag-js/utils": "1.47.0"
+ }
+ },
+ "node_modules/@zag-js/types": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/types/-/types-1.47.0.tgz",
+ "integrity": "sha512-3TTiZR+PnODKSLl5PgpzS7QjBTQfB5K+M6q6NHXpr80Z9Rn2UxNoMFK3TA68lec5mryOvvum1P3EIS8Ho9NCGA==",
+ "license": "MIT",
+ "dependencies": {
+ "csstype": "3.2.3"
+ }
+ },
+ "node_modules/@zag-js/utils": {
+ "version": "1.47.0",
+ "resolved": "https://registry.npmjs.org/@zag-js/utils/-/utils-1.47.0.tgz",
+ "integrity": "sha512-vD4JoPJkFBGA2C5/HcfKrhkxqjFlJrfQj0wSoypvYghP1nJYaa6PNJs0zo3EeI4/NJ0EuJSnUg0zsCo+Dhm4iQ==",
+ "license": "MIT"
+ },
+ "node_modules/@zone-eu/mailsplit": {
+ "version": "5.4.16",
+ "resolved": "https://registry.npmjs.org/@zone-eu/mailsplit/-/mailsplit-5.4.16.tgz",
+ "integrity": "sha512-zQ9iXvlT3Wi/hazeC1MdI4rQc1UJwJ6IQ6QzSZ5KDxLZZWQSazWLOzImLFluXadKShJ9WJvI1xH+AyVS8b9azg==",
+ "license": "(MIT OR EUPL-1.1+)",
+ "dependencies": {
+ "libbase64": "1.3.0",
+ "libmime": "5.4.3",
+ "libqp": "2.1.1"
+ }
+ },
+ "node_modules/accepts": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",
+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-types": "^3.0.0",
+ "negotiator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "8.20.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",
+ "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ansi-colors": {
+ "version": "4.1.3",
+ "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz",
+ "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/astral-regex": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz",
+ "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/atomic-sleep": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz",
+ "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.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/base64-js": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
+ "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/baseline-browser-mapping": {
+ "version": "2.11.35",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.35.tgz",
+ "integrity": "sha512-GNk8KX52CHqeNKGk8+7tZnQab/2k1t/BgrUHPKNdijzpEhF1saPQZHVKb6m5loSAxB39gyrTYw34Qf9CQ3u1qQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/better-sqlite3": {
+ "version": "11.10.0",
+ "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-11.10.0.tgz",
+ "integrity": "sha512-EwhOpyXiOEL/lKzHz9AW1msWFNzGc/z+LzeB3/jnFJpxu+th2yqvzsSWas1v9jgs9+xiXJcD5A8CJxAG2TaghQ==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "dependencies": {
+ "bindings": "^1.5.0",
+ "prebuild-install": "^7.1.1"
+ }
+ },
+ "node_modules/bindings": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
+ "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
+ "license": "MIT",
+ "dependencies": {
+ "file-uri-to-path": "1.0.0"
+ }
+ },
+ "node_modules/bl": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
+ "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
+ "license": "MIT",
+ "dependencies": {
+ "buffer": "^5.5.0",
+ "inherits": "^2.0.4",
+ "readable-stream": "^3.4.0"
+ }
+ },
+ "node_modules/body-parser": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.4.0.tgz",
+ "integrity": "sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "^3.1.2",
+ "content-type": "^2.1.0",
+ "debug": "^4.4.3",
+ "http-errors": "^2.0.1",
+ "iconv-lite": "^0.7.3",
+ "on-finished": "^2.4.1",
+ "qs": "^6.16.1",
+ "raw-body": "^3.0.2",
+ "type-is": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "5.0.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
+ "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^4.0.2"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/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.4",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.4.tgz",
+ "integrity": "sha512-2TcbbiwXEq+N0kD36tykpCfyyQigUXmuwNQbnPp4Xk4PX9JOqVIKjJlIDjpH7uY6tmRGoAd+apeT1p60T8wsdA==",
+ "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.29",
+ "caniuse-lite": "^1.0.30001816",
+ "electron-to-chromium": "^1.5.459",
+ "node-releases": "^2.0.59",
+ "update-browserslist-db": "^1.3.4"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/buffer": {
+ "version": "5.7.1",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+ "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": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.1.13"
+ }
+ },
+ "node_modules/bytes": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/cac": {
+ "version": "6.7.14",
+ "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",
+ "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/call-bound": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "get-intrinsic": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001820",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001820.tgz",
+ "integrity": "sha512-gfWD6MxqVCqAOwmODfZf7DchWvlrA+SRdNX7ceLfg3xRqe5ssjjpF7EgslC/0tiLiNTajdaNN/q8c/5u/7Gz8w==",
+ "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/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/chalk/node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/chokidar": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",
+ "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readdirp": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 14.16.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/chownr": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
+ "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
+ "license": "ISC"
+ },
+ "node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/code-block-writer": {
+ "version": "13.0.3",
+ "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-13.0.3.tgz",
+ "integrity": "sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/concurrently": {
+ "version": "9.2.5",
+ "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-9.2.5.tgz",
+ "integrity": "sha512-YMZlvWrTPQEhjKp60XSmMGt60+pffbv6DyRnOMvVO98+J7aF8w8Ui9FhdcOwvSixc/kyR6SoVvmejcn/2lZBqg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "4.1.2",
+ "rxjs": "7.8.2",
+ "shell-quote": "1.12.0",
+ "supports-color": "8.1.1",
+ "tree-kill": "1.2.2",
+ "yargs": "17.7.2"
+ },
+ "bin": {
+ "conc": "dist/bin/concurrently.js",
+ "concurrently": "dist/bin/concurrently.js"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/open-cli-tools/concurrently?sponsor=1"
+ }
+ },
+ "node_modules/confbox": {
+ "version": "0.2.4",
+ "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.4.tgz",
+ "integrity": "sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/content-disposition": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-2.0.1.tgz",
+ "integrity": "sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/content-type": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz",
+ "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/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/cookie": {
+ "version": "0.7.2",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie-signature": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",
+ "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.6.0"
+ }
+ },
+ "node_modules/cron-parser": {
+ "version": "5.10.3",
+ "resolved": "https://registry.npmjs.org/cron-parser/-/cron-parser-5.10.3.tgz",
+ "integrity": "sha512-Fwlmlgiyoj5e7XDCy5T3ueFd3imgt714k7xjAzhkOBUrUgQxWtsjS7kWSEN3efDX34bebxBJAmPoCSisHvjlpw==",
+ "license": "MIT",
+ "dependencies": {
+ "luxon": "^3.7.2"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/crosspath": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/crosspath/-/crosspath-2.0.0.tgz",
+ "integrity": "sha512-ju88BYCQ2uvjO2bR+SsgLSTwTSctU+6Vp2ePbKPgSCZyy4MWZxYsT738DlKVRE5utUjobjPRm1MkTYKJxCmpTA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "^17.0.36"
+ },
+ "engines": {
+ "node": ">=14.9.0"
+ }
+ },
+ "node_modules/crosspath/node_modules/@types/node": {
+ "version": "17.0.45",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz",
+ "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cssesc": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "cssesc": "bin/cssesc"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
+ "license": "MIT"
+ },
+ "node_modules/dayjs": {
+ "version": "1.11.23",
+ "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.23.tgz",
+ "integrity": "sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==",
+ "license": "MIT"
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/decompress-response": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
+ "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
+ "license": "MIT",
+ "dependencies": {
+ "mimic-response": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/deep-extend": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
+ "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/deepmerge-ts": {
+ "version": "8.0.2",
+ "resolved": "https://registry.npmjs.org/deepmerge-ts/-/deepmerge-ts-8.0.2.tgz",
+ "integrity": "sha512-uqbvqLUMrc6p0MO+WBRtTxY55hmyh94WRwI5a++PZe54X+bfVh59FSN7uWCBCW1CCVjzjnrwzfI8zidE2obMMw==",
+ "funding": [
+ {
+ "type": "ko-fi",
+ "url": "https://ko-fi.com/rebeccastevens"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/deepmerge-ts"
+ }
+ ],
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=16.9.0"
+ }
+ },
+ "node_modules/depd": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/detect-libc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/dom-serializer": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz",
+ "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==",
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^2.3.0",
+ "domhandler": "^5.0.2",
+ "entities": "^4.2.0"
+ },
+ "funding": {
+ "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
+ }
+ },
+ "node_modules/domelementtype": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz",
+ "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fb55"
+ }
+ ],
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/domhandler": {
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz",
+ "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "domelementtype": "^2.3.0"
+ },
+ "engines": {
+ "node": ">= 4"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/domhandler?sponsor=1"
+ }
+ },
+ "node_modules/domutils": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz",
+ "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "dom-serializer": "^2.0.0",
+ "domelementtype": "^2.3.0",
+ "domhandler": "^5.0.3"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/domutils?sponsor=1"
+ }
+ },
+ "node_modules/dotenv": {
+ "version": "18.0.9",
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-18.0.9.tgz",
+ "integrity": "sha512-3fVOW4cB02R066PUSwn8O4TJyz9NckQl7F81blIbaq9jKBm2tSmOKky7ZHIXzGvkVPXCSn6jkpziBPZdGFs8Tw==",
+ "license": "BSD-2-Clause",
+ "bin": {
+ "dotenv": "dist/index.cjs"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://dotenvx.com"
+ }
+ },
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/ee-first": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
+ "license": "MIT"
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.473",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.473.tgz",
+ "integrity": "sha512-9njcRQK+6FOXNAWw5g+h2RPiyazqo5RFMVJ39ZMHjDHUNnnFlhnOGV7O0WmJetODDx19ES5p+FLi+KCVFQGugw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/encodeurl": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.1.tgz",
+ "integrity": "sha512-Ev/hIyePLZtpL98x562lvPtenrUfGr0lfaf44HFZ+hDEwso7ccV9QAZrEVLg0hxNAzygaAFxy2dYaAKKM0G06A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/encoding-japanese": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/encoding-japanese/-/encoding-japanese-2.3.0.tgz",
+ "integrity": "sha512-eQyh1vzHz13DUkZcJO+0IOAoKXRQwKV5IBffeuYsWZyRLGiSzfzXObCqWvqFXdX0UU8qOk+lBXbkUhMCpdJe4Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ }
+ },
+ "node_modules/end-of-stream": {
+ "version": "1.4.5",
+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",
+ "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",
+ "license": "MIT",
+ "dependencies": {
+ "once": "^1.4.0"
+ }
+ },
+ "node_modules/entities": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
+ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.12"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz",
+ "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/esbuild": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",
+ "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.25.12",
+ "@esbuild/android-arm": "0.25.12",
+ "@esbuild/android-arm64": "0.25.12",
+ "@esbuild/android-x64": "0.25.12",
+ "@esbuild/darwin-arm64": "0.25.12",
+ "@esbuild/darwin-x64": "0.25.12",
+ "@esbuild/freebsd-arm64": "0.25.12",
+ "@esbuild/freebsd-x64": "0.25.12",
+ "@esbuild/linux-arm": "0.25.12",
+ "@esbuild/linux-arm64": "0.25.12",
+ "@esbuild/linux-ia32": "0.25.12",
+ "@esbuild/linux-loong64": "0.25.12",
+ "@esbuild/linux-mips64el": "0.25.12",
+ "@esbuild/linux-ppc64": "0.25.12",
+ "@esbuild/linux-riscv64": "0.25.12",
+ "@esbuild/linux-s390x": "0.25.12",
+ "@esbuild/linux-x64": "0.25.12",
+ "@esbuild/netbsd-arm64": "0.25.12",
+ "@esbuild/netbsd-x64": "0.25.12",
+ "@esbuild/openbsd-arm64": "0.25.12",
+ "@esbuild/openbsd-x64": "0.25.12",
+ "@esbuild/openharmony-arm64": "0.25.12",
+ "@esbuild/sunos-x64": "0.25.12",
+ "@esbuild/win32-arm64": "0.25.12",
+ "@esbuild/win32-ia32": "0.25.12",
+ "@esbuild/win32-x64": "0.25.12"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-html": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
+ "license": "MIT"
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/etag": {
+ "version": "1.8.1",
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/expand-template": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
+ "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",
+ "license": "(MIT OR WTFPL)",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/express": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/express/-/express-5.3.0.tgz",
+ "integrity": "sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==",
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "^2.0.0",
+ "body-parser": "^2.3.0",
+ "content-disposition": "^2.0.1",
+ "content-type": "^2.0.0",
+ "cookie": "^0.7.1",
+ "cookie-signature": "^1.2.1",
+ "debug": "^4.4.0",
+ "depd": "^2.0.0",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "etag": "^1.8.1",
+ "finalhandler": "^2.1.0",
+ "fresh": "^2.0.0",
+ "http-errors": "^2.0.0",
+ "merge-descriptors": "^2.0.0",
+ "mime-types": "^3.0.0",
+ "on-finished": "^2.4.1",
+ "once": "^1.4.0",
+ "parseurl": "^1.3.3",
+ "proxy-addr": "^2.0.8",
+ "qs": "^6.16.0",
+ "range-parser": "^1.2.1",
+ "router": "^2.2.0",
+ "send": "^1.1.0",
+ "serve-static": "^2.2.0",
+ "statuses": "^2.0.1",
+ "type-is": "^2.1.0",
+ "vary": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/exsolve": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.2.0.tgz",
+ "integrity": "sha512-h1pQPR9XoeSMdntRNCjyTznaume4UpfXrULBnlkZ2CUM/G5eSa+pBByGldO5uR8dxbPC+OuJXsPPNf+JZ81ADg==",
+ "dev": true,
+ "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-string-truncated-width": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/fast-string-truncated-width/-/fast-string-truncated-width-3.0.3.tgz",
+ "integrity": "sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-string-width": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/fast-string-width/-/fast-string-width-3.0.2.tgz",
+ "integrity": "sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-string-truncated-width": "^3.0.2"
+ }
+ },
+ "node_modules/fast-uri": {
+ "version": "3.1.9",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz",
+ "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fastify"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fastify"
+ }
+ ],
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/fast-wrap-ansi": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.2.2.tgz",
+ "integrity": "sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-string-width": "^3.0.2"
+ }
+ },
+ "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/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/file-uri-to-path": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
+ "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
+ "license": "MIT"
+ },
+ "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/finalhandler": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz",
+ "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.4.0",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "on-finished": "^2.4.1",
+ "parseurl": "^1.3.3",
+ "statuses": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/forwarded": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/fresh": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",
+ "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/fs-constants": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
+ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
+ "license": "MIT"
+ },
+ "node_modules/fs-extra": {
+ "version": "11.3.2",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.2.tgz",
+ "integrity": "sha512-Xr9F6z6up6Ws+NjzMCZc6WXg2YFRlrLP9NQDO3VQrWrfiojdhS56TzueT88ze0uBdCTwEIhQ3ptnmKeWGFAe0A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=14.14"
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/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/get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "function-bind": "^1.1.2",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/get-tsconfig": {
+ "version": "4.14.3",
+ "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.3.tgz",
+ "integrity": "sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "resolve-pkg-maps": "^1.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"
+ }
+ },
+ "node_modules/github-from-package": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
+ "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==",
+ "license": "MIT"
+ },
+ "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/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/graceful-fs": {
+ "version": "4.2.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",
+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/he": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
+ "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
+ "license": "MIT",
+ "bin": {
+ "he": "bin/he"
+ }
+ },
+ "node_modules/html-to-text": {
+ "version": "10.0.1",
+ "resolved": "https://registry.npmjs.org/html-to-text/-/html-to-text-10.0.1.tgz",
+ "integrity": "sha512-GiVhRI1BatGARSCmlXWNCjDT0cWrwBWoeduLoV0WSKAgaV/wa+hUWy5LiQLUs4UwiUrE52ZCMfBGiKD87TDPrg==",
+ "license": "MIT",
+ "dependencies": {
+ "@selderee/plugin-htmlparser2": "~0.12.0",
+ "deepmerge-ts": "^8.0.1",
+ "dom-serializer": "^2.0.0",
+ "htmlparser2": "^10.1.0",
+ "selderee": "~0.12.0"
+ },
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/KillyMXI"
+ }
+ },
+ "node_modules/htmlparser2": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.1.0.tgz",
+ "integrity": "sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==",
+ "funding": [
+ "https://github.com/fb55/htmlparser2?sponsor=1",
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fb55"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^2.3.0",
+ "domhandler": "^5.0.3",
+ "domutils": "^3.2.2",
+ "entities": "^7.0.1"
+ }
+ },
+ "node_modules/htmlparser2/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/http-errors": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "~2.0.0",
+ "inherits": "~2.0.4",
+ "setprototypeof": "~1.2.0",
+ "statuses": "~2.0.2",
+ "toidentifier": "~1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/iconv-lite": {
+ "version": "0.7.3",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz",
+ "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/ieee754": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
+ "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": "BSD-3-Clause"
+ },
+ "node_modules/imapflow": {
+ "version": "1.7.8",
+ "resolved": "https://registry.npmjs.org/imapflow/-/imapflow-1.7.8.tgz",
+ "integrity": "sha512-dJoCIdZOJh26Rn2PdwEzwj0bRDgGBxxX38pio534FagIHVuR2l0SAfLr6sJo32YfuJHiSs/U2ntNDHnMg3/Hlg==",
+ "license": "MIT",
+ "dependencies": {
+ "@zone-eu/mailsplit": "5.4.16",
+ "encoding-japanese": "2.3.0",
+ "iconv-lite": "0.7.3",
+ "libbase64": "1.3.0",
+ "libmime": "5.4.3",
+ "libqp": "2.1.1",
+ "pino": "10.3.1",
+ "socks": "2.8.9"
+ }
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "license": "ISC"
+ },
+ "node_modules/ini": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
+ "license": "ISC"
+ },
+ "node_modules/ip-address": {
+ "version": "10.7.5",
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.5.tgz",
+ "integrity": "sha512-t2v0rkILYv9WXmSL7TpAaU3HXgaFYOPUcH3QHgwQ++gpJuH3bqyMy4Fvt/DJCTKwzH3Cf+bAp5W/mFL39KPLzA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 12"
+ }
+ },
+ "node_modules/ipaddr.js": {
+ "version": "1.9.1",
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/is-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-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-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-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-plain-object": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.1.0.tgz",
+ "integrity": "sha512-bUi/yjmtKYcRVUtWRGr0UA6xEFh2I6zWUwMrUXB3s7bmYCaZ8a+0ZsTRkrawh/mzlSD1Y0Ph8bp/U+TvBpWDNw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-promise": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",
+ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",
+ "license": "MIT"
+ },
+ "node_modules/javascript-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/javascript-stringify/-/javascript-stringify-2.1.0.tgz",
+ "integrity": "sha512-JVAfqNPTvNq3sB/VHQJAFxN/sPgKnsKrCwyRt15zwNCdrMMJDdcEOdubuy+DuJYYdm0ox1J4uzEuYKkN+9yhVg==",
+ "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/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-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/jsonfile": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",
+ "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "universalify": "^2.0.0"
+ },
+ "optionalDependencies": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "node_modules/kleur": {
+ "version": "4.1.5",
+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",
+ "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/launder": {
+ "version": "1.7.2",
+ "resolved": "https://registry.npmjs.org/launder/-/launder-1.7.2.tgz",
+ "integrity": "sha512-DLg3HPnHUfBi5/MxMLmJD12dmlMpFEC2HgMW6vkZ/9JR0RU00kXoRGvDxAvFmdO0o610OA77i4FgNTLucmhDVg==",
+ "license": "MIT",
+ "dependencies": {
+ "dayjs": "^1.11.23"
+ }
+ },
+ "node_modules/leac": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/leac/-/leac-0.7.0.tgz",
+ "integrity": "sha512-qMrZeyEekgdRQ9o6a4NAB2EQZrv827GJdn1vnapwSJ90hWRB4TzUSunvacPkxQ2TnNqHNI1/zSt0hlo0crG8Jw==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/KillyMXI"
+ }
+ },
+ "node_modules/libbase64": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/libbase64/-/libbase64-1.3.0.tgz",
+ "integrity": "sha512-GgOXd0Eo6phYgh0DJtjQ2tO8dc0IVINtZJeARPeiIJqge+HdsWSuaDTe8ztQ7j/cONByDZ3zeB325AHiv5O0dg==",
+ "license": "MIT"
+ },
+ "node_modules/libmime": {
+ "version": "5.4.3",
+ "resolved": "https://registry.npmjs.org/libmime/-/libmime-5.4.3.tgz",
+ "integrity": "sha512-di9BoDabBUMqjeD/wGj+hHpSgdqAph5ui7w6OdY6NpzU6O6VFLQsMOg9tqCjm/zf9OHzAM9EZxSOF7uIb8O8Hw==",
+ "license": "MIT",
+ "dependencies": {
+ "encoding-japanese": "2.3.0",
+ "iconv-lite": "0.7.3",
+ "libbase64": "1.3.0",
+ "libqp": "2.1.1"
+ }
+ },
+ "node_modules/libqp": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/libqp/-/libqp-2.1.1.tgz",
+ "integrity": "sha512-0Wd+GPz1O134cP62YU2GTOPNA7Qgl09XwCqM5zpBv87ERCXdfDtyKXvV7c9U22yWJh44QZqBocFnXN11K96qow==",
+ "license": "MIT"
+ },
+ "node_modules/lightningcss": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.31.1.tgz",
+ "integrity": "sha512-l51N2r93WmGUye3WuFoN5k10zyvrVs0qfKBhyC5ogUQ6Ew6JUSswh78mbSO+IU3nTWsyOArqPCcShdQSadghBQ==",
+ "dev": true,
+ "license": "MPL-2.0",
+ "dependencies": {
+ "detect-libc": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ },
+ "optionalDependencies": {
+ "lightningcss-android-arm64": "1.31.1",
+ "lightningcss-darwin-arm64": "1.31.1",
+ "lightningcss-darwin-x64": "1.31.1",
+ "lightningcss-freebsd-x64": "1.31.1",
+ "lightningcss-linux-arm-gnueabihf": "1.31.1",
+ "lightningcss-linux-arm64-gnu": "1.31.1",
+ "lightningcss-linux-arm64-musl": "1.31.1",
+ "lightningcss-linux-x64-gnu": "1.31.1",
+ "lightningcss-linux-x64-musl": "1.31.1",
+ "lightningcss-win32-arm64-msvc": "1.31.1",
+ "lightningcss-win32-x64-msvc": "1.31.1"
+ }
+ },
+ "node_modules/lightningcss-android-arm64": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.31.1.tgz",
+ "integrity": "sha512-HXJF3x8w9nQ4jbXRiNppBCqeZPIAfUo8zE/kOEGbW5NZvGc/K7nMxbhIr+YlFlHW5mpbg/YFPdbnCh1wAXCKFg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-arm64": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.31.1.tgz",
+ "integrity": "sha512-02uTEqf3vIfNMq3h/z2cJfcOXnQ0GRwQrkmPafhueLb2h7mqEidiCzkE4gBMEH65abHRiQvhdcQ+aP0D0g67sg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-x64": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.31.1.tgz",
+ "integrity": "sha512-1ObhyoCY+tGxtsz1lSx5NXCj3nirk0Y0kB/g8B8DT+sSx4G9djitg9ejFnjb3gJNWo7qXH4DIy2SUHvpoFwfTA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-freebsd-x64": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.31.1.tgz",
+ "integrity": "sha512-1RINmQKAItO6ISxYgPwszQE1BrsVU5aB45ho6O42mu96UiZBxEXsuQ7cJW4zs4CEodPUioj/QrXW1r9pLUM74A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm-gnueabihf": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.31.1.tgz",
+ "integrity": "sha512-OOCm2//MZJ87CdDK62rZIu+aw9gBv4azMJuA8/KB74wmfS3lnC4yoPHm0uXZ/dvNNHmnZnB8XLAZzObeG0nS1g==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-gnu": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.31.1.tgz",
+ "integrity": "sha512-WKyLWztD71rTnou4xAD5kQT+982wvca7E6QoLpoawZ1gP9JM0GJj4Tp5jMUh9B3AitHbRZ2/H3W5xQmdEOUlLg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-musl": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.31.1.tgz",
+ "integrity": "sha512-mVZ7Pg2zIbe3XlNbZJdjs86YViQFoJSpc41CbVmKBPiGmC4YrfeOyz65ms2qpAobVd7WQsbW4PdsSJEMymyIMg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-gnu": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.31.1.tgz",
+ "integrity": "sha512-xGlFWRMl+0KvUhgySdIaReQdB4FNudfUTARn7q0hh/V67PVGCs3ADFjw+6++kG1RNd0zdGRlEKa+T13/tQjPMA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-musl": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.31.1.tgz",
+ "integrity": "sha512-eowF8PrKHw9LpoZii5tdZwnBcYDxRw2rRCyvAXLi34iyeYfqCQNA9rmUM0ce62NlPhCvof1+9ivRaTY6pSKDaA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-arm64-msvc": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.31.1.tgz",
+ "integrity": "sha512-aJReEbSEQzx1uBlQizAOBSjcmr9dCdL3XuC/6HLXAxmtErsj2ICo5yYggg1qOODQMtnjNQv2UHb9NpOuFtYe4w==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-x64-msvc": {
+ "version": "1.31.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.31.1.tgz",
+ "integrity": "sha512-I9aiFrbd7oYHwlnQDqr1Roz+fTz61oDDJX7n9tYF9FJymH1cIN1DtKw3iYt6b8WZgEjoNwVSncwF4wx/ZedMhw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/linkify-it": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.2.tgz",
+ "integrity": "sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/puzrin"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/markdown-it"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "uc.micro": "^2.0.0"
+ }
+ },
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.truncate": {
+ "version": "4.4.2",
+ "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz",
+ "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/look-it-up": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/look-it-up/-/look-it-up-2.1.0.tgz",
+ "integrity": "sha512-nMoGWW2HurtuJf6XAL56FWTDCWLOTSsanrgwOyaR5Y4e3zfG5N/0cU5xWZSEU3tBxhQugRbV1xL9jb+ug7yZww==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "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/lucide-react": {
+ "version": "0.468.0",
+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.468.0.tgz",
+ "integrity": "sha512-6koYRhnM2N0GGZIdXzSeiNwguv1gt/FAjZOiPl76roBi3xKEXa4WmfpxgQwTTL4KipXjefrnf3oV4IsYhi4JFA==",
+ "license": "ISC",
+ "peerDependencies": {
+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc"
+ }
+ },
+ "node_modules/luxon": {
+ "version": "3.7.2",
+ "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.7.2.tgz",
+ "integrity": "sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.5"
+ }
+ },
+ "node_modules/mailparser": {
+ "version": "3.14.1",
+ "resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.14.1.tgz",
+ "integrity": "sha512-Z0LLk7F0yhSCx3xjyL8BMm6dXO3vuWrSAeVhm1F18wVGVBbLAKOsVsCjPyOhJy+KuyDW9PRyDuyiPb7yJCHwVA==",
+ "license": "MIT",
+ "dependencies": {
+ "@zone-eu/mailsplit": "5.4.29",
+ "he": "1.2.0",
+ "html-to-text": "10.0.1",
+ "libmime": "5.6.3",
+ "linkify-it": "5.0.2",
+ "nodemailer": "10.3.1",
+ "punycode.js": "2.3.1",
+ "tlds": "1.261.0"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/mailparser/node_modules/@zone-eu/mailsplit": {
+ "version": "5.4.29",
+ "resolved": "https://registry.npmjs.org/@zone-eu/mailsplit/-/mailsplit-5.4.29.tgz",
+ "integrity": "sha512-CCUNycmUjrV5M0wNf23waWAt9eOHczhjLbUQS7k0FNJvR0py9VSqHFt+tSl/D0+XI73VLG0U+PwYtq9R0zsm9Q==",
+ "license": "(MIT OR EUPL-1.1+)",
+ "dependencies": {
+ "libbase64": "1.4.1",
+ "libmime": "5.6.3",
+ "libqp": "3.0.1"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/mailparser/node_modules/encoding-japanese": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/encoding-japanese/-/encoding-japanese-2.4.0.tgz",
+ "integrity": "sha512-PE0KjlsDy9JSsoU4C2Q8NXb1kC4c+bZRac9ZvHXUE4q1Ht63gScKMdEy9jst9+Fi3M4eDkqzkEhBZvix4blP2A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ }
+ },
+ "node_modules/mailparser/node_modules/libbase64": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/libbase64/-/libbase64-1.4.1.tgz",
+ "integrity": "sha512-Nyh3H90B3gRtrcxIe56Ayy7635J0jmh6AbxbQgQae8wrSPQMH5wFqJChiMTB13yKG512L3YspbA5DzumhFTITA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/mailparser/node_modules/libmime": {
+ "version": "5.6.3",
+ "resolved": "https://registry.npmjs.org/libmime/-/libmime-5.6.3.tgz",
+ "integrity": "sha512-cuTUW/Jybvh5O4/U9p61gyutHOjDtZyGQYuY99+bfnaFwqcDf2Nb+R6hMHY6DDen2H9wLKQSMpofWUgn2TI5JQ==",
+ "license": "MIT",
+ "dependencies": {
+ "encoding-japanese": "2.4.0",
+ "iconv-lite": "0.7.3",
+ "libbase64": "1.4.1",
+ "libqp": "3.0.1"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/mailparser/node_modules/libqp": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/libqp/-/libqp-3.0.1.tgz",
+ "integrity": "sha512-7QZxpPX25pga1WiMueduWxmrHMVBFrZPH6ZUaozGYa/H98JH6NVBSET3qVw+4NxzoraIW7rJ81YxSU9IalvCpg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/media-typer": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz",
+ "integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/merge-descriptors": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",
+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/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/microdiff": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/microdiff/-/microdiff-1.5.0.tgz",
+ "integrity": "sha512-Drq+/THMvDdzRYrK0oxJmOKiC24ayUV8ahrt8l3oRK51PWt6gdtrIGrlIH3pT/lFh1z93FbAcidtsHcWbnRz8Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "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/micromatch/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/mime-db": {
+ "version": "1.54.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "^1.54.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/mimic-response": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
+ "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "11.0.1",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.1.tgz",
+ "integrity": "sha512-t+Vn6DX4wPCxS23y03C0uhF7S1jpi1GfqPrnlEipCJaA2ykiNbMkVlDutZtmvLfRcUN6R8AYVlzTsQrT4RZoLQ==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "@isaacs/nonrecursive-glob-match": "^1.0.1",
+ "brace-expansion": "^5.0.12"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/minimist": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/mkdirp-classic": {
+ "version": "0.5.3",
+ "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
+ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
+ "license": "MIT"
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.20",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz",
+ "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==",
+ "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/napi-build-utils": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz",
+ "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==",
+ "license": "MIT"
+ },
+ "node_modules/negotiator": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.1.0.tgz",
+ "integrity": "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==",
+ "license": "MIT",
+ "dependencies": {
+ "content-type": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/node-abi": {
+ "version": "3.101.0",
+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.101.0.tgz",
+ "integrity": "sha512-bkb/RkuWCE64eWu1PCh3Fu2pGc9mKRs+kOE+FU2bGHRYlQa86/D321DSATV54AsCQMKz3/xSt9sRgraZTpqdhQ==",
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.3.5"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/node-abi/node_modules/semver": {
+ "version": "7.8.6",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz",
+ "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.63",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.63.tgz",
+ "integrity": "sha512-6li2QanLsAXpIH2R6j77MzRyvOyrvdTqlKtO4CgBdHGNvN99ZZfyxszHc5o5+IZBWD5u6Hzwg83JoGXmqZNG9Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/nodemailer": {
+ "version": "10.3.1",
+ "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-10.3.1.tgz",
+ "integrity": "sha512-uF0AFsJC07Y1vdW7p580DKAnh7rAO+4UPSSB3mDCPNDufoiaOebV6JmrzpxB14OjEEEiBsNdYoM2Y+fN8M7BBA==",
+ "license": "MIT-0",
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/object-inspect": {
+ "version": "1.13.4",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object-path": {
+ "version": "0.11.8",
+ "resolved": "https://registry.npmjs.org/object-path/-/object-path-0.11.8.tgz",
+ "integrity": "sha512-YJjNZrlXJFM42wTBn6zgOJVar9KFJvzx6sTWDte8sWZF//cnjl0BxHNpfZx+ZffXX63A9q0b1zsFiBX4g4X5KA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10.12.0"
+ }
+ },
+ "node_modules/on-exit-leak-free": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz",
+ "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/on-finished": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.2.tgz",
+ "integrity": "sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ==",
+ "license": "MIT",
+ "dependencies": {
+ "ee-first": "1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+ "license": "ISC",
+ "dependencies": {
+ "wrappy": "1"
+ }
+ },
+ "node_modules/outdent": {
+ "version": "0.8.0",
+ "resolved": "https://registry.npmjs.org/outdent/-/outdent-0.8.0.tgz",
+ "integrity": "sha512-KiOAIsdpUTcAXuykya5fnVVT+/5uS0Q1mrkRHcF89tpieSmY33O/tmc54CqwA+bfhbtEfZUNLHaPUiB9X3jt1A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/p-limit": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-5.0.0.tgz",
+ "integrity": "sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/package-manager-detector": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.6.0.tgz",
+ "integrity": "sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/parse-srcset": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/parse-srcset/-/parse-srcset-1.0.2.tgz",
+ "integrity": "sha512-/2qh0lav6CmI15FzA3i/2Bzk2zCgQhGMkvhOhKNcBVQ1ldgpbfiNTVslmooUmWJcADi1f1kIeynbDRVzNlfR6Q==",
+ "license": "MIT"
+ },
+ "node_modules/parseley": {
+ "version": "0.13.1",
+ "resolved": "https://registry.npmjs.org/parseley/-/parseley-0.13.1.tgz",
+ "integrity": "sha512-uNBJZzmb60l6p6VWLTmevizNAGnE0xoSf1n0B4q3ntegDNzcS68NRCcBDZTcyXHxt2XhBChsCuqj4M+nChvE/A==",
+ "license": "MIT",
+ "dependencies": {
+ "leac": "^0.7.0",
+ "peberminta": "^0.10.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/KillyMXI"
+ }
+ },
+ "node_modules/parseurl": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/path-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-to-regexp": {
+ "version": "8.4.2",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz",
+ "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/pathe": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/peberminta": {
+ "version": "0.10.0",
+ "resolved": "https://registry.npmjs.org/peberminta/-/peberminta-0.10.0.tgz",
+ "integrity": "sha512-80B2AsU+I4Qdb0ZAPSfe9UwvGzwkM37IKIFEvdS3D/3Ndgv2bsuJ0bfG1+iEYO+l7Gfd4EUJmuRyq7efLgRMzQ==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/KillyMXI"
+ }
+ },
+ "node_modules/perfect-debounce": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz",
+ "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/perfect-freehand": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/perfect-freehand/-/perfect-freehand-1.2.3.tgz",
+ "integrity": "sha512-bHZSfqDHGNlPpgH2yxXgPHlQSPpEbo+qg7li0M78J9vNAi2yjwLeA4x79BEQhX44lEWpCLSFCeRZwpw0niiXPA==",
+ "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": "4.0.4",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
+ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/pino": {
+ "version": "10.3.1",
+ "resolved": "https://registry.npmjs.org/pino/-/pino-10.3.1.tgz",
+ "integrity": "sha512-r34yH/GlQpKZbU1BvFFqOjhISRo1MNx1tWYsYvmj6KIRHSPMT2+yHOEb1SG6NMvRoHRF0a07kCOox/9yakl1vg==",
+ "license": "MIT",
+ "dependencies": {
+ "@pinojs/redact": "^0.4.0",
+ "atomic-sleep": "^1.0.0",
+ "on-exit-leak-free": "^2.1.0",
+ "pino-abstract-transport": "^3.0.0",
+ "pino-std-serializers": "^7.0.0",
+ "process-warning": "^5.0.0",
+ "quick-format-unescaped": "^4.0.3",
+ "real-require": "^0.2.0",
+ "safe-stable-stringify": "^2.3.1",
+ "sonic-boom": "^4.0.1",
+ "thread-stream": "^4.0.0"
+ },
+ "bin": {
+ "pino": "bin.js"
+ }
+ },
+ "node_modules/pino-abstract-transport": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-3.0.0.tgz",
+ "integrity": "sha512-wlfUczU+n7Hy/Ha5j9a/gZNy7We5+cXp8YL+X+PG8S0KXxw7n/JXA3c46Y0zQznIJ83URJiwy7Lh56WLokNuxg==",
+ "license": "MIT",
+ "dependencies": {
+ "split2": "^4.0.0"
+ }
+ },
+ "node_modules/pino-std-serializers": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-7.1.0.tgz",
+ "integrity": "sha512-BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw==",
+ "license": "MIT"
+ },
+ "node_modules/pkg-types": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.0.tgz",
+ "integrity": "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "confbox": "^0.2.2",
+ "exsolve": "^1.0.7",
+ "pathe": "^2.0.3"
+ }
+ },
+ "node_modules/pluralize": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz",
+ "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.31",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.31.tgz",
+ "integrity": "sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg==",
+ "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-discard-duplicates": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-7.0.2.tgz",
+ "integrity": "sha512-eTonaQvPZ/3i1ASDHOKkYwAybiM45zFIc7KXils4mQmHLqIswXD9XNOKEVxtTFnsmwYzF66u4LMgSr0abDlh5w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.12.0 || ^20.9.0 || >=22.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.4.32"
+ }
+ },
+ "node_modules/postcss-discard-empty": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-7.0.1.tgz",
+ "integrity": "sha512-cFrJKZvcg/uxB6Ijr4l6qmn3pXQBna9zyrPC+sK0zjbkDUZew+6xDltSF7OeB7rAtzaaMVYSdbod+sZOCWnMOg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.12.0 || ^20.9.0 || >=22.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.4.32"
+ }
+ },
+ "node_modules/postcss-minify-selectors": {
+ "version": "7.0.5",
+ "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-7.0.5.tgz",
+ "integrity": "sha512-x2/IvofHcdIrAm9Q+p06ZD1h6FPcQ32WtCRVodJLDR+WMn8EVHI1kvLxZuGKz/9EY5nAmI6lIQIrpo4tBy5+ug==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cssesc": "^3.0.0",
+ "postcss-selector-parser": "^7.1.0"
+ },
+ "engines": {
+ "node": "^18.12.0 || ^20.9.0 || >=22.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.4.32"
+ }
+ },
+ "node_modules/postcss-nested": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-7.0.2.tgz",
+ "integrity": "sha512-5osppouFc0VR9/VYzYxO03VaDa3e8F23Kfd6/9qcZTUI8P58GIYlArOET2Wq0ywSl2o2PjELhYOFI4W7l5QHKw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "postcss-selector-parser": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=18.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.2.14"
+ }
+ },
+ "node_modules/postcss-normalize-whitespace": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-7.0.1.tgz",
+ "integrity": "sha512-vsbgFHMFQrJBJKrUFJNZ2pgBeBkC2IvvoHjz1to0/0Xk7sII24T0qFOiJzG6Fu3zJoq/0yI4rKWi7WhApW+EFA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "postcss-value-parser": "^4.2.0"
+ },
+ "engines": {
+ "node": "^18.12.0 || ^20.9.0 || >=22.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.4.32"
+ }
+ },
+ "node_modules/postcss-selector-parser": {
+ "version": "7.1.6",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.6.tgz",
+ "integrity": "sha512-7qASPzhKF2l2KLboRZux8CCTRMdGiV08vWmyKzPz22qZ7ZjQBOeY7rNzNoCLSUiftJ7HUq0GERHmxw/t0dCdMw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cssesc": "^3.0.0",
+ "util-deprecate": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/postcss-value-parser": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/prebuild-install": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz",
+ "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==",
+ "deprecated": "No longer maintained. Please contact the author of the relevant native addon; alternatives are available.",
+ "license": "MIT",
+ "dependencies": {
+ "detect-libc": "^2.0.0",
+ "expand-template": "^2.0.3",
+ "github-from-package": "0.0.0",
+ "minimist": "^1.2.3",
+ "mkdirp-classic": "^0.5.3",
+ "napi-build-utils": "^2.0.0",
+ "node-abi": "^3.3.0",
+ "pump": "^3.0.0",
+ "rc": "^1.2.7",
+ "simple-get": "^4.0.0",
+ "tar-fs": "^2.0.0",
+ "tunnel-agent": "^0.6.0"
+ },
+ "bin": {
+ "prebuild-install": "bin.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/prettier": {
+ "version": "3.9.10",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.10.tgz",
+ "integrity": "sha512-skGHTH1Yb9QvaTC4hWnRTzEYtCpApF0UMBPz+t/0ZPzP8ihefo/btKd+QA7pUE0fEwA1SbS/NmhyEcstdXOIdA==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "prettier": "bin/prettier.cjs"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/prettier/prettier?sponsor=1"
+ }
+ },
+ "node_modules/process-warning": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-5.1.1.tgz",
+ "integrity": "sha512-oCkNVj4OKnKEcocVBcDfiIugN1/cE6rgfT3nCtzeqZPA8+rIxMaQ0xXzIkGP8Gj2qUaP1UR7uhJ1VD8lUCpzCg==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fastify"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fastify"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/proxy-addr": {
+ "version": "2.0.8",
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz",
+ "integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==",
+ "license": "MIT",
+ "dependencies": {
+ "forwarded": "0.2.0",
+ "ipaddr.js": "1.9.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/proxy-compare": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/proxy-compare/-/proxy-compare-3.0.1.tgz",
+ "integrity": "sha512-V9plBAt3qjMlS1+nC8771KNf6oJ12gExvaxnNzN/9yVRLdTv/lc+oJlnSzrdYDAvBfTStPCoiaCOTmTs0adv7Q==",
+ "license": "MIT"
+ },
+ "node_modules/proxy-memoize": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/proxy-memoize/-/proxy-memoize-3.0.1.tgz",
+ "integrity": "sha512-VDdG/VYtOgdGkWJx7y0o7p+zArSf2383Isci8C+BP3YXgMYDoPd3cCBjw0JdWb6YBb9sFiOPbAADDVTPJnh+9g==",
+ "license": "MIT",
+ "dependencies": {
+ "proxy-compare": "^3.0.0"
+ }
+ },
+ "node_modules/pump": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz",
+ "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==",
+ "license": "MIT",
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ },
+ "node_modules/punycode.js": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz",
+ "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/qs": {
+ "version": "6.17.1",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.17.1.tgz",
+ "integrity": "sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "es-define-property": "^1.0.1",
+ "side-channel": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/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/quick-format-unescaped": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz",
+ "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==",
+ "license": "MIT"
+ },
+ "node_modules/range-parser": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz",
+ "integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/raw-body": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz",
+ "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.7.0",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/rc": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
+ "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
+ "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
+ "dependencies": {
+ "deep-extend": "^0.6.0",
+ "ini": "~1.3.0",
+ "minimist": "^1.2.0",
+ "strip-json-comments": "~2.0.1"
+ },
+ "bin": {
+ "rc": "cli.js"
+ }
+ },
+ "node_modules/react": {
+ "version": "19.3.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz",
+ "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "19.3.1",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz",
+ "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==",
+ "license": "MIT",
+ "dependencies": {
+ "scheduler": "^0.28.0"
+ },
+ "peerDependencies": {
+ "react": "^19.3.1"
+ }
+ },
+ "node_modules/react-refresh": {
+ "version": "0.17.0",
+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",
+ "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/readable-stream": {
+ "version": "3.6.2",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/readdirp": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",
+ "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 14.18.0"
+ },
+ "funding": {
+ "type": "individual",
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/real-require": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz",
+ "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 12.13.0"
+ }
+ },
+ "node_modules/require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/resolve-pkg-maps": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",
+ "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"
+ }
+ },
+ "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/rollup": {
+ "version": "4.67.4",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.67.4.tgz",
+ "integrity": "sha512-Lsv3oKcz5jgOQJej/p7nfwbVEdAbDT+z6OPf/SCdI+nF+q2ENp0pTKT35ZwXAmH8g45mfrIiJeEyAqKYSYoL9Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.10"
+ },
+ "bin": {
+ "rollup": "dist/bin/rollup"
+ },
+ "engines": {
+ "node": ">=18.0.0",
+ "npm": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@napi-rs/lzma-linux-x64-gnu": "1.5.1",
+ "@rollup/rollup-android-arm-eabi": "4.67.4",
+ "@rollup/rollup-android-arm64": "4.67.4",
+ "@rollup/rollup-android-x64": "4.67.4",
+ "@rollup/rollup-darwin-arm64": "4.67.4",
+ "@rollup/rollup-darwin-x64": "4.67.4",
+ "@rollup/rollup-freebsd-arm64": "4.67.4",
+ "@rollup/rollup-freebsd-x64": "4.67.4",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.67.4",
+ "@rollup/rollup-linux-arm-musleabihf": "4.67.4",
+ "@rollup/rollup-linux-arm64-gnu": "4.67.4",
+ "@rollup/rollup-linux-arm64-musl": "4.67.4",
+ "@rollup/rollup-linux-loong64-gnu": "4.67.4",
+ "@rollup/rollup-linux-loong64-musl": "4.67.4",
+ "@rollup/rollup-linux-ppc64-gnu": "4.67.4",
+ "@rollup/rollup-linux-ppc64-musl": "4.67.4",
+ "@rollup/rollup-linux-riscv64-gnu": "4.67.4",
+ "@rollup/rollup-linux-riscv64-musl": "4.67.4",
+ "@rollup/rollup-linux-s390x-gnu": "4.67.4",
+ "@rollup/rollup-linux-x64-gnu": "4.67.4",
+ "@rollup/rollup-linux-x64-musl": "4.67.4",
+ "@rollup/rollup-openbsd-x64": "4.67.4",
+ "@rollup/rollup-openharmony-arm64": "4.67.4",
+ "@rollup/rollup-win32-arm64-msvc": "4.67.4",
+ "@rollup/rollup-win32-ia32-msvc": "4.67.4",
+ "@rollup/rollup-win32-x64-gnu": "4.67.4",
+ "@rollup/rollup-win32-x64-msvc": "4.67.4",
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/router": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",
+ "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.4.0",
+ "depd": "^2.0.0",
+ "is-promise": "^4.0.0",
+ "parseurl": "^1.3.3",
+ "path-to-regexp": "^8.0.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/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/rxjs": {
+ "version": "7.8.2",
+ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz",
+ "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.1.0"
+ }
+ },
+ "node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
+ "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/safe-stable-stringify": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz",
+ "integrity": "sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+ "license": "MIT"
+ },
+ "node_modules/sanitize-html": {
+ "version": "2.18.1",
+ "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-2.18.1.tgz",
+ "integrity": "sha512-2X5lC8fYla8YaT8g73Nj+HcLWXan5dLyCWLgVvaOmfw7JI78IRsyNtIDytTHdn7hBQbIkCah7Zbmd5jabzeDig==",
+ "license": "MIT",
+ "dependencies": {
+ "escape-string-regexp": "^4.0.0",
+ "htmlparser2": "^12.0.0",
+ "is-plain-object": "^5.1.0",
+ "launder": "^1.7.2",
+ "parse-srcset": "^1.0.2",
+ "postcss": "^8.5.27"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/sanitize-html/node_modules/dom-serializer": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-3.1.1.tgz",
+ "integrity": "sha512-4MEa38/QexBob6gFNwu+EGdWvhJ1OKuNwdYY3Y3NyeWDQfnGeDYQUDfIRzWu5B5gsv03so2Uxd28YC6zrsx3Lw==",
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^3.0.0",
+ "domhandler": "^6.0.0",
+ "entities": "^8.0.0"
+ },
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
+ }
+ },
+ "node_modules/sanitize-html/node_modules/domelementtype": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-3.0.0.tgz",
+ "integrity": "sha512-umCQid3jKbDmVjx8jGaW7uUykm4DEUeyV21hPxNMo2nV955DhUThwqyOIDtreepP31hl84X7G5U9ZfsWvIB3Pg==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fb55"
+ }
+ ],
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=20.19.0"
+ }
+ },
+ "node_modules/sanitize-html/node_modules/domhandler": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-6.0.1.tgz",
+ "integrity": "sha512-gYzvtM72ZtxQO0T048kd6HWSbbGCNOUwcnfQ01cqIJ4X2IYKFFHZ5mKvrQETcFXxsRObZulDaKmy//R7TPtsBg==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "domelementtype": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/fb55/domhandler?sponsor=1"
+ }
+ },
+ "node_modules/sanitize-html/node_modules/domutils": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/domutils/-/domutils-4.0.2.tgz",
+ "integrity": "sha512-qI4JLRKnSzqFqr7hAlS5xQDusBCjKSEG4t4+7aNrIQMHBcsC2TGEhuyABJdYkgSewL57PNLYEiibY2iPKhKpaA==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "dom-serializer": "^3.0.0",
+ "domelementtype": "^3.0.0",
+ "domhandler": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/fb55/domutils?sponsor=1"
+ }
+ },
+ "node_modules/sanitize-html/node_modules/entities": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-8.1.0.tgz",
+ "integrity": "sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/sanitize-html/node_modules/htmlparser2": {
+ "version": "12.0.0",
+ "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-12.0.0.tgz",
+ "integrity": "sha512-Tz7u1i95/g2x2jz81+x0FBVhBhY5aRTvD3tXXdFaljuNdzDLJ8UGNRrTcj2cgQvAg3iW/h77Fz15nLW0L0CrZw==",
+ "funding": [
+ "https://github.com/fb55/htmlparser2?sponsor=1",
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fb55"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^3.0.0",
+ "domhandler": "^6.0.0",
+ "domutils": "^4.0.2",
+ "entities": "^8.0.0"
+ },
+ "engines": {
+ "node": ">=20.19.0"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.28.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz",
+ "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==",
+ "license": "MIT"
+ },
+ "node_modules/selderee": {
+ "version": "0.12.0",
+ "resolved": "https://registry.npmjs.org/selderee/-/selderee-0.12.0.tgz",
+ "integrity": "sha512-b1YMh3+DHZp59DLna3qVwQ5iOla/nrI6mLBNW02XxU77M3046Df6VLkoaJyFz20VsGIG5kkp+FK0kg4K4HnUFw==",
+ "license": "MIT",
+ "dependencies": {
+ "parseley": "~0.13.1"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/KillyMXI"
+ }
+ },
+ "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/send": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz",
+ "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.4.3",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "etag": "^1.8.1",
+ "fresh": "^2.0.0",
+ "http-errors": "^2.0.1",
+ "mime-types": "^3.0.2",
+ "ms": "^2.1.3",
+ "on-finished": "^2.4.1",
+ "range-parser": "^1.2.1",
+ "statuses": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/serve-static": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz",
+ "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",
+ "license": "MIT",
+ "dependencies": {
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "parseurl": "^1.3.3",
+ "send": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/setprototypeof": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
+ "license": "ISC"
+ },
+ "node_modules/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/side-channel": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz",
+ "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.4",
+ "side-channel-list": "^1.0.1",
+ "side-channel-map": "^1.0.1",
+ "side-channel-weakmap": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-list": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-map": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-weakmap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3",
+ "side-channel-map": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/simple-concat": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
+ "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
+ "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/simple-get": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
+ "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
+ "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": {
+ "decompress-response": "^6.0.0",
+ "once": "^1.3.1",
+ "simple-concat": "^1.0.0"
+ }
+ },
+ "node_modules/sisteransi": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
+ "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/slice-ansi": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz",
+ "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "astral-regex": "^2.0.0",
+ "is-fullwidth-code-point": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"
+ }
+ },
+ "node_modules/smart-buffer": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
+ "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6.0.0",
+ "npm": ">= 3.0.0"
+ }
+ },
+ "node_modules/socks": {
+ "version": "2.8.9",
+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.9.tgz",
+ "integrity": "sha512-LJhUYUvItdQ0LkJTmPeaEObWXAqFyfmP85x0tch/ez9cahmhlBBLbIqDFnvBnUJGagb0JbIQrkBs1wJ+yRYpEw==",
+ "license": "MIT",
+ "dependencies": {
+ "ip-address": "^10.1.1",
+ "smart-buffer": "^4.2.0"
+ },
+ "engines": {
+ "node": ">= 10.0.0",
+ "npm": ">= 3.0.0"
+ }
+ },
+ "node_modules/sonic-boom": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.2.1.tgz",
+ "integrity": "sha512-w6AxtubXa2wTXAUsZMMWERrsIRAdrK0Sc+FUytWvYAhBJLyuI4llrMIC1DtlNSdI99EI86KZum2MMq3EAZlF9Q==",
+ "license": "MIT",
+ "dependencies": {
+ "atomic-sleep": "^1.0.0"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz",
+ "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/split2": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz",
+ "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">= 10.x"
+ }
+ },
+ "node_modules/statuses": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/string_decoder": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-json-comments": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
+ "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/supports-color": {
+ "version": "8.1.1",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
+ "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/supports-color?sponsor=1"
+ }
+ },
+ "node_modules/table": {
+ "version": "6.9.0",
+ "resolved": "https://registry.npmjs.org/table/-/table-6.9.0.tgz",
+ "integrity": "sha512-9kY+CygyYM6j02t5YFHbNz2FN5QmYGv9zAjVp4lCDjlCw7amdckXlEt/bjMhUIfj4ThGRE4gCUH5+yGnNuPo5A==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "ajv": "^8.0.1",
+ "lodash.truncate": "^4.4.2",
+ "slice-ansi": "^4.0.0",
+ "string-width": "^4.2.3",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
+ "node_modules/tar-fs": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.5.tgz",
+ "integrity": "sha512-OboTd8mmMhZDNPV+UjQcK9yKAatXu2aJ+r1w4im1Otd4M4fl2hwvdoXUxIYHFTHWK/3y3FarBP70v3vwmGlOxw==",
+ "license": "MIT",
+ "dependencies": {
+ "chownr": "^1.1.1",
+ "mkdirp-classic": "^0.5.2",
+ "pump": "^3.0.0",
+ "tar-stream": "^2.1.4"
+ }
+ },
+ "node_modules/tar-stream": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
+ "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
+ "license": "MIT",
+ "dependencies": {
+ "bl": "^4.0.3",
+ "end-of-stream": "^1.4.1",
+ "fs-constants": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^3.1.1"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/thread-stream": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-4.2.1.tgz",
+ "integrity": "sha512-Stg6edJXC/6/xqGwSXwFokrUhChJ18amEjpKH89WrQQ0oVFDF+pUUcTpiwWhFUrE89Vf16FBOlwhaw+lescxMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "real-require": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/thread-stream/node_modules/real-require": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/real-require/-/real-require-1.0.0.tgz",
+ "integrity": "sha512-P4nbQYQfePJxRSmY+v/KINxVucm4NF3p3s7pJveMTtom52FR4YGltUQLB8idDXwDDWW+eYrWDFbuzUnjoWHF7g==",
+ "license": "MIT"
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.17",
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",
+ "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.4"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/tlds": {
+ "version": "1.261.0",
+ "resolved": "https://registry.npmjs.org/tlds/-/tlds-1.261.0.tgz",
+ "integrity": "sha512-QXqwfEl9ddlGBaRFXIvNKK6OhipSiLXuRuLJX5DErz0o0Q0rYxulWLdFryTkV5PkdZct5iMInwYEGe/eR++1AA==",
+ "license": "MIT",
+ "bin": {
+ "tlds": "bin.js"
+ }
+ },
+ "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/toidentifier": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "node_modules/tree-kill": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz",
+ "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "tree-kill": "cli.js"
+ }
+ },
+ "node_modules/ts-evaluator": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/ts-evaluator/-/ts-evaluator-1.2.0.tgz",
+ "integrity": "sha512-ncSGek1p92bj2ifB7s9UBgryHCkU9vwC5d+Lplt12gT9DH+e41X8dMoHRQjIMeAvyG7j9dEnuHmwgOtuRIQL+Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-colors": "^4.1.3",
+ "crosspath": "^2.0.0",
+ "object-path": "^0.11.8"
+ },
+ "engines": {
+ "node": ">=14.19.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/wessberg/ts-evaluator?sponsor=1"
+ },
+ "peerDependencies": {
+ "jsdom": ">=14.x || >=15.x || >=16.x || >=17.x || >=18.x || >=19.x || >=20.x || >=21.x || >=22.x",
+ "typescript": ">=3.2.x || >= 4.x || >= 5.x"
+ },
+ "peerDependenciesMeta": {
+ "jsdom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/ts-morph": {
+ "version": "28.0.0",
+ "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-28.0.0.tgz",
+ "integrity": "sha512-Wp3tnZ2bzwxyTZMtgWVzXDfm7lB1Drz+y9DmmYH/L702PQhPyVrp3pkou3yIz4qjS14GY9kcpmLiOOMvl8oG1g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@ts-morph/common": "~0.29.0",
+ "code-block-writer": "^13.0.3"
+ }
+ },
+ "node_modules/ts-pattern": {
+ "version": "5.9.0",
+ "resolved": "https://registry.npmjs.org/ts-pattern/-/ts-pattern-5.9.0.tgz",
+ "integrity": "sha512-6s5V71mX8qBUmlgbrfL33xDUwO0fq48rxAu2LBE11WBeGdpCPOsXksQbZJHvHwhrd3QjUusd3mAOM5Gg0mFBLg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tslib": {
+ "version": "2.9.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz",
+ "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==",
+ "license": "0BSD"
+ },
+ "node_modules/tunnel-agent": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
+ "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "safe-buffer": "^5.0.1"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/type-is": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz",
+ "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==",
+ "license": "MIT",
+ "dependencies": {
+ "content-type": "^2.0.0",
+ "media-typer": "^1.1.0",
+ "mime-types": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "5.9.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/uc.micro": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz",
+ "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==",
+ "license": "MIT"
+ },
+ "node_modules/undici-types": {
+ "version": "8.9.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz",
+ "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/universalify": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",
+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/unpipe": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz",
+ "integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==",
+ "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/uqr": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/uqr/-/uqr-0.1.3.tgz",
+ "integrity": "sha512-0rjE8iEJe4YmT9TOhwsZtqCMRLc5DXZUI2UEYUUg63ikBkqqE5EYWaI0etFe/5KUcmcYwLih2RND1kq+hrUJXA==",
+ "license": "MIT"
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+ "license": "MIT"
+ },
+ "node_modules/vary": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/vite": {
+ "version": "6.4.5",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.5.tgz",
+ "integrity": "sha512-4enwjFfi4IwtEh0w+jPzpLVOFQiPHmmzPxcHXQOyEur47o6u0jE573DmGpjA+7irXoMLYRZD5ZaFUEneS3abPg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "esbuild": "^0.25.0",
+ "fdir": "^6.4.4",
+ "picomatch": "^4.0.2",
+ "postcss": "^8.5.3",
+ "rollup": "^4.34.9",
+ "tinyglobby": "^0.2.13"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
+ "jiti": ">=1.21.0",
+ "less": "*",
+ "lightningcss": "^1.21.0",
+ "sass": "*",
+ "sass-embedded": "*",
+ "stylus": "*",
+ "sugarss": "*",
+ "terser": "^5.16.0",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "jiti": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "lightningcss": {
+ "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/wordwrapjs": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-5.1.1.tgz",
+ "integrity": "sha512-0yweIbkINJodk27gX9LBGMzyQdBDan3s/dEAiwBOj+Mf0PPyWL6/rikalkv8EeD0E8jm4o5RXEOrFTP3NXbhJg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.17"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+ "license": "ISC"
+ },
+ "node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/yargs": {
+ "version": "17.7.2",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^8.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.3",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^21.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yargs-parser": {
+ "version": "21.1.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yocto-queue": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.2.2.tgz",
+ "integrity": "sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..8f653ac
--- /dev/null
+++ b/package.json
@@ -0,0 +1,45 @@
+{
+ "name": "syncova-ticket",
+ "version": "1.0.0",
+ "private": true,
+ "type": "module",
+ "scripts": {
+ "dev": "concurrently -k \"node --watch server/index.js\" \"vite --host 127.0.0.1\"",
+ "start": "node server/index.js",
+ "build": "panda codegen && tsc --noEmit && vite build",
+ "test": "node --test tests/service.test.js",
+ "prepare": "panda codegen",
+ "test:docker": "node tests/docker-smoke.mjs",
+ "test:image": "node tests/image-smoke.mjs"
+ },
+ "dependencies": {
+ "@ark-ui/react": "^5.0.0",
+ "better-sqlite3": "^11.10.0",
+ "cron-parser": "^5.10.3",
+ "dotenv": "^18.0.9",
+ "express": "^5.1.0",
+ "html-to-text": "^10.0.1",
+ "imapflow": "^1.0.0",
+ "lucide-react": "^0.468.0",
+ "mailparser": "^3.7.0",
+ "nodemailer": "^10.3.1",
+ "react": "^19.0.0",
+ "react-dom": "^19.0.0",
+ "sanitize-html": "^2.17.5"
+ },
+ "devDependencies": {
+ "@pandacss/dev": "^1.0.0",
+ "@types/node": "^26.6.6",
+ "@types/react": "^19.0.0",
+ "@types/react-dom": "^19.0.0",
+ "@vitejs/plugin-react": "^4.3.0",
+ "concurrently": "^9.0.0",
+ "prettier": "^3.9.10",
+ "typescript": "^5.7.0",
+ "vite": "^6.0.0"
+ },
+ "overrides": {
+ "postcss-selector-parser": "7.1.6",
+ "minimatch": "11.0.1"
+ }
+}
diff --git a/panda.config.ts b/panda.config.ts
new file mode 100644
index 0000000..4359eda
--- /dev/null
+++ b/panda.config.ts
@@ -0,0 +1,92 @@
+import { defineConfig } from '@pandacss/dev'
+import { red } from './src/theme/colors/red'
+import { green } from './src/theme/colors/green'
+import { slotRecipes } from './src/theme/recipes'
+import { recipes } from './src/theme/recipes'
+import { conditions } from './src/theme/conditions'
+import { globalCss } from './src/theme/global-css'
+import { keyframes } from './src/theme/keyframes'
+import { layerStyles } from './src/theme/layer-styles'
+import { textStyles } from './src/theme/text-styles'
+import { colors } from './src/theme/tokens/colors'
+import { durations } from './src/theme/tokens/durations'
+import { shadows } from './src/theme/tokens/shadows'
+import { zIndex } from './src/theme/tokens/z-index'
+import { animationStyles } from './src/theme/animation-styles'
+import { violet } from './src/theme/colors/violet'
+import { neutral } from './src/theme/colors/neutral'
+export default defineConfig({
+ preflight: true,
+ include: ['./src/**/*.{ts,tsx}'],
+ outdir: 'styled-system',
+ jsxFramework: 'react',
+ theme: {
+ extend: {
+ semanticTokens: {
+ colors: {
+ red: red,
+ green: green,
+ fg: {
+ default: {
+ value: {
+ _light: '{colors.gray.12}',
+ _dark: '{colors.gray.12}',
+ },
+ },
+ muted: {
+ value: {
+ _light: '{colors.gray.11}',
+ _dark: '{colors.gray.11}',
+ },
+ },
+ subtle: {
+ value: {
+ _light: '{colors.gray.10}',
+ _dark: '{colors.gray.10}',
+ },
+ },
+ },
+ border: {
+ value: {
+ _light: '{colors.gray.4}',
+ _dark: '{colors.gray.4}',
+ },
+ },
+ error: {
+ value: {
+ _light: '{colors.red.9}',
+ _dark: '{colors.red.9}',
+ },
+ },
+ violet: violet,
+ gray: neutral,
+ },
+ shadows: shadows,
+ radii: {
+ l1: {
+ value: '2px',
+ },
+ l2: {
+ value: '3px',
+ },
+ l3: {
+ value: '4px',
+ },
+ },
+ },
+ animationStyles: animationStyles,
+ recipes: recipes,
+ slotRecipes: slotRecipes,
+ keyframes: keyframes,
+ layerStyles: layerStyles,
+ textStyles: textStyles,
+ tokens: {
+ colors: colors,
+ durations: durations,
+ zIndex: zIndex,
+ },
+ },
+ },
+ globalCss: globalCss,
+ conditions: conditions,
+})
diff --git a/park-init.json b/park-init.json
new file mode 100644
index 0000000..5ecd814
--- /dev/null
+++ b/park-init.json
@@ -0,0 +1,184 @@
+{
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "__init",
+ "type": "registry:theme",
+ "dependencies": ["@pandacss/dev"],
+ "files": [
+ {
+ "content": "export const recipes = {}\nexport const slotRecipes = {}\n",
+ "type": "registry:recipe",
+ "path": "index.ts"
+ },
+ {
+ "content": "import { defineTokens } from '@pandacss/dev'\n\nconst black = defineTokens.colors({\n DEFAULT: { value: '#000000' },\n a1: { value: 'rgba(0, 0, 0, 0.05)' },\n a2: { value: 'rgba(0, 0, 0, 0.1)' },\n a3: { value: 'rgba(0, 0, 0, 0.15)' },\n a4: { value: 'rgba(0, 0, 0, 0.2)' },\n a5: { value: 'rgba(0, 0, 0, 0.3)' },\n a6: { value: 'rgba(0, 0, 0, 0.4)' },\n a7: { value: 'rgba(0, 0, 0, 0.5)' },\n a8: { value: 'rgba(0, 0, 0, 0.6)' },\n a9: { value: 'rgba(0, 0, 0, 0.7)' },\n a10: { value: 'rgba(0, 0, 0, 0.8)' },\n a11: { value: 'rgba(0, 0, 0, 0.9)' },\n a12: { value: 'rgba(0, 0, 0, 0.95)' },\n})\n\nconst white = defineTokens.colors({\n DEFAULT: { value: '#ffffff' },\n a1: { value: 'rgba(255, 255, 255, 0.05)' },\n a2: { value: 'rgba(255, 255, 255, 0.1)' },\n a3: { value: 'rgba(255, 255, 255, 0.15)' },\n a4: { value: 'rgba(255, 255, 255, 0.2)' },\n a5: { value: 'rgba(255, 255, 255, 0.3)' },\n a6: { value: 'rgba(255, 255, 255, 0.4)' },\n a7: { value: 'rgba(255, 255, 255, 0.5)' },\n a8: { value: 'rgba(255, 255, 255, 0.6)' },\n a9: { value: 'rgba(255, 255, 255, 0.7)' },\n a10: { value: 'rgba(255, 255, 255, 0.8)' },\n a11: { value: 'rgba(255, 255, 255, 0.9)' },\n a12: { value: 'rgba(255, 255, 255, 0.95)' },\n})\n\nexport const colors = { black, white }\n",
+ "type": "registry:theme",
+ "path": "tokens/colors.ts"
+ },
+ {
+ "content": "import { defineTokens } from '@pandacss/dev'\n\nexport const durations = defineTokens.durations({\n fastest: { value: '50ms' },\n faster: { value: '100ms' },\n fast: { value: '150ms' },\n normal: { value: '200ms' },\n slow: { value: '250ms' },\n slower: { value: '300ms' },\n slowest: { value: '400ms' },\n})\n",
+ "type": "registry:theme",
+ "path": "tokens/durations.ts"
+ },
+ {
+ "content": "import { defineSemanticTokens } from '@pandacss/dev'\n\nexport const shadows = defineSemanticTokens.shadows({\n xs: {\n value: {\n _light: '0px 1px 2px {colors.gray.a6}, 0px 0px 1px {colors.gray.a7}',\n _dark: '0px 1px 1px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',\n },\n },\n sm: {\n value: {\n _light: '0px 2px 4px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',\n _dark: '0px 2px 4px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',\n },\n },\n md: {\n value: {\n _light: '0px 4px 8px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',\n _dark: '0px 4px 8px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',\n },\n },\n lg: {\n value: {\n _light: '0px 8px 16px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',\n _dark: '0px 8px 16px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',\n },\n },\n xl: {\n value: {\n _light: '0px 16px 24px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',\n _dark: '0px 16px 24px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',\n },\n },\n '2xl': {\n value: {\n _light: '0px 24px 40px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',\n _dark: '0px 24px 40px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',\n },\n },\n inset: {\n value: {\n _light: 'inset 8px 0 12px -8px {colors.gray.a4}',\n _dark: 'inset 8px 0 12px -8px {colors.black.a6}',\n },\n },\n})\n",
+ "type": "registry:theme",
+ "path": "tokens/shadows.ts"
+ },
+ {
+ "content": "import { defineTokens } from '@pandacss/dev'\n\nexport const zIndex = defineTokens.zIndex({\n hide: {\n value: -1,\n },\n base: {\n value: 0,\n },\n docked: {\n value: 10,\n },\n dropdown: {\n value: 1000,\n },\n sticky: {\n value: 1100,\n },\n banner: {\n value: 1200,\n },\n overlay: {\n value: 1300,\n },\n modal: {\n value: 1400,\n },\n popover: {\n value: 1500,\n },\n skipLink: {\n value: 1600,\n },\n toast: {\n value: 1700,\n },\n tooltip: {\n value: 1800,\n },\n})\n",
+ "type": "registry:theme",
+ "path": "tokens/z-index.ts"
+ },
+ {
+ "content": "import { defineAnimationStyles } from '@pandacss/dev'\n\nexport const animationStyles = defineAnimationStyles({\n 'slide-fade-in': {\n value: {\n transformOrigin: 'var(--transform-origin)',\n '&[data-placement^=top]': {\n animationName: 'slide-from-bottom, fade-in',\n },\n '&[data-placement^=bottom]': {\n animationName: 'slide-from-top, fade-in',\n },\n '&[data-placement^=left]': {\n animationName: 'slide-from-right, fade-in',\n },\n '&[data-placement^=right]': {\n animationName: 'slide-from-left, fade-in',\n },\n },\n },\n 'slide-fade-out': {\n value: {\n transformOrigin: 'var(--transform-origin)',\n '&[data-placement^=top]': {\n animationName: 'slide-to-bottom, fade-out',\n },\n '&[data-placement^=bottom]': {\n animationName: 'slide-to-top, fade-out',\n },\n '&[data-placement^=left]': {\n animationName: 'slide-to-right, fade-out',\n },\n '&[data-placement^=right]': {\n animationName: 'slide-to-left, fade-out',\n },\n },\n },\n 'scale-fade-in': {\n value: {\n transformOrigin: 'var(--transform-origin)',\n animationName: 'scale-in, fade-in',\n },\n },\n 'scale-fade-out': {\n value: {\n transformOrigin: 'var(--transform-origin)',\n animationName: 'scale-out, fade-out',\n },\n },\n})\n",
+ "type": "registry:theme",
+ "path": "animation-styles.ts"
+ },
+ {
+ "content": "export const conditions = {\n extend: {\n light: ':root &, .light &',\n invalid: '&:is(:user-invalid, [data-invalid], [aria-invalid=true])',\n hover: '&:not(:disabled):hover',\n active: '&:not(:disabled):active',\n checked:\n '&:is(:checked, [data-checked], [data-state=checked], [aria-checked=true], [data-state=indeterminate])',\n on: '&:is([data-state=on])',\n pinned: '&:is([data-pinned])',\n },\n} as const\n",
+ "type": "registry:theme",
+ "path": "conditions.ts"
+ },
+ {
+ "content": "export const globalCss = {\n extend: {\n '*': {\n '--global-color-border': 'colors.border',\n '--global-color-placeholder': 'colors.fg.subtle',\n '--global-color-selection': 'colors.colorPalette.subtle.bg',\n '--global-color-focus-ring': 'colors.colorPalette.solid.bg',\n },\n html: {\n colorPalette: 'gray',\n },\n body: {\n background: 'canvas',\n color: 'fg.default',\n },\n },\n}\n",
+ "type": "registry:theme",
+ "path": "global-css.ts"
+ },
+ {
+ "content": "import { defineKeyframes } from '@pandacss/dev'\n\nexport const keyframes = defineKeyframes({\n // collapse\n 'expand-height': {\n from: { height: '0' },\n to: { height: 'var(--height)' },\n },\n 'collapse-height': {\n from: { height: 'var(--height)' },\n to: { height: '0' },\n },\n 'expand-width': {\n from: { width: '0' },\n to: { width: 'var(--width)' },\n },\n 'collapse-width': {\n from: { width: 'var(--width)' },\n to: { width: '0' },\n },\n // fade\n 'fade-in': {\n from: { opacity: '0' },\n to: { opacity: '1' },\n },\n 'fade-out': {\n from: { opacity: '1' },\n to: { opacity: '0' },\n },\n // slide from (full)\n 'slide-from-left-full': {\n from: { translate: '-100% 0' },\n to: { translate: '0 0' },\n },\n 'slide-from-right-full': {\n from: { translate: '100% 0' },\n to: { translate: '0 0' },\n },\n 'slide-from-top-full': {\n from: { translate: '0 -100%' },\n to: { translate: '0 0' },\n },\n 'slide-from-bottom-full': {\n from: { translate: '0 100%' },\n to: { translate: '0 0' },\n },\n // slide to (full)\n 'slide-to-left-full': {\n from: { translate: '0 0' },\n to: { translate: '-100% 0' },\n },\n 'slide-to-right-full': {\n from: { translate: '0 0' },\n to: { translate: '100% 0' },\n },\n 'slide-to-top-full': {\n from: { translate: '0 0' },\n to: { translate: '0 -100%' },\n },\n 'slide-to-bottom-full': {\n from: { translate: '0 0' },\n to: { translate: '0 100%' },\n },\n // slide from\n 'slide-from-top': {\n '0%': { translate: '0 -0.5rem' },\n to: { translate: '0' },\n },\n 'slide-from-bottom': {\n '0%': { translate: '0 0.5rem' },\n to: { translate: '0' },\n },\n 'slide-from-left': {\n '0%': { translate: '-0.5rem 0' },\n to: { translate: '0' },\n },\n 'slide-from-right': {\n '0%': { translate: '0.5rem 0' },\n to: { translate: '0' },\n },\n // slide to\n 'slide-to-top': {\n '0%': { translate: '0' },\n to: { translate: '0 -0.5rem' },\n },\n 'slide-to-bottom': {\n '0%': { translate: '0' },\n to: { translate: '0 0.5rem' },\n },\n 'slide-to-left': {\n '0%': { translate: '0' },\n to: { translate: '-0.5rem 0' },\n },\n 'slide-to-right': {\n '0%': { translate: '0' },\n to: { translate: '0.5rem 0' },\n },\n // scale\n 'scale-in': {\n from: { scale: '0.95' },\n to: { scale: '1' },\n },\n 'scale-out': {\n from: { scale: '1' },\n to: { scale: '0.95' },\n },\n 'bg-position': {\n from: {\n backgroundPosition: 'var(--animate-from, 1rem) 0',\n },\n to: {\n backgroundPosition: 'var(--animate-to, 0) 0',\n },\n },\n position: {\n from: {\n insetInlineStart: 'var(--animate-from-x)',\n insetBlockStart: 'var(--animate-from-y)',\n },\n to: {\n insetInlineStart: 'var(--animate-to-x)',\n insetBlockStart: 'var(--animate-to-y)',\n },\n },\n})\n",
+ "type": "registry:theme",
+ "path": "keyframes.ts"
+ },
+ {
+ "content": "import { defineLayerStyles } from '@pandacss/dev'\n\nexport const layerStyles = defineLayerStyles({\n disabled: {\n value: {\n cursor: 'not-allowed',\n opacity: '0.67',\n filter: 'grayscale(100%)',\n },\n },\n})\n",
+ "type": "registry:theme",
+ "path": "layer-styles.ts"
+ },
+ {
+ "content": "import { defineTextStyles } from '@pandacss/dev'\n\nexport const textStyles = defineTextStyles({\n xs: { value: { fontSize: 'xs', lineHeight: '1.125rem' } },\n sm: { value: { fontSize: 'sm', lineHeight: '1.25rem' } },\n md: { value: { fontSize: 'md', lineHeight: '1.5rem' } },\n lg: { value: { fontSize: 'lg', lineHeight: '1.75rem' } },\n xl: { value: { fontSize: 'xl', lineHeight: '1.875rem' } },\n '2xl': { value: { fontSize: '2xl', lineHeight: '2rem' } },\n '3xl': { value: { fontSize: '3xl', lineHeight: '2.375rem' } },\n '4xl': { value: { fontSize: '4xl', lineHeight: '2.75rem', letterSpacing: '-0.02em' } },\n '5xl': { value: { fontSize: '5xl', lineHeight: '3.75rem', letterSpacing: '-0.02em' } },\n '6xl': { value: { fontSize: '6xl', lineHeight: '4.5rem', letterSpacing: '-0.02em' } },\n '7xl': { value: { fontSize: '7xl', lineHeight: '5.75rem', letterSpacing: '-0.02em' } },\n\n label: { value: { fontSize: 'sm', lineHeight: '1.25rem', fontWeight: 'medium' } },\n})\n",
+ "type": "registry:theme",
+ "path": "text-styles.ts"
+ }
+ ],
+ "panda": {
+ "imports": [
+ {
+ "type": "registry:theme",
+ "from": "recipes",
+ "name": "slotRecipes"
+ },
+ {
+ "type": "registry:theme",
+ "from": "recipes",
+ "name": "recipes"
+ },
+ {
+ "type": "registry:theme",
+ "name": "conditions",
+ "from": "conditions"
+ },
+ {
+ "type": "registry:theme",
+ "name": "globalCss",
+ "from": "global-css"
+ },
+ {
+ "type": "registry:theme",
+ "name": "keyframes",
+ "from": "keyframes"
+ },
+ {
+ "type": "registry:theme",
+ "name": "layerStyles",
+ "from": "layer-styles"
+ },
+ {
+ "type": "registry:theme",
+ "name": "textStyles",
+ "from": "text-styles"
+ },
+ {
+ "type": "registry:theme",
+ "name": "colors",
+ "from": "tokens/colors"
+ },
+ {
+ "type": "registry:theme",
+ "name": "durations",
+ "from": "tokens/durations"
+ },
+ {
+ "type": "registry:theme",
+ "name": "shadows",
+ "from": "tokens/shadows"
+ },
+ {
+ "type": "registry:theme",
+ "name": "zIndex",
+ "from": "tokens/z-index"
+ },
+ {
+ "type": "registry:theme",
+ "name": "animationStyles",
+ "from": "animation-styles"
+ }
+ ],
+ "extension": {
+ "globalCss": "$ref:globalCss",
+ "conditions": "$ref:conditions",
+ "theme": {
+ "extend": {
+ "animationStyles": "$ref:animationStyles",
+ "recipes": "$ref:recipes",
+ "slotRecipes": "$ref:slotRecipes",
+ "keyframes": "$ref:keyframes",
+ "layerStyles": "$ref:layerStyles",
+ "textStyles": "$ref:textStyles",
+ "tokens": {
+ "colors": "$ref:colors",
+ "durations": "$ref:durations",
+ "zIndex": "$ref:zIndex"
+ },
+ "semanticTokens": {
+ "colors": {
+ "fg": {
+ "default": {
+ "value": {
+ "_light": "{colors.gray.12}",
+ "_dark": "{colors.gray.12}"
+ }
+ },
+ "muted": {
+ "value": {
+ "_light": "{colors.gray.11}",
+ "_dark": "{colors.gray.11}"
+ }
+ },
+ "subtle": {
+ "value": {
+ "_light": "{colors.gray.10}",
+ "_dark": "{colors.gray.10}"
+ }
+ }
+ },
+ "border": {
+ "value": {
+ "_light": "{colors.gray.4}",
+ "_dark": "{colors.gray.4}"
+ }
+ },
+ "error": {
+ "value": {
+ "_light": "{colors.red.9}",
+ "_dark": "{colors.red.9}"
+ }
+ }
+ },
+ "shadows": "$ref:shadows"
+ }
+ }
+ }
+ }
+ },
+ "registryDependencies": ["red", "green"]
+}
diff --git a/park-registry.json b/park-registry.json
new file mode 100644
index 0000000..25dc0a0
--- /dev/null
+++ b/park-registry.json
@@ -0,0 +1,659 @@
+[
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "red",
+ "type": "registry:color",
+ "dependencies": [
+ "@pandacss/dev"
+ ],
+ "files": [
+ {
+ "content": "import { defineSemanticTokens } from '@pandacss/dev'\n\nexport const red = defineSemanticTokens.colors({\n '1': { value: { _light: '#fffcfc', _dark: '#191111' } },\n '2': { value: { _light: '#fff7f7', _dark: '#201314' } },\n '3': { value: { _light: '#feebec', _dark: '#3b1219' } },\n '4': { value: { _light: '#ffdbdc', _dark: '#500f1c' } },\n '5': { value: { _light: '#ffcdce', _dark: '#611623' } },\n '6': { value: { _light: '#fdbdbe', _dark: '#72232d' } },\n '7': { value: { _light: '#f4a9aa', _dark: '#8c333a' } },\n '8': { value: { _light: '#eb8e90', _dark: '#b54548' } },\n '9': { value: { _light: '#e5484d', _dark: '#e5484d' } },\n '10': { value: { _light: '#dc3e42', _dark: '#ec5d5e' } },\n '11': { value: { _light: '#ce2c31', _dark: '#ff9592' } },\n '12': { value: { _light: '#641723', _dark: '#ffd1d9' } },\n a1: { value: { _light: '#ff000003', _dark: '#f4121209' } },\n a2: { value: { _light: '#ff000008', _dark: '#f22f3e11' } },\n a3: { value: { _light: '#f3000d14', _dark: '#ff173f2d' } },\n a4: { value: { _light: '#ff000824', _dark: '#fe0a3b44' } },\n a5: { value: { _light: '#ff000632', _dark: '#ff204756' } },\n a6: { value: { _light: '#f8000442', _dark: '#ff3e5668' } },\n a7: { value: { _light: '#df000356', _dark: '#ff536184' } },\n a8: { value: { _light: '#d2000571', _dark: '#ff5d61b0' } },\n a9: { value: { _light: '#db0007b7', _dark: '#fe4e54e4' } },\n a10: { value: { _light: '#d10005c1', _dark: '#ff6465eb' } },\n a11: { value: { _light: '#c40006d3', _dark: '#ff9592' } },\n a12: { value: { _light: '#55000de8', _dark: '#ffd1d9' } },\n solid: {\n bg: {\n DEFAULT: { value: { _light: '{colors.red.9}', _dark: '{colors.red.9}' } },\n hover: { value: { _light: '{colors.red.10}', _dark: '{colors.red.10}' } },\n },\n fg: { DEFAULT: { value: { _light: 'white', _dark: 'white' } } },\n },\n subtle: {\n bg: {\n DEFAULT: { value: { _light: '{colors.red.a3}', _dark: '{colors.red.a3}' } },\n hover: { value: { _light: '{colors.red.a4}', _dark: '{colors.red.a4}' } },\n active: { value: { _light: '{colors.red.a5}', _dark: '{colors.red.a5}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.red.a11}', _dark: '{colors.red.a11}' } } },\n },\n surface: {\n bg: {\n DEFAULT: { value: { _light: '{colors.red.a2}', _dark: '{colors.red.a2}' } },\n active: { value: { _light: '{colors.red.a3}', _dark: '{colors.red.a3}' } },\n },\n border: {\n DEFAULT: { value: { _light: '{colors.red.a6}', _dark: '{colors.red.a6}' } },\n hover: { value: { _light: '{colors.red.a7}', _dark: '{colors.red.a7}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.red.a11}', _dark: '{colors.red.a11}' } } },\n },\n outline: {\n bg: {\n hover: { value: { _light: '{colors.red.a2}', _dark: '{colors.red.a2}' } },\n active: { value: { _light: '{colors.red.a3}', _dark: '{colors.red.a3}' } },\n },\n border: { DEFAULT: { value: { _light: '{colors.red.a7}', _dark: '{colors.red.a7}' } } },\n fg: { DEFAULT: { value: { _light: '{colors.red.a11}', _dark: '{colors.red.a11}' } } },\n },\n plain: {\n bg: {\n hover: { value: { _light: '{colors.red.a3}', _dark: '{colors.red.a3}' } },\n active: { value: { _light: '{colors.red.a4}', _dark: '{colors.red.a4}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.red.a11}', _dark: '{colors.red.a11}' } } },\n },\n})\n",
+ "type": "registry:color",
+ "path": "colors/red.ts"
+ }
+ ],
+ "panda": {
+ "imports": [
+ {
+ "type": "registry:color",
+ "name": "red",
+ "from": "colors/red"
+ }
+ ],
+ "extension": {
+ "theme": {
+ "extend": {
+ "semanticTokens": {
+ "colors": {
+ "red": "$ref:red"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "green",
+ "type": "registry:color",
+ "dependencies": [
+ "@pandacss/dev"
+ ],
+ "files": [
+ {
+ "content": "import { defineSemanticTokens } from '@pandacss/dev'\n\nexport const green = defineSemanticTokens.colors({\n '1': { value: { _light: '#fbfefc', _dark: '#0e1512' } },\n '2': { value: { _light: '#f4fbf6', _dark: '#121b17' } },\n '3': { value: { _light: '#e6f6eb', _dark: '#132d21' } },\n '4': { value: { _light: '#d6f1df', _dark: '#113b29' } },\n '5': { value: { _light: '#c4e8d1', _dark: '#174933' } },\n '6': { value: { _light: '#adddc0', _dark: '#20573e' } },\n '7': { value: { _light: '#8eceaa', _dark: '#28684a' } },\n '8': { value: { _light: '#5bb98b', _dark: '#2f7c57' } },\n '9': { value: { _light: '#30a46c', _dark: '#30a46c' } },\n '10': { value: { _light: '#2b9a66', _dark: '#33b074' } },\n '11': { value: { _light: '#218358', _dark: '#3dd68c' } },\n '12': { value: { _light: '#193b2d', _dark: '#b1f1cb' } },\n a1: { value: { _light: '#00c04004', _dark: '#00de4505' } },\n a2: { value: { _light: '#00a32f0b', _dark: '#29f99d0b' } },\n a3: { value: { _light: '#00a43319', _dark: '#22ff991e' } },\n a4: { value: { _light: '#00a83829', _dark: '#11ff992d' } },\n a5: { value: { _light: '#019c393b', _dark: '#2bffa23c' } },\n a6: { value: { _light: '#00963c52', _dark: '#44ffaa4b' } },\n a7: { value: { _light: '#00914071', _dark: '#50fdac5e' } },\n a8: { value: { _light: '#00924ba4', _dark: '#54ffad73' } },\n a9: { value: { _light: '#008f4acf', _dark: '#44ffa49e' } },\n a10: { value: { _light: '#008647d4', _dark: '#43fea4ab' } },\n a11: { value: { _light: '#00713fde', _dark: '#46fea5d4' } },\n a12: { value: { _light: '#002616e6', _dark: '#bbffd7f0' } },\n solid: {\n bg: {\n DEFAULT: { value: { _light: '{colors.green.9}', _dark: '{colors.green.9}' } },\n hover: { value: { _light: '{colors.green.10}', _dark: '{colors.green.10}' } },\n },\n fg: { DEFAULT: { value: { _light: 'white', _dark: 'white' } } },\n },\n subtle: {\n bg: {\n DEFAULT: { value: { _light: '{colors.green.a3}', _dark: '{colors.green.a3}' } },\n hover: { value: { _light: '{colors.green.a4}', _dark: '{colors.green.a4}' } },\n active: { value: { _light: '{colors.green.a5}', _dark: '{colors.green.a5}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.green.a11}', _dark: '{colors.green.a11}' } } },\n },\n surface: {\n bg: {\n DEFAULT: { value: { _light: '{colors.green.a2}', _dark: '{colors.green.a2}' } },\n active: { value: { _light: '{colors.green.a3}', _dark: '{colors.green.a3}' } },\n },\n border: {\n DEFAULT: { value: { _light: '{colors.green.a6}', _dark: '{colors.green.a6}' } },\n hover: { value: { _light: '{colors.green.a7}', _dark: '{colors.green.a7}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.green.a11}', _dark: '{colors.green.a11}' } } },\n },\n outline: {\n bg: {\n hover: { value: { _light: '{colors.green.a2}', _dark: '{colors.green.a2}' } },\n active: { value: { _light: '{colors.green.a3}', _dark: '{colors.green.a3}' } },\n },\n border: { DEFAULT: { value: { _light: '{colors.green.a7}', _dark: '{colors.green.a7}' } } },\n fg: { DEFAULT: { value: { _light: '{colors.green.a11}', _dark: '{colors.green.a11}' } } },\n },\n plain: {\n bg: {\n hover: { value: { _light: '{colors.green.a3}', _dark: '{colors.green.a3}' } },\n active: { value: { _light: '{colors.green.a4}', _dark: '{colors.green.a4}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.green.a11}', _dark: '{colors.green.a11}' } } },\n },\n})\n",
+ "type": "registry:color",
+ "path": "colors/green.ts"
+ }
+ ],
+ "panda": {
+ "imports": [
+ {
+ "type": "registry:color",
+ "name": "green",
+ "from": "colors/green"
+ }
+ ],
+ "extension": {
+ "theme": {
+ "extend": {
+ "semanticTokens": {
+ "colors": {
+ "green": "$ref:green"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "__init",
+ "type": "registry:theme",
+ "dependencies": [
+ "@pandacss/dev"
+ ],
+ "files": [
+ {
+ "content": "export const recipes = {}\nexport const slotRecipes = {}\n",
+ "type": "registry:recipe",
+ "path": "index.ts"
+ },
+ {
+ "content": "import { defineTokens } from '@pandacss/dev'\n\nconst black = defineTokens.colors({\n DEFAULT: { value: '#000000' },\n a1: { value: 'rgba(0, 0, 0, 0.05)' },\n a2: { value: 'rgba(0, 0, 0, 0.1)' },\n a3: { value: 'rgba(0, 0, 0, 0.15)' },\n a4: { value: 'rgba(0, 0, 0, 0.2)' },\n a5: { value: 'rgba(0, 0, 0, 0.3)' },\n a6: { value: 'rgba(0, 0, 0, 0.4)' },\n a7: { value: 'rgba(0, 0, 0, 0.5)' },\n a8: { value: 'rgba(0, 0, 0, 0.6)' },\n a9: { value: 'rgba(0, 0, 0, 0.7)' },\n a10: { value: 'rgba(0, 0, 0, 0.8)' },\n a11: { value: 'rgba(0, 0, 0, 0.9)' },\n a12: { value: 'rgba(0, 0, 0, 0.95)' },\n})\n\nconst white = defineTokens.colors({\n DEFAULT: { value: '#ffffff' },\n a1: { value: 'rgba(255, 255, 255, 0.05)' },\n a2: { value: 'rgba(255, 255, 255, 0.1)' },\n a3: { value: 'rgba(255, 255, 255, 0.15)' },\n a4: { value: 'rgba(255, 255, 255, 0.2)' },\n a5: { value: 'rgba(255, 255, 255, 0.3)' },\n a6: { value: 'rgba(255, 255, 255, 0.4)' },\n a7: { value: 'rgba(255, 255, 255, 0.5)' },\n a8: { value: 'rgba(255, 255, 255, 0.6)' },\n a9: { value: 'rgba(255, 255, 255, 0.7)' },\n a10: { value: 'rgba(255, 255, 255, 0.8)' },\n a11: { value: 'rgba(255, 255, 255, 0.9)' },\n a12: { value: 'rgba(255, 255, 255, 0.95)' },\n})\n\nexport const colors = { black, white }\n",
+ "type": "registry:theme",
+ "path": "tokens/colors.ts"
+ },
+ {
+ "content": "import { defineTokens } from '@pandacss/dev'\n\nexport const durations = defineTokens.durations({\n fastest: { value: '50ms' },\n faster: { value: '100ms' },\n fast: { value: '150ms' },\n normal: { value: '200ms' },\n slow: { value: '250ms' },\n slower: { value: '300ms' },\n slowest: { value: '400ms' },\n})\n",
+ "type": "registry:theme",
+ "path": "tokens/durations.ts"
+ },
+ {
+ "content": "import { defineSemanticTokens } from '@pandacss/dev'\n\nexport const shadows = defineSemanticTokens.shadows({\n xs: {\n value: {\n _light: '0px 1px 2px {colors.gray.a6}, 0px 0px 1px {colors.gray.a7}',\n _dark: '0px 1px 1px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',\n },\n },\n sm: {\n value: {\n _light: '0px 2px 4px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',\n _dark: '0px 2px 4px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',\n },\n },\n md: {\n value: {\n _light: '0px 4px 8px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',\n _dark: '0px 4px 8px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',\n },\n },\n lg: {\n value: {\n _light: '0px 8px 16px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',\n _dark: '0px 8px 16px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',\n },\n },\n xl: {\n value: {\n _light: '0px 16px 24px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',\n _dark: '0px 16px 24px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',\n },\n },\n '2xl': {\n value: {\n _light: '0px 24px 40px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',\n _dark: '0px 24px 40px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',\n },\n },\n inset: {\n value: {\n _light: 'inset 8px 0 12px -8px {colors.gray.a4}',\n _dark: 'inset 8px 0 12px -8px {colors.black.a6}',\n },\n },\n})\n",
+ "type": "registry:theme",
+ "path": "tokens/shadows.ts"
+ },
+ {
+ "content": "import { defineTokens } from '@pandacss/dev'\n\nexport const zIndex = defineTokens.zIndex({\n hide: {\n value: -1,\n },\n base: {\n value: 0,\n },\n docked: {\n value: 10,\n },\n dropdown: {\n value: 1000,\n },\n sticky: {\n value: 1100,\n },\n banner: {\n value: 1200,\n },\n overlay: {\n value: 1300,\n },\n modal: {\n value: 1400,\n },\n popover: {\n value: 1500,\n },\n skipLink: {\n value: 1600,\n },\n toast: {\n value: 1700,\n },\n tooltip: {\n value: 1800,\n },\n})\n",
+ "type": "registry:theme",
+ "path": "tokens/z-index.ts"
+ },
+ {
+ "content": "import { defineAnimationStyles } from '@pandacss/dev'\n\nexport const animationStyles = defineAnimationStyles({\n 'slide-fade-in': {\n value: {\n transformOrigin: 'var(--transform-origin)',\n '&[data-placement^=top]': {\n animationName: 'slide-from-bottom, fade-in',\n },\n '&[data-placement^=bottom]': {\n animationName: 'slide-from-top, fade-in',\n },\n '&[data-placement^=left]': {\n animationName: 'slide-from-right, fade-in',\n },\n '&[data-placement^=right]': {\n animationName: 'slide-from-left, fade-in',\n },\n },\n },\n 'slide-fade-out': {\n value: {\n transformOrigin: 'var(--transform-origin)',\n '&[data-placement^=top]': {\n animationName: 'slide-to-bottom, fade-out',\n },\n '&[data-placement^=bottom]': {\n animationName: 'slide-to-top, fade-out',\n },\n '&[data-placement^=left]': {\n animationName: 'slide-to-right, fade-out',\n },\n '&[data-placement^=right]': {\n animationName: 'slide-to-left, fade-out',\n },\n },\n },\n 'scale-fade-in': {\n value: {\n transformOrigin: 'var(--transform-origin)',\n animationName: 'scale-in, fade-in',\n },\n },\n 'scale-fade-out': {\n value: {\n transformOrigin: 'var(--transform-origin)',\n animationName: 'scale-out, fade-out',\n },\n },\n})\n",
+ "type": "registry:theme",
+ "path": "animation-styles.ts"
+ },
+ {
+ "content": "export const conditions = {\n extend: {\n light: ':root &, .light &',\n invalid: '&:is(:user-invalid, [data-invalid], [aria-invalid=true])',\n hover: '&:not(:disabled):hover',\n active: '&:not(:disabled):active',\n checked:\n '&:is(:checked, [data-checked], [data-state=checked], [aria-checked=true], [data-state=indeterminate])',\n on: '&:is([data-state=on])',\n pinned: '&:is([data-pinned])',\n },\n} as const\n",
+ "type": "registry:theme",
+ "path": "conditions.ts"
+ },
+ {
+ "content": "export const globalCss = {\n extend: {\n '*': {\n '--global-color-border': 'colors.border',\n '--global-color-placeholder': 'colors.fg.subtle',\n '--global-color-selection': 'colors.colorPalette.subtle.bg',\n '--global-color-focus-ring': 'colors.colorPalette.solid.bg',\n },\n html: {\n colorPalette: 'gray',\n },\n body: {\n background: 'canvas',\n color: 'fg.default',\n },\n },\n}\n",
+ "type": "registry:theme",
+ "path": "global-css.ts"
+ },
+ {
+ "content": "import { defineKeyframes } from '@pandacss/dev'\n\nexport const keyframes = defineKeyframes({\n // collapse\n 'expand-height': {\n from: { height: '0' },\n to: { height: 'var(--height)' },\n },\n 'collapse-height': {\n from: { height: 'var(--height)' },\n to: { height: '0' },\n },\n 'expand-width': {\n from: { width: '0' },\n to: { width: 'var(--width)' },\n },\n 'collapse-width': {\n from: { width: 'var(--width)' },\n to: { width: '0' },\n },\n // fade\n 'fade-in': {\n from: { opacity: '0' },\n to: { opacity: '1' },\n },\n 'fade-out': {\n from: { opacity: '1' },\n to: { opacity: '0' },\n },\n // slide from (full)\n 'slide-from-left-full': {\n from: { translate: '-100% 0' },\n to: { translate: '0 0' },\n },\n 'slide-from-right-full': {\n from: { translate: '100% 0' },\n to: { translate: '0 0' },\n },\n 'slide-from-top-full': {\n from: { translate: '0 -100%' },\n to: { translate: '0 0' },\n },\n 'slide-from-bottom-full': {\n from: { translate: '0 100%' },\n to: { translate: '0 0' },\n },\n // slide to (full)\n 'slide-to-left-full': {\n from: { translate: '0 0' },\n to: { translate: '-100% 0' },\n },\n 'slide-to-right-full': {\n from: { translate: '0 0' },\n to: { translate: '100% 0' },\n },\n 'slide-to-top-full': {\n from: { translate: '0 0' },\n to: { translate: '0 -100%' },\n },\n 'slide-to-bottom-full': {\n from: { translate: '0 0' },\n to: { translate: '0 100%' },\n },\n // slide from\n 'slide-from-top': {\n '0%': { translate: '0 -0.5rem' },\n to: { translate: '0' },\n },\n 'slide-from-bottom': {\n '0%': { translate: '0 0.5rem' },\n to: { translate: '0' },\n },\n 'slide-from-left': {\n '0%': { translate: '-0.5rem 0' },\n to: { translate: '0' },\n },\n 'slide-from-right': {\n '0%': { translate: '0.5rem 0' },\n to: { translate: '0' },\n },\n // slide to\n 'slide-to-top': {\n '0%': { translate: '0' },\n to: { translate: '0 -0.5rem' },\n },\n 'slide-to-bottom': {\n '0%': { translate: '0' },\n to: { translate: '0 0.5rem' },\n },\n 'slide-to-left': {\n '0%': { translate: '0' },\n to: { translate: '-0.5rem 0' },\n },\n 'slide-to-right': {\n '0%': { translate: '0' },\n to: { translate: '0.5rem 0' },\n },\n // scale\n 'scale-in': {\n from: { scale: '0.95' },\n to: { scale: '1' },\n },\n 'scale-out': {\n from: { scale: '1' },\n to: { scale: '0.95' },\n },\n 'bg-position': {\n from: {\n backgroundPosition: 'var(--animate-from, 1rem) 0',\n },\n to: {\n backgroundPosition: 'var(--animate-to, 0) 0',\n },\n },\n position: {\n from: {\n insetInlineStart: 'var(--animate-from-x)',\n insetBlockStart: 'var(--animate-from-y)',\n },\n to: {\n insetInlineStart: 'var(--animate-to-x)',\n insetBlockStart: 'var(--animate-to-y)',\n },\n },\n})\n",
+ "type": "registry:theme",
+ "path": "keyframes.ts"
+ },
+ {
+ "content": "import { defineLayerStyles } from '@pandacss/dev'\n\nexport const layerStyles = defineLayerStyles({\n disabled: {\n value: {\n cursor: 'not-allowed',\n opacity: '0.67',\n filter: 'grayscale(100%)',\n },\n },\n})\n",
+ "type": "registry:theme",
+ "path": "layer-styles.ts"
+ },
+ {
+ "content": "import { defineTextStyles } from '@pandacss/dev'\n\nexport const textStyles = defineTextStyles({\n xs: { value: { fontSize: 'xs', lineHeight: '1.125rem' } },\n sm: { value: { fontSize: 'sm', lineHeight: '1.25rem' } },\n md: { value: { fontSize: 'md', lineHeight: '1.5rem' } },\n lg: { value: { fontSize: 'lg', lineHeight: '1.75rem' } },\n xl: { value: { fontSize: 'xl', lineHeight: '1.875rem' } },\n '2xl': { value: { fontSize: '2xl', lineHeight: '2rem' } },\n '3xl': { value: { fontSize: '3xl', lineHeight: '2.375rem' } },\n '4xl': { value: { fontSize: '4xl', lineHeight: '2.75rem', letterSpacing: '-0.02em' } },\n '5xl': { value: { fontSize: '5xl', lineHeight: '3.75rem', letterSpacing: '-0.02em' } },\n '6xl': { value: { fontSize: '6xl', lineHeight: '4.5rem', letterSpacing: '-0.02em' } },\n '7xl': { value: { fontSize: '7xl', lineHeight: '5.75rem', letterSpacing: '-0.02em' } },\n\n label: { value: { fontSize: 'sm', lineHeight: '1.25rem', fontWeight: 'medium' } },\n})\n",
+ "type": "registry:theme",
+ "path": "text-styles.ts"
+ }
+ ],
+ "panda": {
+ "imports": [
+ {
+ "type": "registry:theme",
+ "from": "recipes",
+ "name": "slotRecipes"
+ },
+ {
+ "type": "registry:theme",
+ "from": "recipes",
+ "name": "recipes"
+ },
+ {
+ "type": "registry:theme",
+ "name": "conditions",
+ "from": "conditions"
+ },
+ {
+ "type": "registry:theme",
+ "name": "globalCss",
+ "from": "global-css"
+ },
+ {
+ "type": "registry:theme",
+ "name": "keyframes",
+ "from": "keyframes"
+ },
+ {
+ "type": "registry:theme",
+ "name": "layerStyles",
+ "from": "layer-styles"
+ },
+ {
+ "type": "registry:theme",
+ "name": "textStyles",
+ "from": "text-styles"
+ },
+ {
+ "type": "registry:theme",
+ "name": "colors",
+ "from": "tokens/colors"
+ },
+ {
+ "type": "registry:theme",
+ "name": "durations",
+ "from": "tokens/durations"
+ },
+ {
+ "type": "registry:theme",
+ "name": "shadows",
+ "from": "tokens/shadows"
+ },
+ {
+ "type": "registry:theme",
+ "name": "zIndex",
+ "from": "tokens/z-index"
+ },
+ {
+ "type": "registry:theme",
+ "name": "animationStyles",
+ "from": "animation-styles"
+ }
+ ],
+ "extension": {
+ "globalCss": "$ref:globalCss",
+ "conditions": "$ref:conditions",
+ "theme": {
+ "extend": {
+ "animationStyles": "$ref:animationStyles",
+ "recipes": "$ref:recipes",
+ "slotRecipes": "$ref:slotRecipes",
+ "keyframes": "$ref:keyframes",
+ "layerStyles": "$ref:layerStyles",
+ "textStyles": "$ref:textStyles",
+ "tokens": {
+ "colors": "$ref:colors",
+ "durations": "$ref:durations",
+ "zIndex": "$ref:zIndex"
+ },
+ "semanticTokens": {
+ "colors": {
+ "fg": {
+ "default": {
+ "value": {
+ "_light": "{colors.gray.12}",
+ "_dark": "{colors.gray.12}"
+ }
+ },
+ "muted": {
+ "value": {
+ "_light": "{colors.gray.11}",
+ "_dark": "{colors.gray.11}"
+ }
+ },
+ "subtle": {
+ "value": {
+ "_light": "{colors.gray.10}",
+ "_dark": "{colors.gray.10}"
+ }
+ }
+ },
+ "border": {
+ "value": {
+ "_light": "{colors.gray.4}",
+ "_dark": "{colors.gray.4}"
+ }
+ },
+ "error": {
+ "value": {
+ "_light": "{colors.red.9}",
+ "_dark": "{colors.red.9}"
+ }
+ }
+ },
+ "shadows": "$ref:shadows"
+ }
+ }
+ }
+ }
+ },
+ "registryDependencies": [
+ "red",
+ "green"
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "button-recipe",
+ "type": "registry:recipe",
+ "dependencies": [
+ "@pandacss/dev"
+ ],
+ "files": [
+ {
+ "content": "import { defineRecipe } from '@pandacss/dev'\n\nexport const button = defineRecipe({\n className: 'button',\n jsx: ['Button', 'IconButton', 'CloseButton', 'ButtonGroup'],\n base: {\n alignItems: 'center',\n appearance: 'none',\n borderRadius: 'l2',\n cursor: 'pointer',\n display: 'inline-flex',\n flexShrink: '0',\n fontWeight: 'semibold',\n gap: '2',\n isolation: 'isolate',\n justifyContent: 'center',\n outline: '0',\n position: 'relative',\n transition: 'colors',\n transitionProperty: 'background-color, border-color, color, box-shadow',\n userSelect: 'none',\n verticalAlign: 'middle',\n whiteSpace: 'nowrap',\n _icon: {\n flexShrink: '0',\n },\n _disabled: {\n layerStyle: 'disabled',\n },\n focusVisibleRing: 'outside',\n },\n defaultVariants: {\n variant: 'solid',\n size: 'md',\n },\n variants: {\n variant: {\n solid: {\n bg: 'colorPalette.solid.bg',\n color: 'colorPalette.solid.fg',\n _hover: {\n bg: 'colorPalette.solid.bg.hover',\n },\n },\n surface: {\n bg: 'colorPalette.surface.bg',\n borderWidth: '1px',\n borderColor: 'colorPalette.surface.border',\n color: 'colorPalette.surface.fg',\n _hover: {\n borderColor: 'colorPalette.surface.border.hover',\n },\n _active: {\n bg: 'colorPalette.surface.bg.active',\n },\n _on: {\n bg: 'colorPalette.surface.bg.active',\n },\n },\n subtle: {\n bg: 'colorPalette.subtle.bg',\n color: 'colorPalette.subtle.fg',\n _hover: {\n bg: 'colorPalette.subtle.bg.hover',\n },\n _active: {\n bg: 'colorPalette.subtle.bg.active',\n },\n _on: {\n bg: 'colorPalette.subtle.bg.active',\n },\n },\n outline: {\n borderWidth: '1px',\n borderColor: 'colorPalette.outline.border',\n color: 'colorPalette.outline.fg',\n _hover: {\n bg: 'colorPalette.outline.bg.hover',\n },\n _active: {\n bg: 'colorPalette.outline.bg.active',\n },\n _on: {\n bg: 'colorPalette.outline.bg.active',\n },\n },\n plain: {\n color: 'colorPalette.plain.fg',\n _hover: {\n bg: 'colorPalette.plain.bg.hover',\n },\n _active: {\n bg: 'colorPalette.plain.bg.active',\n },\n _on: {\n bg: 'colorPalette.plain.bg.active',\n },\n },\n },\n size: {\n '2xs': { h: '6', minW: '6', textStyle: 'xs', px: '2', _icon: { boxSize: '3.5' } },\n xs: { h: '8', minW: '8', textStyle: 'sm', px: '2.5', _icon: { boxSize: '4' } },\n sm: { h: '9', minW: '9', textStyle: 'sm', px: '3', _icon: { boxSize: '4' } },\n md: { h: '10', minW: '10', textStyle: 'sm', px: '3.5', _icon: { boxSize: '5' } },\n lg: { h: '11', minW: '11', textStyle: 'md', px: '4', _icon: { boxSize: '5' } },\n xl: { h: '12', minW: '12', textStyle: 'md', px: '4.5', _icon: { boxSize: '5.5' } },\n '2xl': { h: '16', minW: '16', textStyle: 'xl', px: '6', _icon: { boxSize: '6' } },\n },\n },\n})\n",
+ "type": "registry:recipe",
+ "path": "button.ts",
+ "imports": "import { button } from './button'"
+ }
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "group-recipe",
+ "type": "registry:recipe",
+ "dependencies": [
+ "@pandacss/dev"
+ ],
+ "files": [
+ {
+ "content": "import { defineRecipe } from '@pandacss/dev'\n\nexport const group = defineRecipe({\n className: 'group',\n base: {\n display: 'inline-flex',\n position: 'relative',\n gap: '2',\n '& > *': {\n _focusVisible: {\n zIndex: 1,\n },\n },\n },\n defaultVariants: {\n orientation: 'horizontal',\n },\n variants: {\n orientation: {\n horizontal: {\n flexDirection: 'row',\n },\n vertical: {\n flexDirection: 'column',\n },\n },\n attached: {\n true: {\n gap: '0',\n },\n },\n grow: {\n true: {\n display: 'flex',\n '& > *': {\n flex: 1,\n },\n },\n },\n },\n compoundVariants: [\n {\n orientation: 'horizontal',\n attached: true,\n css: {\n '& > *:first-child': {\n borderEndRadius: '0',\n marginEnd: '-1px',\n },\n '& > *:last-child': {\n borderStartRadius: '0',\n },\n '& > *:not(:first-child):not(:last-child)': {\n borderRadius: '0',\n marginEnd: '-1px',\n },\n },\n },\n {\n orientation: 'vertical',\n attached: true,\n css: {\n '& > *:first-child': {\n borderBottomRadius: '0',\n marginBottom: '-1px',\n },\n '& > *:last-child': {\n borderTopRadius: '0',\n },\n '& > *:not(:first-child):not(:last-child)': {\n borderRadius: '0',\n marginBottom: '-1px',\n },\n },\n },\n ],\n})\n",
+ "type": "registry:recipe",
+ "path": "group.ts",
+ "imports": "import { group } from './group'"
+ }
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "group",
+ "type": "registry:ui",
+ "dependencies": [
+ "@ark-ui/react",
+ "react"
+ ],
+ "files": [
+ {
+ "content": "import { ark } from '@ark-ui/react'\nimport type { ComponentProps } from 'react'\nimport { styled } from 'styled-system/jsx'\nimport { group } from 'styled-system/recipes'\n\nexport type GroupProps = ComponentProps\nexport const Group = styled(ark.div, group)\n",
+ "type": "registry:ui",
+ "path": "group.tsx",
+ "exports": "export { Group, type GroupProps } from './group'"
+ }
+ ],
+ "registryDependencies": [
+ "group-recipe"
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "absolute-center-recipe",
+ "type": "registry:recipe",
+ "dependencies": [
+ "@pandacss/dev"
+ ],
+ "files": [
+ {
+ "content": "import { defineRecipe } from '@pandacss/dev'\n\nexport const absoluteCenter = defineRecipe({\n className: 'absolute-center',\n base: {\n position: 'absolute',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n },\n defaultVariants: {\n axis: 'both',\n },\n variants: {\n axis: {\n horizontal: {\n insetStart: '50%',\n translate: '-50%',\n _rtl: {\n translate: '50%',\n },\n },\n vertical: {\n top: '50%',\n translate: '0 -50%',\n },\n both: {\n insetStart: '50%',\n top: '50%',\n translate: '-50% -50%',\n _rtl: {\n translate: '50% -50%',\n },\n },\n },\n },\n})\n",
+ "type": "registry:recipe",
+ "path": "absolute-center.ts",
+ "imports": "import { absoluteCenter } from './absolute-center'"
+ }
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "absolute-center",
+ "type": "registry:ui",
+ "dependencies": [
+ "@ark-ui/react",
+ "react"
+ ],
+ "files": [
+ {
+ "content": "import { ark } from '@ark-ui/react/factory'\nimport type { ComponentProps } from 'react'\nimport { styled } from 'styled-system/jsx'\nimport { absoluteCenter } from 'styled-system/recipes'\n\nexport type AbsoluteCenterProps = ComponentProps\nexport const AbsoluteCenter = styled(ark.div, absoluteCenter)\n",
+ "type": "registry:ui",
+ "path": "absolute-center.tsx",
+ "exports": "export { AbsoluteCenter, type AbsoluteCenterProps } from './absolute-center'"
+ }
+ ],
+ "registryDependencies": [
+ "absolute-center-recipe"
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "span",
+ "type": "registry:ui",
+ "dependencies": [
+ "react"
+ ],
+ "files": [
+ {
+ "content": "import type { ComponentProps } from 'react'\nimport { styled } from 'styled-system/jsx'\n\nexport type SpanProps = ComponentProps\nexport const Span = styled('span')\n",
+ "type": "registry:ui",
+ "path": "span.tsx",
+ "exports": "export { Span, type SpanProps } from './span'"
+ }
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "spinner-recipe",
+ "type": "registry:recipe",
+ "dependencies": [
+ "@pandacss/dev"
+ ],
+ "files": [
+ {
+ "content": "import { defineRecipe } from '@pandacss/dev'\n\nexport const spinner = defineRecipe({\n className: 'spinner',\n base: {\n '--spinner-track-color': 'transparent',\n animation: 'spin',\n animationDuration: 'slowest',\n borderBottomColor: 'var(--spinner-track-color)',\n borderColor: 'currentColor',\n borderInlineStartColor: 'var(--spinner-track-color)',\n borderRadius: 'full',\n borderStyle: 'solid',\n borderWidth: '2px',\n display: 'inline-block',\n height: 'var(--spinner-size)',\n width: 'var(--spinner-size)',\n },\n defaultVariants: {\n size: 'md',\n },\n variants: {\n size: {\n inherit: { '--spinner-size': '1em' },\n xs: { '--spinner-size': 'sizes.3' },\n sm: { '--spinner-size': 'sizes.4' },\n md: { '--spinner-size': 'sizes.5' },\n lg: { '--spinner-size': 'sizes.6' },\n xl: { '--spinner-size': 'sizes.7' },\n '2xl': { '--spinner-size': 'sizes.8' },\n },\n },\n})\n",
+ "type": "registry:recipe",
+ "path": "spinner.ts",
+ "imports": "import { spinner } from './spinner'"
+ }
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "spinner",
+ "type": "registry:ui",
+ "dependencies": [
+ "@ark-ui/react",
+ "react"
+ ],
+ "files": [
+ {
+ "content": "import { ark } from '@ark-ui/react/factory'\nimport type { ComponentProps } from 'react'\nimport { styled } from 'styled-system/jsx'\nimport { spinner } from 'styled-system/recipes'\n\nexport type SpinnerProps = ComponentProps\nexport const Spinner = styled(ark.span, spinner)\n",
+ "type": "registry:ui",
+ "path": "spinner.tsx",
+ "exports": "export { Spinner, type SpinnerProps } from './spinner'"
+ }
+ ],
+ "registryDependencies": [
+ "spinner-recipe"
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "loader",
+ "type": "registry:ui",
+ "dependencies": [
+ "react"
+ ],
+ "files": [
+ {
+ "content": "'use client'\nimport { forwardRef } from 'react'\nimport type { HTMLStyledProps } from 'styled-system/jsx'\nimport { AbsoluteCenter } from './absolute-center'\nimport { Span } from './span'\nimport { Spinner } from './spinner'\n\nexport interface LoaderProps extends HTMLStyledProps<'span'> {\n /**\n * Whether the loader is visible\n * @default true\n */\n visible?: boolean | undefined\n /**\n * The spinner to display when loading\n */\n spinner?: React.ReactNode | undefined\n /**\n * The placement of the spinner\n * @default \"start\"\n */\n spinnerPlacement?: 'start' | 'end' | undefined\n /**\n * The text to display when loading\n */\n text?: React.ReactNode | undefined\n\n children?: React.ReactNode\n}\n\nexport const Loader = forwardRef(function Loader(props, ref) {\n const {\n spinner = ,\n spinnerPlacement = 'start',\n children,\n text,\n visible = true,\n ...rest\n } = props\n\n if (!visible) return children\n\n if (text) {\n return (\n \n {spinnerPlacement === 'start' && spinner}\n {text}\n {spinnerPlacement === 'end' && spinner}\n \n )\n }\n\n if (spinner) {\n return (\n \n {spinner} \n \n {children}\n \n \n )\n }\n\n return (\n \n {children}\n \n )\n})\n",
+ "type": "registry:ui",
+ "path": "loader.tsx",
+ "exports": "export { Loader, type LoaderProps } from './loader'"
+ }
+ ],
+ "registryDependencies": [
+ "absolute-center",
+ "span",
+ "spinner"
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "button",
+ "type": "registry:ui",
+ "dependencies": [
+ "@ark-ui/react",
+ "react"
+ ],
+ "files": [
+ {
+ "content": "'use client'\nimport { ark } from '@ark-ui/react/factory'\nimport { createContext, mergeProps } from '@ark-ui/react/utils'\nimport { type ComponentProps, forwardRef, useMemo } from 'react'\nimport { styled } from 'styled-system/jsx'\nimport { type ButtonVariantProps, button } from 'styled-system/recipes'\nimport { Group, type GroupProps } from './group'\nimport { Loader } from './loader'\n\ninterface ButtonLoadingProps {\n /**\n * If `true`, the button will show a loading spinner.\n * @default false\n */\n loading?: boolean | undefined\n /**\n * The text to show while loading.\n */\n loadingText?: React.ReactNode | undefined\n /**\n * The spinner to show while loading.\n */\n spinner?: React.ReactNode | undefined\n /**\n * The placement of the spinner\n * @default \"start\"\n */\n spinnerPlacement?: 'start' | 'end' | undefined\n}\n\ntype BaseButtonProps = ComponentProps\nconst BaseButton = styled(ark.button, button)\n\nexport interface ButtonProps extends BaseButtonProps, ButtonLoadingProps {}\n\nexport const Button = forwardRef(function Button(props, ref) {\n const propsContext = useButtonPropsContext()\n const buttonProps = useMemo(\n () => mergeProps(propsContext, props),\n [propsContext, props],\n )\n\n const { loading, loadingText, children, spinner, spinnerPlacement, ...rest } = buttonProps\n return (\n \n {!props.asChild && loading ? (\n \n {children}\n \n ) : (\n children\n )}\n \n )\n})\n\nexport interface ButtonGroupProps extends GroupProps, ButtonVariantProps {}\n\nexport const ButtonGroup = forwardRef(\n function ButtonGroup(props, ref) {\n const [variantProps, otherProps] = useMemo(() => button.splitVariantProps(props), [props])\n return (\n \n \n \n )\n },\n)\n\nconst [ButtonPropsProvider, useButtonPropsContext] = createContext({\n name: 'ButtonPropsContext',\n hookName: 'useButtonPropsContext',\n providerName: ' ',\n strict: false,\n})\n",
+ "type": "registry:ui",
+ "path": "button.tsx",
+ "exports": "export { Button, ButtonGroup, type ButtonGroupProps, type ButtonProps } from './button'"
+ }
+ ],
+ "registryDependencies": [
+ "button-recipe",
+ "group",
+ "loader"
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "input-recipe",
+ "type": "registry:recipe",
+ "dependencies": [
+ "@pandacss/dev"
+ ],
+ "files": [
+ {
+ "content": "import type { RecipeConfig } from '@pandacss/dev'\n\nexport const input = {\n className: 'input',\n jsx: ['Input', 'Field.Input'],\n base: {\n appearance: 'none',\n borderRadius: 'l2',\n height: 'var(--input-height)',\n minHeight: 'var(--input-height)',\n minW: 'var(--input-height)',\n outline: '0',\n position: 'relative',\n textAlign: 'start',\n transition: 'colors',\n width: '100%',\n _disabled: {\n layerStyle: 'disabled',\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'outline',\n },\n variants: {\n variant: {\n outline: {\n borderWidth: '1px',\n borderColor: 'gray.outline.border',\n focusVisibleRing: 'inside',\n _invalid: {\n focusRingColor: 'error',\n borderColor: 'error',\n },\n },\n surface: {\n bg: 'gray.surface.bg',\n borderWidth: '1px',\n borderColor: 'gray.surface.border',\n focusVisibleRing: 'inside',\n\n _invalid: {\n focusRingColor: 'error',\n borderColor: 'error',\n },\n },\n subtle: {\n borderWidth: '1px',\n borderColor: 'transparent',\n bg: 'gray.subtle.bg',\n color: 'gray.subtle.fg',\n focusVisibleRing: 'inside',\n\n _invalid: {\n focusRingColor: 'error',\n borderColor: 'error',\n },\n },\n flushed: {\n borderBottomWidth: '1px',\n borderBottomColor: 'gray.outline.border',\n borderRadius: '0',\n color: 'fg.default',\n px: '0',\n _invalid: {\n borderColor: 'error',\n },\n _focus: {\n borderColor: 'colorPalette.solid.bg',\n boxShadowColor: 'colorPalette.solid.bg',\n boxShadow: '0 1px 0 0 var(--shadow-color)',\n _invalid: {\n borderColor: 'error',\n boxShadowColor: 'error',\n },\n },\n },\n },\n size: {\n '2xs': { textStyle: 'xs', px: '1.5', '--input-height': 'sizes.7' },\n xs: { textStyle: 'sm', px: '2', '--input-height': 'sizes.8' },\n sm: { textStyle: 'sm', px: '2.5', '--input-height': 'sizes.9' },\n md: { textStyle: 'md', px: '3', '--input-height': 'sizes.10' },\n lg: { textStyle: 'md', px: '3.5', '--input-height': 'sizes.11' },\n xl: { textStyle: 'lg', px: '4', '--input-height': 'sizes.12' },\n '2xl': { textStyle: '3xl', px: '4.5', '--input-height': 'sizes.16' },\n },\n },\n} satisfies RecipeConfig\n",
+ "type": "registry:recipe",
+ "path": "input.ts",
+ "imports": "import { input } from './input'"
+ }
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "input",
+ "type": "registry:ui",
+ "dependencies": [
+ "@ark-ui/react",
+ "react"
+ ],
+ "files": [
+ {
+ "content": "import { Field } from '@ark-ui/react/field'\nimport type { ComponentProps } from 'react'\nimport { styled } from 'styled-system/jsx'\nimport { input } from 'styled-system/recipes'\n\nexport type InputProps = ComponentProps\nexport const Input = styled(Field.Input, input)\n",
+ "type": "registry:ui",
+ "path": "input.tsx",
+ "exports": "export { Input, type InputProps } from './input'"
+ }
+ ],
+ "registryDependencies": [
+ "input-recipe"
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "textarea-recipe",
+ "type": "registry:recipe",
+ "dependencies": [
+ "@pandacss/dev"
+ ],
+ "files": [
+ {
+ "content": "import { defineRecipe } from '@pandacss/dev'\n\nexport const textarea = defineRecipe({\n className: 'textarea',\n base: {\n appearance: 'none',\n borderRadius: 'l2',\n minWidth: '0',\n outline: '0',\n position: 'relative',\n transition: 'colors',\n transitionProperty: 'box-shadow, border-color',\n width: '100%',\n _disabled: {\n layerStyle: 'disabled',\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'surface',\n },\n variants: {\n variant: {\n outline: {\n borderWidth: '1px',\n borderColor: 'gray.outline.border',\n focusVisibleRing: 'inside',\n _invalid: {\n borderColor: 'error',\n focusRingColor: 'error',\n },\n },\n surface: {\n bg: 'gray.surface.bg',\n borderWidth: '1px',\n borderColor: 'gray.surface.border',\n focusVisibleRing: 'inside',\n _invalid: {\n borderColor: 'error',\n focusRingColor: 'error',\n },\n },\n subtle: {\n borderWidth: '1px',\n borderColor: 'transparent',\n bg: 'gray.subtle.bg',\n color: 'gray.subtle.fg',\n focusVisibleRing: 'inside',\n _invalid: {\n borderColor: 'error',\n focusRingColor: 'error',\n },\n },\n flushed: {\n borderBottomWidth: '1px',\n borderBottomColor: 'gray.outline.border',\n borderRadius: '0',\n color: 'fg.default',\n px: '0',\n _invalid: {\n borderColor: 'error',\n },\n _focus: {\n borderColor: 'colorPalette.solid.bg',\n boxShadowColor: 'colorPalette.solid.bg',\n boxShadow: '0 1px 0 0 var(--shadow-color)',\n _invalid: {\n borderColor: 'error',\n boxShadowColor: 'error',\n },\n },\n },\n },\n size: {\n xs: { textStyle: 'sm', px: '2', py: '5px', scrollPaddingBottom: '5px' },\n sm: { textStyle: 'sm', px: '2.5', py: '7px', scrollPaddingBottom: '7px' },\n md: { textStyle: 'md', px: '3', py: '7px', scrollPaddingBottom: '7px' },\n lg: { textStyle: 'md', px: '3.5', py: '9px', scrollPaddingBottom: '9px' },\n xl: { textStyle: 'lg', px: '4', py: '9px', scrollPaddingBottom: '9px' },\n },\n },\n})\n",
+ "type": "registry:recipe",
+ "path": "textarea.ts",
+ "imports": "import { textarea } from './textarea'"
+ }
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "textarea",
+ "type": "registry:ui",
+ "dependencies": [
+ "@ark-ui/react",
+ "react"
+ ],
+ "files": [
+ {
+ "content": "import { Field } from '@ark-ui/react/field'\nimport type { ComponentProps } from 'react'\nimport { styled } from 'styled-system/jsx'\nimport { textarea } from 'styled-system/recipes'\n\nexport type TextareaProps = ComponentProps\nexport const Textarea = styled(Field.Textarea, textarea)\n",
+ "type": "registry:ui",
+ "path": "textarea.tsx",
+ "exports": "export { Textarea, type TextareaProps } from './textarea'"
+ }
+ ],
+ "registryDependencies": [
+ "textarea-recipe"
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "badge-recipe",
+ "type": "registry:recipe",
+ "dependencies": [
+ "@pandacss/dev"
+ ],
+ "files": [
+ {
+ "content": "import { defineRecipe } from '@pandacss/dev'\n\nexport const badge = defineRecipe({\n className: 'badge',\n base: {\n display: 'inline-flex',\n alignItems: 'center',\n borderRadius: 'l2',\n lineHeight: '1',\n fontWeight: 'medium',\n fontVariantNumeric: 'tabular-nums',\n whiteSpace: 'nowrap',\n userSelect: 'none',\n },\n defaultVariants: {\n variant: 'subtle',\n size: 'md',\n },\n variants: {\n variant: {\n solid: {\n bg: 'colorPalette.solid.bg',\n color: 'colorPalette.solid.fg',\n },\n surface: {\n bg: 'colorPalette.surface.bg',\n borderWidth: '1px',\n borderColor: 'colorPalette.surface.border',\n color: 'colorPalette.surface.fg',\n },\n subtle: {\n bg: 'colorPalette.subtle.bg',\n color: 'colorPalette.subtle.fg',\n },\n outline: {\n borderWidth: '1px',\n borderColor: 'colorPalette.outline.border',\n color: 'colorPalette.outline.fg',\n },\n },\n size: {\n sm: { fontSize: 'xs', px: '1.5', h: '4.5', gap: '0.5', _icon: { boxSize: '2.5' } },\n md: { fontSize: 'xs', px: '2', h: '5', gap: '1', _icon: { boxSize: '3' } },\n lg: { fontSize: 'xs', px: '2.5', h: '5.5', gap: '1', _icon: { boxSize: '3.5' } },\n xl: { fontSize: 'sm', px: '2.5', h: '6', gap: '1.5', _icon: { boxSize: '4' } },\n '2xl': { fontSize: 'md', px: '3', h: '7', gap: '1.5', _icon: { boxSize: '4.5' } },\n },\n },\n})\n",
+ "type": "registry:recipe",
+ "path": "badge.ts",
+ "imports": "import { badge } from './badge'"
+ }
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "badge",
+ "type": "registry:ui",
+ "dependencies": [
+ "@ark-ui/react",
+ "react"
+ ],
+ "files": [
+ {
+ "content": "import { ark } from '@ark-ui/react/factory'\nimport type { ComponentProps } from 'react'\nimport { styled } from 'styled-system/jsx'\nimport { badge } from 'styled-system/recipes'\n\nexport type BadgeProps = ComponentProps\nexport const Badge = styled(ark.div, badge)\n",
+ "type": "registry:ui",
+ "path": "badge.tsx",
+ "exports": "export { Badge, type BadgeProps } from './badge'"
+ }
+ ],
+ "registryDependencies": [
+ "badge-recipe"
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "dialog-recipe",
+ "type": "registry:recipe",
+ "dependencies": [
+ "@pandacss/dev",
+ "@ark-ui/react"
+ ],
+ "files": [
+ {
+ "content": "import { dialogAnatomy } from '@ark-ui/react/anatomy'\nimport { defineSlotRecipe } from '@pandacss/dev'\n\nexport const dialog = defineSlotRecipe({\n className: 'dialog',\n slots: dialogAnatomy.extendWith('header', 'body', 'footer').keys(),\n base: {\n backdrop: {\n background: 'black.a7',\n height: '100dvh',\n left: '0',\n position: 'fixed',\n top: '0',\n width: '100dvw',\n zIndex: 'var(--z-index)',\n _open: {\n animationName: 'fade-in',\n animationTimingFunction: 'emphasized-in',\n animationDuration: 'normal',\n },\n _closed: {\n animationName: 'fade-out',\n animationTimingFunction: 'emphasized-out',\n animationDuration: 'fast',\n },\n },\n positioner: {\n '--dialog-z-index': 'zIndex.modal',\n display: 'flex',\n height: '100dvh',\n justifyContent: 'center',\n left: 0,\n overscrollBehaviorY: 'none',\n position: 'fixed',\n top: 0,\n width: '100dvw',\n zIndex: 'calc(var(--dialog-z-index) + var(--layer-index, 0))',\n },\n\n title: {\n fontWeight: 'semibold',\n textStyle: 'lg',\n },\n description: {\n color: 'fg.muted',\n textStyle: 'sm',\n },\n closeTrigger: {\n pos: 'absolute',\n top: '3',\n insetEnd: '3',\n },\n content: {\n '--dialog-z-index': 'zIndex.modal',\n bg: 'gray.surface.bg',\n borderRadius: 'l3',\n boxShadow: 'lg',\n display: 'flex',\n flexDirection: 'column',\n my: 'var(--dialog-margin, var(--dialog-base-margin))',\n outline: 0,\n position: 'relative',\n textStyle: 'sm',\n width: '100%',\n zIndex: 'calc(var(--dialog-z-index) + var(--layer-index, 0))',\n py: { base: '4', md: '6' },\n gap: { base: '4', md: '6' },\n _open: {\n animationDuration: 'slowest',\n },\n _closed: {\n animationDuration: 'normal',\n },\n },\n header: {\n display: 'flex',\n flexDirection: 'column',\n gap: '0.5',\n px: { base: '4', md: '6' },\n flex: '0',\n },\n body: {\n display: 'flex',\n flex: '1',\n flexDirection: 'column',\n alignItems: 'flex-start',\n px: { base: '4', md: '6' },\n },\n footer: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end',\n flex: '0',\n gap: '3',\n px: { base: '4', md: '6' },\n },\n },\n defaultVariants: {\n size: 'md',\n scrollBehavior: 'outside',\n placement: 'center',\n motionPreset: 'scale',\n },\n variants: {\n motionPreset: {\n scale: {\n content: {\n _open: { animationName: 'scale-in, fade-in' },\n _closed: { animationName: 'scale-out, fade-out' },\n },\n },\n 'slide-in-bottom': {\n content: {\n _open: { animationName: 'slide-from-bottom, fade-in' },\n _closed: { animationName: 'slide-to-bottom, fade-out' },\n },\n },\n 'slide-in-top': {\n content: {\n _open: { animationName: 'slide-from-top, fade-in' },\n _closed: { animationName: 'slide-to-top, fade-out' },\n },\n },\n 'slide-in-left': {\n content: {\n _open: { animationName: 'slide-from-left, fade-in' },\n _closed: { animationName: 'slide-to-left, fade-out' },\n },\n },\n 'slide-in-right': {\n content: {\n _open: { animationName: 'slide-from-right, fade-in' },\n _closed: { animationName: 'slide-to-right, fade-out' },\n },\n },\n none: {},\n },\n size: {\n xs: { content: { maxW: 'xs' } },\n sm: { content: { maxW: 'sm' } },\n md: { content: { maxW: 'md' } },\n lg: { content: { maxW: 'lg' } },\n xl: { content: { maxW: 'xl' } },\n cover: {\n positioner: { padding: '8' },\n content: {\n width: '100%',\n height: '100%',\n '--dialog-margin': '0',\n },\n },\n full: {\n content: {\n maxW: '100dvw',\n minH: '100dvh',\n '--dialog-margin': '0',\n borderRadius: '0',\n },\n },\n },\n placement: {\n center: {\n positioner: {\n alignItems: 'center',\n },\n content: {\n '--dialog-base-margin': 'auto',\n mx: 'auto',\n },\n },\n top: {\n positioner: {\n alignItems: 'flex-start',\n },\n content: {\n '--dialog-base-margin': 'spacing.16',\n mx: 'auto',\n },\n },\n bottom: {\n positioner: {\n alignItems: 'flex-end',\n },\n content: {\n '--dialog-base-margin': 'spacing.16',\n mx: 'auto',\n },\n },\n },\n scrollBehavior: {\n inside: {\n positioner: {\n overflow: 'hidden',\n },\n content: {\n maxH: 'calc(100% - 7.5rem)',\n },\n body: {\n overflow: 'auto',\n },\n },\n outside: {\n positioner: {\n overflow: 'auto',\n pointerEvents: 'auto',\n },\n },\n },\n },\n})\n",
+ "type": "registry:recipe",
+ "path": "dialog.ts",
+ "imports": "import { dialog } from './dialog'"
+ }
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "dialog",
+ "type": "registry:ui",
+ "dependencies": [
+ "@ark-ui/react",
+ "react"
+ ],
+ "files": [
+ {
+ "content": "'use client'\nimport { Dialog, useDialogContext } from '@ark-ui/react/dialog'\nimport { ark } from '@ark-ui/react/factory'\nimport { type ComponentProps, forwardRef } from 'react'\nimport { createStyleContext, styled } from 'styled-system/jsx'\nimport { dialog } from 'styled-system/recipes'\n\nconst { withRootProvider, withContext } = createStyleContext(dialog)\n\nexport type RootProps = ComponentProps\nexport const Root = withRootProvider(Dialog.Root, {\n defaultProps: { unmountOnExit: true, lazyMount: true },\n})\nexport const RootProvider = withRootProvider(Dialog.RootProvider, {\n defaultProps: { unmountOnExit: true, lazyMount: true },\n})\nexport const Backdrop = withContext(Dialog.Backdrop, 'backdrop')\nexport const CloseTrigger = withContext(Dialog.CloseTrigger, 'closeTrigger')\nexport const Content = withContext(Dialog.Content, 'content')\nexport const Description = withContext(Dialog.Description, 'description')\nexport const Positioner = withContext(Dialog.Positioner, 'positioner')\nexport const Title = withContext(Dialog.Title, 'title')\nexport const Trigger = withContext(Dialog.Trigger, 'trigger')\nexport const Body = withContext(ark.div, 'body')\nexport const Header = withContext(ark.div, 'header')\nexport const Footer = withContext(ark.div, 'footer')\n\nconst StyledButton = styled(ark.button)\n\nexport const ActionTrigger = forwardRef>(\n function ActionTrigger(props, ref) {\n const dialog = useDialogContext()\n return dialog.setOpen(false)} />\n },\n)\n\nexport { DialogContext as Context } from '@ark-ui/react/dialog'\n",
+ "type": "registry:ui",
+ "path": "dialog.tsx",
+ "exports": "export * as Dialog from './dialog'"
+ }
+ ],
+ "registryDependencies": [
+ "dialog-recipe"
+ ]
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "violet",
+ "type": "registry:color",
+ "dependencies": [
+ "@pandacss/dev"
+ ],
+ "files": [
+ {
+ "content": "import { defineSemanticTokens } from '@pandacss/dev'\n\nexport const violet = defineSemanticTokens.colors({\n '1': { value: { _light: '#fdfcfe', _dark: '#14121f' } },\n '2': { value: { _light: '#faf8ff', _dark: '#1b1525' } },\n '3': { value: { _light: '#f4f0fe', _dark: '#291f43' } },\n '4': { value: { _light: '#ebe4ff', _dark: '#33255b' } },\n '5': { value: { _light: '#e1d9ff', _dark: '#3c2e69' } },\n '6': { value: { _light: '#d4cafe', _dark: '#473876' } },\n '7': { value: { _light: '#c2b5f5', _dark: '#56468b' } },\n '8': { value: { _light: '#aa99ec', _dark: '#6958ad' } },\n '9': { value: { _light: '#6e56cf', _dark: '#6e56cf' } },\n '10': { value: { _light: '#654dc4', _dark: '#7d66d9' } },\n '11': { value: { _light: '#6550b9', _dark: '#baa7ff' } },\n '12': { value: { _light: '#2f265f', _dark: '#e2ddfe' } },\n a1: { value: { _light: '#5500aa03', _dark: '#4422ff0f' } },\n a2: { value: { _light: '#4900ff07', _dark: '#853ff916' } },\n a3: { value: { _light: '#4400ee0f', _dark: '#8354fe36' } },\n a4: { value: { _light: '#4300ff1b', _dark: '#7d51fd50' } },\n a5: { value: { _light: '#3600ff26', _dark: '#845ffd5f' } },\n a6: { value: { _light: '#3100fb35', _dark: '#8f6cfd6d' } },\n a7: { value: { _light: '#2d01dd4a', _dark: '#9879ff83' } },\n a8: { value: { _light: '#2b00d066', _dark: '#977dfea8' } },\n a9: { value: { _light: '#2400b7a9', _dark: '#8668ffcc' } },\n a10: { value: { _light: '#2300abb2', _dark: '#9176fed7' } },\n a11: { value: { _light: '#1f0099af', _dark: '#baa7ff' } },\n a12: { value: { _light: '#0b0043d9', _dark: '#e3defffe' } },\n solid: {\n bg: {\n DEFAULT: { value: { _light: '{colors.violet.9}', _dark: '{colors.violet.9}' } },\n hover: { value: { _light: '{colors.violet.10}', _dark: '{colors.violet.10}' } },\n },\n fg: { DEFAULT: { value: { _light: 'white', _dark: 'white' } } },\n },\n subtle: {\n bg: {\n DEFAULT: { value: { _light: '{colors.violet.a3}', _dark: '{colors.violet.a3}' } },\n hover: { value: { _light: '{colors.violet.a4}', _dark: '{colors.violet.a4}' } },\n active: { value: { _light: '{colors.violet.a5}', _dark: '{colors.violet.a5}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.violet.a11}', _dark: '{colors.violet.a11}' } } },\n },\n surface: {\n bg: {\n DEFAULT: { value: { _light: '{colors.violet.a2}', _dark: '{colors.violet.a2}' } },\n active: { value: { _light: '{colors.violet.a3}', _dark: '{colors.violet.a3}' } },\n },\n border: {\n DEFAULT: { value: { _light: '{colors.violet.a6}', _dark: '{colors.violet.a6}' } },\n hover: { value: { _light: '{colors.violet.a7}', _dark: '{colors.violet.a7}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.violet.a11}', _dark: '{colors.violet.a11}' } } },\n },\n outline: {\n bg: {\n hover: { value: { _light: '{colors.violet.a2}', _dark: '{colors.violet.a2}' } },\n active: { value: { _light: '{colors.violet.a3}', _dark: '{colors.violet.a3}' } },\n },\n border: { DEFAULT: { value: { _light: '{colors.violet.a7}', _dark: '{colors.violet.a7}' } } },\n fg: { DEFAULT: { value: { _light: '{colors.violet.a11}', _dark: '{colors.violet.a11}' } } },\n },\n plain: {\n bg: {\n hover: { value: { _light: '{colors.violet.a3}', _dark: '{colors.violet.a3}' } },\n active: { value: { _light: '{colors.violet.a4}', _dark: '{colors.violet.a4}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.violet.a11}', _dark: '{colors.violet.a11}' } } },\n },\n})\n",
+ "type": "registry:color",
+ "path": "colors/violet.ts"
+ }
+ ],
+ "panda": {
+ "imports": [
+ {
+ "type": "registry:color",
+ "name": "violet",
+ "from": "colors/violet"
+ }
+ ],
+ "extension": {
+ "theme": {
+ "extend": {
+ "semanticTokens": {
+ "colors": {
+ "violet": "$ref:violet"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "neutral",
+ "type": "registry:color",
+ "dependencies": [
+ "@pandacss/dev"
+ ],
+ "files": [
+ {
+ "content": "import { defineSemanticTokens } from '@pandacss/dev'\n\nexport const neutral = defineSemanticTokens.colors({\n '1': { value: { _light: '#fcfcfc', _dark: '#111111' } },\n '2': { value: { _light: '#f9f9f9', _dark: '#191919' } },\n '3': { value: { _light: '#f0f0f0', _dark: '#222222' } },\n '4': { value: { _light: '#e8e8e8', _dark: '#2a2a2a' } },\n '5': { value: { _light: '#e0e0e0', _dark: '#313131' } },\n '6': { value: { _light: '#d9d9d9', _dark: '#3a3a3a' } },\n '7': { value: { _light: '#cecece', _dark: '#484848' } },\n '8': { value: { _light: '#bbbbbb', _dark: '#606060' } },\n '9': { value: { _light: '#8d8d8d', _dark: '#6e6e6e' } },\n '10': { value: { _light: '#838383', _dark: '#7b7b7b' } },\n '11': { value: { _light: '#646464', _dark: '#b4b4b4' } },\n '12': { value: { _light: '#202020', _dark: '#eeeeee' } },\n a1: { value: { _light: '#00000003', _dark: '#00000000' } },\n a2: { value: { _light: '#00000006', _dark: '#ffffff09' } },\n a3: { value: { _light: '#0000000f', _dark: '#ffffff12' } },\n a4: { value: { _light: '#00000017', _dark: '#ffffff1b' } },\n a5: { value: { _light: '#0000001f', _dark: '#ffffff22' } },\n a6: { value: { _light: '#00000026', _dark: '#ffffff2c' } },\n a7: { value: { _light: '#00000031', _dark: '#ffffff3b' } },\n a8: { value: { _light: '#00000044', _dark: '#ffffff55' } },\n a9: { value: { _light: '#00000072', _dark: '#ffffff64' } },\n a10: { value: { _light: '#0000007c', _dark: '#ffffff72' } },\n a11: { value: { _light: '#0000009b', _dark: '#ffffffaf' } },\n a12: { value: { _light: '#000000df', _dark: '#ffffffed' } },\n solid: {\n bg: {\n DEFAULT: { value: { _light: '{colors.black}', _dark: '{colors.white}' } },\n hover: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.white}', _dark: '{colors.black}' } } },\n },\n subtle: {\n bg: {\n DEFAULT: { value: { _light: '{colors.gray.a3}', _dark: '{colors.gray.a3}' } },\n hover: { value: { _light: '{colors.gray.a4}', _dark: '{colors.gray.a4}' } },\n active: { value: { _light: '{colors.gray.a5}', _dark: '{colors.gray.a5}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },\n },\n surface: {\n bg: {\n DEFAULT: { value: { _light: '{colors.white}', _dark: '{colors.gray.1}' } },\n hover: { value: { _light: '{colors.gray.2}', _dark: '{colors.gray.2}' } },\n active: { value: { _light: '{colors.gray.3}', _dark: '{colors.gray.3}' } },\n },\n border: {\n DEFAULT: { value: { _light: '{colors.gray.6}', _dark: '{colors.gray.6}' } },\n hover: { value: { _light: '{colors.gray.7}', _dark: '{colors.gray.7}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },\n },\n outline: {\n bg: {\n hover: { value: { _light: '{colors.gray.a2}', _dark: '{colors.gray.a2}' } },\n active: { value: { _light: '{colors.gray.a3}', _dark: '{colors.gray.a3}' } },\n },\n border: { DEFAULT: { value: { _light: '{colors.gray.6}', _dark: '{colors.gray.6}' } } },\n fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },\n },\n plain: {\n bg: {\n hover: { value: { _light: '{colors.gray.a3}', _dark: '{colors.gray.a3}' } },\n active: { value: { _light: '{colors.gray.a4}', _dark: '{colors.gray.a4}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },\n },\n})\n",
+ "type": "registry:color",
+ "path": "colors/neutral.ts"
+ }
+ ],
+ "panda": {
+ "imports": [
+ {
+ "type": "registry:color",
+ "name": "neutral",
+ "from": "colors/neutral"
+ }
+ ],
+ "extension": {
+ "theme": {
+ "extend": {
+ "semanticTokens": {
+ "colors": {
+ "gray": "$ref:neutral"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+]
diff --git a/postcss.config.cjs b/postcss.config.cjs
new file mode 100644
index 0000000..8d5eb7d
--- /dev/null
+++ b/postcss.config.cjs
@@ -0,0 +1 @@
+module.exports = { plugins: { '@pandacss/dev/postcss': {} } }
diff --git a/scripts/configure-park.mjs b/scripts/configure-park.mjs
new file mode 100644
index 0000000..436c320
--- /dev/null
+++ b/scripts/configure-park.mjs
@@ -0,0 +1,66 @@
+import fs from 'node:fs'
+const items = JSON.parse(fs.readFileSync('park-registry.json', 'utf8').replace(/^\uFEFF/, ''))
+const imports = new Set()
+let config = {
+ preflight: true,
+ include: ['./src/**/*.{ts,tsx}'],
+ outdir: 'styled-system',
+ jsxFramework: 'react',
+}
+function merge(a, b) {
+ for (const [k, v] of Object.entries(b || {})) {
+ if (v && typeof v === 'object' && !Array.isArray(v)) {
+ a[k] ??= {}
+ merge(a[k], v)
+ } else a[k] = v
+ }
+ return a
+}
+const recipes = [],
+ slots = []
+for (const item of items) {
+ for (const i of item.panda?.imports || [])
+ imports.add(`import { ${i.name} } from './src/theme/${i.from.replaceAll('\\', '/')}'`)
+ merge(config, item.panda?.extension)
+ for (const f of item.files || [])
+ if (f.type === 'registry:recipe' && f.path !== 'index.ts') {
+ let n = f.content.match(/export const (\w+)/)?.[1]
+ if (n)
+ (f.content.includes('defineSlotRecipe') ? slots : recipes).push([
+ n,
+ f.path.replace(/\.ts$/, ''),
+ ])
+ }
+}
+fs.writeFileSync(
+ 'src/theme/recipes/index.ts',
+ [...recipes, ...slots].map(([n, p]) => `import {${n}} from './${p}'`).join('\n') +
+ `\nexport const recipes = {${recipes.map(([n]) => n)}}\nexport const slotRecipes = {${slots.map(([n]) => n)}}\n`,
+)
+merge(config, {
+ theme: {
+ extend: {
+ semanticTokens: {
+ radii: {
+ l1: { value: '2px' },
+ l2: { value: '3px' },
+ l3: { value: '4px' },
+ },
+ },
+ },
+ },
+})
+let code = JSON.stringify(config, null, 2).replace(/"\$ref:([^"]+)"/g, '$1')
+fs.writeFileSync(
+ 'panda.config.ts',
+ `import {defineConfig} from '@pandacss/dev'\n${[...imports].join('\n')}\nexport default defineConfig(${code})\n`,
+)
+for (const [file, from, to] of [
+ ['src/theme/global-css.ts', "colorPalette: 'gray'", "colorPalette: 'violet'"],
+ [
+ 'src/theme/conditions.ts',
+ "light: ':root &, .light &'",
+ "light: ':root:not(.dark) &, .light &'",
+ ],
+])
+ fs.writeFileSync(file, fs.readFileSync(file, 'utf8').replace(from, to))
diff --git a/scripts/install-park.ps1 b/scripts/install-park.ps1
new file mode 100644
index 0000000..b76eb8a
--- /dev/null
+++ b/scripts/install-park.ps1
@@ -0,0 +1,18 @@
+$ErrorActionPreference = 'Stop'
+$seen = @{}
+$items = [System.Collections.Generic.List[object]]::new()
+function Fetch-Item([string]$name) {
+ if ($seen.ContainsKey($name)) { return }
+ $seen[$name] = $true
+ $item = Invoke-RestMethod "https://park-ui.com/registry/react/$name.json"
+ foreach ($dep in $item.registryDependencies) { Fetch-Item $dep }
+ $items.Add($item)
+ foreach ($file in $item.files) {
+ $base = if ($file.type -eq 'registry:ui') { 'src/components/ui' } elseif ($file.type -eq 'registry:recipe') { 'src/theme/recipes' } else { 'src/theme' }
+ $dest = Join-Path $base $file.path
+ New-Item -ItemType Directory -Force (Split-Path $dest) | Out-Null
+ [System.IO.File]::WriteAllText((Join-Path (Get-Location) $dest), $file.content)
+ }
+}
+foreach ($name in @('__init','violet','neutral','button','input','textarea','badge','dialog')) { Fetch-Item $name }
+$items | ConvertTo-Json -Depth 100 | Set-Content park-registry.json
diff --git a/server/app.js b/server/app.js
new file mode 100644
index 0000000..6390668
--- /dev/null
+++ b/server/app.js
@@ -0,0 +1,267 @@
+import express from 'express'
+import { randomBytes, createHash } from 'node:crypto'
+import { now, verifyPassword } from './db.js'
+import { Service, HttpError } from './service.js'
+import { readMailSettings, saveMailSettings, verifySmtp } from './mail-config.js'
+import { signatureValue } from './content.js'
+import { signatureTokens, signatureContext } from './signature-placeholders.js'
+export function createApp(db) {
+ const app = express(),
+ s = new Service(db)
+ app.disable('x-powered-by')
+ app.use((req, res, next) => {
+ res.set({
+ 'X-Content-Type-Options': 'nosniff',
+ 'Referrer-Policy': 'same-origin',
+ 'Content-Security-Policy':
+ "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'; script-src 'self' 'unsafe-inline'; frame-ancestors 'none'",
+ })
+ if (req.path.startsWith('/api')) res.set('Cache-Control', 'no-store')
+ if (
+ !['GET', 'HEAD', 'OPTIONS'].includes(req.method) &&
+ req.headers.origin &&
+ !new Set([
+ process.env.APP_ORIGIN || `${req.protocol}://${req.headers.host}`,
+ ...(process.env.NODE_ENV !== 'production' && !process.env.APP_ORIGIN
+ ? ['http://127.0.0.1:5173', 'http://localhost:5173']
+ : []),
+ ]).has(req.headers.origin)
+ ) {
+ return res.status(403).json({ error: 'Ungültiger Ursprung.' })
+ }
+ next()
+ })
+ app.use(express.json({ limit: '30mb' }))
+ app.get('/healthz', (req, res) => {
+ s.get('SELECT 1 ok')
+ res.json({ status: 'ok' })
+ })
+ const sessions = (req) => {
+ const raw = req.headers.cookie
+ ?.split(';')
+ .map((c) => c.trim())
+ .find((c) => c.startsWith('syncova='))
+ ?.slice(8)
+ return raw ? createHash('sha256').update(raw).digest('hex') : ''
+ }
+ const attempts = new Map()
+ app.post('/api/login', (req, res) => {
+ const key = req.ip
+ const entry = attempts.get(key) || { n: 0, until: Date.now() + 900000 }
+ if (entry.until < Date.now()) {
+ entry.n = 0
+ entry.until = Date.now() + 900000
+ }
+ if (entry.n >= 15)
+ return res
+ .status(429)
+ .json({ error: 'Zu viele Anmeldeversuche. Bitte später erneut versuchen.' })
+ entry.n++
+ attempts.set(key, entry)
+ if (
+ typeof req.body.email !== 'string' ||
+ typeof req.body.password !== 'string' ||
+ req.body.password.length > 256
+ )
+ return res.status(400).json({ error: 'Ungültige Anmeldung.' })
+ const u = s.get('SELECT * FROM users WHERE email=? AND active=1', req.body.email.toLowerCase())
+ if (!u || !verifyPassword(req.body.password, u.password))
+ return res.status(401).json({ error: 'E-Mail-Adresse oder Passwort falsch.' })
+ attempts.delete(key)
+ const raw = randomBytes(32).toString('hex')
+ s.run('DELETE FROM sessions WHERE expires', now())
+ s.run(
+ 'INSERT INTO sessions VALUES(?,?,?)',
+ createHash('sha256').update(raw).digest('hex'),
+ u.id,
+ new Date(Date.now() + 43200000).toISOString(),
+ )
+ res.setHeader(
+ 'Set-Cookie',
+ `syncova=${raw}; HttpOnly; SameSite=Strict; Path=/; Max-Age=43200${process.env.COOKIE_SECURE === 'true' ? '; Secure' : ''}`,
+ )
+ res.json({ ok: true })
+ })
+ app.use('/api', (req, res, next) => {
+ try {
+ const session = s.get(
+ 'SELECT user_id FROM sessions WHERE id=? AND expires>?',
+ sessions(req),
+ now(),
+ )
+ if (!session) throw new HttpError(401, 'Bitte anmelden.')
+ req.user = s.user(session.user_id)
+ next()
+ } catch (e) {
+ next(e)
+ }
+ })
+ app.post('/api/logout', (req, res) => {
+ s.run('DELETE FROM sessions WHERE id=?', sessions(req))
+ res.setHeader('Set-Cookie', 'syncova=; HttpOnly; SameSite=Strict; Path=/; Max-Age=0')
+ res.json({ ok: true })
+ })
+ app.get('/api/bootstrap', (req, res) => res.json(s.bootstrap(req.user)))
+ app.get('/api/signature-placeholders', (req, res) => res.json(signatureTokens))
+ app.get('/api/tickets', (req, res) => res.json(s.tickets(req.user, req.query)))
+ app.post('/api/tickets', (req, res) => res.json(s.createTicket(req.user, req.body)))
+ app.get('/api/tickets/:id', (req, res) => res.json(s.detail(req.user, Number(req.params.id))))
+ app.patch('/api/tickets/:id', (req, res) =>
+ res.json(s.updateTicket(req.user, Number(req.params.id), req.body)),
+ )
+ app.post('/api/tickets/:id/goods', (req, res) =>
+ res.json(s.goods(req.user, Number(req.params.id))),
+ )
+ app.post('/api/tickets/:id/messages', (req, res) =>
+ res.json(s.reply(req.user, Number(req.params.id), req.body)),
+ )
+ app.post('/api/tickets/:id/signature-preview', (req, res) => {
+ const t = s.ticket(req.user, Number(req.params.id), 'reply'),
+ q = s.queue(t.queue_id)
+ const signature = req.body.signature_id
+ ? q.signatures.find((v) => v.id === req.body.signature_id)
+ : q.signatures.find((v) => v.default)
+ if (!signature) throw new HttpError(400, 'Signatur gehört nicht zur Queue.')
+ const from = req.body.from || q.addresses.find((a) => a.default && a.outgoing)?.email
+ if (!q.addresses.some((a) => a.email === from && a.outgoing))
+ throw new HttpError(400, 'Absender ist für diese Queue nicht freigegeben.')
+ res.json(signatureValue(signature, signatureContext(s, req.user, q, t, from)))
+ })
+ app.get('/api/attachments/:id', (req, res) => {
+ const a = s.get(
+ 'SELECT a.*,m.ticket_id FROM attachments a JOIN messages m ON m.id=a.message_id WHERE a.id=?',
+ req.params.id,
+ )
+ if (!a) throw new HttpError(404, 'Anhang nicht gefunden.')
+ s.ticket(req.user, a.ticket_id)
+ res.set({
+ 'Content-Type': 'application/octet-stream',
+ 'Content-Disposition': `attachment; filename*=UTF-8''${encodeURIComponent(a.name)}`,
+ 'Content-Security-Policy': "sandbox; default-src 'none'",
+ })
+ res.send(a.content)
+ })
+ app.get('/api/notifications', (req, res) => res.json(s.notifications(req.user)))
+ app.post('/api/notifications/read', (req, res) => {
+ s.readNotifications(req.user, req.body.id)
+ res.json({ ok: true })
+ })
+ app.put('/api/preferences', (req, res) => {
+ const clean = {}
+ for (const e of ['new', 'reply', 'assigned', 'reopened'])
+ clean[e] = { bell: !!req.body[e]?.bell, email: !!req.body[e]?.email }
+ s.run('UPDATE users SET prefs=? WHERE id=?', JSON.stringify(clean), req.user.id)
+ res.json(clean)
+ })
+ app.post('/api/queues', (req, res) => res.json(s.saveQueue(req.user, null, req.body)))
+ app.put('/api/queues/:id', (req, res) => res.json(s.saveQueue(req.user, req.params.id, req.body)))
+ app.get('/api/queues/:id/mail', (req, res) => {
+ const settings = readMailSettings(s, req.user, req.params.id)
+ settings.imap.runtime.running = !!app.locals.worker?.inbound.running.has(req.params.id)
+ res.json(settings)
+ })
+ app.put('/api/queues/:id/mail', (req, res) =>
+ res.json(saveMailSettings(s, req.user, req.params.id, req.body)),
+ )
+ app.post('/api/queues/:id/mail/verify', async (req, res) =>
+ res.json(await verifySmtp(s, req.user, req.params.id)),
+ )
+ app.post('/api/queues/:id/mail/verify-imap', async (req, res) => {
+ s.require(req.user, req.params.id, 'queue')
+ res.json(await app.locals.worker.inbound.verify(req.user, req.params.id))
+ })
+ app.post('/api/queues/:id/mail/fetch', async (req, res) => {
+ s.require(req.user, req.params.id, 'queue')
+ res.json(await app.locals.worker.inbound.run(req.params.id, { actor: req.user.id }))
+ })
+ app.put('/api/queues/:id/statuses', (req, res) =>
+ res.json(s.saveStatuses(req.user, req.params.id, req.body.statuses, req.body.mapping)),
+ )
+ app.put('/api/queues/:id/signatures', (req, res) => {
+ s.saveSignatures(req.user, req.params.id, req.body.signatures)
+ res.json({ ok: true })
+ })
+ app.post('/api/queues/:id/signatures/preview', (req, res) => {
+ s.require(req.user, req.params.id, 'signatures')
+ const q = s.queue(req.params.id),
+ body = req.body.body ?? req.body.html
+ const format = req.body.format || (req.body.html !== undefined ? 'html' : 'text')
+ if (typeof body !== 'string' || body.length > 100000 || !['text', 'html'].includes(format))
+ throw new HttpError(400, 'Ungültige Signatur (max. 100.000 Zeichen).')
+ const automatic = req.body.mode === 'system'
+ const example = {
+ id: 123,
+ subject: 'Beispielanfrage',
+ customer_name: 'Anna Beispiel',
+ customer: 'kunde@example.org',
+ status_id: q.statuses.find((v) => v.behavior === 'open')?.id,
+ assignee: automatic ? null : req.user.id,
+ }
+ res.json(
+ signatureValue(
+ { body, format },
+ signatureContext(s, automatic ? null : req.user, q, example),
+ ),
+ )
+ })
+ app.get('/api/queues/:id/deletion', (req, res) =>
+ res.json(s.queueDeletion(req.user, req.params.id)),
+ )
+ app.delete('/api/queues/:id', (req, res) => {
+ if (app.locals.worker?.inbound.running.has(req.params.id))
+ throw new HttpError(
+ 409,
+ 'Postfachabruf läuft. Empfang zuerst deaktivieren und den Abruf abwarten.',
+ )
+ res.json(s.deleteQueue(req.user, req.params.id, req.body))
+ })
+ app.get('/api/admin', (req, res) => res.json(s.admin(req.user)))
+ app.post('/api/users', (req, res) => res.json(s.saveUser(req.user, req.body)))
+ app.post('/api/groups', (req, res) => res.json(s.saveGroup(req.user, req.body)))
+ app.get('/api/users/:id/deletion', (req, res) =>
+ res.json(s.userDeletion(req.user, req.params.id)),
+ )
+ app.delete('/api/users/:id', (req, res) =>
+ res.json(s.deleteUser(req.user, req.params.id, req.body)),
+ )
+ app.get('/api/groups/:id/deletion', (req, res) =>
+ res.json(s.groupDeletion(req.user, req.params.id)),
+ )
+ app.delete('/api/groups/:id', (req, res) =>
+ res.json(s.deleteGroup(req.user, req.params.id, req.body)),
+ )
+ app.get('/api/logs', (req, res) => res.json(s.logs(req.user)))
+ app.get('/api/outbox', (req, res) => {
+ s.require(req.user, '*', 'logs')
+ res.json(
+ s.all('SELECT id,state,attempts,error,next_at FROM outbox ORDER BY next_at DESC LIMIT 100'),
+ )
+ })
+ app.post('/api/dev/incoming', (req, res) => {
+ if (process.env.MAIL_MODE === 'smtp' || process.env.NODE_ENV === 'production')
+ throw new HttpError(404, 'Entwicklungsadapter deaktiviert.')
+ s.require(req.user, '*', 'queue')
+ try {
+ res.json(s.ingest(req.body))
+ } catch (e) {
+ s.audit(req.user.id, 'E-Mail-Verarbeitung fehlgeschlagen', 'development', null, {
+ error: e.name,
+ })
+ throw e
+ }
+ })
+ app.get('/api/dev/mail', (req, res) => {
+ if (process.env.NODE_ENV === 'production')
+ throw new HttpError(404, 'Entwicklungsadapter deaktiviert.')
+ s.require(req.user, '*', 'logs')
+ res.json(s.all('SELECT * FROM dev_mail ORDER BY created_at DESC LIMIT 100'))
+ })
+ app.use((e, req, res, next) => {
+ res.status(e.status || 500).json({
+ error: e.status
+ ? e.message
+ : 'Die Aktion konnte nicht ausgeführt werden. Bitte Eingaben und Serverkonfiguration prüfen.',
+ })
+ })
+ return { app, service: s }
+}
diff --git a/server/content.js b/server/content.js
new file mode 100644
index 0000000..0863bcc
--- /dev/null
+++ b/server/content.js
@@ -0,0 +1,130 @@
+import sanitizeHtml from 'sanitize-html'
+import { convert } from 'html-to-text'
+import { HttpError } from './service.js'
+import { expandSignature } from './signature-placeholders.js'
+export const escapeHtml = (value) =>
+ String(value).replace(
+ /[&<>"']/g,
+ (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c],
+ )
+export function safeHtml(html) {
+ return sanitizeHtml(html, {
+ allowedTags: [
+ 'p',
+ 'br',
+ 'b',
+ 'strong',
+ 'i',
+ 'em',
+ 'u',
+ 's',
+ 'div',
+ 'span',
+ 'a',
+ 'ul',
+ 'ol',
+ 'li',
+ 'table',
+ 'thead',
+ 'tbody',
+ 'tr',
+ 'td',
+ 'th',
+ 'img',
+ 'hr',
+ ],
+ allowedAttributes: {
+ '*': ['style'],
+ a: ['href', 'title'],
+ img: ['src', 'alt', 'width', 'height'],
+ td: ['colspan', 'rowspan'],
+ th: ['colspan', 'rowspan'],
+ },
+ allowedSchemes: ['https', 'http', 'mailto', 'tel'],
+ allowedSchemesByTag: { img: ['https', 'data'] },
+ allowProtocolRelative: false,
+ allowedStyles: {
+ '*': {
+ color: [/^#[0-9a-f]{3,8}$/i, /^[a-z]+$/i, /^rgb\([\d\s,]+\)$/i],
+ 'background-color': [/^#[0-9a-f]{3,8}$/i, /^[a-z]+$/i],
+ 'font-family': [/^[a-z\s,\-']+$/i],
+ 'font-size': [/^\d{1,2}(px|pt)$/],
+ 'font-weight': [/^(normal|bold|[1-9]00)$/],
+ 'text-align': [/^(left|right|center|justify)$/],
+ 'text-decoration': [/^(none|underline|line-through)$/],
+ 'line-height': [/^[\d.]+(px|em|%)?$/],
+ padding: [/^[\d\s.]+(px|pt)$/],
+ 'border-collapse': [/^(collapse|separate)$/],
+ },
+ },
+ transformTags: {
+ img: (tag, attribs) => {
+ if (
+ attribs.src?.startsWith('data:') &&
+ !/^data:image\/(png|jpeg|gif|webp);base64,[a-z\d+/=]+$/i.test(attribs.src)
+ )
+ delete attribs.src
+ return { tagName: tag, attribs }
+ },
+ },
+ })
+}
+export function plainHtml(html) {
+ return convert(html, {
+ wordwrap: false,
+ selectors: [
+ { selector: 'img', format: 'skip' },
+ { selector: 'a', options: { hideLinkHrefIfSameAsText: true } },
+ ],
+ }).trim()
+}
+export function signatureValue(s, context) {
+ return s?.format === 'html'
+ ? (() => {
+ const html = safeHtml(expandSignature(safeHtml(s.body), context, escapeHtml))
+ return { html, text: plainHtml(html) }
+ })()
+ : { html: null, text: expandSignature(s?.body || '', context) }
+}
+export function composeContent(body, signature, context) {
+ const sig = signatureValue(signature, context)
+ let base = body.trimEnd()
+ if (sig.text && base.endsWith(sig.text)) base = base.slice(0, -sig.text.length).trimEnd()
+ return {
+ text: base + (sig.text ? '\n\n' + sig.text : ''),
+ html: sig.html
+ ? `${escapeHtml(base).replace(/\n/g, ' ')}
${sig.html}`
+ : null,
+ }
+}
+export function normaliseAttachments(values = []) {
+ if (!Array.isArray(values) || values.length > 20)
+ throw new HttpError(400, 'Höchstens 20 Anhänge pro Nachricht.')
+ let total = 0
+ return values.map((a) => {
+ if (
+ !a ||
+ typeof a.content !== 'string' ||
+ a.content.length > 13981016 ||
+ a.content.length % 4 !== 0 ||
+ /[^a-z\d+/=]/i.test(a.content)
+ )
+ throw new HttpError(400, 'Ungültiger Anhang (maximal 10 MB pro Datei).')
+ const content = Buffer.from(a.content, 'base64')
+ if (content.length > 10 * 1024 * 1024 || content.toString('base64') !== a.content)
+ throw new HttpError(413, 'Anhang ist zu groß oder ungültig.')
+ total += content.length
+ if (total > 20 * 1024 * 1024)
+ throw new HttpError(413, 'Anhänge dürfen zusammen höchstens 20 MB groß sein.')
+ return {
+ name: String(a.name || 'Anhang')
+ .replace(/[\x00-\x1f\x7f/\\]/g, '_')
+ .slice(0, 200),
+ mime:
+ typeof a.mime === 'string' && /^[a-z\d!#$&^_.+-]+\/[a-z\d!#$&^_.+-]+$/i.test(a.mime)
+ ? a.mime
+ : 'application/octet-stream',
+ content,
+ }
+ })
+}
diff --git a/server/db.js b/server/db.js
new file mode 100644
index 0000000..ab766db
--- /dev/null
+++ b/server/db.js
@@ -0,0 +1,234 @@
+import Database from 'better-sqlite3'
+import { randomUUID, scryptSync, randomBytes, timingSafeEqual } from 'node:crypto'
+import { mkdirSync } from 'node:fs'
+import path from 'node:path'
+export const uid = () => randomUUID()
+export const now = () => new Date().toISOString()
+export const actions = [
+ 'view',
+ 'reply',
+ 'note',
+ 'status',
+ 'assign',
+ 'move',
+ 'goods',
+ 'queue',
+ 'statuses',
+ 'signatures',
+ 'users',
+ 'logs',
+]
+export const behaviors = [
+ 'new',
+ 'open',
+ 'active',
+ 'wait_customer',
+ 'wait_date',
+ 'wait_goods',
+ 'closed',
+]
+export function passwordHash(p) {
+ const salt = randomBytes(16).toString('hex')
+ return salt + ':' + scryptSync(p, salt, 64).toString('hex')
+}
+export function verifyPassword(p, hash) {
+ const [salt, h] = hash.split(':')
+ return timingSafeEqual(scryptSync(p, salt, 64), Buffer.from(h, 'hex'))
+}
+export function openDb(file = process.env.DB_PATH || 'data/syncova.db') {
+ if (file !== ':memory:') mkdirSync(path.dirname(file), { recursive: true })
+ const db = new Database(file)
+ db.pragma('journal_mode = WAL')
+ db.pragma('foreign_keys = ON')
+ db.exec(`
+ CREATE TABLE IF NOT EXISTS users(id TEXT PRIMARY KEY,name TEXT NOT NULL,email TEXT UNIQUE NOT NULL,password TEXT NOT NULL,active INTEGER NOT NULL DEFAULT 1,prefs TEXT NOT NULL DEFAULT '{}');
+ CREATE TABLE IF NOT EXISTS groups_(id TEXT PRIMARY KEY,name TEXT NOT NULL,permissions TEXT NOT NULL);
+ CREATE TABLE IF NOT EXISTS memberships(user_id TEXT REFERENCES users(id),group_id TEXT REFERENCES groups_(id),PRIMARY KEY(user_id,group_id));
+ CREATE TABLE IF NOT EXISTS sessions(id TEXT PRIMARY KEY,user_id TEXT REFERENCES users(id),expires TEXT NOT NULL);
+ CREATE TABLE IF NOT EXISTS queues(id TEXT PRIMARY KEY,name TEXT NOT NULL,color TEXT NOT NULL,addresses TEXT NOT NULL,signatures TEXT NOT NULL);
+ CREATE TABLE IF NOT EXISTS queue_mail(queue_id TEXT PRIMARY KEY REFERENCES queues(id),smtp TEXT NOT NULL,password TEXT NOT NULL DEFAULT '',acknowledgement TEXT NOT NULL);
+ CREATE TABLE IF NOT EXISTS queue_inbound(queue_id TEXT PRIMARY KEY REFERENCES queues(id),config TEXT NOT NULL,password TEXT NOT NULL DEFAULT '',next_run TEXT,last_run TEXT,last_success TEXT,error TEXT,revision INTEGER NOT NULL DEFAULT 0);
+ CREATE TABLE IF NOT EXISTS inbound_receipts(queue_id TEXT REFERENCES queues(id),mailbox_key TEXT NOT NULL,uid INTEGER NOT NULL,outcome TEXT NOT NULL DEFAULT 'imported',PRIMARY KEY(queue_id,mailbox_key,uid));
+ CREATE TABLE IF NOT EXISTS manual_requests(user_id TEXT REFERENCES users(id),request_key TEXT NOT NULL,ticket_id INTEGER REFERENCES tickets(id),PRIMARY KEY(user_id,request_key));
+ CREATE TABLE IF NOT EXISTS statuses(id TEXT PRIMARY KEY,queue_id TEXT REFERENCES queues(id),name TEXT NOT NULL,color TEXT NOT NULL,behavior TEXT NOT NULL,position INTEGER NOT NULL,active INTEGER NOT NULL DEFAULT 1);
+ CREATE TABLE IF NOT EXISTS tickets(id INTEGER PRIMARY KEY AUTOINCREMENT,subject TEXT NOT NULL,customer TEXT NOT NULL,customer_name TEXT NOT NULL,queue_id TEXT REFERENCES queues(id),status_id TEXT REFERENCES statuses(id),assignee TEXT REFERENCES users(id),due_at TEXT,timezone TEXT,revision INTEGER NOT NULL DEFAULT 0,created_at TEXT NOT NULL,updated_at TEXT NOT NULL);
+ CREATE TABLE IF NOT EXISTS messages(id TEXT PRIMARY KEY,ticket_id INTEGER REFERENCES tickets(id),kind TEXT NOT NULL,sender TEXT NOT NULL,recipient TEXT NOT NULL,body TEXT NOT NULL,message_id TEXT UNIQUE NOT NULL,refs TEXT NOT NULL DEFAULT '[]',created_at TEXT NOT NULL,delivery TEXT NOT NULL DEFAULT 'received');
+ CREATE TABLE IF NOT EXISTS attachments(id TEXT PRIMARY KEY,message_id TEXT REFERENCES messages(id),name TEXT NOT NULL,mime TEXT NOT NULL,content BLOB NOT NULL);
+ CREATE TABLE IF NOT EXISTS message_html(message_id TEXT PRIMARY KEY REFERENCES messages(id),html TEXT NOT NULL);
+ CREATE TABLE IF NOT EXISTS audits(id INTEGER PRIMARY KEY AUTOINCREMENT,ticket_id INTEGER REFERENCES tickets(id),queue_id TEXT,actor TEXT NOT NULL,action TEXT NOT NULL,entity TEXT NOT NULL,before_value TEXT,after_value TEXT,created_at TEXT NOT NULL);
+ CREATE TRIGGER IF NOT EXISTS audit_no_update BEFORE UPDATE ON audits BEGIN SELECT RAISE(ABORT,'Audit is immutable'); END;
+ CREATE TRIGGER IF NOT EXISTS audit_no_delete BEFORE DELETE ON audits BEGIN SELECT RAISE(ABORT,'Audit is immutable'); END;
+ CREATE TABLE IF NOT EXISTS notifications(id TEXT PRIMARY KEY,user_id TEXT REFERENCES users(id),ticket_id INTEGER REFERENCES tickets(id),event TEXT NOT NULL,event_key TEXT NOT NULL,title TEXT NOT NULL,is_read INTEGER NOT NULL DEFAULT 0,created_at TEXT NOT NULL,UNIQUE(user_id,event_key));
+ CREATE TABLE IF NOT EXISTS outbox(id TEXT PRIMARY KEY,message_id TEXT REFERENCES messages(id),notification_id TEXT REFERENCES notifications(id),payload TEXT NOT NULL,state TEXT NOT NULL DEFAULT 'pending',attempts INTEGER NOT NULL DEFAULT 0,next_at TEXT NOT NULL,error TEXT);
+ CREATE TABLE IF NOT EXISTS dev_mail(id TEXT PRIMARY KEY,payload TEXT NOT NULL,created_at TEXT NOT NULL);
+ CREATE INDEX IF NOT EXISTS tickets_due ON tickets(due_at);
+ CREATE INDEX IF NOT EXISTS messages_ticket ON messages(ticket_id);
+ CREATE INDEX IF NOT EXISTS notifications_user ON notifications(user_id);
+ `)
+ for (const column of ['phone', 'job_title', 'department'])
+ if (!db.pragma('table_info(users)').some((c) => c.name === column))
+ db.exec(`ALTER TABLE users ADD COLUMN ${column} TEXT NOT NULL DEFAULT ''`)
+ if (!db.pragma('table_info(queues)').some((c) => c.name === 'deleted_at'))
+ db.exec('ALTER TABLE queues ADD COLUMN deleted_at TEXT')
+ if (!db.pragma('table_info(users)').some((c) => c.name === 'deleted_at'))
+ db.exec('ALTER TABLE users ADD COLUMN deleted_at TEXT')
+ if (!db.pragma('table_info(inbound_receipts)').some((column) => column.name === 'outcome'))
+ db.exec("ALTER TABLE inbound_receipts ADD COLUMN outcome TEXT NOT NULL DEFAULT 'imported'")
+ return db
+}
+export function createQueue(db, { id = uid(), name, color = '#0f766e', addresses, signatures }) {
+ db.prepare('INSERT INTO queues(id,name,color,addresses,signatures) VALUES(?,?,?,?,?)').run(
+ id,
+ name,
+ color,
+ JSON.stringify(addresses),
+ JSON.stringify(signatures),
+ )
+ const names = [
+ 'Neu',
+ 'Offen',
+ 'In Bearbeitung',
+ 'Warten auf Kunde',
+ 'Warten auf Termin',
+ 'Warten auf Ware',
+ 'Erledigt',
+ ]
+ const colors = ['#3b82f6', '#0d9488', '#8b5cf6', '#d97706', '#6366f1', '#c26b31', '#64748b']
+ names.forEach((n, i) =>
+ db
+ .prepare('INSERT INTO statuses VALUES(?,?,?,?,?,?,1)')
+ .run(uid(), id, n, colors[i], behaviors[i], i),
+ )
+ return id
+}
+export function seed(db) {
+ if (db.prepare('SELECT count(*) n FROM users').get().n) return
+ if (process.env.NODE_ENV === 'production' && !process.env.ADMIN_PASSWORD)
+ throw Error('ADMIN_PASSWORD ist für die Ersteinrichtung erforderlich.')
+ db.transaction(() => {
+ db.prepare('INSERT INTO users(id,name,email,password) VALUES(?,?,?,?)').run(
+ 'admin',
+ 'Jana Weber',
+ process.env.ADMIN_EMAIL || 'admin@syncova.local',
+ passwordHash(process.env.ADMIN_PASSWORD || 'Syncova-Demo-2026!'),
+ )
+ db.prepare('INSERT INTO groups_ VALUES(?,?,?)').run(
+ 'admins',
+ 'Administrator',
+ JSON.stringify({ '*': actions }),
+ )
+ db.prepare('INSERT INTO memberships VALUES(?,?)').run('admin', 'admins')
+ for (const [id, name, email, color] of [
+ ['support', 'Support', 'support@syncova.local', '#0d9488'],
+ ['vertrieb', 'Vertrieb', 'vertrieb@syncova.local', '#8b5cf6'],
+ ['service', 'Service', 'service@syncova.local', '#d97706'],
+ ]) {
+ createQueue(db, {
+ id,
+ name,
+ color,
+ addresses: [
+ { email, incoming: true, outgoing: true, default: true },
+ { email: `${id}.team@syncova.local`, incoming: true, outgoing: true, default: false },
+ ],
+ signatures: [
+ {
+ id: uid(),
+ name: 'Standard',
+ body: `Freundliche Grüße\nIhr ${name}-Team\nSyncova`,
+ default: true,
+ },
+ ],
+ })
+ }
+ for (const [id, name, perms] of [
+ ['manager', 'Queue-Verantwortlicher', actions.filter((a) => a !== 'users')],
+ ['agent', 'Bearbeiter', ['view', 'reply', 'note', 'status', 'assign', 'move', 'goods']],
+ ['reader', 'Leser', ['view']],
+ ])
+ db.prepare('INSERT INTO groups_ VALUES(?,?,?)').run(
+ id,
+ name,
+ JSON.stringify({ support: perms }),
+ )
+ if (process.env.NODE_ENV !== 'production') {
+ for (const [id, name, email, group] of [
+ ['leon', 'Leon Fischer', 'leon@syncova.local', 'agent'],
+ ['mira', 'Mira Hoffmann', 'mira@syncova.local', 'reader'],
+ ]) {
+ db.prepare('INSERT INTO users(id,name,email,password) VALUES(?,?,?,?)').run(
+ id,
+ name,
+ email,
+ passwordHash('Syncova-Demo-2026!'),
+ )
+ db.prepare('INSERT INTO memberships VALUES(?,?)').run(id, group)
+ }
+ const subjects = [
+ 'Rückfrage zu meiner Bestellung #8042',
+ 'Zugang zum Kundenportal nicht möglich',
+ 'Angebot für 25 Arbeitsplätze',
+ 'Liefertermin für Ersatzteile',
+ 'Rechnungskorrektur für Oktober',
+ 'Vielen Dank für die schnelle Hilfe',
+ 'Frage zur Einrichtung der Schnittstelle',
+ 'Austauschgerät noch nicht angekommen',
+ ]
+ subjects.forEach((subject, i) => {
+ const q = i === 2 ? 'vertrieb' : i === 3 || i === 7 ? 'service' : 'support'
+ const behavior = [
+ 'new',
+ 'open',
+ 'open',
+ 'wait_goods',
+ 'active',
+ 'closed',
+ 'wait_customer',
+ 'wait_date',
+ ][i]
+ const status = db
+ .prepare('SELECT id FROM statuses WHERE queue_id=? AND behavior=?')
+ .get(q, behavior)
+ const at = new Date(Date.now() - (i + 1) * 3500000).toISOString()
+ const name = [
+ 'Anna Bergmann',
+ 'Thomas Klein',
+ 'Sarah Wagner',
+ 'Michael Braun',
+ 'Laura Schneider',
+ 'Felix Richter',
+ 'Julia Neumann',
+ 'David Schulz',
+ ][i]
+ const id = db
+ .prepare(
+ 'INSERT INTO tickets(subject,customer,customer_name,queue_id,status_id,assignee,due_at,timezone,created_at,updated_at) VALUES(?,?,?,?,?,?,?,?,?,?)',
+ )
+ .run(
+ subject,
+ `kunde${i + 1}@example.com`,
+ name,
+ q,
+ status.id,
+ i % 2 ? 'admin' : null,
+ behavior === 'wait_date' ? new Date(Date.now() + 86400000).toISOString() : null,
+ behavior === 'wait_date' ? 'Europe/Berlin' : null,
+ at,
+ at,
+ ).lastInsertRowid
+ db.prepare(
+ 'INSERT INTO messages(id,ticket_id,kind,sender,recipient,body,message_id,created_at) VALUES(?,?,?,?,?,?,?,?)',
+ ).run(
+ uid(),
+ id,
+ 'incoming',
+ `kunde${i + 1}@example.com`,
+ `${q}@syncova.local`,
+ `Guten Tag,\n\n${subject}. Können Sie mir hierzu bitte weiterhelfen?\n\nVielen Dank und freundliche Grüße\n${name}`,
+ ``,
+ at,
+ )
+ })
+ }
+ })()
+}
diff --git a/server/import-data.js b/server/import-data.js
new file mode 100644
index 0000000..e8fe9a3
--- /dev/null
+++ b/server/import-data.js
@@ -0,0 +1,33 @@
+// One-shot import into a NEW Docker volume. Stop the source server before running.
+import { existsSync, copyFileSync, chmodSync, constants } from 'node:fs'
+import path from 'node:path'
+import Database from 'better-sqlite3'
+import { decryptSecret } from './secrets.js'
+const source = '/import',
+ target = path.dirname(process.env.DB_PATH || '/app/data/syncova.db')
+if (existsSync(path.join(target, 'syncova.db')))
+ throw Error('Ziel enthält bereits eine Datenbank. Es wird nichts überschrieben.')
+if (!existsSync(path.join(source, 'syncova.db')))
+ throw Error('Quelldatei /import/syncova.db fehlt.')
+for (const file of ['syncova.db', 'syncova.db-wal', 'smtp.key'])
+ if (existsSync(path.join(source, file))) {
+ copyFileSync(path.join(source, file), path.join(target, file), constants.COPYFILE_EXCL)
+ chmodSync(path.join(target, file), 0o600)
+ }
+const db = new Database(path.join(target, 'syncova.db'))
+try {
+ for (const table of ['queue_mail', 'queue_inbound'])
+ if (db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name=?").get(table)) {
+ const row = db.prepare(`SELECT password FROM ${table} WHERE password!='' LIMIT 1`).get()
+ if (row && !process.env.SMTP_ENCRYPTION_KEY && !existsSync(path.join(target, 'smtp.key')))
+ throw Error('Mail-Schlüssel fehlt. smtp.key übernehmen oder SMTP_ENCRYPTION_KEY setzen.')
+ if (row && !decryptSecret(row.password)) throw Error('Mail-Schlüssel fehlt oder passt nicht.')
+ }
+ if (db.pragma('integrity_check', { simple: true }) !== 'ok')
+ throw Error('Datenbankprüfung fehlgeschlagen.')
+} finally {
+ db.close()
+}
+console.log(
+ 'Import erfolgreich: Datenbank, Nachrichten, Anhänge, Konfiguration und Mail-Schlüssel übernommen. Bestehende Benutzerkonten bleiben gültig.',
+)
diff --git a/server/inbound.js b/server/inbound.js
new file mode 100644
index 0000000..e03a3c2
--- /dev/null
+++ b/server/inbound.js
@@ -0,0 +1,407 @@
+import { ImapFlow } from 'imapflow'
+import { simpleParser } from 'mailparser'
+import { CronExpressionParser } from 'cron-parser'
+import { encryptSecret, decryptSecret } from './secrets.js'
+import { HttpError } from './service.js'
+import { now } from './db.js'
+export function nextFetch(config, at = new Date()) {
+ if (!config.enabled) return null
+ if (config.schedule.mode === 'interval')
+ return new Date(+at + config.schedule.seconds * 1000).toISOString()
+ return CronExpressionParser.parse(config.schedule.cron, {
+ currentDate: at,
+ tz: config.schedule.timezone,
+ })
+ .next()
+ .toDate()
+ .toISOString()
+}
+function ensure(s, id) {
+ s.queue(id)
+ let row = s.get('SELECT * FROM queue_inbound WHERE queue_id=?', id)
+ if (!row) {
+ const config = {
+ enabled: !!process.env.IMAP_HOST,
+ host: process.env.IMAP_HOST || '',
+ port: Number(process.env.IMAP_PORT || 993),
+ security: 'tls',
+ username: process.env.IMAP_USER || '',
+ folder: 'INBOX',
+ onlyUnread: true,
+ markRead: true,
+ schedule: { mode: 'interval', seconds: 30, cron: '* * * * *', timezone: 'Europe/Berlin' },
+ }
+ s.run(
+ 'INSERT INTO queue_inbound(queue_id,config,password,next_run) VALUES(?,?,?,?)',
+ id,
+ JSON.stringify(config),
+ process.env.IMAP_PASSWORD ? encryptSecret(process.env.IMAP_PASSWORD) : '',
+ config.enabled ? now() : null,
+ )
+ row = s.get('SELECT * FROM queue_inbound WHERE queue_id=?', id)
+ }
+ return row
+}
+export function inboundSettings(s, id) {
+ const r = ensure(s, id)
+ return {
+ ...JSON.parse(r.config),
+ passwordSet: !!r.password,
+ runtime: {
+ nextRun: r.next_run,
+ lastRun: r.last_run,
+ lastSuccess: r.last_success,
+ error: r.error,
+ },
+ }
+}
+export function saveInbound(s, user, id, data, password) {
+ s.require(user, id, 'queue')
+ const row = ensure(s, id),
+ before = inboundSettings(s, id)
+ if (
+ !data ||
+ typeof data.enabled !== 'boolean' ||
+ !['tls', 'starttls'].includes(data.security) ||
+ typeof data.host !== 'string' ||
+ typeof data.username !== 'string' ||
+ !Number.isInteger(Number(data.port)) ||
+ Number(data.port) < 1 ||
+ Number(data.port) > 65535 ||
+ typeof data.folder !== 'string' ||
+ !data.folder.trim() ||
+ data.folder.length > 200 ||
+ /[\r\n\0]/.test(data.folder) ||
+ typeof data.onlyUnread !== 'boolean' ||
+ typeof data.markRead !== 'boolean'
+ )
+ throw new HttpError(400, 'Gültige IMAP-Einstellungen und einen Postfachordner angeben.')
+ if (data.enabled && (!/^[a-z0-9][a-z0-9.:-]*$/i.test(data.host) || !data.username.trim()))
+ throw new HttpError(400, 'IMAP-Server und Benutzername fehlen.')
+ const p = data.schedule
+ if (
+ !p ||
+ !['interval', 'cron'].includes(p.mode) ||
+ !Number.isInteger(Number(p.seconds)) ||
+ Number(p.seconds) < 15 ||
+ Number(p.seconds) > 86400 ||
+ typeof p.cron !== 'string' ||
+ p.cron.length > 120 ||
+ typeof p.timezone !== 'string'
+ )
+ throw new HttpError(400, 'Abrufintervall muss zwischen 15 und 86.400 Sekunden liegen.')
+ try {
+ new Intl.DateTimeFormat('de', { timeZone: p.timezone }).format()
+ if (!p.timezone) throw Error()
+ if (p.mode === 'cron') {
+ if (p.cron.trim().split(/\s+/).length !== 5 || /[H?]/.test(p.cron)) throw Error()
+ CronExpressionParser.parse(p.cron, { currentDate: new Date(), tz: p.timezone }).next()
+ }
+ } catch {
+ throw new HttpError(
+ 400,
+ 'Gültigen Cron-Ausdruck mit fünf Feldern und eine IANA-Zeitzone angeben.',
+ )
+ }
+ if (password !== undefined && (typeof password !== 'string' || password.length > 1024))
+ throw new HttpError(400, 'Ungültiges IMAP-Passwort.')
+ if (
+ row.password &&
+ data.enabled &&
+ !password &&
+ (before.host !== data.host.trim() || before.username !== data.username.trim())
+ )
+ throw new HttpError(
+ 400,
+ 'Bei geändertem IMAP-Server oder Benutzer das Passwort erneut eingeben.',
+ )
+ const secret = password ? encryptSecret(password) : row.password
+ if (data.enabled && !secret) throw new HttpError(400, 'IMAP-Passwort erforderlich.')
+ const config = {
+ enabled: data.enabled,
+ host: data.host.trim(),
+ port: Number(data.port),
+ security: data.security,
+ username: data.username.trim(),
+ folder: data.folder.trim(),
+ onlyUnread: data.onlyUnread,
+ markRead: data.markRead,
+ schedule: {
+ mode: p.mode,
+ seconds: Number(p.seconds),
+ cron: p.cron.trim(),
+ timezone: p.timezone,
+ },
+ }
+ s.run(
+ 'UPDATE queue_inbound SET config=?,password=?,next_run=?,error=NULL,revision=revision+1 WHERE queue_id=?',
+ JSON.stringify(config),
+ secret,
+ nextFetch(config),
+ id,
+ )
+ const after = inboundSettings(s, id)
+ s.audit(
+ user.id,
+ 'IMAP und Abrufzeitplan konfiguriert',
+ id,
+ before,
+ { ...after, passwordChanged: !!password },
+ null,
+ id,
+ )
+ return after
+}
+export function imapOptions(s, id) {
+ const r = ensure(s, id),
+ c = JSON.parse(r.config)
+ if (!c.enabled) throw new HttpError(400, 'IMAP-Empfang ist für diese Queue deaktiviert.')
+ return {
+ host: c.host,
+ port: c.port,
+ secure: c.security === 'tls',
+ doSTARTTLS: c.security === 'starttls',
+ auth: { user: c.username, pass: decryptSecret(r.password) },
+ connectionTimeout: 10000,
+ greetingTimeout: 10000,
+ socketTimeout: 30000,
+ logger: false,
+ }
+}
+export class InboundWorker {
+ constructor(
+ s,
+ { clientFactory = (options) => new ImapFlow(options), clock = () => new Date() } = {},
+ ) {
+ this.s = s
+ this.clientFactory = clientFactory
+ this.clock = clock
+ this.running = new Set()
+ }
+ async verify(user, id) {
+ this.s.require(user, id, 'queue')
+ const c = inboundSettings(this.s, id),
+ client = this.clientFactory(imapOptions(this.s, id))
+ try {
+ await client.connect()
+ const lock = await client.getMailboxLock(c.folder)
+ lock.release()
+ await client.logout()
+ this.s.audit(user.id, 'IMAP-Verbindung geprüft', id, null, { success: true }, null, id)
+ return {
+ ok: true,
+ message:
+ 'IMAP-Anmeldung und Postfachzugriff erfolgreich. Keine Nachrichten wurden importiert.',
+ }
+ } catch (e) {
+ this.s.audit(
+ user.id,
+ 'IMAP-Verbindungsprüfung fehlgeschlagen',
+ id,
+ null,
+ { code: String(e.code || 'unknown') },
+ null,
+ id,
+ )
+ throw new HttpError(
+ 400,
+ 'IMAP-Verbindung fehlgeschlagen. Server, TLS, Zugangsdaten und Ordner prüfen.',
+ )
+ } finally {
+ client.close()
+ }
+ }
+ async due() {
+ const jobs = []
+ for (const q of this.s.all('SELECT id FROM queues WHERE deleted_at IS NULL')) {
+ const r = ensure(this.s, q.id)
+ if (
+ JSON.parse(r.config).enabled &&
+ r.next_run &&
+ r.next_run <= this.clock().toISOString() &&
+ !this.running.has(q.id)
+ )
+ jobs.push(this.run(q.id).catch(() => {}))
+ }
+ await Promise.all(jobs)
+ }
+ async run(id, { actor = 'IMAP-Abrufprozess' } = {}) {
+ if (this.running.has(id)) throw new HttpError(409, 'Für diese Queue läuft bereits ein Abruf.')
+ const row = ensure(this.s, id),
+ config = JSON.parse(row.config)
+ if (!config.enabled) throw new HttpError(400, 'IMAP-Empfang ist deaktiviert.')
+ this.running.add(id)
+ let client,
+ imported = 0,
+ failed = 0
+ const started = this.clock().toISOString()
+ this.s.run(
+ 'UPDATE queue_inbound SET last_run=?,next_run=? WHERE queue_id=? AND revision=?',
+ started,
+ started,
+ id,
+ row.revision,
+ )
+ try {
+ client = this.clientFactory(imapOptions(this.s, id))
+ await client.connect()
+ const lock = await client.getMailboxLock(config.folder)
+ try {
+ const addresses = this.s
+ .queue(id)
+ .addresses.filter((a) => a.incoming)
+ .map((a) => a.email.toLowerCase())
+ .sort()
+ const validity = String(client.mailbox.uidValidity),
+ mailboxKey = JSON.stringify([
+ config.host,
+ config.port,
+ config.username,
+ config.folder,
+ validity,
+ addresses,
+ ])
+ const ids =
+ (await client.search(config.onlyUnread ? { seen: false } : { all: true }, {
+ uid: true,
+ })) || []
+ if (
+ this.s.get('SELECT revision FROM queue_inbound WHERE queue_id=?', id).revision !==
+ row.revision
+ )
+ return {
+ ok: false,
+ imported: 0,
+ failed: 0,
+ message: 'Abruf wegen geänderter Mail-Einstellungen beendet.',
+ }
+ const storedReceipts = this.s.all(
+ 'SELECT uid,outcome FROM inbound_receipts WHERE queue_id=? AND mailbox_key=?',
+ id,
+ mailboxKey,
+ )
+ const receipts = new Set(storedReceipts.map((r) => r.uid))
+ const processed = new Set(
+ storedReceipts.filter((r) => r.outcome !== 'skipped').map((r) => r.uid),
+ )
+ const known = ids.filter((uid) => processed.has(uid))
+ if (config.markRead && known.length)
+ await client.messageFlagsAdd(known.slice(0, 100), ['\\Seen'], { uid: true })
+ for (const uid of ids.filter((uid) => !receipts.has(uid)).slice(0, 100)) {
+ if (
+ this.s.get('SELECT revision FROM queue_inbound WHERE queue_id=?', id).revision !==
+ row.revision
+ )
+ break
+ try {
+ const meta = await client.fetchOne(uid, { size: true }, { uid: true })
+ if (!meta) continue
+ if (meta.size > 20 * 1024 * 1024) throw Error('MessageTooLarge')
+ const message = await client.fetchOne(uid, { source: true }, { uid: true })
+ if (!message) continue
+ if (message.source.length > 20 * 1024 * 1024) throw Error('MessageTooLarge')
+ const p = await simpleParser(message.source)
+ const to = [...(p.to?.value || []), ...(p.cc?.value || [])]
+ .map((x) => x.address)
+ .filter(Boolean)
+ if (
+ this.s.get('SELECT revision FROM queue_inbound WHERE queue_id=?', id).revision !==
+ row.revision
+ )
+ break
+ if (!to.some((a) => addresses.includes(a.toLowerCase()))) {
+ this.s.run(
+ "INSERT OR IGNORE INTO inbound_receipts VALUES(?,?,?,'skipped')",
+ id,
+ mailboxKey,
+ uid,
+ )
+ continue
+ }
+ const data = {
+ messageId: p.messageId,
+ from: p.from?.value[0]?.address,
+ name: p.from?.value[0]?.name,
+ to,
+ subject: p.subject,
+ body: p.text || '(HTML-Nachricht ohne Textalternative)',
+ inReplyTo: p.inReplyTo,
+ references: typeof p.references === 'string' ? [p.references] : p.references || [],
+ autoSubmitted: p.headers.get('auto-submitted'),
+ precedence: p.headers.get('precedence'),
+ attachments: p.attachments.map((a) => ({
+ name: a.filename,
+ mime: a.contentType,
+ content: a.content.toString('base64'),
+ })),
+ }
+ const result = this.s.tx(() => {
+ const r = this.s.ingest(data, id)
+ this.s.run(
+ "INSERT OR IGNORE INTO inbound_receipts VALUES(?,?,?,'imported')",
+ id,
+ mailboxKey,
+ uid,
+ )
+ return r
+ })
+ if (!result.ignored && !result.duplicate) imported++
+ if (config.markRead) await client.messageFlagsAdd(uid, ['\\Seen'], { uid: true })
+ } catch (e) {
+ failed++
+ this.s.audit(
+ actor,
+ 'Nachricht konnte nicht importiert werden',
+ `${id}:${uid}`,
+ null,
+ { code: String(e.code || e.name || 'Error') },
+ null,
+ id,
+ )
+ }
+ }
+ } finally {
+ lock.release()
+ }
+ await client.logout()
+ this.s.run(
+ 'UPDATE queue_inbound SET last_success=?,error=?,next_run=? WHERE queue_id=? AND revision=?',
+ failed ? row.last_success : this.clock().toISOString(),
+ failed
+ ? `${failed} Nachricht(en) konnten nicht verarbeitet werden. Systemprotokoll prüfen.`
+ : null,
+ nextFetch(config, this.clock()),
+ id,
+ row.revision,
+ )
+ this.s.audit(actor, 'Postfach abgerufen', id, null, { imported, failed }, null, id)
+ return {
+ ok: !failed,
+ imported,
+ failed,
+ message: `Abruf abgeschlossen: ${imported} neue Nachricht(en), ${failed} Fehler.`,
+ }
+ } catch (e) {
+ this.s.run(
+ 'UPDATE queue_inbound SET error=?,next_run=? WHERE queue_id=? AND revision=?',
+ 'Abruf fehlgeschlagen. Zugangsdaten und Ordner prüfen.',
+ nextFetch(config, this.clock()),
+ id,
+ row.revision,
+ )
+ this.s.audit(
+ actor,
+ 'Postfachabruf fehlgeschlagen',
+ id,
+ null,
+ { code: String(e.code || e.name || 'Error') },
+ null,
+ id,
+ )
+ throw new HttpError(400, 'Postfachabruf fehlgeschlagen. Zugangsdaten und Ordner prüfen.')
+ } finally {
+ this.running.delete(id)
+ client?.close()
+ }
+ }
+}
diff --git a/server/index.js b/server/index.js
new file mode 100644
index 0000000..fb82a61
--- /dev/null
+++ b/server/index.js
@@ -0,0 +1,27 @@
+import 'dotenv/config'
+import express from 'express'
+import path from 'node:path'
+import { openDb, seed } from './db.js'
+import { createApp } from './app.js'
+import { Worker } from './worker.js'
+const db = openDb()
+seed(db)
+const { app, service } = createApp(db)
+const worker = new Worker(service)
+app.locals.worker = worker
+app.use(express.static(path.resolve('dist')))
+app.get('/{*path}', (req, res) => res.sendFile(path.resolve('dist/index.html')))
+const server = app.listen(Number(process.env.PORT || 3001), process.env.HOST || '127.0.0.1', () => {
+ console.log(
+ `Syncova Ticket: http://127.0.0.1:${process.env.PORT || 3001} · E-Mail: ${process.env.MAIL_MODE || 'development'}`,
+ )
+ worker.start()
+})
+for (const signal of ['SIGINT', 'SIGTERM'])
+ process.on(signal, () => {
+ worker.stop()
+ server.close(() => {
+ db.close()
+ process.exit(0)
+ })
+ })
diff --git a/server/mail-config.js b/server/mail-config.js
new file mode 100644
index 0000000..1e0005a
--- /dev/null
+++ b/server/mail-config.js
@@ -0,0 +1,256 @@
+import nodemailer from 'nodemailer'
+import { encryptSecret, decryptSecret } from './secrets.js'
+import { HttpError } from './service.js'
+import { uid, now } from './db.js'
+import { inboundSettings, saveInbound } from './inbound.js'
+import { composeContent } from './content.js'
+import { signatureContext } from './signature-placeholders.js'
+export const defaultAcknowledgement = {
+ enabled: false,
+ subject: 'Ihre Anfrage {ticketnummer} ist eingegangen',
+ body: 'Guten Tag {kundenname},\n\nvielen Dank für Ihre Nachricht. Wir haben Ihre Anfrage erhalten und bearbeiten sie schnellstmöglich.\n\nIhre Ticketnummer: {ticketnummer}',
+ includeSignature: true,
+}
+export function mailSettings(s, id) {
+ const row = s.get('SELECT * FROM queue_mail WHERE queue_id=?', id)
+ return {
+ imap: inboundSettings(s, id),
+ smtp: row
+ ? JSON.parse(row.smtp)
+ : {
+ mode: process.env.MAIL_MODE === 'smtp' ? 'legacy' : 'development',
+ host: '',
+ port: 465,
+ security: 'tls',
+ username: '',
+ },
+ passwordSet: !!row?.password,
+ acknowledgement: row ? JSON.parse(row.acknowledgement) : { ...defaultAcknowledgement },
+ }
+}
+export function readMailSettings(s, user, id) {
+ s.require(user, id, 'queue')
+ s.queue(id)
+ return mailSettings(s, id)
+}
+export function saveMailSettings(s, user, id, data) {
+ return s.tx(() => {
+ s.require(user, id, 'queue')
+ s.queue(id)
+ const before = mailSettings(s, id),
+ smtp = data.smtp,
+ ack = data.acknowledgement || before.acknowledgement
+ if (
+ !smtp ||
+ !['smtp', 'development', 'legacy'].includes(smtp.mode) ||
+ !['tls', 'starttls'].includes(smtp.security) ||
+ !Number.isInteger(Number(smtp.port)) ||
+ Number(smtp.port) < 1 ||
+ Number(smtp.port) > 65535
+ )
+ throw new HttpError(400, 'Gültigen Versandmodus, Port und TLS-Modus auswählen.')
+ if (smtp.mode === 'legacy' && before.smtp.mode !== 'legacy')
+ throw new HttpError(400, 'Globale SMTP-Konfiguration ist nicht verfügbar.')
+ if (
+ smtp.mode === 'smtp' &&
+ (!/^[a-z0-9][a-z0-9.:-]*$/i.test(smtp.host || '') || !smtp.username?.trim())
+ )
+ throw new HttpError(400, 'SMTP-Server und Benutzername sind erforderlich.')
+ if (
+ typeof ack.enabled !== 'boolean' ||
+ typeof ack.includeSignature !== 'boolean' ||
+ typeof ack.subject !== 'string' ||
+ typeof ack.body !== 'string' ||
+ !ack.subject.trim() ||
+ !ack.body.trim() ||
+ ack.subject.length > 500 ||
+ ack.body.length > 20000 ||
+ /[\r\n]/.test(ack.subject)
+ )
+ throw new HttpError(
+ 400,
+ 'Betreff und Text der Eingangsbestätigung ausfüllen (max. 500 / 20.000 Zeichen).',
+ )
+ const tokens = (ack.subject + ' ' + ack.body).match(/\{[^{}]+\}/g) || []
+ if (tokens.some((t) => !['{ticketnummer}', '{betreff}', '{kundenname}', '{queue}'].includes(t)))
+ throw new HttpError(400, 'Unbekannter Platzhalter in der Eingangsbestätigung.')
+ if (
+ data.password !== undefined &&
+ (typeof data.password !== 'string' || data.password.length > 1024)
+ )
+ throw new HttpError(400, 'Ungültiges SMTP-Passwort.')
+ const old = s.get('SELECT password FROM queue_mail WHERE queue_id=?', id)
+ if (
+ old?.password &&
+ smtp.mode === 'smtp' &&
+ !data.password &&
+ (smtp.host.trim() !== before.smtp.host || smtp.username.trim() !== before.smtp.username)
+ )
+ throw new HttpError(
+ 400,
+ 'Bei einem anderen SMTP-Server oder Benutzernamen das Passwort erneut eingeben.',
+ )
+ let password = data.clearPassword ? '' : old?.password || ''
+ if (data.password) password = encryptSecret(data.password)
+ if (smtp.mode === 'smtp' && !password)
+ throw new HttpError(400, 'Ein SMTP-Passwort ist erforderlich.')
+ const clean = {
+ mode: smtp.mode,
+ host: String(smtp.host || '').trim(),
+ port: Number(smtp.port),
+ security: smtp.security,
+ username: String(smtp.username || '').trim(),
+ }
+ const cleanAck = {
+ enabled: ack.enabled,
+ subject: ack.subject.trim(),
+ body: ack.body.trim(),
+ includeSignature: ack.includeSignature,
+ }
+ s.run(
+ 'INSERT INTO queue_mail VALUES(?,?,?,?) ON CONFLICT(queue_id) DO UPDATE SET smtp=excluded.smtp,password=excluded.password,acknowledgement=excluded.acknowledgement',
+ id,
+ JSON.stringify(clean),
+ password,
+ JSON.stringify(cleanAck),
+ )
+ if (data.imap) saveInbound(s, user, id, data.imap, data.imapPassword)
+ const after = mailSettings(s, id)
+ s.audit(
+ user.id,
+ 'SMTP und Eingangsbestätigung konfiguriert',
+ id,
+ before,
+ { ...after, passwordChanged: !!data.password || !!data.clearPassword },
+ null,
+ id,
+ )
+ return after
+ })
+}
+export function smtpTransport(s, id, factory = nodemailer.createTransport) {
+ const row = s.get('SELECT * FROM queue_mail WHERE queue_id=?', id)
+ const smtp = row ? JSON.parse(row.smtp) : null
+ if (smtp?.mode === 'development' || (!smtp && process.env.MAIL_MODE !== 'smtp')) return null
+ if (!smtp || smtp.mode === 'legacy')
+ return factory({
+ host: process.env.SMTP_HOST,
+ port: Number(process.env.SMTP_PORT || 465),
+ secure: process.env.SMTP_TLS !== 'false',
+ requireTLS: process.env.SMTP_TLS === 'false',
+ auth: { user: process.env.SMTP_USER, pass: process.env.SMTP_PASSWORD },
+ connectionTimeout: 10000,
+ greetingTimeout: 10000,
+ socketTimeout: 30000,
+ disableFileAccess: true,
+ disableUrlAccess: true,
+ })
+ return factory({
+ host: smtp.host,
+ port: smtp.port,
+ secure: smtp.security === 'tls',
+ requireTLS: smtp.security === 'starttls',
+ auth: { user: smtp.username, pass: decryptSecret(row.password) },
+ connectionTimeout: 10000,
+ greetingTimeout: 10000,
+ socketTimeout: 30000,
+ disableFileAccess: true,
+ disableUrlAccess: true,
+ })
+}
+export async function verifySmtp(s, user, id) {
+ s.require(user, id, 'queue')
+ s.queue(id)
+ const transport = smtpTransport(s, id)
+ if (!transport) throw new HttpError(400, 'Für diese Queue ist der Entwicklungsadapter aktiv.')
+ try {
+ await transport.verify()
+ s.audit(user.id, 'SMTP-Verbindung geprüft', id, null, { success: true }, null, id)
+ return {
+ ok: true,
+ message: 'Verbindung und Anmeldung erfolgreich. Es wurde keine E-Mail gesendet.',
+ }
+ } catch (e) {
+ s.audit(
+ user.id,
+ 'SMTP-Verbindungsprüfung fehlgeschlagen',
+ id,
+ null,
+ { success: false, code: String(e.code || 'unknown') },
+ null,
+ id,
+ )
+ throw new HttpError(
+ 400,
+ 'SMTP-Verbindung fehlgeschlagen. Server, Port, TLS-Modus und Zugangsdaten prüfen.',
+ )
+ } finally {
+ transport.close?.()
+ }
+}
+export function acknowledge(s, t, incoming) {
+ const q = s.queue(t.queue_id),
+ config = mailSettings(s, q.id).acknowledgement
+ if (!config.enabled) return
+ const sender = q.addresses.find((a) => a.outgoing && a.default)
+ if (!sender) throw new HttpError(409, 'Standardabsender für die Eingangsbestätigung fehlt.')
+ const values = {
+ ticketnummer: `SYN-${String(t.id).padStart(5, '0')}`,
+ betreff: t.subject,
+ kundenname: t.customer_name,
+ queue: q.name,
+ }
+ const render = (v) =>
+ v.replace(/\{(ticketnummer|betreff|kundenname|queue)\}/g, (_, k) => values[k])
+ const signature = config.includeSignature ? q.signatures.find((x) => x.default) : null
+ const content = composeContent(
+ render(config.body),
+ signature,
+ signatureContext(s, null, q, t, sender.email),
+ )
+ const body = content.text
+ const subject = render(config.subject)
+ .replace(/[\r\n]/g, ' ')
+ .slice(0, 998),
+ messageId = ``,
+ id = uid()
+ s.run(
+ 'INSERT INTO messages VALUES(?,?,?,?,?,?,?,?,?,?)',
+ id,
+ t.id,
+ 'outgoing',
+ sender.email,
+ t.customer,
+ body,
+ messageId,
+ JSON.stringify([incoming.messageId]),
+ now(),
+ 'queued',
+ )
+ s.run(
+ 'INSERT INTO outbox(id,message_id,payload,next_at) VALUES(?,?,?,?)',
+ uid(),
+ id,
+ JSON.stringify({
+ from: sender.email,
+ to: t.customer,
+ subject,
+ text: body,
+ ...(content.html ? { html: content.html } : {}),
+ messageId,
+ inReplyTo: incoming.messageId,
+ references: [incoming.messageId],
+ }),
+ now(),
+ )
+ if (content.html) s.run('INSERT INTO message_html VALUES(?,?)', id, content.html)
+ s.audit(
+ 'Eingangsbestätigung',
+ 'Automatische Eingangsbestätigung vorgemerkt',
+ id,
+ null,
+ { from: sender.email, messageId },
+ t.id,
+ t.queue_id,
+ )
+}
diff --git a/server/secrets.js b/server/secrets.js
new file mode 100644
index 0000000..8e49de0
--- /dev/null
+++ b/server/secrets.js
@@ -0,0 +1,40 @@
+import { createCipheriv, createDecipheriv, randomBytes } from 'node:crypto'
+import { mkdirSync, readFileSync, writeFileSync } from 'node:fs'
+import path from 'node:path'
+function key() {
+ if (process.env.SMTP_ENCRYPTION_KEY) {
+ if (!/^[a-f0-9]{64}$/i.test(process.env.SMTP_ENCRYPTION_KEY))
+ throw Error('SMTP_ENCRYPTION_KEY muss 32 Byte in Hex enthalten.')
+ return Buffer.from(process.env.SMTP_ENCRYPTION_KEY, 'hex')
+ }
+ const file =
+ process.env.SMTP_KEY_FILE ||
+ path.join(path.dirname(process.env.DB_PATH || 'data/syncova.db'), 'smtp.key')
+ mkdirSync(path.dirname(file), { recursive: true })
+ try {
+ return readFileSync(file)
+ } catch (e) {
+ if (e.code !== 'ENOENT') throw e
+ }
+ const value = randomBytes(32)
+ try {
+ writeFileSync(file, value, { flag: 'wx', mode: 0o600 })
+ return value
+ } catch (e) {
+ if (e.code === 'EEXIST') return readFileSync(file)
+ throw e
+ }
+}
+export function encryptSecret(value) {
+ const iv = randomBytes(12),
+ cipher = createCipheriv('aes-256-gcm', key(), iv)
+ const encrypted = Buffer.concat([cipher.update(value, 'utf8'), cipher.final()])
+ return [iv, cipher.getAuthTag(), encrypted].map((b) => b.toString('base64')).join('.')
+}
+export function decryptSecret(value) {
+ if (!value) return ''
+ const [iv, tag, data] = value.split('.').map((s) => Buffer.from(s, 'base64'))
+ const cipher = createDecipheriv('aes-256-gcm', key(), iv)
+ cipher.setAuthTag(tag)
+ return Buffer.concat([cipher.update(data), cipher.final()]).toString('utf8')
+}
diff --git a/server/service.js b/server/service.js
new file mode 100644
index 0000000..32e6dda
--- /dev/null
+++ b/server/service.js
@@ -0,0 +1,1134 @@
+import { scheduledTime } from './time.js'
+import { acknowledge } from './mail-config.js'
+import { safeHtml, composeContent, normaliseAttachments } from './content.js'
+import { signatureContext, validateSignatureTemplate } from './signature-placeholders.js'
+import { uid, now, actions, behaviors, createQueue, passwordHash } from './db.js'
+export class HttpError extends Error {
+ constructor(status, message) {
+ super(message)
+ this.status = status
+ }
+}
+const fail = (status, msg) => {
+ throw new HttpError(status, msg)
+}
+const json = (v) => JSON.stringify(v ?? null)
+const emailRE = /^[^\s@<>]+@[^\s@<>]+\.[^\s@<>]+$/
+export class Service {
+ constructor(db) {
+ this.db = db
+ }
+ all(sql, ...p) {
+ return this.db.prepare(sql).all(...p)
+ }
+ get(sql, ...p) {
+ return this.db.prepare(sql).get(...p)
+ }
+ run(sql, ...p) {
+ return this.db.prepare(sql).run(...p)
+ }
+ tx(fn) {
+ return this.db.transaction(fn)()
+ }
+ user(id) {
+ return (
+ this.get(
+ 'SELECT id,name,email,active,prefs,phone,job_title,department FROM users WHERE id=? AND active=1',
+ id,
+ ) || fail(401, 'Bitte erneut anmelden.')
+ )
+ }
+ permissions(user) {
+ let p = {}
+ for (const g of this.all(
+ 'SELECT g.permissions FROM groups_ g JOIN memberships m ON m.group_id=g.id WHERE m.user_id=?',
+ user.id,
+ ))
+ for (const [q, a] of Object.entries(JSON.parse(g.permissions)))
+ p[q] = [...new Set([...(p[q] || []), ...a])]
+ return p
+ }
+ can(user, q, action) {
+ const p = this.permissions(user)
+ return (p['*'] || []).includes(action) || (p[q] || []).includes(action)
+ }
+ require(user, q, action) {
+ if (!this.can(user, q, action)) fail(403, 'Keine Berechtigung für diese Aktion.')
+ }
+ audit(actor, action, entity, before, after, ticket = null, queue = null) {
+ this.run(
+ 'INSERT INTO audits(ticket_id,queue_id,actor,action,entity,before_value,after_value,created_at) VALUES(?,?,?,?,?,?,?,?)',
+ ticket,
+ queue,
+ actor,
+ action,
+ String(entity),
+ json(before),
+ json(after),
+ now(),
+ )
+ }
+ queue(id) {
+ const q =
+ this.get('SELECT * FROM queues WHERE id=? AND deleted_at IS NULL', id) ||
+ fail(404, 'Queue nicht gefunden.')
+ return {
+ ...q,
+ addresses: JSON.parse(q.addresses),
+ signatures: JSON.parse(q.signatures).map((s) => ({
+ ...s,
+ body: s.format === 'html' ? safeHtml(s.body) : s.body,
+ })),
+ statuses: this.all('SELECT * FROM statuses WHERE queue_id=? ORDER BY position', id),
+ }
+ }
+ openStatus(q) {
+ return (
+ this.get(
+ "SELECT * FROM statuses WHERE queue_id=? AND behavior='open' AND active=1 ORDER BY position LIMIT 1",
+ q,
+ ) || fail(409, 'Kein aktiver Offen-Status konfiguriert.')
+ )
+ }
+ ticket(user, id, action = 'view') {
+ const t =
+ this.get('SELECT * FROM tickets WHERE id=?', id) || fail(404, 'Ticket nicht gefunden.')
+ this.require(user, t.queue_id, 'view')
+ this.require(user, t.queue_id, action)
+ return t
+ }
+ bootstrap(user) {
+ return {
+ user: { ...user, prefs: JSON.parse(user.prefs) },
+ permissions: this.permissions(user),
+ queues: this.all('SELECT id FROM queues WHERE deleted_at IS NULL')
+ .filter((q) => this.can(user, q.id, 'view'))
+ .map((q) => this.queue(q.id)),
+ users: this.all('SELECT id,name FROM users WHERE active=1'),
+ adapter: process.env.MAIL_MODE || 'development',
+ }
+ }
+ tickets(user, filters = {}) {
+ const allowed = this.all('SELECT id FROM queues WHERE deleted_at IS NULL')
+ .filter((q) => this.can(user, q.id, 'view'))
+ .map((q) => q.id)
+ if (!allowed.length) return []
+ let rows = this.all(
+ `SELECT t.*,s.name status_name,s.color status_color,s.behavior,q.name queue_name,q.color queue_color,u.name assignee_name,(SELECT body FROM messages WHERE ticket_id=t.id ORDER BY created_at DESC LIMIT 1) preview FROM tickets t JOIN statuses s ON s.id=t.status_id JOIN queues q ON q.id=t.queue_id LEFT JOIN users u ON u.id=t.assignee WHERE t.queue_id IN (${allowed.map(() => '?')})`,
+ ...allowed,
+ )
+ return rows
+ .filter(
+ (t) =>
+ (!filters.q ||
+ `${t.id} ${t.subject} ${t.customer} ${t.customer_name}`
+ .toLowerCase()
+ .includes(filters.q.toLowerCase())) &&
+ (!filters.queue || t.queue_id === filters.queue) &&
+ (!filters.status || t.behavior === filters.status || t.status_id === filters.status) &&
+ (!filters.assignee ||
+ (filters.assignee === 'unassigned' ? !t.assignee : t.assignee === filters.assignee)),
+ )
+ .sort((a, b) =>
+ filters.sort === 'oldest'
+ ? a.updated_at.localeCompare(b.updated_at)
+ : filters.sort === 'subject'
+ ? a.subject.localeCompare(b.subject)
+ : b.updated_at.localeCompare(a.updated_at),
+ )
+ }
+ detail(user, id) {
+ const t = this.ticket(user, id)
+ return {
+ ...t,
+ messages: this.all(
+ 'SELECT * FROM messages WHERE ticket_id=? ORDER BY created_at,rowid',
+ t.id,
+ ).map((m) => ({
+ ...m,
+ html: this.get('SELECT html FROM message_html WHERE message_id=?', m.id)?.html || null,
+ attachments: this.all(
+ 'SELECT id,name,mime,length(content) size FROM attachments WHERE message_id=?',
+ m.id,
+ ),
+ })),
+ activities: this.all(
+ 'SELECT a.*,u.name actor_name FROM audits a LEFT JOIN users u ON u.id=a.actor WHERE a.ticket_id=? ORDER BY a.id DESC',
+ t.id,
+ ),
+ }
+ }
+ notify(ticket, event, key, title) {
+ for (const u of this.all('SELECT id,email,prefs FROM users WHERE active=1')) {
+ if (
+ !this.can(u, ticket.queue_id, 'view') ||
+ (event === 'assigned' && ticket.assignee !== u.id)
+ )
+ continue
+ const prefs = JSON.parse(u.prefs)
+ const channels = prefs[event] || { bell: true, email: false }
+ const n = uid()
+ const insert = this.run(
+ 'INSERT OR IGNORE INTO notifications(id,user_id,ticket_id,event,event_key,title,is_read,created_at) VALUES(?,?,?,?,?,?,?,?)',
+ n,
+ u.id,
+ ticket.id,
+ event,
+ key,
+ title,
+ channels.bell ? 0 : 1,
+ now(),
+ )
+ if (insert.changes && channels.email)
+ this.run(
+ 'INSERT INTO outbox(id,notification_id,payload,next_at) VALUES(?,?,?,?)',
+ uid(),
+ n,
+ json({
+ to: u.email,
+ from: this.queue(ticket.queue_id).addresses.find((a) => a.outgoing && a.default)?.email,
+ subject: title,
+ text: `Ticket #${String(ticket.id).padStart(5, '0')}: ${ticket.subject}\n${process.env.APP_ORIGIN || 'http://127.0.0.1:5173'}/#ticket=${ticket.id}`,
+ }),
+ now(),
+ )
+ }
+ }
+ notifications(user) {
+ return this.all(
+ 'SELECT n.* FROM notifications n JOIN tickets t ON t.id=n.ticket_id WHERE n.user_id=? ORDER BY n.created_at DESC LIMIT 100',
+ user.id,
+ ).filter((n) => {
+ const t = this.get('SELECT queue_id FROM tickets WHERE id=?', n.ticket_id)
+ const prefs = JSON.parse(user.prefs || '{}')
+ return t && this.can(user, t.queue_id, 'view') && (prefs[n.event]?.bell ?? true)
+ })
+ }
+ readNotifications(user, id) {
+ const ids = this.notifications(user)
+ .filter((n) => !id || id === n.id)
+ .map((n) => n.id)
+ this.tx(() =>
+ ids.forEach((n) =>
+ this.run('UPDATE notifications SET is_read=1 WHERE id=? AND user_id=?', n, user.id),
+ ),
+ )
+ }
+ transition(t, status, actor, extra = {}) {
+ const before = { status_id: t.status_id, due_at: t.due_at, timezone: t.timezone }
+ this.run(
+ 'UPDATE tickets SET status_id=?,due_at=?,timezone=?,revision=revision+1,updated_at=? WHERE id=?',
+ status.id,
+ extra.due_at || null,
+ extra.timezone || null,
+ now(),
+ t.id,
+ )
+ this.audit(
+ actor,
+ 'Status geändert',
+ t.id,
+ before,
+ { status_id: status.id, name: status.name, ...extra },
+ t.id,
+ t.queue_id,
+ )
+ }
+ updateTicket(user, id, data) {
+ return this.tx(() => {
+ let t = this.ticket(user, id)
+ if (data.revision !== undefined && data.revision !== t.revision)
+ fail(409, 'Das Ticket wurde zwischenzeitlich geändert. Bitte neu laden.')
+ if (data.queue_id && data.queue_id !== t.queue_id) {
+ this.require(user, t.queue_id, 'move')
+ this.require(user, data.queue_id, 'move')
+ this.require(user, data.queue_id, 'view')
+ const q = this.queue(data.queue_id)
+ if (!q.addresses.some((a) => a.outgoing && a.default))
+ fail(409, 'Zielqueue benötigt einen Standardabsender.')
+ const old = this.get('SELECT behavior FROM statuses WHERE id=?', t.status_id)
+ const s =
+ q.statuses.find((s) => s.id === data.status_id && s.active) ||
+ q.statuses.find((s) => s.behavior === old.behavior && s.active) ||
+ this.openStatus(q.id)
+ if (s.behavior === 'wait_date' && !t.due_at) fail(400, 'Termin erforderlich.')
+ this.run(
+ 'UPDATE tickets SET queue_id=?,status_id=?,assignee=NULL,due_at=CASE WHEN ? THEN due_at ELSE NULL END,timezone=CASE WHEN ? THEN timezone ELSE NULL END,revision=revision+1,updated_at=? WHERE id=?',
+ q.id,
+ s.id,
+ s.behavior === 'wait_date' ? 1 : 0,
+ s.behavior === 'wait_date' ? 1 : 0,
+ now(),
+ t.id,
+ )
+ this.audit(
+ user.id,
+ 'Queue gewechselt',
+ id,
+ { queue: t.queue_id, status: t.status_id, assignee: t.assignee },
+ { queue: q.id, status: s.id, assignee: null },
+ t.id,
+ q.id,
+ )
+ t = this.get('SELECT * FROM tickets WHERE id=?', id)
+ }
+ if (data.status_id || data.due_at !== undefined) {
+ this.require(user, t.queue_id, 'status')
+ const s =
+ this.get(
+ 'SELECT * FROM statuses WHERE id=? AND queue_id=? AND active=1',
+ data.status_id || t.status_id,
+ t.queue_id,
+ ) || fail(400, 'Ungültiger Status.')
+ let extra = {}
+ if (s.behavior === 'wait_date') {
+ const due = data.due_at ?? t.due_at
+ const zone = data.timezone ?? t.timezone
+ try {
+ new Intl.DateTimeFormat('de', { timeZone: zone }).format()
+ if (!zone || !due || !Number.isFinite(Date.parse(due))) throw Error()
+ } catch {
+ fail(400, 'Gültiger Termin mit Zeitzone erforderlich.')
+ }
+ try {
+ extra = { due_at: scheduledTime(due, zone), timezone: zone }
+ } catch {
+ fail(
+ 400,
+ 'Gültige Ortszeit und Zeitzone erforderlich. Die Uhrzeit darf nicht in einer Sommerzeitlücke liegen.',
+ )
+ }
+ }
+ this.transition(t, s, user.id, extra)
+ t = this.get('SELECT * FROM tickets WHERE id=?', id)
+ }
+ if (data.assignee !== undefined) {
+ this.require(user, t.queue_id, 'assign')
+ if (data.assignee) {
+ const u = this.user(data.assignee)
+ if (!this.can(u, t.queue_id, 'view'))
+ fail(400, 'Benutzer hat keinen Zugriff auf diese Queue.')
+ }
+ this.run(
+ 'UPDATE tickets SET assignee=?,updated_at=?,revision=revision+1 WHERE id=?',
+ data.assignee || null,
+ now(),
+ t.id,
+ )
+ this.audit(
+ user.id,
+ 'Zuständigkeit geändert',
+ id,
+ t.assignee,
+ data.assignee || null,
+ t.id,
+ t.queue_id,
+ )
+ if (data.assignee)
+ this.notify(
+ { ...t, assignee: data.assignee },
+ 'assigned',
+ uid(),
+ 'Ihnen wurde ein Ticket zugewiesen',
+ )
+ }
+ return this.detail(user, id)
+ })
+ }
+ goods(user, id) {
+ return this.tx(() => {
+ const t = this.ticket(user, id, 'goods')
+ if (
+ this.get('SELECT behavior FROM statuses WHERE id=?', t.status_id).behavior !== 'wait_goods'
+ )
+ fail(409, 'Ticket wartet nicht auf Ware.')
+ this.audit(
+ user.id,
+ 'Wareneingang bestätigt',
+ id,
+ null,
+ { confirmed_at: now() },
+ t.id,
+ t.queue_id,
+ )
+ this.transition(t, this.openStatus(t.queue_id), user.id)
+ return this.detail(user, id)
+ })
+ }
+ reply(user, id, data) {
+ return this.tx(() => {
+ const kind = data.kind === 'note' ? 'note' : 'outgoing'
+ const t = this.ticket(user, id, kind === 'note' ? 'note' : 'reply')
+ if (
+ (data.body !== undefined && typeof data.body !== 'string') ||
+ (data.body || '').length > 100000
+ )
+ fail(400, 'Nachricht erforderlich (max. 100.000 Zeichen).')
+ if (!data.key || data.key.length > 100) fail(400, 'Idempotenzschlüssel erforderlich.')
+ const mid = `<${data.key}@syncova.local>`
+ const old = this.get('SELECT * FROM messages WHERE message_id=?', mid)
+ if (old) {
+ if (old.ticket_id !== t.id) fail(409, 'Schlüssel bereits verwendet.')
+ return old
+ }
+ const attachments = normaliseAttachments(data.attachments)
+ if (!(data.body || '').trim() && !attachments.length)
+ fail(400, 'Nachricht oder Anhang erforderlich.')
+ let from = user.email
+ const q = this.queue(t.queue_id)
+ if (kind === 'outgoing') {
+ if (!q.addresses.some((a) => a.email === data.from && a.outgoing))
+ fail(400, 'Absender ist für diese Queue nicht freigegeben.')
+ from = data.from
+ }
+ const signature =
+ kind === 'outgoing'
+ ? data.signature_id
+ ? q.signatures.find((s) => s.id === data.signature_id)
+ : q.signatures.find((s) => s.default)
+ : null
+ if (kind === 'outgoing' && data.signature_id && !signature)
+ fail(400, 'Signatur gehört nicht zur Queue.')
+ const content =
+ kind === 'outgoing'
+ ? composeContent(data.body || '', signature, signatureContext(this, user, q, t, from))
+ : { text: data.body || '', html: null }
+ const m = uid(),
+ refs = this.all(
+ "SELECT message_id FROM messages WHERE ticket_id=? AND kind!='note' ORDER BY created_at",
+ t.id,
+ ).map((m) => m.message_id)
+ this.run(
+ 'INSERT INTO messages VALUES(?,?,?,?,?,?,?,?,?,?)',
+ m,
+ t.id,
+ kind,
+ from,
+ kind === 'note' ? 'intern' : t.customer,
+ content.text,
+ mid,
+ json(refs),
+ now(),
+ kind === 'note' ? 'internal' : 'queued',
+ )
+ if (content.html) this.run('INSERT INTO message_html VALUES(?,?)', m, content.html)
+ for (const a of attachments)
+ this.run('INSERT INTO attachments VALUES(?,?,?,?,?)', uid(), m, a.name, a.mime, a.content)
+ if (kind === 'outgoing')
+ this.run(
+ 'INSERT INTO outbox(id,message_id,payload,next_at) VALUES(?,?,?,?)',
+ uid(),
+ m,
+ json({
+ from,
+ to: t.customer,
+ subject: `Re: ${t.subject}`,
+ text: content.text,
+ ...(content.html ? { html: content.html } : {}),
+ messageId: mid,
+ inReplyTo: refs.at(-1),
+ references: refs,
+ }),
+ now(),
+ )
+ this.run('UPDATE tickets SET updated_at=?,revision=revision+1 WHERE id=?', now(), t.id)
+ this.audit(
+ user.id,
+ kind === 'note' ? 'Interne Notiz hinzugefügt' : 'Antwort zum Versand vorgemerkt',
+ m,
+ null,
+ {
+ from,
+ kind,
+ attachments: attachments.map((a) => ({ name: a.name, size: a.content.length })),
+ },
+ t.id,
+ t.queue_id,
+ )
+ return this.get('SELECT * FROM messages WHERE id=?', m)
+ })
+ }
+ createTicket(user, data) {
+ return this.tx(() => {
+ this.require(user, data.queue_id, 'view')
+ this.require(user, data.queue_id, 'reply')
+ const q = this.queue(data.queue_id)
+ if (
+ typeof data.key !== 'string' ||
+ !data.key ||
+ data.key.length > 100 ||
+ typeof data.subject !== 'string' ||
+ !data.subject.trim() ||
+ data.subject.length > 500 ||
+ typeof data.body !== 'string' ||
+ !data.body.trim() ||
+ data.body.length > 100000 ||
+ !emailRE.test(data.customer) ||
+ typeof data.customer_name !== 'string' ||
+ data.customer_name.length > 200
+ )
+ fail(400, 'Queue, Kundenkontakt, Betreff und Beschreibung gültig ausfüllen.')
+ const previous = this.get(
+ 'SELECT ticket_id FROM manual_requests WHERE user_id=? AND request_key=?',
+ user.id,
+ data.key,
+ )
+ if (previous) return this.detail(user, previous.ticket_id)
+ const status =
+ q.statuses.find((s) => s.active && s.behavior === 'new') || this.openStatus(q.id),
+ at = now()
+ const id = Number(
+ this.run(
+ 'INSERT INTO tickets(subject,customer,customer_name,queue_id,status_id,created_at,updated_at) VALUES(?,?,?,?,?,?,?)',
+ data.subject.trim(),
+ data.customer.toLowerCase(),
+ data.customer_name.trim() || data.customer,
+ q.id,
+ status.id,
+ at,
+ at,
+ ).lastInsertRowid,
+ )
+ this.run(
+ 'INSERT INTO messages VALUES(?,?,?,?,?,?,?,?,?,?)',
+ uid(),
+ id,
+ 'manual',
+ data.customer,
+ q.name,
+ data.body,
+ ``,
+ '[]',
+ at,
+ 'manual',
+ )
+ this.run('INSERT INTO manual_requests VALUES(?,?,?)', user.id, data.key, id)
+ this.audit(
+ user.id,
+ 'Ticket manuell erstellt',
+ id,
+ null,
+ { queue: q.id, customer: data.customer },
+ id,
+ q.id,
+ )
+ const t = this.get('SELECT * FROM tickets WHERE id=?', id)
+ this.notify(t, 'new', `manual:${id}`, 'Neues Ticket manuell erstellt')
+ return this.detail(user, id)
+ })
+ }
+ ingest(data, expectedQueue) {
+ return this.tx(() => {
+ if (
+ !data.messageId ||
+ data.messageId.length > 998 ||
+ !emailRE.test(data.from) ||
+ !data.to?.length ||
+ !data.body?.trim()
+ )
+ fail(400, 'Ungültige E-Mail.')
+ if (
+ (data.autoSubmitted && data.autoSubmitted !== 'no') ||
+ (data.precedence && ['bulk', 'junk', 'list'].includes(data.precedence))
+ )
+ return { ignored: true }
+ if (this.get('SELECT id FROM messages WHERE message_id=?', data.messageId))
+ return { duplicate: true }
+ const addresses = data.to.map((a) => a.toLowerCase())
+ const qs = this.all('SELECT id FROM queues WHERE deleted_at IS NULL').map((q) =>
+ this.queue(q.id),
+ )
+ const matched = qs.filter((q) =>
+ q.addresses.some((a) => a.incoming && addresses.includes(a.email.toLowerCase())),
+ )
+ if (matched.length !== 1) fail(400, 'Empfänger muss genau einer Queue zugeordnet sein.')
+ const q = matched[0]
+ if (expectedQueue && q.id !== expectedQueue)
+ fail(400, 'Empfänger gehört nicht zur abrufenden Queue.')
+ if (
+ qs.some((q) => q.addresses.some((a) => a.email.toLowerCase() === data.from.toLowerCase()))
+ )
+ return { ignored: true }
+ let t
+ for (const ref of [...(data.references || []), data.inReplyTo].filter(Boolean).reverse()) {
+ const m = this.get(
+ 'SELECT t.* FROM messages m JOIN tickets t ON t.id=m.ticket_id WHERE m.message_id=? AND m.kind!=?',
+ ref,
+ 'note',
+ )
+ if (m && m.queue_id === q.id && m.customer.toLowerCase() === data.from.toLowerCase()) {
+ t = m
+ break
+ }
+ }
+ const isNew = !t
+ const at = now()
+ if (!t) {
+ const s = q.statuses.find((s) => s.active && s.behavior === 'new') || this.openStatus(q.id)
+ const r = this.run(
+ 'INSERT INTO tickets(subject,customer,customer_name,queue_id,status_id,created_at,updated_at) VALUES(?,?,?,?,?,?,?)',
+ (data.subject || '(Ohne Betreff)').slice(0, 500),
+ data.from,
+ data.name || data.from,
+ q.id,
+ s.id,
+ at,
+ at,
+ )
+ t = this.get('SELECT * FROM tickets WHERE id=?', r.lastInsertRowid)
+ }
+ const id = uid()
+ this.run(
+ 'INSERT INTO messages(id,ticket_id,kind,sender,recipient,body,message_id,refs,created_at) VALUES(?,?,?,?,?,?,?,?,?)',
+ id,
+ t.id,
+ 'incoming',
+ data.from,
+ addresses.join(', '),
+ data.body.slice(0, 100000),
+ data.messageId,
+ json(data.references || []),
+ at,
+ )
+ for (const a of normaliseAttachments(data.attachments)) {
+ this.run('INSERT INTO attachments VALUES(?,?,?,?,?)', uid(), id, a.name, a.mime, a.content)
+ }
+ this.run('UPDATE tickets SET updated_at=?,revision=revision+1 WHERE id=?', at, t.id)
+ this.audit(
+ 'E-Mail-Adapter',
+ 'E-Mail empfangen',
+ id,
+ null,
+ { messageId: data.messageId },
+ t.id,
+ q.id,
+ )
+ if (
+ this.get('SELECT behavior FROM statuses WHERE id=?', t.status_id).behavior ===
+ 'wait_customer'
+ ) {
+ this.transition(t, this.openStatus(q.id), 'Kundenantwort')
+ this.notify(
+ t,
+ 'reopened',
+ `reopened:${data.messageId}`,
+ 'Ticket durch Kundenantwort wieder geöffnet',
+ )
+ }
+ this.notify(
+ t,
+ isNew ? 'new' : 'reply',
+ data.messageId,
+ isNew ? 'Neue Anfrage eingegangen' : 'Neue Kundenantwort',
+ )
+ if (isNew) acknowledge(this, t, data)
+ return { ticket_id: t.id }
+ })
+ }
+ due() {
+ return this.tx(() => {
+ let count = 0
+ for (const t of this.all(
+ "SELECT t.* FROM tickets t JOIN statuses s ON s.id=t.status_id WHERE s.behavior='wait_date' AND t.due_at<=?",
+ now(),
+ )) {
+ this.transition(t, this.openStatus(t.queue_id), 'Terminprozess')
+ this.notify(
+ t,
+ 'reopened',
+ `due:${t.id}:${t.revision}`,
+ 'Ticket automatisch wieder geöffnet',
+ )
+ count++
+ }
+ return count
+ })
+ }
+ saveQueue(user, id, data) {
+ return this.tx(() => {
+ this.require(user, id || '*', 'queue')
+ const before = id ? this.queue(id) : null
+ if (!data.name?.trim()) fail(400, 'Queue-Name erforderlich.')
+ if (
+ !Array.isArray(data.addresses) ||
+ !data.addresses.some((a) => a.incoming) ||
+ data.addresses.filter((a) => a.outgoing && a.default).length !== 1
+ )
+ fail(400, 'Mindestens ein Eingang und genau ein Standardabsender erforderlich.')
+ const seen = new Set()
+ for (const a of data.addresses) {
+ a.email = String(a.email).toLowerCase().trim()
+ if (!emailRE.test(a.email) || seen.has(a.email))
+ fail(400, 'Ungültige oder doppelte Adresse.')
+ seen.add(a.email)
+ for (const q of this.all(
+ 'SELECT id,addresses FROM queues WHERE id!=? AND deleted_at IS NULL',
+ id || '',
+ ))
+ if (JSON.parse(q.addresses).some((b) => b.email === a.email))
+ fail(409, 'Adresse wird bereits von einer anderen Queue verwendet.')
+ }
+ const sigs = before?.signatures || [
+ {
+ id: uid(),
+ name: 'Standard',
+ body: `Freundliche Grüße\nIhr ${data.name}-Team`,
+ default: true,
+ },
+ ]
+ if (id)
+ this.run(
+ 'UPDATE queues SET name=?,color=?,addresses=? WHERE id=?',
+ data.name,
+ data.color || before.color,
+ json(data.addresses),
+ id,
+ )
+ else
+ id = createQueue(this.db, {
+ name: data.name,
+ color: data.color,
+ addresses: data.addresses,
+ signatures: sigs,
+ })
+ this.audit(user.id, 'Queue konfiguriert', id, before, this.queue(id), null, id)
+ return this.queue(id)
+ })
+ }
+ queueDeletion(user, id) {
+ this.require(user, id, 'queue')
+ const q = this.queue(id)
+ return {
+ id: q.id,
+ name: q.name,
+ tickets: this.get('SELECT count(*) count FROM tickets WHERE queue_id=?', id).count,
+ statuses: q.statuses.map((s) => ({
+ ...s,
+ count: this.get(
+ 'SELECT count(*) count FROM tickets WHERE queue_id=? AND status_id=?',
+ id,
+ s.id,
+ ).count,
+ })),
+ targets: this.all('SELECT id FROM queues WHERE deleted_at IS NULL AND id!=?', id)
+ .filter(
+ (q) =>
+ this.can(user, q.id, 'view') &&
+ this.can(user, q.id, 'move') &&
+ this.can(user, q.id, 'status'),
+ )
+ .map((q) => this.queue(q.id)),
+ }
+ }
+ deleteQueue(user, id, data) {
+ return this.tx(() => {
+ this.require(user, id, 'queue')
+ const q = this.queue(id)
+ if (data.confirm !== q.name) fail(400, 'Zum Bestätigen den exakten Queue-Namen eingeben.')
+ const tickets = this.all('SELECT * FROM tickets WHERE queue_id=?', id)
+ const inbound = this.get('SELECT config FROM queue_inbound WHERE queue_id=?', id)
+ if (inbound && JSON.parse(inbound.config).enabled)
+ fail(409, 'IMAP-Empfang vor dem Löschen deaktivieren.')
+ if (
+ this.get(
+ "SELECT count(*) n FROM outbox o JOIN messages m ON m.id=o.message_id JOIN tickets t ON t.id=m.ticket_id WHERE t.queue_id=? AND o.state='sending'",
+ id,
+ ).n
+ )
+ fail(409, 'Ein E-Mail-Versand läuft. Bitte abwarten.')
+ if (tickets.length) {
+ if (!data.target || data.target === id)
+ fail(409, 'Für vorhandene Tickets eine Zielqueue auswählen.')
+ this.require(user, id, 'move')
+ this.require(user, data.target, 'view')
+ this.require(user, data.target, 'move')
+ this.require(user, data.target, 'status')
+ const target = this.queue(data.target)
+ this.openStatus(target.id)
+ if (
+ !target.addresses.some((a) => a.outgoing && a.default) ||
+ !target.signatures.some((s) => s.default)
+ )
+ fail(409, 'Zielqueue benötigt Standardabsender und Standardsignatur.')
+ for (const t of tickets) {
+ const sourceStatus = q.statuses.find((s) => s.id === t.status_id),
+ chosen = data.mapping?.[t.status_id]
+ const status = chosen
+ ? target.statuses.find((s) => s.id === chosen && s.active)
+ : target.statuses.find((s) => s.active && s.behavior === sourceStatus.behavior) ||
+ this.openStatus(target.id)
+ if (!status) fail(400, 'Ungültige Statuszuordnung.')
+ this.updateTicket(user, t.id, { queue_id: target.id, status_id: status.id })
+ }
+ }
+ for (const g of this.all('SELECT * FROM groups_')) {
+ const permissions = JSON.parse(g.permissions)
+ if (permissions[id]) {
+ const before = structuredClone(permissions)
+ delete permissions[id]
+ this.run('UPDATE groups_ SET permissions=? WHERE id=?', json(permissions), g.id)
+ this.audit(user.id, 'Queue-Berechtigungen entfernt', g.id, before, permissions, null, id)
+ }
+ }
+ this.run('DELETE FROM queue_mail WHERE queue_id=?', id)
+ this.run('DELETE FROM queue_inbound WHERE queue_id=?', id)
+ this.run('DELETE FROM inbound_receipts WHERE queue_id=?', id)
+ this.run('UPDATE statuses SET active=0 WHERE queue_id=?', id)
+ this.run(
+ "UPDATE queues SET deleted_at=?,addresses='[]',signatures='[]' WHERE id=?",
+ now(),
+ id,
+ )
+ this.audit(
+ user.id,
+ 'Queue gelöscht',
+ id,
+ q,
+ { deleted: true, target: data.target || null, moved: tickets.length },
+ null,
+ id,
+ )
+ return { ok: true, moved: tickets.length }
+ })
+ }
+ saveSignatures(user, id, signatures) {
+ return this.tx(() => {
+ this.require(user, id, 'signatures')
+ const q = this.queue(id)
+ if (
+ !Array.isArray(signatures) ||
+ signatures.filter((s) => s.default).length !== 1 ||
+ signatures.some(
+ (s) =>
+ !s.name?.trim() ||
+ typeof s.body !== 'string' ||
+ !s.body.trim() ||
+ s.body.length > 100000 ||
+ (s.format && !['text', 'html'].includes(s.format)),
+ )
+ )
+ fail(400, 'Genau eine Standardsignatur und ausgefüllte Felder erforderlich.')
+ const clean = signatures.map((s) => ({
+ id: s.id || uid(),
+ name: s.name.trim(),
+ format: s.format || 'text',
+ body: s.format === 'html' ? safeHtml(s.body) : s.body,
+ default: !!s.default,
+ }))
+ clean.forEach((s) => validateSignatureTemplate(s.body))
+ if (clean.some((s) => !s.body.trim()))
+ fail(400, 'Signatur enthält keinen unterstützten Inhalt.')
+ this.run('UPDATE queues SET signatures=? WHERE id=?', json(clean), id)
+ this.audit(user.id, 'Signaturen geändert', id, q.signatures, clean, null, id)
+ })
+ }
+ saveStatuses(user, id, statuses, mapping = {}) {
+ return this.tx(() => {
+ this.require(user, id, 'statuses')
+ const q = this.queue(id)
+ if (
+ !Array.isArray(statuses) ||
+ !statuses.some((s) => s.active && s.behavior === 'open') ||
+ statuses.some(
+ (s) =>
+ !s.name?.trim() ||
+ !behaviors.includes(s.behavior) ||
+ !/^#[0-9a-fA-F]{6}$/.test(s.color),
+ )
+ )
+ fail(400, 'Gültige Status und ein aktiver Offen-Status erforderlich.')
+ const suppliedIds = statuses.filter((s) => s.id).map((s) => s.id)
+ if (new Set(suppliedIds).size !== suppliedIds.length)
+ fail(400, 'Doppelte Statuskennungen sind nicht erlaubt.')
+ const oldIds = new Set(q.statuses.map((s) => s.id))
+ for (const s of statuses) {
+ if (s.id && !oldIds.has(s.id)) fail(400, 'Status gehört nicht zur Queue.')
+ s.id ||= uid()
+ const old = q.statuses.find((o) => o.id === s.id)
+ if (
+ old &&
+ old.behavior !== s.behavior &&
+ this.get('SELECT count(*) n FROM tickets WHERE status_id=?', s.id).n
+ )
+ fail(409, 'Verhalten verwendeter Status ist unveränderlich. Bitte neuen Status anlegen.')
+ this.run(
+ 'INSERT INTO statuses VALUES(?,?,?,?,?,?,?) ON CONFLICT(id) DO UPDATE SET name=excluded.name,color=excluded.color,behavior=excluded.behavior,position=excluded.position,active=excluded.active',
+ s.id,
+ id,
+ s.name,
+ s.color,
+ s.behavior,
+ statuses.indexOf(s),
+ s.active ? 1 : 0,
+ )
+ }
+ for (const old of q.statuses) {
+ if (!statuses.some((s) => s.id === old.id && s.active)) {
+ const tickets = this.all('SELECT * FROM tickets WHERE status_id=?', old.id)
+ if (tickets.length) {
+ const replacement = statuses.find(
+ (s) => s.id === mapping[old.id] && s.active && s.id !== old.id,
+ )
+ if (!replacement || replacement.behavior === 'wait_date')
+ fail(
+ 409,
+ 'Verwendete Status benötigen eine gültige Zuordnung zu einem aktiven Status ohne Terminvoraussetzung.',
+ )
+ for (const t of tickets) this.transition(t, replacement, user.id)
+ }
+ this.run('UPDATE statuses SET active=0 WHERE id=?', old.id)
+ }
+ }
+ this.openStatus(id)
+ this.audit(user.id, 'Status konfiguriert', id, q.statuses, statuses, null, id)
+ return this.queue(id)
+ })
+ }
+ admin(user) {
+ this.require(user, '*', 'users')
+ return {
+ users: this.all(
+ 'SELECT id,name,email,active,phone,job_title,department FROM users WHERE deleted_at IS NULL',
+ ).map((u) => ({
+ ...u,
+ groups: this.all('SELECT group_id FROM memberships WHERE user_id=?', u.id).map(
+ (g) => g.group_id,
+ ),
+ })),
+ groups: this.all('SELECT * FROM groups_').map((g) => ({
+ ...g,
+ permissions: JSON.parse(g.permissions),
+ })),
+ actions,
+ }
+ }
+ saveUser(user, data) {
+ return this.tx(() => {
+ this.require(user, '*', 'users')
+ if (!data.name?.trim() || !emailRE.test(data.email) || !Array.isArray(data.groups))
+ fail(400, 'Ungültige Benutzerdaten.')
+ if (data.id === user.id && (!data.active || !data.groups.includes('admins')))
+ fail(409, 'Eigenen Administratorzugriff beibehalten.')
+ for (const g of data.groups)
+ if (!this.get('SELECT id FROM groups_ WHERE id=?', g)) fail(400, 'Gruppe nicht gefunden.')
+ let id = data.id || uid()
+ const before = this.get(
+ 'SELECT id,name,email,active,phone,job_title,department FROM users WHERE id=? AND deleted_at IS NULL',
+ id,
+ )
+ if (data.id && !before) fail(404, 'Benutzer nicht gefunden.')
+ const profile = {}
+ for (const field of ['phone', 'job_title', 'department']) {
+ const value = data[field] ?? before?.[field] ?? ''
+ if (typeof value !== 'string' || value.length > 200)
+ fail(400, 'Telefon, Position und Abteilung dürfen höchstens 200 Zeichen enthalten.')
+ profile[field] = value.trim()
+ }
+ if (!before && (!data.password || data.password.length < 12))
+ fail(400, 'Passwort mit mindestens 12 Zeichen erforderlich.')
+ if (before)
+ this.run(
+ 'UPDATE users SET name=?,email=?,active=? WHERE id=?',
+ data.name,
+ data.email,
+ data.active ? 1 : 0,
+ id,
+ )
+ else
+ this.run(
+ 'INSERT INTO users(id,name,email,password) VALUES(?,?,?,?)',
+ id,
+ data.name,
+ data.email,
+ passwordHash(data.password),
+ )
+ if (data.password) {
+ if (data.password.length < 12) fail(400, 'Passwort zu kurz.')
+ this.run('UPDATE users SET password=? WHERE id=?', passwordHash(data.password), id)
+ this.run('DELETE FROM sessions WHERE user_id=?', id)
+ }
+ this.run(
+ 'UPDATE users SET phone=?,job_title=?,department=? WHERE id=?',
+ profile.phone,
+ profile.job_title,
+ profile.department,
+ id,
+ )
+ this.run('DELETE FROM memberships WHERE user_id=?', id)
+ data.groups.forEach((g) => this.run('INSERT INTO memberships VALUES(?,?)', id, g))
+ if (
+ !this.get(
+ "SELECT 1 FROM users u JOIN memberships m ON m.user_id=u.id WHERE m.group_id='admins' AND u.active=1 AND u.deleted_at IS NULL",
+ )
+ )
+ fail(409, 'Mindestens ein aktiver Administrator muss erhalten bleiben.')
+ this.audit(user.id, 'Benutzer geändert', id, before, {
+ name: data.name,
+ email: data.email,
+ active: data.active,
+ groups: data.groups,
+ ...profile,
+ })
+ return { id }
+ })
+ }
+ saveGroup(user, data) {
+ return this.tx(() => {
+ this.require(user, '*', 'users')
+ if (data.id === 'admins') fail(409, 'Die Administratorgruppe ist geschützt.')
+ if (!data.name?.trim() || !data.permissions || typeof data.permissions !== 'object')
+ fail(400, 'Gruppendaten fehlen.')
+ for (const [q, a] of Object.entries(data.permissions)) {
+ if (q !== '*') this.queue(q)
+ if (!Array.isArray(a) || a.some((p) => !actions.includes(p)))
+ fail(400, 'Ungültige Berechtigungen.')
+ }
+ const id = data.id || uid()
+ const old = this.get('SELECT * FROM groups_ WHERE id=?', id)
+ if (data.id && !old) fail(404, 'Gruppe nicht gefunden.')
+ this.run(
+ 'INSERT INTO groups_ VALUES(?,?,?) ON CONFLICT(id) DO UPDATE SET name=excluded.name,permissions=excluded.permissions',
+ id,
+ data.name,
+ json(data.permissions),
+ )
+ this.audit(user.id, 'Gruppe geändert', id, old, data)
+ return { id }
+ })
+ }
+ userDeletion(user, id) {
+ this.require(user, '*', 'users')
+ const target = this.get(
+ 'SELECT id,name,email,active FROM users WHERE id=? AND deleted_at IS NULL',
+ id,
+ )
+ if (!target) fail(404, 'Benutzer nicht gefunden.')
+ const lastAdmin =
+ target.active &&
+ this.get("SELECT 1 FROM memberships WHERE user_id=? AND group_id='admins'", id) &&
+ !this.get(
+ "SELECT 1 FROM users u JOIN memberships m ON m.user_id=u.id WHERE m.group_id='admins' AND u.active=1 AND u.deleted_at IS NULL AND u.id!=?",
+ id,
+ )
+ return {
+ ...target,
+ confirm: target.email,
+ assignedTickets: this.get('SELECT count(*) n FROM tickets WHERE assignee=?', id).n,
+ blockedReason:
+ id === user.id
+ ? 'Das eigene Benutzerkonto kann nicht gelöscht werden.'
+ : lastAdmin
+ ? 'Der letzte aktive Administrator kann nicht gelöscht werden.'
+ : '',
+ }
+ }
+ releaseAssignments(user, ids, reason, onlyWithoutAccess = false) {
+ let count = 0
+ for (const id of ids)
+ for (const t of this.all('SELECT id,queue_id,assignee FROM tickets WHERE assignee=?', id)) {
+ if (onlyWithoutAccess && this.can({ id }, t.queue_id, 'view')) continue
+ this.run(
+ 'UPDATE tickets SET assignee=NULL,revision=revision+1,updated_at=? WHERE id=?',
+ now(),
+ t.id,
+ )
+ this.audit(
+ user.id,
+ 'Zuständigkeit aufgehoben',
+ t.id,
+ { assignee: id },
+ { assignee: null, reason },
+ t.id,
+ t.queue_id,
+ )
+ count++
+ }
+ return count
+ }
+ deleteUser(user, id, data = {}) {
+ return this.tx(() => {
+ const target = this.userDeletion(user, id)
+ if (target.blockedReason) fail(409, target.blockedReason)
+ if (data.confirm !== target.confirm)
+ fail(400, 'E-Mail-Adresse zur Bestätigung stimmt nicht überein.')
+ const groups = this.all('SELECT group_id FROM memberships WHERE user_id=?', id).map(
+ (m) => m.group_id,
+ )
+ const assignedTickets = this.releaseAssignments(user, [id], 'Benutzer gelöscht')
+ this.run('DELETE FROM sessions WHERE user_id=?', id)
+ this.run('DELETE FROM memberships WHERE user_id=?', id)
+ this.run(
+ "UPDATE outbox SET state='cancelled',error='Benutzer gelöscht' WHERE state IN ('pending','blocked') AND notification_id IN (SELECT id FROM notifications WHERE user_id=?)",
+ id,
+ )
+ this.run(
+ "UPDATE users SET active=0,deleted_at=?,email=?,password='',prefs='{}',phone='',job_title='',department='' WHERE id=?",
+ now(),
+ `deleted-${uid()}@syncova.invalid`,
+ id,
+ )
+ this.audit(
+ user.id,
+ 'Benutzer gelöscht',
+ id,
+ { id, name: target.name, email: target.email, active: target.active, groups },
+ { deleted: true, assignedTickets },
+ )
+ return { ok: true, assignedTickets }
+ })
+ }
+ groupDeletion(user, id) {
+ this.require(user, '*', 'users')
+ const group = this.get('SELECT * FROM groups_ WHERE id=?', id)
+ if (!group) fail(404, 'Gruppe nicht gefunden.')
+ const keepsAccess = this.all(
+ 'SELECT g.permissions FROM groups_ g JOIN memberships m ON m.group_id=g.id WHERE m.user_id=? AND g.id!=?',
+ user.id,
+ id,
+ ).some((g) => (JSON.parse(g.permissions)['*'] || []).includes('users'))
+ return {
+ id: group.id,
+ name: group.name,
+ confirm: group.name,
+ members: this.get('SELECT count(*) n FROM memberships WHERE group_id=?', id).n,
+ blockedReason:
+ id === 'admins'
+ ? 'Die Administratorgruppe ist geschützt.'
+ : !keepsAccess
+ ? 'Die Gruppe gewährt Ihren einzigen Zugriff auf die Benutzerverwaltung. Zuerst einen anderen Verwaltungszugang einrichten.'
+ : '',
+ }
+ }
+ deleteGroup(user, id, data = {}) {
+ return this.tx(() => {
+ const info = this.groupDeletion(user, id)
+ if (info.blockedReason) fail(409, info.blockedReason)
+ if (data.confirm !== info.confirm)
+ fail(400, 'Gruppenname zur Bestätigung stimmt nicht überein.')
+ const group = this.get('SELECT * FROM groups_ WHERE id=?', id)
+ const members = this.all('SELECT user_id FROM memberships WHERE group_id=?', id).map(
+ (m) => m.user_id,
+ )
+ this.run('DELETE FROM memberships WHERE group_id=?', id)
+ this.run('DELETE FROM groups_ WHERE id=?', id)
+ const assignedTickets = this.releaseAssignments(user, members, 'Gruppe gelöscht', true)
+ this.audit(
+ user.id,
+ 'Gruppe gelöscht',
+ id,
+ { name: group.name, permissions: JSON.parse(group.permissions), members },
+ { deleted: true, assignedTickets },
+ )
+ return { ok: true, members: members.length, assignedTickets }
+ })
+ }
+ logs(user) {
+ return this.all(
+ 'SELECT a.*,u.name actor_name FROM audits a LEFT JOIN users u ON u.id=a.actor WHERE a.ticket_id IS NULL ORDER BY a.id DESC LIMIT 500',
+ ).filter(
+ (a) =>
+ this.can(user, a.queue_id || '*', 'logs') &&
+ (!a.queue_id || this.can(user, a.queue_id, 'view')),
+ )
+ }
+}
diff --git a/server/signature-placeholders.js b/server/signature-placeholders.js
new file mode 100644
index 0000000..1e3bb91
--- /dev/null
+++ b/server/signature-placeholders.js
@@ -0,0 +1,110 @@
+import { HttpError } from './service.js'
+export const signatureTokens = [
+ ['benutzer.name', 'Benutzer', 'Vollständiger Name des antwortenden Benutzers'],
+ ['benutzer.vorname', 'Benutzer', 'Erstes Wort des Anzeigenamens'],
+ ['benutzer.nachname', 'Benutzer', 'Übriger Anzeigename'],
+ ['benutzer.email', 'Benutzer', 'E-Mail-Adresse des Benutzerkontos'],
+ ['benutzer.telefon', 'Benutzer', 'Telefonnummer aus der Benutzerverwaltung'],
+ ['benutzer.position', 'Benutzer', 'Position / Funktion aus der Benutzerverwaltung'],
+ ['benutzer.abteilung', 'Benutzer', 'Abteilung aus der Benutzerverwaltung'],
+ ['queue.name', 'Queue', 'Name der aktuellen Queue'],
+ ['queue.email', 'Queue', 'Standardabsender der Queue'],
+ ['absender.email', 'Queue', 'Für diese Antwort ausgewählte Absenderadresse'],
+ ['ticket.nummer', 'Ticket', 'Ticketnummer, z. B. SYN-00123'],
+ ['ticket.betreff', 'Ticket', 'Betreff des Tickets'],
+ ['ticket.status', 'Ticket', 'Aktueller Statusname'],
+ ['kunde.name', 'Kunde', 'Name des Kundenkontakts'],
+ ['kunde.email', 'Kunde', 'E-Mail-Adresse des Kunden'],
+ ['bearbeiter.name', 'Ticket', 'Name des zuständigen Benutzers, falls zugewiesen'],
+ ['bearbeiter.email', 'Ticket', 'E-Mail-Adresse des zuständigen Benutzers'],
+ ['datum', 'Zeit', 'Aktuelles Datum in Europe/Berlin'],
+ ['uhrzeit', 'Zeit', 'Aktuelle Uhrzeit in Europe/Berlin'],
+].map(([key, group, description]) => ({ key, group, description, token: `{${key}}` }))
+const aliases = {
+ benutzername: 'benutzer.name',
+ benutzeremail: 'benutzer.email',
+ vorname: 'benutzer.vorname',
+ nachname: 'benutzer.nachname',
+ telefon: 'benutzer.telefon',
+ position: 'benutzer.position',
+ abteilung: 'benutzer.abteilung',
+ queue: 'queue.name',
+ ticketnummer: 'ticket.nummer',
+ betreff: 'ticket.betreff',
+ kundenname: 'kunde.name',
+ kundenemail: 'kunde.email',
+ 'user.name': 'benutzer.name',
+ 'user.email': 'benutzer.email',
+ 'user.first_name': 'benutzer.vorname',
+ 'user.last_name': 'benutzer.nachname',
+ 'user.firstname': 'benutzer.vorname',
+ 'user.lastname': 'benutzer.nachname',
+ 'user.phone': 'benutzer.telefon',
+ 'user.job_title': 'benutzer.position',
+ 'user.jobtitle': 'benutzer.position',
+ 'user.department': 'benutzer.abteilung',
+ 'mailbox.email': 'absender.email',
+ 'mailbox.name': 'queue.name',
+ 'ticket.number': 'ticket.nummer',
+ 'ticket.subject': 'ticket.betreff',
+ 'ticket.status': 'ticket.status',
+ 'customer.name': 'kunde.name',
+ 'customer.email': 'kunde.email',
+ 'assignee.name': 'bearbeiter.name',
+ 'assignee.email': 'bearbeiter.email',
+}
+const keys = new Set(signatureTokens.map((t) => t.key))
+const pattern = /\{(?:([a-zA-Z_][a-zA-Z0-9_.]*)|%([a-zA-Z_][a-zA-Z0-9_.]*)%)\}/g
+export function validateSignatureTemplate(body) {
+ const unknown = [...body.matchAll(pattern)]
+ .map((m) => m[1] || m[2])
+ .filter((k) => !keys.has(k.toLowerCase()) && !Object.hasOwn(aliases, k.toLowerCase()))
+ if (unknown.length)
+ throw new HttpError(
+ 400,
+ `Unbekannte Signatur-Platzhalter: ${[...new Set(unknown)].map((k) => '{' + k + '}').join(', ')}`,
+ )
+}
+export function expandSignature(body, values, escape = (v) => v) {
+ validateSignatureTemplate(body)
+ return body.replace(pattern, (_, raw, wrapped) => {
+ const key = (raw || wrapped).toLowerCase()
+ return escape(String(values?.[Object.hasOwn(aliases, key) ? aliases[key] : key] ?? ''))
+ })
+}
+export function signatureContext(s, user, q, t, from, at = new Date()) {
+ const sender = from || q.addresses.find((a) => a.default && a.outgoing)?.email || ''
+ const name = user?.name || q.name,
+ parts = user?.name?.trim().split(/\s+/) || []
+ const assignee = t?.assignee
+ ? s.get('SELECT id,name,email FROM users WHERE id=? AND active=1', t.assignee)
+ : null
+ const assigned = assignee && s.can(assignee, q.id, 'view') ? assignee : null
+ return {
+ 'benutzer.name': name,
+ 'benutzer.vorname': parts[0] || '',
+ 'benutzer.nachname': parts.slice(1).join(' '),
+ 'benutzer.email': user?.email || sender,
+ 'benutzer.telefon': user?.phone || '',
+ 'benutzer.position': user?.job_title || '',
+ 'benutzer.abteilung': user?.department || '',
+ 'queue.name': q.name,
+ 'queue.email': q.addresses.find((a) => a.default && a.outgoing)?.email || '',
+ 'absender.email': sender,
+ 'ticket.nummer': t?.id ? `SYN-${String(t.id).padStart(5, '0')}` : '',
+ 'ticket.betreff': t?.subject || '',
+ 'ticket.status': t?.status_id ? q.statuses.find((st) => st.id === t.status_id)?.name || '' : '',
+ 'kunde.name': t?.customer_name || '',
+ 'kunde.email': t?.customer || '',
+ 'bearbeiter.name': assigned?.name || '',
+ 'bearbeiter.email': assigned?.email || '',
+ datum: new Intl.DateTimeFormat('de-DE', {
+ timeZone: 'Europe/Berlin',
+ dateStyle: 'medium',
+ }).format(at),
+ uhrzeit: new Intl.DateTimeFormat('de-DE', {
+ timeZone: 'Europe/Berlin',
+ timeStyle: 'short',
+ }).format(at),
+ }
+}
diff --git a/server/time.js b/server/time.js
new file mode 100644
index 0000000..b1d1228
--- /dev/null
+++ b/server/time.js
@@ -0,0 +1,30 @@
+// Resolve a wall-clock timestamp in an IANA zone, rejecting DST gaps.
+export function scheduledTime(value, zone) {
+ if (!zone || typeof value !== 'string') throw Error('Termin und Zeitzone fehlen')
+ const fmt = new Intl.DateTimeFormat('sv-SE', {
+ timeZone: zone,
+ year: 'numeric',
+ month: '2-digit',
+ day: '2-digit',
+ hour: '2-digit',
+ minute: '2-digit',
+ second: '2-digit',
+ hourCycle: 'h23',
+ })
+ if (/[zZ]$|[+-]\d{2}:\d{2}$/.test(value)) {
+ const d = new Date(value)
+ if (!Number.isFinite(+d)) throw Error('Ungültiger Termin')
+ return d.toISOString()
+ }
+ if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/.test(value)) throw Error('Ungültiger Termin')
+ const target = value.length === 16 ? value + ':00' : value
+ const utc = Date.parse(target + 'Z')
+ let guess = utc
+ for (let i = 0; i < 4; i++) {
+ const wall = fmt.format(new Date(guess)).replace(' ', 'T')
+ const delta = utc - Date.parse(wall + 'Z')
+ if (!delta) return new Date(guess).toISOString()
+ guess += delta
+ }
+ throw Error('Die Uhrzeit existiert in dieser Zeitzone nicht (Sommerzeitwechsel).')
+}
diff --git a/server/worker.js b/server/worker.js
new file mode 100644
index 0000000..16ad67d
--- /dev/null
+++ b/server/worker.js
@@ -0,0 +1,173 @@
+import { smtpTransport } from './mail-config.js'
+import { InboundWorker } from './inbound.js'
+import { uid, now } from './db.js'
+export class Worker {
+ constructor(service, { transportFactory, inboundOptions } = {}) {
+ this.s = service
+ this.busy = false
+ this.inbound = new InboundWorker(service, inboundOptions)
+ this.transportFactory = transportFactory
+ // An interrupted SMTP transaction may already have been accepted. Never silently resend it.
+ this.s.run(
+ "UPDATE outbox SET state='uncertain',error='Versand beim Neustart unbestätigt; Zustellung am Mailserver prüfen.' WHERE state='sending'",
+ )
+ }
+ async tick() {
+ if (this.busy) return
+ this.busy = true
+ try {
+ this.s.due()
+ for (const job of this.s.all(
+ "SELECT * FROM outbox WHERE state='pending' AND next_at<=? ORDER BY next_at LIMIT 20",
+ now(),
+ )) {
+ let t
+ if (job.message_id)
+ t = this.s.get(
+ 'SELECT t.* FROM tickets t JOIN messages m ON m.ticket_id=t.id WHERE m.id=?',
+ job.message_id,
+ )
+ if (job.notification_id) {
+ const n = this.s.get('SELECT * FROM notifications WHERE id=?', job.notification_id)
+ t = this.s.get('SELECT * FROM tickets WHERE id=?', n.ticket_id)
+ const u = this.s.get('SELECT * FROM users WHERE id=? AND active=1', n.user_id)
+ if (!u || !this.s.can(u, t.queue_id, 'view') || !JSON.parse(u.prefs)[n.event]?.email) {
+ this.s.run("UPDATE outbox SET state='cancelled' WHERE id=?", job.id)
+ continue
+ }
+ }
+ const payload = JSON.parse(job.payload)
+ const attachments = job.message_id
+ ? this.s
+ .all('SELECT name,mime,content FROM attachments WHERE message_id=?', job.message_id)
+ .map((a) => ({ filename: a.name, contentType: a.mime, content: a.content }))
+ : []
+ if (
+ job.message_id &&
+ !this.s.queue(t.queue_id).addresses.some((a) => a.outgoing && a.email === payload.from)
+ ) {
+ this.s.run(
+ "UPDATE outbox SET state='blocked',error='Absender nach Queue-Wechsel nicht mehr erlaubt' WHERE id=?",
+ job.id,
+ )
+ continue
+ }
+ let transport
+ try {
+ transport = smtpTransport(this.s, t.queue_id, this.transportFactory)
+ } catch {
+ this.s.run(
+ "UPDATE outbox SET state='blocked',error='SMTP-Zugangsdaten können nicht entschlüsselt werden; Queue-Konfiguration prüfen.' WHERE id=?",
+ job.id,
+ )
+ this.s.audit(
+ 'Versandprozess',
+ 'SMTP-Konfiguration nicht verwendbar',
+ job.id,
+ null,
+ { state: 'blocked' },
+ null,
+ t.queue_id,
+ )
+ continue
+ }
+ if (!transport) {
+ this.s.tx(() => {
+ this.s.run(
+ 'INSERT OR IGNORE INTO dev_mail VALUES(?,?,?)',
+ job.id,
+ JSON.stringify({
+ ...payload,
+ ...(attachments.length
+ ? {
+ attachments: attachments.map((a) => ({
+ ...a,
+ content: a.content.toString('base64'),
+ encoding: 'base64',
+ })),
+ }
+ : {}),
+ }),
+ now(),
+ )
+ this.finish(job, t, 'development')
+ })
+ continue
+ }
+ this.s.run("UPDATE outbox SET state='sending',attempts=attempts+1 WHERE id=?", job.id)
+ try {
+ await transport.sendMail({
+ ...payload,
+ attachments,
+ headers: { 'Auto-Submitted': 'auto-generated', 'X-Auto-Response-Suppress': 'All' },
+ })
+ this.s.tx(() => this.finish(job, t, 'smtp'))
+ } catch (e) {
+ const definite =
+ ['EAUTH', 'ECONNECTION', 'EDNS', 'ETLS'].includes(e.code) || e.responseCode >= 400
+ const state = definite ? 'pending' : 'uncertain'
+ this.s.run(
+ 'UPDATE outbox SET state=?,error=?,next_at=? WHERE id=?',
+ state,
+ 'Versand fehlgeschlagen; Serverkonfiguration oder Zustellung prüfen.',
+ new Date(
+ Date.now() + Math.min(3600000, 30000 * 2 ** Math.min(job.attempts, 7)),
+ ).toISOString(),
+ job.id,
+ )
+ this.s.audit(
+ 'Versandprozess',
+ 'E-Mail-Versand fehlgeschlagen',
+ job.id,
+ null,
+ { state, code: String(e.code || 'unknown') },
+ null,
+ t?.queue_id || null,
+ )
+ } finally {
+ transport.close?.()
+ }
+ }
+ } catch (e) {
+ this.s.audit('Hintergrundprozess', 'Automatisierung fehlgeschlagen', 'worker', null, {
+ error: e instanceof Error ? e.name : 'Error',
+ })
+ } finally {
+ this.busy = false
+ }
+ }
+ finish(job, t, adapter) {
+ this.s.run("UPDATE outbox SET state='sent',error=NULL WHERE id=?", job.id)
+ if (job.message_id) {
+ this.s.run("UPDATE messages SET delivery='sent' WHERE id=?", job.message_id)
+ this.s.audit(
+ 'Versandprozess',
+ 'E-Mail versendet',
+ job.message_id,
+ null,
+ { adapter },
+ t.id,
+ t.queue_id,
+ )
+ }
+ }
+ async pollImap() {
+ try {
+ await this.inbound.due()
+ } catch (e) {
+ this.s.audit('Abrufprozess', 'Abrufzeitplan fehlgeschlagen', 'scheduler', null, {
+ error: e.name,
+ })
+ }
+ }
+ start() {
+ this.tick()
+ this.pollImap()
+ this.timer = setInterval(() => this.tick(), 5000)
+ this.imapTimer = setInterval(() => this.pollImap(), 1000)
+ }
+ stop() {
+ clearInterval(this.timer)
+ clearInterval(this.imapTimer)
+ }
+}
diff --git a/src/App.tsx b/src/App.tsx
new file mode 100644
index 0000000..e3ab673
--- /dev/null
+++ b/src/App.tsx
@@ -0,0 +1,1424 @@
+import { useEffect, useState, type ReactNode } from 'react'
+import {
+ Inbox,
+ Search,
+ Bell,
+ Plus,
+ ArrowUpRight,
+ ChevronRight,
+ CircleHelp,
+ Settings2,
+ Users,
+ ScrollText,
+ Mail,
+ Sun,
+ Moon,
+ Monitor,
+ LogOut,
+ ArrowLeft,
+ Send,
+ MessageSquare,
+ PackageCheck,
+ Check,
+ X,
+ Clock3,
+ CircleCheck,
+ Layers3,
+ Paperclip,
+ ShieldCheck,
+ RefreshCw,
+ SlidersHorizontal,
+ Headphones,
+ ArrowDownUp,
+} from 'lucide-react'
+import { Button } from './components/ui/button'
+import { Input } from './components/ui/input'
+import { Textarea } from './components/ui/textarea'
+import * as Dialog from './components/ui/dialog'
+import { Portal } from '@ark-ui/react/portal'
+import { api, date, number } from './api'
+import { SettingsPage } from './Settings'
+import { HtmlPreview } from './HtmlPreview'
+import { AttachmentPicker } from './AttachmentPicker'
+type Data = any
+export function Field({ label, children }: { label: string; children: ReactNode }) {
+ return (
+
+ {label}
+ {children}
+
+ )
+}
+export function Select({ value, onChange, children, ...props }: any) {
+ return (
+ onChange(e.target.value)} {...props}>
+ {children}
+
+ )
+}
+export function Modal({ open, onClose, title, children }: any) {
+ return (
+ !e.open && onClose()}>
+
+
+
+
+
+ {title}
+
+
+
+
+
+
+ {children}
+
+
+
+
+ )
+}
+function App() {
+ const [boot, setBoot] = useState(null),
+ [loading, setLoading] = useState(true),
+ [error, setError] = useState(''),
+ [page, setPage] = useState('inbox'),
+ [queue, setQueue] = useState(''),
+ [tickets, setTickets] = useState([]),
+ [ticketsReady, setTicketsReady] = useState(false),
+ [selected, setSelected] = useState(() => {
+ const id = new URLSearchParams(location.hash.slice(1)).get('ticket')
+ return id && Number.isSafeInteger(Number(id)) ? Number(id) : null
+ }),
+ [search, setSearch] = useState(''),
+ [status, setStatus] = useState(''),
+ [assignee, setAssignee] = useState(''),
+ [sort, setSort] = useState('newest'),
+ [notifications, setNotifications] = useState([]),
+ [bell, setBell] = useState(false),
+ [theme, setTheme] = useState(localStorage.getItem('syncova-theme') || 'system'),
+ [compose, setCompose] = useState(false),
+ [toast, setToast] = useState(''),
+ [mobile, setMobile] = useState(false)
+ const refresh = async () => {
+ try {
+ const b = await api('/bootstrap')
+ setBoot(b)
+ setError('')
+ } catch (e) {
+ if ((e as Data).status === 401) setBoot(null)
+ else setError((e as Error).message)
+ } finally {
+ setLoading(false)
+ }
+ }
+ const loadTickets = async () => {
+ if (!boot) return
+ try {
+ setTickets(await api('/tickets'))
+ setNotifications(await api('/notifications'))
+ setTicketsReady(true)
+ } catch (e) {
+ if ((e as Data).status === 401) {
+ setBoot(null)
+ setTickets([])
+ setNotifications([])
+ setTicketsReady(false)
+ }
+ setError((e as Error).message)
+ }
+ }
+ useEffect(() => {
+ history.replaceState(null, '', selected ? '#ticket=' + selected : location.pathname)
+ }, [selected])
+ useEffect(() => {
+ refresh()
+ }, [])
+ useEffect(() => {
+ loadTickets()
+ const timer = setInterval(loadTickets, 5000)
+ return () => clearInterval(timer)
+ }, [boot])
+ useEffect(() => {
+ const media = matchMedia('(prefers-color-scheme: dark)')
+ const apply = () => {
+ document.documentElement.classList.toggle(
+ 'dark',
+ theme === 'dark' || (theme === 'system' && media.matches),
+ )
+ document.documentElement.classList.toggle(
+ 'light',
+ !(theme === 'dark' || (theme === 'system' && media.matches)),
+ )
+ }
+ apply()
+ localStorage.setItem('syncova-theme', theme)
+ media.addEventListener('change', apply)
+ return () => media.removeEventListener('change', apply)
+ }, [theme])
+ useEffect(() => {
+ if (toast) {
+ const t = setTimeout(() => setToast(''), 4000)
+ return () => clearTimeout(t)
+ }
+ }, [toast])
+ const run = async (fn: () => Promise, msg = 'Gespeichert') => {
+ setError('')
+ try {
+ await fn()
+ setToast(msg)
+ await loadTickets()
+ return true
+ } catch (e) {
+ setError((e as Error).message)
+ setToast('Fehler: ' + (e as Error).message)
+ return false
+ }
+ }
+ const navigate = (p: string, q = '') => {
+ setPage(p)
+ setQueue(q)
+ setSelected(null)
+ setStatus('')
+ setMobile(false)
+ }
+ const can = (q: string, a: string) =>
+ (!!boot && (boot.permissions['*'] || []).includes(a)) ||
+ (!!boot && (boot.permissions[q] || []).includes(a))
+ if (loading)
+ return (
+
+ Syncova wird geladen …
+
+ )
+ if (!boot) return
+ const unread = notifications.filter((n) => !n.is_read).length,
+ active = tickets.filter((t) => t.behavior !== 'closed'),
+ waiting = tickets.filter((t) => t.behavior.startsWith('wait_')),
+ mine = active.filter((t) => t.assignee === boot.user.id)
+ let rows = tickets
+ .filter(
+ (t) =>
+ (page === 'closed'
+ ? t.behavior === 'closed'
+ : page === 'waiting'
+ ? t.behavior.startsWith('wait_')
+ : page === 'mine'
+ ? t.assignee === boot.user.id && t.behavior !== 'closed'
+ : t.behavior !== 'closed') &&
+ (!queue || t.queue_id === queue) &&
+ (!status || t.behavior === status || t.status_id === status) &&
+ (!assignee || (assignee === 'unassigned' ? !t.assignee : t.assignee === assignee)) &&
+ `${t.subject} ${t.customer} ${t.customer_name} ${number(t.id)}`
+ .toLowerCase()
+ .includes(search.toLowerCase()),
+ )
+ .sort((a, b) =>
+ sort === 'oldest'
+ ? a.updated_at.localeCompare(b.updated_at)
+ : sort === 'subject'
+ ? a.subject.localeCompare(b.subject)
+ : b.updated_at.localeCompare(a.updated_at),
+ )
+ const title = queue
+ ? boot.queues.find((q: Data) => q.id === queue)?.name
+ : (
+ {
+ inbox: 'Alle Tickets',
+ mine: 'Mir zugewiesen',
+ waiting: 'Wartende Tickets',
+ closed: 'Erledigte Tickets',
+ settings: 'Queue-Einstellungen',
+ users: 'Benutzer & Gruppen',
+ logs: 'Systemprotokoll',
+ preferences: 'Benachrichtigungen',
+ } as Data
+ )[page]
+ return (
+
+
+ {
+ e.preventDefault()
+ navigate('inbox')
+ }}
+ >
+
+
+
+ syncova®
+
+ TICKETS
+
+ {[
+ [Inbox, 'inbox', 'Alle Tickets', active.length],
+ [Users, 'mine', 'Mir zugewiesen', mine.length],
+ [Clock3, 'waiting', 'Wartend', waiting.length],
+ [CircleCheck, 'closed', 'Erledigt', tickets.length - active.length],
+ ].map(([Icon, p, label, count]: any) => (
+ navigate(p)}
+ >
+
+ {label}
+ {count}
+
+ ))}
+
+
+ QUEUES{' '}
+ {can('*', 'queue') && (
+
navigate('settings')}>
+
+
+ )}
+
+
+ {boot.queues.map((q: Data) => (
+ navigate('inbox', q.id)}
+ >
+
+ {q.name}
+ {active.filter((t) => t.queue_id === q.id).length}
+
+ ))}
+
+
+
navigate('settings')}
+ >
+ Einstellungen
+
+ {can('*', 'users') && (
+
navigate('users')}
+ >
+ Benutzer & Gruppen
+
+ )}
+ {(can('*', 'logs') || boot.queues.some((q: Data) => can(q.id, 'logs'))) && (
+
navigate('logs')}
+ >
+ Systemprotokoll
+
+ )}
+
+
+ {boot.user.name
+ .split(' ')
+ .map((n: string) => n[0])
+ .join('')}
+
+
+ {boot.user.name}
+ {can('*', 'users') ? 'Administrator' : 'Teammitglied'}
+
+
{
+ await api('/logout', 'POST', {})
+ setBoot(null)
+ }}
+ >
+
+
+
+
+
+
+
+ setMobile(!mobile)}
+ >
+
+
+
+ Workspace
+ {title}
+ {selected && (
+ <>
+
+ {number(selected)}
+ >
+ )}
+
+
+
+ System verbunden
+
+
+ setTheme(theme === 'system' ? 'light' : theme === 'light' ? 'dark' : 'system')
+ }
+ >
+ {theme === 'dark' ? (
+
+ ) : theme === 'light' ? (
+
+ ) : (
+
+ )}
+
+ setBell(!bell)}
+ >
+
+ {unread > 0 && {unread} }
+
+ {boot.user.name[0]}
+
+ {bell && (
+
+
+ Benachrichtigungen
+
+ run(() => api('/notifications/read', 'POST', {}), 'Als gelesen markiert')
+ }
+ >
+ Alle lesen
+
+
+ {notifications.length === 0 ? (
+
+
+ Sie sind auf dem neuesten Stand.
+
+ ) : (
+ notifications.map((n) => (
+
+ {
+ setSelected(n.ticket_id)
+ setBell(false)
+ run(
+ () => api('/notifications/read', 'POST', { id: n.id }),
+ 'Benachrichtigung gelesen',
+ )
+ }}
+ >
+ {n.title}
+
+ {number(n.ticket_id)} · {date(n.created_at)}
+
+
+ {!n.is_read && (
+ run(() => api('/notifications/read', 'POST', { id: n.id }))}
+ >
+
+
+ )}
+
+ ))
+ )}
+
{
+ navigate('preferences')
+ setBell(false)
+ }}
+ >
+ Benachrichtigungen konfigurieren
+
+
+ )}
+
+
+ {error && (
+
+ {error}
+ setError('')}>
+
+
+
+ )}
+ {selected ? (
+ setSelected(null)}
+ run={run}
+ />
+ ) : ['settings', 'users', 'logs', 'preferences'].includes(page) ? (
+
+ ) : (
+ <>
+
+
+
IHR SERVICE. IM ÜBERBLICK.
+
+ {title}
+ {rows.length}
+
+
Alle Anfragen im Blick. Gemeinsam schneller zur Lösung.
+
+ {boot.queues.some((q: Data) => can(q.id, 'reply')) && (
+
setCompose(true)}>
+ Manuelles Ticket erstellen
+
+ )}
+
+
+ {[
+ [Inbox, 'Offene Tickets', active.length, 'Alle laufenden Anfragen', 'teal'],
+ [
+ MessageSquare,
+ 'Neue Anfragen',
+ active.filter((t) => t.behavior === 'new').length,
+ 'Bereit für den ersten Kontakt',
+ 'blue',
+ ],
+ [Clock3, 'Wartende Tickets', waiting.length, 'Kunde, Termin oder Ware', 'amber'],
+ [
+ CircleCheck,
+ 'Erledigte Tickets',
+ tickets.length - active.length,
+ 'Gemeinsam gelöst',
+ 'purple',
+ ],
+ ].map(([Icon, label, count, sub, color]: any) => (
+
+
+ {label}
+
+
+
+
+
+ {count}
+ —
+
+
{sub}
+
+ ))}
+
+
+
+ setStatus('')}>
+ Alle Anfragen{' '}
+
+ {
+ tickets.filter(
+ (t) => t.behavior !== 'closed' && (!queue || t.queue_id === queue),
+ ).length
+ }
+
+
+ setStatus('new')}
+ >
+ Neu
+
+ setStatus('active')}
+ >
+ In Bearbeitung
+
+ setStatus('wait_customer')}
+ >
+ Warten auf Kunde
+
+
+
+
+
+ setSearch(e.target.value)}
+ />
+ ⌕
+
+
+ Alle Queues
+ {boot.queues.map((q: Data) => (
+
+ {q.name}
+
+ ))}
+
+
+ Alle Status
+ {[
+ ...new Map(
+ boot.queues
+ .filter((q: Data) => !queue || q.id === queue)
+ .flatMap((q: Data) =>
+ q.statuses
+ .filter((s: Data) => s.active)
+ .map((s: Data) => [s.behavior, s.name]),
+ ),
+ ).entries(),
+ ].map(([b, n]: any) => (
+
+ {n}
+
+ ))}
+
+
+ Alle Bearbeiter
+ Nicht zugewiesen
+ {boot.users.map((u: Data) => (
+
+ {u.name}
+
+ ))}
+
+
+ Neueste zuerst
+ Älteste zuerst
+ Betreff A–Z
+
+
+
+
+
+
+ Ticket / Betreff
+ Status
+ Queue
+ Zuständig
+
+ Aktualisiert
+
+
+
+
+
+ {rows.map((t) => (
+ setSelected(t.id)}>
+
+
+
+
+
+
+
+ {number(t.id)}
+ {t.behavior === 'new' && }
+
+
setSelected(t.id)}>
+ {t.subject}
+
+
+ {t.customer_name}
+
+ {' '}
+ · {t.preview?.replace(/\n/g, ' ')}
+
+
+
+
+
+
+
+
+
+
+
+ {t.queue_name}
+
+
+
+ {t.assignee_name ? (
+
+
+ {t.assignee_name
+ .split(' ')
+ .map((n: string) => n[0])
+ .join('')}
+
+ {t.assignee_name.split(' ')[0]}
+
+ ) : (
+ — Nicht zugewiesen
+ )}
+
+ {date(t.updated_at)}
+
+
+
+
+ ))}
+
+
+
+ {!ticketsReady && (
+
+ Tickets werden geladen …
+
+ )}
+ {ticketsReady && !rows.length && (
+
+
+ Hier ist alles aufgeräumt.
+ Keine Tickets für diese Auswahl gefunden.
+ {
+ setSearch('')
+ setStatus('')
+ setAssignee('')
+ navigate('inbox')
+ }}
+ >
+ Filter zurücksetzen
+
+
+ )}
+
+ {rows.length} Tickets angezeigt
+
+ Automatisch aktualisiert
+
+
+
+
+ Ihr Team. Ihre Queues. Sicher verbunden.
+ Syncova Ticket · Entwickelt für guten Service
+
+ >
+ )}
+
+
+ {toast && (
+
+
+ {toast}
+
+ )}
+
setCompose(false)}
+ queues={boot.queues.filter((q: Data) => can(q.id, 'reply'))}
+ run={run}
+ onCreated={(id: number) => {
+ setCompose(false)
+ setSelected(id)
+ }}
+ />
+
+ )
+}
+export function Status({ name, color }: any) {
+ return (
+
+
+ {name}
+
+ )
+}
+function Login({ onLogin }: any) {
+ const [email, setEmail] = useState(''),
+ [password, setPassword] = useState(''),
+ [error, setError] = useState(''),
+ [busy, setBusy] = useState(false)
+ return (
+
+
+
+
+
+
+ syncova
+
+
+
VERBINDUNG SCHAFFT VERTRAUEN.
+
+ Guter Service.
+
+ Beginnt mit Überblick.
+
+
+ Ein gemeinsamer Ort für Ihr Team,
+
+ Ihre Kunden und jede offene Frage.
+
+
+
Syncova Ticket · Kundenservice, verbunden.
+
+
+
+ )
+}
+function ManualTicketModal({ open, onClose, queues, run, onCreated }: any) {
+ const [q, setQ] = useState(queues[0]?.id || ''),
+ [customer, setCustomer] = useState(''),
+ [name, setName] = useState(''),
+ [subject, setSubject] = useState(''),
+ [body, setBody] = useState(''),
+ [key, setKey] = useState(crypto.randomUUID()),
+ [busy, setBusy] = useState(false)
+ return (
+
+
+ Erfassen Sie eine Anfrage aus einem Telefonat oder einem anderen Kontakt. Es wird keine
+ Nachricht an den Kunden versendet.
+
+
+
+ )
+}
+function TicketDetail({ id, boot, can, onBack, run }: any) {
+ const [t, setT] = useState(null),
+ [tab, setTab] = useState('messages'),
+ [kind, setKind] = useState('outgoing'),
+ [body, setBody] = useState(''),
+ [from, setFrom] = useState(''),
+ [sig, setSig] = useState(''),
+ [busy, setBusy] = useState(false),
+ [key, setKey] = useState(crypto.randomUUID()),
+ [due, setDue] = useState(''),
+ [zone, setZone] = useState('Europe/Berlin'),
+ [target, setTarget] = useState(''),
+ [moveStatus, setMoveStatus] = useState(''),
+ [localError, setLocalError] = useState(''),
+ [files, setFiles] = useState([]),
+ [reading, setReading] = useState(false),
+ [signaturePreview, setSignaturePreview] = useState(null),
+ [signatureError, setSignatureError] = useState('')
+ const load = async () => {
+ try {
+ setT(await api(`/tickets/${id}`))
+ setLocalError('')
+ } catch (e) {
+ setLocalError((e as Error).message)
+ }
+ }
+ useEffect(() => {
+ load()
+ const timer = setInterval(load, 5000)
+ return () => clearInterval(timer)
+ }, [id])
+ const q = boot.queues.find((q: Data) => q.id === t?.queue_id)
+ useEffect(() => {
+ if (q) {
+ setFrom(q.addresses.find((a: Data) => a.default && a.outgoing)?.email || '')
+ const s = q.signatures.find((s: Data) => s.default)
+ setSig(s?.id || '')
+ setBody('')
+ }
+ }, [q?.id])
+ useEffect(() => {
+ setSignaturePreview(null)
+ setSignatureError('')
+ if (!q || !sig || !from || kind !== 'outgoing' || !can(q.id, 'reply')) return
+ let alive = true
+ api(`/tickets/${id}/signature-preview`, 'POST', { signature_id: sig, from })
+ .then((r) => {
+ if (alive) setSignaturePreview(r)
+ })
+ .catch((e) => {
+ if (alive) setSignatureError(e.message)
+ })
+ return () => {
+ alive = false
+ }
+ }, [id, q, sig, from, kind, t?.revision])
+ if (localError)
+ return (
+
+ {localError}
+ Zur Übersicht
+
+ )
+ if (!t || !q) return Ticket wird geladen …
+ const s = q.statuses.find((s: Data) => s.id === t.status_id)
+ const update = (data: Data) =>
+ run(async () => {
+ await api(`/tickets/${id}`, 'PATCH', { ...data, revision: t.revision })
+ await load()
+ })
+ return (
+ <>
+
+ Zur Ticketübersicht
+
+
+
+
+ {number(id)} · {q.name}
+
+
{t.subject}
+
+ Erstellt am {date(t.created_at)} · Zuletzt aktualisiert {date(t.updated_at)}
+
+
+
+
+
+
+
+ setTab('messages')}
+ >
+ Nachrichten {t.messages.length}
+
+ setTab('activity')}
+ >
+ Aktivitäten {t.activities.length}
+
+
+ {tab === 'activity' ? (
+
+ {t.activities.length === 0 &&
Noch keine Aktivitäten.
}
+ {t.activities.map((a: Data) => (
+
+
+
+
{a.action}
+
+ {a.actor_name ||
+ boot.users.find((u: Data) => u.id === a.actor)?.name ||
+ a.actor}{' '}
+ · {date(a.created_at)}
+
+
+ Änderungsdetails
+
+ {JSON.stringify(
+ {
+ vorher: JSON.parse(a.before_value),
+ nachher: JSON.parse(a.after_value),
+ },
+ null,
+ 2,
+ )}
+
+
+
+
+ ))}
+
+ ) : (
+ <>
+ {t.messages.map((m: Data) => (
+
+
+ {m.kind === 'note' && Nur intern sichtbar
}
+ {m.html ? (
+
+
+
+ Klartext anzeigen
+ {m.body}
+
+
+ ) : (
+ {m.body}
+ )}
+ {m.attachments.map((a: Data) => (
+
+
+ {a.name} · {Math.ceil(a.size / 1024)} KB
+
+ ))}
+
+
+ {m.kind === 'outgoing'
+ ? ({ sent: 'Versendet', queued: 'In der Versandwarteschlange' } as Data)[
+ m.delivery
+ ]
+ : m.kind === 'note'
+ ? 'Interne Notiz · wird nicht versendet'
+ : m.kind === 'manual'
+ ? 'Manuell erfasste Anfrage'
+ : 'Empfangen'}
+
+
+ Message-ID
+ {m.message_id}
+
+
+
+ ))}
+ {(can(q.id, 'reply') || can(q.id, 'note')) && (
+ {
+ e.preventDefault()
+ setBusy(true)
+ await run(
+ async () => {
+ await api(`/tickets/${id}/messages`, 'POST', {
+ kind,
+ body: body.trim(),
+ signature_id: kind === 'outgoing' ? sig : undefined,
+ attachments:
+ kind === 'outgoing'
+ ? files.map(({ name, mime, content }) => ({ name, mime, content }))
+ : [],
+ from,
+ key,
+ })
+ setBody('')
+ setKey(crypto.randomUUID())
+ setFiles([])
+ await load()
+ },
+ kind === 'note'
+ ? 'Notiz gespeichert'
+ : 'Antwort in die Versandwarteschlange gestellt',
+ )
+ setBusy(false)
+ }}
+ >
+
+ {can(q.id, 'reply') && (
+ setKind('outgoing')}
+ >
+ E-Mail-Antwort
+
+ )}
+ {can(q.id, 'note') && (
+ {
+ setKind('note')
+ setFiles([])
+ }}
+ >
+ Interne Notiz
+
+ )}
+
+ {kind === 'outgoing' ? (
+
+
+
+ {q.addresses
+ .filter((a: Data) => a.outgoing)
+ .map((a: Data) => (
+ {a.email}
+ ))}
+
+
+
+
+ {q.signatures.map((s: Data) => (
+
+ {s.name}
+
+ ))}
+
+
+
+ ) : (
+
+ Diese Notiz bleibt intern und wird niemals an Kunden versendet.
+
+ )}
+ setBody(e.target.value)}
+ />
+ {kind === 'outgoing' && (
+
+ {signatureError ? (
+
+ {signatureError}
+
+ ) : !signaturePreview ? (
+ 'Signaturvorschau wird geladen …'
+ ) : signaturePreview.html !== null ? (
+
+ ) : (
+ signaturePreview.text
+ )}
+
+ )}
+ {kind === 'outgoing' && (
+
+ )}
+
+
+ {kind === 'note'
+ ? 'Nur für berechtigte Teammitglieder'
+ : `Antwort an ${t.customer}`}
+
+
+
+ {busy
+ ? 'Wird gespeichert …'
+ : kind === 'note'
+ ? 'Notiz speichern'
+ : 'Antwort senden'}
+
+
+
+ )}
+ >
+ )}
+
+
+
+
+ Ticketdetails
+
+
+ {t.customer_name}
+ {t.customer}
+
+
+ {
+ const target = q.statuses.find((s: Data) => s.id === id)
+ if (target.behavior === 'wait_date') {
+ setDue(t.due_at || '')
+ setMoveStatus(id)
+ } else update({ status_id: id })
+ }}
+ >
+ {q.statuses
+ .filter((s: Data) => s.active)
+ .map((s: Data) => (
+
+ {s.name}
+
+ ))}
+
+
+ {s.behavior === 'wait_date' && (
+
+
+
+ {date(t.due_at)}
+ {t.timezone}
+
+ {can(q.id, 'status') && (
+ {
+ setMoveStatus(t.status_id)
+ setDue(t.due_at)
+ setZone(t.timezone)
+ }}
+ >
+ Ändern
+
+ )}
+
+ )}
+ {s.behavior === 'wait_goods' && can(q.id, 'goods') && (
+
+ run(async () => {
+ await api(`/tickets/${id}/goods`, 'POST', {})
+ await load()
+ }, 'Wareneingang bestätigt')
+ }
+ >
+ Wareneingang bestätigen
+
+ )}
+
+ update({ assignee })}
+ >
+ Nicht zugewiesen
+ {boot.users.map((u: Data) => (
+
+ {u.name}
+
+ ))}
+
+
+
+
+ {boot.queues
+ .filter((z: Data) => z.id === q.id || can(z.id, 'move'))
+ .map((q: Data) => (
+
+ {q.name}
+
+ ))}
+
+
+ {target && target !== q.id && (
+
+
+ Verschieben nach {boot.queues.find((q: Data) => q.id === target)?.name}. Die
+ Zuständigkeit wird aufgehoben.
+
+
+
+ Verhalten automatisch zuordnen
+ {boot.queues
+ .find((q: Data) => q.id === target)
+ ?.statuses.filter((s: Data) => s.active && s.behavior !== 'wait_date')
+ .map((s: Data) => (
+
+ {s.name}
+
+ ))}
+
+
+
{
+ if (await update({ queue_id: target, status_id: moveStatus || undefined })) {
+ setTarget('')
+ setMoveStatus('')
+ }
+ }}
+ >
+ Ticket verschieben
+
+
+ )}
+
+
+
Jede Änderung wird im Ticketprotokoll nachvollziehbar gespeichert.
+
+
+
+ setMoveStatus('')}
+ title="Wiedervorlage planen"
+ >
+ Das Ticket wird zum festgelegten Zeitpunkt automatisch geöffnet.
+ {
+ e.preventDefault()
+ if (await update({ status_id: moveStatus, due_at: due, timezone: zone }))
+ setMoveStatus('')
+ }}
+ >
+
+ setDue(e.target.value)}
+ />
+
+
+ setZone(e.target.value)} />
+
+ Termin speichern
+
+
+ >
+ )
+}
+export default App
diff --git a/src/AttachmentPicker.tsx b/src/AttachmentPicker.tsx
new file mode 100644
index 0000000..b24ac8c
--- /dev/null
+++ b/src/AttachmentPicker.tsx
@@ -0,0 +1,83 @@
+import { useState } from 'react'
+import { Paperclip, X } from 'lucide-react'
+export function AttachmentPicker({ files, setFiles, disabled, onBusy }: any) {
+ const [error, setError] = useState('')
+ const read = (file: File) =>
+ new Promise((resolve, reject) => {
+ const reader = new FileReader()
+ reader.onerror = () => reject(new Error('Datei konnte nicht gelesen werden.'))
+ reader.onload = () =>
+ resolve({
+ id: crypto.randomUUID(),
+ name: file.name,
+ mime: file.type || 'application/octet-stream',
+ size: file.size,
+ content: String(reader.result).split(',')[1],
+ })
+ reader.readAsDataURL(file)
+ })
+ return (
+
+
+
+ Dateien hinzufügen
+ {
+ const selected = Array.from(e.target.files || [])
+ e.target.value = ''
+ setError('')
+ if (
+ selected.length + files.length > 20 ||
+ selected.some((f) => f.size > 10 * 1024 * 1024) ||
+ [...files, ...selected].reduce((n: number, f: any) => n + f.size, 0) >
+ 20 * 1024 * 1024
+ ) {
+ setError('Maximal 20 Dateien, 10 MB pro Datei und 20 MB insgesamt.')
+ return
+ }
+ onBusy(true)
+ try {
+ const added = await Promise.all(selected.map(read))
+ setFiles((old: any[]) => [...old, ...added])
+ } catch (e) {
+ setError((e as Error).message)
+ } finally {
+ onBusy(false)
+ }
+ }}
+ />
+
+
10 MB pro Datei · 20 MB insgesamt
+ {error && (
+
+ {error}
+
+ )}
+ {files.length > 0 && (
+
+ {files.map((f: any) => (
+
+
+
+ {f.name}
+ {(f.size / 1024).toFixed(1)} KB
+
+ setFiles(files.filter((a: any) => a.id !== f.id))}
+ >
+
+
+
+ ))}
+
+ )}
+
+ )
+}
diff --git a/src/DeleteIdentity.tsx b/src/DeleteIdentity.tsx
new file mode 100644
index 0000000..fbf466f
--- /dev/null
+++ b/src/DeleteIdentity.tsx
@@ -0,0 +1,110 @@
+import { useEffect, useState } from 'react'
+import { Trash2 } from 'lucide-react'
+import { api } from './api'
+import { Field, Modal } from './App'
+import { Button } from './components/ui/button'
+import { Input } from './components/ui/input'
+
+export function DeleteIdentity({ target, onClose, onDeleted }: any) {
+ const [info, setInfo] = useState(null),
+ [confirm, setConfirm] = useState(''),
+ [error, setError] = useState(''),
+ [busy, setBusy] = useState(false)
+ const isUser = target.kind === 'users',
+ label = isUser ? 'Benutzer' : 'Gruppe'
+ const url = `/${target.kind}/${encodeURIComponent(target.id)}`
+ useEffect(() => {
+ let alive = true
+ api(url + '/deletion')
+ .then((r) => {
+ if (alive) setInfo(r)
+ })
+ .catch((e) => {
+ if (alive) setError(e.message)
+ })
+ return () => {
+ alive = false
+ }
+ }, [url])
+ return (
+ {
+ if (!busy) onClose()
+ }}
+ title={`${label} löschen`}
+ >
+
+ {target.name}
+
+ {error && (
+
+ {error}
+
+ )}
+ {!info ? (
+
+ {error ? 'Löschprüfung nicht verfügbar.' : 'Löschprüfung wird geladen …'}
+
+ ) : (
+ <>
+
+
+
+ {isUser
+ ? `Das Konto wird aus der Benutzerverwaltung entfernt. Alle Sitzungen werden beendet. ${info.assignedTickets} zugewiesene Ticket(s) werden auf „Nicht zugewiesen“ gesetzt. Ticketverläufe, Nachrichten und der bisherige Name im Audit-Protokoll bleiben erhalten.`
+ : `Die Gruppe wird gelöscht und aus ${info.members} Mitgliedschaft(en) entfernt. Rechte aus anderen Gruppen bleiben erhalten. Tickets ohne weiterhin berechtigten Bearbeiter werden auf „Nicht zugewiesen“ gesetzt. Benutzerkonten und Ticketverläufe bleiben erhalten.`}
+
+
+ {info.blockedReason ? (
+
+ {info.blockedReason}
+
+ ) : (
+ {
+ e.preventDefault()
+ if (busy) return
+ setBusy(true)
+ setError('')
+ try {
+ await api(url, 'DELETE', { confirm })
+ await onDeleted()
+ } catch (e) {
+ setError((e as Error).message)
+ } finally {
+ setBusy(false)
+ }
+ }}
+ >
+
+ setConfirm(e.target.value)}
+ />
+
+
+
+ Abbrechen
+
+
+
+ {busy ? 'Wird gelöscht …' : `${label} löschen`}
+
+
+
+ )}
+ >
+ )}
+
+ )
+}
diff --git a/src/DeleteQueue.tsx b/src/DeleteQueue.tsx
new file mode 100644
index 0000000..3d6b0db
--- /dev/null
+++ b/src/DeleteQueue.tsx
@@ -0,0 +1,176 @@
+import { useEffect, useState } from 'react'
+import { Trash2, AlertTriangle } from 'lucide-react'
+import { Modal, Field, Select } from './App'
+import { Input } from './components/ui/input'
+import { Button } from './components/ui/button'
+import { api } from './api'
+export function DeleteQueue({ q, refresh }: any) {
+ const [open, setOpen] = useState(false),
+ [info, setInfo] = useState(null),
+ [target, setTarget] = useState(''),
+ [mapping, setMapping] = useState({}),
+ [confirm, setConfirm] = useState(''),
+ [error, setError] = useState(''),
+ [busy, setBusy] = useState(false)
+ useEffect(() => {
+ if (!open) return
+ let alive = true
+ setInfo(null)
+ setError('')
+ api(`/queues/${q.id}/deletion`)
+ .then((r) => {
+ if (alive) setInfo(r)
+ })
+ .catch((e) => {
+ if (alive) setError(e.message)
+ })
+ return () => {
+ alive = false
+ }
+ }, [q.id, open])
+ const destination = info?.targets.find((t: any) => t.id === target)
+ return (
+ <>
+
+
+
Queue löschen
+
+ Die Queue und ihre Mailkonfiguration entfernen. Vorhandene Tickets müssen in eine andere
+ Queue verschoben werden.
+
+
+
{
+ setTarget('')
+ setMapping({})
+ setConfirm('')
+ setOpen(true)
+ }}
+ >
+ Queue löschen
+
+
+ !busy && setOpen(false)}
+ title={`Queue „${q.name}“ löschen`}
+ >
+
+
+
+ Die Queue wird aus der aktiven Verwaltung entfernt. Die Audit-Historie bleibt erhalten.
+ Ein aktiver IMAP-Abruf muss vorher deaktiviert und beendet sein.
+
+
+ {error && (
+
+ {error}
+
+ )}
+ {!info ? (
+
+ {error ? 'Löschprüfung nicht verfügbar.' : 'Queue wird geprüft …'}
+
+ ) : (
+ {
+ e.preventDefault()
+ setBusy(true)
+ setError('')
+ try {
+ await api(`/queues/${q.id}`, 'DELETE', { target, mapping, confirm })
+ setOpen(false)
+ await refresh()
+ } catch (e) {
+ setError((e as Error).message)
+ } finally {
+ setBusy(false)
+ }
+ }}
+ >
+
+ {info.tickets} Ticket(s) in dieser Queue. Die Zuständigkeit wird beim
+ Verschieben aufgehoben; Nachrichten und Anhänge bleiben erhalten.
+
+ {info.tickets > 0 && (
+ <>
+
+ {
+ setTarget(v)
+ setMapping({})
+ }}
+ >
+ Zielqueue auswählen
+ {info.targets.map((t: any) => (
+
+ {t.name}
+
+ ))}
+
+
+ {!info.targets.length && (
+
+ Keine berechtigte Zielqueue vorhanden. Zuerst eine geeignete Queue und
+ Zugriffsrechte einrichten.
+
+ )}
+ {destination && (
+
+ Statuszuordnung
+ {info.statuses
+ .filter((s: any) => s.count > 0)
+ .map((s: any) => (
+
+ setMapping({ ...mapping, [s.id]: v })}
+ >
+
+ {destination.statuses.find(
+ (t: any) => t.active && t.behavior === s.behavior,
+ )?.name ||
+ destination.statuses.find(
+ (t: any) => t.active && t.behavior === 'open',
+ )?.name}{' '}
+ (automatisch)
+
+ {destination.statuses
+ .filter((s: any) => s.active)
+ .map((s: any) => (
+
+ {s.name}
+
+ ))}
+
+
+ ))}
+
+ )}
+ >
+ )}
+
+ setConfirm(e.target.value)}
+ />
+
+ 0 && !target)}
+ >
+
+ {busy ? 'Wird gelöscht …' : 'Queue löschen'}
+
+
+ )}
+
+ >
+ )
+}
diff --git a/src/HtmlPreview.tsx b/src/HtmlPreview.tsx
new file mode 100644
index 0000000..c796e9d
--- /dev/null
+++ b/src/HtmlPreview.tsx
@@ -0,0 +1,167 @@
+import { useEffect, useRef, useState } from 'react'
+import { api } from './api'
+import { Field, Select } from './App'
+import { Textarea } from './components/ui/textarea'
+export function HtmlPreview({ html, title = 'HTML-Vorschau' }: { html: string; title?: string }) {
+ return (
+
+
+ )
+}
+export function SignatureBodyEditor({ signature: s, queueId, disabled, onChange }: any) {
+ const [preview, setPreview] = useState<{ html: string | null; text: string } | null>(null),
+ [error, setError] = useState(''),
+ [mode, setMode] = useState('user'),
+ [tokens, setTokens] = useState<{ token: string; group: string; description: string }[]>([])
+ const editor = useRef(null)
+ useEffect(() => {
+ let alive = true
+ api('/signature-placeholders')
+ .then((r) => {
+ if (alive) setTokens(r)
+ })
+ .catch(() => {})
+ return () => {
+ alive = false
+ }
+ }, [])
+ useEffect(() => {
+ setPreview(null)
+ setError('')
+ if (disabled) return
+ let alive = true
+ const timer = setTimeout(
+ () =>
+ api(`/queues/${queueId}/signatures/preview`, 'POST', {
+ body: s.body,
+ format: s.format || 'text',
+ mode,
+ })
+ .then((r) => {
+ if (alive) {
+ setPreview(r)
+ setError('')
+ }
+ })
+ .catch((e) => {
+ if (alive) {
+ setPreview(null)
+ setError(e.message)
+ }
+ }),
+ 350,
+ )
+ return () => {
+ alive = false
+ clearTimeout(timer)
+ }
+ }, [s.body, s.format, queueId, disabled, mode])
+ const insert = (token: string) => {
+ const el = editor.current
+ const start = el?.selectionStart ?? s.body.length,
+ end = el?.selectionEnd ?? start
+ onChange({ ...s, body: s.body.slice(0, start) + token + s.body.slice(end) })
+ requestAnimationFrame(() => {
+ el?.focus()
+ el?.setSelectionRange(start + token.length, start + token.length)
+ })
+ }
+ return (
+ <>
+
+ onChange({ ...s, format })}
+ >
+ Klartext
+ HTML
+
+
+ onChange({ ...s, body: e.target.value })}
+ />
+ {s.format === 'html' && (
+
+ HTML für Formatierung, Tabellen, Links und Logos. Nicht unterstützte oder aktive Inhalte
+ werden entfernt.
+
+ )}
+ {!disabled && (
+ <>
+
+ Platzhalter einfügen
+
+ Klicken zum Einfügen an der Cursorposition. Benutzer ist die Person, die antwortet;
+ Bearbeiter ist die zugewiesene Person.
+
+
+ Bestehende Vorlagen mit {'{%user.firstName%}'}, {'{%user.lastName%}'},{' '}
+ {'{%user.phone%}'} und {'{%mailbox.email%}'} funktionieren ebenfalls.
+
+ {[...new Set(tokens.map((t) => t.group))].map((group) => (
+
+
{group}
+
+ {tokens
+ .filter((t) => t.group === group)
+ .map((t) => (
+ insert(t.token)}
+ >
+ {t.token}
+
+ ))}
+
+
+ ))}
+
+
+
+ Antwort von mir
+ Automatische Eingangsmeldung
+
+
+
+ Telefon, Position und Abteilung kommen aus der Benutzerverwaltung. Bei automatischen
+ Eingangsmeldungen stehen Benutzername und E-Mail für die Queue; persönliche Felder
+ bleiben leer.
+
+ {error ? (
+
+ {error}
+
+ ) : !preview ? (
+
+ Vorschau wird geladen …
+
+ ) : preview.html !== null ? (
+
+ ) : (
+
+ {preview.text || 'Leere Signatur'}
+
+ )}
+ >
+ )}
+ >
+ )
+}
diff --git a/src/InboundSettings.tsx b/src/InboundSettings.tsx
new file mode 100644
index 0000000..71f3fee
--- /dev/null
+++ b/src/InboundSettings.tsx
@@ -0,0 +1,229 @@
+import { Download, Clock3, PlugZap, RefreshCw } from 'lucide-react'
+import { Input } from './components/ui/input'
+import { Button } from './components/ui/button'
+import { Field, Select } from './App'
+import { date } from './api'
+export function InboundSettings({ config: c, update, password, setPassword, busy, action }: any) {
+ const schedule = c.schedule
+ const runtime = c.runtime || {}
+ return (
+ <>
+
+
+
+
+
+
+
Empfangen · IMAP
+
Postfach, Zugang und Verarbeitung eingehender Nachrichten.
+
+
+
+
+ Automatischen E-Mail-Empfang aktivieren
+ Neue Nachrichten werden nach dem Abrufzeitplan in diese Queue importiert.
+
+ update('enabled', e.target.checked)}
+ />
+
+
+
+ update('host', e.target.value)}
+ />
+
+
+ update('port', Number(e.target.value))}
+ />
+
+
+
+ {
+ update('security', v)
+ update('port', v === 'tls' ? 993 : 143)
+ }}
+ >
+ TLS · verschlüsselt ab Verbindungsaufbau (Port 993)
+
+ STARTTLS · Verschlüsselung zwingend erforderlich (Port 143)
+
+
+
+
+
+ update('username', e.target.value)}
+ />
+
+
+ setPassword(e.target.value)}
+ placeholder={
+ c.passwordSet ? 'Gespeichert · leer lassen zum Beibehalten' : 'Passwort eingeben'
+ }
+ />
+
+
+
+ update('folder', e.target.value)}
+ placeholder="INBOX"
+ />
+
+
+
+ update('onlyUnread', e.target.checked)}
+ />{' '}
+ Nur ungelesene Nachrichten abrufen
+
+
+ update('markRead', e.target.checked)}
+ />{' '}
+ Nach erfolgreicher Verarbeitung als gelesen markieren
+
+
+
+ Die Empfängeradresse muss zu einer Eingangsadresse dieser Queue passen. Nachrichten werden
+ nicht gelöscht. Zugangsdaten werden verschlüsselt gespeichert.
+
+
+
+
+
+
+
+
Abrufzeitplan / Cron-Job
+
Serverseitiger Hintergrundabruf, auch ohne geöffneten Browser.
+
+
+
+
+ update('schedule', { ...schedule, mode: v })}
+ >
+ Regelmäßiges Intervall
+ Cron-Ausdruck
+
+
+ {schedule.mode === 'interval' ? (
+
+ update('schedule', { ...schedule, seconds: Number(e.target.value) })}
+ />
+
+ ) : (
+
+ update('schedule', { ...schedule, cron: e.target.value })}
+ placeholder="*/5 * * * *"
+ />
+
+ )}
+
+
+ update('schedule', { ...schedule, timezone: e.target.value })}
+ placeholder="Europe/Berlin"
+ />
+
+ {schedule.mode === 'cron' && (
+
+ */5 * * * * alle 5 Minuten · 0 8-18 * * 1-5 werktags stündlich
+ von 8 bis 18 Uhr. Reihenfolge: Minute, Stunde, Tag, Monat, Wochentag.
+
+ )}
+
+
+ Status
+
+ {runtime.running
+ ? 'Abruf läuft …'
+ : runtime.error
+ ? 'Abruffehler'
+ : c.enabled
+ ? 'Zeitplan aktiviert'
+ : 'Empfang deaktiviert'}
+
+
+
+ Letzter Abruf
+ {runtime.lastRun ? date(runtime.lastRun) : 'Noch nicht ausgeführt'}
+
+
+ Zuletzt erfolgreich
+ {runtime.lastSuccess ? date(runtime.lastSuccess) : '—'}
+
+
+ Nächster Abruf
+ {c.enabled && runtime.nextRun ? date(runtime.nextRun) : '—'}
+
+ {runtime.error &&
{runtime.error}
}
+
+
+
action('verify-imap')}
+ >
+ Speichern & IMAP prüfen
+
+
action('fetch')}
+ >
+ Speichern & jetzt abrufen
+
+
+
+ Der Abruf läuft im Syncova-Serverprozess. Der Server muss gestartet sein; nach einem
+ Neustart wird ein überfälliger Abruf einmal nachgeholt.
+
+ >
+ )
+}
diff --git a/src/QueueMailSettings.tsx b/src/QueueMailSettings.tsx
new file mode 100644
index 0000000..4cd16f7
--- /dev/null
+++ b/src/QueueMailSettings.tsx
@@ -0,0 +1,347 @@
+import { useEffect, useState } from 'react'
+import { Mail, Server, ShieldCheck, Save, CheckCircle2, PlugZap, Info } from 'lucide-react'
+import { Button } from './components/ui/button'
+import { Input } from './components/ui/input'
+import { Textarea } from './components/ui/textarea'
+import { Field, Select } from './App'
+import { api } from './api'
+import { InboundSettings } from './InboundSettings'
+function fingerprint(c: any) {
+ return JSON.stringify({ ...c, imap: c.imap ? { ...c.imap, runtime: undefined } : undefined })
+}
+type D = any
+export function QueueMailSettings({ q }: D) {
+ const [config, setConfig] = useState(null),
+ [savedConfig, setSavedConfig] = useState(''),
+ [password, setPassword] = useState(''),
+ [imapPassword, setImapPassword] = useState(''),
+ [busy, setBusy] = useState(false),
+ [error, setError] = useState(''),
+ [success, setSuccess] = useState('')
+ useEffect(() => {
+ let alive = true
+ api(`/queues/${q.id}/mail`)
+ .then((c) => {
+ if (alive) {
+ setConfig(c)
+ setSavedConfig(fingerprint(c))
+ }
+ })
+ .catch((e) => {
+ if (alive) setError(e.message)
+ })
+ const timer = setInterval(() => {
+ api(`/queues/${q.id}/mail`)
+ .then((fresh) => {
+ if (alive)
+ setConfig((current: D) =>
+ current
+ ? { ...current, imap: { ...current.imap, runtime: fresh.imap.runtime } }
+ : current,
+ )
+ })
+ .catch(() => {})
+ }, 5000)
+ return () => {
+ alive = false
+ clearInterval(timer)
+ }
+ }, [q.id])
+ const smtp = config?.smtp,
+ ack = config?.acknowledgement
+ const dirty = !!config && (fingerprint(config) !== savedConfig || !!password || !!imapPassword)
+ const save = async () => {
+ setError('')
+ setSuccess('')
+ const c = await api(`/queues/${q.id}/mail`, 'PUT', { ...config, password, imapPassword })
+ setConfig(c)
+ setSavedConfig(fingerprint(c))
+ setPassword('')
+ setImapPassword('')
+ return c
+ }
+ const updateSmtp = (key: string, value: D) =>
+ setConfig({ ...config, smtp: { ...smtp, [key]: value } })
+ const updateAck = (key: string, value: D) =>
+ setConfig({ ...config, acknowledgement: { ...ack, [key]: value } })
+ const updateImap = (key: string, value: D) =>
+ setConfig((current: D) => ({ ...current, imap: { ...current.imap, [key]: value } }))
+ const imapAction = async (action: string) => {
+ setBusy(true)
+ setError('')
+ setSuccess('')
+ try {
+ await save()
+ const result = await api(`/queues/${q.id}/mail/${action}`, 'POST', {})
+ setSuccess(result.message)
+ const fresh = await api(`/queues/${q.id}/mail`)
+ setConfig((c: D) => ({ ...c, imap: { ...c.imap, runtime: fresh.imap.runtime } }))
+ } catch (e) {
+ setError((e as Error).message)
+ } finally {
+ setBusy(false)
+ }
+ }
+ const placeholders: D = {
+ ticketnummer: 'SYN-00123',
+ betreff: 'Frage zu meiner Bestellung',
+ kundenname: 'Anna Beispiel',
+ queue: q.name,
+ }
+ const preview = (value: string) =>
+ value.replace(/\{(ticketnummer|betreff|kundenname|queue)\}/g, (_, k) => placeholders[k])
+ return (
+
+ {error && (
+
+ {error}
+
+ )}
+ {success && (
+
+
+ {success}
+
+ )}
+ {!config ? (
+
+ {error
+ ? 'Einstellungen konnten nicht geladen werden.'
+ : 'E-Mail-Einstellungen werden geladen …'}
+
+ ) : (
+
{
+ e.preventDefault()
+ setBusy(true)
+ try {
+ await save()
+ setSuccess('E-Mail-Einstellungen für ' + q.name + ' gespeichert.')
+ } catch (e) {
+ setError((e as Error).message)
+ } finally {
+ setBusy(false)
+ }
+ }}
+ >
+
+
+
+
+
+
Senden · SMTP
+
Eigener Postausgang für die Queue {q.name}.
+
+
+ {dirty
+ ? 'Ungespeicherte Änderungen'
+ : smtp.mode === 'smtp'
+ ? 'SMTP konfiguriert'
+ : smtp.mode === 'legacy'
+ ? 'Globale Konfiguration'
+ : 'Entwicklungsadapter'}
+
+
+
+ updateSmtp('mode', v)}
+ >
+ Entwicklungsadapter · keine echten E-Mails
+ SMTP · E-Mails über den Queue-Server versenden
+ {smtp.mode === 'legacy' && (
+ Bestehende globale SMTP-Konfiguration
+ )}
+
+
+ {smtp.mode === 'smtp' && (
+ <>
+
+
+ updateSmtp('host', e.target.value)}
+ />
+
+
+ updateSmtp('port', Number(e.target.value))}
+ />
+
+
+
+
+ setConfig({
+ ...config,
+ smtp: { ...smtp, security: v, port: v === 'tls' ? 465 : 587 },
+ })
+ }
+ >
+
+ TLS · verschlüsselt ab Verbindungsaufbau (üblicherweise Port 465)
+
+
+ STARTTLS · Verschlüsselung zwingend erforderlich (üblicherweise Port 587)
+
+
+
+
+
+ updateSmtp('username', e.target.value)}
+ placeholder="support@example.de"
+ />
+
+
+ setPassword(e.target.value)}
+ placeholder={
+ config.passwordSet
+ ? 'Gespeichert · leer lassen zum Beibehalten'
+ : 'Passwort eingeben'
+ }
+ />
+
+
+
+
+
+ Das Passwort wird verschlüsselt gespeichert. Der SMTP-Server muss die unter
+ „Adressen“ freigegebenen Absender erlauben.
+
+
+ >
+ )}
+ {smtp.mode === 'development' && (
+
+
+
+ Antworten und Eingangsbestätigungen dieser Queue werden nur lokal im
+ Entwicklungs-Postausgang gespeichert.
+
+
+ )}
+
+
+
+
+
+
+
+
Automatische Eingangsbestätigung
+
Geben Sie Ihren Kunden Sicherheit, dass ihre Anfrage angekommen ist.
+
+
+
+
+ Eingangsbestätigung aktivieren
+ Einmal pro neuem Ticket. Keine erneute Bestätigung bei Kundenantworten.
+
+ updateAck('enabled', e.target.checked)}
+ />
+
+
+
+ updateAck('subject', e.target.value)}
+ />
+
+
+ updateAck('body', e.target.value)}
+ />
+
+
+ Verfügbare Platzhalter
+ {Object.keys(placeholders).map((key) => (
+ {'{' + key + '}'}
+ ))}
+
+
+ updateAck('includeSignature', e.target.checked)}
+ />{' '}
+ Standardsignatur der Queue anhängen
+
+
+ Vorschau mit Beispieldaten
+ {preview(ack.subject)}
+
+ {preview(ack.body)}
+ {ack.includeSignature &&
+ '\n\n' + (q.signatures.find((s: D) => s.default)?.body || '')}
+
+
+
+
+
{
+ setBusy(true)
+ try {
+ await save()
+ const result = await api(`/queues/${q.id}/mail/verify`, 'POST', {})
+ setSuccess(result.message)
+ } catch (e) {
+ setError((e as Error).message)
+ } finally {
+ setBusy(false)
+ }
+ }}
+ >
+
+ {busy ? 'Wird geprüft …' : 'Speichern & SMTP prüfen'}
+
+
+
+ {busy ? 'Bitte warten …' : 'Einstellungen speichern'}
+
+
+
+ )}
+
+ )
+}
diff --git a/src/Settings.tsx b/src/Settings.tsx
new file mode 100644
index 0000000..b057982
--- /dev/null
+++ b/src/Settings.tsx
@@ -0,0 +1,960 @@
+import { useEffect, useState } from 'react'
+import {
+ Plus,
+ Trash2,
+ ArrowUp,
+ ArrowDown,
+ Save,
+ Bell,
+ Mail,
+ ShieldCheck,
+ Settings2,
+ RefreshCw,
+} from 'lucide-react'
+import { Button } from './components/ui/button'
+import { Input } from './components/ui/input'
+import { Textarea } from './components/ui/textarea'
+import { Field, Select, Modal } from './App'
+import { api, date } from './api'
+import { DeleteQueue } from './DeleteQueue'
+import { DeleteIdentity } from './DeleteIdentity'
+import { SignatureBodyEditor } from './HtmlPreview'
+import { QueueMailSettings } from './QueueMailSettings'
+type D = any
+const behaviorNames: D = {
+ new: 'Neue Anfrage',
+ open: 'Offen',
+ active: 'In Bearbeitung',
+ wait_customer: 'Auf Kundenantwort warten',
+ wait_date: 'Auf Termin warten',
+ wait_goods: 'Auf Ware warten',
+ closed: 'Erledigt',
+}
+const actionNames: D = {
+ view: 'Tickets lesen',
+ reply: 'Antworten',
+ note: 'Interne Notizen',
+ status: 'Status ändern',
+ assign: 'Zuweisen',
+ move: 'Queue wechseln',
+ goods: 'Wareneingang bestätigen',
+ queue: 'Queue konfigurieren',
+ statuses: 'Status verwalten',
+ signatures: 'Signaturen verwalten',
+ users: 'Benutzer verwalten',
+ logs: 'Systemprotokoll lesen',
+}
+export function SettingsPage({ page, boot, refresh, run, can }: D) {
+ const [qid, setQid] = useState(boot.queues[0]?.id || ''),
+ [newQueue, setNewQueue] = useState(false),
+ [logs, setLogs] = useState([]),
+ [outbox, setOutbox] = useState([]),
+ [admin, setAdmin] = useState(null),
+ [editUser, setEditUser] = useState(null),
+ [editGroup, setEditGroup] = useState(null),
+ [deletion, setDeletion] = useState(null),
+ [prefs, setPrefs] = useState(boot.user.prefs),
+ [error, setError] = useState('')
+ useEffect(() => {
+ if (!boot.queues.some((q: D) => q.id === qid)) setQid(boot.queues[0]?.id || '')
+ }, [boot.queues, qid])
+ const load = async () => {
+ try {
+ if (page === 'users') setAdmin(await api('/admin'))
+ if (page === 'logs') {
+ setLogs(await api('/logs'))
+ if (can('*', 'logs')) setOutbox(await api('/outbox'))
+ }
+ } catch (e) {
+ setError((e as Error).message)
+ }
+ }
+ useEffect(() => {
+ load()
+ }, [page])
+ return (
+ <>
+
+
+
WORKSPACE VERWALTEN
+
+ {
+ (
+ {
+ settings: 'Queue-Einstellungen',
+ users: 'Benutzer & Gruppen',
+ logs: 'Systemprotokoll',
+ preferences: 'Benachrichtigungen',
+ } as D
+ )[page]
+ }
+
+
+ {
+ (
+ {
+ settings: 'Queues, Mail-Einstellungen, Abrufzeitpläne und Signaturen.',
+ users: 'Klare Rollen. Passender Zugriff für Ihr Team.',
+ logs: 'Änderungen und Hintergrundprozesse nachvollziehen.',
+ preferences: 'Sie entscheiden, wann und wie Sie informiert werden.',
+ } as D
+ )[page]
+ }
+
+
+ {page === 'settings' && can('*', 'queue') && (
+
setNewQueue(true)}>
+ Neue Queue
+
+ )}
+
+ {error && (
+
+ {error}
+
+ )}
+ {page === 'settings' && (
+ <>
+
+ {boot.queues.map((q: D) => (
+ setQid(q.id)}
+ >
+
+ {q.name}
+
+ ))}
+
+ {boot.queues.find((q: D) => q.id === qid) && (
+ q.id === qid)}
+ run={run}
+ refresh={refresh}
+ can={can}
+ />
+ )}
+ setNewQueue(false)} title="Neue Queue">
+ {
+ await refresh()
+ setQid(q.id)
+ setNewQueue(false)
+ }}
+ />
+
+ >
+ )}
+ {page === 'preferences' && (
+ {
+ e.preventDefault()
+ run(
+ () => api('/preferences', 'PUT', prefs),
+ 'Benachrichtigungseinstellungen gespeichert',
+ )
+ }}
+ >
+ Ihre Ereignisse & Kanäle
+
+ Benachrichtigungen erhalten Sie ausschließlich für Queues, auf die Sie zugreifen dürfen.
+
+
+
+
+ Ereignis
+
+ Glocke
+
+
+ E-Mail
+
+
+
+
+ {[
+ ['new', 'Neues Ticket'],
+ ['reply', 'Neue Kundenantwort'],
+ ['assigned', 'Persönliche Zuweisung'],
+ ['reopened', 'Automatisch wieder geöffnet'],
+ ].map(([event, label]) => (
+
+ {label}
+ {['bell', 'email'].map((ch) => (
+
+
+ setPrefs({
+ ...prefs,
+ [event]: {
+ bell: prefs[event]?.bell ?? true,
+ email: prefs[event]?.email ?? false,
+ [ch]: e.target.checked,
+ },
+ })
+ }
+ />
+
+ ))}
+
+ ))}
+
+
+
+ Einstellungen speichern
+
+
+ )}
+ {page === 'logs' && (
+ <>
+
+
+
Audit-Protokoll
+
+ Aktualisieren
+
+
+
+ Unveränderliche Einträge mit Akteur, Entität und Vorher-/Nachher-Werten.
+
+ {logs.length === 0 && Noch keine Systemereignisse.
}
+ {logs.map((a) => (
+
+
+ {a.action}
+
+ {date(a.created_at)} ·{' '}
+ {a.actor_name || boot.users.find((u: D) => u.id === a.actor)?.name || a.actor} ·{' '}
+ {a.entity}
+
+
+
+ Details
+
+ {JSON.stringify(
+ { vorher: JSON.parse(a.before_value), nachher: JSON.parse(a.after_value) },
+ null,
+ 2,
+ )}
+
+
+
+ ))}
+
+ {can('*', 'logs') && (
+
+ Versandaufträge
+
+ „uncertain“ erfordert die Prüfung am SMTP-Server. „blocked“ kennzeichnet einen
+ inzwischen ungültigen Absender.
+
+ {outbox.length === 0 ? (
+ Keine Versandaufträge.
+ ) : (
+ outbox.map((o) => (
+
+ {o.id.slice(0, 8)}
+ {o.state}
+ {o.attempts} Versuche
+ {o.error}
+
+ ))
+ )}
+
+ )}
+ >
+ )}
+ {page === 'users' && admin && (
+ <>
+
+
+
+ Teammitglieder {admin.users.length}
+
+
+ setEditUser({ name: '', email: '', password: '', active: 1, groups: [] })
+ }
+ >
+ Benutzer hinzufügen
+
+
+
+
+
+ Name
+ E-Mail
+ Gruppen
+ Status
+
+
+
+
+ {admin.users.map((u: D) => (
+
+
+ {u.name}
+
+ {u.email}
+
+ {u.groups
+ .map((id: string) => admin.groups.find((g: D) => g.id === id)?.name)
+ .join(', ')}
+
+ {u.active ? 'Aktiv' : 'Deaktiviert'}
+
+
+ setEditUser({ ...u, password: '' })}
+ >
+ Bearbeiten
+
+ setDeletion({ ...u, kind: 'users' })}
+ >
+
+
+
+
+
+ ))}
+
+
+
+
+
+
Berechtigungsgruppen
+
setEditGroup({ name: '', permissions: {} })}>
+ Gruppe erstellen
+
+
+
+ Berechtigungen aller Gruppen werden addiert (Union). Eine leere Auswahl gewährt keinen
+ Zugriff. „Alle Queues“ gilt auch für neue Queues. Benutzerverwaltung ist
+ workspaceweit.
+
+
+ {admin.groups.map((g: D) => (
+
+
setEditGroup(structuredClone(g))}>
+
+ {g.name}
+
+ {Object.keys(g.permissions)
+ .map((k) =>
+ k === '*'
+ ? 'Alle Queues'
+ : boot.queues.find((q: D) => q.id === k)?.name || k,
+ )
+ .join(', ')}
+
+ Berechtigungen ansehen →
+
+
+
+ {admin.users.filter((u: D) => u.groups.includes(g.id)).length} Mitglieder
+
+ {g.id === 'admins' ? (
+ Geschützt
+ ) : (
+ setDeletion({ ...g, kind: 'groups' })}
+ >
+
+ Löschen
+
+ )}
+
+
+ ))}
+
+
+ {deletion && (
+ setDeletion(null)}
+ onDeleted={async () => {
+ await load()
+ await refresh()
+ setDeletion(null)
+ }}
+ />
+ )}
+ setEditUser(null)}
+ title={editUser?.id ? 'Benutzer bearbeiten' : 'Benutzer hinzufügen'}
+ >
+ {editUser && (
+ {
+ e.preventDefault()
+ if (
+ await run(async () => {
+ await api('/users', 'POST', editUser)
+ await load()
+ }, 'Benutzer gespeichert')
+ )
+ setEditUser(null)
+ }}
+ >
+
+ setEditUser({ ...editUser, name: e.target.value })}
+ />
+
+
+ setEditUser({ ...editUser, email: e.target.value })}
+ />
+
+ {(
+ [
+ ['phone', 'Telefon'],
+ ['job_title', 'Position / Funktion'],
+ ['department', 'Abteilung'],
+ ] as const
+ ).map(([key, label]) => (
+
+ setEditUser({ ...editUser, [key]: e.target.value })}
+ />
+
+ ))}
+
+ setEditUser({ ...editUser, password: e.target.value })}
+ />
+
+
+ setEditUser({ ...editUser, active: e.target.checked })}
+ />{' '}
+ Benutzer aktiv
+
+
+ Gruppenmitgliedschaften
+ {admin.groups.map((g: D) => (
+
+
+ setEditUser({
+ ...editUser,
+ groups: e.target.checked
+ ? [...editUser.groups, g.id]
+ : editUser.groups.filter((id: string) => id !== g.id),
+ })
+ }
+ />
+ {g.name}
+
+ ))}
+
+ Benutzer speichern
+
+ )}
+
+ setEditGroup(null)} title="Berechtigungsgruppe">
+ {editGroup && (
+ {
+ e.preventDefault()
+ if (
+ await run(async () => {
+ await api('/groups', 'POST', editGroup)
+ await load()
+ }, 'Gruppe gespeichert')
+ )
+ setEditGroup(null)
+ }}
+ >
+
+ setEditGroup({ ...editGroup, name: e.target.value })}
+ />
+
+ {[{ id: '*', name: 'Alle Queues / Workspace' }, ...boot.queues].map((q: D) => (
+
+ {q.name}
+
+ {admin.actions
+ .filter((a: string) => q.id === '*' || a !== 'users')
+ .map((a: string) => (
+
+
+ setEditGroup({
+ ...editGroup,
+ permissions: {
+ ...editGroup.permissions,
+ [q.id]: e.target.checked
+ ? [...(editGroup.permissions[q.id] || []), a]
+ : (editGroup.permissions[q.id] || []).filter(
+ (x: string) => x !== a,
+ ),
+ },
+ })
+ }
+ />
+ {actionNames[a]}
+
+ ))}
+
+
+ ))}
+ {editGroup.id !== 'admins' && Gruppe speichern }
+
+ )}
+
+ >
+ )}
+ >
+ )
+}
+function NewQueue({ run, onDone }: D) {
+ const [name, setName] = useState(''),
+ [email, setEmail] = useState('')
+ return (
+ {
+ e.preventDefault()
+ run(async () => {
+ const q = await api('/queues', 'POST', {
+ name,
+ addresses: [{ email, incoming: true, outgoing: true, default: true }],
+ })
+ await onDone(q)
+ }, 'Queue angelegt')
+ }}
+ >
+
+ setName(e.target.value)} />
+
+
+ setEmail(e.target.value)} />
+
+ Die Standardstatus und eine Signatur werden automatisch erstellt.
+ Queue erstellen
+
+ )
+}
+function QueueEditor({ q, run, refresh, can }: D) {
+ const [name, setName] = useState(q.name),
+ [color, setColor] = useState(q.color),
+ [addresses, setAddresses] = useState(structuredClone(q.addresses)),
+ [statuses, setStatuses] = useState(structuredClone(q.statuses)),
+ [signatures, setSignatures] = useState(structuredClone(q.signatures)),
+ [mapping, setMapping] = useState({}),
+ [tab, setTab] = useState('addresses')
+ useEffect(() => {
+ setName(q.name)
+ setColor(q.color)
+ setAddresses(structuredClone(q.addresses))
+ setStatuses(structuredClone(q.statuses))
+ setSignatures(structuredClone(q.signatures))
+ setMapping({})
+ }, [q])
+ const save = async (path: string, data: D) =>
+ run(async () => {
+ await api(path, 'PUT', data)
+ await refresh()
+ }, 'Queue-Einstellungen gespeichert')
+ return (
+
+
+ {[
+ ['addresses', 'Allgemein'],
+ ...(can(q.id, 'queue') ? [['mail', 'Mail-Einstellungen']] : []),
+ ['statuses', 'Status & Automatisierung'],
+ ['signatures', 'Signaturen'],
+ ].map(([id, label]) => (
+ setTab(id)}>
+ {label}
+
+ ))}
+
+ {tab === 'mail' && can(q.id, 'queue') && (
+ <>
+ {
+ e.preventDefault()
+ save('/queues/' + q.id, { name, color, addresses })
+ }}
+ >
+ {' '}
+ E-Mail-Adressen
+
+ Jede Adresse gehört zu genau einer Queue. Wählen Sie einen freigegebenen
+ Standardabsender.
+
+ {addresses.map((a: D, i: number) => (
+
+
+ setAddresses(
+ addresses.map((a, j) => (j === i ? { ...a, email: e.target.value } : a)),
+ )
+ }
+ />
+ {['incoming', 'outgoing', 'default'].map((key, j) => (
+
+
+ setAddresses(
+ addresses.map((a, k) =>
+ key === 'default'
+ ? { ...a, default: k === i ? e.target.checked : false }
+ : k === i
+ ? { ...a, [key]: e.target.checked }
+ : a,
+ ),
+ )
+ }
+ />
+ {['Eingang', 'Ausgang', 'Standard'][j]}
+
+ ))}
+ {can(q.id, 'queue') && (
+ setAddresses(addresses.filter((_, j) => j !== i))}
+ >
+
+
+ )}
+
+ ))}
+ {can(q.id, 'queue') && (
+ <>
+
+ setAddresses([
+ ...addresses,
+ { email: '', incoming: true, outgoing: false, default: false },
+ ])
+ }
+ >
+ Adresse hinzufügen
+
+
+
+ Änderungen speichern
+
+
+ >
+ )}
+
+
+
+ >
+ )}
+ {tab === 'addresses' && (
+ {
+ e.preventDefault()
+ save(`/queues/${q.id}`, { name, color, addresses })
+ }}
+ >
+
+
+ setName(e.target.value)}
+ disabled={!can(q.id, 'queue')}
+ />
+
+
+ setColor(e.target.value)}
+ disabled={!can(q.id, 'queue')}
+ />
+
+
+ {can(q.id, 'queue') && (
+
+ Änderungen speichern
+
+ )}
+
+ )}
+ {tab === 'addresses' && can(q.id, 'queue') && }
+ {tab === 'statuses' && (
+ {
+ e.preventDefault()
+ save(`/queues/${q.id}/statuses`, { statuses, mapping })
+ }}
+ >
+ Status dieser Queue
+
+ Namen sind frei anpassbar. Interne Verhaltenskennungen steuern Automatisierungen
+ unabhängig vom Namen.
+
+ {statuses.map((s: D, i: number) => (
+
+
+ setStatuses(
+ statuses.map((s, j) => (j === i ? { ...s, color: e.target.value } : s)),
+ )
+ }
+ />
+
+ setStatuses(
+ statuses.map((s, j) => (j === i ? { ...s, name: e.target.value } : s)),
+ )
+ }
+ />
+
+ setStatuses(statuses.map((s, j) => (j === i ? { ...s, behavior: v } : s)))
+ }
+ >
+ {Object.entries(behaviorNames).map(([id, n]: D) => (
+
+ {n}
+
+ ))}
+
+
+
+ setStatuses(
+ statuses.map((s, j) => (j === i ? { ...s, active: e.target.checked } : s)),
+ )
+ }
+ />{' '}
+ Aktiv
+
+ {can(q.id, 'statuses') && (
+
+
{
+ const a = [...statuses]
+ ;[a[i - 1], a[i]] = [a[i], a[i - 1]]
+ setStatuses(a)
+ }}
+ >
+
+
+
{
+ const a = [...statuses]
+ ;[a[i + 1], a[i]] = [a[i], a[i + 1]]
+ setStatuses(a)
+ }}
+ >
+
+
+
+ )}
+ {!s.active && s.id && (
+
+ setMapping({ ...mapping, [s.id]: id })}
+ >
+ Zielstatus auswählen
+ {statuses
+ .filter((z) => z.active && z.id !== s.id && z.behavior !== 'wait_date')
+ .map((z) => (
+
+ {z.name}
+
+ ))}
+
+
+ )}
+
+ ))}
+ {can(q.id, 'statuses') && (
+ <>
+
+ setStatuses([
+ ...statuses,
+ { name: '', color: '#64748b', behavior: 'open', active: 1 },
+ ])
+ }
+ >
+ Status hinzufügen
+
+
+ Status speichern
+
+ >
+ )}
+
+ )}
+ {tab === 'signatures' && (
+ {
+ e.preventDefault()
+ save(`/queues/${q.id}/signatures`, { signatures })
+ }}
+ >
+ Signaturen für {q.name}
+
+ Die Standardsignatur erscheint automatisch im Antworteditor. HTML-Signaturen werden mit
+ einer Klartextalternative versendet.
+
+ {signatures.map((s: D, i: number) => (
+
+ ))}
+ {can(q.id, 'signatures') && (
+ <>
+
+ setSignatures([...signatures, { name: '', body: '', default: false }])
+ }
+ >
+ Signatur hinzufügen
+
+
+ Signaturen speichern
+
+ >
+ )}
+
+ )}
+
+ )
+}
diff --git a/src/api.ts b/src/api.ts
new file mode 100644
index 0000000..2310b76
--- /dev/null
+++ b/src/api.ts
@@ -0,0 +1,22 @@
+export async function api(path: string, method = 'GET', data?: unknown) {
+ const r = await fetch('/api' + path, {
+ method,
+ headers: { 'Content-Type': 'application/json' },
+ body: data === undefined ? undefined : JSON.stringify(data),
+ })
+ const result = await r.json()
+ if (!r.ok) {
+ const error = new Error(result.error || 'Anfrage fehlgeschlagen.') as Error & { status: number }
+ error.status = r.status
+ throw error
+ }
+ return result
+}
+export const date = (d: string) =>
+ new Intl.DateTimeFormat('de-DE', {
+ day: '2-digit',
+ month: 'short',
+ hour: '2-digit',
+ minute: '2-digit',
+ }).format(new Date(d))
+export const number = (id: number) => `SYN-${String(id).padStart(5, '0')}`
diff --git a/src/components/ui/absolute-center.tsx b/src/components/ui/absolute-center.tsx
new file mode 100644
index 0000000..9012396
--- /dev/null
+++ b/src/components/ui/absolute-center.tsx
@@ -0,0 +1,7 @@
+import { ark } from '@ark-ui/react/factory'
+import type { ComponentProps } from 'react'
+import { styled } from 'styled-system/jsx'
+import { absoluteCenter } from 'styled-system/recipes'
+
+export type AbsoluteCenterProps = ComponentProps
+export const AbsoluteCenter = styled(ark.div, absoluteCenter)
diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsx
new file mode 100644
index 0000000..91200da
--- /dev/null
+++ b/src/components/ui/badge.tsx
@@ -0,0 +1,7 @@
+import { ark } from '@ark-ui/react/factory'
+import type { ComponentProps } from 'react'
+import { styled } from 'styled-system/jsx'
+import { badge } from 'styled-system/recipes'
+
+export type BadgeProps = ComponentProps
+export const Badge = styled(ark.div, badge)
diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx
new file mode 100644
index 0000000..df5eec2
--- /dev/null
+++ b/src/components/ui/button.tsx
@@ -0,0 +1,81 @@
+'use client'
+import { ark } from '@ark-ui/react/factory'
+import { createContext, mergeProps } from '@ark-ui/react/utils'
+import { type ComponentProps, forwardRef, useMemo } from 'react'
+import { styled } from 'styled-system/jsx'
+import { type ButtonVariantProps, button } from 'styled-system/recipes'
+import { Group, type GroupProps } from './group'
+import { Loader } from './loader'
+
+interface ButtonLoadingProps {
+ /**
+ * If `true`, the button will show a loading spinner.
+ * @default false
+ */
+ loading?: boolean | undefined
+ /**
+ * The text to show while loading.
+ */
+ loadingText?: React.ReactNode | undefined
+ /**
+ * The spinner to show while loading.
+ */
+ spinner?: React.ReactNode | undefined
+ /**
+ * The placement of the spinner
+ * @default "start"
+ */
+ spinnerPlacement?: 'start' | 'end' | undefined
+}
+
+type BaseButtonProps = ComponentProps
+const BaseButton = styled(ark.button, button)
+
+export interface ButtonProps extends BaseButtonProps, ButtonLoadingProps {}
+
+export const Button = forwardRef(function Button(props, ref) {
+ const propsContext = useButtonPropsContext()
+ const buttonProps = useMemo(
+ () => mergeProps(propsContext, props),
+ [propsContext, props],
+ )
+
+ const { loading, loadingText, children, spinner, spinnerPlacement, ...rest } = buttonProps
+ return (
+
+ {!props.asChild && loading ? (
+
+ {children}
+
+ ) : (
+ children
+ )}
+
+ )
+})
+
+export interface ButtonGroupProps extends GroupProps, ButtonVariantProps {}
+
+export const ButtonGroup = forwardRef(
+ function ButtonGroup(props, ref) {
+ const [variantProps, otherProps] = useMemo(() => button.splitVariantProps(props), [props])
+ return (
+
+
+
+ )
+ },
+)
+
+const [ButtonPropsProvider, useButtonPropsContext] = createContext({
+ name: 'ButtonPropsContext',
+ hookName: 'useButtonPropsContext',
+ providerName: ' ',
+ strict: false,
+})
diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx
new file mode 100644
index 0000000..dacca94
--- /dev/null
+++ b/src/components/ui/dialog.tsx
@@ -0,0 +1,37 @@
+'use client'
+import { Dialog, useDialogContext } from '@ark-ui/react/dialog'
+import { ark } from '@ark-ui/react/factory'
+import { type ComponentProps, forwardRef } from 'react'
+import { createStyleContext, styled } from 'styled-system/jsx'
+import { dialog } from 'styled-system/recipes'
+
+const { withRootProvider, withContext } = createStyleContext(dialog)
+
+export type RootProps = ComponentProps
+export const Root = withRootProvider(Dialog.Root, {
+ defaultProps: { unmountOnExit: true, lazyMount: true },
+})
+export const RootProvider = withRootProvider(Dialog.RootProvider, {
+ defaultProps: { unmountOnExit: true, lazyMount: true },
+})
+export const Backdrop = withContext(Dialog.Backdrop, 'backdrop')
+export const CloseTrigger = withContext(Dialog.CloseTrigger, 'closeTrigger')
+export const Content = withContext(Dialog.Content, 'content')
+export const Description = withContext(Dialog.Description, 'description')
+export const Positioner = withContext(Dialog.Positioner, 'positioner')
+export const Title = withContext(Dialog.Title, 'title')
+export const Trigger = withContext(Dialog.Trigger, 'trigger')
+export const Body = withContext(ark.div, 'body')
+export const Header = withContext(ark.div, 'header')
+export const Footer = withContext(ark.div, 'footer')
+
+const StyledButton = styled(ark.button)
+
+export const ActionTrigger = forwardRef>(
+ function ActionTrigger(props, ref) {
+ const dialog = useDialogContext()
+ return dialog.setOpen(false)} />
+ },
+)
+
+export { DialogContext as Context } from '@ark-ui/react/dialog'
diff --git a/src/components/ui/group.tsx b/src/components/ui/group.tsx
new file mode 100644
index 0000000..7afb554
--- /dev/null
+++ b/src/components/ui/group.tsx
@@ -0,0 +1,7 @@
+import { ark } from '@ark-ui/react'
+import type { ComponentProps } from 'react'
+import { styled } from 'styled-system/jsx'
+import { group } from 'styled-system/recipes'
+
+export type GroupProps = ComponentProps
+export const Group = styled(ark.div, group)
diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx
new file mode 100644
index 0000000..20b4fa4
--- /dev/null
+++ b/src/components/ui/input.tsx
@@ -0,0 +1,7 @@
+import { Field } from '@ark-ui/react/field'
+import type { ComponentProps } from 'react'
+import { styled } from 'styled-system/jsx'
+import { input } from 'styled-system/recipes'
+
+export type InputProps = ComponentProps
+export const Input = styled(Field.Input, input)
diff --git a/src/components/ui/loader.tsx b/src/components/ui/loader.tsx
new file mode 100644
index 0000000..7f2967d
--- /dev/null
+++ b/src/components/ui/loader.tsx
@@ -0,0 +1,69 @@
+'use client'
+import { forwardRef } from 'react'
+import type { HTMLStyledProps } from 'styled-system/jsx'
+import { AbsoluteCenter } from './absolute-center'
+import { Span } from './span'
+import { Spinner } from './spinner'
+
+export interface LoaderProps extends HTMLStyledProps<'span'> {
+ /**
+ * Whether the loader is visible
+ * @default true
+ */
+ visible?: boolean | undefined
+ /**
+ * The spinner to display when loading
+ */
+ spinner?: React.ReactNode | undefined
+ /**
+ * The placement of the spinner
+ * @default "start"
+ */
+ spinnerPlacement?: 'start' | 'end' | undefined
+ /**
+ * The text to display when loading
+ */
+ text?: React.ReactNode | undefined
+
+ children?: React.ReactNode
+}
+
+export const Loader = forwardRef(function Loader(props, ref) {
+ const {
+ spinner = ,
+ spinnerPlacement = 'start',
+ children,
+ text,
+ visible = true,
+ ...rest
+ } = props
+
+ if (!visible) return children
+
+ if (text) {
+ return (
+
+ {spinnerPlacement === 'start' && spinner}
+ {text}
+ {spinnerPlacement === 'end' && spinner}
+
+ )
+ }
+
+ if (spinner) {
+ return (
+
+ {spinner}
+
+ {children}
+
+
+ )
+ }
+
+ return (
+
+ {children}
+
+ )
+})
diff --git a/src/components/ui/span.tsx b/src/components/ui/span.tsx
new file mode 100644
index 0000000..23eb089
--- /dev/null
+++ b/src/components/ui/span.tsx
@@ -0,0 +1,5 @@
+import type { ComponentProps } from 'react'
+import { styled } from 'styled-system/jsx'
+
+export type SpanProps = ComponentProps
+export const Span = styled('span')
diff --git a/src/components/ui/spinner.tsx b/src/components/ui/spinner.tsx
new file mode 100644
index 0000000..3ac71c8
--- /dev/null
+++ b/src/components/ui/spinner.tsx
@@ -0,0 +1,7 @@
+import { ark } from '@ark-ui/react/factory'
+import type { ComponentProps } from 'react'
+import { styled } from 'styled-system/jsx'
+import { spinner } from 'styled-system/recipes'
+
+export type SpinnerProps = ComponentProps
+export const Spinner = styled(ark.span, spinner)
diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsx
new file mode 100644
index 0000000..579d727
--- /dev/null
+++ b/src/components/ui/textarea.tsx
@@ -0,0 +1,7 @@
+import { Field } from '@ark-ui/react/field'
+import type { ComponentProps } from 'react'
+import { styled } from 'styled-system/jsx'
+import { textarea } from 'styled-system/recipes'
+
+export type TextareaProps = ComponentProps
+export const Textarea = styled(Field.Textarea, textarea)
diff --git a/src/fonts.css b/src/fonts.css
new file mode 100644
index 0000000..61e0453
--- /dev/null
+++ b/src/fonts.css
@@ -0,0 +1 @@
+/* System fonts keep the application private, fast, and usable offline. */
diff --git a/src/main.tsx b/src/main.tsx
new file mode 100644
index 0000000..9ed2028
--- /dev/null
+++ b/src/main.tsx
@@ -0,0 +1,9 @@
+import React from 'react'
+import { createRoot } from 'react-dom/client'
+import App from './App'
+import './styles.css'
+createRoot(document.getElementById('root')!).render(
+
+
+ ,
+)
diff --git a/src/styles.css b/src/styles.css
new file mode 100644
index 0000000..664b956
--- /dev/null
+++ b/src/styles.css
@@ -0,0 +1,2375 @@
+@layer reset, base, tokens, recipes, utilities;
+@import url('./fonts.css');
+body {
+ font-family: 'Segoe UI', Inter, Arial, sans-serif !important;
+ background: var(--bg) !important;
+ color: var(--text) !important;
+}
+.app {
+ background: var(--bg);
+}
+:root {
+ font-family: 'Segoe UI', Inter, Arial, sans-serif;
+ color: #252329;
+ background: #f8f8fa;
+ font-synthesis: none;
+ --bg: #f8f8fa;
+ --surface: #fff;
+ --sidebar: #fcfcfd;
+ --text: #252329;
+ --muted: #727078;
+ --border: #e5e4e9;
+ --hover: #f2f1f5;
+ --accent: #6d3bd1;
+ --accent-soft: #f0eafa;
+ --note: #fffbeb;
+}
+:root.dark {
+ --bg: #18181b;
+ --surface: #222225;
+ --sidebar: #1c1c1f;
+ --text: #eeeef0;
+ --muted: #a7a7b0;
+ --border: #38383f;
+ --hover: #2b2b30;
+ --accent: #b49aef;
+ --accent-soft: #30283e;
+ --note: #322b18;
+ color: var(--text);
+ background: var(--bg);
+}
+* {
+ box-sizing: border-box;
+}
+body {
+ margin: 0;
+}
+button,
+a,
+input,
+textarea,
+select {
+ -webkit-tap-highlight-color: transparent;
+}
+button {
+ cursor: pointer;
+}
+button:disabled {
+ cursor: not-allowed;
+ opacity: 0.5;
+}
+button:focus-visible,
+a:focus-visible,
+select:focus-visible,
+input:focus-visible,
+textarea:focus-visible {
+ outline: 2px solid var(--accent);
+ outline-offset: 3px;
+}
+button svg {
+ flex-shrink: 0;
+}
+a {
+ color: var(--accent);
+ text-decoration: none;
+}
+h1,
+h2,
+h3,
+p {
+ margin: 0;
+}
+h1 {
+ font-size: 29px;
+ line-height: 1.3;
+ font-weight: 650;
+ letter-spacing: -1px;
+}
+h2 {
+ font-size: 18px;
+ font-weight: 650;
+}
+h3 {
+ font-size: 15px;
+ margin: 20px 0 9px;
+}
+small {
+ font-size: 12px;
+}
+input,
+textarea,
+select {
+ font-family: inherit;
+ color: var(--text);
+}
+input[type='checkbox'],
+input[type='radio'] {
+ accent-color: var(--accent);
+ width: 15px;
+ height: 15px;
+}
+select {
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ background: var(--surface);
+ min-height: 36px;
+ padding: 6px 28px 6px 12px;
+ font-size: 12px;
+ max-width: 100%;
+}
+textarea {
+ resize: vertical;
+ min-height: 120px;
+}
+pre {
+ font-size: 11px;
+ white-space: pre-wrap;
+ overflow-wrap: anywhere;
+ background: var(--hover);
+ padding: 12px;
+ border-radius: 3px;
+ max-height: 260px;
+ overflow: auto;
+}
+summary {
+ cursor: pointer;
+ font-size: 11px;
+ color: var(--muted);
+}
+code {
+ font-size: 11px;
+ overflow-wrap: anywhere;
+}
+.app {
+ display: flex;
+ min-height: 100vh;
+}
+.sidebar {
+ width: 246px;
+ background: var(--sidebar);
+ border-right: 1px solid var(--border);
+ position: fixed;
+ inset: 0 auto 0 0;
+ padding: 29px 16px 0;
+ display: flex;
+ flex-direction: column;
+ z-index: 20;
+}
+.sidebar > .brand {
+ margin-bottom: 32px;
+}
+.queue-address-settings {
+ max-width: 900px;
+ margin: auto;
+}
+.imap-options {
+ display: flex;
+ flex-direction: column;
+ gap: 14px;
+ margin: 4px 0 20px;
+}
+.imap-options .check-label {
+ white-space: normal;
+ line-height: 1.6;
+ align-items: flex-start;
+}
+.imap-options input {
+ flex-shrink: 0;
+ margin-top: 2px;
+}
+.cron-help {
+ font-size: 11px !important;
+ color: var(--muted);
+ line-height: 1.8 !important;
+ margin: 14px 0 22px !important;
+}
+.cron-help code {
+ background: var(--hover);
+ border: 1px solid var(--border);
+ padding: 2px 5px;
+ color: var(--accent);
+ white-space: nowrap;
+}
+.fetch-runtime {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ border: 1px solid var(--border);
+ padding: 18px;
+ gap: 20px;
+ background: var(--hover);
+ margin: 20px 0;
+ border-radius: 3px;
+}
+.fetch-runtime span {
+ display: block;
+ font-size: 10px;
+ color: var(--muted);
+ margin-bottom: 7px;
+}
+.fetch-runtime strong {
+ font-size: 11px;
+ font-weight: 550;
+}
+.fetch-runtime p {
+ grid-column: 1/-1;
+ color: #d99064;
+ font-size: 11px !important;
+ margin: 0 !important;
+}
+.fetch-actions {
+ display: flex;
+ gap: 12px;
+ flex-wrap: wrap;
+}
+.fetch-actions button {
+ font-size: 11px;
+}
+.brand {
+ display: flex;
+ align-items: center;
+ gap: 9px;
+ font-size: 29px;
+ font-weight: 700;
+ letter-spacing: -1.3px;
+ color: var(--text);
+ padding: 0 12px;
+}
+.brandmark {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ background: var(--accent);
+ color: white;
+ width: 34px;
+ height: 36px;
+ border-radius: 3px;
+ transform: none;
+}
+.brand-dot {
+ font-size: 11px;
+ align-self: flex-start;
+ margin-top: 10px;
+ letter-spacing: 0;
+ margin-left: -5px;
+}
+.workspace {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ margin: 29px 4px 28px;
+ padding: 11px 9px;
+}
+.workspace div {
+ flex: 1;
+}
+.workspace strong {
+ font-size: 12px;
+ font-weight: 600;
+}
+.workspace small {
+ display: block;
+ color: var(--muted);
+ font-size: 11px;
+ margin-top: 2px;
+}
+.workspace-icon {
+ height: 31px;
+ width: 31px;
+ background: var(--accent-soft);
+ color: var(--accent);
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ display: grid;
+ place-items: center;
+ font-size: 13px;
+ font-weight: 700;
+}
+.nav-label {
+ font-size: 10px;
+ color: var(--muted);
+ letter-spacing: 1.1px;
+ font-weight: 650;
+ padding: 0 13px;
+ margin-bottom: 10px;
+}
+.nav {
+ display: flex;
+ align-items: center;
+ gap: 11px;
+ width: 100%;
+ padding: 10px 12px;
+ border-radius: 3px;
+ font-size: 12px;
+ color: var(--muted);
+ margin-bottom: 4px;
+ min-height: 39px;
+ text-align: left;
+}
+.nav:hover {
+ background: var(--hover);
+ color: var(--text);
+}
+.nav.active {
+ background: var(--accent-soft);
+ color: var(--accent);
+ font-weight: 600;
+}
+.nav span:nth-child(2) {
+ flex: 1;
+}
+.nav-count {
+ background: var(--hover);
+ border: 1px solid var(--border);
+ font-size: 10px;
+ padding: 1px 6px;
+ border-radius: 4px;
+ min-width: 23px;
+ text-align: center;
+}
+.nav.active .nav-count {
+ background: var(--surface);
+ border-color: transparent;
+}
+.queue-label {
+ display: flex;
+ justify-content: space-between;
+ margin-top: 30px;
+ align-items: center;
+}
+.queue-label button {
+ color: var(--muted);
+}
+.queue-dot {
+ height: 7px;
+ width: 7px;
+ display: inline-block;
+ border-radius: 50%;
+ flex-shrink: 0;
+}
+.sidebar .queue-dot {
+ margin: 0 6px;
+}
+.sidebar-bottom {
+ margin-top: auto;
+ padding-top: 40px;
+}
+.help-card {
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ padding: 14px;
+ margin: 0 5px 22px;
+ background: linear-gradient(125deg, var(--accent-soft), var(--surface));
+}
+.help-card > span {
+ display: flex;
+ align-items: center;
+ gap: 7px;
+ font-size: 12px;
+ font-weight: 600;
+}
+.help-card p {
+ font-size: 11px;
+ line-height: 1.7;
+ color: var(--muted);
+ margin: 9px 0;
+}
+.help-card a {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ font-size: 11px;
+ font-weight: 600;
+}
+.profile {
+ border-top: 1px solid var(--border);
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ margin-top: 19px;
+ padding: 18px 5px;
+}
+.profile div {
+ flex: 1;
+}
+.profile strong {
+ font-size: 12px;
+ display: block;
+}
+.profile small {
+ font-size: 10px;
+ display: block;
+ color: var(--muted);
+ margin-top: 3px;
+}
+.profile button {
+ color: var(--muted);
+}
+.avatar {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ background: #e9e7e0;
+ color: #70654d;
+ width: 34px;
+ height: 34px;
+ border-radius: 50%;
+ font-size: 11px;
+ font-weight: 600;
+ flex-shrink: 0;
+}
+.avatar.small {
+ width: 29px;
+ height: 29px;
+}
+.avatar.tiny {
+ width: 25px;
+ height: 25px;
+ font-size: 9px;
+ background: #eee9f4;
+ color: #786297;
+}
+.avatar.staff {
+ background: var(--accent-soft);
+ color: var(--accent);
+}
+.main {
+ margin-left: 246px;
+ flex: 1;
+ min-width: 0;
+}
+.topbar {
+ height: 76px;
+ border-bottom: 1px solid var(--border);
+ background: var(--surface);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 36px;
+ position: relative;
+ z-index: 15;
+}
+.breadcrumb {
+ display: flex;
+ gap: 12px;
+ align-items: center;
+ font-size: 11px;
+ color: var(--muted);
+}
+.breadcrumb span {
+ color: var(--text);
+}
+.header-actions {
+ display: flex;
+ align-items: center;
+ gap: 23px;
+ color: var(--muted);
+}
+.header-actions button {
+ display: grid;
+ place-items: center;
+}
+.connection {
+ display: flex;
+ gap: 6px;
+ align-items: center;
+ font-size: 10px;
+ margin-right: 8px;
+}
+.connection > span,
+.live-dot {
+ width: 5px;
+ height: 5px;
+ background: #31a476;
+ border-radius: 50%;
+ display: inline-block;
+}
+.bell {
+ position: relative;
+}
+.bell > span {
+ position: absolute;
+ top: -9px;
+ right: -8px;
+ border-radius: 3px;
+ font-size: 9px;
+ background: var(--accent);
+ color: var(--surface);
+ padding: 0 4px;
+}
+.mobile-toggle {
+ display: none;
+}
+main {
+ padding: 36px;
+ max-width: 1800px;
+ margin: auto;
+}
+.page-heading {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin: 0 0 28px;
+ gap: 20px;
+}
+.eyebrow {
+ font-size: 9px;
+ letter-spacing: 1.7px;
+ color: var(--accent);
+ font-weight: 650;
+ margin-bottom: 11px;
+}
+.page-heading p {
+ font-size: 12px;
+ color: var(--muted);
+ margin-top: 10px;
+}
+.page-heading > button {
+ font-size: 11px;
+ height: 36px;
+ gap: 8px;
+ border-radius: 3px;
+ background: var(--accent);
+ color: var(--surface);
+}
+.title-count {
+ font-size: 12px;
+ vertical-align: middle;
+ letter-spacing: 0;
+ font-weight: 500;
+ background: var(--surface);
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ padding: 3px 8px;
+ margin-left: 13px;
+ color: var(--muted);
+}
+.stats {
+ display: grid;
+ grid-template-columns: repeat(4, 1fr);
+ gap: 17px;
+ margin-bottom: 31px;
+}
+.stat {
+ background: var(--surface);
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ padding: 17px 19px;
+}
+.stat .flex > span:first-child {
+ font-size: 11px;
+ font-weight: 550;
+ color: var(--muted);
+}
+.stat-icon {
+ width: 30px;
+ height: 30px;
+ border-radius: 3px;
+ display: grid;
+ place-items: center;
+}
+.teal {
+ background: var(--accent-soft);
+ color: var(--accent);
+}
+.blue {
+ background: #edf3fd;
+ color: #6590cc;
+}
+.amber {
+ background: #fff6e7;
+ color: #c6984c;
+}
+.purple {
+ background: #f2edfc;
+ color: #9c7cd0;
+}
+.dark .blue,
+.dark .amber,
+.dark .purple {
+ background: var(--hover);
+}
+.stat > strong {
+ font-size: 30px;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ line-height: 1.5;
+ font-weight: 600;
+ margin: 6px 0 3px;
+ letter-spacing: -1px;
+}
+.stat-dash {
+ font-size: 15px;
+ color: var(--border);
+ font-weight: 400;
+}
+.stat > small {
+ font-size: 10px;
+ color: var(--muted);
+}
+.flex {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+}
+.between {
+ justify-content: space-between;
+}
+.ticket-section {
+ background: var(--surface);
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ overflow: hidden;
+}
+.list-tabs {
+ display: flex;
+ align-items: center;
+ border-bottom: 1px solid var(--border);
+ padding: 0 21px;
+ gap: 25px;
+ overflow-x: auto;
+ white-space: nowrap;
+}
+.list-tabs > button {
+ padding: 19px 0 16px;
+ color: var(--muted);
+ font-size: 11px;
+ border-bottom: 2px solid transparent;
+ font-weight: 550;
+}
+.list-tabs > button.selected {
+ border-color: var(--accent);
+ color: var(--accent);
+}
+.list-tabs button span {
+ margin-left: 6px;
+ border-radius: 4px;
+ padding: 1px 6px;
+ background: var(--accent-soft);
+ font-size: 9px;
+}
+.filters {
+ display: flex;
+ align-items: center;
+ gap: 9px;
+ padding: 18px 20px;
+}
+.search {
+ flex: 1;
+ position: relative;
+ min-width: 160px;
+}
+.search svg {
+ position: absolute;
+ left: 10px;
+ top: 10px;
+ color: var(--muted);
+}
+.search input {
+ padding-left: 33px;
+ padding-right: 28px;
+ font-size: 11px;
+ min-height: 35px;
+ height: 35px;
+ border-color: var(--border);
+ border-radius: 3px;
+ width: 100%;
+}
+.search kbd {
+ position: absolute;
+ right: 10px;
+ top: 9px;
+ color: var(--muted);
+ font-size: 11px;
+}
+.filters select {
+ min-height: 35px;
+ font-size: 10px;
+ padding-left: 10px;
+ max-width: 145px;
+}
+.table-scroll {
+ overflow-x: auto;
+}
+.ticket-table {
+ width: 100%;
+ border-collapse: collapse;
+ table-layout: auto;
+ white-space: nowrap;
+}
+.ticket-table th {
+ font-weight: 500;
+ color: var(--muted);
+ font-size: 10px;
+ text-align: left;
+ background: var(--hover);
+ padding: 12px 14px;
+ border-block: 1px solid var(--border);
+}
+.ticket-table th svg {
+ display: inline;
+ vertical-align: middle;
+ margin-left: 6px;
+}
+.ticket-table th:first-child {
+ padding-left: 22px;
+}
+.ticket-table td {
+ padding: 18px 14px;
+ border-bottom: 1px solid var(--border);
+ font-size: 11px;
+}
+.ticket-table td:first-child {
+ padding-left: 22px;
+ width: 45%;
+}
+.ticket-table td:last-child {
+ padding-right: 20px;
+ color: var(--muted);
+}
+.ticket-table tr:last-child td {
+ border-bottom: none;
+}
+.ticket-table tbody tr {
+ cursor: pointer;
+ transition: background 0.15s;
+}
+.ticket-table tbody tr:hover {
+ background: var(--hover);
+}
+.ticket-subject {
+ display: flex;
+ align-items: center;
+ gap: 13px;
+}
+.mail-icon {
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ width: 34px;
+ height: 35px;
+ display: grid;
+ place-items: center;
+ align-self: center;
+ color: #a8b3ad;
+ flex-shrink: 0;
+}
+.mail-icon.is-new {
+ background: var(--accent-soft);
+ border-color: transparent;
+ color: var(--accent);
+}
+.ticket-line {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ margin-bottom: 4px;
+}
+.ticket-number {
+ font-size: 9px;
+ letter-spacing: 0.4px;
+ color: var(--muted);
+}
+.new-dot {
+ width: 5px;
+ height: 5px;
+ border-radius: 50%;
+ background: var(--accent);
+}
+.subject-link {
+ font-size: 12px;
+ display: block;
+ font-weight: 600;
+ text-align: left;
+ color: var(--text);
+ max-width: 350px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.ticket-subject small {
+ font-size: 10px;
+ color: var(--muted);
+ display: block;
+ max-width: 345px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ margin-top: 5px;
+}
+.preview {
+ opacity: 0.65;
+}
+.status {
+ display: inline-flex;
+ gap: 6px;
+ align-items: center;
+ border: 1px solid color-mix(in srgb, var(--status-color) 17%, var(--surface));
+ background: color-mix(in srgb, var(--status-color) 8%, var(--surface));
+ color: color-mix(in srgb, var(--status-color) 82%, var(--text));
+ font-size: 9px;
+ font-weight: 550;
+ border-radius: 3px;
+ white-space: nowrap;
+ padding: 4px 7px;
+}
+.status > span {
+ width: 5px;
+ height: 5px;
+ border-radius: 50%;
+ background: var(--status-color);
+}
+.queue-cell,
+.person {
+ display: inline-flex;
+ align-items: center;
+ gap: 7px;
+ font-size: 10px;
+}
+.unassigned {
+ font-size: 9px;
+}
+.date-cell {
+ color: var(--muted);
+ font-size: 10px !important;
+}
+.table-footer {
+ display: flex;
+ justify-content: space-between;
+ border-top: 1px solid var(--border);
+ padding: 15px 21px;
+ font-size: 10px;
+ color: var(--muted);
+}
+.table-footer > span:last-child {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+}
+.bottom-note {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ color: var(--muted);
+ font-size: 9px;
+ margin-top: 23px;
+}
+.bottom-note > span {
+ margin-left: auto;
+}
+.muted {
+ color: var(--muted);
+}
+.empty {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: 48px 15px;
+ gap: 13px;
+ color: var(--muted);
+ font-size: 12px;
+}
+.empty > svg {
+ opacity: 0.6;
+}
+.notification-panel {
+ position: absolute;
+ top: 64px;
+ right: 35px;
+ width: 380px;
+ max-height: 70vh;
+ overflow: auto;
+ background: var(--surface);
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ box-shadow: 0 10px 40px #0002;
+ padding: 16px;
+ font-size: 12px;
+}
+.notification {
+ display: flex;
+ gap: 8px;
+ padding: 14px 8px;
+ border-bottom: 1px solid var(--border);
+}
+.notification.unread {
+ background: var(--accent-soft);
+}
+.notification > button:first-child {
+ flex: 1;
+ text-align: left;
+}
+.notification strong {
+ font-size: 11px;
+}
+.notification small {
+ display: block;
+ margin-top: 5px;
+ color: var(--muted);
+}
+.toast {
+ position: fixed;
+ bottom: 25px;
+ left: 50%;
+ transform: translateX(-50%);
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ padding: 15px 23px;
+ background: var(--text);
+ color: var(--surface);
+ border-radius: 3px;
+ box-shadow: 0 4px 20px #0002;
+ z-index: 1500;
+ font-size: 13px;
+}
+.error {
+ display: flex;
+ justify-content: space-between;
+ gap: 15px;
+ background: #fff0ef;
+ border: 1px solid #efb5ae;
+ color: #a53026;
+ padding: 14px 17px;
+ border-radius: 3px;
+ font-size: 12px;
+ margin-bottom: 18px;
+}
+.dark .error {
+ background: #381e1b;
+ color: #ffc1b8;
+ border-color: #673a32;
+}
+.loading {
+ min-height: 60vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 12px;
+ color: var(--muted);
+}
+.spin {
+ animation: spin 1s linear infinite;
+}
+@keyframes spin {
+ to {
+ transform: rotate(360deg);
+ }
+}
+.field {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ margin-bottom: 18px;
+ font-size: 12px;
+}
+.field > span:first-child {
+ font-size: 11px;
+ color: var(--muted);
+ font-weight: 550;
+}
+.field input,
+.field select,
+.field textarea {
+ width: 100%;
+ background: var(--surface);
+ border-color: var(--border);
+ font-size: 12px;
+}
+.modal {
+ background: var(--surface) !important;
+ color: var(--text);
+ max-height: min(88dvh, 900px);
+ overflow: hidden;
+ width: 660px !important;
+ max-width: calc(100vw - 40px) !important;
+ padding: 0;
+ gap: 0;
+ border: 1px solid var(--border);
+ border-radius: 4px !important;
+ box-shadow: 0 24px 80px #0005;
+}
+.modal-backdrop {
+ position: fixed;
+ inset: 0;
+ background: rgb(8 8 12 / 58%);
+ backdrop-filter: blur(3px);
+ z-index: 1400;
+}
+.modal-positioner {
+ z-index: 1401;
+ padding: 20px;
+ align-items: center;
+}
+.modal p {
+ font-size: 12px;
+ line-height: 1.7;
+ margin-bottom: 22px;
+}
+.modal .dialog__header {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+ padding: 20px 24px;
+ border-bottom: 1px solid var(--border);
+ background: var(--surface);
+ flex-shrink: 0;
+}
+.modal .dialog__body {
+ padding: 24px;
+ align-items: stretch;
+ overflow-y: auto;
+ overscroll-behavior: contain;
+ min-height: 0;
+}
+.modal [data-part='title'] {
+ font-size: 17px;
+ letter-spacing: -0.3px;
+ line-height: 1.4;
+}
+.modal [data-part='close-trigger'] {
+ position: static;
+ height: 30px;
+ min-width: 30px;
+ padding: 5px;
+ color: var(--muted);
+}
+.modal form {
+ width: 100%;
+ min-width: 0;
+}
+.modal form > button {
+ margin: 24px 0 0 auto;
+ display: flex;
+}
+.back {
+ display: flex;
+ gap: 7px;
+ align-items: center;
+ font-size: 11px;
+ color: var(--muted);
+ margin-bottom: 23px;
+}
+.detail-heading h1 {
+ font-size: 25px;
+}
+.detail-heading .eyebrow span {
+ color: var(--muted);
+ letter-spacing: 0;
+}
+.detail-grid {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) 285px;
+ gap: 24px;
+}
+.conversation,
+.ticket-properties {
+ background: var(--surface);
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ align-self: start;
+ overflow: hidden;
+}
+.message {
+ margin: 22px;
+ border: 1px solid var(--border);
+ border-radius: 3px;
+}
+.message header {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ padding: 16px;
+ border-bottom: 1px solid var(--border);
+}
+.message header strong {
+ font-size: 12px;
+}
+.message header small {
+ display: block;
+ font-size: 10px;
+ color: var(--muted);
+ margin-top: 4px;
+ overflow-wrap: anywhere;
+}
+.message time {
+ margin-left: auto;
+ font-size: 10px;
+ color: var(--muted);
+ white-space: nowrap;
+}
+.message-body {
+ padding: 22px 18px;
+ font-size: 12px;
+ line-height: 1.9;
+ white-space: pre-wrap;
+ overflow-wrap: anywhere;
+}
+.message footer {
+ display: flex;
+ justify-content: space-between;
+ padding: 10px 17px;
+ color: var(--muted);
+ border-top: 1px solid var(--border);
+}
+.message footer small {
+ font-size: 10px;
+}
+.message.note,
+.reply-editor.note {
+ background: var(--note);
+}
+.note-label {
+ font-size: 10px;
+ color: #b3832f;
+ padding: 12px 17px;
+}
+.attachment {
+ display: flex;
+ align-items: center;
+ gap: 7px;
+ background: var(--hover);
+ border: 1px solid var(--border);
+ margin: 0 18px 16px;
+ padding: 10px;
+ font-size: 11px;
+ border-radius: 3px;
+}
+.reply-editor {
+ margin: 22px;
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ overflow: hidden;
+}
+.reply-tabs {
+ display: flex;
+ gap: 16px;
+ padding: 15px;
+ border-bottom: 1px solid var(--border);
+}
+.reply-tabs button {
+ display: flex;
+ align-items: center;
+ gap: 5px;
+ font-size: 11px;
+ color: var(--muted);
+}
+.reply-tabs .selected {
+ color: var(--accent);
+ font-weight: 600;
+}
+.reply-meta {
+ display: flex;
+ gap: 12px;
+ padding: 15px;
+}
+.reply-meta .field {
+ flex: 1;
+ margin: 0;
+}
+.reply-editor > textarea {
+ border: 0;
+ box-shadow: none;
+ background: transparent;
+ width: 100%;
+ padding: 18px;
+ border-radius: 0;
+ min-height: 150px;
+ font-size: 12px;
+}
+.signature-preview {
+ padding: 0 18px 22px;
+ font-size: 11px;
+ color: var(--muted);
+ white-space: pre-wrap;
+}
+.reply-footer {
+ border-top: 1px solid var(--border);
+ padding: 13px 15px;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+}
+.reply-footer small {
+ font-size: 9px;
+ color: var(--muted);
+}
+.reply-footer button {
+ font-size: 11px;
+}
+.ticket-properties {
+ padding: 21px;
+}
+.property-title {
+ display: flex;
+ gap: 8px;
+ align-items: center;
+ margin-bottom: 26px;
+ font-size: 13px;
+}
+.ticket-properties a {
+ font-size: 11px;
+ overflow-wrap: anywhere;
+}
+.ticket-properties > .field {
+ margin-bottom: 24px;
+}
+.property-tip {
+ display: flex;
+ gap: 10px;
+ border-top: 1px solid var(--border);
+ margin-top: 28px;
+ padding-top: 20px;
+ font-size: 10px;
+ line-height: 1.7;
+ color: var(--muted);
+}
+.property-tip svg {
+ flex-shrink: 0;
+ color: var(--accent);
+}
+.ticket-properties > button {
+ font-size: 10px;
+ width: 100%;
+ margin-bottom: 20px;
+}
+.due-info {
+ display: flex;
+ gap: 8px;
+ align-items: center;
+ font-size: 11px;
+ background: var(--accent-soft);
+ padding: 12px;
+ margin-bottom: 22px;
+ border-radius: 3px;
+}
+.due-info small {
+ display: block;
+ font-size: 9px;
+ margin-top: 4px;
+}
+.due-info button {
+ margin-left: auto;
+ color: var(--accent);
+ font-size: 10px;
+}
+.move-confirm p {
+ font-size: 11px;
+ line-height: 1.6;
+ margin-bottom: 14px;
+}
+.activities {
+ padding: 25px;
+}
+.activity {
+ display: flex;
+ gap: 14px;
+ padding-bottom: 25px;
+ font-size: 12px;
+}
+.activity-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: var(--accent);
+ margin-top: 5px;
+ flex-shrink: 0;
+}
+.activity small {
+ display: block;
+ color: var(--muted);
+ font-size: 10px;
+ margin: 7px 0;
+}
+.activity > div {
+ min-width: 0;
+ flex: 1;
+}
+.settings-card {
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ background: var(--surface);
+ padding: 25px;
+ margin-bottom: 22px;
+ overflow: auto;
+}
+.settings-card > .list-tabs {
+ padding: 0;
+ margin: -10px 0 25px;
+}
+.settings-card p {
+ font-size: 12px;
+ line-height: 1.7;
+ margin: 13px 0 24px;
+}
+.queue-switcher {
+ display: flex;
+ gap: 10px;
+ margin-bottom: 25px;
+}
+.queue-switcher > button {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ border: 1px solid var(--border);
+ padding: 9px 15px;
+ background: var(--surface);
+ border-radius: 3px;
+ font-size: 12px;
+}
+.queue-switcher > button.active {
+ color: var(--accent);
+ background: var(--accent-soft);
+ border-color: var(--accent);
+}
+.two-fields {
+ display: grid;
+ grid-template-columns: 1fr 100px;
+ gap: 18px;
+ max-width: 550px;
+}
+.address-row {
+ display: flex;
+ gap: 17px;
+ align-items: center;
+ margin-bottom: 15px;
+}
+.address-row > input {
+ flex: 1;
+ min-width: 180px;
+ font-size: 12px;
+}
+.check-label {
+ display: flex;
+ align-items: center;
+ gap: 7px;
+ white-space: nowrap;
+ font-size: 11px;
+}
+.form-footer {
+ display: flex;
+ justify-content: flex-end;
+ margin-top: 26px;
+ border-top: 1px solid var(--border);
+ padding-top: 22px;
+}
+.status-editor {
+ display: grid;
+ grid-template-columns: 45px minmax(120px, 1fr) minmax(150px, 1fr) 60px 90px;
+ gap: 10px;
+ align-items: center;
+ padding: 14px 0;
+ border-bottom: 1px solid var(--border);
+}
+.status-editor input {
+ font-size: 12px;
+}
+.status-editor > .field {
+ grid-column: 2 / -1;
+ margin: 4px 0;
+}
+.signature-editor {
+ background: var(--hover);
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ padding: 16px;
+ margin: 16px 0;
+}
+.signature-editor textarea {
+ margin-top: 15px;
+ width: 100%;
+ background: var(--surface);
+ font-size: 12px;
+}
+.signature-editor input {
+ font-size: 12px;
+}
+.settings-card table {
+ width: 100%;
+ font-size: 12px;
+ border-collapse: collapse;
+ margin: 22px 0;
+ white-space: nowrap;
+}
+.settings-card th {
+ text-align: left;
+ font-size: 11px;
+ color: var(--muted);
+ font-weight: 500;
+}
+.settings-card th,
+.settings-card td {
+ padding: 15px 10px;
+ border-bottom: 1px solid var(--border);
+}
+.settings-card th svg {
+ display: inline;
+ vertical-align: middle;
+ margin-right: 5px;
+}
+.preference-card {
+ max-width: 800px;
+}
+.log-entry {
+ display: flex;
+ justify-content: space-between;
+ gap: 16px;
+ padding: 18px 0;
+ border-bottom: 1px solid var(--border);
+ font-size: 12px;
+}
+.log-entry small {
+ display: block;
+ margin-top: 6px;
+ color: var(--muted);
+ font-size: 10px;
+}
+.log-entry details {
+ max-width: 65%;
+}
+.group-grid {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: 15px;
+}
+.identity-actions {
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ gap: 8px;
+}
+.group-tile {
+ display: flex;
+ flex-direction: column;
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ overflow: hidden;
+}
+.group-tile .group-card {
+ width: 100%;
+ flex: 1;
+ border: 0;
+ border-radius: 0;
+}
+.group-tile-footer {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ border-top: 1px solid var(--border);
+ padding: 8px 14px;
+}
+.group-tile-footer small {
+ color: var(--muted);
+ font-size: 11px;
+}
+.group-card {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ text-align: left;
+ padding: 21px;
+ border: 1px solid var(--border);
+ border-radius: 3px;
+}
+.group-card:hover {
+ background: var(--hover);
+}
+.group-card svg {
+ color: var(--accent);
+}
+.group-card strong {
+ font-size: 13px;
+}
+.group-card small {
+ color: var(--muted);
+ font-size: 11px;
+}
+.group-card span {
+ font-size: 10px;
+ color: var(--accent);
+}
+fieldset {
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ padding: 16px;
+ margin: 18px 0;
+}
+legend {
+ font-size: 11px;
+ color: var(--muted);
+ padding: 0 5px;
+}
+fieldset > .check-label {
+ margin: 12px 0;
+}
+.permission-grid {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 12px;
+}
+.login {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ min-height: 100vh;
+ background: var(--surface);
+}
+.login-art {
+ background: #f0eaf8;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ padding: 55px 60px;
+ color: #34244c;
+ position: relative;
+ overflow: hidden;
+}
+.login-art:after {
+ content: '';
+ position: absolute;
+ width: 500px;
+ height: 500px;
+ border: 1px solid #d7c9ea;
+ border-radius: 50%;
+ right: -260px;
+ bottom: -160px;
+ box-shadow:
+ 0 0 0 70px #d7c9ea30,
+ 0 0 0 140px #d7c9ea20;
+}
+.login-art .brand {
+ color: #34244c;
+ padding: 0;
+}
+.login-art h1 {
+ font-size: clamp(30px, 3.5vw, 55px);
+ line-height: 1.2;
+ letter-spacing: -2px;
+ margin: 22px 0;
+}
+.login-art p {
+ font-size: 15px;
+ color: #776b88;
+ line-height: 1.8;
+}
+.login-art small {
+ color: #776b88;
+ font-size: 11px;
+}
+.login-form {
+ width: 360px;
+ max-width: calc(100% - 45px);
+ margin: auto;
+ display: flex;
+ flex-direction: column;
+ gap: 3px;
+ padding: 35px 0;
+}
+.login-form h2 {
+ font-size: 26px;
+ letter-spacing: -0.8px;
+ margin: 18px 0 8px;
+}
+.login-form > p {
+ font-size: 13px;
+ color: var(--muted);
+ margin-bottom: 27px;
+}
+.login-form > .field {
+ margin-bottom: 18px;
+}
+.login-form > small {
+ font-size: 11px;
+ line-height: 1.8;
+ margin-top: 25px;
+}
+.login-icon {
+ width: 52px;
+ height: 52px;
+ display: grid;
+ place-items: center;
+ background: var(--accent-soft);
+ color: var(--accent);
+ border-radius: 3px;
+}
+.login-form button {
+ margin-top: 8px;
+ gap: 15px;
+}
+.dark .login-art {
+ background: #242126;
+ color: #ded2ee;
+}
+.dark .login-art .brand {
+ color: #ded2ee;
+}
+input[type='color'] {
+ padding: 5px !important;
+ min-height: 36px;
+ min-width: 40px;
+}
+.settings-card form input,
+.settings-card form textarea {
+ border-color: var(--border);
+}
+@media (min-width: 1500px) {
+ main {
+ padding: 45px 50px;
+ }
+ .topbar {
+ padding-inline: 50px;
+ }
+ .ticket-table td {
+ padding-block: 22px;
+ }
+ .subject-link {
+ max-width: 500px;
+ }
+ .ticket-subject small {
+ max-width: 480px;
+ }
+}
+@media (max-width: 1200px) {
+ .sidebar {
+ width: 217px;
+ padding-inline: 12px;
+ }
+ .main {
+ margin-left: 217px;
+ }
+ main {
+ padding: 28px 24px;
+ }
+ .topbar {
+ padding-inline: 24px;
+ }
+ .filters {
+ flex-wrap: wrap;
+ }
+ .search {
+ min-width: 240px;
+ }
+ .ticket-table .preview {
+ display: none;
+ }
+ .ticket-table .subject-link {
+ max-width: 260px;
+ }
+ .help-card {
+ display: none;
+ }
+ .stats {
+ gap: 12px;
+ }
+ .stat {
+ padding: 14px;
+ }
+ .stat > small {
+ font-size: 9px;
+ }
+ .detail-grid {
+ grid-template-columns: minmax(0, 1fr) 240px;
+ }
+ .address-row {
+ gap: 9px;
+ }
+ .address-row .check-label {
+ font-size: 10px;
+ }
+}
+@media (max-width: 900px) {
+ .sidebar {
+ width: 190px;
+ }
+ .main {
+ margin-left: 190px;
+ }
+ .workspace {
+ padding: 8px 6px;
+ }
+ .workspace strong {
+ font-size: 10px;
+ }
+ .workspace-icon {
+ display: none;
+ }
+ .brand {
+ font-size: 25px;
+ }
+ .connection {
+ display: none;
+ }
+ .stats {
+ grid-template-columns: repeat(2, 1fr);
+ }
+ .page-heading h1 {
+ font-size: 24px;
+ }
+ .detail-grid {
+ grid-template-columns: 1fr;
+ }
+ .ticket-properties {
+ grid-row: 1;
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 14px;
+ }
+ .ticket-properties > .field {
+ margin: 0;
+ }
+ .property-title {
+ grid-column: 1/-1;
+ margin-bottom: 5px;
+ }
+ .property-tip {
+ display: none;
+ }
+ .message {
+ margin: 15px;
+ }
+ .address-row {
+ flex-wrap: wrap;
+ }
+ .status-editor {
+ grid-template-columns: 45px 1fr 1fr;
+ }
+ .group-grid {
+ grid-template-columns: 1fr;
+ }
+ .login-art {
+ padding: 40px 30px;
+ }
+ .login-art h1 {
+ letter-spacing: -1px;
+ }
+ .bottom-note > span {
+ display: none;
+ }
+}
+@media (max-width: 650px) {
+ .sidebar {
+ display: none;
+ width: 245px;
+ box-shadow: 0 0 0 100vw #0005;
+ }
+ .sidebar.mobile-open {
+ display: flex;
+ }
+ .main {
+ margin-left: 0;
+ }
+ .topbar {
+ height: 62px;
+ padding: 0 18px;
+ gap: 12px;
+ }
+ .mobile-toggle {
+ display: block;
+ }
+ .breadcrumb {
+ flex: 1;
+ font-size: 10px;
+ gap: 6px;
+ }
+ .header-actions {
+ gap: 15px;
+ }
+ .header-actions .avatar {
+ display: none;
+ }
+ main {
+ padding: 25px 16px;
+ }
+ .page-heading {
+ align-items: flex-start;
+ flex-direction: column;
+ gap: 17px;
+ }
+ .page-heading p {
+ font-size: 11px;
+ }
+ .stats {
+ gap: 10px;
+ margin-bottom: 22px;
+ }
+ .stat > strong {
+ font-size: 27px;
+ }
+ .list-tabs {
+ gap: 19px;
+ padding: 0 15px;
+ }
+ .list-tabs > button {
+ font-size: 10px;
+ }
+ .filters {
+ padding: 15px;
+ gap: 7px;
+ }
+ .search {
+ min-width: 100%;
+ margin-bottom: 5px;
+ }
+ .filters select {
+ flex: 1;
+ max-width: initial;
+ width: 40%;
+ font-size: 10px;
+ }
+ .ticket-table td {
+ padding: 16px 12px;
+ }
+ .ticket-table th:first-child,
+ .ticket-table td:first-child {
+ padding-left: 15px;
+ }
+ .ticket-table .subject-link {
+ max-width: 225px;
+ }
+ .mail-icon {
+ display: none;
+ }
+ .ticket-table td:nth-child(4),
+ .ticket-table th:nth-child(4),
+ .ticket-table td:nth-child(5),
+ .ticket-table th:nth-child(5) {
+ display: none;
+ }
+ .notification-panel {
+ right: 10px;
+ width: calc(100vw - 20px);
+ }
+ .table-footer {
+ padding: 13px 15px;
+ font-size: 9px;
+ }
+ .bottom-note {
+ font-size: 9px;
+ }
+ .login {
+ grid-template-columns: 1fr;
+ }
+ .login-art {
+ display: none;
+ }
+ .login-form {
+ padding-block: 70px;
+ }
+ .settings-card {
+ padding: 17px;
+ }
+ .settings-card > .flex {
+ align-items: flex-start;
+ gap: 14px;
+ flex-wrap: wrap;
+ }
+ .settings-card h2 {
+ font-size: 16px;
+ }
+ .queue-switcher {
+ flex-wrap: wrap;
+ }
+ .status-editor {
+ grid-template-columns: 38px 1fr;
+ }
+ .status-editor select {
+ grid-column: 1/-1;
+ }
+ .reply-meta {
+ flex-direction: column;
+ }
+ .message header {
+ flex-wrap: wrap;
+ }
+ .message time {
+ margin-left: 44px;
+ }
+ .reply-footer {
+ align-items: flex-start;
+ flex-direction: column;
+ }
+ .ticket-properties {
+ padding: 16px;
+ }
+ .permission-grid {
+ grid-template-columns: 1fr;
+ }
+ .log-entry {
+ flex-wrap: wrap;
+ }
+ .log-entry details {
+ max-width: 100%;
+ }
+ .toast {
+ width: calc(100% - 30px);
+ font-size: 11px;
+ }
+ .modal .dialog__body {
+ padding: 18px;
+ }
+ .detail-heading h1 {
+ font-size: 22px;
+ }
+ .settings-card .address-row > input {
+ min-width: 100%;
+ }
+}
+@media (prefers-reduced-motion: reduce) {
+ * {
+ animation: none !important;
+ transition: none !important;
+ }
+}
+.queue-mail-settings {
+ max-width: 900px;
+ margin: auto;
+}
+.settings-section-heading {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 14px;
+ margin: 0 0 26px;
+}
+.settings-section-heading > div {
+ flex: 1;
+ min-width: 170px;
+}
+.settings-section-heading h2 {
+ font-size: 16px;
+}
+.settings-section-heading p {
+ margin: 5px 0 0;
+ font-size: 12px;
+ color: var(--muted);
+}
+.section-icon {
+ display: grid;
+ place-items: center;
+ width: 42px;
+ height: 42px;
+ border: 1px solid var(--border);
+ background: var(--hover);
+ color: var(--accent);
+ border-radius: 3px;
+ flex-shrink: 0;
+}
+.config-badge {
+ margin-left: auto;
+ border: 1px solid var(--border);
+ padding: 5px 9px;
+ font-size: 10px;
+ color: var(--muted);
+ white-space: nowrap;
+ border-radius: 3px;
+}
+.config-badge.configured {
+ color: var(--accent);
+ background: var(--accent-soft);
+ border-color: color-mix(in srgb, var(--accent) 20%, var(--border));
+}
+.smtp-grid {
+ display: grid;
+ grid-template-columns: 1fr 130px;
+ gap: 20px;
+}
+.form-columns {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 20px;
+}
+.settings-hint {
+ display: flex;
+ gap: 10px;
+ padding: 14px 16px;
+ border: 1px solid var(--border);
+ background: var(--hover);
+ color: var(--muted);
+ font-size: 11px;
+ line-height: 1.7;
+ border-radius: 3px;
+}
+.settings-hint svg {
+ flex-shrink: 0;
+ margin-top: 2px;
+ color: var(--accent);
+}
+.settings-divider {
+ height: 1px;
+ background: var(--border);
+ margin: 32px 0;
+}
+.toggle-setting {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 20px;
+ border: 1px solid var(--border);
+ padding: 18px;
+ margin-bottom: 24px;
+ border-radius: 3px;
+ background: var(--hover);
+}
+.toggle-setting strong {
+ display: block;
+ font-size: 12px;
+ font-weight: 600;
+}
+.toggle-setting small {
+ display: block;
+ font-size: 11px;
+ margin-top: 6px;
+ color: var(--muted);
+ line-height: 1.6;
+}
+.toggle-setting input {
+ appearance: none;
+ width: 34px;
+ height: 19px;
+ border: 1px solid var(--border);
+ background: var(--border);
+ position: relative;
+ flex-shrink: 0;
+ cursor: pointer;
+ border-radius: 3px;
+}
+.toggle-setting input:after {
+ content: '';
+ position: absolute;
+ top: 2px;
+ left: 2px;
+ width: 13px;
+ height: 13px;
+ background: var(--surface);
+ border-radius: 1px;
+ transition: transform 0.15s;
+}
+.toggle-setting input:checked {
+ background: var(--accent);
+ border-color: var(--accent);
+}
+.toggle-setting input:checked:after {
+ background: #fff;
+ transform: translateX(15px);
+}
+.ack-disabled {
+ opacity: 0.7;
+}
+.placeholder-list {
+ display: flex;
+ gap: 7px;
+ align-items: center;
+ flex-wrap: wrap;
+ margin: -5px 0 20px;
+ font-size: 10px;
+ color: var(--muted);
+}
+.placeholder-list code {
+ background: var(--hover);
+ border: 1px solid var(--border);
+ padding: 3px 6px;
+ color: var(--accent);
+ border-radius: 2px;
+ font-size: 10px;
+}
+.ack-preview {
+ margin-top: 24px;
+ border: 1px solid var(--border);
+ background: var(--hover);
+ border-radius: 3px;
+}
+.ack-preview summary {
+ padding: 13px 16px;
+ font-size: 11px;
+ color: var(--muted);
+}
+.ack-preview > strong {
+ display: block;
+ padding: 16px 20px;
+ border-top: 1px solid var(--border);
+ font-size: 12px;
+}
+.ack-preview > div {
+ white-space: pre-wrap;
+ padding: 0 20px 20px;
+ font-size: 12px;
+ line-height: 1.8;
+ overflow-wrap: anywhere;
+}
+.save-feedback {
+ display: flex;
+ align-items: center;
+ gap: 9px;
+ background: var(--accent-soft);
+ color: var(--accent);
+ border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
+ padding: 14px 16px;
+ font-size: 12px;
+ margin-bottom: 24px;
+ border-radius: 3px;
+}
+.mail-actions {
+ justify-content: space-between;
+ gap: 12px;
+ flex-wrap: wrap;
+}
+.mail-actions > button {
+ font-size: 12px;
+}
+.html-preview {
+ border: 1px solid var(--border);
+ background: var(--surface);
+ border-radius: 3px;
+ overflow: hidden;
+ margin: 12px 0;
+ white-space: normal;
+}
+.html-preview iframe {
+ display: block;
+ width: 100%;
+ height: 210px;
+ border: 0;
+ background: #fff;
+ min-width: 0;
+}
+.html-preview > small {
+ display: block;
+ padding: 9px 12px;
+ border-top: 1px solid var(--border);
+ font-size: 10px;
+ color: var(--muted);
+}
+.signature-editor .field {
+ margin-top: 18px;
+}
+.signature-editor .code-editor {
+ font-family: Consolas, monospace;
+ font-size: 12px;
+ line-height: 1.7;
+}
+.signature-editor .signature-help {
+ font-size: 11px;
+ margin: 12px 0;
+}
+.message-html {
+ padding: 6px 17px 16px;
+ min-width: 0;
+}
+.message-html > details {
+ margin-top: 10px;
+}
+.attachment-picker {
+ border-top: 1px solid var(--border);
+ padding: 16px 18px;
+}
+.upload-trigger {
+ position: relative;
+ display: inline-flex;
+ align-items: center;
+ gap: 7px;
+ color: var(--accent);
+ font-size: 11px;
+ cursor: pointer;
+ padding: 7px 0;
+}
+.upload-trigger input {
+ position: absolute;
+ inset: 0;
+ opacity: 0;
+ cursor: pointer;
+ width: 100%;
+ height: 100%;
+}
+.upload-trigger:focus-within {
+ outline: 2px solid var(--accent);
+ outline-offset: 3px;
+}
+.upload-trigger.disabled {
+ opacity: 0.5;
+ cursor: default;
+}
+.attachment-picker > small {
+ display: block;
+ margin: 4px 0;
+ color: var(--muted);
+ font-size: 10px;
+}
+.selected-attachments {
+ list-style: none;
+ display: flex;
+ gap: 9px;
+ flex-wrap: wrap;
+ padding: 0;
+ margin: 14px 0 0;
+}
+.selected-attachments li {
+ display: flex;
+ gap: 9px;
+ align-items: center;
+ padding: 10px 12px;
+ border: 1px solid var(--border);
+ background: var(--hover);
+ max-width: 100%;
+ font-size: 11px;
+}
+.selected-attachments span {
+ overflow-wrap: anywhere;
+ min-width: 0;
+}
+.selected-attachments small {
+ display: block;
+ margin-top: 4px;
+ font-size: 9px;
+ color: var(--muted);
+}
+.selected-attachments button {
+ color: var(--muted);
+ margin-left: 7px;
+}
+.danger-zone {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 20px;
+ border-top: 1px solid var(--border);
+ margin-top: 35px;
+ padding-top: 22px;
+ flex-wrap: wrap;
+}
+.danger-zone > div {
+ flex: 1;
+ min-width: 200px;
+}
+.danger-zone h3 {
+ color: #c85b62;
+ margin: 0 0 8px;
+}
+.danger-zone p {
+ font-size: 11px;
+ margin: 0;
+ color: var(--muted);
+}
+.signature-tokens {
+ border: 1px solid var(--border);
+ padding: 12px;
+ margin: 12px 0 18px;
+ font-size: 12px;
+}
+.signature-tokens summary {
+ cursor: pointer;
+ font-weight: 600;
+}
+.signature-tokens p {
+ margin: 12px 0;
+ line-height: 1.6;
+}
+.signature-token-group {
+ display: grid;
+ gap: 8px;
+ margin-top: 14px;
+}
+.signature-token-group > div {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+}
+.signature-token-group button {
+ border: 1px solid var(--border);
+ border-radius: 3px;
+ padding: 5px 8px;
+ background: var(--hover);
+ color: inherit;
+ font:
+ 11px ui-monospace,
+ monospace;
+ cursor: pointer;
+}
+.signature-token-group button:hover {
+ border-color: var(--accent);
+}
+.signature-text-preview {
+ white-space: pre-wrap;
+ overflow-wrap: anywhere;
+ padding: 16px;
+ border: 1px solid var(--border);
+ background: var(--hover);
+ font: inherit;
+ font-size: 13px;
+ line-height: 1.6;
+}
+.danger-zone > button {
+ font-size: 12px;
+ border-color: #b9515b;
+ color: #c85b62;
+}
+.danger-button {
+ background: #b92d3d !important;
+ color: #fff !important;
+ border: 1px solid #b92d3d !important;
+}
+.delete-notice {
+ display: flex;
+ align-items: flex-start;
+ gap: 12px;
+ padding: 16px;
+ border: 1px solid var(--border);
+ background: var(--hover);
+ font-size: 12px;
+ line-height: 1.7;
+ margin-bottom: 22px;
+}
+.delete-notice svg {
+ color: #ce8e4a;
+ flex-shrink: 0;
+ margin-top: 2px;
+}
+:root {
+ color-scheme: light;
+}
+:root.dark {
+ color-scheme: dark;
+}
+@media (max-width: 650px) {
+ .form-columns {
+ grid-template-columns: 1fr;
+ gap: 0;
+ }
+ .smtp-grid {
+ grid-template-columns: 1fr 85px;
+ gap: 12px;
+ }
+ .settings-section-heading {
+ flex-wrap: wrap;
+ }
+ .config-badge {
+ margin-left: 56px;
+ margin-top: -12px;
+ }
+ .mail-actions {
+ flex-direction: column;
+ align-items: stretch;
+ }
+ .mail-actions > button {
+ width: 100%;
+ font-size: 11px;
+ }
+ .modal-positioner {
+ padding: 12px;
+ }
+ .modal {
+ max-width: calc(100vw - 24px) !important;
+ max-height: calc(100dvh - 24px);
+ }
+ .modal .dialog__header {
+ padding: 17px 18px;
+ }
+ .modal .dialog__body {
+ padding: 18px;
+ }
+ .modal form > button {
+ width: 100%;
+ justify-content: center;
+ }
+}
diff --git a/src/theme/animation-styles.ts b/src/theme/animation-styles.ts
new file mode 100644
index 0000000..58037d2
--- /dev/null
+++ b/src/theme/animation-styles.ts
@@ -0,0 +1,50 @@
+import { defineAnimationStyles } from '@pandacss/dev'
+
+export const animationStyles = defineAnimationStyles({
+ 'slide-fade-in': {
+ value: {
+ transformOrigin: 'var(--transform-origin)',
+ '&[data-placement^=top]': {
+ animationName: 'slide-from-bottom, fade-in',
+ },
+ '&[data-placement^=bottom]': {
+ animationName: 'slide-from-top, fade-in',
+ },
+ '&[data-placement^=left]': {
+ animationName: 'slide-from-right, fade-in',
+ },
+ '&[data-placement^=right]': {
+ animationName: 'slide-from-left, fade-in',
+ },
+ },
+ },
+ 'slide-fade-out': {
+ value: {
+ transformOrigin: 'var(--transform-origin)',
+ '&[data-placement^=top]': {
+ animationName: 'slide-to-bottom, fade-out',
+ },
+ '&[data-placement^=bottom]': {
+ animationName: 'slide-to-top, fade-out',
+ },
+ '&[data-placement^=left]': {
+ animationName: 'slide-to-right, fade-out',
+ },
+ '&[data-placement^=right]': {
+ animationName: 'slide-to-left, fade-out',
+ },
+ },
+ },
+ 'scale-fade-in': {
+ value: {
+ transformOrigin: 'var(--transform-origin)',
+ animationName: 'scale-in, fade-in',
+ },
+ },
+ 'scale-fade-out': {
+ value: {
+ transformOrigin: 'var(--transform-origin)',
+ animationName: 'scale-out, fade-out',
+ },
+ },
+})
diff --git a/src/theme/colors/green.ts b/src/theme/colors/green.ts
new file mode 100644
index 0000000..c03e60e
--- /dev/null
+++ b/src/theme/colors/green.ts
@@ -0,0 +1,69 @@
+import { defineSemanticTokens } from '@pandacss/dev'
+
+export const green = defineSemanticTokens.colors({
+ '1': { value: { _light: '#fbfefc', _dark: '#0e1512' } },
+ '2': { value: { _light: '#f4fbf6', _dark: '#121b17' } },
+ '3': { value: { _light: '#e6f6eb', _dark: '#132d21' } },
+ '4': { value: { _light: '#d6f1df', _dark: '#113b29' } },
+ '5': { value: { _light: '#c4e8d1', _dark: '#174933' } },
+ '6': { value: { _light: '#adddc0', _dark: '#20573e' } },
+ '7': { value: { _light: '#8eceaa', _dark: '#28684a' } },
+ '8': { value: { _light: '#5bb98b', _dark: '#2f7c57' } },
+ '9': { value: { _light: '#30a46c', _dark: '#30a46c' } },
+ '10': { value: { _light: '#2b9a66', _dark: '#33b074' } },
+ '11': { value: { _light: '#218358', _dark: '#3dd68c' } },
+ '12': { value: { _light: '#193b2d', _dark: '#b1f1cb' } },
+ a1: { value: { _light: '#00c04004', _dark: '#00de4505' } },
+ a2: { value: { _light: '#00a32f0b', _dark: '#29f99d0b' } },
+ a3: { value: { _light: '#00a43319', _dark: '#22ff991e' } },
+ a4: { value: { _light: '#00a83829', _dark: '#11ff992d' } },
+ a5: { value: { _light: '#019c393b', _dark: '#2bffa23c' } },
+ a6: { value: { _light: '#00963c52', _dark: '#44ffaa4b' } },
+ a7: { value: { _light: '#00914071', _dark: '#50fdac5e' } },
+ a8: { value: { _light: '#00924ba4', _dark: '#54ffad73' } },
+ a9: { value: { _light: '#008f4acf', _dark: '#44ffa49e' } },
+ a10: { value: { _light: '#008647d4', _dark: '#43fea4ab' } },
+ a11: { value: { _light: '#00713fde', _dark: '#46fea5d4' } },
+ a12: { value: { _light: '#002616e6', _dark: '#bbffd7f0' } },
+ solid: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.green.9}', _dark: '{colors.green.9}' } },
+ hover: { value: { _light: '{colors.green.10}', _dark: '{colors.green.10}' } },
+ },
+ fg: { DEFAULT: { value: { _light: 'white', _dark: 'white' } } },
+ },
+ subtle: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.green.a3}', _dark: '{colors.green.a3}' } },
+ hover: { value: { _light: '{colors.green.a4}', _dark: '{colors.green.a4}' } },
+ active: { value: { _light: '{colors.green.a5}', _dark: '{colors.green.a5}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.green.a11}', _dark: '{colors.green.a11}' } } },
+ },
+ surface: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.green.a2}', _dark: '{colors.green.a2}' } },
+ active: { value: { _light: '{colors.green.a3}', _dark: '{colors.green.a3}' } },
+ },
+ border: {
+ DEFAULT: { value: { _light: '{colors.green.a6}', _dark: '{colors.green.a6}' } },
+ hover: { value: { _light: '{colors.green.a7}', _dark: '{colors.green.a7}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.green.a11}', _dark: '{colors.green.a11}' } } },
+ },
+ outline: {
+ bg: {
+ hover: { value: { _light: '{colors.green.a2}', _dark: '{colors.green.a2}' } },
+ active: { value: { _light: '{colors.green.a3}', _dark: '{colors.green.a3}' } },
+ },
+ border: { DEFAULT: { value: { _light: '{colors.green.a7}', _dark: '{colors.green.a7}' } } },
+ fg: { DEFAULT: { value: { _light: '{colors.green.a11}', _dark: '{colors.green.a11}' } } },
+ },
+ plain: {
+ bg: {
+ hover: { value: { _light: '{colors.green.a3}', _dark: '{colors.green.a3}' } },
+ active: { value: { _light: '{colors.green.a4}', _dark: '{colors.green.a4}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.green.a11}', _dark: '{colors.green.a11}' } } },
+ },
+})
diff --git a/src/theme/colors/neutral.ts b/src/theme/colors/neutral.ts
new file mode 100644
index 0000000..52f0615
--- /dev/null
+++ b/src/theme/colors/neutral.ts
@@ -0,0 +1,70 @@
+import { defineSemanticTokens } from '@pandacss/dev'
+
+export const neutral = defineSemanticTokens.colors({
+ '1': { value: { _light: '#fcfcfc', _dark: '#111111' } },
+ '2': { value: { _light: '#f9f9f9', _dark: '#191919' } },
+ '3': { value: { _light: '#f0f0f0', _dark: '#222222' } },
+ '4': { value: { _light: '#e8e8e8', _dark: '#2a2a2a' } },
+ '5': { value: { _light: '#e0e0e0', _dark: '#313131' } },
+ '6': { value: { _light: '#d9d9d9', _dark: '#3a3a3a' } },
+ '7': { value: { _light: '#cecece', _dark: '#484848' } },
+ '8': { value: { _light: '#bbbbbb', _dark: '#606060' } },
+ '9': { value: { _light: '#8d8d8d', _dark: '#6e6e6e' } },
+ '10': { value: { _light: '#838383', _dark: '#7b7b7b' } },
+ '11': { value: { _light: '#646464', _dark: '#b4b4b4' } },
+ '12': { value: { _light: '#202020', _dark: '#eeeeee' } },
+ a1: { value: { _light: '#00000003', _dark: '#00000000' } },
+ a2: { value: { _light: '#00000006', _dark: '#ffffff09' } },
+ a3: { value: { _light: '#0000000f', _dark: '#ffffff12' } },
+ a4: { value: { _light: '#00000017', _dark: '#ffffff1b' } },
+ a5: { value: { _light: '#0000001f', _dark: '#ffffff22' } },
+ a6: { value: { _light: '#00000026', _dark: '#ffffff2c' } },
+ a7: { value: { _light: '#00000031', _dark: '#ffffff3b' } },
+ a8: { value: { _light: '#00000044', _dark: '#ffffff55' } },
+ a9: { value: { _light: '#00000072', _dark: '#ffffff64' } },
+ a10: { value: { _light: '#0000007c', _dark: '#ffffff72' } },
+ a11: { value: { _light: '#0000009b', _dark: '#ffffffaf' } },
+ a12: { value: { _light: '#000000df', _dark: '#ffffffed' } },
+ solid: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.black}', _dark: '{colors.white}' } },
+ hover: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.white}', _dark: '{colors.black}' } } },
+ },
+ subtle: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.gray.a3}', _dark: '{colors.gray.a3}' } },
+ hover: { value: { _light: '{colors.gray.a4}', _dark: '{colors.gray.a4}' } },
+ active: { value: { _light: '{colors.gray.a5}', _dark: '{colors.gray.a5}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },
+ },
+ surface: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.white}', _dark: '{colors.gray.1}' } },
+ hover: { value: { _light: '{colors.gray.2}', _dark: '{colors.gray.2}' } },
+ active: { value: { _light: '{colors.gray.3}', _dark: '{colors.gray.3}' } },
+ },
+ border: {
+ DEFAULT: { value: { _light: '{colors.gray.6}', _dark: '{colors.gray.6}' } },
+ hover: { value: { _light: '{colors.gray.7}', _dark: '{colors.gray.7}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },
+ },
+ outline: {
+ bg: {
+ hover: { value: { _light: '{colors.gray.a2}', _dark: '{colors.gray.a2}' } },
+ active: { value: { _light: '{colors.gray.a3}', _dark: '{colors.gray.a3}' } },
+ },
+ border: { DEFAULT: { value: { _light: '{colors.gray.6}', _dark: '{colors.gray.6}' } } },
+ fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },
+ },
+ plain: {
+ bg: {
+ hover: { value: { _light: '{colors.gray.a3}', _dark: '{colors.gray.a3}' } },
+ active: { value: { _light: '{colors.gray.a4}', _dark: '{colors.gray.a4}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },
+ },
+})
diff --git a/src/theme/colors/red.ts b/src/theme/colors/red.ts
new file mode 100644
index 0000000..23d547f
--- /dev/null
+++ b/src/theme/colors/red.ts
@@ -0,0 +1,69 @@
+import { defineSemanticTokens } from '@pandacss/dev'
+
+export const red = defineSemanticTokens.colors({
+ '1': { value: { _light: '#fffcfc', _dark: '#191111' } },
+ '2': { value: { _light: '#fff7f7', _dark: '#201314' } },
+ '3': { value: { _light: '#feebec', _dark: '#3b1219' } },
+ '4': { value: { _light: '#ffdbdc', _dark: '#500f1c' } },
+ '5': { value: { _light: '#ffcdce', _dark: '#611623' } },
+ '6': { value: { _light: '#fdbdbe', _dark: '#72232d' } },
+ '7': { value: { _light: '#f4a9aa', _dark: '#8c333a' } },
+ '8': { value: { _light: '#eb8e90', _dark: '#b54548' } },
+ '9': { value: { _light: '#e5484d', _dark: '#e5484d' } },
+ '10': { value: { _light: '#dc3e42', _dark: '#ec5d5e' } },
+ '11': { value: { _light: '#ce2c31', _dark: '#ff9592' } },
+ '12': { value: { _light: '#641723', _dark: '#ffd1d9' } },
+ a1: { value: { _light: '#ff000003', _dark: '#f4121209' } },
+ a2: { value: { _light: '#ff000008', _dark: '#f22f3e11' } },
+ a3: { value: { _light: '#f3000d14', _dark: '#ff173f2d' } },
+ a4: { value: { _light: '#ff000824', _dark: '#fe0a3b44' } },
+ a5: { value: { _light: '#ff000632', _dark: '#ff204756' } },
+ a6: { value: { _light: '#f8000442', _dark: '#ff3e5668' } },
+ a7: { value: { _light: '#df000356', _dark: '#ff536184' } },
+ a8: { value: { _light: '#d2000571', _dark: '#ff5d61b0' } },
+ a9: { value: { _light: '#db0007b7', _dark: '#fe4e54e4' } },
+ a10: { value: { _light: '#d10005c1', _dark: '#ff6465eb' } },
+ a11: { value: { _light: '#c40006d3', _dark: '#ff9592' } },
+ a12: { value: { _light: '#55000de8', _dark: '#ffd1d9' } },
+ solid: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.red.9}', _dark: '{colors.red.9}' } },
+ hover: { value: { _light: '{colors.red.10}', _dark: '{colors.red.10}' } },
+ },
+ fg: { DEFAULT: { value: { _light: 'white', _dark: 'white' } } },
+ },
+ subtle: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.red.a3}', _dark: '{colors.red.a3}' } },
+ hover: { value: { _light: '{colors.red.a4}', _dark: '{colors.red.a4}' } },
+ active: { value: { _light: '{colors.red.a5}', _dark: '{colors.red.a5}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.red.a11}', _dark: '{colors.red.a11}' } } },
+ },
+ surface: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.red.a2}', _dark: '{colors.red.a2}' } },
+ active: { value: { _light: '{colors.red.a3}', _dark: '{colors.red.a3}' } },
+ },
+ border: {
+ DEFAULT: { value: { _light: '{colors.red.a6}', _dark: '{colors.red.a6}' } },
+ hover: { value: { _light: '{colors.red.a7}', _dark: '{colors.red.a7}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.red.a11}', _dark: '{colors.red.a11}' } } },
+ },
+ outline: {
+ bg: {
+ hover: { value: { _light: '{colors.red.a2}', _dark: '{colors.red.a2}' } },
+ active: { value: { _light: '{colors.red.a3}', _dark: '{colors.red.a3}' } },
+ },
+ border: { DEFAULT: { value: { _light: '{colors.red.a7}', _dark: '{colors.red.a7}' } } },
+ fg: { DEFAULT: { value: { _light: '{colors.red.a11}', _dark: '{colors.red.a11}' } } },
+ },
+ plain: {
+ bg: {
+ hover: { value: { _light: '{colors.red.a3}', _dark: '{colors.red.a3}' } },
+ active: { value: { _light: '{colors.red.a4}', _dark: '{colors.red.a4}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.red.a11}', _dark: '{colors.red.a11}' } } },
+ },
+})
diff --git a/src/theme/colors/slate.ts b/src/theme/colors/slate.ts
new file mode 100644
index 0000000..8311b42
--- /dev/null
+++ b/src/theme/colors/slate.ts
@@ -0,0 +1,70 @@
+import { defineSemanticTokens } from '@pandacss/dev'
+
+export const slate = defineSemanticTokens.colors({
+ '1': { value: { _light: '#fcfcfd', _dark: '#111113' } },
+ '2': { value: { _light: '#f9f9fb', _dark: '#18191b' } },
+ '3': { value: { _light: '#f0f0f3', _dark: '#212225' } },
+ '4': { value: { _light: '#e8e8ec', _dark: '#272a2d' } },
+ '5': { value: { _light: '#e0e1e6', _dark: '#2e3135' } },
+ '6': { value: { _light: '#d9d9e0', _dark: '#363a3f' } },
+ '7': { value: { _light: '#cdced6', _dark: '#43484e' } },
+ '8': { value: { _light: '#b9bbc6', _dark: '#5a6169' } },
+ '9': { value: { _light: '#8b8d98', _dark: '#696e77' } },
+ '10': { value: { _light: '#80838d', _dark: '#777b84' } },
+ '11': { value: { _light: '#60646c', _dark: '#b0b4ba' } },
+ '12': { value: { _light: '#1c2024', _dark: '#edeef0' } },
+ a1: { value: { _light: '#00005503', _dark: '#00000000' } },
+ a2: { value: { _light: '#00005506', _dark: '#d8f4f609' } },
+ a3: { value: { _light: '#0000330f', _dark: '#ddeaf814' } },
+ a4: { value: { _light: '#00002d17', _dark: '#d3edf81d' } },
+ a5: { value: { _light: '#0009321f', _dark: '#d9edfe25' } },
+ a6: { value: { _light: '#00002f26', _dark: '#d6ebfd30' } },
+ a7: { value: { _light: '#00062e32', _dark: '#d9edff40' } },
+ a8: { value: { _light: '#00083046', _dark: '#d9edff5d' } },
+ a9: { value: { _light: '#00051d74', _dark: '#dfebfd6d' } },
+ a10: { value: { _light: '#00071b7f', _dark: '#e5edfd7b' } },
+ a11: { value: { _light: '#0007149f', _dark: '#f1f7feb5' } },
+ a12: { value: { _light: '#000509e3', _dark: '#fcfdffef' } },
+ solid: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.black}', _dark: '{colors.white}' } },
+ hover: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.white}', _dark: '{colors.black}' } } },
+ },
+ subtle: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.gray.a3}', _dark: '{colors.gray.a3}' } },
+ hover: { value: { _light: '{colors.gray.a4}', _dark: '{colors.gray.a4}' } },
+ active: { value: { _light: '{colors.gray.a5}', _dark: '{colors.gray.a5}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },
+ },
+ surface: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.white}', _dark: '{colors.gray.1}' } },
+ hover: { value: { _light: '{colors.gray.2}', _dark: '{colors.gray.2}' } },
+ active: { value: { _light: '{colors.gray.3}', _dark: '{colors.gray.3}' } },
+ },
+ border: {
+ DEFAULT: { value: { _light: '{colors.gray.6}', _dark: '{colors.gray.6}' } },
+ hover: { value: { _light: '{colors.gray.7}', _dark: '{colors.gray.7}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },
+ },
+ outline: {
+ bg: {
+ hover: { value: { _light: '{colors.gray.a2}', _dark: '{colors.gray.a2}' } },
+ active: { value: { _light: '{colors.gray.a3}', _dark: '{colors.gray.a3}' } },
+ },
+ border: { DEFAULT: { value: { _light: '{colors.gray.6}', _dark: '{colors.gray.6}' } } },
+ fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },
+ },
+ plain: {
+ bg: {
+ hover: { value: { _light: '{colors.gray.a3}', _dark: '{colors.gray.a3}' } },
+ active: { value: { _light: '{colors.gray.a4}', _dark: '{colors.gray.a4}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.gray.12}', _dark: '{colors.gray.12}' } } },
+ },
+})
diff --git a/src/theme/colors/teal.ts b/src/theme/colors/teal.ts
new file mode 100644
index 0000000..828ecb9
--- /dev/null
+++ b/src/theme/colors/teal.ts
@@ -0,0 +1,69 @@
+import { defineSemanticTokens } from '@pandacss/dev'
+
+export const teal = defineSemanticTokens.colors({
+ '1': { value: { _light: '#fafefd', _dark: '#0d1514' } },
+ '2': { value: { _light: '#f3fbf9', _dark: '#111c1b' } },
+ '3': { value: { _light: '#e0f8f3', _dark: '#0d2d2a' } },
+ '4': { value: { _light: '#ccf3ea', _dark: '#023b37' } },
+ '5': { value: { _light: '#b8eae0', _dark: '#084843' } },
+ '6': { value: { _light: '#a1ded2', _dark: '#145750' } },
+ '7': { value: { _light: '#83cdc1', _dark: '#1c6961' } },
+ '8': { value: { _light: '#53b9ab', _dark: '#207e73' } },
+ '9': { value: { _light: '#12a594', _dark: '#12a594' } },
+ '10': { value: { _light: '#0d9b8a', _dark: '#0eb39e' } },
+ '11': { value: { _light: '#008573', _dark: '#0bd8b6' } },
+ '12': { value: { _light: '#0d3d38', _dark: '#adf0dd' } },
+ a1: { value: { _light: '#00cc9905', _dark: '#00deab05' } },
+ a2: { value: { _light: '#00aa800c', _dark: '#12fbe60c' } },
+ a3: { value: { _light: '#00c69d1f', _dark: '#00ffe61e' } },
+ a4: { value: { _light: '#00c39633', _dark: '#00ffe92d' } },
+ a5: { value: { _light: '#00b49047', _dark: '#00ffea3b' } },
+ a6: { value: { _light: '#00a6855e', _dark: '#1cffe84b' } },
+ a7: { value: { _light: '#0099807c', _dark: '#2efde85f' } },
+ a8: { value: { _light: '#009783ac', _dark: '#32ffe775' } },
+ a9: { value: { _light: '#009e8ced', _dark: '#13ffe49f' } },
+ a10: { value: { _light: '#009684f2', _dark: '#0dffe0ae' } },
+ a11: { value: { _light: '#008573', _dark: '#0afed5d6' } },
+ a12: { value: { _light: '#00332df2', _dark: '#b8ffebef' } },
+ solid: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.teal.9}', _dark: '{colors.teal.9}' } },
+ hover: { value: { _light: '{colors.teal.10}', _dark: '{colors.teal.10}' } },
+ },
+ fg: { DEFAULT: { value: { _light: 'white', _dark: 'white' } } },
+ },
+ subtle: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.teal.a3}', _dark: '{colors.teal.a3}' } },
+ hover: { value: { _light: '{colors.teal.a4}', _dark: '{colors.teal.a4}' } },
+ active: { value: { _light: '{colors.teal.a5}', _dark: '{colors.teal.a5}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.teal.a11}', _dark: '{colors.teal.a11}' } } },
+ },
+ surface: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.teal.a2}', _dark: '{colors.teal.a2}' } },
+ active: { value: { _light: '{colors.teal.a3}', _dark: '{colors.teal.a3}' } },
+ },
+ border: {
+ DEFAULT: { value: { _light: '{colors.teal.a6}', _dark: '{colors.teal.a6}' } },
+ hover: { value: { _light: '{colors.teal.a7}', _dark: '{colors.teal.a7}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.teal.a11}', _dark: '{colors.teal.a11}' } } },
+ },
+ outline: {
+ bg: {
+ hover: { value: { _light: '{colors.teal.a2}', _dark: '{colors.teal.a2}' } },
+ active: { value: { _light: '{colors.teal.a3}', _dark: '{colors.teal.a3}' } },
+ },
+ border: { DEFAULT: { value: { _light: '{colors.teal.a7}', _dark: '{colors.teal.a7}' } } },
+ fg: { DEFAULT: { value: { _light: '{colors.teal.a11}', _dark: '{colors.teal.a11}' } } },
+ },
+ plain: {
+ bg: {
+ hover: { value: { _light: '{colors.teal.a3}', _dark: '{colors.teal.a3}' } },
+ active: { value: { _light: '{colors.teal.a4}', _dark: '{colors.teal.a4}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.teal.a11}', _dark: '{colors.teal.a11}' } } },
+ },
+})
diff --git a/src/theme/colors/violet.ts b/src/theme/colors/violet.ts
new file mode 100644
index 0000000..b052be8
--- /dev/null
+++ b/src/theme/colors/violet.ts
@@ -0,0 +1,69 @@
+import { defineSemanticTokens } from '@pandacss/dev'
+
+export const violet = defineSemanticTokens.colors({
+ '1': { value: { _light: '#fdfcfe', _dark: '#14121f' } },
+ '2': { value: { _light: '#faf8ff', _dark: '#1b1525' } },
+ '3': { value: { _light: '#f4f0fe', _dark: '#291f43' } },
+ '4': { value: { _light: '#ebe4ff', _dark: '#33255b' } },
+ '5': { value: { _light: '#e1d9ff', _dark: '#3c2e69' } },
+ '6': { value: { _light: '#d4cafe', _dark: '#473876' } },
+ '7': { value: { _light: '#c2b5f5', _dark: '#56468b' } },
+ '8': { value: { _light: '#aa99ec', _dark: '#6958ad' } },
+ '9': { value: { _light: '#6e56cf', _dark: '#6e56cf' } },
+ '10': { value: { _light: '#654dc4', _dark: '#7d66d9' } },
+ '11': { value: { _light: '#6550b9', _dark: '#baa7ff' } },
+ '12': { value: { _light: '#2f265f', _dark: '#e2ddfe' } },
+ a1: { value: { _light: '#5500aa03', _dark: '#4422ff0f' } },
+ a2: { value: { _light: '#4900ff07', _dark: '#853ff916' } },
+ a3: { value: { _light: '#4400ee0f', _dark: '#8354fe36' } },
+ a4: { value: { _light: '#4300ff1b', _dark: '#7d51fd50' } },
+ a5: { value: { _light: '#3600ff26', _dark: '#845ffd5f' } },
+ a6: { value: { _light: '#3100fb35', _dark: '#8f6cfd6d' } },
+ a7: { value: { _light: '#2d01dd4a', _dark: '#9879ff83' } },
+ a8: { value: { _light: '#2b00d066', _dark: '#977dfea8' } },
+ a9: { value: { _light: '#2400b7a9', _dark: '#8668ffcc' } },
+ a10: { value: { _light: '#2300abb2', _dark: '#9176fed7' } },
+ a11: { value: { _light: '#1f0099af', _dark: '#baa7ff' } },
+ a12: { value: { _light: '#0b0043d9', _dark: '#e3defffe' } },
+ solid: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.violet.9}', _dark: '{colors.violet.9}' } },
+ hover: { value: { _light: '{colors.violet.10}', _dark: '{colors.violet.10}' } },
+ },
+ fg: { DEFAULT: { value: { _light: 'white', _dark: 'white' } } },
+ },
+ subtle: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.violet.a3}', _dark: '{colors.violet.a3}' } },
+ hover: { value: { _light: '{colors.violet.a4}', _dark: '{colors.violet.a4}' } },
+ active: { value: { _light: '{colors.violet.a5}', _dark: '{colors.violet.a5}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.violet.a11}', _dark: '{colors.violet.a11}' } } },
+ },
+ surface: {
+ bg: {
+ DEFAULT: { value: { _light: '{colors.violet.a2}', _dark: '{colors.violet.a2}' } },
+ active: { value: { _light: '{colors.violet.a3}', _dark: '{colors.violet.a3}' } },
+ },
+ border: {
+ DEFAULT: { value: { _light: '{colors.violet.a6}', _dark: '{colors.violet.a6}' } },
+ hover: { value: { _light: '{colors.violet.a7}', _dark: '{colors.violet.a7}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.violet.a11}', _dark: '{colors.violet.a11}' } } },
+ },
+ outline: {
+ bg: {
+ hover: { value: { _light: '{colors.violet.a2}', _dark: '{colors.violet.a2}' } },
+ active: { value: { _light: '{colors.violet.a3}', _dark: '{colors.violet.a3}' } },
+ },
+ border: { DEFAULT: { value: { _light: '{colors.violet.a7}', _dark: '{colors.violet.a7}' } } },
+ fg: { DEFAULT: { value: { _light: '{colors.violet.a11}', _dark: '{colors.violet.a11}' } } },
+ },
+ plain: {
+ bg: {
+ hover: { value: { _light: '{colors.violet.a3}', _dark: '{colors.violet.a3}' } },
+ active: { value: { _light: '{colors.violet.a4}', _dark: '{colors.violet.a4}' } },
+ },
+ fg: { DEFAULT: { value: { _light: '{colors.violet.a11}', _dark: '{colors.violet.a11}' } } },
+ },
+})
diff --git a/src/theme/conditions.ts b/src/theme/conditions.ts
new file mode 100644
index 0000000..ed8f3e2
--- /dev/null
+++ b/src/theme/conditions.ts
@@ -0,0 +1,12 @@
+export const conditions = {
+ extend: {
+ light: ':root:not(.dark) &, .light &',
+ invalid: '&:is(:user-invalid, [data-invalid], [aria-invalid=true])',
+ hover: '&:not(:disabled):hover',
+ active: '&:not(:disabled):active',
+ checked:
+ '&:is(:checked, [data-checked], [data-state=checked], [aria-checked=true], [data-state=indeterminate])',
+ on: '&:is([data-state=on])',
+ pinned: '&:is([data-pinned])',
+ },
+} as const
diff --git a/src/theme/global-css.ts b/src/theme/global-css.ts
new file mode 100644
index 0000000..a952e11
--- /dev/null
+++ b/src/theme/global-css.ts
@@ -0,0 +1,17 @@
+export const globalCss = {
+ extend: {
+ '*': {
+ '--global-color-border': 'colors.border',
+ '--global-color-placeholder': 'colors.fg.subtle',
+ '--global-color-selection': 'colors.colorPalette.subtle.bg',
+ '--global-color-focus-ring': 'colors.colorPalette.solid.bg',
+ },
+ html: {
+ colorPalette: 'violet',
+ },
+ body: {
+ background: 'canvas',
+ color: 'fg.default',
+ },
+ },
+}
diff --git a/src/theme/keyframes.ts b/src/theme/keyframes.ts
new file mode 100644
index 0000000..1046404
--- /dev/null
+++ b/src/theme/keyframes.ts
@@ -0,0 +1,125 @@
+import { defineKeyframes } from '@pandacss/dev'
+
+export const keyframes = defineKeyframes({
+ // collapse
+ 'expand-height': {
+ from: { height: '0' },
+ to: { height: 'var(--height)' },
+ },
+ 'collapse-height': {
+ from: { height: 'var(--height)' },
+ to: { height: '0' },
+ },
+ 'expand-width': {
+ from: { width: '0' },
+ to: { width: 'var(--width)' },
+ },
+ 'collapse-width': {
+ from: { width: 'var(--width)' },
+ to: { width: '0' },
+ },
+ // fade
+ 'fade-in': {
+ from: { opacity: '0' },
+ to: { opacity: '1' },
+ },
+ 'fade-out': {
+ from: { opacity: '1' },
+ to: { opacity: '0' },
+ },
+ // slide from (full)
+ 'slide-from-left-full': {
+ from: { translate: '-100% 0' },
+ to: { translate: '0 0' },
+ },
+ 'slide-from-right-full': {
+ from: { translate: '100% 0' },
+ to: { translate: '0 0' },
+ },
+ 'slide-from-top-full': {
+ from: { translate: '0 -100%' },
+ to: { translate: '0 0' },
+ },
+ 'slide-from-bottom-full': {
+ from: { translate: '0 100%' },
+ to: { translate: '0 0' },
+ },
+ // slide to (full)
+ 'slide-to-left-full': {
+ from: { translate: '0 0' },
+ to: { translate: '-100% 0' },
+ },
+ 'slide-to-right-full': {
+ from: { translate: '0 0' },
+ to: { translate: '100% 0' },
+ },
+ 'slide-to-top-full': {
+ from: { translate: '0 0' },
+ to: { translate: '0 -100%' },
+ },
+ 'slide-to-bottom-full': {
+ from: { translate: '0 0' },
+ to: { translate: '0 100%' },
+ },
+ // slide from
+ 'slide-from-top': {
+ '0%': { translate: '0 -0.5rem' },
+ to: { translate: '0' },
+ },
+ 'slide-from-bottom': {
+ '0%': { translate: '0 0.5rem' },
+ to: { translate: '0' },
+ },
+ 'slide-from-left': {
+ '0%': { translate: '-0.5rem 0' },
+ to: { translate: '0' },
+ },
+ 'slide-from-right': {
+ '0%': { translate: '0.5rem 0' },
+ to: { translate: '0' },
+ },
+ // slide to
+ 'slide-to-top': {
+ '0%': { translate: '0' },
+ to: { translate: '0 -0.5rem' },
+ },
+ 'slide-to-bottom': {
+ '0%': { translate: '0' },
+ to: { translate: '0 0.5rem' },
+ },
+ 'slide-to-left': {
+ '0%': { translate: '0' },
+ to: { translate: '-0.5rem 0' },
+ },
+ 'slide-to-right': {
+ '0%': { translate: '0' },
+ to: { translate: '0.5rem 0' },
+ },
+ // scale
+ 'scale-in': {
+ from: { scale: '0.95' },
+ to: { scale: '1' },
+ },
+ 'scale-out': {
+ from: { scale: '1' },
+ to: { scale: '0.95' },
+ },
+ 'bg-position': {
+ from: {
+ backgroundPosition: 'var(--animate-from, 1rem) 0',
+ },
+ to: {
+ backgroundPosition: 'var(--animate-to, 0) 0',
+ },
+ },
+ position: {
+ from: {
+ insetInlineStart: 'var(--animate-from-x)',
+ insetBlockStart: 'var(--animate-from-y)',
+ },
+ to: {
+ insetInlineStart: 'var(--animate-to-x)',
+ insetBlockStart: 'var(--animate-to-y)',
+ },
+ },
+})
diff --git a/src/theme/layer-styles.ts b/src/theme/layer-styles.ts
new file mode 100644
index 0000000..3edd945
--- /dev/null
+++ b/src/theme/layer-styles.ts
@@ -0,0 +1,11 @@
+import { defineLayerStyles } from '@pandacss/dev'
+
+export const layerStyles = defineLayerStyles({
+ disabled: {
+ value: {
+ cursor: 'not-allowed',
+ opacity: '0.67',
+ filter: 'grayscale(100%)',
+ },
+ },
+})
diff --git a/src/theme/recipes/absolute-center.ts b/src/theme/recipes/absolute-center.ts
new file mode 100644
index 0000000..acb109b
--- /dev/null
+++ b/src/theme/recipes/absolute-center.ts
@@ -0,0 +1,37 @@
+import { defineRecipe } from '@pandacss/dev'
+
+export const absoluteCenter = defineRecipe({
+ className: 'absolute-center',
+ base: {
+ position: 'absolute',
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ },
+ defaultVariants: {
+ axis: 'both',
+ },
+ variants: {
+ axis: {
+ horizontal: {
+ insetStart: '50%',
+ translate: '-50%',
+ _rtl: {
+ translate: '50%',
+ },
+ },
+ vertical: {
+ top: '50%',
+ translate: '0 -50%',
+ },
+ both: {
+ insetStart: '50%',
+ top: '50%',
+ translate: '-50% -50%',
+ _rtl: {
+ translate: '50% -50%',
+ },
+ },
+ },
+ },
+})
diff --git a/src/theme/recipes/badge.ts b/src/theme/recipes/badge.ts
new file mode 100644
index 0000000..5331798
--- /dev/null
+++ b/src/theme/recipes/badge.ts
@@ -0,0 +1,49 @@
+import { defineRecipe } from '@pandacss/dev'
+
+export const badge = defineRecipe({
+ className: 'badge',
+ base: {
+ display: 'inline-flex',
+ alignItems: 'center',
+ borderRadius: 'l2',
+ lineHeight: '1',
+ fontWeight: 'medium',
+ fontVariantNumeric: 'tabular-nums',
+ whiteSpace: 'nowrap',
+ userSelect: 'none',
+ },
+ defaultVariants: {
+ variant: 'subtle',
+ size: 'md',
+ },
+ variants: {
+ variant: {
+ solid: {
+ bg: 'colorPalette.solid.bg',
+ color: 'colorPalette.solid.fg',
+ },
+ surface: {
+ bg: 'colorPalette.surface.bg',
+ borderWidth: '1px',
+ borderColor: 'colorPalette.surface.border',
+ color: 'colorPalette.surface.fg',
+ },
+ subtle: {
+ bg: 'colorPalette.subtle.bg',
+ color: 'colorPalette.subtle.fg',
+ },
+ outline: {
+ borderWidth: '1px',
+ borderColor: 'colorPalette.outline.border',
+ color: 'colorPalette.outline.fg',
+ },
+ },
+ size: {
+ sm: { fontSize: 'xs', px: '1.5', h: '4.5', gap: '0.5', _icon: { boxSize: '2.5' } },
+ md: { fontSize: 'xs', px: '2', h: '5', gap: '1', _icon: { boxSize: '3' } },
+ lg: { fontSize: 'xs', px: '2.5', h: '5.5', gap: '1', _icon: { boxSize: '3.5' } },
+ xl: { fontSize: 'sm', px: '2.5', h: '6', gap: '1.5', _icon: { boxSize: '4' } },
+ '2xl': { fontSize: 'md', px: '3', h: '7', gap: '1.5', _icon: { boxSize: '4.5' } },
+ },
+ },
+})
diff --git a/src/theme/recipes/button.ts b/src/theme/recipes/button.ts
new file mode 100644
index 0000000..cbe844f
--- /dev/null
+++ b/src/theme/recipes/button.ts
@@ -0,0 +1,110 @@
+import { defineRecipe } from '@pandacss/dev'
+
+export const button = defineRecipe({
+ className: 'button',
+ jsx: ['Button', 'IconButton', 'CloseButton', 'ButtonGroup'],
+ base: {
+ alignItems: 'center',
+ appearance: 'none',
+ borderRadius: 'l2',
+ cursor: 'pointer',
+ display: 'inline-flex',
+ flexShrink: '0',
+ fontWeight: 'semibold',
+ gap: '2',
+ isolation: 'isolate',
+ justifyContent: 'center',
+ outline: '0',
+ position: 'relative',
+ transition: 'colors',
+ transitionProperty: 'background-color, border-color, color, box-shadow',
+ userSelect: 'none',
+ verticalAlign: 'middle',
+ whiteSpace: 'nowrap',
+ _icon: {
+ flexShrink: '0',
+ },
+ _disabled: {
+ layerStyle: 'disabled',
+ },
+ focusVisibleRing: 'outside',
+ },
+ defaultVariants: {
+ variant: 'solid',
+ size: 'md',
+ },
+ variants: {
+ variant: {
+ solid: {
+ bg: 'colorPalette.solid.bg',
+ color: 'colorPalette.solid.fg',
+ _hover: {
+ bg: 'colorPalette.solid.bg.hover',
+ },
+ },
+ surface: {
+ bg: 'colorPalette.surface.bg',
+ borderWidth: '1px',
+ borderColor: 'colorPalette.surface.border',
+ color: 'colorPalette.surface.fg',
+ _hover: {
+ borderColor: 'colorPalette.surface.border.hover',
+ },
+ _active: {
+ bg: 'colorPalette.surface.bg.active',
+ },
+ _on: {
+ bg: 'colorPalette.surface.bg.active',
+ },
+ },
+ subtle: {
+ bg: 'colorPalette.subtle.bg',
+ color: 'colorPalette.subtle.fg',
+ _hover: {
+ bg: 'colorPalette.subtle.bg.hover',
+ },
+ _active: {
+ bg: 'colorPalette.subtle.bg.active',
+ },
+ _on: {
+ bg: 'colorPalette.subtle.bg.active',
+ },
+ },
+ outline: {
+ borderWidth: '1px',
+ borderColor: 'colorPalette.outline.border',
+ color: 'colorPalette.outline.fg',
+ _hover: {
+ bg: 'colorPalette.outline.bg.hover',
+ },
+ _active: {
+ bg: 'colorPalette.outline.bg.active',
+ },
+ _on: {
+ bg: 'colorPalette.outline.bg.active',
+ },
+ },
+ plain: {
+ color: 'colorPalette.plain.fg',
+ _hover: {
+ bg: 'colorPalette.plain.bg.hover',
+ },
+ _active: {
+ bg: 'colorPalette.plain.bg.active',
+ },
+ _on: {
+ bg: 'colorPalette.plain.bg.active',
+ },
+ },
+ },
+ size: {
+ '2xs': { h: '6', minW: '6', textStyle: 'xs', px: '2', _icon: { boxSize: '3.5' } },
+ xs: { h: '8', minW: '8', textStyle: 'sm', px: '2.5', _icon: { boxSize: '4' } },
+ sm: { h: '9', minW: '9', textStyle: 'sm', px: '3', _icon: { boxSize: '4' } },
+ md: { h: '10', minW: '10', textStyle: 'sm', px: '3.5', _icon: { boxSize: '5' } },
+ lg: { h: '11', minW: '11', textStyle: 'md', px: '4', _icon: { boxSize: '5' } },
+ xl: { h: '12', minW: '12', textStyle: 'md', px: '4.5', _icon: { boxSize: '5.5' } },
+ '2xl': { h: '16', minW: '16', textStyle: 'xl', px: '6', _icon: { boxSize: '6' } },
+ },
+ },
+})
diff --git a/src/theme/recipes/dialog.ts b/src/theme/recipes/dialog.ts
new file mode 100644
index 0000000..231e289
--- /dev/null
+++ b/src/theme/recipes/dialog.ts
@@ -0,0 +1,210 @@
+import { dialogAnatomy } from '@ark-ui/react/anatomy'
+import { defineSlotRecipe } from '@pandacss/dev'
+
+export const dialog = defineSlotRecipe({
+ className: 'dialog',
+ slots: dialogAnatomy.extendWith('header', 'body', 'footer').keys(),
+ base: {
+ backdrop: {
+ background: 'black.a7',
+ height: '100dvh',
+ left: '0',
+ position: 'fixed',
+ top: '0',
+ width: '100dvw',
+ zIndex: 'var(--z-index)',
+ _open: {
+ animationName: 'fade-in',
+ animationTimingFunction: 'emphasized-in',
+ animationDuration: 'normal',
+ },
+ _closed: {
+ animationName: 'fade-out',
+ animationTimingFunction: 'emphasized-out',
+ animationDuration: 'fast',
+ },
+ },
+ positioner: {
+ '--dialog-z-index': 'zIndex.modal',
+ display: 'flex',
+ height: '100dvh',
+ justifyContent: 'center',
+ left: 0,
+ overscrollBehaviorY: 'none',
+ position: 'fixed',
+ top: 0,
+ width: '100dvw',
+ zIndex: 'calc(var(--dialog-z-index) + var(--layer-index, 0))',
+ },
+
+ title: {
+ fontWeight: 'semibold',
+ textStyle: 'lg',
+ },
+ description: {
+ color: 'fg.muted',
+ textStyle: 'sm',
+ },
+ closeTrigger: {
+ pos: 'absolute',
+ top: '3',
+ insetEnd: '3',
+ },
+ content: {
+ '--dialog-z-index': 'zIndex.modal',
+ bg: 'gray.surface.bg',
+ borderRadius: 'l3',
+ boxShadow: 'lg',
+ display: 'flex',
+ flexDirection: 'column',
+ my: 'var(--dialog-margin, var(--dialog-base-margin))',
+ outline: 0,
+ position: 'relative',
+ textStyle: 'sm',
+ width: '100%',
+ zIndex: 'calc(var(--dialog-z-index) + var(--layer-index, 0))',
+ py: { base: '4', md: '6' },
+ gap: { base: '4', md: '6' },
+ _open: {
+ animationDuration: 'slowest',
+ },
+ _closed: {
+ animationDuration: 'normal',
+ },
+ },
+ header: {
+ display: 'flex',
+ flexDirection: 'column',
+ gap: '0.5',
+ px: { base: '4', md: '6' },
+ flex: '0',
+ },
+ body: {
+ display: 'flex',
+ flex: '1',
+ flexDirection: 'column',
+ alignItems: 'flex-start',
+ px: { base: '4', md: '6' },
+ },
+ footer: {
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'flex-end',
+ flex: '0',
+ gap: '3',
+ px: { base: '4', md: '6' },
+ },
+ },
+ defaultVariants: {
+ size: 'md',
+ scrollBehavior: 'outside',
+ placement: 'center',
+ motionPreset: 'scale',
+ },
+ variants: {
+ motionPreset: {
+ scale: {
+ content: {
+ _open: { animationName: 'scale-in, fade-in' },
+ _closed: { animationName: 'scale-out, fade-out' },
+ },
+ },
+ 'slide-in-bottom': {
+ content: {
+ _open: { animationName: 'slide-from-bottom, fade-in' },
+ _closed: { animationName: 'slide-to-bottom, fade-out' },
+ },
+ },
+ 'slide-in-top': {
+ content: {
+ _open: { animationName: 'slide-from-top, fade-in' },
+ _closed: { animationName: 'slide-to-top, fade-out' },
+ },
+ },
+ 'slide-in-left': {
+ content: {
+ _open: { animationName: 'slide-from-left, fade-in' },
+ _closed: { animationName: 'slide-to-left, fade-out' },
+ },
+ },
+ 'slide-in-right': {
+ content: {
+ _open: { animationName: 'slide-from-right, fade-in' },
+ _closed: { animationName: 'slide-to-right, fade-out' },
+ },
+ },
+ none: {},
+ },
+ size: {
+ xs: { content: { maxW: 'xs' } },
+ sm: { content: { maxW: 'sm' } },
+ md: { content: { maxW: 'md' } },
+ lg: { content: { maxW: 'lg' } },
+ xl: { content: { maxW: 'xl' } },
+ cover: {
+ positioner: { padding: '8' },
+ content: {
+ width: '100%',
+ height: '100%',
+ '--dialog-margin': '0',
+ },
+ },
+ full: {
+ content: {
+ maxW: '100dvw',
+ minH: '100dvh',
+ '--dialog-margin': '0',
+ borderRadius: '0',
+ },
+ },
+ },
+ placement: {
+ center: {
+ positioner: {
+ alignItems: 'center',
+ },
+ content: {
+ '--dialog-base-margin': 'auto',
+ mx: 'auto',
+ },
+ },
+ top: {
+ positioner: {
+ alignItems: 'flex-start',
+ },
+ content: {
+ '--dialog-base-margin': 'spacing.16',
+ mx: 'auto',
+ },
+ },
+ bottom: {
+ positioner: {
+ alignItems: 'flex-end',
+ },
+ content: {
+ '--dialog-base-margin': 'spacing.16',
+ mx: 'auto',
+ },
+ },
+ },
+ scrollBehavior: {
+ inside: {
+ positioner: {
+ overflow: 'hidden',
+ },
+ content: {
+ maxH: 'calc(100% - 7.5rem)',
+ },
+ body: {
+ overflow: 'auto',
+ },
+ },
+ outside: {
+ positioner: {
+ overflow: 'auto',
+ pointerEvents: 'auto',
+ },
+ },
+ },
+ },
+})
diff --git a/src/theme/recipes/group.ts b/src/theme/recipes/group.ts
new file mode 100644
index 0000000..dfa8be4
--- /dev/null
+++ b/src/theme/recipes/group.ts
@@ -0,0 +1,77 @@
+import { defineRecipe } from '@pandacss/dev'
+
+export const group = defineRecipe({
+ className: 'group',
+ base: {
+ display: 'inline-flex',
+ position: 'relative',
+ gap: '2',
+ '& > *': {
+ _focusVisible: {
+ zIndex: 1,
+ },
+ },
+ },
+ defaultVariants: {
+ orientation: 'horizontal',
+ },
+ variants: {
+ orientation: {
+ horizontal: {
+ flexDirection: 'row',
+ },
+ vertical: {
+ flexDirection: 'column',
+ },
+ },
+ attached: {
+ true: {
+ gap: '0',
+ },
+ },
+ grow: {
+ true: {
+ display: 'flex',
+ '& > *': {
+ flex: 1,
+ },
+ },
+ },
+ },
+ compoundVariants: [
+ {
+ orientation: 'horizontal',
+ attached: true,
+ css: {
+ '& > *:first-child': {
+ borderEndRadius: '0',
+ marginEnd: '-1px',
+ },
+ '& > *:last-child': {
+ borderStartRadius: '0',
+ },
+ '& > *:not(:first-child):not(:last-child)': {
+ borderRadius: '0',
+ marginEnd: '-1px',
+ },
+ },
+ },
+ {
+ orientation: 'vertical',
+ attached: true,
+ css: {
+ '& > *:first-child': {
+ borderBottomRadius: '0',
+ marginBottom: '-1px',
+ },
+ '& > *:last-child': {
+ borderTopRadius: '0',
+ },
+ '& > *:not(:first-child):not(:last-child)': {
+ borderRadius: '0',
+ marginBottom: '-1px',
+ },
+ },
+ },
+ ],
+})
diff --git a/src/theme/recipes/index.ts b/src/theme/recipes/index.ts
new file mode 100644
index 0000000..72aba70
--- /dev/null
+++ b/src/theme/recipes/index.ts
@@ -0,0 +1,10 @@
+import { button } from './button'
+import { group } from './group'
+import { absoluteCenter } from './absolute-center'
+import { spinner } from './spinner'
+import { input } from './input'
+import { textarea } from './textarea'
+import { badge } from './badge'
+import { dialog } from './dialog'
+export const recipes = { button, group, absoluteCenter, spinner, input, textarea, badge }
+export const slotRecipes = { dialog }
diff --git a/src/theme/recipes/input.ts b/src/theme/recipes/input.ts
new file mode 100644
index 0000000..2b43e70
--- /dev/null
+++ b/src/theme/recipes/input.ts
@@ -0,0 +1,89 @@
+import type { RecipeConfig } from '@pandacss/dev'
+
+export const input = {
+ className: 'input',
+ jsx: ['Input', 'Field.Input'],
+ base: {
+ appearance: 'none',
+ borderRadius: 'l2',
+ height: 'var(--input-height)',
+ minHeight: 'var(--input-height)',
+ minW: 'var(--input-height)',
+ outline: '0',
+ position: 'relative',
+ textAlign: 'start',
+ transition: 'colors',
+ width: '100%',
+ _disabled: {
+ layerStyle: 'disabled',
+ },
+ },
+ defaultVariants: {
+ size: 'md',
+ variant: 'outline',
+ },
+ variants: {
+ variant: {
+ outline: {
+ borderWidth: '1px',
+ borderColor: 'gray.outline.border',
+ focusVisibleRing: 'inside',
+ _invalid: {
+ focusRingColor: 'error',
+ borderColor: 'error',
+ },
+ },
+ surface: {
+ bg: 'gray.surface.bg',
+ borderWidth: '1px',
+ borderColor: 'gray.surface.border',
+ focusVisibleRing: 'inside',
+
+ _invalid: {
+ focusRingColor: 'error',
+ borderColor: 'error',
+ },
+ },
+ subtle: {
+ borderWidth: '1px',
+ borderColor: 'transparent',
+ bg: 'gray.subtle.bg',
+ color: 'gray.subtle.fg',
+ focusVisibleRing: 'inside',
+
+ _invalid: {
+ focusRingColor: 'error',
+ borderColor: 'error',
+ },
+ },
+ flushed: {
+ borderBottomWidth: '1px',
+ borderBottomColor: 'gray.outline.border',
+ borderRadius: '0',
+ color: 'fg.default',
+ px: '0',
+ _invalid: {
+ borderColor: 'error',
+ },
+ _focus: {
+ borderColor: 'colorPalette.solid.bg',
+ boxShadowColor: 'colorPalette.solid.bg',
+ boxShadow: '0 1px 0 0 var(--shadow-color)',
+ _invalid: {
+ borderColor: 'error',
+ boxShadowColor: 'error',
+ },
+ },
+ },
+ },
+ size: {
+ '2xs': { textStyle: 'xs', px: '1.5', '--input-height': 'sizes.7' },
+ xs: { textStyle: 'sm', px: '2', '--input-height': 'sizes.8' },
+ sm: { textStyle: 'sm', px: '2.5', '--input-height': 'sizes.9' },
+ md: { textStyle: 'md', px: '3', '--input-height': 'sizes.10' },
+ lg: { textStyle: 'md', px: '3.5', '--input-height': 'sizes.11' },
+ xl: { textStyle: 'lg', px: '4', '--input-height': 'sizes.12' },
+ '2xl': { textStyle: '3xl', px: '4.5', '--input-height': 'sizes.16' },
+ },
+ },
+} satisfies RecipeConfig
diff --git a/src/theme/recipes/spinner.ts b/src/theme/recipes/spinner.ts
new file mode 100644
index 0000000..7b8ac7b
--- /dev/null
+++ b/src/theme/recipes/spinner.ts
@@ -0,0 +1,33 @@
+import { defineRecipe } from '@pandacss/dev'
+
+export const spinner = defineRecipe({
+ className: 'spinner',
+ base: {
+ '--spinner-track-color': 'transparent',
+ animation: 'spin',
+ animationDuration: 'slowest',
+ borderBottomColor: 'var(--spinner-track-color)',
+ borderColor: 'currentColor',
+ borderInlineStartColor: 'var(--spinner-track-color)',
+ borderRadius: 'full',
+ borderStyle: 'solid',
+ borderWidth: '2px',
+ display: 'inline-block',
+ height: 'var(--spinner-size)',
+ width: 'var(--spinner-size)',
+ },
+ defaultVariants: {
+ size: 'md',
+ },
+ variants: {
+ size: {
+ inherit: { '--spinner-size': '1em' },
+ xs: { '--spinner-size': 'sizes.3' },
+ sm: { '--spinner-size': 'sizes.4' },
+ md: { '--spinner-size': 'sizes.5' },
+ lg: { '--spinner-size': 'sizes.6' },
+ xl: { '--spinner-size': 'sizes.7' },
+ '2xl': { '--spinner-size': 'sizes.8' },
+ },
+ },
+})
diff --git a/src/theme/recipes/textarea.ts b/src/theme/recipes/textarea.ts
new file mode 100644
index 0000000..d89cc26
--- /dev/null
+++ b/src/theme/recipes/textarea.ts
@@ -0,0 +1,82 @@
+import { defineRecipe } from '@pandacss/dev'
+
+export const textarea = defineRecipe({
+ className: 'textarea',
+ base: {
+ appearance: 'none',
+ borderRadius: 'l2',
+ minWidth: '0',
+ outline: '0',
+ position: 'relative',
+ transition: 'colors',
+ transitionProperty: 'box-shadow, border-color',
+ width: '100%',
+ _disabled: {
+ layerStyle: 'disabled',
+ },
+ },
+ defaultVariants: {
+ size: 'md',
+ variant: 'surface',
+ },
+ variants: {
+ variant: {
+ outline: {
+ borderWidth: '1px',
+ borderColor: 'gray.outline.border',
+ focusVisibleRing: 'inside',
+ _invalid: {
+ borderColor: 'error',
+ focusRingColor: 'error',
+ },
+ },
+ surface: {
+ bg: 'gray.surface.bg',
+ borderWidth: '1px',
+ borderColor: 'gray.surface.border',
+ focusVisibleRing: 'inside',
+ _invalid: {
+ borderColor: 'error',
+ focusRingColor: 'error',
+ },
+ },
+ subtle: {
+ borderWidth: '1px',
+ borderColor: 'transparent',
+ bg: 'gray.subtle.bg',
+ color: 'gray.subtle.fg',
+ focusVisibleRing: 'inside',
+ _invalid: {
+ borderColor: 'error',
+ focusRingColor: 'error',
+ },
+ },
+ flushed: {
+ borderBottomWidth: '1px',
+ borderBottomColor: 'gray.outline.border',
+ borderRadius: '0',
+ color: 'fg.default',
+ px: '0',
+ _invalid: {
+ borderColor: 'error',
+ },
+ _focus: {
+ borderColor: 'colorPalette.solid.bg',
+ boxShadowColor: 'colorPalette.solid.bg',
+ boxShadow: '0 1px 0 0 var(--shadow-color)',
+ _invalid: {
+ borderColor: 'error',
+ boxShadowColor: 'error',
+ },
+ },
+ },
+ },
+ size: {
+ xs: { textStyle: 'sm', px: '2', py: '5px', scrollPaddingBottom: '5px' },
+ sm: { textStyle: 'sm', px: '2.5', py: '7px', scrollPaddingBottom: '7px' },
+ md: { textStyle: 'md', px: '3', py: '7px', scrollPaddingBottom: '7px' },
+ lg: { textStyle: 'md', px: '3.5', py: '9px', scrollPaddingBottom: '9px' },
+ xl: { textStyle: 'lg', px: '4', py: '9px', scrollPaddingBottom: '9px' },
+ },
+ },
+})
diff --git a/src/theme/text-styles.ts b/src/theme/text-styles.ts
new file mode 100644
index 0000000..d3f7732
--- /dev/null
+++ b/src/theme/text-styles.ts
@@ -0,0 +1,17 @@
+import { defineTextStyles } from '@pandacss/dev'
+
+export const textStyles = defineTextStyles({
+ xs: { value: { fontSize: 'xs', lineHeight: '1.125rem' } },
+ sm: { value: { fontSize: 'sm', lineHeight: '1.25rem' } },
+ md: { value: { fontSize: 'md', lineHeight: '1.5rem' } },
+ lg: { value: { fontSize: 'lg', lineHeight: '1.75rem' } },
+ xl: { value: { fontSize: 'xl', lineHeight: '1.875rem' } },
+ '2xl': { value: { fontSize: '2xl', lineHeight: '2rem' } },
+ '3xl': { value: { fontSize: '3xl', lineHeight: '2.375rem' } },
+ '4xl': { value: { fontSize: '4xl', lineHeight: '2.75rem', letterSpacing: '-0.02em' } },
+ '5xl': { value: { fontSize: '5xl', lineHeight: '3.75rem', letterSpacing: '-0.02em' } },
+ '6xl': { value: { fontSize: '6xl', lineHeight: '4.5rem', letterSpacing: '-0.02em' } },
+ '7xl': { value: { fontSize: '7xl', lineHeight: '5.75rem', letterSpacing: '-0.02em' } },
+
+ label: { value: { fontSize: 'sm', lineHeight: '1.25rem', fontWeight: 'medium' } },
+})
diff --git a/src/theme/tokens/colors.ts b/src/theme/tokens/colors.ts
new file mode 100644
index 0000000..413a55a
--- /dev/null
+++ b/src/theme/tokens/colors.ts
@@ -0,0 +1,35 @@
+import { defineTokens } from '@pandacss/dev'
+
+const black = defineTokens.colors({
+ DEFAULT: { value: '#000000' },
+ a1: { value: 'rgba(0, 0, 0, 0.05)' },
+ a2: { value: 'rgba(0, 0, 0, 0.1)' },
+ a3: { value: 'rgba(0, 0, 0, 0.15)' },
+ a4: { value: 'rgba(0, 0, 0, 0.2)' },
+ a5: { value: 'rgba(0, 0, 0, 0.3)' },
+ a6: { value: 'rgba(0, 0, 0, 0.4)' },
+ a7: { value: 'rgba(0, 0, 0, 0.5)' },
+ a8: { value: 'rgba(0, 0, 0, 0.6)' },
+ a9: { value: 'rgba(0, 0, 0, 0.7)' },
+ a10: { value: 'rgba(0, 0, 0, 0.8)' },
+ a11: { value: 'rgba(0, 0, 0, 0.9)' },
+ a12: { value: 'rgba(0, 0, 0, 0.95)' },
+})
+
+const white = defineTokens.colors({
+ DEFAULT: { value: '#ffffff' },
+ a1: { value: 'rgba(255, 255, 255, 0.05)' },
+ a2: { value: 'rgba(255, 255, 255, 0.1)' },
+ a3: { value: 'rgba(255, 255, 255, 0.15)' },
+ a4: { value: 'rgba(255, 255, 255, 0.2)' },
+ a5: { value: 'rgba(255, 255, 255, 0.3)' },
+ a6: { value: 'rgba(255, 255, 255, 0.4)' },
+ a7: { value: 'rgba(255, 255, 255, 0.5)' },
+ a8: { value: 'rgba(255, 255, 255, 0.6)' },
+ a9: { value: 'rgba(255, 255, 255, 0.7)' },
+ a10: { value: 'rgba(255, 255, 255, 0.8)' },
+ a11: { value: 'rgba(255, 255, 255, 0.9)' },
+ a12: { value: 'rgba(255, 255, 255, 0.95)' },
+})
+
+export const colors = { black, white }
diff --git a/src/theme/tokens/durations.ts b/src/theme/tokens/durations.ts
new file mode 100644
index 0000000..80731e3
--- /dev/null
+++ b/src/theme/tokens/durations.ts
@@ -0,0 +1,11 @@
+import { defineTokens } from '@pandacss/dev'
+
+export const durations = defineTokens.durations({
+ fastest: { value: '50ms' },
+ faster: { value: '100ms' },
+ fast: { value: '150ms' },
+ normal: { value: '200ms' },
+ slow: { value: '250ms' },
+ slower: { value: '300ms' },
+ slowest: { value: '400ms' },
+})
diff --git a/src/theme/tokens/shadows.ts b/src/theme/tokens/shadows.ts
new file mode 100644
index 0000000..0628e30
--- /dev/null
+++ b/src/theme/tokens/shadows.ts
@@ -0,0 +1,46 @@
+import { defineSemanticTokens } from '@pandacss/dev'
+
+export const shadows = defineSemanticTokens.shadows({
+ xs: {
+ value: {
+ _light: '0px 1px 2px {colors.gray.a6}, 0px 0px 1px {colors.gray.a7}',
+ _dark: '0px 1px 1px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',
+ },
+ },
+ sm: {
+ value: {
+ _light: '0px 2px 4px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',
+ _dark: '0px 2px 4px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',
+ },
+ },
+ md: {
+ value: {
+ _light: '0px 4px 8px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',
+ _dark: '0px 4px 8px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',
+ },
+ },
+ lg: {
+ value: {
+ _light: '0px 8px 16px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',
+ _dark: '0px 8px 16px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',
+ },
+ },
+ xl: {
+ value: {
+ _light: '0px 16px 24px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',
+ _dark: '0px 16px 24px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',
+ },
+ },
+ '2xl': {
+ value: {
+ _light: '0px 24px 40px {colors.gray.a4}, 0px 0px 1px {colors.gray.a4}',
+ _dark: '0px 24px 40px {colors.black.a8}, 0px 0px 1px inset {colors.gray.a8}',
+ },
+ },
+ inset: {
+ value: {
+ _light: 'inset 8px 0 12px -8px {colors.gray.a4}',
+ _dark: 'inset 8px 0 12px -8px {colors.black.a6}',
+ },
+ },
+})
diff --git a/src/theme/tokens/z-index.ts b/src/theme/tokens/z-index.ts
new file mode 100644
index 0000000..cdc37e6
--- /dev/null
+++ b/src/theme/tokens/z-index.ts
@@ -0,0 +1,40 @@
+import { defineTokens } from '@pandacss/dev'
+
+export const zIndex = defineTokens.zIndex({
+ hide: {
+ value: -1,
+ },
+ base: {
+ value: 0,
+ },
+ docked: {
+ value: 10,
+ },
+ dropdown: {
+ value: 1000,
+ },
+ sticky: {
+ value: 1100,
+ },
+ banner: {
+ value: 1200,
+ },
+ overlay: {
+ value: 1300,
+ },
+ modal: {
+ value: 1400,
+ },
+ popover: {
+ value: 1500,
+ },
+ skipLink: {
+ value: 1600,
+ },
+ toast: {
+ value: 1700,
+ },
+ tooltip: {
+ value: 1800,
+ },
+})
diff --git a/tests/docker-smoke.mjs b/tests/docker-smoke.mjs
new file mode 100644
index 0000000..981b475
--- /dev/null
+++ b/tests/docker-smoke.mjs
@@ -0,0 +1,173 @@
+import { spawnSync } from 'node:child_process'
+import { randomUUID } from 'node:crypto'
+import { createServer } from 'node:net'
+import assert from 'node:assert/strict'
+import { mkdirSync, mkdtempSync, existsSync, rmSync, realpathSync } from 'node:fs'
+import path from 'node:path'
+const listener = createServer()
+await new Promise((resolve) => listener.listen(0, '127.0.0.1', resolve))
+const port = listener.address().port
+await new Promise((resolve) => listener.close(resolve))
+const project = `syncova-smoke-${Date.now()}`,
+ password = `Test-${randomUUID()}!`
+Object.assign(process.env, {
+ SYNCOVA_IMAGE: process.env.SYNCOVA_IMAGE || 'syncova-ticket:local',
+ SYNCOVA_PULL_POLICY: 'never',
+ ADMIN_PASSWORD: password,
+ ADMIN_EMAIL: 'docker-test@example.invalid',
+ SYNCOVA_PORT: String(port),
+ SYNCOVA_BIND: '127.0.0.1',
+ APP_ORIGIN: `http://127.0.0.1:${port}`,
+ COOKIE_SECURE: 'false',
+})
+const args = ['compose', '--env-file', '.env.docker.example', '-p', project]
+function compose(extra, selectedProject = project) {
+ const selectedArgs = [...args]
+ selectedArgs[selectedArgs.length - 1] = selectedProject
+ const result = spawnSync('docker', [...selectedArgs, ...extra], {
+ encoding: 'utf8',
+ timeout: 120000,
+ })
+ if (result.status !== 0)
+ throw new Error(
+ (result.stderr || result.error?.message || 'Docker fehlgeschlagen').replaceAll(
+ password,
+ '[redacted]',
+ ),
+ )
+ return result.stdout
+}
+const base = `http://127.0.0.1:${port}`
+let cookie = ''
+const importProject = project + '-import'
+let importSource
+async function api(url, method = 'GET', data) {
+ const options = {
+ method,
+ headers: {
+ 'Content-Type': 'application/json',
+ Connection: 'close',
+ ...(cookie ? { cookie } : {}),
+ },
+ body: data === undefined ? undefined : JSON.stringify(data),
+ }
+ let response
+ try {
+ response = await fetch(base + '/api' + url, options)
+ } catch (error) {
+ if (method !== 'GET') throw error
+ await new Promise((resolve) => setTimeout(resolve, 500))
+ response = await fetch(base + '/api' + url, options)
+ }
+ assert.equal(response.status, 200, `HTTP ${response.status} ${url}`)
+ if (url === '/login') cookie = response.headers.get('set-cookie').split(';')[0]
+ return response.json()
+}
+try {
+ compose(['up', '-d', '--no-build', '--wait', '--wait-timeout', '60'])
+ console.log('Docker-Container ist gesund.')
+ await api('/login', 'POST', { email: process.env.ADMIN_EMAIL, password })
+ const ticket = await api('/tickets', 'POST', {
+ queue_id: 'support',
+ customer: 'customer@example.invalid',
+ customer_name: 'Persistenztest',
+ subject: 'Docker-Persistenz',
+ body: 'Container-Neustart prüfen',
+ key: randomUUID(),
+ })
+ await api('/queues/support/signatures', 'PUT', {
+ signatures: [
+ {
+ id: 'docker-signature',
+ name: 'HTML',
+ default: true,
+ format: 'html',
+ body: 'Docker Support Kontakt
',
+ },
+ ],
+ })
+ const config = await api('/queues/support/mail')
+ await api('/queues/support/mail', 'PUT', { ...config, password: 'test-fixture-secret' })
+ await api(`/tickets/${ticket.id}/messages`, 'POST', {
+ kind: 'outgoing',
+ from: 'support@syncova.local',
+ body: 'Anbei die Datei.',
+ signature_id: 'docker-signature',
+ key: randomUUID(),
+ attachments: [
+ {
+ name: 'persistenz.txt',
+ mime: 'text/plain',
+ content: Buffer.from('PERSISTENT-BYTES').toString('base64'),
+ },
+ ],
+ })
+ await api('/queues/service', 'DELETE', { confirm: 'Service' })
+ const first = await api(`/tickets/${ticket.id}`)
+ const attachment = first.messages.flatMap((m) => m.attachments)[0]
+ compose(['up', '-d', '--force-recreate', '--no-build', '--wait', '--wait-timeout', '60'])
+ console.log('Container wurde vollständig neu erstellt; dasselbe Volume wird verwendet.')
+ const restored = await api(`/tickets/${ticket.id}`)
+ assert(restored.messages.some((m) => m.html?.includes('Docker Support ')))
+ assert.equal(restored.messages.flatMap((m) => m.attachments)[0].id, attachment.id)
+ const bytes = await fetch(base + '/api/attachments/' + attachment.id, { headers: { cookie } })
+ assert.equal(bytes.status, 200)
+ assert.equal(await bytes.text(), 'PERSISTENT-BYTES')
+ const restoredConfig = await api('/queues/support/mail')
+ assert.equal(restoredConfig.passwordSet, true)
+ assert(!(await api('/bootstrap')).queues.some((q) => q.id === 'service'))
+ assert((await api('/logs')).some((a) => a.action === 'Queue gelöscht'))
+ compose([
+ 'exec',
+ '-T',
+ 'syncova',
+ 'node',
+ '--input-type=module',
+ '-e',
+ "import {openDb} from './server/db.js'; import {decryptSecret} from './server/secrets.js'; const db=openDb();if(!decryptSecret(db.prepare('SELECT password FROM queue_mail WHERE queue_id=?').get('support').password))throw Error('Missing key');db.close();",
+ ])
+ console.log(
+ 'Persistenz erfolgreich geprüft: Tickets, Nachrichten, Anhänge, HTML-Signaturen, Mailkonfiguration, Schlüssel, Sitzungen und Audit-Historie.',
+ )
+ compose(['stop'])
+ mkdirSync('data', { recursive: true })
+ importSource = mkdtempSync(path.join(path.resolve('data'), 'docker-import-test-'))
+ compose(['cp', 'syncova:/app/data/.', importSource])
+ assert(existsSync(path.join(importSource, 'syncova.db')))
+ compose(
+ [
+ 'run',
+ '--rm',
+ '--no-deps',
+ '--entrypoint',
+ 'node',
+ '--volume',
+ `${importSource}:/import:ro`,
+ 'syncova',
+ 'server/import-data.js',
+ ],
+ importProject,
+ )
+ compose(['up', '-d', '--no-build', '--wait', '--wait-timeout', '60'], importProject)
+ assert.equal(
+ (await api(`/tickets/${ticket.id}`)).messages.flatMap((m) => m.attachments)[0].id,
+ attachment.id,
+ )
+ const importedFile = await fetch(base + '/api/attachments/' + attachment.id, {
+ headers: { cookie },
+ })
+ assert.equal(await importedFile.text(), 'PERSISTENT-BYTES')
+ console.log(
+ 'Datenübernahme in ein neues Docker-Volume einschließlich Mail-Schlüssel erfolgreich geprüft.',
+ )
+} finally {
+ compose(['down', '--volumes', '--remove-orphans'], importProject)
+ compose(['down', '--volumes', '--remove-orphans'])
+ if (importSource) {
+ const actual = realpathSync(importSource),
+ root = realpathSync('data') + path.sep
+ if (!actual.toLowerCase().startsWith(root.toLowerCase())) throw Error('Unerwarteter Testpfad')
+ rmSync(actual, { recursive: true, force: true })
+ }
+ console.log('Isolierte Docker-Testumgebung entfernt.')
+}
diff --git a/tests/image-smoke.mjs b/tests/image-smoke.mjs
new file mode 100644
index 0000000..750f937
--- /dev/null
+++ b/tests/image-smoke.mjs
@@ -0,0 +1,97 @@
+import { spawnSync } from 'node:child_process'
+import { randomUUID } from 'node:crypto'
+import assert from 'node:assert/strict'
+
+const image = process.env.SYNCOVA_IMAGE || 'syncova-ticket:local'
+const name = `syncova-image-check-${randomUUID()}`
+const password = `Test-${randomUUID()}!`
+const env = { ...process.env, ADMIN_EMAIL: 'image-check@example.invalid', ADMIN_PASSWORD: password }
+function docker(args, required = true) {
+ const result = spawnSync('docker', args, { encoding: 'utf8', timeout: 60000, env })
+ if (required && result.status !== 0)
+ throw Error(
+ (result.stderr || result.error?.message || 'Docker fehlgeschlagen').replaceAll(
+ password,
+ '[redacted]',
+ ),
+ )
+ return result
+}
+const configuration = JSON.parse(docker(['image', 'inspect', image]).stdout)[0].Config
+assert.equal(configuration.User, 'node')
+assert(
+ !configuration.Env.some((v) => /^(ADMIN_PASSWORD|REGISTRY_TOKEN|SMTP_ENCRYPTION_KEY)=.+/.test(v)),
+ 'Keine Zugangsdaten im Image',
+)
+docker([
+ 'run',
+ '--rm',
+ '--entrypoint',
+ 'node',
+ image,
+ '--input-type=module',
+ '-e',
+ `
+ import assert from 'node:assert/strict'; import fs from 'node:fs';
+ assert.deepEqual(fs.readdirSync('/app/data'), [], 'Image muss ein leeres Datenverzeichnis enthalten');
+ for(const file of ['/app/.env','/app/.env.docker','/app/.git','/app/docs','/app/tests']) assert(!fs.existsSync(file),file+' darf nicht im Laufzeitimage liegen');
+`,
+])
+try {
+ docker([
+ 'run',
+ '--detach',
+ '--name',
+ name,
+ '--read-only',
+ '--tmpfs',
+ '/app/data:rw,noexec,nosuid,uid=1000,gid=1000,mode=0700',
+ '--tmpfs',
+ '/tmp:rw,noexec,nosuid',
+ '--env',
+ 'ADMIN_EMAIL',
+ '--env',
+ 'ADMIN_PASSWORD',
+ image,
+ ])
+ let healthy = false
+ for (let attempt = 0; attempt < 30; attempt++) {
+ const result = docker(
+ [
+ 'exec',
+ name,
+ 'node',
+ '-e',
+ "fetch('http://127.0.0.1:3001/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
+ ],
+ false,
+ )
+ if (result.status === 0) {
+ healthy = true
+ break
+ }
+ await new Promise((resolve) => setTimeout(resolve, 500))
+ }
+ assert(healthy, 'Produktionsimage muss starten und gesund werden')
+ docker([
+ 'exec',
+ name,
+ 'node',
+ '--input-type=module',
+ '-e',
+ `
+ import Database from 'better-sqlite3'; import assert from 'node:assert/strict';
+ const db=new Database('/app/data/syncova.db',{readonly:true});
+ for(const table of ['tickets','messages','attachments','notifications','outbox']) assert.equal(db.prepare('SELECT count(*) n FROM '+table).get().n,0,table+' muss leer sein');
+ const users=db.prepare('SELECT email FROM users').all(); assert.equal(users.length,1); assert.equal(users[0].email,process.env.ADMIN_EMAIL);
+ db.close();
+ const login=await fetch('http://127.0.0.1:3001/api/login',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({email:process.env.ADMIN_EMAIL,password:process.env.ADMIN_PASSWORD})});
+ assert.equal(login.status,200,'Bootstrap-Anmeldung muss funktionieren');
+ `,
+ ])
+ console.log(
+ 'Image geprüft: leeres Datenverzeichnis, keine lokalen Daten oder Zugangsdaten, frische Produktion ohne Demotickets/-benutzer, Bootstrap-Anmeldung erfolgreich.',
+ )
+} finally {
+ docker(['rm', '--force', name], false)
+}
diff --git a/tests/service.test.js b/tests/service.test.js
new file mode 100644
index 0000000..676e3f1
--- /dev/null
+++ b/tests/service.test.js
@@ -0,0 +1,1478 @@
+import { test } from 'node:test'
+import assert from 'node:assert/strict'
+import { mkdtempSync, rmSync } from 'node:fs'
+import os from 'node:os'
+import path from 'node:path'
+import { openDb, seed, uid, now } from '../server/db.js'
+import { Service } from '../server/service.js'
+import { Worker } from '../server/worker.js'
+import { createApp } from '../server/app.js'
+import { scheduledTime } from '../server/time.js'
+import { readMailSettings, saveMailSettings, smtpTransport } from '../server/mail-config.js'
+import { InboundWorker, nextFetch, imapOptions } from '../server/inbound.js'
+import nodemailer from 'nodemailer'
+import { simpleParser } from 'mailparser'
+import { safeHtml, signatureValue } from '../server/content.js'
+import { signatureContext } from '../server/signature-placeholders.js'
+process.env.SMTP_ENCRYPTION_KEY = 'a9'.repeat(32)
+function setup(file = ':memory:') {
+ const db = openDb(file)
+ seed(db)
+ const s = new Service(db)
+ return { db, s, admin: s.user('admin'), agent: s.user('leon'), reader: s.user('mira') }
+}
+function mail(queue = 'support', extra = {}) {
+ return {
+ messageId: `<${uid()}@example.com>`,
+ from: 'anna@example.com',
+ to: [`${queue}@syncova.local`],
+ name: 'Anna',
+ subject: 'Eine Frage',
+ body: 'Bitte helfen',
+ ...extra,
+ }
+}
+function status(s, q, b) {
+ return s.queue(q).statuses.find((x) => x.behavior === b).id
+}
+test('Deleting a user revokes sessions, clears assignments, preserves history and permits email reuse', () => {
+ const { db, s, admin, agent } = setup()
+ try {
+ s.run(
+ 'UPDATE users SET prefs=? WHERE id=?',
+ JSON.stringify({ new: { bell: true, email: true } }),
+ agent.id,
+ )
+ s.run(
+ 'INSERT INTO sessions VALUES(?,?,?)',
+ 'user-delete-session',
+ agent.id,
+ '2099-01-01T00:00:00Z',
+ )
+ const id = s.ingest(
+ mail('support', { attachments: [{ name: 'info.txt', content: 'YQ==' }] }),
+ ).ticket_id
+ s.run('UPDATE tickets SET assignee=? WHERE id=?', agent.id, id)
+ s.reply(agent, id, { kind: 'note', body: 'Historische Notiz', key: uid() })
+ const before = s.detail(admin, id),
+ messages = before.messages
+ assert.equal(s.userDeletion(admin, agent.id).assignedTickets, 1)
+ assert.throws(() => s.deleteUser(agent, admin.id, { confirm: admin.email }), { status: 403 })
+ assert.throws(() => s.deleteUser(admin, agent.id, { confirm: 'falsch' }), { status: 400 })
+ assert.equal(s.user(agent.id).name, agent.name)
+ assert.equal(s.deleteUser(admin, agent.id, { confirm: agent.email }).assignedTickets, 1)
+ assert.throws(() => s.user(agent.id), { status: 401 })
+ assert.equal(s.get('SELECT * FROM sessions WHERE user_id=?', agent.id), undefined)
+ assert.equal(s.get('SELECT * FROM memberships WHERE user_id=?', agent.id), undefined)
+ const after = s.detail(admin, id)
+ assert.equal(after.assignee, null)
+ assert.equal(after.revision, before.revision + 1)
+ assert.deepEqual(after.messages, messages)
+ assert.equal(after.activities.find((a) => a.actor === agent.id).actor_name, agent.name)
+ assert.equal(
+ s.get(
+ 'SELECT state FROM outbox o JOIN notifications n ON n.id=o.notification_id WHERE n.user_id=?',
+ agent.id,
+ ).state,
+ 'cancelled',
+ )
+ assert(!s.admin(admin).users.some((u) => u.id === agent.id))
+ assert(!s.bootstrap(admin).users.some((u) => u.id === agent.id))
+ assert.throws(() => s.saveUser(admin, { ...agent, active: 1, groups: ['agent'] }), {
+ status: 404,
+ })
+ assert.throws(() => s.deleteUser(admin, agent.id, { confirm: agent.email }), { status: 404 })
+ const replacement = s.saveUser(admin, {
+ name: 'Neues Konto',
+ email: agent.email,
+ groups: ['agent'],
+ active: true,
+ password: 'New-Password-2026!',
+ })
+ assert.notEqual(replacement.id, agent.id)
+ assert.equal(s.user(replacement.id).email, agent.email)
+ assert.equal(s.logs(admin).find((a) => a.action === 'Benutzer gelöscht').entity, agent.id)
+ assert.deepEqual(db.pragma('foreign_key_check'), [])
+ } finally {
+ db.close()
+ }
+})
+test('Self deletion, the last active administrator and the administrator group are protected', () => {
+ const { db, s, admin } = setup()
+ try {
+ const manager = s.saveUser(admin, {
+ name: 'Verwaltung',
+ email: 'verwaltung@example.org',
+ active: true,
+ groups: ['manager'],
+ password: 'Manager-Password-2026!',
+ })
+ const group = s.saveGroup(admin, {
+ name: 'Benutzerverwaltung',
+ permissions: { '*': ['users'] },
+ })
+ s.run('INSERT INTO memberships VALUES(?,?)', manager.id, group.id)
+ const actor = s.user(manager.id)
+ assert.throws(() => s.deleteUser(admin, admin.id, { confirm: admin.email }), { status: 409 })
+ assert.throws(() => s.deleteUser(actor, admin.id, { confirm: admin.email }), { status: 409 })
+ assert.throws(() => s.saveUser(actor, { ...admin, active: false, groups: ['admins'] }), {
+ status: 409,
+ })
+ assert.equal(s.user(admin.id).active, 1)
+ assert.throws(() => s.deleteGroup(admin, 'admins', { confirm: 'Administrator' }), {
+ status: 409,
+ })
+ assert.throws(() => s.deleteGroup(actor, group.id, { confirm: 'Benutzerverwaltung' }), {
+ status: 409,
+ })
+ assert(s.can(actor, '*', 'users'))
+ const second = s.saveUser(admin, {
+ name: 'Zweiter Admin',
+ email: 'zweiter@example.org',
+ active: true,
+ groups: ['admins'],
+ password: 'Second-Admin-2026!',
+ })
+ s.deleteUser(s.user(second.id), admin.id, { confirm: admin.email })
+ assert.throws(() => s.user(admin.id), { status: 401 })
+ assert.equal(s.user(second.id).active, 1)
+ } finally {
+ db.close()
+ }
+})
+test('Deleting a group removes only its rights, releases inaccessible assignments and rejects stale editors', () => {
+ const { db, s, admin, agent, reader } = setup()
+ try {
+ const group = s.saveGroup(admin, {
+ name: 'Zusatzrechte',
+ permissions: { support: ['view', 'reply'] },
+ })
+ s.run('INSERT INTO memberships VALUES(?,?)', agent.id, group.id)
+ s.run('INSERT INTO memberships VALUES(?,?)', reader.id, group.id)
+ s.run('DELETE FROM memberships WHERE user_id=? AND group_id=?', reader.id, 'reader')
+ const first = s.ingest(mail()).ticket_id,
+ second = s.ingest(mail()).ticket_id
+ s.run('UPDATE tickets SET assignee=? WHERE id=?', agent.id, first)
+ s.run('UPDATE tickets SET assignee=? WHERE id=?', reader.id, second)
+ assert.equal(s.groupDeletion(admin, group.id).members, 2)
+ assert.throws(() => s.deleteGroup(agent, group.id, { confirm: 'Zusatzrechte' }), {
+ status: 403,
+ })
+ assert.throws(() => s.deleteGroup(admin, group.id, { confirm: 'falsch' }), { status: 400 })
+ assert(s.can(reader, 'support', 'view'))
+ assert.equal(s.deleteGroup(admin, group.id, { confirm: 'Zusatzrechte' }).assignedTickets, 1)
+ assert.equal(s.get('SELECT * FROM groups_ WHERE id=?', group.id), undefined)
+ assert.equal(s.get('SELECT * FROM memberships WHERE group_id=?', group.id), undefined)
+ assert(s.can(agent, 'support', 'reply'))
+ assert(!s.can(reader, 'support', 'view'))
+ assert.equal(s.detail(admin, first).assignee, agent.id)
+ assert.equal(s.detail(admin, second).assignee, null)
+ assert.equal(s.user(reader.id).active, 1)
+ assert.throws(
+ () => s.saveGroup(admin, { id: group.id, name: 'Zusatzrechte', permissions: {} }),
+ { status: 404 },
+ )
+ assert.throws(() => s.deleteGroup(admin, group.id, { confirm: 'Zusatzrechte' }), {
+ status: 404,
+ })
+ assert.deepEqual(db.pragma('foreign_key_check'), [])
+ } finally {
+ db.close()
+ }
+})
+test('Deleted users and groups stay removed after restarting the database', () => {
+ const dir = mkdtempSync(path.join(os.tmpdir(), 'syncova-identities-')),
+ file = path.join(dir, 'test.db')
+ let db
+ try {
+ const initial = setup(file)
+ db = initial.db
+ initial.s.deleteUser(initial.admin, initial.agent.id, { confirm: initial.agent.email })
+ initial.s.deleteGroup(initial.admin, 'agent', { confirm: 'Bearbeiter' })
+ db.close()
+ db = openDb(file)
+ const s = new Service(db),
+ admin = s.user('admin')
+ assert(!s.admin(admin).users.some((u) => u.id === 'leon'))
+ assert(!s.admin(admin).groups.some((g) => g.id === 'agent'))
+ assert.throws(() => s.user('leon'), { status: 401 })
+ } finally {
+ db?.close()
+ rmSync(dir, { recursive: true, force: true })
+ }
+})
+function configureImap(s, user, q, changes = {}) {
+ const settings = readMailSettings(s, user, q)
+ return saveMailSettings(s, user, q, {
+ ...settings,
+ imap: {
+ ...settings.imap,
+ enabled: true,
+ host: 'imap.example.invalid',
+ username: q,
+ ...changes,
+ },
+ imapPassword: 'imap-secret-' + q,
+ })
+}
+function mime(id, to = 'support@syncova.local') {
+ return Buffer.from(
+ `From: Anna \r\nTo: ${to}\r\nMessage-ID: \r\nSubject: Anfrage ${id}\r\nContent-Type: text/plain; charset=utf-8\r\n\r\nBitte helfen.\r\n`,
+ )
+}
+function fakeImap(messages, record = [], hooks = {}) {
+ return (options) => ({
+ mailbox: { uidValidity: 1n },
+ async connect() {
+ record.push({ connect: options })
+ await hooks.connect?.()
+ },
+ async getMailboxLock(folder) {
+ record.push({ folder })
+ return { release() {} }
+ },
+ async search() {
+ return [...messages.keys()]
+ },
+ async fetchOne(uid, query) {
+ if (query.size) return { size: messages.get(uid).length }
+ await hooks.source?.(uid)
+ return { source: messages.get(uid) }
+ },
+ async messageFlagsAdd(uid) {
+ record.push({ seen: uid })
+ },
+ async logout() {},
+ close() {},
+ })
+}
+test('Signature profile fields are admin managed, persisted and preserved by older clients', () => {
+ const { db, s, admin, agent } = setup()
+ try {
+ const data = {
+ ...agent,
+ groups: ['agent'],
+ phone: ' +49 123 ',
+ job_title: 'Support Engineer',
+ department: 'Service',
+ }
+ assert.throws(() => s.saveUser(agent, data), { status: 403 })
+ s.saveUser(admin, data)
+ assert.equal(s.user(agent.id).phone, '+49 123')
+ assert.equal(s.admin(admin).users.find((u) => u.id === agent.id).job_title, 'Support Engineer')
+ const { phone, job_title, department, ...legacy } = data
+ s.saveUser(admin, { ...legacy, name: 'Leon Test' })
+ assert.equal(s.user(agent.id).department, 'Service')
+ assert.throws(() => s.saveUser(admin, { ...data, phone: 'x'.repeat(201) }), { status: 400 })
+ } finally {
+ db.close()
+ }
+})
+test('Signature placeholders use the replying user, actual ticket and queue sender, and snapshot the result', () => {
+ const { db, s, admin, agent } = setup()
+ try {
+ s.saveUser(admin, {
+ ...agent,
+ groups: ['agent'],
+ phone: '+49 123',
+ job_title: 'Support',
+ department: 'Service',
+ })
+ const q = s.queue('support')
+ const body =
+ '{benutzer.name}|{benutzer.vorname}|{benutzer.nachname}|{benutzer.email}|{benutzer.telefon}|{benutzer.position}|{benutzer.abteilung}|{queue.name}|{queue.email}|{absender.email}|{ticket.nummer}|{ticket.betreff}|{ticket.status}|{kunde.name}|{kunde.email}|{bearbeiter.name}|{bearbeiter.email}'
+ s.saveSignatures(admin, q.id, [{ ...q.signatures[0], format: 'text', body }])
+ const id = s.ingest(mail()).ticket_id
+ s.run('UPDATE tickets SET assignee=? WHERE id=?', admin.id, id)
+ const actor = s.user(agent.id),
+ from = q.addresses.find((a) => a.outgoing && !a.default).email
+ s.reply(actor, id, { key: 'placeholder-reply', from, body: 'Antwort' })
+ const message = s.detail(admin, id).messages.find((m) => m.kind === 'outgoing')
+ assert.equal(
+ message.body,
+ `Antwort\n\n${actor.name}|Leon|Fischer|${actor.email}|+49 123|Support|Service|Support|support@syncova.local|${from}|SYN-${String(id).padStart(5, '0')}|Eine Frage|Neu|Anna|anna@example.com|${admin.name}|${admin.email}`,
+ )
+ assert(!message.body.includes('{benutzer.'))
+ const payload = s.get('SELECT payload FROM outbox WHERE message_id=?', message.id).payload
+ assert.equal(JSON.parse(payload).text, message.body)
+ s.saveUser(admin, { ...actor, groups: ['agent'], name: 'Geänderter Name' })
+ s.reply(s.user(agent.id), id, { key: 'placeholder-reply', from, body: 'Wiederholung' })
+ assert.equal(
+ s.get('SELECT payload FROM outbox WHERE message_id=?', message.id).payload,
+ payload,
+ )
+ assert.equal(s.get('SELECT body FROM messages WHERE id=?', message.id).body, message.body)
+ } finally {
+ db.close()
+ }
+})
+test('HTML placeholder values are escaped, sanitised and expanded once; unknown tokens are rejected', () => {
+ const { db, s, admin } = setup()
+ try {
+ const rendered = signatureValue(
+ {
+ format: 'html',
+ body: '{benutzer.name} {benutzer.email} Kontakt ',
+ },
+ {
+ 'benutzer.name': ' & {queue.name}',
+ 'benutzer.email': 'person@example.org',
+ 'kunde.name': 'javascript:alert(1)',
+ 'queue.name': 'NICHT ERSETZEN',
+ },
+ )
+ assert(rendered.html.includes('<img'))
+ assert(rendered.html.includes('& {queue.name}'))
+ assert(!rendered.html.includes(' {%user.firstName%} {%user.lastName%} Tel.: {%user.phone%}{%mailbox.email%} ',
+ },
+ {
+ 'benutzer.vorname': 'Jana',
+ 'benutzer.nachname': 'Weber',
+ 'benutzer.telefon': '+49 123',
+ 'absender.email': 'team@example.org',
+ },
+ )
+ assert.equal(
+ legacy.html,
+ 'Jana Weber Tel.: +49 123team@example.org
',
+ )
+ assert(!legacy.text.includes('{%'))
+ for (const body of [
+ '{unbekannt}',
+ '{constructor}',
+ '{__proto__}',
+ '{toString}',
+ '{%unknown%}',
+ '{%constructor%}',
+ ])
+ assert.throws(() => s.saveSignatures(admin, q.id, [{ ...q.signatures[0], body }]), {
+ status: 400,
+ })
+ assert.deepEqual(s.queue(q.id).signatures, q.signatures)
+ } finally {
+ db.close()
+ }
+})
+test('Automatic acknowledgement signatures use queue identity and blank personal fields', () => {
+ const { db, s, admin } = setup()
+ try {
+ const q = s.queue('support')
+ s.saveSignatures(admin, q.id, [
+ {
+ ...q.signatures[0],
+ format: 'html',
+ body: '{benutzer.name}|{benutzer.email}|{benutzer.telefon}|{benutzer.position}|{benutzer.abteilung}|{benutzer.vorname}|{bearbeiter.name}|{kunde.name}|{ticket.nummer}
',
+ },
+ ])
+ const config = readMailSettings(s, admin, q.id)
+ saveMailSettings(s, admin, q.id, {
+ ...config,
+ acknowledgement: { ...config.acknowledgement, enabled: true, includeSignature: true },
+ })
+ const id = s.ingest(mail()).ticket_id
+ const auto = s.detail(admin, id).messages.find((m) => m.kind === 'outgoing')
+ assert(
+ auto.body.endsWith(
+ `Support|support@syncova.local||||||Anna|SYN-${String(id).padStart(5, '0')}`,
+ ),
+ )
+ assert(!auto.body.includes(admin.name))
+ const context = signatureContext(
+ s,
+ null,
+ s.queue(q.id),
+ s.get('SELECT * FROM tickets WHERE id=?', id),
+ null,
+ new Date('2026-11-03T12:45:00Z'),
+ )
+ assert.equal(context.datum, '03.11.2026')
+ assert.equal(context.uhrzeit, '13:45')
+ } finally {
+ db.close()
+ }
+})
+test('Existing databases migrate optional signature profile fields without losing users', () => {
+ const dir = mkdtempSync(path.join(os.tmpdir(), 'syncova-profile-')),
+ file = path.join(dir, 'old.db')
+ let db
+ try {
+ db = openDb(file)
+ seed(db)
+ for (const name of ['phone', 'job_title', 'department'])
+ db.exec(`ALTER TABLE users DROP COLUMN ${name}`)
+ db.close()
+ db = openDb(file)
+ const user = new Service(db).user('admin')
+ assert.equal(user.phone, '')
+ assert.equal(user.job_title, '')
+ assert.equal(user.department, '')
+ assert.equal(user.name, 'Jana Weber')
+ } finally {
+ db?.close()
+ rmSync(dir, { recursive: true, force: true })
+ }
+})
+test('Queue deletion moves every ticket and attachment atomically, removes access and preserves history', () => {
+ const { db, s, admin, agent } = setup()
+ try {
+ const q = s.queue('support')
+ assert.throws(() => s.deleteQueue(agent, 'support', { confirm: q.name, target: 'vertrieb' }), {
+ status: 403,
+ })
+ assert.throws(() => s.deleteQueue(admin, 'support', { confirm: q.name }), { status: 409 })
+ const m = mail('support', {
+ attachments: [
+ {
+ name: 'vertrag.pdf',
+ mime: 'application/pdf',
+ content: Buffer.from('pdf-test').toString('base64'),
+ },
+ ],
+ })
+ const ticket = s.ingest(m).ticket_id
+ s.updateTicket(admin, ticket, {
+ status_id: status(s, 'support', 'wait_date'),
+ due_at: '2030-01-01T12:00:00+01:00',
+ timezone: 'Europe/Berlin',
+ })
+ const before = s.detail(admin, ticket)
+ assert.throws(
+ () => s.deleteQueue(admin, 'support', { confirm: 'falsch', target: 'vertrieb' }),
+ { status: 400 },
+ )
+ const result = s.deleteQueue(admin, 'support', { confirm: q.name, target: 'vertrieb' })
+ assert(result.moved > 0)
+ assert.throws(() => s.queue('support'), { status: 404 })
+ assert(!s.bootstrap(admin).queues.some((q) => q.id === 'support'))
+ assert.equal(s.get('SELECT count(*) n FROM tickets WHERE queue_id=?', 'support').n, 0)
+ const moved = s.detail(admin, ticket)
+ assert.equal(moved.queue_id, 'vertrieb')
+ assert.equal(moved.due_at, before.due_at)
+ assert.equal(moved.messages[0].attachments[0].name, 'vertrag.pdf')
+ assert(moved.activities.some((a) => a.action === 'Queue gewechselt'))
+ assert(s.logs(admin).some((a) => a.action === 'Queue gelöscht'))
+ assert(!s.can(agent, 'support', 'view'))
+ assert.throws(() => s.ingest(mail('support')), { status: 400 })
+ const replacement = s.saveQueue(admin, null, { name: 'Neuer Support', addresses: q.addresses })
+ assert(replacement.id)
+ } finally {
+ db.close()
+ }
+})
+test('Queue deletion blocks active inbound processing and invalid target mappings without partial changes', () => {
+ const { db, s, admin } = setup()
+ try {
+ const empty = s.saveQueue(admin, null, {
+ name: 'Leer',
+ addresses: [{ email: 'leer@example.com', incoming: true, outgoing: true, default: true }],
+ })
+ configureImap(s, admin, empty.id)
+ assert.throws(() => s.deleteQueue(admin, empty.id, { confirm: 'Leer' }), { status: 409 })
+ const c = readMailSettings(s, admin, empty.id)
+ saveMailSettings(s, admin, empty.id, { ...c, imap: { ...c.imap, enabled: false } })
+ s.deleteQueue(admin, empty.id, { confirm: 'Leer' })
+ assert.throws(() => s.queue(empty.id), { status: 404 })
+ const before = s.tickets(admin).filter((t) => t.queue_id === 'support').length
+ assert.throws(
+ () =>
+ s.deleteQueue(admin, 'support', {
+ confirm: 'Support',
+ target: 'vertrieb',
+ mapping: { [status(s, 'support', 'new')]: 'not-a-target-status' },
+ }),
+ { status: 400 },
+ )
+ assert.equal(s.tickets(admin).filter((t) => t.queue_id === 'support').length, before)
+ assert(s.queue('support'))
+ } finally {
+ db.close()
+ }
+})
+test('HTML signatures are sanitised, snapshotted and sent with text alternatives and durable attachments', async () => {
+ const { db, s, admin } = setup()
+ try {
+ const q = s.queue('support')
+ s.saveSignatures(admin, q.id, [
+ {
+ id: q.signatures[0].id,
+ name: 'HTML',
+ default: true,
+ format: 'html',
+ body: 'Ihr Support-Team Website
X ',
+ },
+ ])
+ const signature = s.queue('support').signatures[0]
+ assert(!signature.body.includes('',
+ signature_id: signature.id,
+ attachments: [
+ {
+ name: 'bericht.pdf',
+ mime: 'application/pdf',
+ content: Buffer.from('PDF-BINARY-TEST').toString('base64'),
+ },
+ ],
+ }
+ const first = s.reply(admin, ticket, data)
+ assert.equal(s.reply(admin, ticket, data).id, first.id)
+ const detail = s.detail(admin, ticket),
+ reply = detail.messages.find((m) => m.id === first.id)
+ assert(reply.html.includes('<script>'))
+ assert(reply.html.includes('Ihr Support-Team '))
+ assert.equal(reply.body.match(/Ihr Support-Team/g).length, 1)
+ assert.equal(reply.attachments.length, 1)
+ let captured
+ const mimeTransport = nodemailer.createTransport({
+ streamTransport: true,
+ buffer: true,
+ newline: 'windows',
+ })
+ const config = readMailSettings(s, admin, 'support')
+ saveMailSettings(s, admin, 'support', {
+ ...config,
+ smtp: { mode: 'smtp', host: 'smtp.invalid', port: 465, security: 'tls', username: 'user' },
+ password: 'smtp-secret',
+ })
+ const worker = new Worker(s, {
+ transportFactory: () => ({
+ async sendMail(payload) {
+ captured = await mimeTransport.sendMail(payload)
+ },
+ close() {},
+ }),
+ })
+ await worker.tick()
+ await worker.tick()
+ const parsed = await simpleParser(captured.message)
+ assert(parsed.html.includes('Ihr Support-Team'))
+ assert(parsed.text.includes('Ihr Support-Team'))
+ assert.equal(parsed.attachments[0].filename, 'bericht.pdf')
+ assert.equal(parsed.attachments[0].content.toString(), 'PDF-BINARY-TEST')
+ const incoming = new InboundWorker(s, {
+ clientFactory: fakeImap(new Map([[99, captured.message]])),
+ })
+ configureImap(s, admin, 'support')
+ const rowsBefore = s.all('SELECT * FROM attachments').length
+ assert((await incoming.run('support')).imported === 0)
+ assert.equal(s.all('SELECT * FROM attachments').length, rowsBefore)
+ } finally {
+ db.close()
+ }
+})
+test('Received MIME attachments are persisted with content and queue-checked download access', async () => {
+ const { db, s, admin } = setup()
+ try {
+ configureImap(s, admin, 'support')
+ const transport = nodemailer.createTransport({ streamTransport: true, buffer: true })
+ const message = await transport.sendMail({
+ from: 'customer@example.com',
+ to: 'support@syncova.local',
+ subject: 'Mit Anhang',
+ text: 'Anbei die Unterlagen',
+ messageId: '',
+ attachments: [
+ {
+ filename: 'rechnung.txt',
+ content: Buffer.from('INVOICE-CONTENT'),
+ contentType: 'text/plain',
+ },
+ ],
+ })
+ const worker = new InboundWorker(s, {
+ clientFactory: fakeImap(new Map([[1, message.message]])),
+ })
+ assert.equal((await worker.run('support')).imported, 1)
+ const row = s.get(
+ 'SELECT * FROM messages WHERE message_id=?',
+ '',
+ )
+ const detail = s.detail(admin, row.ticket_id)
+ assert.equal(detail.messages[0].attachments[0].name, 'rechnung.txt')
+ assert.equal(
+ s.get('SELECT content FROM attachments WHERE message_id=?', row.id).content.toString(),
+ 'INVOICE-CONTENT',
+ )
+ assert.equal((await worker.run('support')).imported, 0)
+ } finally {
+ db.close()
+ }
+})
+test('Attachment limits and internal note isolation are enforced server-side', async () => {
+ const { db, s, admin } = setup()
+ try {
+ const ticket = s.ingest(mail()).ticket_id
+ assert.throws(
+ () =>
+ s.reply(admin, ticket, {
+ key: uid(),
+ from: 'support@syncova.local',
+ body: 'x',
+ attachments: [{ name: 'bad', content: '%%%=' }],
+ }),
+ { status: 400 },
+ )
+ assert.throws(
+ () =>
+ s.reply(admin, ticket, {
+ key: uid(),
+ from: 'support@syncova.local',
+ body: 'x',
+ attachments: Array.from({ length: 21 }, () => ({ name: 'x', content: 'YQ==' })),
+ }),
+ { status: 400 },
+ )
+ s.reply(admin, ticket, {
+ key: uid(),
+ kind: 'note',
+ body: 'Intern',
+ attachments: [{ name: 'intern.txt', content: 'YQ==' }],
+ })
+ assert.equal(s.all('SELECT * FROM outbox').length, 0)
+ const msg = s.reply(admin, ticket, {
+ key: uid(),
+ from: 'support@syncova.local',
+ body: '',
+ attachments: [{ name: 'datei.txt', content: 'YQ==' }],
+ })
+ await new Worker(s).tick()
+ assert.equal(s.get('SELECT count(*) n FROM attachments WHERE message_id=?', msg.id).n, 1)
+ assert.equal(
+ JSON.parse(s.get('SELECT payload FROM dev_mail').payload).attachments[0].content,
+ 'YQ==',
+ )
+ assert(
+ !safeHtml(
+ ' ',
+ ).includes('iframe'),
+ )
+ } finally {
+ db.close()
+ }
+})
+test('Manual tickets enforce queue permissions, are idempotent, audited and do not send customer acknowledgements', () => {
+ const { db, s, admin, agent, reader } = setup()
+ try {
+ const c = readMailSettings(s, admin, 'support')
+ saveMailSettings(s, admin, 'support', {
+ ...c,
+ acknowledgement: { ...c.acknowledgement, enabled: true },
+ })
+ const data = {
+ queue_id: 'support',
+ customer: 'caller@example.com',
+ customer_name: 'Anrufer',
+ subject: 'Telefonische Anfrage',
+ body: 'Bitte um Rückruf',
+ key: uid(),
+ }
+ assert.throws(() => s.createTicket(reader, data), { status: 403 })
+ assert.throws(() => s.createTicket(agent, { ...data, queue_id: 'vertrieb' }), { status: 403 })
+ const ticket = s.createTicket(agent, data)
+ assert.equal(s.createTicket(agent, data).id, ticket.id)
+ assert.equal(ticket.messages[0].kind, 'manual')
+ assert.equal(ticket.customer_name, 'Anrufer')
+ assert(ticket.activities.some((a) => a.action === 'Ticket manuell erstellt'))
+ assert.equal(s.all('SELECT * FROM outbox').length, 0)
+ assert.equal(s.notifications(admin).filter((n) => n.ticket_id === ticket.id).length, 1)
+ } finally {
+ db.close()
+ }
+})
+test('IMAP secrets, TLS, configuration validation and atomic mail settings', () => {
+ const { db, s, admin, reader } = setup()
+ try {
+ assert.throws(() => configureImap(s, reader, 'support'), { status: 403 })
+ const c = configureImap(s, admin, 'support')
+ const row = s.get('SELECT * FROM queue_inbound WHERE queue_id=?', 'support')
+ assert(!JSON.stringify(row).includes('imap-secret-support'))
+ assert(!JSON.stringify(c).includes('imap-secret-support'))
+ assert(!JSON.stringify(s.logs(admin)).includes('imap-secret-support'))
+ assert.equal(imapOptions(s, 'support').auth.pass, 'imap-secret-support')
+ assert.equal(imapOptions(s, 'support').secure, true)
+ saveMailSettings(s, admin, 'support', {
+ ...c,
+ imap: { ...c.imap, security: 'starttls', port: 143 },
+ imapPassword: '',
+ })
+ assert.equal(imapOptions(s, 'support').doSTARTTLS, true)
+ assert.equal(imapOptions(s, 'support').secure, false)
+ assert.throws(
+ () =>
+ saveMailSettings(s, admin, 'support', {
+ ...c,
+ imap: { ...c.imap, host: 'other.invalid' },
+ imapPassword: '',
+ }),
+ { status: 400 },
+ )
+ assert.throws(
+ () =>
+ saveMailSettings(s, admin, 'support', {
+ ...c,
+ smtp: { ...c.smtp, host: 'changed.invalid' },
+ imap: { ...c.imap, schedule: { ...c.imap.schedule, mode: 'cron', cron: 'not cron' } },
+ }),
+ { status: 400 },
+ )
+ assert.equal(readMailSettings(s, admin, 'support').smtp.host, c.smtp.host)
+ assert.equal(readMailSettings(s, admin, 'vertrieb').imap.enabled, false)
+ } finally {
+ db.close()
+ }
+})
+test('Cron expressions and IANA zones produce deterministic next fetches', () => {
+ const config = {
+ enabled: true,
+ schedule: { mode: 'cron', cron: '0 8 * * 1-5', timezone: 'Europe/Berlin' },
+ }
+ assert.equal(nextFetch(config, new Date('2026-11-03T06:30:00Z')), '2026-11-03T07:00:00.000Z')
+ assert.equal(nextFetch(config, new Date('2026-07-03T05:30:00Z')), '2026-07-03T06:00:00.000Z')
+ assert.equal(nextFetch({ ...config, enabled: false }), null)
+ assert.equal(
+ nextFetch(
+ { enabled: true, schedule: { mode: 'interval', seconds: 30 } },
+ new Date('2026-11-03T06:30:00Z'),
+ ),
+ '2026-11-03T06:30:30.000Z',
+ )
+})
+test('Queue IMAP imports only its recipients, leaves unrelated mail unread and persists UID deduplication', async () => {
+ const { db, s, admin } = setup()
+ try {
+ configureImap(s, admin, 'support')
+ configureImap(s, admin, 'vertrieb')
+ const messages = new Map([
+ [1, mime(1)],
+ [2, mime(2, 'vertrieb@syncova.local')],
+ ]),
+ record = []
+ const worker = new InboundWorker(s, { clientFactory: fakeImap(messages, record) })
+ const a = await worker.run('support')
+ assert.equal(a.imported, 1)
+ assert(!record.some((r) => r.seen === 2))
+ await worker.run('support')
+ assert(!record.some((r) => Array.isArray(r.seen) && r.seen.includes(2)))
+ const b = await worker.run('vertrieb')
+ assert.equal(b.imported, 1)
+ const count = s.all('SELECT * FROM messages').length
+ const restarted = new InboundWorker(s, { clientFactory: fakeImap(messages) })
+ assert.equal((await restarted.run('support')).imported, 0)
+ assert.equal(s.all('SELECT * FROM messages').length, count)
+ assert(s.get('SELECT last_success FROM queue_inbound WHERE queue_id=?', 'support').last_success)
+ assert.equal(record[0].connect.auth.user, 'support')
+ } finally {
+ db.close()
+ }
+})
+test('Shared mailboxes make progress past unrelated messages without changing their read flags', async () => {
+ const { db, s, admin } = setup()
+ try {
+ configureImap(s, admin, 'support')
+ const messages = new Map()
+ for (let i = 1; i <= 101; i++) messages.set(i, mime(i, 'vertrieb@syncova.local'))
+ messages.set(102, mime(102))
+ const record = [],
+ worker = new InboundWorker(s, { clientFactory: fakeImap(messages, record) })
+ assert.equal((await worker.run('support')).imported, 0)
+ assert.equal((await worker.run('support')).imported, 1)
+ assert(record.filter((r) => r.seen !== undefined).every((r) => r.seen === 102))
+ } finally {
+ db.close()
+ }
+})
+test('Due fetches survive restart, advance independently per queue, and disabled schedules stay quiet', async () => {
+ const dir = mkdtempSync(path.join(os.tmpdir(), 'syncova-imap-'))
+ let db
+ try {
+ let c = setup(path.join(dir, 'db.sqlite'))
+ db = c.db
+ configureImap(c.s, c.admin, 'support')
+ c.s.run(
+ 'UPDATE queue_inbound SET next_run=? WHERE queue_id=?',
+ '2020-01-01T00:00:00Z',
+ 'support',
+ )
+ db.close()
+ db = openDb(path.join(dir, 'db.sqlite'))
+ const s = new Service(db),
+ record = [],
+ clock = () => new Date('2030-01-01T00:00:00Z'),
+ worker = new InboundWorker(s, { clientFactory: fakeImap(new Map(), record), clock })
+ await worker.due()
+ await worker.due()
+ assert.equal(record.filter((x) => x.connect).length, 1)
+ assert.equal(
+ s.get('SELECT next_run FROM queue_inbound WHERE queue_id=?', 'support').next_run,
+ '2030-01-01T00:00:30.000Z',
+ )
+ const settings = readMailSettings(s, s.user('admin'), 'support')
+ saveMailSettings(s, s.user('admin'), 'support', {
+ ...settings,
+ imap: { ...settings.imap, enabled: false },
+ })
+ await worker.due()
+ assert.equal(record.filter((x) => x.connect).length, 1)
+ } finally {
+ db?.close()
+ rmSync(dir, { recursive: true, force: true })
+ }
+})
+test('Concurrent fetches are rejected and config changes during network I/O prevent stale imports', async () => {
+ const { db, s, admin } = setup()
+ try {
+ configureImap(s, admin, 'support')
+ let release
+ const gate = new Promise((r) => (release = r))
+ const worker = new InboundWorker(s, {
+ clientFactory: fakeImap(new Map([[1, mime(1)]]), [], {
+ connect: () => gate,
+ source: () => {
+ const c = readMailSettings(s, admin, 'support')
+ saveMailSettings(s, admin, 'support', { ...c, imap: { ...c.imap, enabled: false } })
+ },
+ }),
+ })
+ const first = worker.run('support')
+ await assert.rejects(worker.run('support'), { status: 409 })
+ release()
+ const result = await first
+ assert.equal(result.imported, 0)
+ assert.equal(s.all("SELECT * FROM messages WHERE message_id=''").length, 0)
+ assert.equal(
+ s.get('SELECT next_run FROM queue_inbound WHERE queue_id=?', 'support').next_run,
+ null,
+ )
+ } finally {
+ db.close()
+ }
+})
+test('Queue SMTP secrets are encrypted, redacted, preserved on blank updates and permission checked', () => {
+ const { db, s, admin, agent, reader } = setup()
+ try {
+ assert.throws(() => readMailSettings(s, reader, 'support'), { status: 403 })
+ const config = readMailSettings(s, admin, 'support')
+ const data = {
+ ...config,
+ smtp: {
+ mode: 'smtp',
+ host: 'smtp.support.invalid',
+ port: 465,
+ security: 'tls',
+ username: 'support-user',
+ },
+ password: 'super-secret-credential',
+ }
+ assert.throws(() => saveMailSettings(s, agent, 'support', data), { status: 403 })
+ const result = saveMailSettings(s, admin, 'support', data)
+ assert.equal(result.passwordSet, true)
+ assert(!JSON.stringify(result).includes(data.password))
+ const row = s.get('SELECT * FROM queue_mail WHERE queue_id=?', 'support')
+ assert(!JSON.stringify(row).includes(data.password))
+ assert(!JSON.stringify(s.all('SELECT * FROM audits')).includes(data.password))
+ assert.equal(readMailSettings(s, admin, 'vertrieb').smtp.mode, 'development')
+ saveMailSettings(s, admin, 'support', { ...result, password: '' })
+ assert.throws(
+ () =>
+ saveMailSettings(s, admin, 'support', {
+ ...result,
+ smtp: { ...result.smtp, host: 'smtp.other.invalid' },
+ password: '',
+ }),
+ { status: 400 },
+ )
+ let options
+ smtpTransport(s, 'support', (o) => {
+ options = o
+ return {}
+ })
+ assert.equal(options.auth.pass, data.password)
+ assert.equal(options.secure, true)
+ assert.throws(() => saveMailSettings(s, admin, 'support', { ...result, clearPassword: true }), {
+ status: 400,
+ })
+ assert.equal(
+ s.get('SELECT password FROM queue_mail WHERE queue_id=?', 'support').password,
+ row.password,
+ )
+ } finally {
+ db.close()
+ }
+})
+test('SMTP transport routing uses each ticket queue including queued automatic acknowledgements', async () => {
+ const { db, s, admin } = setup()
+ try {
+ for (const q of ['support', 'vertrieb']) {
+ const c = readMailSettings(s, admin, q)
+ saveMailSettings(s, admin, q, {
+ ...c,
+ smtp: {
+ mode: 'smtp',
+ host: `smtp.${q}.invalid`,
+ port: q === 'support' ? 465 : 587,
+ security: q === 'support' ? 'tls' : 'starttls',
+ username: q,
+ },
+ password: q + '-password',
+ acknowledgement: { ...c.acknowledgement, enabled: true },
+ })
+ s.ingest(mail(q))
+ }
+ const sent = []
+ const worker = new Worker(s, {
+ transportFactory: (options) => ({
+ sendMail: async (payload) => {
+ sent.push({ options, payload })
+ },
+ close() {},
+ }),
+ })
+ await worker.tick()
+ await worker.tick()
+ assert.equal(sent.length, 2)
+ for (const { options, payload } of sent) {
+ const q = options.auth.user
+ assert.equal(options.host, `smtp.${q}.invalid`)
+ assert.equal(options.auth.pass, q + '-password')
+ assert.equal(payload.from, `${q}@syncova.local`)
+ assert.equal(payload.headers['Auto-Submitted'], 'auto-generated')
+ assert.equal(options.secure, q === 'support')
+ assert.equal(options.requireTLS, q === 'vertrieb')
+ }
+ assert.equal(s.all('SELECT * FROM dev_mail').length, 0)
+ assert(s.all('SELECT state FROM outbox').every((j) => j.state === 'sent'))
+ } finally {
+ db.close()
+ }
+})
+test('Automatic acknowledgements are opt-in, queue-local, transactional, threaded, signed and exactly once per new ticket', async () => {
+ const { db, s, admin } = setup()
+ try {
+ s.ingest(mail())
+ assert.equal(s.all('SELECT * FROM outbox').length, 0)
+ const config = readMailSettings(s, admin, 'support')
+ saveMailSettings(s, admin, 'support', {
+ ...config,
+ acknowledgement: {
+ enabled: true,
+ subject: 'Eingang {ticketnummer}: {betreff}',
+ body: 'Hallo {kundenname}, Ihre Anfrage ist bei {queue} eingegangen.',
+ includeSignature: true,
+ },
+ })
+ const incoming = mail('support', { name: 'Anna Beispiel' }),
+ id = s.ingest(incoming).ticket_id
+ s.ingest(incoming)
+ assert.equal(s.all('SELECT * FROM outbox').length, 1)
+ const auto = s.detail(admin, id).messages.find((m) => m.kind === 'outgoing')
+ assert(auto.body.includes('Anna Beispiel'))
+ assert(auto.body.includes('Support'))
+ assert(auto.body.endsWith(s.queue('support').signatures[0].body))
+ s.ingest(mail('support', { references: [auto.message_id], subject: 'Neuer Betreff' }))
+ assert.equal(s.detail(admin, id).messages.length, 3)
+ assert.equal(s.all('SELECT * FROM outbox').length, 1)
+ s.ingest(mail('vertrieb'))
+ assert.equal(s.all('SELECT * FROM outbox').length, 1)
+ assert(s.ingest(mail('support', { autoSubmitted: 'auto-generated' })).ignored)
+ assert(s.ingest(mail('support', { precedence: 'bulk' })).ignored)
+ const worker = new Worker(s)
+ await worker.tick()
+ await worker.tick()
+ assert.equal(s.all('SELECT * FROM dev_mail').length, 1)
+ assert(s.detail(admin, id).activities.some((a) => a.actor === 'Eingangsbestätigung'))
+ assert.throws(
+ () =>
+ saveMailSettings(s, admin, 'support', {
+ ...config,
+ acknowledgement: { ...config.acknowledgement, body: '{unknown}' },
+ }),
+ { status: 400 },
+ )
+ } finally {
+ db.close()
+ }
+})
+test('IANA local times resolve correct winter/summer offsets and reject DST gaps', () => {
+ assert.equal(scheduledTime('2026-11-05T14:30', 'Europe/Berlin'), '2026-11-05T13:30:00.000Z')
+ assert.equal(scheduledTime('2026-07-05T14:30', 'Europe/Berlin'), '2026-07-05T12:30:00.000Z')
+ assert.throws(() => scheduledTime('2026-03-29T02:30', 'Europe/Berlin'))
+ assert.throws(() => scheduledTime('2026-11-05T14:30', 'invalid/zone'))
+})
+test('Queue isolation covers list, detail, changes, notifications, attachments and logs', () => {
+ const { db, s, agent, reader, admin } = setup()
+ try {
+ const id = s.ingest(
+ mail('vertrieb', {
+ attachments: [
+ {
+ name: 'a.html',
+ mime: 'text/html',
+ content: Buffer.from('').toString('base64'),
+ },
+ ],
+ }),
+ ).ticket_id
+ assert(!s.tickets(agent).some((t) => t.id === id))
+ assert.throws(() => s.detail(agent, id), { status: 403 })
+ assert.throws(
+ () => s.reply(agent, id, { body: 'x', from: 'vertrieb@syncova.local', key: uid() }),
+ { status: 403 },
+ )
+ assert(!s.notifications(agent).some((n) => n.ticket_id === id))
+ assert.throws(() => s.updateTicket(agent, s.tickets(agent)[0].id, { queue_id: 'vertrieb' }), {
+ status: 403,
+ })
+ assert.throws(() => s.reply(reader, s.tickets(reader)[0].id, { body: 'x', key: uid() }), {
+ status: 403,
+ })
+ assert.throws(() => s.saveQueue(agent, 'support', s.queue('support')), { status: 403 })
+ assert.equal(s.detail(admin, id).messages[0].attachments[0].mime, 'text/html')
+ } finally {
+ db.close()
+ }
+})
+test('Two queues, multiple addresses, references, changed subjects and duplicate inbound messages', () => {
+ const { db, s, admin } = setup()
+ try {
+ let a = mail('support', { to: ['support.team@syncova.local'] })
+ const id = s.ingest(a).ticket_id
+ const sales = s.ingest(mail('vertrieb')).ticket_id
+ assert.notEqual(id, sales)
+ assert(s.ingest(a).duplicate)
+ const reply = mail('support', { subject: 'Völlig anderer Betreff', references: [a.messageId] })
+ assert.equal(s.ingest(reply).ticket_id, id)
+ assert.notEqual(s.ingest(mail('support', { subject: a.subject })).ticket_id, id)
+ assert.notEqual(s.ingest(mail('vertrieb', { references: [a.messageId] })).ticket_id, id)
+ assert.notEqual(
+ s.ingest(mail('support', { from: 'other@example.com', references: [a.messageId] })).ticket_id,
+ id,
+ )
+ assert.equal(s.detail(admin, id).messages.length, 2)
+ assert(s.ingest(mail('support', { autoSubmitted: 'auto-replied' })).ignored)
+ assert(s.ingest(mail('support', { from: 'vertrieb@syncova.local' })).ignored)
+ } finally {
+ db.close()
+ }
+})
+test('Waiting for customer reopens only on a genuine referenced customer reply', () => {
+ const { db, s, admin } = setup()
+ try {
+ const m = mail()
+ const id = s.ingest(m).ticket_id
+ s.updateTicket(admin, id, { status_id: status(s, 'support', 'wait_customer') })
+ s.ingest(mail('support', { references: [m.messageId] }))
+ assert.equal(s.detail(admin, id).status_id, status(s, 'support', 'open'))
+ assert(s.detail(admin, id).activities.some((a) => a.actor === 'Kundenantwort'))
+ } finally {
+ db.close()
+ }
+})
+test('Persisted deadlines survive restart and obsolete deadlines cannot fire', () => {
+ const dir = mkdtempSync(path.join(os.tmpdir(), 'syncova-test-'))
+ let db
+ try {
+ let ctx = setup(path.join(dir, 'test.db'))
+ db = ctx.db
+ const id = ctx.s.ingest(mail()).ticket_id
+ const id2 = ctx.s.ingest(mail()).ticket_id
+ for (const i of [id, id2])
+ ctx.s.updateTicket(ctx.admin, i, {
+ status_id: status(ctx.s, 'support', 'wait_date'),
+ due_at: '2020-01-01T12:00:00+01:00',
+ timezone: 'Europe/Berlin',
+ })
+ ctx.s.updateTicket(ctx.admin, id2, { status_id: status(ctx.s, 'support', 'active') })
+ db.close()
+ db = openDb(path.join(dir, 'test.db'))
+ const s = new Service(db)
+ assert.equal(s.due(), 1)
+ assert.equal(s.due(), 0)
+ assert.equal(s.detail(s.user('admin'), id).due_at, null)
+ assert.equal(s.detail(s.user('admin'), id2).status_id, status(s, 'support', 'active'))
+ assert.equal(
+ s.notifications(s.user('admin')).filter((n) => n.ticket_id === id && n.event === 'reopened')
+ .length,
+ 1,
+ )
+ } finally {
+ db?.close()
+ rmSync(dir, { recursive: true, force: true })
+ }
+})
+test('Goods receipt is permission checked and audited; repeated confirmation is rejected', () => {
+ const { db, s, admin, reader } = setup()
+ try {
+ const id = s.ingest(mail()).ticket_id
+ s.updateTicket(admin, id, { status_id: status(s, 'support', 'wait_goods') })
+ assert.throws(() => s.goods(reader, id), { status: 403 })
+ s.goods(admin, id)
+ assert.equal(s.detail(admin, id).status_id, status(s, 'support', 'open'))
+ assert(s.detail(admin, id).activities.some((a) => a.action === 'Wareneingang bestätigt'))
+ assert.throws(() => s.goods(admin, id), { status: 409 })
+ } finally {
+ db.close()
+ }
+})
+test('Queue-local status rename, mandatory open target, replacement mapping, rollback', () => {
+ const { db, s, admin } = setup()
+ try {
+ const q = s.queue('support'),
+ other = s.queue('vertrieb')
+ const id = s.ingest(mail()).ticket_id
+ q.statuses.find((x) => x.behavior === 'new').name = 'Eingang'
+ s.saveStatuses(admin, q.id, q.statuses)
+ assert.deepEqual(s.queue('vertrieb').statuses, other.statuses)
+ assert.equal(s.detail(admin, id).status_id, status(s, 'support', 'new'))
+ const old = status(s, 'support', 'new')
+ q.statuses.find((x) => x.id === old).active = 0
+ assert.throws(() => s.saveStatuses(admin, q.id, q.statuses), { status: 409 })
+ assert.equal(s.queue('support').statuses.find((x) => x.id === old).active, 1)
+ s.saveStatuses(admin, q.id, q.statuses, { [old]: status(s, 'support', 'open') })
+ assert.equal(s.detail(admin, id).status_id, status(s, 'support', 'open'))
+ const noOpen = s
+ .queue('support')
+ .statuses.map((x) => ({ ...x, active: x.behavior === 'open' ? 0 : x.active }))
+ assert.throws(() => s.saveStatuses(admin, q.id, noOpen), { status: 400 })
+ } finally {
+ db.close()
+ }
+})
+test('Allowed sender only, stable reply key, internal notes never enter outbox, exact-once dev delivery', async () => {
+ const { db, s, admin } = setup()
+ try {
+ const id = s.ingest(mail()).ticket_id
+ assert.throws(
+ () =>
+ s.reply(admin, id, {
+ kind: 'outgoing',
+ body: 'test',
+ from: 'vertrieb@syncova.local',
+ key: uid(),
+ }),
+ { status: 400 },
+ )
+ const data = {
+ kind: 'outgoing',
+ body: 'Hallo\n\nFreundliche Grüße\nIhr Support-Team\nSyncova',
+ from: 'support@syncova.local',
+ key: uid(),
+ }
+ const first = s.reply(admin, id, data)
+ assert.equal(s.reply(admin, id, data).id, first.id)
+ s.reply(admin, id, { kind: 'note', body: 'Intern', key: uid() })
+ assert.equal(s.all('SELECT * FROM outbox').length, 1)
+ const worker = new Worker(s)
+ await worker.tick()
+ await worker.tick()
+ assert.equal(s.all('SELECT * FROM dev_mail').length, 1)
+ assert.equal(s.detail(admin, id).messages.find((m) => m.id === first.id).delivery, 'sent')
+ assert(s.detail(admin, id).activities.some((a) => a.action === 'E-Mail versendet'))
+ assert.throws(() => s.run('DELETE FROM audits'), /immutable/)
+ } finally {
+ db.close()
+ }
+})
+test('Notification union, idempotency, revocation at creation, display and delivery', async () => {
+ const { db, s, admin, agent } = setup()
+ try {
+ s.run(
+ 'UPDATE users SET prefs=? WHERE id=?',
+ JSON.stringify({ new: { bell: true, email: true } }),
+ agent.id,
+ )
+ const m = mail()
+ const id = s.ingest(m).ticket_id
+ s.ingest(m)
+ assert.equal(s.notifications(agent).filter((n) => n.ticket_id === id).length, 1)
+ assert.equal(s.all('SELECT * FROM outbox').length, 1)
+ s.run('INSERT INTO memberships VALUES(?,?)', agent.id, 'reader')
+ assert(s.can(agent, 'support', 'reply'))
+ s.run('DELETE FROM memberships WHERE user_id=?', agent.id)
+ assert.equal(s.notifications(agent).length, 0)
+ await new Worker(s).tick()
+ assert.equal(s.all('SELECT * FROM dev_mail').length, 0)
+ assert.equal(s.get('SELECT state FROM outbox').state, 'cancelled')
+ } finally {
+ db.close()
+ }
+})
+test('Queue moves map behavior, clear ownership, reject stale writes and blocked sender configuration', () => {
+ const { db, s, admin } = setup()
+ try {
+ const id = s.ingest(mail()).ticket_id
+ s.updateTicket(admin, id, { status_id: status(s, 'support', 'active'), assignee: 'admin' })
+ const t = s.detail(admin, id)
+ s.updateTicket(admin, id, { queue_id: 'vertrieb', revision: t.revision })
+ const moved = s.detail(admin, id)
+ assert.equal(moved.status_id, status(s, 'vertrieb', 'active'))
+ assert.equal(moved.assignee, null)
+ assert.throws(() => s.updateTicket(admin, id, { revision: t.revision, assignee: 'admin' }), {
+ status: 409,
+ })
+ assert.throws(() => s.updateTicket(admin, id, { assignee: 'leon' }), { status: 400 })
+ assert.throws(
+ () =>
+ s.saveQueue(admin, 'vertrieb', {
+ ...s.queue('vertrieb'),
+ addresses: [
+ { email: 'support@syncova.local', incoming: true, outgoing: true, default: true },
+ ],
+ }),
+ { status: 409 },
+ )
+ } finally {
+ db.close()
+ }
+})
+test('HTTP: identity deletion requires administration, confirmation and same-origin access; deleted sessions fail immediately', async () => {
+ const { db, s, admin, agent, reader } = setup(),
+ { app } = createApp(db)
+ const server = app.listen(0, '127.0.0.1')
+ await new Promise((r) => server.once('listening', r))
+ const base = `http://127.0.0.1:${server.address().port}`
+ const call = (url, method = 'GET', body, cookie = '', extra = {}) =>
+ fetch(base + '/api' + url, {
+ method,
+ headers: { cookie, 'Content-Type': 'application/json', ...extra },
+ ...(body === undefined ? {} : { body: JSON.stringify(body) }),
+ })
+ try {
+ const login = async (email) => {
+ const r = await call('/login', 'POST', { email, password: 'Syncova-Demo-2026!' })
+ assert.equal(r.status, 200)
+ return r.headers.get('set-cookie').split(';')[0]
+ }
+ const adminCookie = await login(admin.email),
+ agentCookie = await login(agent.email)
+ assert.equal((await call('/users/leon', 'DELETE', { confirm: agent.email })).status, 401)
+ assert.equal(
+ (await call('/users/mira', 'DELETE', { confirm: reader.email }, agentCookie)).status,
+ 403,
+ )
+ assert.equal((await call('/groups/agent/deletion', 'GET', undefined, agentCookie)).status, 403)
+ assert.equal(
+ (await call('/groups/agent', 'DELETE', { confirm: 'Bearbeiter' }, agentCookie)).status,
+ 403,
+ )
+ assert.equal(
+ (await call('/users/admin', 'DELETE', { confirm: admin.email }, adminCookie)).status,
+ 409,
+ )
+ assert.equal(
+ (await call('/groups/admins', 'DELETE', { confirm: 'Administrator' }, adminCookie)).status,
+ 409,
+ )
+ assert.equal(
+ (
+ await call('/users/mira', 'DELETE', { confirm: reader.email }, adminCookie, {
+ Origin: 'https://evil.example',
+ })
+ ).status,
+ 403,
+ )
+ assert.equal(
+ (await call('/groups/reader', 'DELETE', { confirm: 'falsch' }, adminCookie)).status,
+ 400,
+ )
+ const groupPreview = await call('/groups/reader/deletion', 'GET', undefined, adminCookie)
+ assert.equal(groupPreview.status, 200)
+ assert.equal((await groupPreview.json()).members, 1)
+ assert.equal(
+ (await call('/groups/reader', 'DELETE', { confirm: 'Leser' }, adminCookie)).status,
+ 200,
+ )
+ assert.equal((await call('/groups/reader/deletion', 'GET', undefined, adminCookie)).status, 404)
+ assert.equal((await call('/users/leon/deletion', 'GET', undefined, adminCookie)).status, 200)
+ assert.equal(
+ (await call('/users/leon', 'DELETE', { confirm: agent.email }, adminCookie)).status,
+ 200,
+ )
+ assert.equal((await call('/bootstrap', 'GET', undefined, agentCookie)).status, 401)
+ assert.equal(
+ (await call('/login', 'POST', { email: agent.email, password: 'Syncova-Demo-2026!' })).status,
+ 401,
+ )
+ assert.equal((await call('/bootstrap', 'GET', undefined, adminCookie)).status, 200)
+ const data = await (await call('/admin', 'GET', undefined, adminCookie)).json()
+ assert(!data.users.some((u) => u.id === agent.id))
+ assert(!data.groups.some((g) => g.id === 'reader'))
+ } finally {
+ server.closeAllConnections()
+ await new Promise((r) => server.close(r))
+ db.close()
+ }
+})
+test('HTTP: sessions, origin guard, unauthorized direct access and attachment isolation', async () => {
+ const { db, s } = setup()
+ const { app } = createApp(db)
+ app.locals.worker = new Worker(s)
+ const server = app.listen(0, '127.0.0.1')
+ await new Promise((r) => server.once('listening', r))
+ const base = `http://127.0.0.1:${server.address().port}`
+ try {
+ assert.equal((await fetch(base + '/api/tickets')).status, 401)
+ const r = await fetch(base + '/api/login', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ email: 'leon@syncova.local', password: 'Syncova-Demo-2026!' }),
+ })
+ assert.equal(r.status, 200)
+ const cookie = r.headers.get('set-cookie').split(';')[0]
+ const manual = {
+ queue_id: 'support',
+ customer: 'phone@example.com',
+ customer_name: 'Telefonkontakt',
+ subject: 'Manuell über HTTP',
+ body: 'Bitte zurückrufen',
+ key: uid(),
+ }
+ const created = await fetch(base + '/api/tickets', {
+ method: 'POST',
+ headers: { cookie, 'Content-Type': 'application/json' },
+ body: JSON.stringify(manual),
+ })
+ assert.equal(created.status, 200)
+ const manualTicket = await created.json()
+ assert.equal(manualTicket.messages[0].kind, 'manual')
+ const signatures = s.queue('support').signatures
+ s.saveSignatures(s.user('admin'), 'support', [
+ { ...signatures[0], body: '{benutzer.name} / {ticket.nummer} / {kunde.name}' },
+ ])
+ const previewResponse = await fetch(
+ `${base}/api/tickets/${manualTicket.id}/signature-preview`,
+ {
+ method: 'POST',
+ headers: { cookie, 'Content-Type': 'application/json' },
+ body: JSON.stringify({
+ signature_id: signatures[0].id,
+ from: 'support@syncova.local',
+ user_id: 'admin',
+ }),
+ },
+ )
+ assert.equal(previewResponse.status, 200)
+ const preview = await previewResponse.json()
+ assert.equal(
+ preview.text,
+ `Leon Fischer / SYN-${String(manualTicket.id).padStart(5, '0')} / Telefonkontakt`,
+ )
+ const sent = await fetch(`${base}/api/tickets/${manualTicket.id}/messages`, {
+ method: 'POST',
+ headers: { cookie, 'Content-Type': 'application/json' },
+ body: JSON.stringify({
+ key: uid(),
+ body: 'Antwort',
+ from: 'support@syncova.local',
+ signature_id: signatures[0].id,
+ }),
+ })
+ assert.equal(sent.status, 200)
+ assert(
+ s
+ .get("SELECT body FROM messages WHERE ticket_id=? AND kind='outgoing'", manualTicket.id)
+ .body.endsWith(preview.text),
+ )
+ assert.equal(
+ (
+ await fetch(`${base}/api/queues/support/signatures/preview`, {
+ method: 'POST',
+ headers: { cookie, 'Content-Type': 'application/json' },
+ body: JSON.stringify({ body: '{benutzer.name}' }),
+ })
+ ).status,
+ 403,
+ )
+ assert.equal(
+ (
+ await fetch(`${base}/api/tickets/${manualTicket.id}/signature-preview`, {
+ method: 'POST',
+ headers: { cookie, 'Content-Type': 'application/json' },
+ body: JSON.stringify({ signature_id: s.queue('vertrieb').signatures[0].id }),
+ })
+ ).status,
+ 400,
+ )
+ const duplicate = await (
+ await fetch(base + '/api/tickets', {
+ method: 'POST',
+ headers: { cookie, 'Content-Type': 'application/json' },
+ body: JSON.stringify(manual),
+ })
+ ).json()
+ assert.equal(duplicate.id, manualTicket.id)
+ for (const route of [
+ '/api/queues/support/mail',
+ '/api/queues/support/mail/fetch',
+ '/api/queues/support/mail/verify-imap',
+ ])
+ assert.equal(
+ (
+ await fetch(base + route, {
+ method: route.endsWith('/mail') ? 'GET' : 'POST',
+ headers: { cookie, 'Content-Type': 'application/json' },
+ ...(route.endsWith('/mail') ? {} : { body: '{}' }),
+ })
+ ).status,
+ 403,
+ )
+ const id = s.ingest(
+ mail('vertrieb', { attachments: [{ name: 'secret.txt', content: 'YQ==' }] }),
+ ).ticket_id
+ const a = s.all(
+ 'SELECT a.id FROM attachments a JOIN messages m ON m.id=a.message_id WHERE m.ticket_id=?',
+ id,
+ )[0]
+ assert.equal((await fetch(`${base}/api/tickets/${id}`, { headers: { cookie } })).status, 403)
+ assert.equal(
+ (
+ await fetch(`${base}/api/tickets/${id}/signature-preview`, {
+ method: 'POST',
+ headers: { cookie, 'Content-Type': 'application/json' },
+ body: '{}',
+ })
+ ).status,
+ 403,
+ )
+ assert.equal(
+ (await fetch(`${base}/api/attachments/${a.id}`, { headers: { cookie } })).status,
+ 403,
+ )
+ assert.equal(
+ (
+ await fetch(base + '/api/preferences', {
+ method: 'PUT',
+ headers: { cookie, Origin: 'https://evil.example', 'Content-Type': 'application/json' },
+ body: '{}',
+ })
+ ).status,
+ 403,
+ )
+ const rows = await (await fetch(base + '/api/tickets', { headers: { cookie } })).json()
+ assert(rows.every((t) => t.queue_id === 'support'))
+ } finally {
+ server.closeAllConnections()
+ await new Promise((r) => server.close(r))
+ db.close()
+ }
+})
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 0000000..57d54fc
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,16 @@
+{
+ "compilerOptions": {
+ "target": "ES2022",
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
+ "module": "ESNext",
+ "moduleResolution": "bundler",
+ "jsx": "react-jsx",
+ "strict": true,
+ "skipLibCheck": true,
+ "allowImportingTsExtensions": true,
+ "noEmit": true,
+ "baseUrl": ".",
+ "paths": { "@/*": ["src/*"], "styled-system/*": ["styled-system/*"] }
+ },
+ "include": ["src", "panda.config.ts", "vite.config.ts"]
+}
diff --git a/violet-registry.json b/violet-registry.json
new file mode 100644
index 0000000..8364803
--- /dev/null
+++ b/violet-registry.json
@@ -0,0 +1,33 @@
+{
+ "$schema": "https://park-ui.com/schema/registry-item.json",
+ "name": "violet",
+ "type": "registry:color",
+ "dependencies": ["@pandacss/dev"],
+ "files": [
+ {
+ "content": "import { defineSemanticTokens } from '@pandacss/dev'\n\nexport const violet = defineSemanticTokens.colors({\n '1': { value: { _light: '#fdfcfe', _dark: '#14121f' } },\n '2': { value: { _light: '#faf8ff', _dark: '#1b1525' } },\n '3': { value: { _light: '#f4f0fe', _dark: '#291f43' } },\n '4': { value: { _light: '#ebe4ff', _dark: '#33255b' } },\n '5': { value: { _light: '#e1d9ff', _dark: '#3c2e69' } },\n '6': { value: { _light: '#d4cafe', _dark: '#473876' } },\n '7': { value: { _light: '#c2b5f5', _dark: '#56468b' } },\n '8': { value: { _light: '#aa99ec', _dark: '#6958ad' } },\n '9': { value: { _light: '#6e56cf', _dark: '#6e56cf' } },\n '10': { value: { _light: '#654dc4', _dark: '#7d66d9' } },\n '11': { value: { _light: '#6550b9', _dark: '#baa7ff' } },\n '12': { value: { _light: '#2f265f', _dark: '#e2ddfe' } },\n a1: { value: { _light: '#5500aa03', _dark: '#4422ff0f' } },\n a2: { value: { _light: '#4900ff07', _dark: '#853ff916' } },\n a3: { value: { _light: '#4400ee0f', _dark: '#8354fe36' } },\n a4: { value: { _light: '#4300ff1b', _dark: '#7d51fd50' } },\n a5: { value: { _light: '#3600ff26', _dark: '#845ffd5f' } },\n a6: { value: { _light: '#3100fb35', _dark: '#8f6cfd6d' } },\n a7: { value: { _light: '#2d01dd4a', _dark: '#9879ff83' } },\n a8: { value: { _light: '#2b00d066', _dark: '#977dfea8' } },\n a9: { value: { _light: '#2400b7a9', _dark: '#8668ffcc' } },\n a10: { value: { _light: '#2300abb2', _dark: '#9176fed7' } },\n a11: { value: { _light: '#1f0099af', _dark: '#baa7ff' } },\n a12: { value: { _light: '#0b0043d9', _dark: '#e3defffe' } },\n solid: {\n bg: {\n DEFAULT: { value: { _light: '{colors.violet.9}', _dark: '{colors.violet.9}' } },\n hover: { value: { _light: '{colors.violet.10}', _dark: '{colors.violet.10}' } },\n },\n fg: { DEFAULT: { value: { _light: 'white', _dark: 'white' } } },\n },\n subtle: {\n bg: {\n DEFAULT: { value: { _light: '{colors.violet.a3}', _dark: '{colors.violet.a3}' } },\n hover: { value: { _light: '{colors.violet.a4}', _dark: '{colors.violet.a4}' } },\n active: { value: { _light: '{colors.violet.a5}', _dark: '{colors.violet.a5}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.violet.a11}', _dark: '{colors.violet.a11}' } } },\n },\n surface: {\n bg: {\n DEFAULT: { value: { _light: '{colors.violet.a2}', _dark: '{colors.violet.a2}' } },\n active: { value: { _light: '{colors.violet.a3}', _dark: '{colors.violet.a3}' } },\n },\n border: {\n DEFAULT: { value: { _light: '{colors.violet.a6}', _dark: '{colors.violet.a6}' } },\n hover: { value: { _light: '{colors.violet.a7}', _dark: '{colors.violet.a7}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.violet.a11}', _dark: '{colors.violet.a11}' } } },\n },\n outline: {\n bg: {\n hover: { value: { _light: '{colors.violet.a2}', _dark: '{colors.violet.a2}' } },\n active: { value: { _light: '{colors.violet.a3}', _dark: '{colors.violet.a3}' } },\n },\n border: { DEFAULT: { value: { _light: '{colors.violet.a7}', _dark: '{colors.violet.a7}' } } },\n fg: { DEFAULT: { value: { _light: '{colors.violet.a11}', _dark: '{colors.violet.a11}' } } },\n },\n plain: {\n bg: {\n hover: { value: { _light: '{colors.violet.a3}', _dark: '{colors.violet.a3}' } },\n active: { value: { _light: '{colors.violet.a4}', _dark: '{colors.violet.a4}' } },\n },\n fg: { DEFAULT: { value: { _light: '{colors.violet.a11}', _dark: '{colors.violet.a11}' } } },\n },\n})\n",
+ "type": "registry:color",
+ "path": "colors/violet.ts"
+ }
+ ],
+ "panda": {
+ "imports": [
+ {
+ "type": "registry:color",
+ "name": "violet",
+ "from": "colors/violet"
+ }
+ ],
+ "extension": {
+ "theme": {
+ "extend": {
+ "semanticTokens": {
+ "colors": {
+ "violet": "$ref:violet"
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/vite.config.ts b/vite.config.ts
new file mode 100644
index 0000000..6e25258
--- /dev/null
+++ b/vite.config.ts
@@ -0,0 +1,8 @@
+import { defineConfig } from 'vite'
+import react from '@vitejs/plugin-react'
+import path from 'node:path'
+export default defineConfig({
+ plugins: [react()],
+ resolve: { alias: { '@': path.resolve('src'), 'styled-system': path.resolve('styled-system') } },
+ server: { proxy: { '/api': 'http://127.0.0.1:3001' } },
+})